{"version":3,"file":"ElectionCenter.js","sources":["../../../Svelte/node_modules/svelte/src/runtime/internal/utils.js","../../../Svelte/node_modules/svelte/src/runtime/internal/dom.js","../../../Svelte/node_modules/svelte/src/runtime/internal/lifecycle.js","../../../Svelte/node_modules/svelte/src/runtime/internal/scheduler.js","../../../Svelte/node_modules/svelte/src/runtime/internal/transitions.js","../../../Svelte/node_modules/svelte/src/runtime/internal/each.js","../../../Svelte/node_modules/svelte/src/runtime/internal/spread.js","../../../Svelte/node_modules/svelte/src/runtime/internal/Component.js","../../../Svelte/node_modules/svelte/src/shared/version.js","../../../Svelte/node_modules/svelte/src/runtime/internal/disclose-version/index.js","../../../Svelte/node_modules/svelte/src/runtime/store/index.js","../../../Svelte/src/icons/CloseIcon.svelte","../../../Svelte/src/lib/Toast.svelte","../../../Svelte/src/api/common.ts","../../../Svelte/src/lib/Button.svelte","../../../Svelte/src/lib/Calendar.svelte","../../../Svelte/src/translations/Common.ts","../../../Svelte/src/translations/ElectionCenter.ts","../../../Svelte/src/api/users.ts","../../../Svelte/src/api/address.ts","../../../Svelte/src/assets/generated/vote2_800.avif","../../../Svelte/src/icons/ExternalPageIcon.svelte","../../../Svelte/src/api/elections.ts","../../../Svelte/src/lib/Row.svelte","../../../Svelte/src/lib/Fieldset.svelte","../../../Svelte/src/lib/Input.svelte","../../../Svelte/src/lib/Select.svelte","../../../Svelte/src/translations/Address.ts","../../../Svelte/src/lib/AddressSearch.svelte","../../../Svelte/src/lib/AddressEditBox.svelte","../../../Svelte/src/routes/ElectionCenter/+page.svelte"],"sourcesContent":["/** @returns {void} */\nexport function noop() {}\n\nexport const identity = (x) => x;\n\n/**\n * @template T\n * @template S\n * @param {T} tar\n * @param {S} src\n * @returns {T & S}\n */\nexport function assign(tar, src) {\n\t// @ts-ignore\n\tfor (const k in src) tar[k] = src[k];\n\treturn /** @type {T & S} */ (tar);\n}\n\n// Adapted from https://github.com/then/is-promise/blob/master/index.js\n// Distributed under MIT License https://github.com/then/is-promise/blob/master/LICENSE\n/**\n * @param {any} value\n * @returns {value is PromiseLike<any>}\n */\nexport function is_promise(value) {\n\treturn (\n\t\t!!value &&\n\t\t(typeof value === 'object' || typeof value === 'function') &&\n\t\ttypeof (/** @type {any} */ (value).then) === 'function'\n\t);\n}\n\n/** @returns {void} */\nexport function add_location(element, file, line, column, char) {\n\telement.__svelte_meta = {\n\t\tloc: { file, line, column, char }\n\t};\n}\n\nexport function run(fn) {\n\treturn fn();\n}\n\nexport function blank_object() {\n\treturn Object.create(null);\n}\n\n/**\n * @param {Function[]} fns\n * @returns {void}\n */\nexport function run_all(fns) {\n\tfns.forEach(run);\n}\n\n/**\n * @param {any} thing\n * @returns {thing is Function}\n */\nexport function is_function(thing) {\n\treturn typeof thing === 'function';\n}\n\n/** @returns {boolean} */\nexport function safe_not_equal(a, b) {\n\treturn a != a ? b == b : a !== b || (a && typeof a === 'object') || typeof a === 'function';\n}\n\nlet src_url_equal_anchor;\n\n/**\n * @param {string} element_src\n * @param {string} url\n * @returns {boolean}\n */\nexport function src_url_equal(element_src, url) {\n\tif (element_src === url) return true;\n\tif (!src_url_equal_anchor) {\n\t\tsrc_url_equal_anchor = document.createElement('a');\n\t}\n\t// This is actually faster than doing URL(..).href\n\tsrc_url_equal_anchor.href = url;\n\treturn element_src === src_url_equal_anchor.href;\n}\n\n/** @param {string} srcset */\nfunction split_srcset(srcset) {\n\treturn srcset.split(',').map((src) => src.trim().split(' ').filter(Boolean));\n}\n\n/**\n * @param {HTMLSourceElement | HTMLImageElement} element_srcset\n * @param {string | undefined | null} srcset\n * @returns {boolean}\n */\nexport function srcset_url_equal(element_srcset, srcset) {\n\tconst element_urls = split_srcset(element_srcset.srcset);\n\tconst urls = split_srcset(srcset || '');\n\n\treturn (\n\t\turls.length === element_urls.length &&\n\t\turls.every(\n\t\t\t([url, width], i) =>\n\t\t\t\twidth === element_urls[i][1] &&\n\t\t\t\t// We need to test both ways because Vite will create an a full URL with\n\t\t\t\t// `new URL(asset, import.meta.url).href` for the client when `base: './'`, and the\n\t\t\t\t// relative URLs inside srcset are not automatically resolved to absolute URLs by\n\t\t\t\t// browsers (in contrast to img.src). This means both SSR and DOM code could\n\t\t\t\t// contain relative or absolute URLs.\n\t\t\t\t(src_url_equal(element_urls[i][0], url) || src_url_equal(url, element_urls[i][0]))\n\t\t)\n\t);\n}\n\n/** @returns {boolean} */\nexport function not_equal(a, b) {\n\treturn a != a ? b == b : a !== b;\n}\n\n/** @returns {boolean} */\nexport function is_empty(obj) {\n\treturn Object.keys(obj).length === 0;\n}\n\n/** @returns {void} */\nexport function validate_store(store, name) {\n\tif (store != null && typeof store.subscribe !== 'function') {\n\t\tthrow new Error(`'${name}' is not a store with a 'subscribe' method`);\n\t}\n}\n\nexport function subscribe(store, ...callbacks) {\n\tif (store == null) {\n\t\tfor (const callback of callbacks) {\n\t\t\tcallback(undefined);\n\t\t}\n\t\treturn noop;\n\t}\n\tconst unsub = store.subscribe(...callbacks);\n\treturn unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\n\n/**\n * Get the current value from a store by subscribing and immediately unsubscribing.\n *\n * https://svelte.dev/docs/svelte-store#get\n * @template T\n * @param {import('../store/public.js').Readable<T>} store\n * @returns {T}\n */\nexport function get_store_value(store) {\n\tlet value;\n\tsubscribe(store, (_) => (value = _))();\n\treturn value;\n}\n\n/** @returns {void} */\nexport function component_subscribe(component, store, callback) {\n\tcomponent.$$.on_destroy.push(subscribe(store, callback));\n}\n\nexport function create_slot(definition, ctx, $$scope, fn) {\n\tif (definition) {\n\t\tconst slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n\t\treturn definition[0](slot_ctx);\n\t}\n}\n\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n\treturn definition[1] && fn ? assign($$scope.ctx.slice(), definition[1](fn(ctx))) : $$scope.ctx;\n}\n\nexport function get_slot_changes(definition, $$scope, dirty, fn) {\n\tif (definition[2] && fn) {\n\t\tconst lets = definition[2](fn(dirty));\n\t\tif ($$scope.dirty === undefined) {\n\t\t\treturn lets;\n\t\t}\n\t\tif (typeof lets === 'object') {\n\t\t\tconst merged = [];\n\t\t\tconst len = Math.max($$scope.dirty.length, lets.length);\n\t\t\tfor (let i = 0; i < len; i += 1) {\n\t\t\t\tmerged[i] = $$scope.dirty[i] | lets[i];\n\t\t\t}\n\t\t\treturn merged;\n\t\t}\n\t\treturn $$scope.dirty | lets;\n\t}\n\treturn $$scope.dirty;\n}\n\n/** @returns {void} */\nexport function update_slot_base(\n\tslot,\n\tslot_definition,\n\tctx,\n\t$$scope,\n\tslot_changes,\n\tget_slot_context_fn\n) {\n\tif (slot_changes) {\n\t\tconst slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n\t\tslot.p(slot_context, slot_changes);\n\t}\n}\n\n/** @returns {void} */\nexport function update_slot(\n\tslot,\n\tslot_definition,\n\tctx,\n\t$$scope,\n\tdirty,\n\tget_slot_changes_fn,\n\tget_slot_context_fn\n) {\n\tconst slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n\tupdate_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn);\n}\n\n/** @returns {any[] | -1} */\nexport function get_all_dirty_from_scope($$scope) {\n\tif ($$scope.ctx.length > 32) {\n\t\tconst dirty = [];\n\t\tconst length = $$scope.ctx.length / 32;\n\t\tfor (let i = 0; i < length; i++) {\n\t\t\tdirty[i] = -1;\n\t\t}\n\t\treturn dirty;\n\t}\n\treturn -1;\n}\n\n/** @returns {{}} */\nexport function exclude_internal_props(props) {\n\tconst result = {};\n\tfor (const k in props) if (k[0] !== '$') result[k] = props[k];\n\treturn result;\n}\n\n/** @returns {{}} */\nexport function compute_rest_props(props, keys) {\n\tconst rest = {};\n\tkeys = new Set(keys);\n\tfor (const k in props) if (!keys.has(k) && k[0] !== '$') rest[k] = props[k];\n\treturn rest;\n}\n\n/** @returns {{}} */\nexport function compute_slots(slots) {\n\tconst result = {};\n\tfor (const key in slots) {\n\t\tresult[key] = true;\n\t}\n\treturn result;\n}\n\n/** @returns {(this: any, ...args: any[]) => void} */\nexport function once(fn) {\n\tlet ran = false;\n\treturn function (...args) {\n\t\tif (ran) return;\n\t\tran = true;\n\t\tfn.call(this, ...args);\n\t};\n}\n\nexport function null_to_empty(value) {\n\treturn value == null ? '' : value;\n}\n\nexport function set_store_value(store, ret, value) {\n\tstore.set(value);\n\treturn ret;\n}\n\nexport const has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\n\nexport function action_destroyer(action_result) {\n\treturn action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\n\n/** @param {number | string} value\n * @returns {[number, string]}\n */\nexport function split_css_unit(value) {\n\tconst split = typeof value === 'string' && value.match(/^\\s*(-?[\\d.]+)([^\\s]*)\\s*$/);\n\treturn split ? [parseFloat(split[1]), split[2] || 'px'] : [/** @type {number} */ (value), 'px'];\n}\n\nexport const contenteditable_truthy_values = ['', true, 1, 'true', 'contenteditable'];\n","import { contenteditable_truthy_values, has_prop } from './utils.js';\n\nimport { ResizeObserverSingleton } from './ResizeObserverSingleton.js';\n\n// Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM\n// at the end of hydration without touching the remaining nodes.\nlet is_hydrating = false;\n\n/**\n * @returns {void}\n */\nexport function start_hydrating() {\n\tis_hydrating = true;\n}\n\n/**\n * @returns {void}\n */\nexport function end_hydrating() {\n\tis_hydrating = false;\n}\n\n/**\n * @param {number} low\n * @param {number} high\n * @param {(index: number) => number} key\n * @param {number} value\n * @returns {number}\n */\nfunction upper_bound(low, high, key, value) {\n\t// Return first index of value larger than input value in the range [low, high)\n\twhile (low < high) {\n\t\tconst mid = low + ((high - low) >> 1);\n\t\tif (key(mid) <= value) {\n\t\t\tlow = mid + 1;\n\t\t} else {\n\t\t\thigh = mid;\n\t\t}\n\t}\n\treturn low;\n}\n\n/**\n * @param {NodeEx} target\n * @returns {void}\n */\nfunction init_hydrate(target) {\n\tif (target.hydrate_init) return;\n\ttarget.hydrate_init = true;\n\t// We know that all children have claim_order values since the unclaimed have been detached if target is not <head>\n\n\tlet children = /** @type {ArrayLike<NodeEx2>} */ (target.childNodes);\n\t// If target is <head>, there may be children without claim_order\n\tif (target.nodeName === 'HEAD') {\n\t\tconst my_children = [];\n\t\tfor (let i = 0; i < children.length; i++) {\n\t\t\tconst node = children[i];\n\t\t\tif (node.claim_order !== undefined) {\n\t\t\t\tmy_children.push(node);\n\t\t\t}\n\t\t}\n\t\tchildren = my_children;\n\t}\n\t/*\n\t * Reorder claimed children optimally.\n\t * We can reorder claimed children optimally by finding the longest subsequence of\n\t * nodes that are already claimed in order and only moving the rest. The longest\n\t * subsequence of nodes that are claimed in order can be found by\n\t * computing the longest increasing subsequence of .claim_order values.\n\t *\n\t * This algorithm is optimal in generating the least amount of reorder operations\n\t * possible.\n\t *\n\t * Proof:\n\t * We know that, given a set of reordering operations, the nodes that do not move\n\t * always form an increasing subsequence, since they do not move among each other\n\t * meaning that they must be already ordered among each other. Thus, the maximal\n\t * set of nodes that do not move form a longest increasing subsequence.\n\t */\n\t// Compute longest increasing subsequence\n\t// m: subsequence length j => index k of smallest value that ends an increasing subsequence of length j\n\tconst m = new Int32Array(children.length + 1);\n\t// Predecessor indices + 1\n\tconst p = new Int32Array(children.length);\n\tm[0] = -1;\n\tlet longest = 0;\n\tfor (let i = 0; i < children.length; i++) {\n\t\tconst current = children[i].claim_order;\n\t\t// Find the largest subsequence length such that it ends in a value less than our current value\n\t\t// upper_bound returns first greater value, so we subtract one\n\t\t// with fast path for when we are on the current longest subsequence\n\t\tconst seq_len =\n\t\t\t(longest > 0 && children[m[longest]].claim_order <= current\n\t\t\t\t? longest + 1\n\t\t\t\t: upper_bound(1, longest, (idx) => children[m[idx]].claim_order, current)) - 1;\n\t\tp[i] = m[seq_len] + 1;\n\t\tconst new_len = seq_len + 1;\n\t\t// We can guarantee that current is the smallest value. Otherwise, we would have generated a longer sequence.\n\t\tm[new_len] = i;\n\t\tlongest = Math.max(new_len, longest);\n\t}\n\t// The longest increasing subsequence of nodes (initially reversed)\n\n\t/**\n\t * @type {NodeEx2[]}\n\t */\n\tconst lis = [];\n\t// The rest of the nodes, nodes that will be moved\n\n\t/**\n\t * @type {NodeEx2[]}\n\t */\n\tconst to_move = [];\n\tlet last = children.length - 1;\n\tfor (let cur = m[longest] + 1; cur != 0; cur = p[cur - 1]) {\n\t\tlis.push(children[cur - 1]);\n\t\tfor (; last >= cur; last--) {\n\t\t\tto_move.push(children[last]);\n\t\t}\n\t\tlast--;\n\t}\n\tfor (; last >= 0; last--) {\n\t\tto_move.push(children[last]);\n\t}\n\tlis.reverse();\n\t// We sort the nodes being moved to guarantee that their insertion order matches the claim order\n\tto_move.sort((a, b) => a.claim_order - b.claim_order);\n\t// Finally, we move the nodes\n\tfor (let i = 0, j = 0; i < to_move.length; i++) {\n\t\twhile (j < lis.length && to_move[i].claim_order >= lis[j].claim_order) {\n\t\t\tj++;\n\t\t}\n\t\tconst anchor = j < lis.length ? lis[j] : null;\n\t\ttarget.insertBefore(to_move[i], anchor);\n\t}\n}\n\n/**\n * @param {Node} target\n * @param {Node} node\n * @returns {void}\n */\nexport function append(target, node) {\n\ttarget.appendChild(node);\n}\n\n/**\n * @param {Node} target\n * @param {string} style_sheet_id\n * @param {string} styles\n * @returns {void}\n */\nexport function append_styles(target, style_sheet_id, styles) {\n\tconst append_styles_to = get_root_for_style(target);\n\tif (!append_styles_to.getElementById(style_sheet_id)) {\n\t\tconst style = element('style');\n\t\tstyle.id = style_sheet_id;\n\t\tstyle.textContent = styles;\n\t\tappend_stylesheet(append_styles_to, style);\n\t}\n}\n\n/**\n * @param {Node} node\n * @returns {ShadowRoot | Document}\n */\nexport function get_root_for_style(node) {\n\tif (!node) return document;\n\tconst root = node.getRootNode ? node.getRootNode() : node.ownerDocument;\n\tif (root && /** @type {ShadowRoot} */ (root).host) {\n\t\treturn /** @type {ShadowRoot} */ (root);\n\t}\n\treturn node.ownerDocument;\n}\n\n/**\n * @param {Node} node\n * @returns {CSSStyleSheet}\n */\nexport function append_empty_stylesheet(node) {\n\tconst style_element = element('style');\n\t// For transitions to work without 'style-src: unsafe-inline' Content Security Policy,\n\t// these empty tags need to be allowed with a hash as a workaround until we move to the Web Animations API.\n\t// Using the hash for the empty string (for an empty tag) works in all browsers except Safari.\n\t// So as a workaround for the workaround, when we append empty style tags we set their content to /* empty */.\n\t// The hash 'sha256-9OlNO0DNEeaVzHL4RZwCLsBHA8WBQ8toBp/4F5XV2nc=' will then work even in Safari.\n\tstyle_element.textContent = '/* empty */';\n\tappend_stylesheet(get_root_for_style(node), style_element);\n\treturn style_element.sheet;\n}\n\n/**\n * @param {ShadowRoot | Document} node\n * @param {HTMLStyleElement} style\n * @returns {CSSStyleSheet}\n */\nfunction append_stylesheet(node, style) {\n\tappend(/** @type {Document} */ (node).head || node, style);\n\treturn style.sheet;\n}\n\n/**\n * @param {NodeEx} target\n * @param {NodeEx} node\n * @returns {void}\n */\nexport function append_hydration(target, node) {\n\tif (is_hydrating) {\n\t\tinit_hydrate(target);\n\t\tif (\n\t\t\ttarget.actual_end_child === undefined ||\n\t\t\t(target.actual_end_child !== null && target.actual_end_child.parentNode !== target)\n\t\t) {\n\t\t\ttarget.actual_end_child = target.firstChild;\n\t\t}\n\t\t// Skip nodes of undefined ordering\n\t\twhile (target.actual_end_child !== null && target.actual_end_child.claim_order === undefined) {\n\t\t\ttarget.actual_end_child = target.actual_end_child.nextSibling;\n\t\t}\n\t\tif (node !== target.actual_end_child) {\n\t\t\t// We only insert if the ordering of this node should be modified or the parent node is not target\n\t\t\tif (node.claim_order !== undefined || node.parentNode !== target) {\n\t\t\t\ttarget.insertBefore(node, target.actual_end_child);\n\t\t\t}\n\t\t} else {\n\t\t\ttarget.actual_end_child = node.nextSibling;\n\t\t}\n\t} else if (node.parentNode !== target || node.nextSibling !== null) {\n\t\ttarget.appendChild(node);\n\t}\n}\n\n/**\n * @param {Node} target\n * @param {Node} node\n * @param {Node} [anchor]\n * @returns {void}\n */\nexport function insert(target, node, anchor) {\n\ttarget.insertBefore(node, anchor || null);\n}\n\n/**\n * @param {NodeEx} target\n * @param {NodeEx} node\n * @param {NodeEx} [anchor]\n * @returns {void}\n */\nexport function insert_hydration(target, node, anchor) {\n\tif (is_hydrating && !anchor) {\n\t\tappend_hydration(target, node);\n\t} else if (node.parentNode !== target || node.nextSibling != anchor) {\n\t\ttarget.insertBefore(node, anchor || null);\n\t}\n}\n\n/**\n * @param {Node} node\n * @returns {void}\n */\nexport function detach(node) {\n\tif (node.parentNode) {\n\t\tnode.parentNode.removeChild(node);\n\t}\n}\n\n/**\n * @returns {void} */\nexport function destroy_each(iterations, detaching) {\n\tfor (let i = 0; i < iterations.length; i += 1) {\n\t\tif (iterations[i]) iterations[i].d(detaching);\n\t}\n}\n\n/**\n * @template {keyof HTMLElementTagNameMap} K\n * @param {K} name\n * @returns {HTMLElementTagNameMap[K]}\n */\nexport function element(name) {\n\treturn document.createElement(name);\n}\n\n/**\n * @template {keyof HTMLElementTagNameMap} K\n * @param {K} name\n * @param {string} is\n * @returns {HTMLElementTagNameMap[K]}\n */\nexport function element_is(name, is) {\n\treturn document.createElement(name, { is });\n}\n\n/**\n * @template T\n * @template {keyof T} K\n * @param {T} obj\n * @param {K[]} exclude\n * @returns {Pick<T, Exclude<keyof T, K>>}\n */\nexport function object_without_properties(obj, exclude) {\n\tconst target = /** @type {Pick<T, Exclude<keyof T, K>>} */ ({});\n\tfor (const k in obj) {\n\t\tif (\n\t\t\thas_prop(obj, k) &&\n\t\t\t// @ts-ignore\n\t\t\texclude.indexOf(k) === -1\n\t\t) {\n\t\t\t// @ts-ignore\n\t\t\ttarget[k] = obj[k];\n\t\t}\n\t}\n\treturn target;\n}\n\n/**\n * @template {keyof SVGElementTagNameMap} K\n * @param {K} name\n * @returns {SVGElement}\n */\nexport function svg_element(name) {\n\treturn document.createElementNS('http://www.w3.org/2000/svg', name);\n}\n\n/**\n * @param {string} data\n * @returns {Text}\n */\nexport function text(data) {\n\treturn document.createTextNode(data);\n}\n\n/**\n * @returns {Text} */\nexport function space() {\n\treturn text(' ');\n}\n\n/**\n * @returns {Text} */\nexport function empty() {\n\treturn text('');\n}\n\n/**\n * @param {string} content\n * @returns {Comment}\n */\nexport function comment(content) {\n\treturn document.createComment(content);\n}\n\n/**\n * @param {EventTarget} node\n * @param {string} event\n * @param {EventListenerOrEventListenerObject} handler\n * @param {boolean | AddEventListenerOptions | EventListenerOptions} [options]\n * @returns {() => void}\n */\nexport function listen(node, event, handler, options) {\n\tnode.addEventListener(event, handler, options);\n\treturn () => node.removeEventListener(event, handler, options);\n}\n\n/**\n * @returns {(event: any) => any} */\nexport function prevent_default(fn) {\n\treturn function (event) {\n\t\tevent.preventDefault();\n\t\t// @ts-ignore\n\t\treturn fn.call(this, event);\n\t};\n}\n\n/**\n * @returns {(event: any) => any} */\nexport function stop_propagation(fn) {\n\treturn function (event) {\n\t\tevent.stopPropagation();\n\t\t// @ts-ignore\n\t\treturn fn.call(this, event);\n\t};\n}\n\n/**\n * @returns {(event: any) => any} */\nexport function stop_immediate_propagation(fn) {\n\treturn function (event) {\n\t\tevent.stopImmediatePropagation();\n\t\t// @ts-ignore\n\t\treturn fn.call(this, event);\n\t};\n}\n\n/**\n * @returns {(event: any) => void} */\nexport function self(fn) {\n\treturn function (event) {\n\t\t// @ts-ignore\n\t\tif (event.target === this) fn.call(this, event);\n\t};\n}\n\n/**\n * @returns {(event: any) => void} */\nexport function trusted(fn) {\n\treturn function (event) {\n\t\t// @ts-ignore\n\t\tif (event.isTrusted) fn.call(this, event);\n\t};\n}\n\n/**\n * @param {Element} node\n * @param {string} attribute\n * @param {string} [value]\n * @returns {void}\n */\nexport function attr(node, attribute, value) {\n\tif (value == null) node.removeAttribute(attribute);\n\telse if (node.getAttribute(attribute) !== value) node.setAttribute(attribute, value);\n}\n/**\n * List of attributes that should always be set through the attr method,\n * because updating them through the property setter doesn't work reliably.\n * In the example of `width`/`height`, the problem is that the setter only\n * accepts numeric values, but the attribute can also be set to a string like `50%`.\n * If this list becomes too big, rethink this approach.\n */\nconst always_set_through_set_attribute = ['width', 'height'];\n\n/**\n * @param {Element & ElementCSSInlineStyle} node\n * @param {{ [x: string]: string }} attributes\n * @returns {void}\n */\nexport function set_attributes(node, attributes) {\n\t// @ts-ignore\n\tconst descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n\tfor (const key in attributes) {\n\t\tif (attributes[key] == null) {\n\t\t\tnode.removeAttribute(key);\n\t\t} else if (key === 'style') {\n\t\t\tnode.style.cssText = attributes[key];\n\t\t} else if (key === '__value') {\n\t\t\t/** @type {any} */ (node).value = node[key] = attributes[key];\n\t\t} else if (\n\t\t\tdescriptors[key] &&\n\t\t\tdescriptors[key].set &&\n\t\t\talways_set_through_set_attribute.indexOf(key) === -1\n\t\t) {\n\t\t\tnode[key] = attributes[key];\n\t\t} else {\n\t\t\tattr(node, key, attributes[key]);\n\t\t}\n\t}\n}\n\n/**\n * @param {Element & ElementCSSInlineStyle} node\n * @param {{ [x: string]: string }} attributes\n * @returns {void}\n */\nexport function set_svg_attributes(node, attributes) {\n\tfor (const key in attributes) {\n\t\tattr(node, key, attributes[key]);\n\t}\n}\n\n/**\n * @param {Record<string, unknown>} data_map\n * @returns {void}\n */\nexport function set_custom_element_data_map(node, data_map) {\n\tObject.keys(data_map).forEach((key) => {\n\t\tset_custom_element_data(node, key, data_map[key]);\n\t});\n}\n\n/**\n * @returns {void} */\nexport function set_custom_element_data(node, prop, value) {\n\tconst lower = prop.toLowerCase(); // for backwards compatibility with existing behavior we do lowercase first\n\tif (lower in node) {\n\t\tnode[lower] = typeof node[lower] === 'boolean' && value === '' ? true : value;\n\t} else if (prop in node) {\n\t\tnode[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;\n\t} else {\n\t\tattr(node, prop, value);\n\t}\n}\n\n/**\n * @param {string} tag\n */\nexport function set_dynamic_element_data(tag) {\n\treturn /-/.test(tag) ? set_custom_element_data_map : set_attributes;\n}\n\n/**\n * @returns {void}\n */\nexport function xlink_attr(node, attribute, value) {\n\tnode.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\n\n/**\n * @param {HTMLElement} node\n * @returns {string}\n */\nexport function get_svelte_dataset(node) {\n\treturn node.dataset.svelteH;\n}\n\n/**\n * @returns {unknown[]} */\nexport function get_binding_group_value(group, __value, checked) {\n\tconst value = new Set();\n\tfor (let i = 0; i < group.length; i += 1) {\n\t\tif (group[i].checked) value.add(group[i].__value);\n\t}\n\tif (!checked) {\n\t\tvalue.delete(__value);\n\t}\n\treturn Array.from(value);\n}\n\n/**\n * @param {HTMLInputElement[]} group\n * @returns {{ p(...inputs: HTMLInputElement[]): void; r(): void; }}\n */\nexport function init_binding_group(group) {\n\t/**\n\t * @type {HTMLInputElement[]} */\n\tlet _inputs;\n\treturn {\n\t\t/* push */ p(...inputs) {\n\t\t\t_inputs = inputs;\n\t\t\t_inputs.forEach((input) => group.push(input));\n\t\t},\n\t\t/* remove */ r() {\n\t\t\t_inputs.forEach((input) => group.splice(group.indexOf(input), 1));\n\t\t}\n\t};\n}\n\n/**\n * @param {number[]} indexes\n * @returns {{ u(new_indexes: number[]): void; p(...inputs: HTMLInputElement[]): void; r: () => void; }}\n */\nexport function init_binding_group_dynamic(group, indexes) {\n\t/**\n\t * @type {HTMLInputElement[]} */\n\tlet _group = get_binding_group(group);\n\n\t/**\n\t * @type {HTMLInputElement[]} */\n\tlet _inputs;\n\n\tfunction get_binding_group(group) {\n\t\tfor (let i = 0; i < indexes.length; i++) {\n\t\t\tgroup = group[indexes[i]] = group[indexes[i]] || [];\n\t\t}\n\t\treturn group;\n\t}\n\n\t/**\n\t * @returns {void} */\n\tfunction push() {\n\t\t_inputs.forEach((input) => _group.push(input));\n\t}\n\n\t/**\n\t * @returns {void} */\n\tfunction remove() {\n\t\t_inputs.forEach((input) => _group.splice(_group.indexOf(input), 1));\n\t}\n\treturn {\n\t\t/* update */ u(new_indexes) {\n\t\t\tindexes = new_indexes;\n\t\t\tconst new_group = get_binding_group(group);\n\t\t\tif (new_group !== _group) {\n\t\t\t\tremove();\n\t\t\t\t_group = new_group;\n\t\t\t\tpush();\n\t\t\t}\n\t\t},\n\t\t/* push */ p(...inputs) {\n\t\t\t_inputs = inputs;\n\t\t\tpush();\n\t\t},\n\t\t/* remove */ r: remove\n\t};\n}\n\n/** @returns {number} */\nexport function to_number(value) {\n\treturn value === '' ? null : +value;\n}\n\n/** @returns {any[]} */\nexport function time_ranges_to_array(ranges) {\n\tconst array = [];\n\tfor (let i = 0; i < ranges.length; i += 1) {\n\t\tarray.push({ start: ranges.start(i), end: ranges.end(i) });\n\t}\n\treturn array;\n}\n\n/**\n * @param {Element} element\n * @returns {ChildNode[]}\n */\nexport function children(element) {\n\treturn Array.from(element.childNodes);\n}\n\n/**\n * @param {ChildNodeArray} nodes\n * @returns {void}\n */\nfunction init_claim_info(nodes) {\n\tif (nodes.claim_info === undefined) {\n\t\tnodes.claim_info = { last_index: 0, total_claimed: 0 };\n\t}\n}\n\n/**\n * @template {ChildNodeEx} R\n * @param {ChildNodeArray} nodes\n * @param {(node: ChildNodeEx) => node is R} predicate\n * @param {(node: ChildNodeEx) => ChildNodeEx | undefined} process_node\n * @param {() => R} create_node\n * @param {boolean} dont_update_last_index\n * @returns {R}\n */\nfunction claim_node(nodes, predicate, process_node, create_node, dont_update_last_index = false) {\n\t// Try to find nodes in an order such that we lengthen the longest increasing subsequence\n\tinit_claim_info(nodes);\n\tconst result_node = (() => {\n\t\t// We first try to find an element after the previous one\n\t\tfor (let i = nodes.claim_info.last_index; i < nodes.length; i++) {\n\t\t\tconst node = nodes[i];\n\t\t\tif (predicate(node)) {\n\t\t\t\tconst replacement = process_node(node);\n\t\t\t\tif (replacement === undefined) {\n\t\t\t\t\tnodes.splice(i, 1);\n\t\t\t\t} else {\n\t\t\t\t\tnodes[i] = replacement;\n\t\t\t\t}\n\t\t\t\tif (!dont_update_last_index) {\n\t\t\t\t\tnodes.claim_info.last_index = i;\n\t\t\t\t}\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\t// Otherwise, we try to find one before\n\t\t// We iterate in reverse so that we don't go too far back\n\t\tfor (let i = nodes.claim_info.last_index - 1; i >= 0; i--) {\n\t\t\tconst node = nodes[i];\n\t\t\tif (predicate(node)) {\n\t\t\t\tconst replacement = process_node(node);\n\t\t\t\tif (replacement === undefined) {\n\t\t\t\t\tnodes.splice(i, 1);\n\t\t\t\t} else {\n\t\t\t\t\tnodes[i] = replacement;\n\t\t\t\t}\n\t\t\t\tif (!dont_update_last_index) {\n\t\t\t\t\tnodes.claim_info.last_index = i;\n\t\t\t\t} else if (replacement === undefined) {\n\t\t\t\t\t// Since we spliced before the last_index, we decrease it\n\t\t\t\t\tnodes.claim_info.last_index--;\n\t\t\t\t}\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\t// If we can't find any matching node, we create a new one\n\t\treturn create_node();\n\t})();\n\tresult_node.claim_order = nodes.claim_info.total_claimed;\n\tnodes.claim_info.total_claimed += 1;\n\treturn result_node;\n}\n\n/**\n * @param {ChildNodeArray} nodes\n * @param {string} name\n * @param {{ [key: string]: boolean }} attributes\n * @param {(name: string) => Element | SVGElement} create_element\n * @returns {Element | SVGElement}\n */\nfunction claim_element_base(nodes, name, attributes, create_element) {\n\treturn claim_node(\n\t\tnodes,\n\t\t/** @returns {node is Element | SVGElement} */\n\t\t(node) => node.nodeName === name,\n\t\t/** @param {Element} node */\n\t\t(node) => {\n\t\t\tconst remove = [];\n\t\t\tfor (let j = 0; j < node.attributes.length; j++) {\n\t\t\t\tconst attribute = node.attributes[j];\n\t\t\t\tif (!attributes[attribute.name]) {\n\t\t\t\t\tremove.push(attribute.name);\n\t\t\t\t}\n\t\t\t}\n\t\t\tremove.forEach((v) => node.removeAttribute(v));\n\t\t\treturn undefined;\n\t\t},\n\t\t() => create_element(name)\n\t);\n}\n\n/**\n * @param {ChildNodeArray} nodes\n * @param {string} name\n * @param {{ [key: string]: boolean }} attributes\n * @returns {Element | SVGElement}\n */\nexport function claim_element(nodes, name, attributes) {\n\treturn claim_element_base(nodes, name, attributes, element);\n}\n\n/**\n * @param {ChildNodeArray} nodes\n * @param {string} name\n * @param {{ [key: string]: boolean }} attributes\n * @returns {Element | SVGElement}\n */\nexport function claim_svg_element(nodes, name, attributes) {\n\treturn claim_element_base(nodes, name, attributes, svg_element);\n}\n\n/**\n * @param {ChildNodeArray} nodes\n * @returns {Text}\n */\nexport function claim_text(nodes, data) {\n\treturn claim_node(\n\t\tnodes,\n\t\t/** @returns {node is Text} */\n\t\t(node) => node.nodeType === 3,\n\t\t/** @param {Text} node */\n\t\t(node) => {\n\t\t\tconst data_str = '' + data;\n\t\t\tif (node.data.startsWith(data_str)) {\n\t\t\t\tif (node.data.length !== data_str.length) {\n\t\t\t\t\treturn node.splitText(data_str.length);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tnode.data = data_str;\n\t\t\t}\n\t\t},\n\t\t() => text(data),\n\t\ttrue // Text nodes should not update last index since it is likely not worth it to eliminate an increasing subsequence of actual elements\n\t);\n}\n\n/**\n * @returns {Text} */\nexport function claim_space(nodes) {\n\treturn claim_text(nodes, ' ');\n}\n\n/**\n * @param {ChildNodeArray} nodes\n * @returns {Comment}\n */\nexport function claim_comment(nodes, data) {\n\treturn claim_node(\n\t\tnodes,\n\t\t/** @returns {node is Comment} */\n\t\t(node) => node.nodeType === 8,\n\t\t/** @param {Comment} node */\n\t\t(node) => {\n\t\t\tnode.data = '' + data;\n\t\t\treturn undefined;\n\t\t},\n\t\t() => comment(data),\n\t\ttrue\n\t);\n}\n\nfunction get_comment_idx(nodes, text, start) {\n\tfor (let i = start; i < nodes.length; i += 1) {\n\t\tconst node = nodes[i];\n\t\tif (node.nodeType === 8 /* comment node */ && node.textContent.trim() === text) {\n\t\t\treturn i;\n\t\t}\n\t}\n\treturn -1;\n}\n\n/**\n * @param {boolean} is_svg\n * @returns {HtmlTagHydration}\n */\nexport function claim_html_tag(nodes, is_svg) {\n\t// find html opening tag\n\tconst start_index = get_comment_idx(nodes, 'HTML_TAG_START', 0);\n\tconst end_index = get_comment_idx(nodes, 'HTML_TAG_END', start_index + 1);\n\tif (start_index === -1 || end_index === -1) {\n\t\treturn new HtmlTagHydration(is_svg);\n\t}\n\n\tinit_claim_info(nodes);\n\tconst html_tag_nodes = nodes.splice(start_index, end_index - start_index + 1);\n\tdetach(html_tag_nodes[0]);\n\tdetach(html_tag_nodes[html_tag_nodes.length - 1]);\n\tconst claimed_nodes = html_tag_nodes.slice(1, html_tag_nodes.length - 1);\n\tif (claimed_nodes.length === 0) {\n\t\treturn new HtmlTagHydration(is_svg);\n\t}\n\tfor (const n of claimed_nodes) {\n\t\tn.claim_order = nodes.claim_info.total_claimed;\n\t\tnodes.claim_info.total_claimed += 1;\n\t}\n\treturn new HtmlTagHydration(is_svg, claimed_nodes);\n}\n\n/**\n * @param {Text} text\n * @param {unknown} data\n * @returns {void}\n */\nexport function set_data(text, data) {\n\tdata = '' + data;\n\tif (text.data === data) return;\n\ttext.data = /** @type {string} */ (data);\n}\n\n/**\n * @param {Text} text\n * @param {unknown} data\n * @returns {void}\n */\nexport function set_data_contenteditable(text, data) {\n\tdata = '' + data;\n\tif (text.wholeText === data) return;\n\ttext.data = /** @type {string} */ (data);\n}\n\n/**\n * @param {Text} text\n * @param {unknown} data\n * @param {string} attr_value\n * @returns {void}\n */\nexport function set_data_maybe_contenteditable(text, data, attr_value) {\n\tif (~contenteditable_truthy_values.indexOf(attr_value)) {\n\t\tset_data_contenteditable(text, data);\n\t} else {\n\t\tset_data(text, data);\n\t}\n}\n\n/**\n * @returns {void} */\nexport function set_input_value(input, value) {\n\tinput.value = value == null ? '' : value;\n}\n\n/**\n * @returns {void} */\nexport function set_input_type(input, type) {\n\ttry {\n\t\tinput.type = type;\n\t} catch (e) {\n\t\t// do nothing\n\t}\n}\n\n/**\n * @returns {void} */\nexport function set_style(node, key, value, important) {\n\tif (value == null) {\n\t\tnode.style.removeProperty(key);\n\t} else {\n\t\tnode.style.setProperty(key, value, important ? 'important' : '');\n\t}\n}\n\n/**\n * @returns {void} */\nexport function select_option(select, value, mounting) {\n\tfor (let i = 0; i < select.options.length; i += 1) {\n\t\tconst option = select.options[i];\n\t\tif (option.__value === value) {\n\t\t\toption.selected = true;\n\t\t\treturn;\n\t\t}\n\t}\n\tif (!mounting || value !== undefined) {\n\t\tselect.selectedIndex = -1; // no option should be selected\n\t}\n}\n\n/**\n * @returns {void} */\nexport function select_options(select, value) {\n\tfor (let i = 0; i < select.options.length; i += 1) {\n\t\tconst option = select.options[i];\n\t\toption.selected = ~value.indexOf(option.__value);\n\t}\n}\n\nexport function select_value(select) {\n\tconst selected_option = select.querySelector(':checked');\n\treturn selected_option && selected_option.__value;\n}\n\nexport function select_multiple_value(select) {\n\treturn [].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\n\n/**\n * @type {boolean} */\nlet crossorigin;\n\n/**\n * @returns {boolean} */\nexport function is_crossorigin() {\n\tif (crossorigin === undefined) {\n\t\tcrossorigin = false;\n\t\ttry {\n\t\t\tif (typeof window !== 'undefined' && window.parent) {\n\t\t\t\tvoid window.parent.document;\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tcrossorigin = true;\n\t\t}\n\t}\n\treturn crossorigin;\n}\n\n/**\n * @param {HTMLElement} node\n * @param {() => void} fn\n * @returns {() => void}\n */\nexport function add_iframe_resize_listener(node, fn) {\n\tconst computed_style = getComputedStyle(node);\n\tif (computed_style.position === 'static') {\n\t\tnode.style.position = 'relative';\n\t}\n\tconst iframe = element('iframe');\n\tiframe.setAttribute(\n\t\t'style',\n\t\t'display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ' +\n\t\t\t'overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;'\n\t);\n\tiframe.setAttribute('aria-hidden', 'true');\n\tiframe.tabIndex = -1;\n\tconst crossorigin = is_crossorigin();\n\n\t/**\n\t * @type {() => void}\n\t */\n\tlet unsubscribe;\n\tif (crossorigin) {\n\t\tiframe.src = \"data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}</script>\";\n\t\tunsubscribe = listen(\n\t\t\twindow,\n\t\t\t'message',\n\t\t\t/** @param {MessageEvent} event */ (event) => {\n\t\t\t\tif (event.source === iframe.contentWindow) fn();\n\t\t\t}\n\t\t);\n\t} else {\n\t\tiframe.src = 'about:blank';\n\t\tiframe.onload = () => {\n\t\t\tunsubscribe = listen(iframe.contentWindow, 'resize', fn);\n\t\t\t// make sure an initial resize event is fired _after_ the iframe is loaded (which is asynchronous)\n\t\t\t// see https://github.com/sveltejs/svelte/issues/4233\n\t\t\tfn();\n\t\t};\n\t}\n\tappend(node, iframe);\n\treturn () => {\n\t\tif (crossorigin) {\n\t\t\tunsubscribe();\n\t\t} else if (unsubscribe && iframe.contentWindow) {\n\t\t\tunsubscribe();\n\t\t}\n\t\tdetach(iframe);\n\t};\n}\nexport const resize_observer_content_box = /* @__PURE__ */ new ResizeObserverSingleton({\n\tbox: 'content-box'\n});\nexport const resize_observer_border_box = /* @__PURE__ */ new ResizeObserverSingleton({\n\tbox: 'border-box'\n});\nexport const resize_observer_device_pixel_content_box = /* @__PURE__ */ new ResizeObserverSingleton(\n\t{ box: 'device-pixel-content-box' }\n);\nexport { ResizeObserverSingleton };\n\n/**\n * @returns {void} */\nexport function toggle_class(element, name, toggle) {\n\t// The `!!` is required because an `undefined` flag means flipping the current state.\n\telement.classList.toggle(name, !!toggle);\n}\n\n/**\n * @template T\n * @param {string} type\n * @param {T} [detail]\n * @param {{ bubbles?: boolean, cancelable?: boolean }} [options]\n * @returns {CustomEvent<T>}\n */\nexport function custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {\n\treturn new CustomEvent(type, { detail, bubbles, cancelable });\n}\n\n/**\n * @param {string} selector\n * @param {HTMLElement} parent\n * @returns {ChildNodeArray}\n */\nexport function query_selector_all(selector, parent = document.body) {\n\treturn Array.from(parent.querySelectorAll(selector));\n}\n\n/**\n * @param {string} nodeId\n * @param {HTMLElement} head\n * @returns {any[]}\n */\nexport function head_selector(nodeId, head) {\n\tconst result = [];\n\tlet started = 0;\n\tfor (const node of head.childNodes) {\n\t\tif (node.nodeType === 8 /* comment node */) {\n\t\t\tconst comment = node.textContent.trim();\n\t\t\tif (comment === `HEAD_${nodeId}_END`) {\n\t\t\t\tstarted -= 1;\n\t\t\t\tresult.push(node);\n\t\t\t} else if (comment === `HEAD_${nodeId}_START`) {\n\t\t\t\tstarted += 1;\n\t\t\t\tresult.push(node);\n\t\t\t}\n\t\t} else if (started > 0) {\n\t\t\tresult.push(node);\n\t\t}\n\t}\n\treturn result;\n}\n/** */\nexport class HtmlTag {\n\t/**\n\t * @private\n\t * @default false\n\t */\n\tis_svg = false;\n\t/** parent for creating node */\n\te = undefined;\n\t/** html tag nodes */\n\tn = undefined;\n\t/** target */\n\tt = undefined;\n\t/** anchor */\n\ta = undefined;\n\tconstructor(is_svg = false) {\n\t\tthis.is_svg = is_svg;\n\t\tthis.e = this.n = null;\n\t}\n\n\t/**\n\t * @param {string} html\n\t * @returns {void}\n\t */\n\tc(html) {\n\t\tthis.h(html);\n\t}\n\n\t/**\n\t * @param {string} html\n\t * @param {HTMLElement | SVGElement} target\n\t * @param {HTMLElement | SVGElement} anchor\n\t * @returns {void}\n\t */\n\tm(html, target, anchor = null) {\n\t\tif (!this.e) {\n\t\t\tif (this.is_svg)\n\t\t\t\tthis.e = svg_element(/** @type {keyof SVGElementTagNameMap} */ (target.nodeName));\n\t\t\t/** #7364 target for <template> may be provided as #document-fragment(11) */ else\n\t\t\t\tthis.e = element(\n\t\t\t\t\t/** @type {keyof HTMLElementTagNameMap} */ (\n\t\t\t\t\t\ttarget.nodeType === 11 ? 'TEMPLATE' : target.nodeName\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\tthis.t =\n\t\t\t\ttarget.tagName !== 'TEMPLATE'\n\t\t\t\t\t? target\n\t\t\t\t\t: /** @type {HTMLTemplateElement} */ (target).content;\n\t\t\tthis.c(html);\n\t\t}\n\t\tthis.i(anchor);\n\t}\n\n\t/**\n\t * @param {string} html\n\t * @returns {void}\n\t */\n\th(html) {\n\t\tthis.e.innerHTML = html;\n\t\tthis.n = Array.from(\n\t\t\tthis.e.nodeName === 'TEMPLATE' ? this.e.content.childNodes : this.e.childNodes\n\t\t);\n\t}\n\n\t/**\n\t * @returns {void} */\n\ti(anchor) {\n\t\tfor (let i = 0; i < this.n.length; i += 1) {\n\t\t\tinsert(this.t, this.n[i], anchor);\n\t\t}\n\t}\n\n\t/**\n\t * @param {string} html\n\t * @returns {void}\n\t */\n\tp(html) {\n\t\tthis.d();\n\t\tthis.h(html);\n\t\tthis.i(this.a);\n\t}\n\n\t/**\n\t * @returns {void} */\n\td() {\n\t\tthis.n.forEach(detach);\n\t}\n}\n\nexport class HtmlTagHydration extends HtmlTag {\n\t/** @type {Element[]} hydration claimed nodes */\n\tl = undefined;\n\n\tconstructor(is_svg = false, claimed_nodes) {\n\t\tsuper(is_svg);\n\t\tthis.e = this.n = null;\n\t\tthis.l = claimed_nodes;\n\t}\n\n\t/**\n\t * @param {string} html\n\t * @returns {void}\n\t */\n\tc(html) {\n\t\tif (this.l) {\n\t\t\tthis.n = this.l;\n\t\t} else {\n\t\t\tsuper.c(html);\n\t\t}\n\t}\n\n\t/**\n\t * @returns {void} */\n\ti(anchor) {\n\t\tfor (let i = 0; i < this.n.length; i += 1) {\n\t\t\tinsert_hydration(this.t, this.n[i], anchor);\n\t\t}\n\t}\n}\n\n/**\n * @param {NamedNodeMap} attributes\n * @returns {{}}\n */\nexport function attribute_to_object(attributes) {\n\tconst result = {};\n\tfor (const attribute of attributes) {\n\t\tresult[attribute.name] = attribute.value;\n\t}\n\treturn result;\n}\n\nconst escaped = {\n\t'\"': '"',\n\t'&': '&',\n\t'<': '<'\n};\n\nconst regex_attribute_characters_to_escape = /[\"&<]/g;\n\n/**\n * Note that the attribute itself should be surrounded in double quotes\n * @param {any} attribute\n */\nfunction escape_attribute(attribute) {\n\treturn String(attribute).replace(regex_attribute_characters_to_escape, (match) => escaped[match]);\n}\n\n/**\n * @param {Record<string, string>} attributes\n */\nexport function stringify_spread(attributes) {\n\tlet str = ' ';\n\tfor (const key in attributes) {\n\t\tif (attributes[key] != null) {\n\t\t\tstr += `${key}=\"${escape_attribute(attributes[key])}\" `;\n\t\t}\n\t}\n\n\treturn str;\n}\n\n/**\n * @param {HTMLElement} element\n * @returns {{}}\n */\nexport function get_custom_elements_slots(element) {\n\tconst result = {};\n\telement.childNodes.forEach(\n\t\t/** @param {Element} node */ (node) => {\n\t\t\tresult[node.slot || 'default'] = true;\n\t\t}\n\t);\n\treturn result;\n}\n\nexport function construct_svelte_component(component, props) {\n\treturn new component(props);\n}\n\n/**\n * @typedef {Node & {\n * \tclaim_order?: number;\n * \thydrate_init?: true;\n * \tactual_end_child?: NodeEx;\n * \tchildNodes: NodeListOf<NodeEx>;\n * }} NodeEx\n */\n\n/** @typedef {ChildNode & NodeEx} ChildNodeEx */\n\n/** @typedef {NodeEx & { claim_order: number }} NodeEx2 */\n\n/**\n * @typedef {ChildNodeEx[] & {\n * \tclaim_info?: {\n * \t\tlast_index: number;\n * \t\ttotal_claimed: number;\n * \t};\n * }} ChildNodeArray\n */\n","import { custom_event } from './dom.js';\n\nexport let current_component;\n\n/** @returns {void} */\nexport function set_current_component(component) {\n\tcurrent_component = component;\n}\n\nexport function get_current_component() {\n\tif (!current_component) throw new Error('Function called outside component initialization');\n\treturn current_component;\n}\n\n/**\n * Schedules a callback to run immediately before the component is updated after any state change.\n *\n * The first time the callback runs will be before the initial `onMount`\n *\n * https://svelte.dev/docs/svelte#beforeupdate\n * @param {() => any} fn\n * @returns {void}\n */\nexport function beforeUpdate(fn) {\n\tget_current_component().$$.before_update.push(fn);\n}\n\n/**\n * The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.\n * It must be called during the component's initialisation (but doesn't need to live *inside* the component;\n * it can be called from an external module).\n *\n * If a function is returned _synchronously_ from `onMount`, it will be called when the component is unmounted.\n *\n * `onMount` does not run inside a [server-side component](https://svelte.dev/docs#run-time-server-side-component-api).\n *\n * https://svelte.dev/docs/svelte#onmount\n * @template T\n * @param {() => import('./private.js').NotFunction<T> | Promise<import('./private.js').NotFunction<T>> | (() => any)} fn\n * @returns {void}\n */\nexport function onMount(fn) {\n\tget_current_component().$$.on_mount.push(fn);\n}\n\n/**\n * Schedules a callback to run immediately after the component has been updated.\n *\n * The first time the callback runs will be after the initial `onMount`\n *\n * https://svelte.dev/docs/svelte#afterupdate\n * @param {() => any} fn\n * @returns {void}\n */\nexport function afterUpdate(fn) {\n\tget_current_component().$$.after_update.push(fn);\n}\n\n/**\n * Schedules a callback to run immediately before the component is unmounted.\n *\n * Out of `onMount`, `beforeUpdate`, `afterUpdate` and `onDestroy`, this is the\n * only one that runs inside a server-side component.\n *\n * https://svelte.dev/docs/svelte#ondestroy\n * @param {() => any} fn\n * @returns {void}\n */\nexport function onDestroy(fn) {\n\tget_current_component().$$.on_destroy.push(fn);\n}\n\n/**\n * Creates an event dispatcher that can be used to dispatch [component events](https://svelte.dev/docs#template-syntax-component-directives-on-eventname).\n * Event dispatchers are functions that can take two arguments: `name` and `detail`.\n *\n * Component events created with `createEventDispatcher` create a\n * [CustomEvent](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent).\n * These events do not [bubble](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#Event_bubbling_and_capture).\n * The `detail` argument corresponds to the [CustomEvent.detail](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/detail)\n * property and can contain any type of data.\n *\n * The event dispatcher can be typed to narrow the allowed event names and the type of the `detail` argument:\n * ```ts\n * const dispatch = createEventDispatcher<{\n * loaded: never; // does not take a detail argument\n * change: string; // takes a detail argument of type string, which is required\n * optional: number | null; // takes an optional detail argument of type number\n * }>();\n * ```\n *\n * https://svelte.dev/docs/svelte#createeventdispatcher\n * @template {Record<string, any>} [EventMap=any]\n * @returns {import('./public.js').EventDispatcher<EventMap>}\n */\nexport function createEventDispatcher() {\n\tconst component = get_current_component();\n\treturn (type, detail, { cancelable = false } = {}) => {\n\t\tconst callbacks = component.$$.callbacks[type];\n\t\tif (callbacks) {\n\t\t\t// TODO are there situations where events could be dispatched\n\t\t\t// in a server (non-DOM) environment?\n\t\t\tconst event = custom_event(/** @type {string} */ (type), detail, { cancelable });\n\t\t\tcallbacks.slice().forEach((fn) => {\n\t\t\t\tfn.call(component, event);\n\t\t\t});\n\t\t\treturn !event.defaultPrevented;\n\t\t}\n\t\treturn true;\n\t};\n}\n\n/**\n * Associates an arbitrary `context` object with the current component and the specified `key`\n * and returns that object. The context is then available to children of the component\n * (including slotted content) with `getContext`.\n *\n * Like lifecycle functions, this must be called during component initialisation.\n *\n * https://svelte.dev/docs/svelte#setcontext\n * @template T\n * @param {any} key\n * @param {T} context\n * @returns {T}\n */\nexport function setContext(key, context) {\n\tget_current_component().$$.context.set(key, context);\n\treturn context;\n}\n\n/**\n * Retrieves the context that belongs to the closest parent component with the specified `key`.\n * Must be called during component initialisation.\n *\n * https://svelte.dev/docs/svelte#getcontext\n * @template T\n * @param {any} key\n * @returns {T}\n */\nexport function getContext(key) {\n\treturn get_current_component().$$.context.get(key);\n}\n\n/**\n * Retrieves the whole context map that belongs to the closest parent component.\n * Must be called during component initialisation. Useful, for example, if you\n * programmatically create a component and want to pass the existing context to it.\n *\n * https://svelte.dev/docs/svelte#getallcontexts\n * @template {Map<any, any>} [T=Map<any, any>]\n * @returns {T}\n */\nexport function getAllContexts() {\n\treturn get_current_component().$$.context;\n}\n\n/**\n * Checks whether a given `key` has been set in the context of a parent component.\n * Must be called during component initialisation.\n *\n * https://svelte.dev/docs/svelte#hascontext\n * @param {any} key\n * @returns {boolean}\n */\nexport function hasContext(key) {\n\treturn get_current_component().$$.context.has(key);\n}\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\n/**\n * @param component\n * @param event\n * @returns {void}\n */\nexport function bubble(component, event) {\n\tconst callbacks = component.$$.callbacks[event.type];\n\tif (callbacks) {\n\t\t// @ts-ignore\n\t\tcallbacks.slice().forEach((fn) => fn.call(this, event));\n\t}\n}\n","import { run_all } from './utils.js';\nimport { current_component, set_current_component } from './lifecycle.js';\n\nexport const dirty_components = [];\nexport const intros = { enabled: false };\nexport const binding_callbacks = [];\n\nlet render_callbacks = [];\n\nconst flush_callbacks = [];\n\nconst resolved_promise = /* @__PURE__ */ Promise.resolve();\n\nlet update_scheduled = false;\n\n/** @returns {void} */\nexport function schedule_update() {\n\tif (!update_scheduled) {\n\t\tupdate_scheduled = true;\n\t\tresolved_promise.then(flush);\n\t}\n}\n\n/** @returns {Promise<void>} */\nexport function tick() {\n\tschedule_update();\n\treturn resolved_promise;\n}\n\n/** @returns {void} */\nexport function add_render_callback(fn) {\n\trender_callbacks.push(fn);\n}\n\n/** @returns {void} */\nexport function add_flush_callback(fn) {\n\tflush_callbacks.push(fn);\n}\n\n// flush() calls callbacks in this order:\n// 1. All beforeUpdate callbacks, in order: parents before children\n// 2. All bind:this callbacks, in reverse order: children before parents.\n// 3. All afterUpdate callbacks, in order: parents before children. EXCEPT\n// for afterUpdates called during the initial onMount, which are called in\n// reverse order: children before parents.\n// Since callbacks might update component values, which could trigger another\n// call to flush(), the following steps guard against this:\n// 1. During beforeUpdate, any updated components will be added to the\n// dirty_components array and will cause a reentrant call to flush(). Because\n// the flush index is kept outside the function, the reentrant call will pick\n// up where the earlier call left off and go through all dirty components. The\n// current_component value is saved and restored so that the reentrant call will\n// not interfere with the \"parent\" flush() call.\n// 2. bind:this callbacks cannot trigger new flush() calls.\n// 3. During afterUpdate, any updated components will NOT have their afterUpdate\n// callback called a second time; the seen_callbacks set, outside the flush()\n// function, guarantees this behavior.\nconst seen_callbacks = new Set();\n\nlet flushidx = 0; // Do *not* move this inside the flush() function\n\n/** @returns {void} */\nexport function flush() {\n\t// Do not reenter flush while dirty components are updated, as this can\n\t// result in an infinite loop. Instead, let the inner flush handle it.\n\t// Reentrancy is ok afterwards for bindings etc.\n\tif (flushidx !== 0) {\n\t\treturn;\n\t}\n\tconst saved_component = current_component;\n\tdo {\n\t\t// first, call beforeUpdate functions\n\t\t// and update components\n\t\ttry {\n\t\t\twhile (flushidx < dirty_components.length) {\n\t\t\t\tconst component = dirty_components[flushidx];\n\t\t\t\tflushidx++;\n\t\t\t\tset_current_component(component);\n\t\t\t\tupdate(component.$$);\n\t\t\t}\n\t\t} catch (e) {\n\t\t\t// reset dirty state to not end up in a deadlocked state and then rethrow\n\t\t\tdirty_components.length = 0;\n\t\t\tflushidx = 0;\n\t\t\tthrow e;\n\t\t}\n\t\tset_current_component(null);\n\t\tdirty_components.length = 0;\n\t\tflushidx = 0;\n\t\twhile (binding_callbacks.length) binding_callbacks.pop()();\n\t\t// then, once components are updated, call\n\t\t// afterUpdate functions. This may cause\n\t\t// subsequent updates...\n\t\tfor (let i = 0; i < render_callbacks.length; i += 1) {\n\t\t\tconst callback = render_callbacks[i];\n\t\t\tif (!seen_callbacks.has(callback)) {\n\t\t\t\t// ...so guard against infinite loops\n\t\t\t\tseen_callbacks.add(callback);\n\t\t\t\tcallback();\n\t\t\t}\n\t\t}\n\t\trender_callbacks.length = 0;\n\t} while (dirty_components.length);\n\twhile (flush_callbacks.length) {\n\t\tflush_callbacks.pop()();\n\t}\n\tupdate_scheduled = false;\n\tseen_callbacks.clear();\n\tset_current_component(saved_component);\n}\n\n/** @returns {void} */\nfunction update($$) {\n\tif ($$.fragment !== null) {\n\t\t$$.update();\n\t\trun_all($$.before_update);\n\t\tconst dirty = $$.dirty;\n\t\t$$.dirty = [-1];\n\t\t$$.fragment && $$.fragment.p($$.ctx, dirty);\n\t\t$$.after_update.forEach(add_render_callback);\n\t}\n}\n\n/**\n * Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.\n * @param {Function[]} fns\n * @returns {void}\n */\nexport function flush_render_callbacks(fns) {\n\tconst filtered = [];\n\tconst targets = [];\n\trender_callbacks.forEach((c) => (fns.indexOf(c) === -1 ? filtered.push(c) : targets.push(c)));\n\ttargets.forEach((c) => c());\n\trender_callbacks = filtered;\n}\n","import { identity as linear, is_function, noop, run_all } from './utils.js';\nimport { now } from './environment.js';\nimport { loop } from './loop.js';\nimport { create_rule, delete_rule } from './style_manager.js';\nimport { custom_event } from './dom.js';\nimport { add_render_callback } from './scheduler.js';\n\n/**\n * @type {Promise<void> | null}\n */\nlet promise;\n\n/**\n * @returns {Promise<void>}\n */\nfunction wait() {\n\tif (!promise) {\n\t\tpromise = Promise.resolve();\n\t\tpromise.then(() => {\n\t\t\tpromise = null;\n\t\t});\n\t}\n\treturn promise;\n}\n\n/**\n * @param {Element} node\n * @param {INTRO | OUTRO | boolean} direction\n * @param {'start' | 'end'} kind\n * @returns {void}\n */\nfunction dispatch(node, direction, kind) {\n\tnode.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\n\nconst outroing = new Set();\n\n/**\n * @type {Outro}\n */\nlet outros;\n\n/**\n * @returns {void} */\nexport function group_outros() {\n\toutros = {\n\t\tr: 0,\n\t\tc: [],\n\t\tp: outros // parent group\n\t};\n}\n\n/**\n * @returns {void} */\nexport function check_outros() {\n\tif (!outros.r) {\n\t\trun_all(outros.c);\n\t}\n\toutros = outros.p;\n}\n\n/**\n * @param {import('./private.js').Fragment} block\n * @param {0 | 1} [local]\n * @returns {void}\n */\nexport function transition_in(block, local) {\n\tif (block && block.i) {\n\t\toutroing.delete(block);\n\t\tblock.i(local);\n\t}\n}\n\n/**\n * @param {import('./private.js').Fragment} block\n * @param {0 | 1} local\n * @param {0 | 1} [detach]\n * @param {() => void} [callback]\n * @returns {void}\n */\nexport function transition_out(block, local, detach, callback) {\n\tif (block && block.o) {\n\t\tif (outroing.has(block)) return;\n\t\toutroing.add(block);\n\t\toutros.c.push(() => {\n\t\t\toutroing.delete(block);\n\t\t\tif (callback) {\n\t\t\t\tif (detach) block.d(1);\n\t\t\t\tcallback();\n\t\t\t}\n\t\t});\n\t\tblock.o(local);\n\t} else if (callback) {\n\t\tcallback();\n\t}\n}\n\n/**\n * @type {import('../transition/public.js').TransitionConfig}\n */\nconst null_transition = { duration: 0 };\n\n/**\n * @param {Element & ElementCSSInlineStyle} node\n * @param {TransitionFn} fn\n * @param {any} params\n * @returns {{ start(): void; invalidate(): void; end(): void; }}\n */\nexport function create_in_transition(node, fn, params) {\n\t/**\n\t * @type {TransitionOptions} */\n\tconst options = { direction: 'in' };\n\tlet config = fn(node, params, options);\n\tlet running = false;\n\tlet animation_name;\n\tlet task;\n\tlet uid = 0;\n\n\t/**\n\t * @returns {void} */\n\tfunction cleanup() {\n\t\tif (animation_name) delete_rule(node, animation_name);\n\t}\n\n\t/**\n\t * @returns {void} */\n\tfunction go() {\n\t\tconst {\n\t\t\tdelay = 0,\n\t\t\tduration = 300,\n\t\t\teasing = linear,\n\t\t\ttick = noop,\n\t\t\tcss\n\t\t} = config || null_transition;\n\t\tif (css) animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n\t\ttick(0, 1);\n\t\tconst start_time = now() + delay;\n\t\tconst end_time = start_time + duration;\n\t\tif (task) task.abort();\n\t\trunning = true;\n\t\tadd_render_callback(() => dispatch(node, true, 'start'));\n\t\ttask = loop((now) => {\n\t\t\tif (running) {\n\t\t\t\tif (now >= end_time) {\n\t\t\t\t\ttick(1, 0);\n\t\t\t\t\tdispatch(node, true, 'end');\n\t\t\t\t\tcleanup();\n\t\t\t\t\treturn (running = false);\n\t\t\t\t}\n\t\t\t\tif (now >= start_time) {\n\t\t\t\t\tconst t = easing((now - start_time) / duration);\n\t\t\t\t\ttick(t, 1 - t);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn running;\n\t\t});\n\t}\n\tlet started = false;\n\treturn {\n\t\tstart() {\n\t\t\tif (started) return;\n\t\t\tstarted = true;\n\t\t\tdelete_rule(node);\n\t\t\tif (is_function(config)) {\n\t\t\t\tconfig = config(options);\n\t\t\t\twait().then(go);\n\t\t\t} else {\n\t\t\t\tgo();\n\t\t\t}\n\t\t},\n\t\tinvalidate() {\n\t\t\tstarted = false;\n\t\t},\n\t\tend() {\n\t\t\tif (running) {\n\t\t\t\tcleanup();\n\t\t\t\trunning = false;\n\t\t\t}\n\t\t}\n\t};\n}\n\n/**\n * @param {Element & ElementCSSInlineStyle} node\n * @param {TransitionFn} fn\n * @param {any} params\n * @returns {{ end(reset: any): void; }}\n */\nexport function create_out_transition(node, fn, params) {\n\t/** @type {TransitionOptions} */\n\tconst options = { direction: 'out' };\n\tlet config = fn(node, params, options);\n\tlet running = true;\n\tlet animation_name;\n\tconst group = outros;\n\tgroup.r += 1;\n\t/** @type {boolean} */\n\tlet original_inert_value;\n\n\t/**\n\t * @returns {void} */\n\tfunction go() {\n\t\tconst {\n\t\t\tdelay = 0,\n\t\t\tduration = 300,\n\t\t\teasing = linear,\n\t\t\ttick = noop,\n\t\t\tcss\n\t\t} = config || null_transition;\n\n\t\tif (css) animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n\n\t\tconst start_time = now() + delay;\n\t\tconst end_time = start_time + duration;\n\t\tadd_render_callback(() => dispatch(node, false, 'start'));\n\n\t\tif ('inert' in node) {\n\t\t\toriginal_inert_value = /** @type {HTMLElement} */ (node).inert;\n\t\t\tnode.inert = true;\n\t\t}\n\n\t\tloop((now) => {\n\t\t\tif (running) {\n\t\t\t\tif (now >= end_time) {\n\t\t\t\t\ttick(0, 1);\n\t\t\t\t\tdispatch(node, false, 'end');\n\t\t\t\t\tif (!--group.r) {\n\t\t\t\t\t\t// this will result in `end()` being called,\n\t\t\t\t\t\t// so we don't need to clean up here\n\t\t\t\t\t\trun_all(group.c);\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (now >= start_time) {\n\t\t\t\t\tconst t = easing((now - start_time) / duration);\n\t\t\t\t\ttick(1 - t, t);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn running;\n\t\t});\n\t}\n\n\tif (is_function(config)) {\n\t\twait().then(() => {\n\t\t\t// @ts-ignore\n\t\t\tconfig = config(options);\n\t\t\tgo();\n\t\t});\n\t} else {\n\t\tgo();\n\t}\n\n\treturn {\n\t\tend(reset) {\n\t\t\tif (reset && 'inert' in node) {\n\t\t\t\tnode.inert = original_inert_value;\n\t\t\t}\n\t\t\tif (reset && config.tick) {\n\t\t\t\tconfig.tick(1, 0);\n\t\t\t}\n\t\t\tif (running) {\n\t\t\t\tif (animation_name) delete_rule(node, animation_name);\n\t\t\t\trunning = false;\n\t\t\t}\n\t\t}\n\t};\n}\n\n/**\n * @param {Element & ElementCSSInlineStyle} node\n * @param {TransitionFn} fn\n * @param {any} params\n * @param {boolean} intro\n * @returns {{ run(b: 0 | 1): void; end(): void; }}\n */\nexport function create_bidirectional_transition(node, fn, params, intro) {\n\t/**\n\t * @type {TransitionOptions} */\n\tconst options = { direction: 'both' };\n\tlet config = fn(node, params, options);\n\tlet t = intro ? 0 : 1;\n\n\t/**\n\t * @type {Program | null} */\n\tlet running_program = null;\n\n\t/**\n\t * @type {PendingProgram | null} */\n\tlet pending_program = null;\n\tlet animation_name = null;\n\n\t/** @type {boolean} */\n\tlet original_inert_value;\n\n\t/**\n\t * @returns {void} */\n\tfunction clear_animation() {\n\t\tif (animation_name) delete_rule(node, animation_name);\n\t}\n\n\t/**\n\t * @param {PendingProgram} program\n\t * @param {number} duration\n\t * @returns {Program}\n\t */\n\tfunction init(program, duration) {\n\t\tconst d = /** @type {Program['d']} */ (program.b - t);\n\t\tduration *= Math.abs(d);\n\t\treturn {\n\t\t\ta: t,\n\t\t\tb: program.b,\n\t\t\td,\n\t\t\tduration,\n\t\t\tstart: program.start,\n\t\t\tend: program.start + duration,\n\t\t\tgroup: program.group\n\t\t};\n\t}\n\n\t/**\n\t * @param {INTRO | OUTRO} b\n\t * @returns {void}\n\t */\n\tfunction go(b) {\n\t\tconst {\n\t\t\tdelay = 0,\n\t\t\tduration = 300,\n\t\t\teasing = linear,\n\t\t\ttick = noop,\n\t\t\tcss\n\t\t} = config || null_transition;\n\n\t\t/**\n\t\t * @type {PendingProgram} */\n\t\tconst program = {\n\t\t\tstart: now() + delay,\n\t\t\tb\n\t\t};\n\n\t\tif (!b) {\n\t\t\t// @ts-ignore todo: improve typings\n\t\t\tprogram.group = outros;\n\t\t\toutros.r += 1;\n\t\t}\n\n\t\tif ('inert' in node) {\n\t\t\tif (b) {\n\t\t\t\tif (original_inert_value !== undefined) {\n\t\t\t\t\t// aborted/reversed outro — restore previous inert value\n\t\t\t\t\tnode.inert = original_inert_value;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\toriginal_inert_value = /** @type {HTMLElement} */ (node).inert;\n\t\t\t\tnode.inert = true;\n\t\t\t}\n\t\t}\n\n\t\tif (running_program || pending_program) {\n\t\t\tpending_program = program;\n\t\t} else {\n\t\t\t// if this is an intro, and there's a delay, we need to do\n\t\t\t// an initial tick and/or apply CSS animation immediately\n\t\t\tif (css) {\n\t\t\t\tclear_animation();\n\t\t\t\tanimation_name = create_rule(node, t, b, duration, delay, easing, css);\n\t\t\t}\n\t\t\tif (b) tick(0, 1);\n\t\t\trunning_program = init(program, duration);\n\t\t\tadd_render_callback(() => dispatch(node, b, 'start'));\n\t\t\tloop((now) => {\n\t\t\t\tif (pending_program && now > pending_program.start) {\n\t\t\t\t\trunning_program = init(pending_program, duration);\n\t\t\t\t\tpending_program = null;\n\t\t\t\t\tdispatch(node, running_program.b, 'start');\n\t\t\t\t\tif (css) {\n\t\t\t\t\t\tclear_animation();\n\t\t\t\t\t\tanimation_name = create_rule(\n\t\t\t\t\t\t\tnode,\n\t\t\t\t\t\t\tt,\n\t\t\t\t\t\t\trunning_program.b,\n\t\t\t\t\t\t\trunning_program.duration,\n\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\teasing,\n\t\t\t\t\t\t\tconfig.css\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (running_program) {\n\t\t\t\t\tif (now >= running_program.end) {\n\t\t\t\t\t\ttick((t = running_program.b), 1 - t);\n\t\t\t\t\t\tdispatch(node, running_program.b, 'end');\n\t\t\t\t\t\tif (!pending_program) {\n\t\t\t\t\t\t\t// we're done\n\t\t\t\t\t\t\tif (running_program.b) {\n\t\t\t\t\t\t\t\t// intro — we can tidy up immediately\n\t\t\t\t\t\t\t\tclear_animation();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// outro — needs to be coordinated\n\t\t\t\t\t\t\t\tif (!--running_program.group.r) run_all(running_program.group.c);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\trunning_program = null;\n\t\t\t\t\t} else if (now >= running_program.start) {\n\t\t\t\t\t\tconst p = now - running_program.start;\n\t\t\t\t\t\tt = running_program.a + running_program.d * easing(p / running_program.duration);\n\t\t\t\t\t\ttick(t, 1 - t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn !!(running_program || pending_program);\n\t\t\t});\n\t\t}\n\t}\n\treturn {\n\t\trun(b) {\n\t\t\tif (is_function(config)) {\n\t\t\t\twait().then(() => {\n\t\t\t\t\tconst opts = { direction: b ? 'in' : 'out' };\n\t\t\t\t\t// @ts-ignore\n\t\t\t\t\tconfig = config(opts);\n\t\t\t\t\tgo(b);\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tgo(b);\n\t\t\t}\n\t\t},\n\t\tend() {\n\t\t\tclear_animation();\n\t\t\trunning_program = pending_program = null;\n\t\t}\n\t};\n}\n\n/** @typedef {1} INTRO */\n/** @typedef {0} OUTRO */\n/** @typedef {{ direction: 'in' | 'out' | 'both' }} TransitionOptions */\n/** @typedef {(node: Element, params: any, options: TransitionOptions) => import('../transition/public.js').TransitionConfig} TransitionFn */\n\n/**\n * @typedef {Object} Outro\n * @property {number} r\n * @property {Function[]} c\n * @property {Object} p\n */\n\n/**\n * @typedef {Object} PendingProgram\n * @property {number} start\n * @property {INTRO|OUTRO} b\n * @property {Outro} [group]\n */\n\n/**\n * @typedef {Object} Program\n * @property {number} a\n * @property {INTRO|OUTRO} b\n * @property {1|-1} d\n * @property {number} duration\n * @property {number} start\n * @property {number} end\n * @property {Outro} [group]\n */\n","import { transition_in, transition_out } from './transitions.js';\nimport { run_all } from './utils.js';\n\n// general each functions:\n\nexport function ensure_array_like(array_like_or_iterator) {\n\treturn array_like_or_iterator?.length !== undefined\n\t\t? array_like_or_iterator\n\t\t: Array.from(array_like_or_iterator);\n}\n\n// keyed each functions:\n\n/** @returns {void} */\nexport function destroy_block(block, lookup) {\n\tblock.d(1);\n\tlookup.delete(block.key);\n}\n\n/** @returns {void} */\nexport function outro_and_destroy_block(block, lookup) {\n\ttransition_out(block, 1, 1, () => {\n\t\tlookup.delete(block.key);\n\t});\n}\n\n/** @returns {void} */\nexport function fix_and_destroy_block(block, lookup) {\n\tblock.f();\n\tdestroy_block(block, lookup);\n}\n\n/** @returns {void} */\nexport function fix_and_outro_and_destroy_block(block, lookup) {\n\tblock.f();\n\toutro_and_destroy_block(block, lookup);\n}\n\n/** @returns {any[]} */\nexport function update_keyed_each(\n\told_blocks,\n\tdirty,\n\tget_key,\n\tdynamic,\n\tctx,\n\tlist,\n\tlookup,\n\tnode,\n\tdestroy,\n\tcreate_each_block,\n\tnext,\n\tget_context\n) {\n\tlet o = old_blocks.length;\n\tlet n = list.length;\n\tlet i = o;\n\tconst old_indexes = {};\n\twhile (i--) old_indexes[old_blocks[i].key] = i;\n\tconst new_blocks = [];\n\tconst new_lookup = new Map();\n\tconst deltas = new Map();\n\tconst updates = [];\n\ti = n;\n\twhile (i--) {\n\t\tconst child_ctx = get_context(ctx, list, i);\n\t\tconst key = get_key(child_ctx);\n\t\tlet block = lookup.get(key);\n\t\tif (!block) {\n\t\t\tblock = create_each_block(key, child_ctx);\n\t\t\tblock.c();\n\t\t} else if (dynamic) {\n\t\t\t// defer updates until all the DOM shuffling is done\n\t\t\tupdates.push(() => block.p(child_ctx, dirty));\n\t\t}\n\t\tnew_lookup.set(key, (new_blocks[i] = block));\n\t\tif (key in old_indexes) deltas.set(key, Math.abs(i - old_indexes[key]));\n\t}\n\tconst will_move = new Set();\n\tconst did_move = new Set();\n\t/** @returns {void} */\n\tfunction insert(block) {\n\t\ttransition_in(block, 1);\n\t\tblock.m(node, next);\n\t\tlookup.set(block.key, block);\n\t\tnext = block.first;\n\t\tn--;\n\t}\n\twhile (o && n) {\n\t\tconst new_block = new_blocks[n - 1];\n\t\tconst old_block = old_blocks[o - 1];\n\t\tconst new_key = new_block.key;\n\t\tconst old_key = old_block.key;\n\t\tif (new_block === old_block) {\n\t\t\t// do nothing\n\t\t\tnext = new_block.first;\n\t\t\to--;\n\t\t\tn--;\n\t\t} else if (!new_lookup.has(old_key)) {\n\t\t\t// remove old block\n\t\t\tdestroy(old_block, lookup);\n\t\t\to--;\n\t\t} else if (!lookup.has(new_key) || will_move.has(new_key)) {\n\t\t\tinsert(new_block);\n\t\t} else if (did_move.has(old_key)) {\n\t\t\to--;\n\t\t} else if (deltas.get(new_key) > deltas.get(old_key)) {\n\t\t\tdid_move.add(new_key);\n\t\t\tinsert(new_block);\n\t\t} else {\n\t\t\twill_move.add(old_key);\n\t\t\to--;\n\t\t}\n\t}\n\twhile (o--) {\n\t\tconst old_block = old_blocks[o];\n\t\tif (!new_lookup.has(old_block.key)) destroy(old_block, lookup);\n\t}\n\twhile (n) insert(new_blocks[n - 1]);\n\trun_all(updates);\n\treturn new_blocks;\n}\n\n/** @returns {void} */\nexport function validate_each_keys(ctx, list, get_context, get_key) {\n\tconst keys = new Map();\n\tfor (let i = 0; i < list.length; i++) {\n\t\tconst key = get_key(get_context(ctx, list, i));\n\t\tif (keys.has(key)) {\n\t\t\tlet value = '';\n\t\t\ttry {\n\t\t\t\tvalue = `with value '${String(key)}' `;\n\t\t\t} catch (e) {\n\t\t\t\t// can't stringify\n\t\t\t}\n\t\t\tthrow new Error(\n\t\t\t\t`Cannot have duplicate keys in a keyed each: Keys at index ${keys.get(\n\t\t\t\t\tkey\n\t\t\t\t)} and ${i} ${value}are duplicates`\n\t\t\t);\n\t\t}\n\t\tkeys.set(key, i);\n\t}\n}\n","/** @returns {{}} */\nexport function get_spread_update(levels, updates) {\n\tconst update = {};\n\tconst to_null_out = {};\n\tconst accounted_for = { $$scope: 1 };\n\tlet i = levels.length;\n\twhile (i--) {\n\t\tconst o = levels[i];\n\t\tconst n = updates[i];\n\t\tif (n) {\n\t\t\tfor (const key in o) {\n\t\t\t\tif (!(key in n)) to_null_out[key] = 1;\n\t\t\t}\n\t\t\tfor (const key in n) {\n\t\t\t\tif (!accounted_for[key]) {\n\t\t\t\t\tupdate[key] = n[key];\n\t\t\t\t\taccounted_for[key] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tlevels[i] = n;\n\t\t} else {\n\t\t\tfor (const key in o) {\n\t\t\t\taccounted_for[key] = 1;\n\t\t\t}\n\t\t}\n\t}\n\tfor (const key in to_null_out) {\n\t\tif (!(key in update)) update[key] = undefined;\n\t}\n\treturn update;\n}\n\nexport function get_spread_object(spread_props) {\n\treturn typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n","import {\n\tadd_render_callback,\n\tflush,\n\tflush_render_callbacks,\n\tschedule_update,\n\tdirty_components\n} from './scheduler.js';\nimport { current_component, set_current_component } from './lifecycle.js';\nimport { blank_object, is_empty, is_function, run, run_all, noop } from './utils.js';\nimport {\n\tchildren,\n\tdetach,\n\tstart_hydrating,\n\tend_hydrating,\n\tget_custom_elements_slots,\n\tinsert,\n\telement,\n\tattr\n} from './dom.js';\nimport { transition_in } from './transitions.js';\n\n/** @returns {void} */\nexport function bind(component, name, callback) {\n\tconst index = component.$$.props[name];\n\tif (index !== undefined) {\n\t\tcomponent.$$.bound[index] = callback;\n\t\tcallback(component.$$.ctx[index]);\n\t}\n}\n\n/** @returns {void} */\nexport function create_component(block) {\n\tblock && block.c();\n}\n\n/** @returns {void} */\nexport function claim_component(block, parent_nodes) {\n\tblock && block.l(parent_nodes);\n}\n\n/** @returns {void} */\nexport function mount_component(component, target, anchor) {\n\tconst { fragment, after_update } = component.$$;\n\tfragment && fragment.m(target, anchor);\n\t// onMount happens before the initial afterUpdate\n\tadd_render_callback(() => {\n\t\tconst new_on_destroy = component.$$.on_mount.map(run).filter(is_function);\n\t\t// if the component was destroyed immediately\n\t\t// it will update the `$$.on_destroy` reference to `null`.\n\t\t// the destructured on_destroy may still reference to the old array\n\t\tif (component.$$.on_destroy) {\n\t\t\tcomponent.$$.on_destroy.push(...new_on_destroy);\n\t\t} else {\n\t\t\t// Edge case - component was destroyed immediately,\n\t\t\t// most likely as a result of a binding initialising\n\t\t\trun_all(new_on_destroy);\n\t\t}\n\t\tcomponent.$$.on_mount = [];\n\t});\n\tafter_update.forEach(add_render_callback);\n}\n\n/** @returns {void} */\nexport function destroy_component(component, detaching) {\n\tconst $$ = component.$$;\n\tif ($$.fragment !== null) {\n\t\tflush_render_callbacks($$.after_update);\n\t\trun_all($$.on_destroy);\n\t\t$$.fragment && $$.fragment.d(detaching);\n\t\t// TODO null out other refs, including component.$$ (but need to\n\t\t// preserve final state?)\n\t\t$$.on_destroy = $$.fragment = null;\n\t\t$$.ctx = [];\n\t}\n}\n\n/** @returns {void} */\nfunction make_dirty(component, i) {\n\tif (component.$$.dirty[0] === -1) {\n\t\tdirty_components.push(component);\n\t\tschedule_update();\n\t\tcomponent.$$.dirty.fill(0);\n\t}\n\tcomponent.$$.dirty[(i / 31) | 0] |= 1 << i % 31;\n}\n\n// TODO: Document the other params\n/**\n * @param {SvelteComponent} component\n * @param {import('./public.js').ComponentConstructorOptions} options\n *\n * @param {import('./utils.js')['not_equal']} not_equal Used to compare props and state values.\n * @param {(target: Element | ShadowRoot) => void} [append_styles] Function that appends styles to the DOM when the component is first initialised.\n * This will be the `add_css` function from the compiled component.\n *\n * @returns {void}\n */\nexport function init(\n\tcomponent,\n\toptions,\n\tinstance,\n\tcreate_fragment,\n\tnot_equal,\n\tprops,\n\tappend_styles = null,\n\tdirty = [-1]\n) {\n\tconst parent_component = current_component;\n\tset_current_component(component);\n\t/** @type {import('./private.js').T$$} */\n\tconst $$ = (component.$$ = {\n\t\tfragment: null,\n\t\tctx: [],\n\t\t// state\n\t\tprops,\n\t\tupdate: noop,\n\t\tnot_equal,\n\t\tbound: blank_object(),\n\t\t// lifecycle\n\t\ton_mount: [],\n\t\ton_destroy: [],\n\t\ton_disconnect: [],\n\t\tbefore_update: [],\n\t\tafter_update: [],\n\t\tcontext: new Map(options.context || (parent_component ? parent_component.$$.context : [])),\n\t\t// everything else\n\t\tcallbacks: blank_object(),\n\t\tdirty,\n\t\tskip_bound: false,\n\t\troot: options.target || parent_component.$$.root\n\t});\n\tappend_styles && append_styles($$.root);\n\tlet ready = false;\n\t$$.ctx = instance\n\t\t? instance(component, options.props || {}, (i, ret, ...rest) => {\n\t\t\t\tconst value = rest.length ? rest[0] : ret;\n\t\t\t\tif ($$.ctx && not_equal($$.ctx[i], ($$.ctx[i] = value))) {\n\t\t\t\t\tif (!$$.skip_bound && $$.bound[i]) $$.bound[i](value);\n\t\t\t\t\tif (ready) make_dirty(component, i);\n\t\t\t\t}\n\t\t\t\treturn ret;\n\t\t })\n\t\t: [];\n\t$$.update();\n\tready = true;\n\trun_all($$.before_update);\n\t// `false` as a special case of no DOM component\n\t$$.fragment = create_fragment ? create_fragment($$.ctx) : false;\n\tif (options.target) {\n\t\tif (options.hydrate) {\n\t\t\tstart_hydrating();\n\t\t\t// TODO: what is the correct type here?\n\t\t\t// @ts-expect-error\n\t\t\tconst nodes = children(options.target);\n\t\t\t$$.fragment && $$.fragment.l(nodes);\n\t\t\tnodes.forEach(detach);\n\t\t} else {\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\t\t\t$$.fragment && $$.fragment.c();\n\t\t}\n\t\tif (options.intro) transition_in(component.$$.fragment);\n\t\tmount_component(component, options.target, options.anchor);\n\t\tend_hydrating();\n\t\tflush();\n\t}\n\tset_current_component(parent_component);\n}\n\nexport let SvelteElement;\n\nif (typeof HTMLElement === 'function') {\n\tSvelteElement = class extends HTMLElement {\n\t\t/** The Svelte component constructor */\n\t\t$$ctor;\n\t\t/** Slots */\n\t\t$$s;\n\t\t/** The Svelte component instance */\n\t\t$$c;\n\t\t/** Whether or not the custom element is connected */\n\t\t$$cn = false;\n\t\t/** Component props data */\n\t\t$$d = {};\n\t\t/** `true` if currently in the process of reflecting component props back to attributes */\n\t\t$$r = false;\n\t\t/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */\n\t\t$$p_d = {};\n\t\t/** @type {Record<string, Function[]>} Event listeners */\n\t\t$$l = {};\n\t\t/** @type {Map<Function, Function>} Event listener unsubscribe functions */\n\t\t$$l_u = new Map();\n\n\t\tconstructor($$componentCtor, $$slots, use_shadow_dom) {\n\t\t\tsuper();\n\t\t\tthis.$$ctor = $$componentCtor;\n\t\t\tthis.$$s = $$slots;\n\t\t\tif (use_shadow_dom) {\n\t\t\t\tthis.attachShadow({ mode: 'open' });\n\t\t\t}\n\t\t}\n\n\t\taddEventListener(type, listener, options) {\n\t\t\t// We can't determine upfront if the event is a custom event or not, so we have to\n\t\t\t// listen to both. If someone uses a custom event with the same name as a regular\n\t\t\t// browser event, this fires twice - we can't avoid that.\n\t\t\tthis.$$l[type] = this.$$l[type] || [];\n\t\t\tthis.$$l[type].push(listener);\n\t\t\tif (this.$$c) {\n\t\t\t\tconst unsub = this.$$c.$on(type, listener);\n\t\t\t\tthis.$$l_u.set(listener, unsub);\n\t\t\t}\n\t\t\tsuper.addEventListener(type, listener, options);\n\t\t}\n\n\t\tremoveEventListener(type, listener, options) {\n\t\t\tsuper.removeEventListener(type, listener, options);\n\t\t\tif (this.$$c) {\n\t\t\t\tconst unsub = this.$$l_u.get(listener);\n\t\t\t\tif (unsub) {\n\t\t\t\t\tunsub();\n\t\t\t\t\tthis.$$l_u.delete(listener);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tasync connectedCallback() {\n\t\t\tthis.$$cn = true;\n\t\t\tif (!this.$$c) {\n\t\t\t\t// We wait one tick to let possible child slot elements be created/mounted\n\t\t\t\tawait Promise.resolve();\n\t\t\t\tif (!this.$$cn || this.$$c) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tfunction create_slot(name) {\n\t\t\t\t\treturn () => {\n\t\t\t\t\t\tlet node;\n\t\t\t\t\t\tconst obj = {\n\t\t\t\t\t\t\tc: function create() {\n\t\t\t\t\t\t\t\tnode = element('slot');\n\t\t\t\t\t\t\t\tif (name !== 'default') {\n\t\t\t\t\t\t\t\t\tattr(node, 'name', name);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t * @param {HTMLElement} target\n\t\t\t\t\t\t\t * @param {HTMLElement} [anchor]\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tm: function mount(target, anchor) {\n\t\t\t\t\t\t\t\tinsert(target, node, anchor);\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\td: function destroy(detaching) {\n\t\t\t\t\t\t\t\tif (detaching) {\n\t\t\t\t\t\t\t\t\tdetach(node);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\t\t\t\t\t\treturn obj;\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tconst $$slots = {};\n\t\t\t\tconst existing_slots = get_custom_elements_slots(this);\n\t\t\t\tfor (const name of this.$$s) {\n\t\t\t\t\tif (name in existing_slots) {\n\t\t\t\t\t\t$$slots[name] = [create_slot(name)];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (const attribute of this.attributes) {\n\t\t\t\t\t// this.$$data takes precedence over this.attributes\n\t\t\t\t\tconst name = this.$$g_p(attribute.name);\n\t\t\t\t\tif (!(name in this.$$d)) {\n\t\t\t\t\t\tthis.$$d[name] = get_custom_element_value(name, attribute.value, this.$$p_d, 'toProp');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Port over props that were set programmatically before ce was initialized\n\t\t\t\tfor (const key in this.$$p_d) {\n\t\t\t\t\tif (!(key in this.$$d) && this[key] !== undefined) {\n\t\t\t\t\t\tthis.$$d[key] = this[key]; // don't transform, these were set through JavaScript\n\t\t\t\t\t\tdelete this[key]; // remove the property that shadows the getter/setter\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthis.$$c = new this.$$ctor({\n\t\t\t\t\ttarget: this.shadowRoot || this,\n\t\t\t\t\tprops: {\n\t\t\t\t\t\t...this.$$d,\n\t\t\t\t\t\t$$slots,\n\t\t\t\t\t\t$$scope: {\n\t\t\t\t\t\t\tctx: []\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t// Reflect component props as attributes\n\t\t\t\tconst reflect_attributes = () => {\n\t\t\t\t\tthis.$$r = true;\n\t\t\t\t\tfor (const key in this.$$p_d) {\n\t\t\t\t\t\tthis.$$d[key] = this.$$c.$$.ctx[this.$$c.$$.props[key]];\n\t\t\t\t\t\tif (this.$$p_d[key].reflect) {\n\t\t\t\t\t\t\tconst attribute_value = get_custom_element_value(\n\t\t\t\t\t\t\t\tkey,\n\t\t\t\t\t\t\t\tthis.$$d[key],\n\t\t\t\t\t\t\t\tthis.$$p_d,\n\t\t\t\t\t\t\t\t'toAttribute'\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tif (attribute_value == null) {\n\t\t\t\t\t\t\t\tthis.removeAttribute(this.$$p_d[key].attribute || key);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tthis.setAttribute(this.$$p_d[key].attribute || key, attribute_value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tthis.$$r = false;\n\t\t\t\t};\n\t\t\t\tthis.$$c.$$.after_update.push(reflect_attributes);\n\t\t\t\treflect_attributes(); // once initially because after_update is added too late for first render\n\n\t\t\t\tfor (const type in this.$$l) {\n\t\t\t\t\tfor (const listener of this.$$l[type]) {\n\t\t\t\t\t\tconst unsub = this.$$c.$on(type, listener);\n\t\t\t\t\t\tthis.$$l_u.set(listener, unsub);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthis.$$l = {};\n\t\t\t}\n\t\t}\n\n\t\t// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte\n\t\t// and setting attributes through setAttribute etc, this is helpful\n\t\tattributeChangedCallback(attr, _oldValue, newValue) {\n\t\t\tif (this.$$r) return;\n\t\t\tattr = this.$$g_p(attr);\n\t\t\tthis.$$d[attr] = get_custom_element_value(attr, newValue, this.$$p_d, 'toProp');\n\t\t\tthis.$$c?.$set({ [attr]: this.$$d[attr] });\n\t\t}\n\n\t\tdisconnectedCallback() {\n\t\t\tthis.$$cn = false;\n\t\t\t// In a microtask, because this could be a move within the DOM\n\t\t\tPromise.resolve().then(() => {\n\t\t\t\tif (!this.$$cn) {\n\t\t\t\t\tthis.$$c.$destroy();\n\t\t\t\t\tthis.$$c = undefined;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\t$$g_p(attribute_name) {\n\t\t\treturn (\n\t\t\t\tObject.keys(this.$$p_d).find(\n\t\t\t\t\t(key) =>\n\t\t\t\t\t\tthis.$$p_d[key].attribute === attribute_name ||\n\t\t\t\t\t\t(!this.$$p_d[key].attribute && key.toLowerCase() === attribute_name)\n\t\t\t\t) || attribute_name\n\t\t\t);\n\t\t}\n\t};\n}\n\n/**\n * @param {string} prop\n * @param {any} value\n * @param {Record<string, CustomElementPropDefinition>} props_definition\n * @param {'toAttribute' | 'toProp'} [transform]\n */\nfunction get_custom_element_value(prop, value, props_definition, transform) {\n\tconst type = props_definition[prop]?.type;\n\tvalue = type === 'Boolean' && typeof value !== 'boolean' ? value != null : value;\n\tif (!transform || !props_definition[prop]) {\n\t\treturn value;\n\t} else if (transform === 'toAttribute') {\n\t\tswitch (type) {\n\t\t\tcase 'Object':\n\t\t\tcase 'Array':\n\t\t\t\treturn value == null ? null : JSON.stringify(value);\n\t\t\tcase 'Boolean':\n\t\t\t\treturn value ? '' : null;\n\t\t\tcase 'Number':\n\t\t\t\treturn value == null ? null : value;\n\t\t\tdefault:\n\t\t\t\treturn value;\n\t\t}\n\t} else {\n\t\tswitch (type) {\n\t\t\tcase 'Object':\n\t\t\tcase 'Array':\n\t\t\t\treturn value && JSON.parse(value);\n\t\t\tcase 'Boolean':\n\t\t\t\treturn value; // conversion already handled above\n\t\t\tcase 'Number':\n\t\t\t\treturn value != null ? +value : value;\n\t\t\tdefault:\n\t\t\t\treturn value;\n\t\t}\n\t}\n}\n\n/**\n * @internal\n *\n * Turn a Svelte component into a custom element.\n * @param {import('./public.js').ComponentType} Component A Svelte component constructor\n * @param {Record<string, CustomElementPropDefinition>} props_definition The props to observe\n * @param {string[]} slots The slots to create\n * @param {string[]} accessors Other accessors besides the ones for props the component has\n * @param {boolean} use_shadow_dom Whether to use shadow DOM\n * @param {(ce: new () => HTMLElement) => new () => HTMLElement} [extend]\n */\nexport function create_custom_element(\n\tComponent,\n\tprops_definition,\n\tslots,\n\taccessors,\n\tuse_shadow_dom,\n\textend\n) {\n\tlet Class = class extends SvelteElement {\n\t\tconstructor() {\n\t\t\tsuper(Component, slots, use_shadow_dom);\n\t\t\tthis.$$p_d = props_definition;\n\t\t}\n\t\tstatic get observedAttributes() {\n\t\t\treturn Object.keys(props_definition).map((key) =>\n\t\t\t\t(props_definition[key].attribute || key).toLowerCase()\n\t\t\t);\n\t\t}\n\t};\n\tObject.keys(props_definition).forEach((prop) => {\n\t\tObject.defineProperty(Class.prototype, prop, {\n\t\t\tget() {\n\t\t\t\treturn this.$$c && prop in this.$$c ? this.$$c[prop] : this.$$d[prop];\n\t\t\t},\n\t\t\tset(value) {\n\t\t\t\tvalue = get_custom_element_value(prop, value, props_definition);\n\t\t\t\tthis.$$d[prop] = value;\n\t\t\t\tthis.$$c?.$set({ [prop]: value });\n\t\t\t}\n\t\t});\n\t});\n\taccessors.forEach((accessor) => {\n\t\tObject.defineProperty(Class.prototype, accessor, {\n\t\t\tget() {\n\t\t\t\treturn this.$$c?.[accessor];\n\t\t\t}\n\t\t});\n\t});\n\tif (extend) {\n\t\t// @ts-expect-error - assigning here is fine\n\t\tClass = extend(Class);\n\t}\n\tComponent.element = /** @type {any} */ (Class);\n\treturn Class;\n}\n\n/**\n * Base class for Svelte components. Used when dev=false.\n *\n * @template {Record<string, any>} [Props=any]\n * @template {Record<string, any>} [Events=any]\n */\nexport class SvelteComponent {\n\t/**\n\t * ### PRIVATE API\n\t *\n\t * Do not use, may change at any time\n\t *\n\t * @type {any}\n\t */\n\t$$ = undefined;\n\t/**\n\t * ### PRIVATE API\n\t *\n\t * Do not use, may change at any time\n\t *\n\t * @type {any}\n\t */\n\t$$set = undefined;\n\n\t/** @returns {void} */\n\t$destroy() {\n\t\tdestroy_component(this, 1);\n\t\tthis.$destroy = noop;\n\t}\n\n\t/**\n\t * @template {Extract<keyof Events, string>} K\n\t * @param {K} type\n\t * @param {((e: Events[K]) => void) | null | undefined} callback\n\t * @returns {() => void}\n\t */\n\t$on(type, callback) {\n\t\tif (!is_function(callback)) {\n\t\t\treturn noop;\n\t\t}\n\t\tconst callbacks = this.$$.callbacks[type] || (this.$$.callbacks[type] = []);\n\t\tcallbacks.push(callback);\n\t\treturn () => {\n\t\t\tconst index = callbacks.indexOf(callback);\n\t\t\tif (index !== -1) callbacks.splice(index, 1);\n\t\t};\n\t}\n\n\t/**\n\t * @param {Partial<Props>} props\n\t * @returns {void}\n\t */\n\t$set(props) {\n\t\tif (this.$$set && !is_empty(props)) {\n\t\t\tthis.$$.skip_bound = true;\n\t\t\tthis.$$set(props);\n\t\t\tthis.$$.skip_bound = false;\n\t\t}\n\t}\n}\n\n/**\n * @typedef {Object} CustomElementPropDefinition\n * @property {string} [attribute]\n * @property {boolean} [reflect]\n * @property {'String'|'Boolean'|'Number'|'Array'|'Object'} [type]\n */\n","// generated during release, do not modify\n\n/**\n * The current version, as set in package.json.\n *\n * https://svelte.dev/docs/svelte-compiler#svelte-version\n * @type {string}\n */\nexport const VERSION = '4.2.12';\nexport const PUBLIC_VERSION = '4';\n","import { PUBLIC_VERSION } from '../../../shared/version.js';\n\nif (typeof window !== 'undefined')\n\t// @ts-ignore\n\t(window.__svelte || (window.__svelte = { v: new Set() })).v.add(PUBLIC_VERSION);\n","import {\n\trun_all,\n\tsubscribe,\n\tnoop,\n\tsafe_not_equal,\n\tis_function,\n\tget_store_value\n} from '../internal/index.js';\n\nconst subscriber_queue = [];\n\n/**\n * Creates a `Readable` store that allows reading by subscription.\n *\n * https://svelte.dev/docs/svelte-store#readable\n * @template T\n * @param {T} [value] initial value\n * @param {import('./public.js').StartStopNotifier<T>} [start]\n * @returns {import('./public.js').Readable<T>}\n */\nexport function readable(value, start) {\n\treturn {\n\t\tsubscribe: writable(value, start).subscribe\n\t};\n}\n\n/**\n * Create a `Writable` store that allows both updating and reading by subscription.\n *\n * https://svelte.dev/docs/svelte-store#writable\n * @template T\n * @param {T} [value] initial value\n * @param {import('./public.js').StartStopNotifier<T>} [start]\n * @returns {import('./public.js').Writable<T>}\n */\nexport function writable(value, start = noop) {\n\t/** @type {import('./public.js').Unsubscriber} */\n\tlet stop;\n\t/** @type {Set<import('./private.js').SubscribeInvalidateTuple<T>>} */\n\tconst subscribers = new Set();\n\t/** @param {T} new_value\n\t * @returns {void}\n\t */\n\tfunction set(new_value) {\n\t\tif (safe_not_equal(value, new_value)) {\n\t\t\tvalue = new_value;\n\t\t\tif (stop) {\n\t\t\t\t// store is ready\n\t\t\t\tconst run_queue = !subscriber_queue.length;\n\t\t\t\tfor (const subscriber of subscribers) {\n\t\t\t\t\tsubscriber[1]();\n\t\t\t\t\tsubscriber_queue.push(subscriber, value);\n\t\t\t\t}\n\t\t\t\tif (run_queue) {\n\t\t\t\t\tfor (let i = 0; i < subscriber_queue.length; i += 2) {\n\t\t\t\t\t\tsubscriber_queue[i][0](subscriber_queue[i + 1]);\n\t\t\t\t\t}\n\t\t\t\t\tsubscriber_queue.length = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * @param {import('./public.js').Updater<T>} fn\n\t * @returns {void}\n\t */\n\tfunction update(fn) {\n\t\tset(fn(value));\n\t}\n\n\t/**\n\t * @param {import('./public.js').Subscriber<T>} run\n\t * @param {import('./private.js').Invalidator<T>} [invalidate]\n\t * @returns {import('./public.js').Unsubscriber}\n\t */\n\tfunction subscribe(run, invalidate = noop) {\n\t\t/** @type {import('./private.js').SubscribeInvalidateTuple<T>} */\n\t\tconst subscriber = [run, invalidate];\n\t\tsubscribers.add(subscriber);\n\t\tif (subscribers.size === 1) {\n\t\t\tstop = start(set, update) || noop;\n\t\t}\n\t\trun(value);\n\t\treturn () => {\n\t\t\tsubscribers.delete(subscriber);\n\t\t\tif (subscribers.size === 0 && stop) {\n\t\t\t\tstop();\n\t\t\t\tstop = null;\n\t\t\t}\n\t\t};\n\t}\n\treturn { set, update, subscribe };\n}\n\n/**\n * Derived value store by synchronizing one or more readable stores and\n * applying an aggregation function over its input values.\n *\n * https://svelte.dev/docs/svelte-store#derived\n * @template {import('./private.js').Stores} S\n * @template T\n * @overload\n * @param {S} stores - input stores\n * @param {(values: import('./private.js').StoresValues<S>, set: (value: T) => void, update: (fn: import('./public.js').Updater<T>) => void) => import('./public.js').Unsubscriber | void} fn - function callback that aggregates the values\n * @param {T} [initial_value] - initial value\n * @returns {import('./public.js').Readable<T>}\n */\n\n/**\n * Derived value store by synchronizing one or more readable stores and\n * applying an aggregation function over its input values.\n *\n * https://svelte.dev/docs/svelte-store#derived\n * @template {import('./private.js').Stores} S\n * @template T\n * @overload\n * @param {S} stores - input stores\n * @param {(values: import('./private.js').StoresValues<S>) => T} fn - function callback that aggregates the values\n * @param {T} [initial_value] - initial value\n * @returns {import('./public.js').Readable<T>}\n */\n\n/**\n * @template {import('./private.js').Stores} S\n * @template T\n * @param {S} stores\n * @param {Function} fn\n * @param {T} [initial_value]\n * @returns {import('./public.js').Readable<T>}\n */\nexport function derived(stores, fn, initial_value) {\n\tconst single = !Array.isArray(stores);\n\t/** @type {Array<import('./public.js').Readable<any>>} */\n\tconst stores_array = single ? [stores] : stores;\n\tif (!stores_array.every(Boolean)) {\n\t\tthrow new Error('derived() expects stores as input, got a falsy value');\n\t}\n\tconst auto = fn.length < 2;\n\treturn readable(initial_value, (set, update) => {\n\t\tlet started = false;\n\t\tconst values = [];\n\t\tlet pending = 0;\n\t\tlet cleanup = noop;\n\t\tconst sync = () => {\n\t\t\tif (pending) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcleanup();\n\t\t\tconst result = fn(single ? values[0] : values, set, update);\n\t\t\tif (auto) {\n\t\t\t\tset(result);\n\t\t\t} else {\n\t\t\t\tcleanup = is_function(result) ? result : noop;\n\t\t\t}\n\t\t};\n\t\tconst unsubscribers = stores_array.map((store, i) =>\n\t\t\tsubscribe(\n\t\t\t\tstore,\n\t\t\t\t(value) => {\n\t\t\t\t\tvalues[i] = value;\n\t\t\t\t\tpending &= ~(1 << i);\n\t\t\t\t\tif (started) {\n\t\t\t\t\t\tsync();\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t() => {\n\t\t\t\t\tpending |= 1 << i;\n\t\t\t\t}\n\t\t\t)\n\t\t);\n\t\tstarted = true;\n\t\tsync();\n\t\treturn function stop() {\n\t\t\trun_all(unsubscribers);\n\t\t\tcleanup();\n\t\t\t// We need to set this to false because callbacks can still happen despite having unsubscribed:\n\t\t\t// Callbacks might already be placed in the queue which doesn't know it should no longer\n\t\t\t// invoke this derived store.\n\t\t\tstarted = false;\n\t\t};\n\t});\n}\n\n/**\n * Takes a store and returns a new one derived from the old one that is readable.\n *\n * https://svelte.dev/docs/svelte-store#readonly\n * @template T\n * @param {import('./public.js').Readable<T>} store - store to make readonly\n * @returns {import('./public.js').Readable<T>}\n */\nexport function readonly(store) {\n\treturn {\n\t\tsubscribe: store.subscribe.bind(store)\n\t};\n}\n\nexport { get_store_value as get };\n","<svg xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\" \n\t{...$$restProps}\n>\n <path d=\"M5.29292 6.70714L16.8049 18.2181C17.1955 18.6086 17.8286 18.6086 18.2191 18.2181C18.6096 17.8275 18.6096 17.1944 18.2191 16.8039L6.70708 5.29286C6.31653 4.90236 5.68337 4.90238 5.29286 5.29292C4.90236 5.68347 4.90238 6.31663 5.29292 6.70714Z\" />\n <path d=\"M16.7211 5.29773L5.28809 16.8877C4.90024 17.2809 4.90455 17.9141 5.29773 18.3019C5.69091 18.6898 6.32406 18.6854 6.71191 18.2923L18.1449 6.70227C18.5328 6.30909 18.5284 5.67594 18.1353 5.28809C17.7421 4.90024 17.1089 4.90455 16.7211 5.29773Z\" />\n</svg> ","\n<script context=\"module\" lang=\"ts\">\n import { writable } from 'svelte/store';\n\n type ToastType = \"success\" | \"failure\" | \"info\";\n\n export interface ToastMessage {\n message: string;\n type?: ToastType;\n title?: string;\n duration?: number;\n _ref?: HTMLElement;\n _progressRef?: HTMLElement;\n _animatingIn?: Animation;\n _animatingOut?: Animation; \n };\n export const toast = (toast: ToastMessage) => {\n if (toast.type === 'success' && !toast.duration) {\n toast.duration = defaultSuccessDuration;\n }\n toasts.update(t => {\n if (t.length < maxToasts) {\n return [...t, toast];\n } else {\n return [...t.slice(1), toast]; // Skip the oldest toast.\n }\n });\n };\n export const removeToast = (message: ToastMessage) => {\n toasts.update(t => {\n const i = t.findIndex(x => x === message);\n // NOTE: It is apparently important to NOT modify the array by using splice, \n // but instead to use filter to produce a new array, if you want Svelte to re-render correctly and not crash.\n return t.filter((_item, idx) => idx !== i); \n });\n };\n export const clearToasts = (type?: ToastType) => {\n toasts.update(t => {\n const newToasts = type ? t.filter(x => x.type !== type) : [];\n return newToasts;\n });\n };\n const toasts = writable<ToastMessage[]>([]);\n export const maxToasts = 5;\n export let defaultSuccessDuration = 3_000;\n\n // // Examples used for testing.\n // toast({message: \"Preferences saved! Preferences saved! Preferences saved! Preferences saved! Preferences saved! Preferences saved! Preferences saved! Preferences saved! Preferences saved! Preferences saved! \", type: 'success', duration: 2000});\n // toast({message: \"Preferences saved!\", type: 'failure', duration: 2000});\n // toast({message: \"Preferences saved!\", duration: 2000});\n // toast({message: \"Preferences saved!\", duration: 2000});\n // toast({message: \"Preferences saved!\", duration: 2000});\n // setTimeout(() => {\n // toast({message: \"Preferences saved!\", duration: 0, type: 'success'});\n // }, 1000);\n</script>\n\n<script lang=\"ts\">\n import Button from './Button.svelte';\n import CloseIcon from '../icons/CloseIcon.svelte';\n\n const animateOut = (toast: ToastMessage) => {\n if (toast.duration) {\n toast._animatingOut = toast._progressRef?.animate([\n { transform: 'translateX(0)' },\n { transform: 'translateX(-100%)' },\n ], { duration: toast.duration });\n toast._animatingOut!.onfinish = () => removeToast(toast);\n }\n };\n\n $: for (let toast of $toasts) {\n if (toast._ref && !toast._animatingIn) {\n toast._animatingIn = toast._ref?.animate([\n { opacity: 0 },\n { opacity: 1 },\n ], { duration: 1000 });\n }\n if (toast._progressRef && !toast._animatingOut) {\n animateOut(toast);\n }\n } \n\n const onHover = (toast: ToastMessage) => {\n toast._animatingOut?.cancel();\n };\n const onMouseOut = (toast: ToastMessage) => {\n animateOut(toast);\n };\n</script>\n\n<div class=\"fixed bottom-[30px] left-[50%] flex flex-col gap-2 max-h-[80%] overflow-auto translate-x-[-50%]\">\n{#each $toasts as toast}\n<div class=\"rounded z-10 text-center \n shadow-md\n w-[400px]\n max-w-[90vw]\n border-solid border-2 border-gray-300\n {toast.type === 'success' ? 'text-black bg-vv-teal-lightest border-vv-teal-light'\n :toast.type === 'failure' ? 'text-white bg-vv-red-dark border-vv-red-light'\n : 'text-black bg-vv-grey-mid-light'}\n\" \n bind:this={toast._ref}\n on:mouseover={() => onHover(toast)}\n on:focus={() => onHover(toast)}\n on:mouseout={() => onMouseOut(toast)}\n on:blur={() => onMouseOut(toast)}\n role=\"alert\">\n <div class=\"px-4 py-2 flex\" >\n <div class=\"flex-1\">{toast.message}</div>\n <div class=\"flex-initial\">\n <Button type=\"tertiary\" class=\"!min-h-[24px] \n {toast.type === 'failure' ? 'hover:bg-vv-red-danger-dark'\n :toast.type === 'success' ? 'hover:bg-vv-white'\n : ''}\"\n on:click={() => removeToast(toast)}>\n <CloseIcon width=14 height=14></CloseIcon>\n </Button>\n </div>\n </div>\n {#if toast.duration}\n <div class=\"overflow-hidden\">\n <div class=\"w-full h-[4px]\n {toast.type === 'failure' ? 'bg-vv-red-danger-dark'\n : 'bg-vv-teal-dark'}\"\n bind:this={toast._progressRef}>\n \n </div>\n </div>\n {/if}\n</div>\n{/each}\n</div>","import { writable } from 'svelte/store';\nimport type { Address } from './address';\nimport type { Election } from './elections';\nimport type { SubscriptionsResponse } from './subscriptions';\nimport { clearToasts } from '../lib/Toast.svelte';\n\nexport interface VvSettings {\n api: {\n url: string;\n key: string;\n },\n associationIdName: string,\n keyValueProfile?: string,\n address?: Address,\n electionCenter?: {\n address?: Address;\n // streetAddress: string;\n // state: string;\n // zipCode: string;\n associationIdName: string;\n urlRegisterToVote: string;\n urlFindYourPollingLocation: string;\n urlGetPersonalizedVotingResources: string;\n urlViewOfficials: string;\n urlViewOfficialsWithAddress: string;\n urlMyCandidates: string;\n elections: Election[];\n\n customSectionHeader?: string;\n customSectionBody?: string;\n imageUrl?: string;\n },\n subscriptions?: SubscriptionsResponse;\n}\n\nexport interface ValidationMessage {\n propertyName: string\n message: string\n}\nexport const vvSettings = (window as any).vvSettings as VvSettings;\n/** The base url for api calls (typically '/Api'). */\nconst base = vvSettings?.api?.url || '/Api';\n/** The usersite api key (you can copy it from usersite while testing). */\nconst key = vvSettings?.api?.key;\nconst headers = {\n \"Content-Type\": \"application/json; charset=utf-8\",\n \"Authorization\": key,\n // TODO - add language?\n};\nexport const associationIdName = vvSettings?.associationIdName ?? vvSettings?.electionCenter?.associationIdName;\nexport const isLoading = writable(false);\n\nexport const getDatePart = (dateString: string | undefined, part: 'day' | 'month' | 'year'): number => {\n const dateParts = (dateString != undefined && dateString != null && dateString.trim() != \"\") ? dateString.split('/') : [];\n\n if (dateParts.length !== 3) {\n throw new Error('Invalid date format. Please use \"mm/dd/yyyy\" format.');\n }\n\n const [month, day, year] = dateParts.map(Number);\n switch (part) {\n case 'day':\n return day;\n case 'month':\n return month;\n case 'year':\n return year;\n default:\n throw new Error('Invalid date part. Use \"day\", \"month\", or \"year\".');\n }\n}\n\nexport const getLocalizedMonthAbbreviation = (dateString: string | undefined): string => {\n const formatter = new Intl.DateTimeFormat(navigator.language, { month: 'short' });\n return formatter.format(new Date(dateString ?? ``));\n}\n\nexport const callApi = async <TBody, TResponse>(url: string, method: string, body?: TBody, hideLoadingBehavior?: boolean, ignoreBasePath?: boolean): Promise<TResponse> => {\n if (!hideLoadingBehavior) hideLoadingBehavior = false;\n try {\n if (hideLoadingBehavior === false)\n isLoading.set(true);\n clearToasts('failure');\n const urlWithBase = `${ignoreBasePath ? '' : base}/${url}`;\n const r = await fetch(urlWithBase, {\n headers,\n method,\n body: body ? JSON.stringify(body) : undefined,\n });\n const contentType = r.headers.get(\"content-type\");\n const isJson = contentType?.includes(\"application/json\") ?? false;\n const json: TResponse = isJson ? await r.json() : await r.text();\n if (r.ok) {\n return json;\n } else {\n throw new Error(`${json}`);\n }\n } catch (error) {\n // Re-throw the error so that it can be handled by the caller\n throw error;\n } finally {\n if (hideLoadingBehavior === false)\n isLoading.set(false);\n }\n}\n\nexport const fetchGet = async <T>(url: string, hideLoadingBehavior?: boolean) => await callApi<undefined, T>(url, \"GET\", undefined, hideLoadingBehavior);\nexport const fetchPost = async <TBody, TResponse>(url: string, body: TBody, ignoreBasePath?: boolean) => await callApi<TBody, TResponse>(url, \"POST\", body, false, ignoreBasePath);\nexport const fetchPut = async <TBody, TResponse>(url: string, body: TBody) => await callApi<TBody, TResponse>(url, \"PUT\", body);\nexport const fetchDelete = async <TBody, TResponse>(url: string, body: TBody, ignoreBasePath?: boolean) => await callApi<TBody, TResponse>(url, \"DELETE\", body, false, ignoreBasePath);\n\n\nexport const noPictureUrl: string = 'https://www.votervoice.net/photos/nopicture.jpg';\nexport const scrollIntoView = (el: Element) => {\n if (window.innerWidth >= 1280 || !el || el == null) return;\n el.scrollIntoView({\n behavior: 'smooth'\n });\n}\n\nexport const extractDistinctStrings = (objects: any[]) => {\n return [...new Set(objects.flatMap(obj =>\n Object.values(obj).filter(value => typeof value === 'string')\n ))];\n};\n\nexport const levelsOfTargetsStrings = {\n federal: 'federal',\n state: 'state',\n local: 'local',\n media: 'media'\n}\nexport const countryStrings = {\n us: 'us',\n ca: 'ca'\n}\n\nexport function convertToQueryStringParams(json: any) {\n return Object.keys(json)\n .map(key => encodeURIComponent(key) + '=' + encodeURIComponent(json[key]))\n .join('&');\n}\n\nexport function getCleanHashFragment() {\n const hash = window.location.hash.substring(1) || '';\n return hash.split('?')[0];\n}\n\nexport function getQueryParam(paramName: string) {\n const hash = window.location.hash.substring(1);\n const queryIndex = hash.indexOf('?');\n if (queryIndex === -1) return null;\n\n const queryString = hash.substring(queryIndex + 1);\n const params = new URLSearchParams(queryString);\n return params.get(paramName);\n}","<script context=\"module\">\n /** static properties so we can have unique ids for each Button */\n export let _id = 1;\n</script>\n\n<script lang=\"ts\">\n import { isLoading } from \"../api/common\";\n\n export let ref: HTMLElement | undefined = undefined;\n const generatedId = `vv-button-${_id++}`;\n export let id = '';\n export let buttonClass = '';\n export { buttonClass as class };\n type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'fntertiary' | 'danger' | 'navigation' | 'hyperlink' | 'action-center' | undefined;\n export let type: ButtonType = undefined;\n const buttonTypeClasses = { \n primary: `border-vv-teal bg-vv-teal text-vv-white ring-vv-teal\n hover:bg-vv-teal-dark active:bg-vv-teal-darkest\n disabled:bg-vv-grey-light disabled:border-vv-grey-light disabled:text-vv-grey-power \n `,\n secondary: `border-vv-grey-mid-light bg-vv-grey-light text-vv-black ring-vv-grey-mid\n hover:bg-vv-grey-mid-light active:bg-vv-grey-mid\n disabled:bg-vv-white disabled:text-vv-grey-power `,\n tertiary: `border-none ring-vv-grey-mid\n hover:bg-vv-grey-light active:bg-vv-grey-mid\n disabled:bg-vv-white disabled:text-vv-grey-power `,\n fntertiary: `border border-solid border-fn-purple text-fn-purple\n hover:bg-vv-grey-light active:bg-vv-grey-mid\n disabled:bg-vv-white disabled:text-vv-grey-power `,\n danger: `border-vv-red-danger bg-vv-red-danger text-vv-white ring-vv-red-danger\n hover:bg-vv-red-danger-dark active:bg-vv-red-danger-darkest\n disabled:bg-vv-grey-light disabled:border-vv-grey-light disabled:text-vv-grey-power`,\n navigation: `border text-black\n hover:bg-vv-grey-light active:bg-vv-grey-mid\n disabled:bg-vv-white disabled:text-vv-grey-power \n border-solid border-[var(--vv-action-center-button-color)]`,\n hyperlink: `underline text-[#1b75d0] hover:text-[#155ca2] border-none`,\n \"action-center\": `border-none\n opacity-[0.9] hover:opacity-[1] active:opacity-[1]\n bg-[var(--vv-action-center-button-color,var(--vv-grey-mid))]\n !text-[var(--vv-action-center-button-text,var(--vv-black))]\n ring-[var(--vv-action-center-button-color,var(--vv-grey-mid))]\n disabled:opacity-[0.4]\n `,\n };\n export let disabled = false;\n export let tag: keyof HTMLElementTagNameMap = 'button';\n</script>\n\n<svelte:element id={id || generatedId} this={tag} class=\"rounded !px-2 !py-1 text-center border border-solid border-gray-200\n flex-inline items-center min-h-[45px]\n disabled:cursor-not-allowed\n outline-none focus:outline-none focus-visible:ring focus-visible:ring-2 focus-visible:ring-offset-2\n transition-opacity\n {buttonTypeClasses[type || 'primary']}\n {buttonClass}\n \"\n tabindex=\"0\"\n role=\"button\"\n disabled={disabled || $isLoading}\n aria-disabled={disabled || $isLoading}\n on:click\n on:mouseover\n on:mouseenter\n on:mouseleave\n on:mousedown\n on:focus\n on:blur\n {...$$restProps}\n bind:this={ref}>\n <slot></slot>\n</svelte:element>\n","\n<script lang=\"ts\">\n export let year: number;\n export let month: string;\n export let day: number;\n export let description: string;\n export let displayCategory: string;\n export let passed: boolean; \n</script>\n\n<div class=\"flex gap-4 items-center\">\n <div class=\"border-solid border-[1px] border-gray-300 text-center w-[70px] pb-1\">\n <div class=\"text-xs border-solid border-b-[1px] border-gray-300 uppercase\">{month}</div>\n <div class=\"text-md font-bold\">{day}</div>\n <div class=\"text-xs\">{year}</div>\n </div>\n <div class=\"capitalize\">\n {description} \n <div class=\"text-sm\">{displayCategory}</div>\n {#if passed}\n <div class=\"text-xs text-orange-700\">(Passed)</div>\n {/if}\n </div>\n</div>","/**** WARNING: This is a generated file, so any changes might get overwritten! ****/\nconst _t = (window as any).vvTranslations?.Common || {};\nexport const Visit_ElectionCenter_Header = (): string => _t.Visit_ElectionCenter_Header ?? \"Visit Election Center\";\nexport const Visit_ElectionCenter_SubHeader = (): string => _t.Visit_ElectionCenter_SubHeader ?? \"for more voting information\";\nexport const Visit_ElectionCenter_ButtonText = (): string => _t.Visit_ElectionCenter_ButtonText ?? \"Election Center\";\nexport const Federal_Label = (): string => _t.Federal_Label ?? \"Federal\";\nexport const US_Federal_Description = (): string => _t.US_Federal_Description ?? \"Your President, Vice President, US Senators, and Representatives are responsible for national governance, including defense, international relations, and federal legislation affecting issues like taxes, healthcare, and immigration.\";\nexport const CA_Federal_Description = (): string => _t.CA_Federal_Description ?? \"The Canada Federal Government handles nationwide issues such as defense, foreign policy, national economy, and federal laws that impact all Canadians.\";\nexport const US_State_Label = (): string => _t.US_State_Label ?? \"State\";\nexport const US_State_Description = (): string => _t.US_State_Description ?? \"Your Governor, State Senators, and Representatives oversee state level issues such as education, transportation, public safety, and state healthcare programs, directly impacting the day-to-day operations and services within your state.\";\nexport const CA_State_Label = (): string => _t.CA_State_Label ?? \"Province/Territory\";\nexport const CA_State_Description = (): string => _t.CA_State_Description ?? \"Provincial and territorial governments in Canada manage regional responsibilities like education, healthcare, transportation, and local law enforcement. They ensure that services and policies are tailored to the specific needs of their residents.\";\nexport const Local_Label = (): string => _t.Local_Label ?? \"Local\";\nexport const US_Local_Description = (): string => _t.US_Local_Description ?? \"Your Mayor, City Council members, and other local officials are responsible for managing local services such as policing, fire departments, zoning, local ordinances, and public works, ensuring the smooth operation of your municipality.\";\nexport const CA_Local_Description = (): string => _t.CA_Local_Description ?? \"Local officials in Canada, including Mayors and City Councils, handle community-specific tasks such as policing, local infrastructure, public parks, and municipal services.\";\nexport const Media_Label = (): string => _t.Media_Label ?? \"Media\";\nexport const Media_Description = (): string => _t.Media_Description ?? \"Reach out to your local media outlet to submit a letter to the editor on behalf of your organization.\";\nexport const Background_Label = (): string => _t.Background_Label ?? \"Background\";\nexport const Family_Label = (): string => _t.Family_Label ?? \"Family\";\nexport const Religion_Label = (): string => _t.Religion_Label ?? \"Religion\";\nexport const Birthplace_Label = (): string => _t.Birthplace_Label ?? \"Birthplace\";\nexport const Home_Label = (): string => _t.Home_Label ?? \"Home\";\nexport const DateofBirth_Label = (): string => _t.DateofBirth_Label ?? \"Date of Birth\";\nexport const Sincerely = (): string => _t.Sincerely ?? \"Sincerely, \";\nexport const Membership_Receives_Messages_Label = (): string => _t.Membership_Receives_Messages_Label ?? \"Yes, sign me up for email updates and alerts\";\nexport const Remember_Me_Label = (): string => _t.Remember_Me_Label ?? \"Remember Me\";\nexport const Required_Validation_Message = (): string => _t.Required_Validation_Message ?? \"Required\";\nexport const Invalid_Value_Validation_Message = (): string => _t.Invalid_Value_Validation_Message ?? \"Invalid\";\nexport const Maximum_Length_Validation_Message = (maxLength: string): string => {\n const override: string = _t.Maximum_Length_Validation_Message;\n const args = {maxLength};\n const msg: string =\n override ? replaceParameters(override, args) \n : `Must be less than ${maxLength} characters`;\n return msg;\n}\n;\nexport const Minimum_Length_Validation_Message = (minLength: string): string => {\n const override: string = _t.Minimum_Length_Validation_Message;\n const args = {minLength};\n const msg: string =\n override ? replaceParameters(override, args) \n : `Must be more than ${minLength} characters`;\n return msg;\n}\n;\nexport const Phone_Validation_Message = (): string => _t.Phone_Validation_Message ?? \"Must be a valid phone number\";\nexport const Alpha_Numeric_Validation_Message = (): string => _t.Alpha_Numeric_Validation_Message ?? \"Must only contain letters and numbers\";\nexport const Date_Range_Validation_Message = (): string => _t.Date_Range_Validation_Message ?? \"Must be a valid date range\";\nexport const Email_Validation_Message = (): string => _t.Email_Validation_Message ?? \"Must be a valid email address\";\nexport const Greater_Than_Validation_Message = (minValue: string): string => {\n const override: string = _t.Greater_Than_Validation_Message;\n const args = {minValue};\n const msg: string =\n override ? replaceParameters(override, args) \n : `Must be greater than ${minValue}`;\n return msg;\n}\n;\nexport const Invalid_First_Name_Validation_Message = (): string => _t.Invalid_First_Name_Validation_Message ?? \"You have entered an invalid first name. It must be at least two characters, and contain only letters, spaces, apostrophes, periods, or hyphens.\";\nexport const Invalid_Last_Name_Validation_Message = (): string => _t.Invalid_Last_Name_Validation_Message ?? \"You have entered an invalid last name. It must be at least two characters, and contain only letters, spaces, apostrophes, periods, or hyphens.\";\nexport const Mobile_Number_In_Use_Validation_Message = (): string => _t.Mobile_Number_In_Use_Validation_Message ?? \"That mobile number is already in use. Please provide another mobile number.\";\nexport const Logged_In_User_Link_Text = (name: string): string => {\n const override: string = _t.Logged_In_User_Link_Text;\n const args = {name};\n const msg: string =\n override ? replaceParameters(override, args) \n : `Not ${name}?`;\n return msg;\n}\n;\n","/**** WARNING: This is a generated file, so any changes might get overwritten! ****/\nconst _t = (window as any).vvTranslations?.ElectionCenter || {};\nexport * from './Common.ts';\n/** The header for the election center page. */\nexport const Page_Header = (): string => _t.Page_Header ?? \"Election Center\";\nexport const Page_SubTitle = (): string => _t.Page_SubTitle ?? \"Your one-stop shop before an election\";\nexport const Calendar_Header = (): string => _t.Calendar_Header ?? \"Calendar\";\nexport const EmptyAddress_Header = (): string => _t.EmptyAddress_Header ?? \"View Your Election Center\";\nexport const VotingResources_Header = (): string => _t.VotingResources_Header ?? \"Voting Resources\";\nexport const VotingResources_SubTitle = (): string => _t.VotingResources_SubTitle ?? \"Get personalized voting information based on your address\";\nexport const VotingResources_Register_Header = (): string => _t.VotingResources_Register_Header ?? \"Register\";\nexport const VotingResources_Register_SubTitle = (): string => _t.VotingResources_Register_SubTitle ?? \"to Vote\";\nexport const VotingResources_Find_Header = (): string => _t.VotingResources_Find_Header ?? \"Find\";\nexport const VotingResources_Find_SubTitle = (): string => _t.VotingResources_Find_SubTitle ?? \"Your Polling Location\";\nexport const VotingResources_Get_Header = (): string => _t.VotingResources_Get_Header ?? \"Get\";\nexport const VotingResources_Get_SubTitle = (): string => _t.VotingResources_Get_SubTitle ?? \"Voting Resources\";\nexport const MyElectedOfficials_Header = (): string => _t.MyElectedOfficials_Header ?? \"My Elected Officials\";\nexport const MyElectedOfficials_Body = (): string => _t.MyElectedOfficials_Body ?? \"Get to know your officials on federal, state and local levels\";\nexport const MyElectedOfficials_ViewButton = (): string => _t.MyElectedOfficials_ViewButton ?? \"View Officials\";\nexport const MyCandidates_Header = (): string => _t.MyCandidates_Header ?? \"My Candidates\";\nexport const MyCandidates_Body = (): string => _t.MyCandidates_Body ?? \"Check your candidates for upcoming elections\";\nexport const MyCandidates_ViewButton = (): string => _t.MyCandidates_ViewButton ?? \"View Candidates\";\n","import type { Address } from \"./address\"\nimport { associationIdName, fetchDelete, fetchGet, fetchPost } from \"./common\"\n\nexport interface User {\n userId?: number\n honorific?: string\n givenNames?: string\n surname?: string\n emailAddress?: string\n phoneNumber?: string\n\n commonHonorific?: string\n homeAddress?: Address | null\n businessAddress?: Address | null\n userToken?: string\n \n membershipReceivesTextMessages?: boolean\n membershipReceivesMessages?: boolean\n rememberMe?: boolean\n}\n\nexport interface Membership {\n isSubscriber: boolean\n isTextSubscriber?: boolean\n contactId?: string\n}\n\nexport interface Validation {\n field: string\n value?: any\n message?: string\n}\n\nexport interface Message { \n subject: string\n content: string\n}\n\nexport interface HonorificsResponse {\n honorific: string;\n}\nexport interface MobileNumberResponse {\n isNotMobileNumber: boolean\n requiresStartTextMessageToResubscribe: boolean\n}\n\nexport const sanitizeHonorific = async (user: User) => {\n const url = `Users/Honorifics?honorific=${user.honorific}`;\n const response = await fetchGet(url) as HonorificsResponse;\n return response;\n}\n\nexport const checkUserPhone = async (user: User) => {\n const url = `Users/${user.userToken}/MobileNumber?association=${associationIdName}&mobileNumber=${user.phoneNumber}`;\n const response = await fetchGet(url) as MobileNumberResponse[];\n return response;\n}\n\nexport const postUser = async (user: User) => {\n const url = `Users?association=${associationIdName}`;\n const response = await fetchPost(url, user) as User;\n return response;\n}\n\nexport const getUser = async () => {\n const url = `Users/GetRemembered?association=${associationIdName}`;\n const response = await fetchGet(url) as User;\n return response;\n}\n\nexport const postMemberships = async (user: User) => {\n const url = `Users/${user.userToken}/Memberships?association=${associationIdName}&receivesMessages=${user.membershipReceivesMessages}`;\n const response = await fetchPost(url, null) as any;\n return response;\n}\nexport const postRememberMeCookies = async (user: User) => {\n const url = `Account/RememberMeCookies?user=${user.userToken}`;\n const response = await fetchPost(url, null, true) as any;\n return response;\n}\nexport const deleteRememberMeCookies = async () => {\n const url = `Account/RememberMeCookies`;\n const response = await fetchDelete(url, null, true) as any;\n return response;\n}\n\nexport const getMemberships = async (user: User) => {\n const url = `Users/${user.userToken}/Memberships?association=${associationIdName}`;\n const response = await fetchGet(url) as Membership;\n return response;\n}\n\nexport const postValidations = async (user: User) => {\n const url = `Users/${user.userToken}/Validations?field=phoneNumber`;\n const response = await fetchPost(url, user.phoneNumber) as Validation[];\n return response;\n}\n\nexport async function tryLoadUser(rememberMeChecked: boolean = true): Promise<User> {\n let userInfo: User;\n const userResponse = await getUser();\n if (!userResponse) {\n userInfo = { rememberMe: rememberMeChecked };\n return userInfo;\n }\n\n userInfo = {\n commonHonorific: userResponse.commonHonorific,\n emailAddress: userResponse.emailAddress,\n givenNames: userResponse.givenNames,\n honorific: userResponse.honorific,\n surname: userResponse.surname,\n userId: userResponse.userId,\n homeAddress: userResponse.homeAddress,\n businessAddress: userResponse.businessAddress,\n phoneNumber: userResponse.phoneNumber,\n userToken: userResponse.userToken,\n rememberMe: rememberMeChecked\n };\n\n const membershipResponse = await getMemberships(userInfo);\n userInfo.membershipReceivesMessages = membershipResponse.isSubscriber;\n userInfo.membershipReceivesTextMessages = membershipResponse.isTextSubscriber;\n \n return userInfo;\n}\n\nexport async function resetUser(user: User){\n user.commonHonorific = '';\n user.emailAddress = '';\n user.givenNames = '';\n user.honorific = '';\n user.surname = '';\n user.userId = 0;\n user.homeAddress = null;\n user.businessAddress = null;\n user.phoneNumber = '';\n user.userToken = '';\n user.rememberMe = true;\n}","import { writable } from 'svelte/store';\nimport { fetchGet, vvSettings } from './common';\nimport { type User } from './users';\nexport interface AddressesResponse {\n addresses: Address[],\n message: string | null,\n suggestedZipCode: string | null,\n};\nexport interface Address {\n alternateCities?: { Key: string, Value: boolean }[],\n checksum?: string,\n city?: string,\n coordinates?: {\n isWeakCoordinates: boolean,\n latitude: number,\n longitude: number,\n } | null,\n country?: string,\n county?: string,\n state?: string,\n streetAddress?: string,\n zipCode?: string,\n zipCodeExtension?: string,\n};\n\nexport interface AddressStore {\n address: Address\n}\n\nexport const checkAddress = async (streetAddress: string, zipCode: string) => {\n const canadaPostalCodePattern = /^[A-Za-z]\\d[A-Za-z] ?\\d[A-Za-z]\\d$/;\n const country = canadaPostalCodePattern.test(zipCode) ? 'CA' : 'US';\n \n let cityCountryString = country == `US` ? `&city=&state=` : '';\n const url = `Addresses?address1=${encodeURIComponent(streetAddress)}${cityCountryString}&zipCode=${encodeURIComponent(zipCode)}&country=${country}`;\n const addressesResponse = await fetchGet<AddressesResponse>(url);\n return addressesResponse;\n}\n\nexport const localStorageAddressKey = 'vv-usersite-address';\n\nexport const canadaProvincesMap: any = {\n ab: 'a',\n bc: 'b',\n mb: 'c',\n nb: 'd',\n nl: 'e',\n ns: 'f',\n nt: 'g',\n nu: 'h',\n on: 'i',\n pe: 'j',\n qc: 'k',\n sk: 'l',\n yt: 'm',\n};\n\nexport const addressStore = writable<AddressStore>({address:{}});\n\nexport const getSavedAddress = (key?: string) => {\n try {\n const str = localStorage.getItem(key ?? localStorageAddressKey);\n const address = str ? JSON.parse(str) as Address : null;\n return address;\n } catch (error) {\n console.error(\"Error parsing saved address from localStorage\", error);\n return null;\n }\n}\nexport const saveAddress = (address: Address, key?: string) => {\n localStorage.setItem(key ?? localStorageAddressKey, JSON.stringify(address));\n}\nexport const clearAddress = (key?: string) => {\n localStorage.removeItem(key ?? localStorageAddressKey);\n}\n\nexport const getResolvedAddress = (userInfo : User, fallbackAddress? : Address) => {\n let address : Address | undefined;\n if (userInfo?.homeAddress?.zipCode !== undefined && userInfo?.homeAddress?.zipCode !== null) {\n address = userInfo.homeAddress;\n } else if (userInfo?.businessAddress?.zipCode !== undefined && userInfo?.businessAddress?.zipCode !== null){\n address = userInfo.businessAddress;\n } else {\n const savedAddress : Address = getSavedAddress();\n if (savedAddress !== undefined && savedAddress !== null) {\n address = savedAddress;\n } else if (vvSettings.address !== undefined && vvSettings.address !== null) {\n address = vvSettings.address;\n } else {\n address = fallbackAddress;\n }\n }\n \n return address;\n}\n","export default \"__VITE_ASSET__Jf6gUtpc__\"","<svg\n\txmlns=\"http://www.w3.org/2000/svg\"\n\tviewBox=\"0 0 512 512\"\n\twidth=\"16\"\n\theight=\"16\"\n\tfill=\"currentcolor\"\n\tclass=\"inline\"\n\t{...$$restProps}\n\t><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path\n\t\td=\"M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3l0 82.7c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z\"\n\t/></svg\n>\n","import type { Address } from \"./address\";\nimport { associationIdName, fetchGet } from \"./common\";\nimport type { PoliticianIdentifier, PoliticianScore, Profile } from \"./officials\";\n\nexport interface Office {\n candidates: Candidate[];\n office: string;\n profiles?: Profile[];\n}\n\nexport interface Election {\n election: string;\n description?: string;\n displayCategory: string;\n generalElectionDate?: string;\n primaryElectionDate?: string;\n primaryRunOffDate?: string;\n\n year: number;\n month: string;\n day: number;\n offices: Office[];\n passed: boolean;\n}\n\nexport interface CandidateGrouping {\n office: string;\n candidates: Candidate;\n}\n\nexport interface Candidate {\n id: number;\n name: string;\n party: string;\n status: string;\n}\n\nexport interface VotingResources {\n AdditionalResourcesUrl: string;\n PollingLocationUrl: string;\n VoterRegistrationUrl: string;\n Elections: Election[];\n}\n\nexport const getVotingResources = async (address: Address, state: string) => {\n const encodedAddress = encodeURIComponent(JSON.stringify(address));\n const url = `VotingResources?association=${associationIdName}&address=${encodedAddress}&state=${state}`;\n const response = await fetchGet(url) as VotingResources;\n return response;\n}\n\nexport const getProfiles = async (candidates: PoliticianIdentifier[]) => {\n const url = `Profiles?filter=${encodeURIComponent(JSON.stringify({\n identifiers: candidates\n }))}&association=${associationIdName}`;\n const response = await fetchGet(url) as Profile[];\n return response;\n}\n\nexport const getProfile = async (id: number) => {\n const url = `Profiles/${id}?type=X&association=${associationIdName}`;\n const response = await fetchGet(url) as Profile;\n return response;\n}\n\nexport const getPoliticianScore = async (id: number) => {\n const url = `Scorecards/Score/${id}?association=${associationIdName}`;\n const response = await fetchGet(url,true) as PoliticianScore;\n return response;\n}\n\nexport const getTextColorByParty = (party: string): string => {\n const mappedParties: any = {\n Republican: 'text-vv-republican-party',\n Democratic: 'text-vv-democrat-party',\n Democrat: 'text-vv-democrat-party',\n Independent: 'text-vv-independent-party',\n Libertarian: 'text-vv-libertarian-party',\n \"Green Party\": 'text-vv-green-party',\n Other: 'text-vv-other-party',\n }\n \n if (party in mappedParties)\n return mappedParties[party];\n else\n return mappedParties['Other'];\n}","<script lang=\"ts\">\n let _class: string = '';\n export { _class as class };\n</script>\n\n<div class=\"w-full my-2 \n flex flex-col @md:flex-row gap-2\n {_class}\"\n {...$$restProps}\n >\n <slot></slot>\n</div>","<script lang=\"ts\"> \n export let fieldsetClass = '';\n export let labelClass = '';\n export let _for = '';\n export { _for as for };\n</script>\n\n<fieldset class={fieldsetClass}>\n {#if $$slots.label}\n <label for={_for} class={labelClass}>\n <slot name=\"label\"></slot>\n </label>\n {/if}\n <slot></slot>\n {#if $$slots.error}\n <span class=\"text-sm text-vv-red-fire\">\n <slot name=\"error\"></slot>\n </span>\n {/if}\n</fieldset>","<script context=\"module\">\n\t/** static properties so we can have unique ids for each Input */\n\texport let _id = 1;\n</script>\n\n<script lang=\"ts\">\n\timport Fieldset from './Fieldset.svelte';\n\n\tconst generatedId = `vv-input-${_id++}`;\n\tlet _class = '';\n\texport { _class as class };\n\texport let fieldsetClass = '';\n\texport let labelClass = '';\n\n\texport let errors: string[] = [];\n\texport let id = '';\n\texport let value = '';\n\texport let onBeforeInput = (value: string, e: Event) => {};\n</script>\n\n<Fieldset {fieldsetClass} {labelClass} for={id || generatedId}>\n\t<slot name=\"label\" slot=\"label\" />\n\t<input\n\t\tid={id || generatedId}\n\t\tclass=\"rounded px-2 py-1 w-full\n border-solid border-2 border-gray-300\n outline-gray-600\n {$$slots.error || errors.length ? 'border-vv-red-fire' : ''}\n {_class}\n \"\n\t\ton:input={(e) => onBeforeInput(value, e)}\n\t\tbind:value\n\t\ton:input\n\t\ton:change\n\t\ton:keyup\n\t\ton:focus\n\t\ton:blur\n\t\ttype=\"text\"\n\t\t{...$$restProps}\n\t/>\n\t<slot name=\"error\" />\n\n\t{#if errors.length}\n\t\t<ul class=\"text-vv-red-fire\">\n\t\t\t{#each errors as error}\n\t\t\t\t<li>{error}</li>\n\t\t\t{/each}\n\t\t</ul>\n\t{/if}\n</Fieldset>\n","<script context=\"module\">\n /** static properties so we can have unique ids for each Select */\n export let _id = 1;\n</script>\n\n<script lang=\"ts\">\n import Fieldset from './Fieldset.svelte';\n // interface Option {\n // name: string;\n // value: string;\n // };\n // export let options: Option = [];\n const generatedId = `vv-select-${_id++}`;\n let _class = '';\n export { _class as class};\n export let fieldsetClass = '';\n export let labelClass = \"\";\n export let placeholder = \"\";\n\texport let errors: string[] = [];\n\n export let id = '';\n export let value = '';\n export let onBeforeInput = (value: string, e: Event) => {};\n</script>\n\n<Fieldset {fieldsetClass} {labelClass} for={id || generatedId}>\n <slot name=\"label\" slot=\"label\"></slot>\n <select id={id || generatedId} class=\"rounded px-1 pt-[5px] pb-[6px] w-full\n border-solid border-2 border-gray-300\n outline-gray-600 \n {$$slots.error || errors.length ? 'border-vv-red-fire' : ''}\n {_class}\n \"\n on:input={(e) => onBeforeInput(value, e)}\n bind:value \n on:input\n on:change\n {...$$restProps}\n >\n {#if placeholder && placeholder.length}\n <option value=\"\">{placeholder}</option>\n {/if}\n <slot></slot>\n </select>\n <slot name=\"error\" slot=\"error\"></slot> \n\t{#if errors.length}\n\t\t<ul class=\"text-vv-red-fire\">\n\t\t\t{#each errors as error}\n\t\t\t\t<li>{error}</li>\n\t\t\t{/each}\n\t\t</ul>\n\t{/if}\n</Fieldset>","/**** WARNING: This is a generated file, so any changes might get overwritten! ****/\nconst _t = (window as any).vvTranslations?.Address || {};\nexport * from './Common.ts';\nexport const Loading = (): string => _t.Loading ?? \"Loading...\";\nexport const AddressOkay = (): string => _t.AddressOkay ?? \"Address Okay\";\nexport const AddressNotOkay = (): string => _t.AddressNotOkay ?? \"Sorry! We can't find that address\";\nexport const StreetAddress = (): string => _t.StreetAddress ?? \"Street Address\";\nexport const StreetAddressPlaceholder = (): string => _t.StreetAddressPlaceholder ?? \"Enter Street Address\";\nexport const Zip = (): string => _t.Zip ?? \"Zip\";\nexport const ZipPlaceholder = (): string => _t.ZipPlaceholder ?? \"Enter Zip\";\nexport const City = (): string => _t.City ?? \"City\";\nexport const ClearAll = (): string => _t.ClearAll ?? \"Clear All\";\nexport const Edit = (): string => _t.Edit ?? \"Edit\";\nexport const EditTooltip = (): string => _t.EditTooltip ?? \"Edit Address\";\nexport const Continue = (): string => _t.Continue ?? \"Continue\";\n","<svelte:options accessors />\n\n<script lang=\"ts\">\n import Row from './Row.svelte';\n import Input from './Input.svelte';\n import Select from './Select.svelte';\n import { checkAddress, clearAddress, addressStore } from '../api/address.ts';\n import * as t from '../translations/Address.ts';\n import type { Address } from '../api/address.ts';\n let _class = '';\n export { _class as class };\n \n let searches = 0;\n export let isLoading = false;\n export let selectedAddress: Address | null = null;\n export let onClearAll = () => {};\n let cities: string[] =\n selectedAddress?.alternateCities?.length ? selectedAddress?.alternateCities?.map(x => x.Key) \n : selectedAddress?.city ? [selectedAddress?.city]\n : [];\n\n let addressResponseMessage = '';\n let suggestedZipCode = '';\n let streetAddress = '';\n let zipCode = '';\n let city = '';\n let state = '';\n let isInitialized = false;\n \n const setAddress = (address) => {\n if (!isInitialized) {\n selectedAddress = address;\n streetAddress = address?.streetAddress || '';\n zipCode = address?.zipCode || '';\n city = address?.city || '';\n state = address?.state || '';\n isInitialized = true;\n } else {\n isInitialized = false;\n }\n };\n setAddress(selectedAddress);\n\n $: setAddress($addressStore.address);\n \n const clearAll = () => {\n selectedAddress = null; \n addressResponseMessage = '';\n suggestedZipCode = '';\n streetAddress = '';\n zipCode = '';\n city = '';\n state = '';\n cities = [];\n clearAddress();\n onClearAll?.();\n };\n\n let timer: NodeJS.Timeout;\n const debounce = () => {\n cities = [];\n city = '';\n state = '';\n selectedAddress = null;\n \n if (!streetAddress || !zipCode) {\n return; /* quit early */\n }\n\n clearTimeout(timer);\n timer = setTimeout(addressChanged, 1000);\n };\n export let addressChanged = async () => { \n try {\n isLoading = true;\n searches += 1;\n const currentSearches = searches;\n const addressesResponse = await checkAddress(streetAddress, zipCode);\n // Only process the answer if no new search was queued in the meantime.\n if (searches === currentSearches) {\n selectedAddress = null;\n cities = [];\n addressResponseMessage = '';\n suggestedZipCode = '';\n \n if (addressesResponse.message) {\n addressResponseMessage = addressesResponse.message;\n suggestedZipCode = addressesResponse.suggestedZipCode ?? '';\n // TODO - Handle Google Map picker\n } else if (addressesResponse.addresses.length === 1) {\n selectedAddress = addressesResponse.addresses[0]; \n if (selectedAddress.alternateCities?.length) {\n selectedAddress.alternateCities.forEach(c => {\n cities.push(c.Key);\n });\n } else if (selectedAddress.city) {\n cities.push(selectedAddress.city);\n }\n } else {\n // TODO - Handle multiple return addresses ?\n }\n\n if (selectedAddress) {\n streetAddress = selectedAddress.streetAddress || \"\";\n zipCode = selectedAddress.zipCode || \"\";\n city = selectedAddress.city || \"\";\n state = selectedAddress.state || \"\";\n }\n }\n } catch (error) { \n console.error(error);\n } finally {\n isLoading = false;\n }\n }\n\n/* Example Address\n20000 Bass Pro Dr, Spanish Fort, AL 36527\n*/\n\n const setCity = () => {\n if (selectedAddress) {\n selectedAddress = {\n ...selectedAddress,\n city,\n };\n }\n }\n</script>\n\n<div class=\"w-full {_class}\">\n {#if isLoading}\n <div>{t.Loading()}</div>\n {:else if selectedAddress?.checksum}\n <div class=\"text-base text-vv-green\">\n {t.AddressOkay()}\n </div>\n {:else}\n <div class=\"text-base text-vv-red-fire\">\n <!-- {t.AddressNotOkay()} -->\n {addressResponseMessage}\n {suggestedZipCode}\n \n </div>\n {/if}\n <Row>\n <Input fieldsetClass=\"w-full\" placeholder={t.StreetAddressPlaceholder()}\n bind:value={streetAddress} \n on:input={debounce}\n on:change={debounce}>\n <span slot=\"label\">\n {t.StreetAddress()}\n <button class=\"underline float-right hover:text-gray-600\" \n title={t.ClearAll()} disabled={isLoading}\n on:click={clearAll}>{t.ClearAll()}</button>\n </span> \n </Input> \n </Row>\n <Row>\n <Input fieldsetClass=\"w-[130px]\" placeholder={t.ZipPlaceholder()}\n bind:value={zipCode}\n on:input={debounce}\n on:change={debounce}>\n <span slot=\"label\">{t.Zip()}</span>\n </Input>\n {#if cities.length <= 1}\n <Input fieldsetClass=\"w-full\" class=\"!border-gray-100 bg-gray-100\" placeholder={t.City()}\n value={(cities.length == 0 ? ' ' : `${city}, ${state}`)} disabled>\n <div slot=\"label\"> </div>\n </Input>\n {:else}\n <Select fieldsetClass=\"flex-1\"\n bind:value={city}\n on:change={setCity}\n >\n {#each cities as city}\n <option value={city}>{city}, {selectedAddress?.state}</option>\n {/each}\n <div slot=\"label\">{t.City()}</div>\n </Select>\n {/if}\n </Row>\n</div>","<script lang=\"ts\">\n\timport type { Address } from '../api/address';\n\timport { saveAddress, addressStore } from '../api/address.ts';\n\timport AddressSearch from './AddressSearch.svelte';\n\timport Button from './Button.svelte';\n\timport * as t from '../translations/Address.ts';\n\n\texport let selectedAddress: Address | null = null;\n\texport let editingAddress = false;\n\texport let lock = false;\n\tlet disableContinueButton = false;\n\t// Callbacks\n\texport let onClearAll = () => {};\n\texport let onSelectAddress = () => {};\n\n\tconst setAddress = (address) => {\n\t\tif (address?.streetAddress === undefined || address?.streetAddress === null || \n\t\t\taddress.zipCode === undefined || address.zipCode === null) {\n\t\t\teditingAddress = true;\n\t\t\tlock = false;\n\t\t} else if (lock === true) {\n\t\t\teditingAddress = false;\n\t\t}\n\t\tselectedAddress = address;\n\t};\n\t\n\t$: setAddress($addressStore.address);\n\n\tlet addressSearchElement: AddressSearch;\n\tasync function selectAddress() {\n\t\ttry {\n\t\t\tdisableContinueButton = true;\n\t\t\tif (!selectedAddress?.checksum) {\n\t\t\t\tawait addressSearchElement?.addressChanged?.();\n\t\t\t}\n\t\t\tif (selectedAddress?.checksum) {\n\t\t\t\teditingAddress = false;\n\t\t\t\tsaveAddress(selectedAddress);\n\t\t\t\tonSelectAddress();\n\t\t\t}\n\t\t} finally {\n\t\t\tdisableContinueButton = false;\n\t\t}\n\t}\n</script>\n\n<div class='p-4 bg-gray-100'>\n\t{#if lock || !editingAddress}\n\t\t<div>\n\t\t\t{selectedAddress?.streetAddress}\n\t\t\t{#if !lock}\n\t\t\t\t<button\n\t\t\t\t\tclass=\"underline float-right hover:text-gray-600\"\n\t\t\t\t\ttitle=\"{t.EditTooltip()}\"\n\t\t\t\t\ton:click={() => (editingAddress = true)}\n\t\t\t\t>\n\t\t\t\t\t{t.Edit()}\n\t\t\t\t</button>\n\t\t\t{/if}\n\t\t</div>\n\t\t<div>\n\t\t\t{selectedAddress?.city ? `${selectedAddress?.city},` : ``}\n\t\t\t{selectedAddress?.state}\n\t\t\t{selectedAddress?.zipCode}{selectedAddress?.zipCodeExtension\n\t\t\t\t? `-${selectedAddress?.zipCodeExtension}`\n\t\t\t\t: ''}\n\t\t</div>\n\t{:else}\n\t\t<h2 class=\"text-2xl\">\n\t\t\t<slot />\n\t\t</h2>\n\t\t<AddressSearch bind:selectedAddress class=\"mt-8\" bind:this={addressSearchElement} {onClearAll}\n\t\t></AddressSearch>\n\t\t<Button\n\t\t\ttype=\"action-center\"\n\t\t\tclass=\"w-full mt-2\"\n\t\t\ton:click={selectAddress}\n\t\t\tdisabled={disableContinueButton}\n\t\t>\n\t\t\t{t.Continue()}\n\t\t</Button>\n\t{/if}\n</div>\n","<svelte:options customElement={{\n tag: 'vv-election-center'\n}} />\n\n<script context=\"module\">\n import appCssUrl from '../../app.css?inline';\n let style = '<style' + `>${appCssUrl}</style>`;\n</script>\n\n<script lang=\"ts\"> \n import Button from '../../lib/Button.svelte';\n import Calendar from '../../lib/Calendar.svelte';\n import * as t from '../../translations/ElectionCenter.ts';\n import { type Address, addressStore, getResolvedAddress } from '../../api/address.ts';\n import { getDatePart, getLocalizedMonthAbbreviation, vvSettings } from '../../api/common.ts';\n import voteImgUrl from '../../assets/generated/vote2_800.avif';\n import ExternalPageIcon from '../../icons/ExternalPageIcon.svelte';\n import { getVotingResources } from '../../api/elections.ts';\n import AddressEditBox from '../../lib/AddressEditBox.svelte';\n import { tryLoadUser, type User } from '../../api/users.ts';\n\n const ec = vvSettings.electionCenter!;\n const searchParams = new URLSearchParams(document.location.search);\n let addressFromSearchParams: Address | undefined = undefined;\n if (searchParams.has('checksum')) {\n addressFromSearchParams = { \n checksum: searchParams.get('checksum') ?? '',\n city: searchParams.get('city') ?? '',\n coordinates: {\n latitude: Number.parseFloat(searchParams.get('latitude') ?? ''),\n longitude: Number.parseFloat(searchParams.get('longitude') ?? ''),\n isWeakCoordinates: false,\n },\n country: searchParams.get('country') ?? '',\n county: searchParams.get('county') ?? '',\n state: searchParams.get('state') ?? '',\n streetAddress: searchParams.get('streetAddress') ?? '',\n zipCode: searchParams.get('zipCode') ?? '',\n zipCodeExtension: searchParams.get('zipCodeExtension') ?? '',\n };\n }\n let selectedAddress: Address;\n let urlRegisterToVote = '';\n let urlFindYourPollingLocation = '';\n let urlGetPersonalizedVotingResources = '';\n \n const getDomainFromHref = (href: string) => \n !href ? '' : new URL(href).hostname || 'External Link';\n $: resourceLinks = [\n {\n id: 'register-link',\n header: t.VotingResources_Register_Header(),\n subtitle: t.VotingResources_Register_SubTitle(),\n href: urlRegisterToVote,\n domain: getDomainFromHref(urlRegisterToVote),\n }, {\n id: 'find-link',\n header: t.VotingResources_Find_Header(),\n subtitle: t.VotingResources_Find_SubTitle(),\n href: urlFindYourPollingLocation,\n domain: getDomainFromHref(urlFindYourPollingLocation),\n }, {\n id: 'get-link',\n header: t.VotingResources_Get_Header(),\n subtitle: t.VotingResources_Get_SubTitle(),\n href: urlGetPersonalizedVotingResources,\n domain: getDomainFromHref(urlGetPersonalizedVotingResources),\n }\n ]\n\n let elections = ec.elections || [];\n if (elections.length) {\n fixUpElectionDates();\n }\n\n function fixUpElectionDates () {\n if (elections) {\n for (let i = 0; i < elections.length; i++) {\n const e = elections[i];\n if (!e.year || !e.month || !e.day) {\n var dateStr = e.generalElectionDate\n || e.primaryRunOffDate\n || e.primaryElectionDate;\n if (dateStr) {\n e.year = getDatePart(dateStr, 'year');\n e.month = getLocalizedMonthAbbreviation(dateStr);\n e.day = getDatePart(dateStr, 'day');\n // Get tomorrow\n const currentDate = new Date();\n currentDate.setHours(0);\n currentDate.setMinutes(0);\n currentDate.setSeconds(0);\n currentDate.setDate(currentDate.getDate() + 1);\n const passed = new Date(dateStr) <= currentDate;\n e.passed = passed;\n }\n }\n }\n }\n }\n\n async function _getVotingResources() {\n var votingResources = await getVotingResources({\n streetAddress: selectedAddress?.streetAddress,\n city: selectedAddress?.city,\n state: selectedAddress?.state,\n zipCode: selectedAddress?.zipCode,\n\t\t\t\tzipCodeExtension: selectedAddress?.zipCodeExtension\n }, selectedAddress?.state ?? \"\");\n urlRegisterToVote = votingResources.VoterRegistrationUrl || '';\n urlFindYourPollingLocation = votingResources.PollingLocationUrl || '';\n urlGetPersonalizedVotingResources = votingResources.AdditionalResourcesUrl || '';\n elections = votingResources.Elections;\n fixUpElectionDates();\n }\n \n $: isValidAddress = !!selectedAddress?.checksum;\n let editingAddress = !selectedAddress?.checksum; \n\n function getQueryObj() {\n return {\n checksum: selectedAddress?.checksum ?? \"\",\n streetAddress: selectedAddress?.streetAddress ?? \"\",\n city: selectedAddress?.city ?? \"\",\n latitude: selectedAddress?.coordinates?.latitude?.toString() ?? \"\",\n longitude: selectedAddress?.coordinates?.longitude?.toString() ?? \"\",\n country: selectedAddress?.country ?? \"\",\n county: selectedAddress?.county ?? \"\",\n state: selectedAddress?.state ?? \"\",\n zipCode: selectedAddress?.zipCode ?? \"\",\n zipCodeExtenstion: selectedAddress?.zipCodeExtension ?? \"\",\n };\n }\n $: urlViewOfficialsWithAddress = isValidAddress \n ? `${ec.urlViewOfficialsWithAddress}?AddressType=Home&${new URLSearchParams(getQueryObj()).toString()}`\n : ec.urlViewOfficials;\n $: urlMyCandidates = isValidAddress\n ? `${ec.urlMyCandidates}?home=${encodeURIComponent(JSON.stringify(getQueryObj()))}`\n : ec.urlMyCandidates;\n\n async function onSelectOrClearAddress() {\n urlRegisterToVote = '';\n urlFindYourPollingLocation = '';\n urlGetPersonalizedVotingResources = '';\n await _getVotingResources();\n }\n\n async function load() {\n if (addressFromSearchParams === null || addressFromSearchParams == undefined) {\n const userInfo = await tryLoadUser();\n selectedAddress = getResolvedAddress(userInfo);\n } else {\n selectedAddress = addressFromSearchParams;\n }\n \n $addressStore.address = selectedAddress;\n\n editingAddress = !selectedAddress?.checksum;\n\n if (selectedAddress && (selectedAddress?.state == ec.address?.state)) {\n urlRegisterToVote = ec.urlRegisterToVote ?? '';\n urlFindYourPollingLocation = ec.urlFindYourPollingLocation ?? '';\n urlGetPersonalizedVotingResources = ec.urlGetPersonalizedVotingResources ?? '';\n }\n if (selectedAddress) {\n _getVotingResources();\n }\n }\n\n load();\n</script>\n\n<!-- This imports the styles into the web component. -->\n{@html style}\n\n<div class=\"@container w-full m-auto max-w-[1000px] py-2 px-8 md:px-2 flex flex-col gap-8 interfont\">\n <!-- Top Section -->\n <div class=\"flex flex-col @xl:flex-row gap-4\">\n <div class=\"flex-1\"> \n <h1 class=\"text-4xl mt-1\">{t.Page_Header()}</h1>\n <div class=\"mt-2 mb-8\">{t.Page_SubTitle()}</div>\n <div class=\"border-solid border-t-1 border-gray rounded p-2 \">\n <div class=\"text-xl mb-4\">{t.Calendar_Header()}</div>\n <div class=\"gap-4 flex flex-col\">\n {#if elections.length}\n {#each elections as e}\n <Calendar year={e.year} month={e.month} day={e.day} description={e.election} displayCategory={e.displayCategory}\n passed={e.passed}></Calendar>\n {/each} \n {:else}\n No upcoming events\n {/if} \n </div>\n </div>\n </div>\n <div class=\"flex-1 flex flex-col\"> \n <AddressEditBox\n bind:editingAddress={editingAddress}\n bind:selectedAddress={selectedAddress}\n onSelectAddress={onSelectOrClearAddress}\n onClearAll={onSelectOrClearAddress}>\n {t.EmptyAddress_Header()}\n </AddressEditBox>\n {#if !editingAddress}\n <div class=\"flex-1\"></div>\n <span id=\"stateIcon\" class=\"text-center w-full !text-[170px] leading-none\n vv-state-icon stateface stateface-{selectedAddress?.state?.toLowerCase() || 'us'}\n text-[var(--vv-action-center-association-color,var(--vv-black))]\">\n </span>\n <div class=\"flex-1\"></div>\n {/if}\n </div>\n </div>\n <!-- Custom Section -->\n {#if ec.customSectionHeader || ec.customSectionBody}\n <div class=\"\">\n {#if ec.customSectionHeader}\n <h2 class=\"text-2xl\">\n {@html ec.customSectionHeader}\n </h2>\n {/if}\n {#if ec.customSectionBody}\n <div class=\"mt-1\">\n {@html ec.customSectionBody}\n </div>\n {/if}\n </div>\n {/if}\n <!-- Voting Resources -->\n <div class=\"\"> \n <h2 class=\"text-2xl\">{t.VotingResources_Header()}</h2>\n <div class=\"mt-1\">{t.VotingResources_SubTitle()}</div>\n </div>\n <div class=\"flex flex-col grid-cols-3 @xl:grid gap-4\">\n {#each resourceLinks as rl}\n <div class=\"border-l-4 border-solid pl-4 flex-1 flex flex-col grow-0\n border-[var(--vv-action-center-association-color,var(--vv-grey-power))]\">\n <div class=\"text-lg font-bold \">{rl.header}</div>\n <div>{rl.subtitle}</div>\n <div class=\"flex-1\"></div>\n {#if rl.href}\n <div class=\"mt-2\">\n <Button data-test-id={rl.id} tag=\"a\" type=\"secondary\" href={rl.href} target=\"_blank\" class=\"inline-flex flex-row items-center !no-underline w-full justify-center\"\n title=\"External Page\">\n <div class=\"text-nowrap text-ellipsis overflow-hidden\">{rl.domain}</div>\n \n <ExternalPageIcon class=\"text-[var(--vv-action-center-button-color)] ml-0.5\" />\n </Button>\n </div>\n {/if}\n </div>\n {/each}\n </div>\n <!-- My Elected Officials and Candidates -->\n <div class=\"flex flex-col @xl:flex-row gap-8\">\n <div class=\"flex-1 flex flex-col gap-8 justify-center items-center\">\n <div class=\"flex flex-col gap-6 w-full\" data-test-id=\"My Elected Officials\">\n <div class=\"text-xl\">{t.MyElectedOfficials_Header()}</div>\n <div>{t.MyElectedOfficials_Body()}</div>\n <Button data-test-id=\"View Officials\" tag=\"a\" type={selectedAddress ? \"action-center\" : \"secondary\"}\n class=\"w-full !no-underline flex justify-center items-center\" \n href={urlViewOfficialsWithAddress}>\n {t.MyElectedOfficials_ViewButton()}\n </Button>\n </div>\n <div class=\"w-full bg-gray-200 h-[2px]\"> </div>\n <div class=\"flex flex-col gap-6 w-full\" data-test-id=\"My Candidates\">\n <div class=\"text-xl\">{t.MyCandidates_Header()}</div>\n <div>{t.MyCandidates_Body()}</div> \n <Button data-test-id=\"View Candidates\" tag=\"a\" type={selectedAddress ? \"action-center\" : \"secondary\"}\n class=\"w-full !no-underline flex justify-center items-center\" \n href={urlMyCandidates}>\n {t.MyCandidates_ViewButton()}\n </Button>\n </div>\n </div>\n <div class=\"flex-[2_2_0%] flex items-center justify-center w-full min-h-[200px]\">\n <img src={ec.imageUrl || voteImgUrl} alt=\"vote\" title=\"vote\" class=\"object-cover w-full h-full\" /> \n </div>\n </div> \n</div>\n\n<style> \n /* Importing stateface styles here instead of app.css, because it might only be used on this page. */\n @import '../../assets/stateface/stateface.css'; \n /* .content-grid {\n --padding-inline: 2rem;\n --content-max-width: 70ch;\n grid-template-columns: \n [full-width-start] minmax(var(--padding-inline), 1fr) \n [content-start] min(100% - (var(--padding-inline)*2), var(--content-max-width)) [content-end] \n minmax(var(--padding-inline), 1fr) [full-width-end];\n } */\n /* .content-grid > * {\n grid-column: content;\n } */\n</style>"],"names":["noop","assign","tar","src","k","run","fn","blank_object","run_all","fns","is_function","thing","safe_not_equal","a","b","src_url_equal_anchor","src_url_equal","element_src","url","is_empty","obj","subscribe","store","callbacks","callback","unsub","component_subscribe","component","create_slot","definition","ctx","$$scope","slot_ctx","get_slot_context","get_slot_changes","dirty","lets","merged","len","update_slot_base","slot","slot_definition","slot_changes","get_slot_context_fn","slot_context","get_all_dirty_from_scope","length","i","exclude_internal_props","props","result","compute_rest_props","keys","rest","compute_slots","slots","key","set_store_value","ret","value","append","target","node","append_styles","style_sheet_id","styles","append_styles_to","get_root_for_style","style","element","append_stylesheet","root","insert","anchor","detach","destroy_each","iterations","detaching","name","svg_element","text","data","space","empty","listen","event","handler","options","attr","attribute","always_set_through_set_attribute","set_attributes","attributes","descriptors","set_svg_attributes","set_custom_element_data_map","data_map","set_custom_element_data","prop","lower","set_dynamic_element_data","tag","children","set_data","set_input_value","input","select_option","select","mounting","option","select_options","select_value","selected_option","HtmlTag","is_svg","__publicField","html","get_custom_elements_slots","current_component","set_current_component","bubble","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","update_scheduled","schedule_update","flush","add_render_callback","add_flush_callback","seen_callbacks","flushidx","saved_component","update","$$","flush_render_callbacks","filtered","targets","c","outroing","outros","group_outros","check_outros","transition_in","block","local","transition_out","ensure_array_like","array_like_or_iterator","get_spread_update","levels","updates","to_null_out","accounted_for","o","n","bind","index","create_component","mount_component","fragment","after_update","new_on_destroy","destroy_component","make_dirty","init","instance","create_fragment","not_equal","parent_component","ready","nodes","SvelteElement","$$componentCtor","$$slots","use_shadow_dom","type","listener","existing_slots","get_custom_element_value","reflect_attributes","attribute_value","_oldValue","newValue","_a","attribute_name","props_definition","transform","create_custom_element","Component","accessors","extend","Class","accessor","SvelteComponent","PUBLIC_VERSION","subscriber_queue","writable","start","stop","subscribers","set","new_value","run_queue","subscriber","invalidate","svg","path0","path1","div1","div0","t0_value","if_block","create_if_block","div3","div2","current","t0","div","each_blocks","removeToast","message","toasts","t","x","_item","idx","clearToasts","animateOut","toast","onHover","onMouseOut","click_handler","$$value","mouseover_handler","focus_handler","mouseout_handler","blur_handler","$toasts","vvSettings","base","headers","_b","associationIdName","isLoading","getDatePart","dateString","part","dateParts","month","day","year","getLocalizedMonthAbbreviation","callApi","method","body","hideLoadingBehavior","ignoreBasePath","urlWithBase","r","contentType","json","error","fetchGet","svelte_element_id_value","svelte_element_class_value","svelte_element_disabled_value","svelte_element_aria_disabled_value","svelte_element","svelte_element_data","svelte_element_levels","create_dynamic_element","_id","ref","$$props","generatedId","id","buttonClass","buttonTypeClasses","disabled","div6","div5","div4","description","displayCategory","passed","_t","Page_Header","Page_SubTitle","Calendar_Header","EmptyAddress_Header","VotingResources_Header","VotingResources_SubTitle","VotingResources_Register_Header","VotingResources_Register_SubTitle","VotingResources_Find_Header","VotingResources_Find_SubTitle","VotingResources_Get_Header","VotingResources_Get_SubTitle","MyElectedOfficials_Header","MyElectedOfficials_Body","MyElectedOfficials_ViewButton","MyCandidates_Header","MyCandidates_Body","MyCandidates_ViewButton","getUser","getMemberships","user","tryLoadUser","rememberMeChecked","userInfo","userResponse","membershipResponse","checkAddress","streetAddress","zipCode","country","cityCountryString","localStorageAddressKey","addressStore","getSavedAddress","str","saveAddress","address","clearAddress","getResolvedAddress","fallbackAddress","_c","_d","savedAddress","voteImgUrl","path","getVotingResources","state","encodedAddress","div_class_value","_class","label","span","if_block0","create_if_block_1","if_block1","fieldset","fieldsetClass","labelClass","_for","ul","li","t_value","input_id_value","input_class_value","fieldset_changes","errors","onBeforeInput","e","input_handler_1","select_id_value","select_class_value","placeholder","Loading","AddressOkay","StreetAddress","StreetAddressPlaceholder","Zip","ZipPlaceholder","City","ClearAll","Edit","EditTooltip","Continue","t.AddressOkay","t.Loading","t.StreetAddress","t2_value","t.ClearAll","button","t.StreetAddressPlaceholder","t.Zip","t.City","t2","t.ZipPlaceholder","create_if_block_2","searches","selectedAddress","onClearAll","cities","addressResponseMessage","suggestedZipCode","city","isInitialized","setAddress","$$invalidate","clearAll","timer","debounce","addressChanged","currentSearches","addressesResponse","setCity","$addressStore","h2","_e","_f","_g","t3_value","t5_value","t7_value","t8_value","t5","t7","t8","t_1_value","t.Continue","t.Edit","t.EditTooltip","editingAddress","lock","disableContinueButton","onSelectAddress","addressSearchElement","selectAddress","calendar_changes","t.EmptyAddress_Header","span_class_value","create_if_block_3","raw_value","button_changes","t.MyElectedOfficials_ViewButton","t.MyCandidates_ViewButton","create_if_block_4","if_block2","h1","t.Page_Header","t.Page_SubTitle","t.Calendar_Header","t.VotingResources_Header","div7","t.VotingResources_SubTitle","div10","t.MyElectedOfficials_Header","div11","t.MyElectedOfficials_Body","div14","t.MyCandidates_Header","div15","t.MyCandidates_Body","img","img_src_value","div20","div8","div9","div19","div17","div12","div13","div16","div18","appCssUrl","_h","_i","_j","ec","searchParams","addressFromSearchParams","urlRegisterToVote","urlFindYourPollingLocation","urlGetPersonalizedVotingResources","getDomainFromHref","href","elections","fixUpElectionDates","dateStr","currentDate","_getVotingResources","votingResources","getQueryObj","_k","_l","_m","_n","onSelectOrClearAddress","load","resourceLinks","t.VotingResources_Register_Header","t.VotingResources_Register_SubTitle","t.VotingResources_Find_Header","t.VotingResources_Find_SubTitle","t.VotingResources_Get_Header","t.VotingResources_Get_SubTitle","isValidAddress","urlViewOfficialsWithAddress","urlMyCandidates"],"mappings":"4KACO,SAASA,GAAO,CAAE,CAWlB,SAASC,EAAOC,EAAKC,EAAK,CAEhC,UAAWC,KAAKD,EAAKD,EAAIE,CAAC,EAAID,EAAIC,CAAC,EACnC,OAA6BF,CAC9B,CAuBO,SAASG,GAAIC,EAAI,CACvB,OAAOA,EAAE,CACV,CAEO,SAASC,IAAe,CAC9B,OAAO,OAAO,OAAO,IAAI,CAC1B,CAMO,SAASC,GAAQC,EAAK,CAC5BA,EAAI,QAAQJ,EAAG,CAChB,CAMO,SAASK,GAAYC,EAAO,CAClC,OAAO,OAAOA,GAAU,UACzB,CAGO,SAASC,GAAeC,EAAGC,EAAG,CACpC,OAAOD,GAAKA,EAAIC,GAAKA,EAAID,IAAMC,GAAMD,GAAK,OAAOA,GAAM,UAAa,OAAOA,GAAM,UAClF,CAEA,IAAIE,GAOG,SAASC,GAAcC,EAAaC,EAAK,CAC/C,OAAID,IAAgBC,EAAY,IAC3BH,KACJA,GAAuB,SAAS,cAAc,GAAG,GAGlDA,GAAqB,KAAOG,EACrBD,IAAgBF,GAAqB,KAC7C,CAqCO,SAASI,GAASC,EAAK,CAC7B,OAAO,OAAO,KAAKA,CAAG,EAAE,SAAW,CACpC,CASO,SAASC,GAAUC,KAAUC,EAAW,CAC9C,GAAID,GAAS,KAAM,CAClB,UAAWE,KAAYD,EACtBC,EAAS,MAAS,EAE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