{"version":3,"file":"bundle.js","sources":["../../node_modules/svelte/internal/index.mjs","../../src/components/title.svelte","../../src/components/letter.svelte","../../src/components/sectionHeader.svelte","../../src/components/categoryImage.svelte","../../src/components/section.svelte","../../src/components/fullSize_howTo.svelte","../../node_modules/svelte/store/index.mjs","../../src/stores/stores.js","../../src/components/mode_fullSize.svelte","../../src/components/howTo.svelte","../../src/components/mode_sections.svelte","../../src/components/mode_slider.svelte","../../src/App.svelte","../../src/main.js"],"sourcesContent":["function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction is_empty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction validate_store(store, name) {\n if (store != null && typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, ...callbacks) {\n if (store == null) {\n return noop;\n }\n const unsub = store.subscribe(...callbacks);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, $$scope, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n return definition[1] && fn\n ? assign($$scope.ctx.slice(), definition[1](fn(ctx)))\n : $$scope.ctx;\n}\nfunction get_slot_changes(definition, $$scope, dirty, fn) {\n if (definition[2] && fn) {\n const lets = definition[2](fn(dirty));\n if ($$scope.dirty === undefined) {\n return lets;\n }\n if (typeof lets === 'object') {\n const merged = [];\n const len = Math.max($$scope.dirty.length, lets.length);\n for (let i = 0; i < len; i += 1) {\n merged[i] = $$scope.dirty[i] | lets[i];\n }\n return merged;\n }\n return $$scope.dirty | lets;\n }\n return $$scope.dirty;\n}\nfunction update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction update_slot_spread(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_spread_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_spread_changes_fn(dirty) | get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction compute_rest_props(props, keys) {\n const rest = {};\n keys = new Set(keys);\n for (const k in props)\n if (!keys.has(k) && k[0] !== '$')\n rest[k] = props[k];\n return rest;\n}\nfunction compute_slots(slots) {\n const result = {};\n for (const key in slots) {\n result[key] = true;\n }\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\nfunction set_store_value(store, ret, value = ret) {\n store.set(value);\n return ret;\n}\nconst has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\nfunction action_destroyer(action_result) {\n return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nfunction run_tasks(now) {\n tasks.forEach(task => {\n if (!task.c(now)) {\n tasks.delete(task);\n task.f();\n }\n });\n if (tasks.size !== 0)\n raf(run_tasks);\n}\n/**\n * For testing purposes only!\n */\nfunction clear_loops() {\n tasks.clear();\n}\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n */\nfunction loop(callback) {\n let task;\n if (tasks.size === 0)\n raf(run_tasks);\n return {\n promise: new Promise(fulfill => {\n tasks.add(task = { c: callback, f: fulfill });\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction element_is(name, is) {\n return document.createElement(name, { is });\n}\nfunction object_without_properties(obj, exclude) {\n const target = {};\n for (const k in obj) {\n if (has_prop(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction self(fn) {\n return function (event) {\n // @ts-ignore\n if (event.target === this)\n fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else if (node.getAttribute(attribute) !== value)\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n // @ts-ignore\n const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n for (const key in attributes) {\n if (attributes[key] == null) {\n node.removeAttribute(key);\n }\n else if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key === '__value') {\n node.value = node[key] = attributes[key];\n }\n else if (descriptors[key] && descriptors[key].set) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_svg_attributes(node, attributes) {\n for (const key in attributes) {\n attr(node, key, attributes[key]);\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group, __value, checked) {\n const value = new Set();\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.add(group[i].__value);\n }\n if (!checked) {\n value.delete(__value);\n }\n return Array.from(value);\n}\nfunction to_number(value) {\n return value === '' ? null : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_element(nodes, name, attributes, svg) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeName === name) {\n let j = 0;\n const remove = [];\n while (j < node.attributes.length) {\n const attribute = node.attributes[j++];\n if (!attributes[attribute.name]) {\n remove.push(attribute.name);\n }\n }\n for (let k = 0; k < remove.length; k++) {\n node.removeAttribute(remove[k]);\n }\n return nodes.splice(i, 1)[0];\n }\n }\n return svg ? svg_element(name) : element(name);\n}\nfunction claim_text(nodes, data) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 3) {\n node.data = '' + data;\n return nodes.splice(i, 1)[0];\n }\n }\n return text(data);\n}\nfunction claim_space(nodes) {\n return claim_text(nodes, ' ');\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.wholeText !== data)\n text.data = data;\n}\nfunction set_input_value(input, value) {\n input.value = value == null ? '' : value;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value, important) {\n node.style.setProperty(key, value, important ? 'important' : '');\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\n// unfortunately this can't be a constant as that wouldn't be tree-shakeable\n// so we cache the result instead\nlet crossorigin;\nfunction is_crossorigin() {\n if (crossorigin === undefined) {\n crossorigin = false;\n try {\n if (typeof window !== 'undefined' && window.parent) {\n void window.parent.document;\n }\n }\n catch (error) {\n crossorigin = true;\n }\n }\n return crossorigin;\n}\nfunction add_resize_listener(node, fn) {\n const computed_style = getComputedStyle(node);\n if (computed_style.position === 'static') {\n node.style.position = 'relative';\n }\n const iframe = element('iframe');\n iframe.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ' +\n 'overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;');\n iframe.setAttribute('aria-hidden', 'true');\n iframe.tabIndex = -1;\n const crossorigin = is_crossorigin();\n let unsubscribe;\n if (crossorigin) {\n iframe.src = \"data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}</script>\";\n unsubscribe = listen(window, 'message', (event) => {\n if (event.source === iframe.contentWindow)\n fn();\n });\n }\n else {\n iframe.src = 'about:blank';\n iframe.onload = () => {\n unsubscribe = listen(iframe.contentWindow, 'resize', fn);\n };\n }\n append(node, iframe);\n return () => {\n if (crossorigin) {\n unsubscribe();\n }\n else if (unsubscribe && iframe.contentWindow) {\n unsubscribe();\n }\n detach(iframe);\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\nfunction query_selector_all(selector, parent = document.body) {\n return Array.from(parent.querySelectorAll(selector));\n}\nclass HtmlTag {\n constructor(anchor = null) {\n this.a = anchor;\n this.e = this.n = null;\n }\n m(html, target, anchor = null) {\n if (!this.e) {\n this.e = element(target.nodeName);\n this.t = target;\n this.h(html);\n }\n this.i(anchor);\n }\n h(html) {\n this.e.innerHTML = html;\n this.n = Array.from(this.e.childNodes);\n }\n i(anchor) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert(this.t, this.n[i], anchor);\n }\n }\n p(html) {\n this.d();\n this.h(html);\n this.i(this.a);\n }\n d() {\n this.n.forEach(detach);\n }\n}\nfunction attribute_to_object(attributes) {\n const result = {};\n for (const attribute of attributes) {\n result[attribute.name] = attribute.value;\n }\n return result;\n}\nfunction get_custom_elements_slots(element) {\n const result = {};\n element.childNodes.forEach((node) => {\n result[node.slot || 'default'] = true;\n });\n return result;\n}\n\nconst active_docs = new Set();\nlet active = 0;\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n const doc = node.ownerDocument;\n active_docs.add(doc);\n const stylesheet = doc.__svelte_stylesheet || (doc.__svelte_stylesheet = doc.head.appendChild(element('style')).sheet);\n const current_rules = doc.__svelte_rules || (doc.__svelte_rules = {});\n if (!current_rules[name]) {\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ''}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n const previous = (node.style.animation || '').split(', ');\n const next = previous.filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n );\n const deleted = previous.length - next.length;\n if (deleted) {\n node.style.animation = next.join(', ');\n active -= deleted;\n if (!active)\n clear_rules();\n }\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n active_docs.forEach(doc => {\n const stylesheet = doc.__svelte_stylesheet;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n doc.__svelte_rules = {};\n });\n active_docs.clear();\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error('Function called outside component initialization');\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = get_current_component();\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\nfunction hasContext(key) {\n return get_current_component().$$.context.has(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n callbacks.slice().forEach(fn => fn(event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nlet flushing = false;\nconst seen_callbacks = new Set();\nfunction flush() {\n if (flushing)\n return;\n flushing = true;\n do {\n // first, call beforeUpdate functions\n // and update components\n for (let i = 0; i < dirty_components.length; i += 1) {\n const component = dirty_components[i];\n set_current_component(component);\n update(component.$$);\n }\n set_current_component(null);\n dirty_components.length = 0;\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n callback();\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n flushing = false;\n seen_callbacks.clear();\n}\nfunction update($$) {\n if ($$.fragment !== null) {\n $$.update();\n run_all($$.before_update);\n const dirty = $$.dirty;\n $$.dirty = [-1];\n $$.fragment && $$.fragment.p($$.ctx, dirty);\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nconst null_transition = { duration: 0 };\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program || pending_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = value;\n let child_ctx = info.ctx;\n if (key !== undefined) {\n child_ctx = child_ctx.slice();\n child_ctx[key] = value;\n }\n const block = type && (info.current = type)(child_ctx);\n let needs_flush = false;\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n if (info.blocks[i] === block) {\n info.blocks[i] = null;\n }\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n needs_flush = true;\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n if (needs_flush) {\n flush();\n }\n }\n if (is_promise(promise)) {\n const current_component = get_current_component();\n promise.then(value => {\n set_current_component(current_component);\n update(info.then, 1, info.value, value);\n set_current_component(null);\n }, error => {\n set_current_component(current_component);\n update(info.catch, 2, info.error, error);\n set_current_component(null);\n if (!info.hasCatch) {\n throw error;\n }\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = promise;\n }\n}\nfunction update_await_block_branch(info, ctx, dirty) {\n const child_ctx = ctx.slice();\n const { resolved } = info;\n if (info.current === info.then) {\n child_ctx[info.value] = resolved;\n }\n if (info.current === info.catch) {\n child_ctx[info.error] = resolved;\n }\n info.block.p(child_ctx, dirty);\n}\n\nconst globals = (typeof window !== 'undefined'\n ? window\n : typeof globalThis !== 'undefined'\n ? globalThis\n : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(child_ctx, dirty);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction validate_each_keys(ctx, list, get_context, get_key) {\n const keys = new Set();\n for (let i = 0; i < list.length; i++) {\n const key = get_key(get_context(ctx, list, i));\n if (keys.has(key)) {\n throw new Error('Cannot have duplicate keys in a keyed each');\n }\n keys.add(key);\n }\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\nfunction get_spread_object(spread_props) {\n return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n\n// source: https://html.spec.whatwg.org/multipage/indices.html\nconst boolean_attributes = new Set([\n 'allowfullscreen',\n 'allowpaymentrequest',\n 'async',\n 'autofocus',\n 'autoplay',\n 'checked',\n 'controls',\n 'default',\n 'defer',\n 'disabled',\n 'formnovalidate',\n 'hidden',\n 'ismap',\n 'loop',\n 'multiple',\n 'muted',\n 'nomodule',\n 'novalidate',\n 'open',\n 'playsinline',\n 'readonly',\n 'required',\n 'reversed',\n 'selected'\n]);\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args, classes_to_add) {\n const attributes = Object.assign({}, ...args);\n if (classes_to_add) {\n if (attributes.class == null) {\n attributes.class = classes_to_add;\n }\n else {\n attributes.class += ' ' + classes_to_add;\n }\n }\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === true)\n str += ' ' + name;\n else if (boolean_attributes.has(name.toLowerCase())) {\n if (value)\n str += ' ' + name;\n }\n else if (value != null) {\n str += ` ${name}=\"${String(value).replace(/\"/g, '"').replace(/'/g, ''')}\"`;\n }\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots, context) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : context || []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, { $$slots = {}, context = new Map() } = {}) => {\n on_destroy = [];\n const result = { title: '', head: '', css: new Set() };\n const html = $$render(result, props, {}, $$slots, context);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.title + result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : '';\n}\n\nfunction bind(component, name, callback) {\n const index = component.$$.props[name];\n if (index !== undefined) {\n component.$$.bound[index] = callback;\n callback(component.$$.ctx[index]);\n }\n}\nfunction create_component(block) {\n block && block.c();\n}\nfunction claim_component(block, parent_nodes) {\n block && block.l(parent_nodes);\n}\nfunction mount_component(component, target, anchor, customElement) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment && fragment.m(target, anchor);\n if (!customElement) {\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n }\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n const $$ = component.$$;\n if ($$.fragment !== null) {\n run_all($$.on_destroy);\n $$.fragment && $$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n $$.on_destroy = $$.fragment = null;\n $$.ctx = [];\n }\n}\nfunction make_dirty(component, i) {\n if (component.$$.dirty[0] === -1) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty.fill(0);\n }\n component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));\n}\nfunction init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {\n const parent_component = current_component;\n set_current_component(component);\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n on_disconnect: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : options.context || []),\n // everything else\n callbacks: blank_object(),\n dirty,\n skip_bound: false\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, options.props || {}, (i, ret, ...rest) => {\n const value = rest.length ? rest[0] : ret;\n if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {\n if (!$$.skip_bound && $$.bound[i])\n $$.bound[i](value);\n if (ready)\n make_dirty(component, i);\n }\n return ret;\n })\n : [];\n $$.update();\n ready = true;\n run_all($$.before_update);\n // `false` as a special case of no DOM component\n $$.fragment = create_fragment ? create_fragment($$.ctx) : false;\n if (options.target) {\n if (options.hydrate) {\n const nodes = children(options.target);\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.l(nodes);\n nodes.forEach(detach);\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor, options.customElement);\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement === 'function') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n const { on_mount } = this.$$;\n this.$$.on_disconnect = on_mount.map(run).filter(is_function);\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n disconnectedCallback() {\n run_all(this.$$.on_disconnect);\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n };\n}\n/**\n * Base class for Svelte components. Used when dev=false.\n */\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n}\n\nfunction dispatch_dev(type, detail) {\n document.dispatchEvent(custom_event(type, Object.assign({ version: '3.38.2' }, detail)));\n}\nfunction append_dev(target, node) {\n dispatch_dev('SvelteDOMInsert', { target, node });\n append(target, node);\n}\nfunction insert_dev(target, node, anchor) {\n dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n insert(target, node, anchor);\n}\nfunction detach_dev(node) {\n dispatch_dev('SvelteDOMRemove', { node });\n detach(node);\n}\nfunction detach_between_dev(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n detach_dev(before.nextSibling);\n }\n}\nfunction detach_before_dev(after) {\n while (after.previousSibling) {\n detach_dev(after.previousSibling);\n }\n}\nfunction detach_after_dev(before) {\n while (before.nextSibling) {\n detach_dev(before.nextSibling);\n }\n}\nfunction listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {\n const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];\n if (has_prevent_default)\n modifiers.push('preventDefault');\n if (has_stop_propagation)\n modifiers.push('stopPropagation');\n dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });\n const dispose = listen(node, event, handler, options);\n return () => {\n dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });\n dispose();\n };\n}\nfunction attr_dev(node, attribute, value) {\n attr(node, attribute, value);\n if (value == null)\n dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });\n else\n dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });\n}\nfunction prop_dev(node, property, value) {\n node[property] = value;\n dispatch_dev('SvelteDOMSetProperty', { node, property, value });\n}\nfunction dataset_dev(node, property, value) {\n node.dataset[property] = value;\n dispatch_dev('SvelteDOMSetDataset', { node, property, value });\n}\nfunction set_data_dev(text, data) {\n data = '' + data;\n if (text.wholeText === data)\n return;\n dispatch_dev('SvelteDOMSetData', { node: text, data });\n text.data = data;\n}\nfunction validate_each_argument(arg) {\n if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {\n let msg = '{#each} only iterates over array-like objects.';\n if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {\n msg += ' You can use a spread to convert this iterable into an array.';\n }\n throw new Error(msg);\n }\n}\nfunction validate_slots(name, slot, keys) {\n for (const slot_key of Object.keys(slot)) {\n if (!~keys.indexOf(slot_key)) {\n console.warn(`<${name}> received an unexpected slot \"${slot_key}\".`);\n }\n }\n}\n/**\n * Base class for Svelte components with some minor dev-enhancements. Used when dev=true.\n */\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(\"'target' is a required option\");\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn('Component was already destroyed'); // eslint-disable-line no-console\n };\n }\n $capture_state() { }\n $inject_state() { }\n}\n/**\n * Base class to create strongly typed Svelte components.\n * This only exists for typing purposes and should be used in `.d.ts` files.\n *\n * ### Example:\n *\n * You have component library on npm called `component-library`, from which\n * you export a component called `MyComponent`. For Svelte+TypeScript users,\n * you want to provide typings. Therefore you create a `index.d.ts`:\n * ```ts\n * import { SvelteComponentTyped } from \"svelte\";\n * export class MyComponent extends SvelteComponentTyped<{foo: string}> {}\n * ```\n * Typing this makes it possible for IDEs like VS Code with the Svelte extension\n * to provide intellisense and to use the component like this in a Svelte file\n * with TypeScript:\n * ```svelte\n * <script lang=\"ts\">\n * \timport { MyComponent } from \"component-library\";\n * </script>\n * <MyComponent foo={'bar'} />\n * ```\n *\n * #### Why not make this part of `SvelteComponent(Dev)`?\n * Because\n * ```ts\n * class ASubclassOfSvelteComponent extends SvelteComponent<{foo: string}> {}\n * const component: typeof SvelteComponent = ASubclassOfSvelteComponent;\n * ```\n * will throw a type error, so we need to seperate the more strictly typed class.\n */\nclass SvelteComponentTyped extends SvelteComponentDev {\n constructor(options) {\n super(options);\n }\n}\nfunction loop_guard(timeout) {\n const start = Date.now();\n return () => {\n if (Date.now() - start > timeout) {\n throw new Error('Infinite loop detected');\n }\n };\n}\n\nexport { HtmlTag, SvelteComponent, SvelteComponentDev, SvelteComponentTyped, SvelteElement, action_destroyer, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, append_dev, assign, attr, attr_dev, attribute_to_object, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_component, claim_element, claim_space, claim_text, clear_loops, component_subscribe, compute_rest_props, compute_slots, createEventDispatcher, create_animation, create_bidirectional_transition, create_component, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, dataset_dev, debug, destroy_block, destroy_component, destroy_each, detach, detach_after_dev, detach_before_dev, detach_between_dev, detach_dev, dirty_components, dispatch_dev, each, element, element_is, empty, escape, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_current_component, get_custom_elements_slots, get_slot_changes, get_slot_context, get_spread_object, get_spread_update, get_store_value, globals, group_outros, handle_promise, hasContext, has_prop, identity, init, insert, insert_dev, intros, invalid_attribute_name_character, is_client, is_crossorigin, is_empty, is_function, is_promise, listen, listen_dev, loop, loop_guard, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, prop_dev, query_selector_all, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, self, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_data_dev, set_input_type, set_input_value, set_now, set_raf, set_store_value, set_style, set_svg_attributes, space, spread, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_await_block_branch, update_keyed_each, update_slot, update_slot_spread, validate_component, validate_each_argument, validate_each_keys, validate_slots, validate_store, xlink_attr };\n","<script>\n export let type = 'title'\n</script>\n\n{#if type === 'sub'}\n <div class=\"ovs-sizes__subtitleContainer\">\n <h4 class=\"ovs-sizes__subtitle\"><slot></slot></h4>\n </div>\n{:else if type === 'sub-central'}\n <div class=\"ovs-sizes__subtitleContainer ovs-sizes--upper\">\n <h3 class=\"ovs-sizes__subtitle ovs-sizes--central\"><slot></slot></h3>\n </div>\n{:else}\n <div class=\"ovs-sizes__subtitleContainer\">\n <h3 class=\"ovs-sizes__title\"><slot></slot></h3>\n </div>\n{/if}\n\n<style type=\"text/scss\">\n @import \"./../scss/base\";\n\n .ovs-sizes {\n &__titleContainer {\n }\n &__title {\n padding: 0 40px;\n margin: 28px 0;\n font-family: $fontBarlow;\n font-weight: normal;\n font-size: 24px;\n text-align: center;\n color: $standardTextColour;\n @include tabletLandscape {\n }\n }\n &__subtitle {\n padding: 0 25px;\n margin: 12px 0;\n font-family: $fontBarlow;\n font-weight: normal;\n font-size: 13px;\n text-align: left;\n color: $standardTextColour;\n }\n &--central {\n text-align: center;\n }\n &--upper {\n margin-top: -1vw;\n margin-bottom: 4vw;\n @include tabletLandscape {\n margin-bottom: 0;\n }\n }\n }\n</style>\n","<script>\n export let letter\n</script>\n\n<span class=\"ovs-sizes__measure-letter\"><span>{letter}</span></span>\n\n\n<style type=\"text/scss\">\n @import \"./../scss/base\";\n\n .ovs-sizes {\n &__measure-letter {\n display: inline-flex;\n justify-content: center;\n align-items: flex-start;\n width: $letterHeight;\n height: $letterHeight;\n line-height: #{$letterHeight - 1px};\n border: 1px;\n border-radius: 50%;\n padding: 0;\n background-color: rgb(226, 226, 226);\n bottom: 0.1vw;\n position: relative;\n margin-right: 0.1vw;\n letter-spacing: 0;\n\n span {\n text-transform: uppercase;\n font-size: 7px;\n font-weight: bold;\n @include tabletPortrait {\n }\n }\n\n }\n\n }\n\n</style>\n\n","<script>\n import LetterElement from './letter.svelte'\n\n export let text = ''\n export let type\n export let index\n export let letter\n export let version\n import { createEventDispatcher } from 'svelte';\n const dispatch = createEventDispatcher();\n\n\n function hideHowTo() {\n console.log('hidw hoe wto 1')\n dispatch('close', {\n text: 'Hello!'\n });\n }\n\n</script>\n\n<div class=\"ovs-sizes__sectionTextLine\">\n <LetterElement letter=\"{letter}\"></LetterElement>\n <span class=\"ovs-sizes__sectionMeasure\">{text}</span>\n\n {#if version == \"close\"}\n\n <div class=\"ovs-sizes__fullSize_howToClose\" on:click=\"{hideHowTo}\"></div>\n {:else if text != 'anni'}\n <div class=\"ovs-sizes__fullSize_howToOpen\"\n onClick=\"window.ovsSizeShowHowTo(this.dataset['type'], this.dataset['index'])\" data-type=\"{type}\"\n data-index=\"{index}\"> i\n </div>\n {/if}\n</div>\n\n\n<style type=\"text/scss\">\n @import \"./../scss/base\";\n\n .ovs-sizes {\n\n &__sectionMeasure {\n letter-spacing: 0.2em;\n font-weight: bold;\n text-transform: uppercase;\n font-size: 9px;\n line-height: $letterHeight;\n margin-left: 5px;\n }\n\n &__fullSize_howToOpen {\n right: 18.750px;\n top: 16.875px;\n font-size: 9px;\n cursor: pointer;\n position: absolute;\n border: 1px solid black;\n padding: 0;\n height: 14px;\n width: 14px;\n text-align: center;\n line-height: 14px;\n border-radius: 50%;\n }\n\n &__fullSize_howToClose {\n /*border: 1px solid red;\n border-radius: 50%;*/\n right: 18.750px;\n top: 16.875px;\n cursor: pointer;\n height: 14px;\n width: 14px;\n position: absolute;\n background-size: 9px;\n background-position: center center;\n background-repeat: no-repeat;\n background-image: url(\"data:image/svg+xml,%3Csvg width='9px' height='9px' viewBox='0 0 9 9' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Ctitle%3E8AEA5CD0-9F4C-46A4-B041-B23B3A101CE1@3x%3C/title%3E%3Cg id='M---Product-Detail-Page' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='guida_taglie---bambino---v2---tip' transform='translate(-350.000000, -375.000000)' fill='%23151515' fill-rule='nonzero'%3E%3Cg id='Combined-Shape' transform='translate(350.000000, 375.000000)'%3E%3Cpath d='M8.85735706,0.142642944 C9.04754765,0.332833537 9.04754765,0.641193413 8.85735706,0.831384005 L5.189,4.5 L8.85735706,8.16861599 C9.02377382,8.33503276 9.04457592,8.59192289 8.91976334,8.780958 L8.85735706,8.85735706 C8.66716646,9.04754765 8.35880659,9.04754765 8.16861599,8.85735706 L8.16861599,8.85735706 L4.5,5.189 L0.831384005,8.85735706 C0.641193413,9.04754765 0.332833537,9.04754765 0.142642944,8.85735706 C-0.0475476481,8.66716646 -0.0475476481,8.35880659 0.142642944,8.16861599 L3.811,4.5 L0.142642944,0.831384005 C-0.023773824,0.664967237 -0.0445759201,0.408077111 0.0802366561,0.219042003 L0.142642944,0.142642944 C0.332833537,-0.0475476481 0.641193413,-0.0475476481 0.831384005,0.142642944 L0.831384005,0.142642944 L4.5,3.811 L8.16861599,0.142642944 C8.35880659,-0.0475476481 8.66716646,-0.0475476481 8.85735706,0.142642944 Z'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E\");\n }\n }\n</style>\n","<script>\n import * as localConf from '../configuration.json'\n\n export let image\n let basePath = \"img/sizes/\"\n let env = `targetEnv`\n if (env === 'prod') {\n basePath = localConf.imagePath\n console.log('now in prod, serving images from ' + basePath)\n } else {\n console.log('not in prod, now in ' + `targetEnv` + ' serving local images')\n }\n\n $: imagePath = basePath + image\n</script>\n<img src=\"{ imagePath }\" loading=\"lazy\" alt=\"\">\n\n<style type=\"text/scss\">\n @import \"./../scss/base\";\n\n</style>\n","<script>\n import SectionHeader from \"./sectionHeader.svelte\"\n import CategoryImage from \"./categoryImage.svelte\"\n let image\n\n export let range\n export let mode\n export let age\n export let type = 'title'\n export let text = 'petto'\n export let size = '0 cm'\n export let gender = 'female'\n export let letter\n export let index\n export let hasImg\n\n $: imageRange = range || \"range-1\"\n\n $: imageMode = mode || \"sections\"\n\n $: imageAge = age || \"adult\"\n\n $: image = `${imageAge}/${gender}/${imageRange}/${type}_small.jpg`\n\n</script>\n\n<div class=\"ovs-sizes__section\">\n {#if imageMode === 'sections'}\n <div class=\"ovs-sizes__sectionImage\">\n {#if hasImg }\n <CategoryImage image=\"{image}\"></CategoryImage>\n {/if}\n </div>\n <div class=\"ovs-sizes__sectionText\">\n <span class=\"ovs-sizes__sectionMeasure\">{text}</span>\n <p class=\"ovs-sizes__sectionValue\">{size}</p>\n </div>\n {:else if imageMode === 'fullSize'}\n <div class=\"ovs-sizes__sectionText\" onclick=\"window.ovsSizeShowHowTo(this.dataset['type'], this.dataset['index'])\" data-type=\"{type}\" data-index=\"{index}\">\n <SectionHeader letter=\"{letter}\" type=\"{type}\" text=\"{text}\" index=\"{index}\"></SectionHeader>\n <p class=\"ovs-sizes__sectionValue\">{size}</p>\n </div>\n {:else if imageMode === 'slider'}\n <div class=\"ovs-sizes__slider-sectionText\">\n <div class=\"ovs-sizes__sectionMeasure-slider\">{text}</div>\n <div class=\"ovs-sizes__sectionValue-slider\">{size}</div>\n </div>\n {/if}\n</div>\n\n<style type=\"text/scss\">\n @import \"./../scss/base\";\n\n .ovs-sizes {\n &__section {\n display: flex;\n border-bottom: 4px solid $white;\n position: relative;\n &:last-of-type {\n border-bottom: none;\n }\n }\n &__sectionImage {\n width: 33%;\n font-size: 0;\n :global(img) {\n width: 100%;\n min-height: getVw(85px);\n @include tabletPortrait {\n min-height: 94px;\n }\n }\n }\n &__sectionText {\n padding-left: 16.875px ;\n padding-top: 18.750px;\n cursor: pointer;\n @include noSelectHighlight;\n }\n &__sectionTextLine {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n }\n &__sectionMeasure {\n letter-spacing: 0.2em;\n font-weight: bold;\n text-transform: uppercase;\n font-size: 9px;\n line-height: $letterHeight;\n margin-left: 5px;\n &-slider {\n letter-spacing: 0.2em;\n font-weight: bold;\n text-transform: uppercase;\n font-size: 9px;\n margin-left: 18.750px;\n width: 25%;\n padding-top: 18px;\n @include tabletPortrait {\n }\n\n }\n }\n &__sectionValue {\n margin: 8px 0 0;\n font-size: 30px;\n line-height: 1;\n &-slider {\n font-size: 30px;\n line-height: 1;\n margin-left: 32px;\n\n }\n }\n &__measure-letter {\n text-transform: uppercase;\n font-size: 1.5vw;\n font-weight: bold;\n border: 1px;\n border-radius: 50%;\n padding: 0.1vw 0.8vw;\n background-color: rgb(226, 226, 226);\n bottom: 0.1vw;\n position: relative;\n margin-right: 0.1vw;\n @include tabletPortrait{\n font-size: 0.6vw;\n padding: 0.1vw 0.2vw;\n }\n }\n\n\n &__slider-sectionText{\n margin-top: 18.750px;\n margin-bottom: 18.750px;\n width: 100%;\n display: flex;\n @include tabletPortrait {\n }\n }\n\n }\n</style>\n","<script>\n\n import SectionHeader from \"./sectionHeader.svelte\"\n import LetterElement from \"./letter.svelte\"\n import { createEventDispatcher } from 'svelte';\n const dispatch = createEventDispatcher();\n\n let image\n\n export let age\n export let type = 'height'\n export let gender = 'male'\n export let description = 'lorem ipsum dolor sit amet'\n export let title = 'altezza'\n export let letter\n\n\n // $: imageMode = mode || \"fullSize\"\n\n $: imageAge = age || 'kids'\n\n\n $: image = `img/sizes/${imageAge}/${gender}/${type}.jpg`\n\n const getSection = () => {\n return document.querySelector('.ovs-sizes__fullSize_howTo')\n }\n const removeSection = () => {\n return document.querySelector('.ovs-sizes__half-sections')\n }\n\n const activeClass = 'ovs-sizes__show'\n const inactiveClass = 'ovs-sizes__hide'\n\n\n function hideHowTo() {\n console.log('hidw hoe wto 2')\n dispatch('close', {\n text: 'Hello!'\n });\n }\n\n\n</script>\n<div class=\"ovs-sizes__fullSize_howTo\">\n <div class=\"ovs-sizes__fullSize_howToText\">\n <div class=\"ovs-sizes__fullSize_howToHeader\">\n <SectionHeader on:close=\"{hideHowTo}\" text=\"{title}\" letter=\"{letter}\" type=\"{type}\" version=\"close\"></SectionHeader>\n </div>\n <div class=\"ovs-sizes__fullSize_howToDescription\">{@html description}</div>\n </div>\n</div>\n\n<style type=\"text/scss\">\n @import \"./../scss/base\";\n\n .ovs-sizes {\n\n &__fullSize_howTo {\n transition: opacity 0.25s ease-in-out;\n position: absolute;\n top: 0;\n left: 0;\n opacity: 0;\n width: 100%;\n display: flex;\n border-top: 3px solid $veryLightGrey;\n //border-bottom: 1px solid $veryLightGrey;\n justify-content: flex-end;\n min-height: calc(100% - 4px);\n &:last-of-type {\n //border-bottom: none;\n }\n\n z-index: 0;\n }\n\n &__fullSize_howToImage {\n font-size: 0;\n width: 50%;\n\n img {\n width: 100%;\n min-height: getVw(250px);\n @include tabletPortrait {\n min-height: 276px;\n }\n }\n }\n\n &__fullSize_howToText {\n position: relative;\n width: calc(50% - 1px);\n //border-bottom: 1px solid $veryLightGrey;\n border-left: 1px solid $veryLightGrey;\n background-color: white;\n @include tabletPortrait {\n }\n top: 0;\n left: 0;\n }\n\n &__fullSize_howToHeader {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: 18.750px 15.750px 24px;\n\n }\n\n &__fullSize_howToTitle {\n font-weight: bold;\n text-transform: uppercase;\n font-size: 9px;\n letter-spacing: 0.2em;\n line-height: 15px;\n margin-right: 15px;\n }\n\n &__fullSize_howToDescription {\n margin: 18.750px 16.875px 24px;\n font-size: 13px;\n }\n\n\n\n }\n\n</style>\n","import { noop, safe_not_equal, subscribe, run_all, is_function } from '../internal/index.mjs';\nexport { get_store_value as get } from '../internal/index.mjs';\n\nconst subscriber_queue = [];\n/**\n * Creates a `Readable` store that allows reading by subscription.\n * @param value initial value\n * @param {StartStopNotifier}start start and stop notifications for subscriptions\n */\nfunction readable(value, start) {\n return {\n subscribe: writable(value, start).subscribe\n };\n}\n/**\n * Create a `Writable` store that allows both updating and reading by subscription.\n * @param {*=}value initial value\n * @param {StartStopNotifier=}start start and stop notifications for subscriptions\n */\nfunction writable(value, start = noop) {\n let stop;\n const subscribers = [];\n function set(new_value) {\n if (safe_not_equal(value, new_value)) {\n value = new_value;\n if (stop) { // store is ready\n const run_queue = !subscriber_queue.length;\n for (let i = 0; i < subscribers.length; i += 1) {\n const s = subscribers[i];\n s[1]();\n subscriber_queue.push(s, value);\n }\n if (run_queue) {\n for (let i = 0; i < subscriber_queue.length; i += 2) {\n subscriber_queue[i][0](subscriber_queue[i + 1]);\n }\n subscriber_queue.length = 0;\n }\n }\n }\n }\n function update(fn) {\n set(fn(value));\n }\n function subscribe(run, invalidate = noop) {\n const subscriber = [run, invalidate];\n subscribers.push(subscriber);\n if (subscribers.length === 1) {\n stop = start(set) || noop;\n }\n run(value);\n return () => {\n const index = subscribers.indexOf(subscriber);\n if (index !== -1) {\n subscribers.splice(index, 1);\n }\n if (subscribers.length === 0) {\n stop();\n stop = null;\n }\n };\n }\n return { set, update, subscribe };\n}\nfunction derived(stores, fn, initial_value) {\n const single = !Array.isArray(stores);\n const stores_array = single\n ? [stores]\n : stores;\n const auto = fn.length < 2;\n return readable(initial_value, (set) => {\n let inited = false;\n const values = [];\n let pending = 0;\n let cleanup = noop;\n const sync = () => {\n if (pending) {\n return;\n }\n cleanup();\n const result = fn(single ? values[0] : values, set);\n if (auto) {\n set(result);\n }\n else {\n cleanup = is_function(result) ? result : noop;\n }\n };\n const unsubscribers = stores_array.map((store, i) => subscribe(store, (value) => {\n values[i] = value;\n pending &= ~(1 << i);\n if (inited) {\n sync();\n }\n }, () => {\n pending |= (1 << i);\n }));\n inited = true;\n sync();\n return function stop() {\n run_all(unsubscribers);\n cleanup();\n };\n });\n}\n\nexport { derived, readable, writable };\n","import { writable } from 'svelte/store';\n\nexport const currentSizeStore = writable();\n","<script>\n // imports\n import {getContext, onMount} from 'svelte'\n import Title from './title.svelte'\n import Section from './section.svelte'\n import HowTo from './fullSize_howTo.svelte'\n import {currentSizeStore} from '../stores/stores'\n import { createEventDispatcher } from 'svelte';\n import CategoryImage from \"./categoryImage.svelte\"\n\n console.log('mode fullSize is on')\n\n const dispatch = createEventDispatcher();\n\n let currentSize\n const sizeStoreSub = currentSizeStore.subscribe(value => {\n currentSize = value;\n });\n\n // props\n export let currentCategory = undefined\n // vars and computed properties\n const getI18n = getContext('getI18n')\n const I18nReplace = getContext('I18nReplace')\n\n function changeSize(size) {\n console.log('change size', size)\n currentSizeStore.set(size)\n closeHowTo()\n }\n\n $: cellNumberRemain = currentCategory?.sizes.length % 6\n $: otherCells = cellNumberRemain > 0 ? (6 - cellNumberRemain) : 0\n\n let currentSizeData, correspondingSizesText\n\n onMount(() => {\n\n })\n\n $: currentSizeData = currentSize ? currentCategory?.sizes.find(o => {\n return o.code === currentSize.toString()\n }) : {}\n\n $: age = currentCategory?.age\n $: gender = currentCategory?.gender\n\n $: imageAge = age\n\n $: image = `${imageAge}/${gender}/measures.jpg`\n\n const activeClass = 'ovs-sizes__show'\n const inactiveClass = 'ovs-sizes__hide'\n const getSection = () => { return document.querySelector('.ovs-sizes__fullSize_howTo')};\n const removeSection = () => { return document.querySelector('.ovs-sizes__half-sections')};\n\n let measureId\n let howToIndex\n const openHowTo = function (buttonId, index) {\n console.log('opened');\n window.requestAnimationFrame(() => {\n const howToSection = getSection();\n setTimeout(() => howToSection.classList.add(activeClass));\n })\n window.requestAnimationFrame(() => {\n const mainSection = removeSection();\n setTimeout(() => mainSection.classList.add(inactiveClass));\n })\n measureId = buttonId\n howToIndex = index\n }\n const closeHowTo = function () {\n console.log('closed')\n window.requestAnimationFrame(() => {\n const howToSection = getSection()\n setTimeout(() => howToSection.classList.remove(activeClass))\n })\n window.requestAnimationFrame(() => {\n const measuresSection = removeSection()\n setTimeout(() => measuresSection.classList.remove(inactiveClass))\n })\n }\n\n window.ovsSizeShowHowTo = openHowTo\n\n let mLetter = ['a', 'b', 'c', 'd', 'e']\n\n let howToLetter\n\n</script>\n\n<Title type=\"sub\">{getI18n('instructions-age')}</Title>\n<div class=\"ovs-sizes__selector\">\n {#each currentCategory.sizes as size }\n <div class=\"ovs-sizes__selectorItem \" on:click={() => changeSize(size.code)}>\n <div\n class=\"ovs-sizes__selectorItemContainer {size.code === currentSize ? 'ovs-sizes__selectorItemContainer--current' : ''}\">\n <span>{ size.code }</span>\n </div>\n </div>\n {/each}\n {#if otherCells > 0 }\n {#each Array(otherCells) as _, size }\n <div class=\"ovs-sizes__selectorItem ovs-sizes__selectorItem--empty\">\n </div>\n {/each}\n {/if}\n</div>\n {#if currentSize && currentSizeData}\n <div class=\"ovs-sizes__fullSize\">\n <div class=\"ovs-sizes__fullSizeContent\">\n <div class=\"ovs-sizes__sectionImage\">\n <CategoryImage image=\"{image}\"></CategoryImage>\n </div>\n <div class=\"ovs-sizes__half-sections\">\n {#each Object.entries(currentSizeData.measures) as [key, measure], i }\n <Section gender=\"{currentCategory.gender}\" text={getI18n(key)} size={measure} range=\"{currentCategory.range}\" mode=\"{currentCategory.mode}\" age=\"{currentCategory.age}\" letter =\"{mLetter[i]}\" type=\"{key}\" index=\"{i}\"></Section>\n <span class=\"ovs-sizes__low-border\"></span>\n {/each}\n </div>\n </div>\n <HowTo on:close={closeHowTo} gender=\"{currentCategory.gender}\" age=\"{currentCategory.age}\" title=\"{getI18n(measureId)}\" type=\"{measureId}\" description=\"{getI18n('howToMeasure', measureId)}\" letter =\"{mLetter[howToIndex]}\"></HowTo>\n </div>\n {/if}\n\n<style type=\"text/scss\">\n @import \"./../scss/base\";\n\n :global(.ovs-sizes__fullSize_howTo.ovs-sizes__show) {\n opacity: 1 !important;\n z-index: 1 !important;\n }\n\n :global(.ovs-sizes__half-sections.ovs-sizes__hide) {\n opacity: 0 !important;\n z-index: 0 !important;\n }\n\n\n .ovs-sizes {\n\n $headerHeight: 68px;\n\n &__selector {\n border-top: 1px solid $veryLightGrey;\n display: flex;\n flex-wrap: wrap;\n font-size: 0;\n }\n\n &__selectorItem {\n width: calc(100% / 6);\n box-sizing: border-box;\n height: getVw(63px);\n font-size: 20px;\n border-bottom: 1px solid $veryLightGrey;\n border-right: 1px solid $veryLightGrey;\n cursor: pointer;\n user-select: none;\n\n @include tabletPortrait {\n height: 70px;\n }\n\n &:nth-child(6), &:last-of-type {\n border-right: none;\n }\n\n &Container {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n border: 2px solid $white;\n display: flex;\n justify-content: center;\n align-items: center;\n\n &--current {\n font-weight: bold;\n border: 2px solid $black;\n }\n }\n\n &--empty {\n cursor: auto;\n }\n }\n\n &__fullSize {\n position: relative;\n }\n &__fullSizeContent {\n transition: opacity 0.25s ease-in-out;\n border-top: 3px solid $veryLightGrey;\n border-bottom: 1px solid $veryLightGrey;\n display: flex;\n position: relative;\n z-index: 1;\n }\n\n &__sectionImage {\n width: 50%;\n font-size: 0;\n margin: 0;\n :global(img) {\n width: 100%;\n min-height: getVw(85px);\n @include tabletPortrait {\n min-height: 94px;\n }\n }\n }\n\n &__description {\n padding: 25px;\n border-bottom: 1px solid $veryLightGrey;\n line-height: 1.2;\n }\n\n &__descriptionSimilar {\n font-size: 15px;\n padding-bottom: 12px;\n line-height: 1.2;\n\n }\n &__descriptionCorresponds {\n span {\n font-size: 13px;\n }\n p {\n font-size: 20px;\n margin: 5px 0;\n }\n }\n\n &__half-sections {\n width: 50%;\n border-left: 1px solid $veryLightGrey;\n transition: opacity 0.25s ease-in-out;\n }\n\n &__low-border {\n display: block;\n width: 100%;\n height: 1px;\n background-color: $veryLightGrey;\n margin-top: 5px;\n &:last-of-type {\n background-color: $white;\n }\n }\n\n\n }\n\n</style>\n","<script>\n import CategoryImage from \"./categoryImage.svelte\"\n\n let image\n\n export let range\n export let mode\n export let age\n export let type = 'title'\n export let text = 'petto'\n export let size = '0 cm'\n export let gender = 'female'\n export let description = 'lorem ipsum dolor sit amet'\n\n $: imageRange = range || \"range-1\"\n\n $: imageMode = mode || \"sections\"\n\n $: imageAge = age || \"adult\"\n\n $: image = `${imageAge}/${gender}/${imageRange}/${type}_big.jpg`\n\n</script>\n\n<div class=\"ovs-sizes__howTo\">\n <div class=\"ovs-sizes__howToText\">\n <p class=\"ovs-sizes__howToTitle\">{text}</p>\n <p class=\"ovs-sizes__howToDescription\">{@html description}</p>\n </div>\n <div class=\"ovs-sizes__howToImage\">\n <CategoryImage image=\"{image}\"></CategoryImage>\n </div>\n</div>\n\n<style type=\"text/scss\">\n @import \"./../scss/base\";\n\n .ovs-sizes {\n &__howTo {\n position: relative;\n border-bottom: 4px solid $white;\n margin-top: 15px;\n &:last-of-type {\n border-bottom: none;\n }\n }\n &__howToImage {\n position: relative;\n width: 100%;\n font-size: 0;\n :global(img) {\n width: 100%;\n min-height: getVw(250px);\n @include tabletPortrait {\n min-height: 276px;\n }\n }\n &:after {\n position: absolute;\n top: 0;\n left: 0;\n content: \"\";\n width: 100%;\n height: 100%;\n background: rgba($white, 0.5);\n }\n }\n &__howToText {\n padding: getVw(25px) getVw(25px) getVw(14px);\n @include tabletPortrait {\n padding: 25px 25px 18px;\n }\n //position: absolute;\n top: 0;\n left: 0;\n padding-left: 10%;\n }\n &__howToTitle {\n font-weight: bold;\n text-transform: uppercase;\n font-size: 11px;\n letter-spacing: 0.2em;\n line-height: 1;\n }\n &__howToDescription {\n margin: 15px 0 7px;\n font-size: 13px;\n }\n\n }\n</style>\n","<script>\n // imports\n import {getContext, onMount} from 'svelte'\n import Title from './title.svelte'\n import Section from './section.svelte'\n import HowTo from './howTo.svelte'\n import {currentSizeStore} from '../stores/stores'\n\n console.log('mode sections is on')\n\n let currentSize\n const sizeStoreSub = currentSizeStore.subscribe(value => {\n currentSize = value;\n });\n\n // props\n export let currentCategory = undefined\n // vars and computed properties\n const getI18n = getContext('getI18n')\n const I18nReplace = getContext('I18nReplace')\n\n function changeSize(size) {\n console.log('change size', size)\n currentSizeStore.set(size)\n }\n\n $: cellNumberRemain = currentCategory?.sizes.length % 6\n $: otherCells = cellNumberRemain > 0 ? (6 - cellNumberRemain) : 0\n $: hasImg = currentCategory.noImg ? false : true\n\n let currentSizeData, correspondingSizesText\n\n onMount(() => {\n\n })\n\n $: currentSizeData = currentSize ? currentCategory?.sizes.find(o => {\n return o.code === currentSize.toString()\n }) : {}\n let similarSizeText = ''\n $: if (currentSize && currentSizeData) {\n if (currentSizeData.similarSizes && currentSizeData.similarSizes.length > 0) {\n let baseString\n if (currentSizeData.similarSizes.length === 1) {\n baseString = ('sizeSimilarSize')\n } else {\n baseString = ('sizeSimilarSizes')\n }\n similarSizeText = I18nReplace(baseString, ['%size%', '%equivalent%'], [currentSize, currentSizeData.similarSizes.join(', ')])\n }\n }\n\n $: correspondingSizesText = currentSize ? currentSizeData?.correspondingSizes ? currentSizeData.correspondingSizes.join(' ').replace(/(\\d+)/g, '<strong>$1</strong>') : '' : ''\n\n</script>\n<Title type=\"sub\">{getI18n('instructions-main')}</Title>\n<div class=\"ovs-sizes__selector\">\n {#each currentCategory.sizes as size }\n <div class=\"ovs-sizes__selectorItem \" on:click={() => changeSize(size.code)}>\n <div\n class=\"ovs-sizes__selectorItemContainer {size.code === currentSize ? 'ovs-sizes__selectorItemContainer--current' : ''}\">\n <span>{ size.code }</span>\n </div>\n </div>\n {/each}\n {#if otherCells > 0 }\n {#each Array(otherCells) as _, size }\n <div class=\"ovs-sizes__selectorItem ovs-sizes__selectorItem--empty\">\n </div>\n {/each}\n {/if}\n</div>\n{#if currentSize && currentSizeData}\n <div class=\"ovs-sizes__sections\">\n {#each Object.entries(currentSizeData.measures) as [key, measure] }\n <Section gender=\"{currentCategory.gender}\" type={key} text={getI18n(key)} size={measure} range=\"{currentCategory.range}\" mode=\"{currentCategory.mode}\" age=\"{currentCategory.age}\" hasImg=\"{hasImg}\"></Section>\n {/each}\n </div>\n {#if currentSizeData.similarSizes || currentSizeData.correspondingSizes}\n <div class=\"ovs-sizes__description\">\n {#if currentSizeData.similarSizes}\n <div class=\"ovs-sizes__descriptionSimilar\">\n {@html similarSizeText}\n </div>\n {/if}\n {#if currentSizeData.correspondingSizes }\n <div class=\"ovs-sizes__descriptionCorresponds\">\n <span>{ getI18n('correspondsTo') }</span>\n <p>{@html correspondingSizesText}</p>\n </div>\n {/if}\n </div>\n {/if}\n {#if currentCategory.howto !== false}\n <Title>{getI18n('howToMeasure', 'title')}</Title>\n <div class=\"ovs-sizes__howToContainer\">\n {#each Object.entries(currentSizeData.measures) as [key, measure] }\n <HowTo gender=\"{currentCategory.gender}\" type={key} text={getI18n(key)} description={getI18n('howToMeasure', key)} range=\"{currentCategory.range}\" mode=\"{currentCategory.mode}\" age=\"{currentCategory.age}\"></HowTo>\n {/each}\n </div>\n {/if}\n{/if}\n\n<style type=\"text/scss\">\n @import \"./../scss/base\";\n\n .ovs-sizes {\n &__selector {\n border-top: 1px solid $veryLightGrey;\n display: flex;\n flex-wrap: wrap;\n font-size: 0;\n }\n\n &__selectorItem {\n width: calc(100% / 6);\n box-sizing: border-box;\n height: getVw(63px);\n font-size: 20px;\n border-bottom: 1px solid $veryLightGrey;\n border-right: 1px solid $veryLightGrey;\n cursor: pointer;\n user-select: none;\n\n @include tabletPortrait {\n height: 70px;\n }\n\n &:nth-child(6), &:last-of-type {\n border-right: none;\n }\n\n &Container {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n border: 2px solid $white;\n display: flex;\n justify-content: center;\n align-items: center;\n\n &--current {\n font-weight: bold;\n border: 2px solid $black;\n }\n }\n\n &--empty {\n cursor: auto;\n }\n }\n\n &__sections {\n border-top: 3px solid $veryLightGrey;\n border-bottom: 1px solid $veryLightGrey;\n }\n\n &__description {\n padding: 25px;\n border-bottom: 1px solid $veryLightGrey;\n line-height: 1.2;\n }\n\n &__descriptionSimilar {\n font-size: 15px;\n padding-bottom: 12px;\n line-height: 1.2;\n\n }\n &__descriptionCorresponds {\n span {\n font-size: 13px;\n }\n p {\n font-size: 20px;\n margin: 5px 0;\n }\n }\n\n &__howToContainer {\n margin-top: -20px;\n }\n\n }\n\n</style>\n","<script>\n // imports\n import {getContext, onMount, afterUpdate} from 'svelte'\n import Title from './title.svelte'\n import Section from './section.svelte'\n import {currentSizeStore} from '../stores/stores'\n\n console.log('mode slider is on')\n\n let currentSize\n const sizeStoreSub = currentSizeStore.subscribe(value => {\n currentSize = value;\n });\n\n // props\n export let currentCategory = undefined\n // vars and computed properties\n const getI18n = getContext('getI18n')\n const I18nReplace = getContext('I18nReplace')\n\n export let configuration\n\n\n\n function changeSize(size) {\n console.log('click', window.ovsSizeIsDragging)\n if (!window.ovsSizeIsDragging) {\n console.log('change size', size)\n currentSizeStore.set(size)\n } else {\n console.log('isDragging, dont change size')\n }\n }\n\n let currentSizeData, correspondingSizesText\n\n onMount(() => {\n // console.log('on mount')\n const ele = document.getElementById('contSelector');\n ele.style.cursor = 'grab';\n\n let pos = { top: 0, left: 0, x: 0, y: 0 };\n\n\n\n const mouseDownHandler = (e) => {\n // console.log('mousedown')\n ele.style.cursor = 'grabbing';\n ele.style.userSelect = 'none';\n\n e.preventDefault()\n e.stopPropagation()\n e.stopImmediatePropagation()\n\n pos = {\n left: ele.scrollLeft,\n top: ele.scrollTop,\n // Get the current mouse position\n x: e.clientX,\n y: e.clientY,\n };\n\n ele.addEventListener('mousemove', mouseMoveHandler);\n document.addEventListener('mouseup', mouseUpHandler);\n };\n\n const mouseMoveHandler = (e) => {\n // console.log('mousemove')\n // How far the mouse has been moved\n const dx = e.clientX - pos.x;\n const dy = e.clientY - pos.y;\n\n // Scroll the element\n ele.scrollTop = pos.top - dy;\n ele.scrollLeft = pos.left - dx;\n\n window.ovsSizeIsDragging = true;\n\n };\n\n const mouseUpHandler = (e) => {\n // console.log('mouseup isDragging?', window.ovsSizeIsDragging, e)\n if (window.ovsSizeIsDragging) {\n e.preventDefault()\n e.stopPropagation()\n window.setTimeout(()=> window.ovsSizeIsDragging = false)\n // isDragging = false;\n }\n ele.removeEventListener('mousemove', mouseMoveHandler);\n document.removeEventListener('mouseup', mouseUpHandler);\n };\n\n\n // Attach the handler\n ele.addEventListener('mousedown', mouseDownHandler);\n })\n\n $: currentSizeData = currentSize ? currentCategory.sizes.find(o => {\n return o.code === currentSize.toString()\n }) : {}\n\n\n let selectorVar\n let itemBoxWidth\n let sizesArray\n let sizeIndex\n\n afterUpdate(() => {\n console.log('afterupdate')\n if (currentCategory) {\n\n selectorVar = document.querySelector('.ovs-sizes__containsSelector');\n\n itemBoxWidth = document.querySelector('.ovs-sizes__selectorItem').offsetWidth;\n\n sizesArray = currentCategory.sizes;\n\n if (currentSize) {\n\n sizeIndex = sizesArray.indexOf(currentSizeData);\n\n // selectorVar.scrollLeft = (sizeIndex - 1) * itemBoxWidth;\n let left = (sizeIndex - 1) * itemBoxWidth;\n selectorVar.scroll({\n left: left,\n top: 0,\n behavior: 'smooth'\n })\n //console.log('scrolled-left', selectorVar.scrollLeft)\n //console.log('what?', sizeIndex, itemBoxWidth, sizesArray)\n } else {\n\n selectorVar.scrollLeft = 0;\n //console.log('scrolled-left is zero')\n }\n }\n });\n onMount( () => {\n\n console.log('mount')\n\n })\n\n</script>\n\n<Title type=\"sub-central\">{getI18n('instructions-scroll')}</Title>\n<div class=\"ovs-sizes__containsSelector\" id=\"contSelector\">\n <div class=\"ovs-sizes__selector\">\n {#each currentCategory.sizes as size, i}\n <div class=\"ovs-sizes__selectorItem\" on:click={() => changeSize(size.code)}>\n <div class=\"ovs-sizes__selectorItemContainer {size.code === currentSize ? 'ovs-sizes__selectorItemContainer--current' : ''}\">\n <div class=\"ovs-sizes__monthsValue\">{ size.code }</div>\n <div class=\"ovs-sizes__monthsText\">{ getI18n(size.dataType) }</div>\n </div>\n </div>\n {/each}\n </div>\n</div>\n<div class=\"ovs-sizes__transCover\"></div>\n{#if currentSize && currentSizeData}\n <div class=\"ovs-sizes__full-sections\">\n {#each Object.entries(currentSizeData.measures) as [key, measure] }\n <Section text=\"{getI18n(key)}\" size=\"{measure}\" mode=\"{currentCategory.mode}\"></Section>\n <span class=\"ovs-sizes__low-border\"></span>\n {/each}\n </div>\n{/if}\n\n<style type=\"text/scss\">\n @import \"./../scss/base\";\n\n :global(.ovs-sizes__fullSize_howTo.ovs-sizes__show) {\n opacity: 1 !important;\n z-index: 1 !important;\n }\n\n :global(.ovs-sizes__fullSizeContent.ovs-sizes__hide) {\n opacity: 0 !important;\n z-index: 0 !important;\n }\n\n\n .ovs-sizes {\n\n $headerHeight: 68px;\n\n &__containsSelector {\n overflow: auto;\n width: 100%;\n height: 1000px;\n position: absolute;\n @include tabletPortrait {\n\n }\n }\n &__transCover {\n pointer-events: none;\n position: absolute;\n width: 100%;\n height: $headerHeight;\n background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 25%, rgba(255,255,255,0) 75%, rgba(255,255,255,1) 100%);\n }\n\n &__selectorMainView {\n position: relative;\n height: max-content;\n }\n\n &__selector {\n display: flex;\n font-size: 0;\n width: fit-content;\n width: -moz-fit-content;\n padding-left: 11.5vw;\n padding-right: 37vw;\n @include tabletPortrait {\n padding-left: 60px;\n padding-right: 165.5px;\n }\n }\n\n &__selectorItem {\n box-sizing: border-box;\n height: getVw(63px);\n font-size: 20px;\n cursor: pointer;\n user-select: none;\n width: 25.21vw;\n\n &:last-of-type {\n }\n\n @include tabletPortrait {\n height: 70px;\n width: 95px;\n }\n\n &:nth-child(6), &:last-of-type {\n border-right: none;\n }\n\n &Container {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n border: 2px solid $white;\n display: block;\n justify-content: center;\n align-items: center;\n color: rgb(120, 120, 120);\n @include tabletPortrait {\n }\n\n &--current {\n font-weight: bold;\n color: black;\n }\n }\n\n &--empty {\n cursor: auto;\n }\n }\n\n\n &__monthsValue {\n text-align: center;\n font-size: 20px;\n margin-top: 2vw;\n @include tabletPortrait {\n margin-top: 0.8vw;\n\n }\n }\n\n &__monthsText {\n text-transform: uppercase;\n text-align: center;\n font-size: 9px;\n @include tabletPortrait {\n }\n }\n\n &__full-sections {\n margin-top: 90px;\n border-top: 1px solid $veryLightGrey;\n border-bottom: 1px solid $veryLightGrey;\n width: 100%;\n @include tabletPortrait {\n }\n }\n\n &__low-border {\n display: block;\n width: 100%;\n height: 1px;\n background-color: $veryLightGrey;\n &:last-of-type {\n background-color: $white;\n }\n }\n\n }\n\n</style>\n","<script>\n\timport { onMount, setContext } from 'svelte';\n\t// todo read from json in HTML, not from configuration file\n\timport * as localConf from './configuration.json'\n\timport Mode_fullSize from './components/mode_fullSize.svelte'\n\timport Mode_sections from './components/mode_sections.svelte'\n\timport Mode_slider from './components/mode_slider.svelte'\n\timport Mode_mounting from './components/mode_mounting.svelte'\n\timport Title from './components/title.svelte'\n\timport {currentSizeStore} from './stores/stores'\n\n\tlet configuration = {\n\t\t\"language\": \"it\"\n\t}\n\n\tconst showLayerClass = 'ovs-sizes--active'\n\tlet mainComponent = `mounting`\n\tlet currentCategory = null\n\tlet currentSize\n\tlet storedCategory\n\tlet notAvailableMsg\n\tlet closeButton\n\tconst sizeStoreSub = currentSizeStore.subscribe(value => {\n\t\tcurrentSize = value;\n\t});\n\n\n\t// todo load from properties\n\texport let testData = {\n\t\t\"language\": \"en\",\n\t\t\"category\": \"Women-Jeans\",\n\t\t\"firstSize\": \"L\",\n\t\t\"selectedSize\": \"M\",\n\t\t\"productName\": \"Pantaloni crop svasati con cintura\",\n\t\t\"productImage\": \"https://www.ovs.it/dw/image/v2/AAKZ_PRD/on/demandware.static/-/Sites-ovs-it-master/default/dwb3d21315/images/hi-res/11636725.jpg\"\n\t}\n\n\n\tconst getContainer = () => { return document.querySelector('.ovs-sizes__container')};\n\tconst getOverlay = () => { return document.querySelector('.ovs-sizes__overlay')};\n\n\tconst closeOverlay = (e) => {\n\t\tconsole.log('eve', e, e.target, e.currentTarget, window.ovsSizeIsDragging)\n\t\tif (!window.ovsSizeIsDragging) {\n\t\t\tconst container = getContainer();\n\t\t\tconst overlay = getOverlay();\n\t\t\toverlay.classList.remove(showLayerClass)\n\t\t\tdocument.body.style.overflow = \"auto\";\n\t\t\twindow.requestAnimationFrame(() => {\n\t\t\t\tsetTimeout(() =>\n\t\t\t\t\t\tcontainer.classList.remove(showLayerClass), 150);\n\t\t\t})\n\t\t}\n\t}\n\n\tconst openOverlay = function (language, categoryID, firstSize, selectedSize, productName, productImage) {\n\t\tconsole.log('clicked');\n\t\tconst container = getContainer();\n\t\tconsole.log('container', container, showLayerClass)\n\t\tcontainer.classList.add(showLayerClass)\n\t\twindow.requestAnimationFrame(() => {\n\t\t\tdocument.body.style.overflow = \"hidden\";\n\t\t\tconst overlay = getOverlay();\n\t\t\tsetTimeout(() => overlay.classList.add(showLayerClass));\n\t\t})\n\t\tconsole.log(\"passing to initialize\", language, categoryID, firstSize, selectedSize, productName, productImage)\n\t\tinitialize (language, categoryID, firstSize, selectedSize, productName, productImage)\n\t}\n\n\tconst initialize = (language, categoryID, firstSize, selectedSize, productName, productImage) => {\n\t\tconsole.log('receiving ', language, categoryID, firstSize, selectedSize, productName, productImage)\n\n\t\tlet category\n\t\t// map categoryID -> category\n\t\tcategory = categoryID\n\n\t\tconsole.log('what category is passed', categoryID, category)\n\n\n\t\t// loop through categories to check which categories have this category ID\n\t\tlet applicableCategories = localConf.sourceCategories[categoryID]\n\n\t\t// if size of applicableCategories > 1\n\t\t// check category using firstSize\n\t\t// if firstSize is literal, use \"literal\" category, otherwise use default\n\t\tconsole.log('what category is passed3', categoryID, category)\n\n\n\n\t\tif (applicableCategories){\n\t\t\tconsole.log('the category exists');\n\n\t\t\tlet categoryStorage = applicableCategories.length\n\n\t\t\t// if size of applicableCategories === 0\n\t\t\t// throw error\n\t\t\tif (categoryStorage === 0) {\n\t\t\t\tconsole.log('the category exists but its empty');\n\t\t\t} else if (categoryStorage > 0){\n\t\t\t\tcategory = applicableCategories[0];\n\t\t\t\tif (categoryStorage === 1) {\n\t\t\t\t\tconsole.log('the category exists and has one subcategory only');\n\n\t\t\t\t} else if (categoryStorage > 1){\n\t\t\t\t\tconsole.log('the category exists and has more than one subcategories');\n\n\t\t\t\t\tlet regExp = /[a-zA-Z]/;\n\n\t\t\t\t\tif (regExp.exec(firstSize)) {\n\t\t\t\t\t\tcategory = applicableCategories[1];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t} else {\n\t\t\tconsole.log('the category doesnt exist');\n\t\t}\n\n\n\n\t\tconfiguration = {\n\t\t\t\"language\": language,\n\t\t\t\"category\": category,\n\t\t\t\"firstSize\": firstSize,\n\t\t\t\"selectedSize\": selectedSize,\n\t\t\t\"productName\": productName,\n\t\t\t\"productImage\": productImage\n\t\t}\n\n\t\tcurrentSizeStore.set(selectedSize)\n\n\n\t\tconsole.warn('cats', configuration, configuration.category, localConf.categories)\n\t\tstoredCategory = localConf.categories[configuration.category] || false\n\t\tif (!storedCategory.sizes || storedCategory.sizes.length === 0) {\n\t\t\tstoredCategory = false\n\t\t}\n\t\tconsole.log('Is there a stored category?', storedCategory)\n\t\tcurrentCategory = storedCategory || configuration.category\n\t\tconsole.log('my current category', currentCategory)\n\t\tif (currentCategory) {\n\t\t\tmainComponent = `${currentCategory.mode}`\n\t\t\tconsole.warn('change main component', mainComponent)\n\t\t\tconsole.log('this is the stored category', category)\n\t\t}\n\n\t\tif (!currentCategory) {\n\t\t\tmanageError (getI18n(\"errorMessages\", \"noCategory\") + ' ' + configuration.category)\n\t\t} else {\n\t\t}\n\t\tmainTitle = getI18n('title')\n\t\tnotAvailableMsg = getI18n(\"errorMessages\", \"notAvailable\")\n\t\tcloseButton = getI18n('close')\n\t}\n\n\n\t// expose main function\n\twindow.ovsSizeShowOverlay = openOverlay\n\n\twindow.ovsSizeLanguage = () => configuration.language\n\twindow.ovsSizeIsDragging = false\n\n\tconst getI18n = (item, sub = false) => {\n\t\tlet translations = localConf.translations[window.ovsSizeLanguage()]\n\t\tif (sub) {\n\t\t\tif (translations[item]??[sub]) {\n\t\t\t\treturn translations[item][sub]\n\t\t\t} else {\n\t\t\t\treturn`${item}.${sub} not translated`\n\t\t\t}\n\t\t} else {\n\t\t\tif (translations[item]) {\n\t\t\t\treturn translations[item]\n\t\t\t} else {\n\t\t\t\treturn `${item} not translated`\n\t\t\t}\n\t\t}\n\t}\n\tlet mainTitle = getI18n('title')\n\n\tconst I18nReplace = (key, toReplace = [], substitutes = []) => {\n\t\tconsole.log('start key', key)\n\t\tlet srcString = getI18n(key)\n\t\tconsole.log('start string', srcString)\n\t\tlet replacements = typeof(toReplace) === 'string' ? [toReplace] : toReplace\n\t\tlet subs = typeof(substitutes) === 'string' ? [substitutes] : substitutes\n\t\tfor (let i = 0; i < replacements.length; i++) {\n\t\t\tconsole.log('trying to replace ', replacements[i], 'with', subs[i])\n\t\t\tsrcString = srcString.replace(new RegExp(replacements[i], 'g'), subs[i])\n\t\t}\n\t\tconsole.log('final string', srcString)\n\t\treturn srcString\n\t}\n\tsetContext('getI18n', getI18n)\n\tsetContext('I18nReplace', I18nReplace)\n\n\tfunction manageError (msg) {\n\t\tconsole.error(`OVS Size error: ${msg}`, msg)\n\t}\n\n\tlet modes = {\n\t\t\"slider\": Mode_slider,\n\t\t\"mounting\": Mode_mounting,\n\t\t\"sections\": Mode_sections,\n\t\t\"fullSize\": Mode_fullSize,\n\t}\n\n\tonMount( () => {\n\t\tif (window.ovsSizeTestMode) {\n\t\t\twindow.ovsSizeShowOverlay(...Object.values(testData))\n\t\t}\n\t\t// only for DEV, with default data\n\t\tif (!isProduction) {\n\t\t\topenOverlay(testData.language, testData.category, testData.firstSize, testData.selectedSize, testData.productName, testData.productImage);\n\t\t}\n\n\t})\n\n\t$: getComponent = modes[mainComponent]\n\nconsole.log\n</script>\n\n<div class=\"ovs-sizes ovs-sizes__container\">\n\t<div class=\"ovs-sizes__overlay\" on:click|self={closeOverlay}>\n\t\t<div class=\"ovs-sizes__content\">\n\t\t\t<header class=\"ovs-sizes__header\" on:click={closeOverlay}>\n\t\t\t\t{#if configuration.productName}\n\t\t\t\t<div class=\"ovs-sizes__headerProduct\">\n\t\t\t\t\t<div class=\"ovs-sizes__headerImg\"><img src=\"{ configuration.productImage }\"></div>\n\t\t\t\t\t<div class=\"ovs-sizes__headerText\"><p>{ configuration.productName }</p></div>\n\t\t\t\t</div>\n\t\t\t\t{/if}\n\t\t\t\t<div class=\"ovs-sizes__headerClose\">\n\n\t\t\t\t</div>\n\t\t\t</header>\n\t\t\t{#if currentCategory}\n\t\t\t<Title>{ mainTitle }</Title>\n\t\t\t<div class=\"ovs-sizes__main\">\n\t\t\t\t{#if storedCategory }\n\t\t\t\t\t<svelte:component this={getComponent} currentCategory=\"{currentCategory}\"/>\n\t\t\t\t{:else}\n\t\t\t\t\t<div class=\"ovs-sizes__not-available\">\n\t\t\t\t\t\t<div class=\"ovs-sizes__not-available_text\">{notAvailableMsg}</div>\n\t\t\t\t\t\t<div class=\"ovs-sizes__not-available_close-button\" on:click={closeOverlay}>{closeButton}</div>\n\t\t\t\t\t</div>\n\t\t\t\t{/if}\n\t\t\t</div>\n\t\t\t{/if}\n\t\t</div>\n\t</div>\n</div>\n\n<style type=\"text/scss\">\n\t@import \"./scss/base\";\n\n\t/* global to avoid tree shaking */\n\t:global(.ovs-sizes__container.ovs-sizes--active) {\n\t\tdisplay: block !important;\n\t}\n\t:global(.ovs-sizes__overlay.ovs-sizes--active) {\n\t\t opacity: 1 !important;\n\t\t}\n\t:global(.ovs-sizes__overlay.ovs-sizes--active .ovs-sizes__content) {\n\t\t\ttop: 0 !important;\n\t}\n\n\t.ovs-sizes {\n\t\t&__container {\n\t\t\tdisplay: none;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\t// defaults for all application\n\t\t\tfont-family: $fontBarlow;\n\t\t\tfont-size: 13px;\n\t\t\tline-height: 1.2;\n\t\t\tcolor: $standardTextColour;\n\n\t\t\tposition: fixed;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tz-index: 1050;\n\n\t\t\t&--active {\n\n\t\t\t}\n\t\t}\n\t\t&__overlay {\n\t\t\ttransition: opacity .15s ease-in;\n\t\t\tbackground-color: rgba(21,21,21,.2);\n\t\t\theight: 100%;\n\t\t\toverflow-y: scroll;\n\t\t\topacity: 0;\n\t\t\t@include tabletPortrait {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: flex-start;\n\t\t\t\tjustify-content: center;\n\t\t\t}\n\t\t}\n\t\t$headerHeight: 68px;\n\t\t@mixin centeredElement {\n\t\t\twidth: 100%;\n\t\t\tbackground: $white;\n\t\t\t@include tabletPortrait {\n\t\t\t\twidth: 414px;\n\t\t\t\tmax-width: 414px;\n\t\t\t}\n\t\t}\n\t\t&__content {\n\t\t\t@include centeredElement;\n\t\t\tmin-height: 100%;\n\t\t\tposition: relative;\n\t\t\ttop: -5%;\n\t\t\ttransition: top .15s ease-in;\n\t\t\tpadding-top: $headerHeight;\n\t\t\toverflow: hidden;\n\t\t\t@include tabletPortrait {\n\t\t\t\tpadding-top: 0;\n\t\t\t\tborder-right: 1px solid $veryLightGrey;\n\t\t\t\tmin-height: 100%;\n\t\t\t}\n\n\t\t}\n\t\t&__title {\n\t\t\tfont-family: $fontBarlow;\n\t\t\tfont-weight: normal;\n\t\t\tfont-size: 24px;\n\t\t\tcolor: $standardTextColour;\n\t\t}\n\t\t&__header {\n\t\t\t@include centeredElement;\n\t\t\tcursor: pointer;\n\t\t\theight: $headerHeight;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tz-index: 1;\n\t\t\tposition: fixed;\n\t\t\tdisplay: flex;\n\t\t\tborder-bottom: 1px solid $veryLightGrey;\n\t\t\talign-items: flex-end;\n\t\t\tjustify-content: flex-end;\n\t\t\t@include tabletPortrait {\n\t\t\t\tposition: static;\n\t\t\t}\n\t\t}\n\t\t&__headerProduct {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tflex-grow: 1;\n\t\t}\n\t\t&__headerImg {\n\t\t\tfont-size: 0;\n\t\t\timg {\n\t\t\t\tobject-fit: cover;\n\t\t\t\twidth: 48px;\n\t\t\t\theight: $headerHeight;\n\t\t\t}\n\t\t}\n\t\t&__headerText {\n\t\t\tpadding-left: 15px ;\n\t\t\tp {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t}\n\t\t&__headerClose {\n\t\t\theight: $headerHeight;\n\t\t\twidth: $headerHeight;\n\t\t\tbackground-size: 15px;\n\t\t\tbackground-position: center;\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-image: url(\"data:image/svg+xml,%3Csvg width='9px' height='9px' viewBox='0 0 9 9' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Ctitle%3E8AEA5CD0-9F4C-46A4-B041-B23B3A101CE1@3x%3C/title%3E%3Cg id='M---Product-Detail-Page' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='guida_taglie---bambino---v2---tip' transform='translate(-350.000000, -375.000000)' fill='%23151515' fill-rule='nonzero'%3E%3Cg id='Combined-Shape' transform='translate(350.000000, 375.000000)'%3E%3Cpath d='M8.85735706,0.142642944 C9.04754765,0.332833537 9.04754765,0.641193413 8.85735706,0.831384005 L5.189,4.5 L8.85735706,8.16861599 C9.02377382,8.33503276 9.04457592,8.59192289 8.91976334,8.780958 L8.85735706,8.85735706 C8.66716646,9.04754765 8.35880659,9.04754765 8.16861599,8.85735706 L8.16861599,8.85735706 L4.5,5.189 L0.831384005,8.85735706 C0.641193413,9.04754765 0.332833537,9.04754765 0.142642944,8.85735706 C-0.0475476481,8.66716646 -0.0475476481,8.35880659 0.142642944,8.16861599 L3.811,4.5 L0.142642944,0.831384005 C-0.023773824,0.664967237 -0.0445759201,0.408077111 0.0802366561,0.219042003 L0.142642944,0.142642944 C0.332833537,-0.0475476481 0.641193413,-0.0475476481 0.831384005,0.142642944 L0.831384005,0.142642944 L4.5,3.811 L8.16861599,0.142642944 C8.35880659,-0.0475476481 8.66716646,-0.0475476481 8.85735706,0.142642944 Z'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E\");\n\t\t}\n\t\t&__main {\n\t\t\tposition: relative;\n\t\t\t//overflow-y: hidden;\n\t\t}\n\t\t&__not-available{\n\t\t\ttext-align: center;\n\t\t\t&_close-button {\n\t\t\t\ttext-transform: uppercase;\n\t\t\t\tfont-weight: bold;\n\t\t\t\tborder: 1px solid black;\n\t\t\t\tborder-radius: 1px;\n\t\t\t\tpadding: 7px;\n\t\t\t\twidth: 94px;\n\t\t\t\tmargin: 20px auto 0;\n\t\t\t\tletter-spacing: .025em;\n\t\t\t\ttransition: all .2s ease-out;\n\t\t\t\t&:hover {\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\tbackground-color: black;\n\t\t\t\t\tcolor: white;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n</style>\n","import App from './App.svelte';\n\nconst app = new App({\n\ttarget: document.body,\n\tprops: {\n\t\tname: 'world'\n\t}\n});\n\nexport default app;"],"names":["noop","run","fn","blank_object","Object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","create_slot","definition","ctx","$$scope","slot_ctx","get_slot_context","tar","src","k","assign","slice","update_slot","slot","slot_definition","dirty","get_slot_changes_fn","get_slot_context_fn","slot_changes","lets","undefined","merged","len","Math","max","length","i","get_slot_changes","slot_context","p","append","target","node","appendChild","insert","anchor","insertBefore","detach","parentNode","removeChild","destroy_each","iterations","detaching","d","element","name","document","createElement","text","data","createTextNode","space","empty","listen","event","handler","options","addEventListener","removeEventListener","attr","attribute","value","removeAttribute","getAttribute","setAttribute","set_data","wholeText","current_component","set_current_component","component","get_current_component","Error","onMount","$$","on_mount","push","createEventDispatcher","type","detail","callbacks","e","createEvent","initCustomEvent","custom_event","call","setContext","key","context","set","getContext","get","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","Promise","resolve","update_scheduled","add_render_callback","flushing","seen_callbacks","Set","flush","update","pop","callback","has","add","clear","fragment","before_update","after_update","outroing","outros","group_outros","r","c","check_outros","transition_in","block","local","delete","transition_out","o","create_component","mount_component","customElement","on_destroy","m","new_on_destroy","map","filter","destroy_component","make_dirty","then","fill","init","instance","create_fragment","not_equal","props","parent_component","bound","on_disconnect","Map","skip_bound","ready","ret","rest","hydrate","nodes","Array","from","childNodes","children","l","intro","SvelteComponent","[object Object]","this","$destroy","index","indexOf","splice","$$props","obj","$$set","keys","letter","version","dispatch","console","log","image","basePath","imagePath","range","mode","age","size","gender","hasImg","imageRange","imageMode","imageAge","description","title","subscriber_queue","currentSizeStore","start","stop","subscribers","new_value","run_queue","s","subscribe","invalidate","subscriber","writable","code","entries","measures","sizes","activeClass","inactiveClass","currentSize","currentCategory","getI18n","changeSize","closeHowTo","currentSizeData","getSection","querySelector","removeSection","measureId","howToIndex","window","requestAnimationFrame","howToSection","setTimeout","classList","remove","measuresSection","ovsSizeShowHowTo","buttonId","mainSection","cellNumberRemain","otherCells","find","toString","similarSizes","correspondingSizes","howto","I18nReplace","correspondingSizesText","similarSizeText","noImg","baseString","join","replace","dataType","selectorVar","itemBoxWidth","sizesArray","sizeIndex","configuration","ovsSizeIsDragging","ele","getElementById","style","cursor","pos","top","left","x","y","mouseMoveHandler","dx","clientX","dy","clientY","scrollTop","scrollLeft","mouseUpHandler","preventDefault","stopPropagation","userSelect","stopImmediatePropagation","offsetWidth","scroll","behavior","productName","productImage","showLayerClass","storedCategory","notAvailableMsg","closeButton","language","mainComponent","testData","category","firstSize","selectedSize","getContainer","getOverlay","initialize","categoryID","applicableCategories","localConf.sourceCategories","categoryStorage","exec","msg","warn","localConf.categories","error","mainTitle","ovsSizeShowOverlay","container","body","overflow","overlay","ovsSizeLanguage","item","sub","translations","localConf.translations","toReplace","substitutes","srcString","replacements","subs","RegExp","modes","slider","Mode_slider","mounting","Mode_mounting","sections","Mode_sections","fullSize","Mode_fullSize","ovsSizeTestMode","values","getComponent","currentTarget"],"mappings":"gCAAA,SAASA,KAgBT,SAASC,EAAIC,GACT,OAAOA,IAEX,SAASC,IACL,OAAOC,OAAOC,OAAO,MAEzB,SAASC,EAAQC,GACbA,EAAIC,QAAQP,GAEhB,SAASQ,EAAYC,GACjB,MAAwB,mBAAVA,EAElB,SAASC,EAAeC,EAAGC,GACvB,OAAOD,GAAKA,EAAIC,GAAKA,EAAID,IAAMC,GAAOD,GAAkB,iBAANA,GAAgC,mBAANA,EA4BhF,SAASE,EAAYC,EAAYC,EAAKC,EAASf,GAC3C,GAAIa,EAAY,CACZ,MAAMG,EAAWC,EAAiBJ,EAAYC,EAAKC,EAASf,GAC5D,OAAOa,EAAW,GAAGG,IAG7B,SAASC,EAAiBJ,EAAYC,EAAKC,EAASf,GAChD,OAAOa,EAAW,IAAMb,EA9D5B,SAAgBkB,EAAKC,GAEjB,IAAK,MAAMC,KAAKD,EACZD,EAAIE,GAAKD,EAAIC,GACjB,OAAOF,EA2DDG,CAAON,EAAQD,IAAIQ,QAAST,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