{"version":3,"file":"3146.js","sources":["webpack://frontend/./src/svelte_repo/ongoing_works/stores/index.js","webpack://frontend/OngoingWorks.svelte","webpack://frontend/List.svelte","webpack://frontend/./src/svelte_repo/svelte_utils/analytics_tools.js","webpack://frontend/./src/svelte_repo/svelte_utils/index.js","webpack://frontend/./node_modules/svelte/src/internal/disclose-version.js","webpack://frontend/./node_modules/svelte/src/version.js","webpack://frontend/./node_modules/svelte/src/reactivity/create-subscriber.js","webpack://frontend/./node_modules/svelte/src/reactivity/utils.js","webpack://frontend/./node_modules/svelte/src/transition/index.js"],"sourcesContent":["import { writable } from 'svelte/store'\r\n\r\nexport const items = writable([])\r\n","\r\n\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n e.preventDefault();\r\n }}\r\n />\r\n \r\n {#if hasError}\r\n {errorMessage}\r\n {/if}\r\n {#if !loading && !hasError && data && data.length > 0}\r\n \r\n {/if}\r\n
\r\n","\r\n\r\n\r\n","const maxTime = 1200000;\r\nconst FORM_TRACKING_KEY = \"wc_form_tracking\";\r\n\r\n/**\r\n* @example isFormElement(event.target.tagName);\r\n* @returns true if the nodeType is a form element\r\n*/\r\nexport function isFormElement(nodeType) {\r\n switch (nodeType) {\r\n case \"SELECT\":\r\n case \"INPUT\":\r\n case \"BUTTON\":\r\n case \"TEXTAREA\":\r\n case \"OPTION\":\r\n case \"LABEL\":\r\n case \"FIELDSET\":\r\n return true;\r\n default:\r\n return false;\r\n }\r\n}\r\n\r\n/**\r\n * @example dataLayerPush({ event: \"formStart\", name, step: 'start', desc, value: 0.0, error: null, type });\r\n*/\r\n// push data to the dataLayer\r\nexport function dataLayerPush(options) {\r\n const { event, ...rest } = options;\r\n window.dataLayer.push({\r\n event: options.event,\r\n action: {\r\n time: new Date().toISOString(),\r\n ...rest,\r\n },\r\n });\r\n}\r\n\r\n/**\r\n* @example handleFormSteps(name, step, desc, error, value, type);\r\n*/\r\nexport function handleFormSteps(name, step, desc = \"\", error = null, value = 0.0, type = \"form\") {\r\n let isReload = performance.getEntriesByType(\"navigation\")[0].type === 'reload';\r\n if (!isReload && document.referrer !== window.location.href) {\r\n removeTracking()\r\n }\r\n let isFresh = formIsFresh(name)\r\n let isNewStep = hasNavigatedToNewStep(name, step)\r\n let isComplete = step === \"complete\";\r\n\r\n if (!isReload && document.referrer !== window.location.href) {\r\n isFresh = true;\r\n removeTracking();\r\n setFormTracking(name, step);\r\n }\r\n if (!isNewStep && !error) return;\r\n if (isComplete && isNewStep && !error) {\r\n handleFormComplete({ name, type, desc, value })\r\n return;\r\n }\r\n\r\n if (isFresh) {\r\n dataLayerPush({ event: \"formStart\", name, step: 'start', desc, value: 0.0, error: null, type });\r\n }\r\n if ((isNewStep || isFresh) && !isComplete && !error) {\r\n dataLayerPush({ event: \"formStep\", name, step, desc, value, error, type });\r\n }\r\n\r\n if (error) {\r\n handleFormErrors({ name, step, errors: desc ?? ['server error'], type })\r\n }\r\n setFormTracking(name, step);\r\n}\r\n\r\nfunction getFormTracking(formName) {\r\n let dataString = sessionStorage.getItem(FORM_TRACKING_KEY);\r\n if (dataString) {\r\n let data = JSON.parse(dataString)\r\n if (data.formName === formName) {\r\n return data\r\n } else {\r\n removeTracking();\r\n }\r\n }\r\n}\r\n\r\nexport function setFormTracking(formName, formStep) {\r\n sessionStorage.setItem(FORM_TRACKING_KEY, JSON.stringify({\r\n formName,\r\n savedStep: formStep,\r\n expiry: Date.now() + maxTime,\r\n }));\r\n}\r\n\r\nexport function formIsFresh(formName) {\r\n let formData = getFormTracking(formName);\r\n if (!formData) {\r\n return true\r\n }\r\n if (formName !== formData.formName) {\r\n removeTracking();\r\n return true;\r\n }\r\n return formData.expiry <= Date.now();\r\n}\r\nexport function hasNavigatedToNewStep(formName, formStep) {\r\n let formData = getFormTracking(formName);\r\n if (!formData) {\r\n return true\r\n }\r\n return formData.formName === formName && formData.savedStep !== formStep;\r\n}\r\n\r\nfunction removeTracking() {\r\n sessionStorage.removeItem(FORM_TRACKING_KEY);\r\n}\r\n\r\n// export function handleFormStart({ name, step, desc = \"\", type = \"form\" }) {\r\n// dataLayerPush({ event: \"formStart\", name, step: 'start', desc: \"\", value: 0.0, error: null, type });\r\n// dataLayerPush({ event: \"formStep\", name, step, desc, value: 0.0, error: null, type });\r\n// setFormTracking(name, step);\r\n// }\r\n\r\n// export function handleFormStep({ name, step, desc = \"\", type = \"form\" }) {\r\n// dataLayerPush({ event: \"formStep\", name, step, desc, value: 0.0, error: null, type });\r\n// setFormTracking(name, step);\r\n// }\r\n\r\nexport function handleFormComplete({ name, type = \"form\", desc = \"\", value = 0.0, records = \"1/1\" }) {\r\n dataLayerPush({ event: \"formComplete\", name, step: \"complete\", desc, value, error: null, type, records });\r\n removeTracking();\r\n}\r\n\r\n// export function handleFormPartial({ name, errors, type = \"form\", desc = \"\", value = 0.0 }) {\r\n// let error = getError(errors);\r\n// dataLayerPush({ event: \"formPartial\", name, step: \"complete - partial\", desc, value, error, type });\r\n// removeTracking();\r\n// }\r\n\r\nexport function handleFormErrors({ name, step, errors, type = \"form\" }) {\r\n let error = getError(errors);\r\n if (error) {\r\n dataLayerPush({ event: \"formError\", name, step: `${step} - error`, desc: \"\", value: 0.0, error, type });\r\n if (step === \"complete\") {\r\n removeTracking();\r\n } else {\r\n setFormTracking(name, step)\r\n }\r\n }\r\n}\r\n\r\n\r\n\r\n/**\r\n * @example getError([form.querySelectorAll('.error_msg, .field-validation-error, .wc-assist--error')]);\r\n * @returns a string of errors or null\r\n */\r\nfunction getError(errors) {\r\n if (errors) {\r\n return errors.join(\",\")\r\n }\r\n return null;\r\n}\r\n\r\n// export const updateGtm = args => {\r\n // if (window && window.digitalData) {\r\n // window.digitalData.tool = { name: args.tool };\r\n // if (args.step) {\r\n // window.digitalData.tool.step = args.step;\r\n // }\r\n // dataLayer.push({ event: args.event })\r\n // }\r\n // }\r\n \r\n // export const updateGtmWithResult = args => {\r\n // if (window && window.digitalData) {\r\n // window.digitalData.tool = { name: args.name, result: args.result };\r\n // if (args.step) {\r\n // window.digitalData.tool.step = args.step;\r\n // }\r\n // dataLayer.push({ event: args.event })\r\n // }\r\n // }","import { onDestroy } from 'svelte'\r\nimport { handleFormSteps, handleFormErrors, handleFormComplete } from \"./analytics_tools\";\r\n\r\nexport function onTimeout (callback, milliseconds) {\r\n const timeout = setTimeout(callback, milliseconds)\r\n onDestroy(() => {\r\n clearTimeout(timeout)\r\n })\r\n}\r\n\r\nexport const stringContains = string => substring =>\r\n string ? string.indexOf(substring) !== -1 : false\r\n\r\nexport const updateDataLayer = (options) => (e) => {\r\n e?.preventDefault();\r\n if (!window.dataLayer) {\r\n window.dataLayer = [];\r\n }\r\n const { event, name, step, ...rest } = options;\r\n let time = new Date().toISOString();\r\n let type = rest.type ?? \"form\";\r\n let value = rest.value ?? 0.00;\r\n let errors = rest.errors ?? null;\r\n let desc = rest.desc ?? \"\";\r\n if (event === 'formError') {\r\n handleFormErrors({ name, step, errors, type })\r\n }\r\n if (event === 'formComplete') {\r\n handleFormComplete({ name, type, desc, value })\r\n }\r\n if (event !== 'formComplete' && event !== 'formError' && step !== 'complete') {\r\n handleFormSteps(name, step, desc, null, value, type);\r\n }\r\n}\r\n\r\nexport const webfetch = function (url, options) {\r\n // return fetch(url, options);\r\n const fetchRes = async (url, options) => {\r\n try {\r\n let res = await fetch(url, options)\r\n if (!res.ok) {\r\n throw new Error(res.statusText)\r\n }\r\n let data = await res.json()\r\n return data\r\n } catch (err) {\r\n throw new Error(err)\r\n }\r\n }\r\n return fetchRes(url, options)\r\n}\r\n\r\nexport const msToTime = duration => {\r\n let hours = Math.floor((duration / (1000 * 60 * 60)) % 24)\r\n let days = Math.floor(duration / (1000 * 60 * 60 * 24))\r\n return { hours, days }\r\n}\r\n\r\n// export const updateGtm = args => {\r\n// if (window && window.digitalData) {\r\n// window.digitalData.tool = { name: args.tool }\r\n// if (args.step) {\r\n// window.digitalData.tool.step = args.step\r\n// }\r\n// dataLayer.push({ event: args.event })\r\n// }\r\n// }\r\n\r\n// export const updateGtmWithResult = args => {\r\n// if (window && window.digitalData) {\r\n// window.digitalData.tool = { name: args.name, result: args.result };\r\n// if (args.step) {\r\n// window.digitalData.tool.step = args.step;\r\n// }\r\n// dataLayer.push({ event: args.event })\r\n// }\r\n// }\r\n\r\nexport const keyCodes = {\r\n left: 37,\r\n up: 38,\r\n right: 39,\r\n down: 40,\r\n pgup: 33,\r\n pgdown: 34,\r\n enter: 13,\r\n escape: 27,\r\n tab: 9\r\n}\r\n\r\nexport const keyCodesArray = Object.keys(keyCodes).map(k => keyCodes[k])\r\n\r\nconst getCalendarPage = (month, year, dayProps, weekStart = 0) => {\r\n let date = new Date(year, month, 1)\r\n // Check if the start date is less than the week start\r\n if (date.getDay() < weekStart) {\r\n date.setDate(date.getDate() - (7 - (weekStart - date.getDay())));\r\n }\r\n else {\r\n date.setDate(date.getDate() - date.getDay() + weekStart)\r\n }\r\n let nextMonth = month === 11 ? 0 : month + 1\r\n // ensure days starts on Sunday\r\n // and end on saturday\r\n let weeks = []\r\n while (\r\n date.getMonth() !== nextMonth ||\r\n date.getDay() !== weekStart ||\r\n weeks.length !== 6\r\n ) {\r\n if (date.getDay() === weekStart)\r\n weeks.unshift({ days: [], id: `${year}${month}${year}${weeks.length}` })\r\n const updated = Object.assign(\r\n {\r\n partOfMonth: date.getMonth() === month,\r\n day: date.getDate(),\r\n month: date.getMonth(),\r\n year: date.getFullYear(),\r\n date: new Date(date)\r\n },\r\n dayProps(date)\r\n )\r\n weeks[0].days.push(updated)\r\n date.setDate(date.getDate() + 1)\r\n }\r\n weeks.reverse()\r\n return { month, year, weeks }\r\n}\r\n\r\nconst getDayPropsHandler = (start, end, selectableCallback) => {\r\n let today = new Date()\r\n today.setHours(0, 0, 0, 0)\r\n return date => {\r\n const isInRange = date >= start && date <= end\r\n return {\r\n isInRange,\r\n selectable:\r\n isInRange && (!selectableCallback || selectableCallback(date)),\r\n isToday: date.getTime() === today.getTime()\r\n }\r\n }\r\n}\r\n\r\nexport function getMonths(\r\n start,\r\n end,\r\n selectableCallback = null,\r\n weekStart = 0\r\n) {\r\n start.setHours(0, 0, 0, 0)\r\n end.setHours(0, 0, 0, 0)\r\n let endDate = new Date(end.getFullYear(), end.getMonth() + 1, 1)\r\n let months = []\r\n let date = new Date(start.getFullYear(), start.getMonth(), 1)\r\n let dayPropsHandler = getDayPropsHandler(start, end, selectableCallback)\r\n while (date < endDate) {\r\n months.push(\r\n getCalendarPage(\r\n date.getMonth(),\r\n date.getFullYear(),\r\n dayPropsHandler,\r\n weekStart\r\n )\r\n )\r\n date.setMonth(date.getMonth() + 1)\r\n }\r\n return months\r\n}\r\n\r\nexport const areDatesEquivalent = (a, b) =>\r\n a.getDate() === b.getDate() &&\r\n a.getMonth() === b.getMonth() &&\r\n a.getFullYear() === b.getFullYear()\r\n\r\n/**\r\n * @returns {array} [int month, int day]\r\n */\r\nexport function getEaster(year) {\r\n let f = Math.floor,\r\n // Golden Number - 1\r\n G = year % 19,\r\n C = f(year / 100),\r\n // related to Epact\r\n H = (C - f(C / 4) - f((8 * C + 13) / 25) + 19 * G + 15) % 30,\r\n // number of days from 21 March to the Paschal full moon\r\n I = H - f(H / 28) * (1 - f(29 / (H + 1)) * f((21 - G) / 11)),\r\n // weekday for the Paschal full moon\r\n J = (year + f(year / 4) + I + 2 - C + f(C / 4)) % 7,\r\n // number of days from 21 March to the Sunday on or before the Paschal full moon\r\n L = I - J,\r\n month = 3 + f((L + 40) / 44),\r\n day = L + 28 - 31 * f(month / 4)\r\n\r\n let Sunday = new Date(year, month - 1, day, 0, 0, 0, 0)\r\n let Monday = new Date(new Date(Sunday).setDate(Sunday.getDate() + 1))\r\n let Friday = new Date(new Date(Sunday).setDate(Sunday.getDate() - 2))\r\n\r\n return [Monday, Friday]\r\n}\r\n\r\nexport function getFirstMonday(year, month) {\r\n let d = new Date(year, month, 1, 0, 0, 0)\r\n while (d.getDay() !== 1) {\r\n d.setDate(d.getDate() + 1)\r\n }\r\n return d\r\n}\r\n\r\nfunction scrollTo(element, to, duration, onDone) {\r\n let start = element.scrollTop,\r\n change = to - start,\r\n startTime = performance.now(),\r\n val,\r\n now,\r\n elapsed,\r\n t\r\n\r\n function animateScroll() {\r\n now = performance.now()\r\n elapsed = (now - startTime) / 1000\r\n t = elapsed / duration\r\n\r\n element.scrollTop = start + change * easeInOutQuad(t)\r\n\r\n if (t < 1) window.requestAnimationFrame(animateScroll)\r\n else onDone && onDone()\r\n }\r\n\r\n animateScroll()\r\n}\r\n\r\nfunction easeInOutQuad(t) {\r\n return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t\r\n}\r\nfunction getRelativePos(elm) {\r\n let pPos = elm.parentNode.getBoundingClientRect(), // parent pos\r\n cPos = elm.getBoundingClientRect(), // target pos\r\n pos = {}\r\n\r\n ; (pos.top = cPos.top - pPos.top + elm.parentNode.scrollTop),\r\n (pos.right = cPos.right - pPos.right),\r\n (pos.bottom = cPos.bottom - pPos.bottom),\r\n (pos.left = cPos.left - pPos.left)\r\n\r\n return pos\r\n}\r\n\r\nexport function scrollToElm(container, elm, duration) {\r\n let pos = getRelativePos(elm)\r\n scrollTo(container, pos.top - 150, 0.1) // duration in seconds\r\n}\r\n\r\nexport function debounce(func, wait, immediate) {\r\n let timeout\r\n\r\n return function executedFunction() {\r\n let context = this\r\n let args = arguments\r\n\r\n let later = function () {\r\n timeout = null\r\n if (!immediate) func.apply(context, args)\r\n }\r\n\r\n let callNow = immediate && !timeout\r\n\r\n clearTimeout(timeout)\r\n\r\n timeout = setTimeout(later, wait)\r\n\r\n if (callNow) func.apply(context, args)\r\n }\r\n}\r\n\r\nexport function clickOutside(node) {\r\n var handleClick = function handleClick(event) {\r\n if (node && !node.contains(event.target) && !event.defaultPrevented) {\r\n node.dispatchEvent(new CustomEvent('click_outside', node));\r\n }\r\n };\r\n\r\n document.addEventListener('click', handleClick, true);\r\n return {\r\n destroy: function destroy() {\r\n document.removeEventListener('click', handleClick, true);\r\n }\r\n };\r\n}\r\n\r\nexport const convertToNumberString = (num) => {\r\n let numArray = num.toString().split(\".\");\r\n let wholeNumber = numArray[0]\r\n .split(\"\")\r\n .reverse()\r\n .map((str, i) => (i !== 0 && i % 3 === 0 ? str + \",\" : str))\r\n .reverse()\r\n .join(\"\");\r\n return numArray[1] ? `${wholeNumber}.${numArray[1]}` : wholeNumber;\r\n};\r\n\r\nexport const convertToMoney = (num) => {\r\n let round = Math.round(num * 100) / 100;\r\n let moneyArray = round.toString().split(\".\");\r\n let dollars = moneyArray[0]\r\n .split(\"\")\r\n .reverse()\r\n .map((str, i) => (i !== 0 && i % 3 === 0 ? str + \",\" : str))\r\n .reverse()\r\n .join(\"\");\r\n return `$${dollars}.${moneyArray[1]\r\n ? moneyArray[1].length === 2\r\n ? moneyArray[1]\r\n : String(moneyArray[1]) + \"0\"\r\n : \"00\"\r\n }`;\r\n};\r\n\r\nexport function once(fn) {\r\n return function (event) {\r\n if (fn) fn.call(this, event);\r\n fn = null;\r\n };\r\n}","import { PUBLIC_VERSION } from '../version.js';\n\nif (typeof window !== 'undefined')\n\t// @ts-ignore\n\t(window.__svelte ||= { v: new Set() }).v.add(PUBLIC_VERSION);\n","// generated during release, do not modify\n\n/**\n * The current version, as set in package.json.\n * @type {string}\n */\nexport const VERSION = '5.18.0';\nexport const PUBLIC_VERSION = '5';\n","import { get, tick, untrack } from '../internal/client/runtime.js';\nimport { effect_tracking, render_effect } from '../internal/client/reactivity/effects.js';\nimport { source } from '../internal/client/reactivity/sources.js';\nimport { increment } from './utils.js';\n\n/**\n * Returns a `subscribe` function that, if called in an effect (including expressions in the template),\n * calls its `start` callback with an `update` function. Whenever `update` is called, the effect re-runs.\n *\n * If `start` returns a function, it will be called when the effect is destroyed.\n *\n * If `subscribe` is called in multiple effects, `start` will only be called once as long as the effects\n * are active, and the returned teardown function will only be called when all effects are destroyed.\n *\n * It's best understood with an example. Here's an implementation of [`MediaQuery`](https://svelte.dev/docs/svelte/svelte-reactivity#MediaQuery):\n *\n * ```js\n * import { createSubscriber } from 'svelte/reactivity';\n * import { on } from 'svelte/events';\n *\n * export class MediaQuery {\n * \t#query;\n * \t#subscribe;\n *\n * \tconstructor(query) {\n * \t\tthis.#query = window.matchMedia(`(${query})`);\n *\n * \t\tthis.#subscribe = createSubscriber((update) => {\n * \t\t\t// when the `change` event occurs, re-run any effects that read `this.current`\n * \t\t\tconst off = on(this.#query, 'change', update);\n *\n * \t\t\t// stop listening when all the effects are destroyed\n * \t\t\treturn () => off();\n * \t\t});\n * \t}\n *\n * \tget current() {\n * \t\tthis.#subscribe();\n *\n * \t\t// Return the current state of the query, whether or not we're in an effect\n * \t\treturn this.#query.matches;\n * \t}\n * }\n * ```\n * @param {(update: () => void) => (() => void) | void} start\n * @since 5.7.0\n */\nexport function createSubscriber(start) {\n\tlet subscribers = 0;\n\tlet version = source(0);\n\t/** @type {(() => void) | void} */\n\tlet stop;\n\n\treturn () => {\n\t\tif (effect_tracking()) {\n\t\t\tget(version);\n\n\t\t\trender_effect(() => {\n\t\t\t\tif (subscribers === 0) {\n\t\t\t\t\tstop = untrack(() => start(() => increment(version)));\n\t\t\t\t}\n\n\t\t\t\tsubscribers += 1;\n\n\t\t\t\treturn () => {\n\t\t\t\t\ttick().then(() => {\n\t\t\t\t\t\t// Only count down after timeout, else we would reach 0 before our own render effect reruns,\n\t\t\t\t\t\t// but reach 1 again when the tick callback of the prior teardown runs. That would mean we\n\t\t\t\t\t\t// re-subcribe unnecessarily and create a memory leak because the old subscription is never cleaned up.\n\t\t\t\t\t\tsubscribers -= 1;\n\n\t\t\t\t\t\tif (subscribers === 0) {\n\t\t\t\t\t\t\tstop?.();\n\t\t\t\t\t\t\tstop = undefined;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t};\n\t\t\t});\n\t\t}\n\t};\n}\n","/** @import { Source } from '#client' */\nimport { set } from '../internal/client/reactivity/sources.js';\n\n/** @param {Source} source */\nexport function increment(source) {\n\tset(source, source.v + 1);\n}\n","/** @import { BlurParams, CrossfadeParams, DrawParams, FadeParams, FlyParams, ScaleParams, SlideParams, TransitionConfig } from './public' */\n\nimport { DEV } from 'esm-env';\nimport * as w from '../internal/client/warnings.js';\n\n/** @param {number} x */\nconst linear = (x) => x;\n\n/** @param {number} t */\nfunction cubic_out(t) {\n\tconst f = t - 1.0;\n\treturn f * f * f + 1.0;\n}\n\n/**\n * @param {number} t\n * @returns {number}\n */\nfunction cubic_in_out(t) {\n\treturn t < 0.5 ? 4.0 * t * t * t : 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0;\n}\n\n/** @param {number | string} value\n * @returns {[number, string]}\n */\nfunction 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\n/**\n * Animates a `blur` filter alongside an element's opacity.\n *\n * @param {Element} node\n * @param {BlurParams} [params]\n * @returns {TransitionConfig}\n */\nexport function blur(\n\tnode,\n\t{ delay = 0, duration = 400, easing = cubic_in_out, amount = 5, opacity = 0 } = {}\n) {\n\tconst style = getComputedStyle(node);\n\tconst target_opacity = +style.opacity;\n\tconst f = style.filter === 'none' ? '' : style.filter;\n\tconst od = target_opacity * (1 - opacity);\n\tconst [value, unit] = split_css_unit(amount);\n\treturn {\n\t\tdelay,\n\t\tduration,\n\t\teasing,\n\t\tcss: (_t, u) => `opacity: ${target_opacity - od * u}; filter: ${f} blur(${u * value}${unit});`\n\t};\n}\n\n/**\n * Animates the opacity of an element from 0 to the current opacity for `in` transitions and from the current opacity to 0 for `out` transitions.\n *\n * @param {Element} node\n * @param {FadeParams} [params]\n * @returns {TransitionConfig}\n */\nexport function fade(node, { delay = 0, duration = 400, easing = linear } = {}) {\n\tconst o = +getComputedStyle(node).opacity;\n\treturn {\n\t\tdelay,\n\t\tduration,\n\t\teasing,\n\t\tcss: (t) => `opacity: ${t * o}`\n\t};\n}\n\n/**\n * Animates the x and y positions and the opacity of an element. `in` transitions animate from the provided values, passed as parameters to the element's default values. `out` transitions animate from the element's default values to the provided values.\n *\n * @param {Element} node\n * @param {FlyParams} [params]\n * @returns {TransitionConfig}\n */\nexport function fly(\n\tnode,\n\t{ delay = 0, duration = 400, easing = cubic_out, x = 0, y = 0, opacity = 0 } = {}\n) {\n\tconst style = getComputedStyle(node);\n\tconst target_opacity = +style.opacity;\n\tconst transform = style.transform === 'none' ? '' : style.transform;\n\tconst od = target_opacity * (1 - opacity);\n\tconst [x_value, x_unit] = split_css_unit(x);\n\tconst [y_value, y_unit] = split_css_unit(y);\n\treturn {\n\t\tdelay,\n\t\tduration,\n\t\teasing,\n\t\tcss: (t, u) => `\n\t\t\ttransform: ${transform} translate(${(1 - t) * x_value}${x_unit}, ${(1 - t) * y_value}${y_unit});\n\t\t\topacity: ${target_opacity - od * u}`\n\t};\n}\n\nvar slide_warning = false;\n\n/**\n * Slides an element in and out.\n *\n * @param {Element} node\n * @param {SlideParams} [params]\n * @returns {TransitionConfig}\n */\nexport function slide(node, { delay = 0, duration = 400, easing = cubic_out, axis = 'y' } = {}) {\n\tconst style = getComputedStyle(node);\n\n\tif (DEV && !slide_warning && /(contents|inline|table)/.test(style.display)) {\n\t\tslide_warning = true;\n\t\tPromise.resolve().then(() => (slide_warning = false));\n\t\tw.transition_slide_display(style.display);\n\t}\n\n\tconst opacity = +style.opacity;\n\tconst primary_property = axis === 'y' ? 'height' : 'width';\n\tconst primary_property_value = parseFloat(style[primary_property]);\n\tconst secondary_properties = axis === 'y' ? ['top', 'bottom'] : ['left', 'right'];\n\tconst capitalized_secondary_properties = secondary_properties.map(\n\t\t(e) => /** @type {'Left' | 'Right' | 'Top' | 'Bottom'} */ (`${e[0].toUpperCase()}${e.slice(1)}`)\n\t);\n\tconst padding_start_value = parseFloat(style[`padding${capitalized_secondary_properties[0]}`]);\n\tconst padding_end_value = parseFloat(style[`padding${capitalized_secondary_properties[1]}`]);\n\tconst margin_start_value = parseFloat(style[`margin${capitalized_secondary_properties[0]}`]);\n\tconst margin_end_value = parseFloat(style[`margin${capitalized_secondary_properties[1]}`]);\n\tconst border_width_start_value = parseFloat(\n\t\tstyle[`border${capitalized_secondary_properties[0]}Width`]\n\t);\n\tconst border_width_end_value = parseFloat(\n\t\tstyle[`border${capitalized_secondary_properties[1]}Width`]\n\t);\n\treturn {\n\t\tdelay,\n\t\tduration,\n\t\teasing,\n\t\tcss: (t) =>\n\t\t\t'overflow: hidden;' +\n\t\t\t`opacity: ${Math.min(t * 20, 1) * opacity};` +\n\t\t\t`${primary_property}: ${t * primary_property_value}px;` +\n\t\t\t`padding-${secondary_properties[0]}: ${t * padding_start_value}px;` +\n\t\t\t`padding-${secondary_properties[1]}: ${t * padding_end_value}px;` +\n\t\t\t`margin-${secondary_properties[0]}: ${t * margin_start_value}px;` +\n\t\t\t`margin-${secondary_properties[1]}: ${t * margin_end_value}px;` +\n\t\t\t`border-${secondary_properties[0]}-width: ${t * border_width_start_value}px;` +\n\t\t\t`border-${secondary_properties[1]}-width: ${t * border_width_end_value}px;` +\n\t\t\t`min-${primary_property}: 0`\n\t};\n}\n\n/**\n * Animates the opacity and scale of an element. `in` transitions animate from the provided values, passed as parameters, to an element's current (default) values. `out` transitions animate from an element's default values to the provided values.\n *\n * @param {Element} node\n * @param {ScaleParams} [params]\n * @returns {TransitionConfig}\n */\nexport function scale(\n\tnode,\n\t{ delay = 0, duration = 400, easing = cubic_out, start = 0, opacity = 0 } = {}\n) {\n\tconst style = getComputedStyle(node);\n\tconst target_opacity = +style.opacity;\n\tconst transform = style.transform === 'none' ? '' : style.transform;\n\tconst sd = 1 - start;\n\tconst od = target_opacity * (1 - opacity);\n\treturn {\n\t\tdelay,\n\t\tduration,\n\t\teasing,\n\t\tcss: (_t, u) => `\n\t\t\ttransform: ${transform} scale(${1 - sd * u});\n\t\t\topacity: ${target_opacity - od * u}\n\t\t`\n\t};\n}\n\n/**\n * Animates the stroke of an SVG element, like a snake in a tube. `in` transitions begin with the path invisible and draw the path to the screen over time. `out` transitions start in a visible state and gradually erase the path. `draw` only works with elements that have a `getTotalLength` method, like `` and ``.\n *\n * @param {SVGElement & { getTotalLength(): number }} node\n * @param {DrawParams} [params]\n * @returns {TransitionConfig}\n */\nexport function draw(node, { delay = 0, speed, duration, easing = cubic_in_out } = {}) {\n\tlet len = node.getTotalLength();\n\tconst style = getComputedStyle(node);\n\tif (style.strokeLinecap !== 'butt') {\n\t\tlen += parseInt(style.strokeWidth);\n\t}\n\tif (duration === undefined) {\n\t\tif (speed === undefined) {\n\t\t\tduration = 800;\n\t\t} else {\n\t\t\tduration = len / speed;\n\t\t}\n\t} else if (typeof duration === 'function') {\n\t\tduration = duration(len);\n\t}\n\treturn {\n\t\tdelay,\n\t\tduration,\n\t\teasing,\n\t\tcss: (_, u) => `\n\t\t\tstroke-dasharray: ${len};\n\t\t\tstroke-dashoffset: ${u * len};\n\t\t`\n\t};\n}\n\n/**\n * @template T\n * @template S\n * @param {T} tar\n * @param {S} src\n * @returns {T & S}\n */\nfunction 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/**\n * The `crossfade` function creates a pair of [transitions](https://svelte.dev/docs/svelte/transition) called `send` and `receive`. When an element is 'sent', it looks for a corresponding element being 'received', and generates a transition that transforms the element to its counterpart's position and fades it out. When an element is 'received', the reverse happens. If there is no counterpart, the `fallback` transition is used.\n *\n * @param {CrossfadeParams & {\n * \tfallback?: (node: Element, params: CrossfadeParams, intro: boolean) => TransitionConfig;\n * }} params\n * @returns {[(node: any, params: CrossfadeParams & { key: any; }) => () => TransitionConfig, (node: any, params: CrossfadeParams & { key: any; }) => () => TransitionConfig]}\n */\nexport function crossfade({ fallback, ...defaults }) {\n\t/** @type {Map} */\n\tconst to_receive = new Map();\n\t/** @type {Map} */\n\tconst to_send = new Map();\n\n\t/**\n\t * @param {Element} from_node\n\t * @param {Element} node\n\t * @param {CrossfadeParams} params\n\t * @returns {TransitionConfig}\n\t */\n\tfunction crossfade(from_node, node, params) {\n\t\tconst {\n\t\t\tdelay = 0,\n\t\t\tduration = /** @param {number} d */ (d) => Math.sqrt(d) * 30,\n\t\t\teasing = cubic_out\n\t\t} = assign(assign({}, defaults), params);\n\t\tconst from = from_node.getBoundingClientRect();\n\t\tconst to = node.getBoundingClientRect();\n\t\tconst dx = from.left - to.left;\n\t\tconst dy = from.top - to.top;\n\t\tconst dw = from.width / to.width;\n\t\tconst dh = from.height / to.height;\n\t\tconst d = Math.sqrt(dx * dx + dy * dy);\n\t\tconst style = getComputedStyle(node);\n\t\tconst transform = style.transform === 'none' ? '' : style.transform;\n\t\tconst opacity = +style.opacity;\n\t\treturn {\n\t\t\tdelay,\n\t\t\tduration: typeof duration === 'function' ? duration(d) : duration,\n\t\t\teasing,\n\t\t\tcss: (t, u) => `\n\t\t\t opacity: ${t * opacity};\n\t\t\t transform-origin: top left;\n\t\t\t transform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1 - t) * dw}, ${\n\t\t\t\t\t\tt + (1 - t) * dh\n\t\t\t\t\t});\n\t\t `\n\t\t};\n\t}\n\n\t/**\n\t * @param {Map} items\n\t * @param {Map} counterparts\n\t * @param {boolean} intro\n\t * @returns {(node: any, params: CrossfadeParams & { key: any; }) => () => TransitionConfig}\n\t */\n\tfunction transition(items, counterparts, intro) {\n\t\t// @ts-expect-error TODO improve typings (are the public types wrong?)\n\t\treturn (node, params) => {\n\t\t\titems.set(params.key, node);\n\t\t\treturn () => {\n\t\t\t\tif (counterparts.has(params.key)) {\n\t\t\t\t\tconst other_node = counterparts.get(params.key);\n\t\t\t\t\tcounterparts.delete(params.key);\n\t\t\t\t\treturn crossfade(/** @type {Element} */ (other_node), node, params);\n\t\t\t\t}\n\t\t\t\t// if the node is disappearing altogether\n\t\t\t\t// (i.e. wasn't claimed by the other list)\n\t\t\t\t// then we need to supply an outro\n\t\t\t\titems.delete(params.key);\n\t\t\t\treturn fallback && fallback(node, params, intro);\n\t\t\t};\n\t\t};\n\t}\n\treturn [transition(to_send, to_receive, false), transition(to_receive, to_send, true)];\n}\n"],"names":["items","writable","handleChange","e","filterTerm","url","data","loading","terms","list","term","item","a","b","d","err","error","value","PageUrl","ProjectTitle","ShortDescription","Location","FORM_TRACKING_KEY","dataLayerPush","options","event","rest","window","Date","getFormTracking","formName","dataString","sessionStorage","JSON","removeTracking","setFormTracking","formStep","handleFormComplete","param","name","type","desc","records","handleFormErrors","errors","step","onTimeout","callback","milliseconds","timeout","setTimeout","onDestroy","clearTimeout","stringContains","string","substring","updateDataLayer","handleFormSteps","formData","isReload","performance","document","isFresh","isNewStep","isComplete","webfetch","fetchRes","res","fetch","Error","msToTime","duration","hours","Math","days","keyCodes","keyCodesArray","Object","k","getCalendarPage","month","year","dayProps","weekStart","date","nextMonth","weeks","updated","getDayPropsHandler","start","end","selectableCallback","today","isInRange","getMonths","endDate","months","dayPropsHandler","areDatesEquivalent","getEaster","f","G","C","H","I","J","L","day","Sunday","getFirstMonday","scrollToElm","container","elm","pPos","cPos","pos","change","startTime","t","to","element","animateScroll","elapsed","now","debounce","func","wait","immediate","context","args","arguments","callNow","convertToMoney","num","moneyArray","round","dollars","str","i","String","once","fn","_window","Set","createSubscriber","stop","subscribers","version","source","effect_tracking","get","render_effect","untrack","increment","tick","undefined","set","linear","x","cubic_out","split_css_unit","split","parseFloat","fade","node","delay","easing","o","getComputedStyle","fly","y","opacity","style","target_opacity","transform","od","x_value","x_unit","y_value","y_unit","u","slide_warning","slide","axis","DEV","Promise","w","primary_property","primary_property_value","secondary_properties","capitalized_secondary_properties","padding_start_value","padding_end_value","margin_start_value","margin_end_value","border_width_start_value","border_width_end_value"],"mappings":"qMAEO,IAAMA,EAAQC,AAAAA,GAAAA,A,SAAAA,EAAAA,AAAAA,EAAS,EAAE,E,y9BC4DxBC,EAAe,CAACC,EAAC,K,MACrBC,EAAU,MAAGD,EAAE,MAAM,CAAC,KAAK,EAC7B,E,2iCAnDME,EAAM,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