{"version":3,"file":"theme-scripts.min.js","sources":["../../node_modules/uikit/dist/js/uikit-core.js","../../assets/scripts/theme/accordion.js","../../node_modules/uikit/src/js/util/lang.js","../../node_modules/uikit/src/js/util/attr.js","../../node_modules/uikit/src/js/util/class.js","../../node_modules/uikit/src/js/util/filter.js","../../node_modules/uikit/src/js/util/selector.js","../../node_modules/uikit/src/js/util/event.js","../../node_modules/uikit/src/js/util/style.js","../../node_modules/uikit/src/js/util/animation.js","../../node_modules/uikit/src/js/util/dom.js","../../node_modules/uikit/src/js/util/dimensions.js","../../node_modules/uikit/src/js/util/env.js","../../node_modules/uikit/src/js/util/observer.js","../../node_modules/uikit/src/js/api/observables.js","../../node_modules/uikit/src/js/mixin/class.js","../../node_modules/uikit/src/js/mixin/i18n.js","../../node_modules/uikit/src/js/mixin/slider-autoplay.js","../../node_modules/uikit/src/js/mixin/slider-drag.js","../../node_modules/uikit/src/js/api/instance.js","../../node_modules/uikit/src/js/util/keys.js","../../node_modules/uikit/src/js/mixin/slider-nav.js","../../node_modules/uikit/src/js/mixin/slider.js","../../node_modules/uikit/src/js/mixin/slider-reactive.js","../../node_modules/uikit/src/js/components/internal/slider-preload.js","../../node_modules/uikit/src/js/mixin/internal/slideshow-animations.js","../../node_modules/uikit/src/js/components/internal/slider-transitioner.js","../../node_modules/uikit/src/js/components/slider.js","../../node_modules/uikit/src/js/mixin/internal/slideshow-transitioner.js","../../node_modules/uikit/src/js/mixin/slideshow.js","../../node_modules/uikit/src/js/components/internal/slideshow-animations.js","../../node_modules/uikit/src/js/components/slideshow.js","../../assets/scripts/theme/UIkit.js","../../assets/scripts/theme/blogResources.js","../../assets/scripts/theme/slideshow.js","../../assets/scripts/theme/imageSlider.js","../../assets/scripts/theme/imageSliderPartial.js","../../assets/scripts/theme/partials.js","../../assets/scripts/theme/testimonials.js","../../assets/scripts/theme/timelineSlider.js","../../assets/scripts/theme/headerSearch.js","../../assets/scripts/theme/resourceFiltering.js","../../assets/scripts/theme/resources.js","../../assets/scripts/theme-scripts.js"],"sourcesContent":["/*! UIkit 3.16.26 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define('uikit', factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.UIkit = factory());\n})(this, (function () { 'use strict';\n\n const { hasOwnProperty, toString } = Object.prototype;\n function hasOwn(obj, key) {\n return hasOwnProperty.call(obj, key);\n }\n const hyphenateRe = /\\B([A-Z])/g;\n const hyphenate = memoize((str) => str.replace(hyphenateRe, \"-$1\").toLowerCase());\n const camelizeRe = /-(\\w)/g;\n const camelize = memoize(\n (str) => (str.charAt(0).toLowerCase() + str.slice(1)).replace(camelizeRe, (_, c) => c.toUpperCase())\n );\n const ucfirst = memoize((str) => str.charAt(0).toUpperCase() + str.slice(1));\n function startsWith(str, search) {\n var _a;\n return (_a = str == null ? void 0 : str.startsWith) == null ? void 0 : _a.call(str, search);\n }\n function endsWith(str, search) {\n var _a;\n return (_a = str == null ? void 0 : str.endsWith) == null ? void 0 : _a.call(str, search);\n }\n function includes(obj, search) {\n var _a;\n return (_a = obj == null ? void 0 : obj.includes) == null ? void 0 : _a.call(obj, search);\n }\n function findIndex(array, predicate) {\n var _a;\n return (_a = array == null ? void 0 : array.findIndex) == null ? void 0 : _a.call(array, predicate);\n }\n const { isArray, from: toArray } = Array;\n const { assign } = Object;\n function isFunction(obj) {\n return typeof obj === \"function\";\n }\n function isObject(obj) {\n return obj !== null && typeof obj === \"object\";\n }\n function isPlainObject(obj) {\n return toString.call(obj) === \"[object Object]\";\n }\n function isWindow(obj) {\n return isObject(obj) && obj === obj.window;\n }\n function isDocument(obj) {\n return nodeType(obj) === 9;\n }\n function isNode(obj) {\n return nodeType(obj) >= 1;\n }\n function isElement(obj) {\n return nodeType(obj) === 1;\n }\n function nodeType(obj) {\n return !isWindow(obj) && isObject(obj) && obj.nodeType;\n }\n function isBoolean(value) {\n return typeof value === \"boolean\";\n }\n function isString(value) {\n return typeof value === \"string\";\n }\n function isNumber(value) {\n return typeof value === \"number\";\n }\n function isNumeric(value) {\n return isNumber(value) || isString(value) && !isNaN(value - parseFloat(value));\n }\n function isEmpty(obj) {\n return !(isArray(obj) ? obj.length : isObject(obj) ? Object.keys(obj).length : false);\n }\n function isUndefined(value) {\n return value === void 0;\n }\n function toBoolean(value) {\n return isBoolean(value) ? value : value === \"true\" || value === \"1\" || value === \"\" ? true : value === \"false\" || value === \"0\" ? false : value;\n }\n function toNumber(value) {\n const number = Number(value);\n return isNaN(number) ? false : number;\n }\n function toFloat(value) {\n return parseFloat(value) || 0;\n }\n function toNode(element) {\n return toNodes(element)[0];\n }\n function toNodes(element) {\n return isNode(element) ? [element] : Array.from(element || []).filter(isNode);\n }\n function toWindow(element) {\n if (isWindow(element)) {\n return element;\n }\n element = toNode(element);\n const document = isDocument(element) ? element : element == null ? void 0 : element.ownerDocument;\n return (document == null ? void 0 : document.defaultView) || window;\n }\n function isEqual(value, other) {\n return value === other || isObject(value) && isObject(other) && Object.keys(value).length === Object.keys(other).length && each(value, (val, key) => val === other[key]);\n }\n function swap(value, a, b) {\n return value.replace(new RegExp(`${a}|${b}`, \"g\"), (match) => match === a ? b : a);\n }\n function last(array) {\n return array[array.length - 1];\n }\n function each(obj, cb) {\n for (const key in obj) {\n if (false === cb(obj[key], key)) {\n return false;\n }\n }\n return true;\n }\n function sortBy$1(array, prop) {\n return array.slice().sort(\n ({ [prop]: propA = 0 }, { [prop]: propB = 0 }) => propA > propB ? 1 : propB > propA ? -1 : 0\n );\n }\n function sumBy(array, iteratee) {\n return array.reduce(\n (sum, item) => sum + toFloat(isFunction(iteratee) ? iteratee(item) : item[iteratee]),\n 0\n );\n }\n function uniqueBy(array, prop) {\n const seen = /* @__PURE__ */ new Set();\n return array.filter(({ [prop]: check }) => seen.has(check) ? false : seen.add(check));\n }\n function pick(obj, props) {\n return props.reduce((res, prop) => ({ ...res, [prop]: obj[prop] }), {});\n }\n function clamp(number, min = 0, max = 1) {\n return Math.min(Math.max(toNumber(number) || 0, min), max);\n }\n function noop() {\n }\n function intersectRect(...rects) {\n return [\n [\"bottom\", \"top\"],\n [\"right\", \"left\"]\n ].every(\n ([minProp, maxProp]) => Math.min(...rects.map(({ [minProp]: min }) => min)) - Math.max(...rects.map(({ [maxProp]: max }) => max)) > 0\n );\n }\n function pointInRect(point, rect) {\n return point.x <= rect.right && point.x >= rect.left && point.y <= rect.bottom && point.y >= rect.top;\n }\n function ratio(dimensions, prop, value) {\n const aProp = prop === \"width\" ? \"height\" : \"width\";\n return {\n [aProp]: dimensions[prop] ? Math.round(value * dimensions[aProp] / dimensions[prop]) : dimensions[aProp],\n [prop]: value\n };\n }\n function contain(dimensions, maxDimensions) {\n dimensions = { ...dimensions };\n for (const prop in dimensions) {\n dimensions = dimensions[prop] > maxDimensions[prop] ? ratio(dimensions, prop, maxDimensions[prop]) : dimensions;\n }\n return dimensions;\n }\n function cover$1(dimensions, maxDimensions) {\n dimensions = contain(dimensions, maxDimensions);\n for (const prop in dimensions) {\n dimensions = dimensions[prop] < maxDimensions[prop] ? ratio(dimensions, prop, maxDimensions[prop]) : dimensions;\n }\n return dimensions;\n }\n const Dimensions = { ratio, contain, cover: cover$1 };\n function getIndex(i, elements, current = 0, finite = false) {\n elements = toNodes(elements);\n const { length } = elements;\n if (!length) {\n return -1;\n }\n i = isNumeric(i) ? toNumber(i) : i === \"next\" ? current + 1 : i === \"previous\" ? current - 1 : i === \"last\" ? length - 1 : elements.indexOf(toNode(i));\n if (finite) {\n return clamp(i, 0, length - 1);\n }\n i %= length;\n return i < 0 ? i + length : i;\n }\n function memoize(fn) {\n const cache = /* @__PURE__ */ Object.create(null);\n return (key) => cache[key] || (cache[key] = fn(key));\n }\n\n function attr(element, name, value) {\n var _a;\n if (isObject(name)) {\n for (const key in name) {\n attr(element, key, name[key]);\n }\n return;\n }\n if (isUndefined(value)) {\n return (_a = toNode(element)) == null ? void 0 : _a.getAttribute(name);\n } else {\n for (const el of toNodes(element)) {\n if (isFunction(value)) {\n value = value.call(el, attr(el, name));\n }\n if (value === null) {\n removeAttr(el, name);\n } else {\n el.setAttribute(name, value);\n }\n }\n }\n }\n function hasAttr(element, name) {\n return toNodes(element).some((element2) => element2.hasAttribute(name));\n }\n function removeAttr(element, name) {\n toNodes(element).forEach((element2) => element2.removeAttribute(name));\n }\n function data(element, attribute) {\n for (const name of [attribute, `data-${attribute}`]) {\n if (hasAttr(element, name)) {\n return attr(element, name);\n }\n }\n }\n\n function addClass(element, ...args) {\n apply$1(element, args, \"add\");\n }\n function removeClass(element, ...args) {\n apply$1(element, args, \"remove\");\n }\n function removeClasses(element, cls) {\n attr(\n element,\n \"class\",\n (value) => (value || \"\").replace(new RegExp(`\\\\b${cls}\\\\b\\\\s?`, \"g\"), \"\")\n );\n }\n function replaceClass(element, ...args) {\n args[0] && removeClass(element, args[0]);\n args[1] && addClass(element, args[1]);\n }\n function hasClass(element, cls) {\n [cls] = getClasses(cls);\n return !!cls && toNodes(element).some((node) => node.classList.contains(cls));\n }\n function toggleClass(element, cls, force) {\n const classes = getClasses(cls);\n if (!isUndefined(force)) {\n force = !!force;\n }\n for (const node of toNodes(element)) {\n for (const cls2 of classes) {\n node.classList.toggle(cls2, force);\n }\n }\n }\n function apply$1(element, args, fn) {\n args = args.reduce((args2, arg) => args2.concat(getClasses(arg)), []);\n for (const node of toNodes(element)) {\n node.classList[fn](...args);\n }\n }\n function getClasses(str) {\n return String(str).split(/[ ,]/).filter(Boolean);\n }\n\n const voidElements = {\n area: true,\n base: true,\n br: true,\n col: true,\n embed: true,\n hr: true,\n img: true,\n input: true,\n keygen: true,\n link: true,\n meta: true,\n param: true,\n source: true,\n track: true,\n wbr: true\n };\n function isVoidElement(element) {\n return toNodes(element).some((element2) => voidElements[element2.tagName.toLowerCase()]);\n }\n function isVisible(element) {\n return toNodes(element).some(\n (element2) => element2.offsetWidth || element2.offsetHeight || element2.getClientRects().length\n );\n }\n const selInput = \"input,select,textarea,button\";\n function isInput(element) {\n return toNodes(element).some((element2) => matches(element2, selInput));\n }\n const selFocusable = `${selInput},a[href],[tabindex]`;\n function isFocusable(element) {\n return matches(element, selFocusable);\n }\n function parent(element) {\n var _a;\n return (_a = toNode(element)) == null ? void 0 : _a.parentElement;\n }\n function filter(element, selector) {\n return toNodes(element).filter((element2) => matches(element2, selector));\n }\n function matches(element, selector) {\n return toNodes(element).some((element2) => element2.matches(selector));\n }\n function closest(element, selector) {\n return isElement(element) ? element.closest(startsWith(selector, \">\") ? selector.slice(1) : selector) : toNodes(element).map((element2) => closest(element2, selector)).filter(Boolean);\n }\n function within(element, selector) {\n return isString(selector) ? !!closest(element, selector) : toNode(selector).contains(toNode(element));\n }\n function parents(element, selector) {\n const elements = [];\n while (element = parent(element)) {\n if (!selector || matches(element, selector)) {\n elements.push(element);\n }\n }\n return elements;\n }\n function children(element, selector) {\n element = toNode(element);\n const children2 = element ? toArray(element.children) : [];\n return selector ? filter(children2, selector) : children2;\n }\n function index(element, ref) {\n return ref ? toNodes(element).indexOf(toNode(ref)) : children(parent(element)).indexOf(element);\n }\n function isSameSiteAnchor(el) {\n el = toNode(el);\n return el && [\"origin\", \"pathname\", \"search\"].every((part) => el[part] === location[part]);\n }\n function getTargetedElement(el) {\n if (isSameSiteAnchor(el)) {\n el = toNode(el);\n const id = decodeURIComponent(el.hash).substring(1);\n return document.getElementById(id) || document.getElementsByName(id)[0];\n }\n }\n\n function query(selector, context) {\n return find(selector, getContext(selector, context));\n }\n function queryAll(selector, context) {\n return findAll(selector, getContext(selector, context));\n }\n function find(selector, context) {\n return toNode(_query(selector, toNode(context), \"querySelector\"));\n }\n function findAll(selector, context) {\n return toNodes(_query(selector, toNode(context), \"querySelectorAll\"));\n }\n const contextSelectorRe = /(^|[^\\\\],)\\s*[!>+~-]/;\n const isContextSelector = memoize((selector) => selector.match(contextSelectorRe));\n function getContext(selector, context = document) {\n return isString(selector) && isContextSelector(selector) || isDocument(context) ? context : context.ownerDocument;\n }\n const contextSanitizeRe = /([!>+~-])(?=\\s+[!>+~-]|\\s*$)/g;\n const sanatize = memoize((selector) => selector.replace(contextSanitizeRe, \"$1 *\"));\n function _query(selector, context = document, queryFn) {\n if (!selector || !isString(selector)) {\n return selector;\n }\n selector = sanatize(selector);\n if (isContextSelector(selector)) {\n const split = splitSelector(selector);\n selector = \"\";\n for (let sel of split) {\n let ctx = context;\n if (sel[0] === \"!\") {\n const selectors = sel.substr(1).trim().split(\" \");\n ctx = closest(parent(context), selectors[0]);\n sel = selectors.slice(1).join(\" \").trim();\n if (!sel.length && split.length === 1) {\n return ctx;\n }\n }\n if (sel[0] === \"-\") {\n const selectors = sel.substr(1).trim().split(\" \");\n const prev = (ctx || context).previousElementSibling;\n ctx = matches(prev, sel.substr(1)) ? prev : null;\n sel = selectors.slice(1).join(\" \");\n }\n if (ctx) {\n selector += `${selector ? \",\" : \"\"}${domPath(ctx)} ${sel}`;\n }\n }\n context = document;\n }\n try {\n return context[queryFn](selector);\n } catch (e) {\n return null;\n }\n }\n const selectorRe = /.*?[^\\\\](?:,|$)/g;\n const splitSelector = memoize(\n (selector) => selector.match(selectorRe).map((selector2) => selector2.replace(/,$/, \"\").trim())\n );\n function domPath(element) {\n const names = [];\n while (element.parentNode) {\n const id = attr(element, \"id\");\n if (id) {\n names.unshift(`#${escape(id)}`);\n break;\n } else {\n let { tagName } = element;\n if (tagName !== \"HTML\") {\n tagName += `:nth-child(${index(element) + 1})`;\n }\n names.unshift(tagName);\n element = element.parentNode;\n }\n }\n return names.join(\" > \");\n }\n function escape(css) {\n return isString(css) ? CSS.escape(css) : \"\";\n }\n\n function on(...args) {\n let [targets, types, selector, listener, useCapture = false] = getArgs(args);\n if (listener.length > 1) {\n listener = detail(listener);\n }\n if (useCapture == null ? void 0 : useCapture.self) {\n listener = selfFilter(listener);\n }\n if (selector) {\n listener = delegate(selector, listener);\n }\n for (const type of types) {\n for (const target of targets) {\n target.addEventListener(type, listener, useCapture);\n }\n }\n return () => off(targets, types, listener, useCapture);\n }\n function off(...args) {\n let [targets, types, , listener, useCapture = false] = getArgs(args);\n for (const type of types) {\n for (const target of targets) {\n target.removeEventListener(type, listener, useCapture);\n }\n }\n }\n function once(...args) {\n const [element, types, selector, listener, useCapture = false, condition] = getArgs(args);\n const off2 = on(\n element,\n types,\n selector,\n (e) => {\n const result = !condition || condition(e);\n if (result) {\n off2();\n listener(e, result);\n }\n },\n useCapture\n );\n return off2;\n }\n function trigger(targets, event, detail2) {\n return toEventTargets(targets).every(\n (target) => target.dispatchEvent(createEvent(event, true, true, detail2))\n );\n }\n function createEvent(e, bubbles = true, cancelable = false, detail2) {\n if (isString(e)) {\n e = new CustomEvent(e, { bubbles, cancelable, detail: detail2 });\n }\n return e;\n }\n function getArgs(args) {\n args[0] = toEventTargets(args[0]);\n if (isString(args[1])) {\n args[1] = args[1].split(\" \");\n }\n if (isFunction(args[2])) {\n args.splice(2, 0, false);\n }\n return args;\n }\n function delegate(selector, listener) {\n return (e) => {\n const current = selector[0] === \">\" ? findAll(selector, e.currentTarget).reverse().filter((element) => within(e.target, element))[0] : closest(e.target, selector);\n if (current) {\n e.current = current;\n listener.call(this, e);\n delete e.current;\n }\n };\n }\n function detail(listener) {\n return (e) => isArray(e.detail) ? listener(e, ...e.detail) : listener(e);\n }\n function selfFilter(listener) {\n return function(e) {\n if (e.target === e.currentTarget || e.target === e.current) {\n return listener.call(null, e);\n }\n };\n }\n function isEventTarget(target) {\n return target && \"addEventListener\" in target;\n }\n function toEventTarget(target) {\n return isEventTarget(target) ? target : toNode(target);\n }\n function toEventTargets(target) {\n return isArray(target) ? target.map(toEventTarget).filter(Boolean) : isString(target) ? findAll(target) : isEventTarget(target) ? [target] : toNodes(target);\n }\n function isTouch(e) {\n return e.pointerType === \"touch\" || !!e.touches;\n }\n function getEventPos(e) {\n var _a, _b;\n const { clientX: x, clientY: y } = ((_a = e.touches) == null ? void 0 : _a[0]) || ((_b = e.changedTouches) == null ? void 0 : _b[0]) || e;\n return { x, y };\n }\n\n const cssNumber = {\n \"animation-iteration-count\": true,\n \"column-count\": true,\n \"fill-opacity\": true,\n \"flex-grow\": true,\n \"flex-shrink\": true,\n \"font-weight\": true,\n \"line-height\": true,\n opacity: true,\n order: true,\n orphans: true,\n \"stroke-dasharray\": true,\n \"stroke-dashoffset\": true,\n widows: true,\n \"z-index\": true,\n zoom: true\n };\n function css(element, property, value, priority) {\n const elements = toNodes(element);\n for (const element2 of elements) {\n if (isString(property)) {\n property = propName(property);\n if (isUndefined(value)) {\n return getComputedStyle(element2).getPropertyValue(property);\n } else {\n element2.style.setProperty(\n property,\n isNumeric(value) && !cssNumber[property] ? `${value}px` : value || isNumber(value) ? value : \"\",\n priority\n );\n }\n } else if (isArray(property)) {\n const props = {};\n for (const prop of property) {\n props[prop] = css(element2, prop);\n }\n return props;\n } else if (isObject(property)) {\n priority = value;\n each(property, (value2, property2) => css(element2, property2, value2, priority));\n }\n }\n return elements[0];\n }\n const propName = memoize((name) => vendorPropName(name));\n function vendorPropName(name) {\n if (startsWith(name, \"--\")) {\n return name;\n }\n name = hyphenate(name);\n const { style } = document.documentElement;\n if (name in style) {\n return name;\n }\n for (const prefix of [\"webkit\", \"moz\"]) {\n const prefixedName = `-${prefix}-${name}`;\n if (prefixedName in style) {\n return prefixedName;\n }\n }\n }\n\n function transition$1(element, props, duration = 400, timing = \"linear\") {\n duration = Math.round(duration);\n return Promise.all(\n toNodes(element).map(\n (element2) => new Promise((resolve, reject) => {\n for (const name in props) {\n const value = css(element2, name);\n if (value === \"\") {\n css(element2, name, value);\n }\n }\n const timer = setTimeout(() => trigger(element2, \"transitionend\"), duration);\n once(\n element2,\n \"transitionend transitioncanceled\",\n ({ type }) => {\n clearTimeout(timer);\n removeClass(element2, \"uk-transition\");\n css(element2, {\n transitionProperty: \"\",\n transitionDuration: \"\",\n transitionTimingFunction: \"\"\n });\n type === \"transitioncanceled\" ? reject() : resolve(element2);\n },\n { self: true }\n );\n addClass(element2, \"uk-transition\");\n css(element2, {\n transitionProperty: Object.keys(props).map(propName).join(\",\"),\n transitionDuration: `${duration}ms`,\n transitionTimingFunction: timing,\n ...props\n });\n })\n )\n );\n }\n const Transition = {\n start: transition$1,\n async stop(element) {\n trigger(element, \"transitionend\");\n await Promise.resolve();\n },\n async cancel(element) {\n trigger(element, \"transitioncanceled\");\n await Promise.resolve();\n },\n inProgress(element) {\n return hasClass(element, \"uk-transition\");\n }\n };\n const animationPrefix = \"uk-animation-\";\n function animate$2(element, animation, duration = 200, origin, out) {\n return Promise.all(\n toNodes(element).map(\n (element2) => new Promise((resolve, reject) => {\n trigger(element2, \"animationcanceled\");\n const timer = setTimeout(() => trigger(element2, \"animationend\"), duration);\n once(\n element2,\n \"animationend animationcanceled\",\n ({ type }) => {\n clearTimeout(timer);\n type === \"animationcanceled\" ? reject() : resolve(element2);\n css(element2, \"animationDuration\", \"\");\n removeClasses(element2, `${animationPrefix}\\\\S*`);\n },\n { self: true }\n );\n css(element2, \"animationDuration\", `${duration}ms`);\n addClass(element2, animation, animationPrefix + (out ? \"leave\" : \"enter\"));\n if (startsWith(animation, animationPrefix)) {\n origin && addClass(element2, `uk-transform-origin-${origin}`);\n out && addClass(element2, `${animationPrefix}reverse`);\n }\n })\n )\n );\n }\n const inProgressRe = new RegExp(`${animationPrefix}(enter|leave)`);\n const Animation = {\n in: animate$2,\n out(element, animation, duration, origin) {\n return animate$2(element, animation, duration, origin, true);\n },\n inProgress(element) {\n return inProgressRe.test(attr(element, \"class\"));\n },\n cancel(element) {\n trigger(element, \"animationcanceled\");\n }\n };\n\n function ready(fn) {\n if (document.readyState !== \"loading\") {\n fn();\n return;\n }\n once(document, \"DOMContentLoaded\", fn);\n }\n function isTag(element, ...tagNames) {\n return tagNames.some((tagName) => {\n var _a;\n return ((_a = element == null ? void 0 : element.tagName) == null ? void 0 : _a.toLowerCase()) === tagName.toLowerCase();\n });\n }\n function empty(element) {\n element = $(element);\n element.innerHTML = \"\";\n return element;\n }\n function html(parent2, html2) {\n return isUndefined(html2) ? $(parent2).innerHTML : append(empty(parent2), html2);\n }\n const prepend = applyFn(\"prepend\");\n const append = applyFn(\"append\");\n const before = applyFn(\"before\");\n const after = applyFn(\"after\");\n function applyFn(fn) {\n return function(ref, element) {\n var _a;\n const nodes = toNodes(isString(element) ? fragment(element) : element);\n (_a = $(ref)) == null ? void 0 : _a[fn](...nodes);\n return unwrapSingle(nodes);\n };\n }\n function remove$1(element) {\n toNodes(element).forEach((element2) => element2.remove());\n }\n function wrapAll(element, structure) {\n structure = toNode(before(element, structure));\n while (structure.firstChild) {\n structure = structure.firstChild;\n }\n append(structure, element);\n return structure;\n }\n function wrapInner(element, structure) {\n return toNodes(\n toNodes(element).map(\n (element2) => element2.hasChildNodes() ? wrapAll(toArray(element2.childNodes), structure) : append(element2, structure)\n )\n );\n }\n function unwrap(element) {\n toNodes(element).map(parent).filter((value, index, self) => self.indexOf(value) === index).forEach((parent2) => parent2.replaceWith(...parent2.childNodes));\n }\n const fragmentRe = /^\\s*<(\\w+|!)[^>]*>/;\n const singleTagRe = /^<(\\w+)\\s*\\/?>(?:<\\/\\1>)?$/;\n function fragment(html2) {\n const matches = singleTagRe.exec(html2);\n if (matches) {\n return document.createElement(matches[1]);\n }\n const container = document.createElement(\"div\");\n if (fragmentRe.test(html2)) {\n container.insertAdjacentHTML(\"beforeend\", html2.trim());\n } else {\n container.textContent = html2;\n }\n return unwrapSingle(container.childNodes);\n }\n function unwrapSingle(nodes) {\n return nodes.length > 1 ? nodes : nodes[0];\n }\n function apply(node, fn) {\n if (!isElement(node)) {\n return;\n }\n fn(node);\n node = node.firstElementChild;\n while (node) {\n const next = node.nextElementSibling;\n apply(node, fn);\n node = next;\n }\n }\n function $(selector, context) {\n return isHtml(selector) ? toNode(fragment(selector)) : find(selector, context);\n }\n function $$(selector, context) {\n return isHtml(selector) ? toNodes(fragment(selector)) : findAll(selector, context);\n }\n function isHtml(str) {\n return isString(str) && startsWith(str.trim(), \"<\");\n }\n\n const dirs$1 = {\n width: [\"left\", \"right\"],\n height: [\"top\", \"bottom\"]\n };\n function dimensions(element) {\n const rect = isElement(element) ? toNode(element).getBoundingClientRect() : { height: height(element), width: width(element), top: 0, left: 0 };\n return {\n height: rect.height,\n width: rect.width,\n top: rect.top,\n left: rect.left,\n bottom: rect.top + rect.height,\n right: rect.left + rect.width\n };\n }\n function offset(element, coordinates) {\n if (coordinates) {\n css(element, { left: 0, top: 0 });\n }\n const currentOffset = dimensions(element);\n if (element) {\n const { scrollY, scrollX } = toWindow(element);\n const offsetBy = { height: scrollY, width: scrollX };\n for (const dir in dirs$1) {\n for (const prop of dirs$1[dir]) {\n currentOffset[prop] += offsetBy[dir];\n }\n }\n }\n if (!coordinates) {\n return currentOffset;\n }\n for (const prop of [\"left\", \"top\"]) {\n css(element, prop, coordinates[prop] - currentOffset[prop]);\n }\n }\n function position(element) {\n let { top, left } = offset(element);\n const {\n ownerDocument: { body, documentElement },\n offsetParent\n } = toNode(element);\n let parent = offsetParent || documentElement;\n while (parent && (parent === body || parent === documentElement) && css(parent, \"position\") === \"static\") {\n parent = parent.parentNode;\n }\n if (isElement(parent)) {\n const parentOffset = offset(parent);\n top -= parentOffset.top + toFloat(css(parent, \"borderTopWidth\"));\n left -= parentOffset.left + toFloat(css(parent, \"borderLeftWidth\"));\n }\n return {\n top: top - toFloat(css(element, \"marginTop\")),\n left: left - toFloat(css(element, \"marginLeft\"))\n };\n }\n function offsetPosition(element) {\n element = toNode(element);\n const offset2 = [element.offsetTop, element.offsetLeft];\n while (element = element.offsetParent) {\n offset2[0] += element.offsetTop + toFloat(css(element, `borderTopWidth`));\n offset2[1] += element.offsetLeft + toFloat(css(element, `borderLeftWidth`));\n if (css(element, \"position\") === \"fixed\") {\n const win = toWindow(element);\n offset2[0] += win.scrollY;\n offset2[1] += win.scrollX;\n return offset2;\n }\n }\n return offset2;\n }\n const height = dimension(\"height\");\n const width = dimension(\"width\");\n function dimension(prop) {\n const propName = ucfirst(prop);\n return (element, value) => {\n if (isUndefined(value)) {\n if (isWindow(element)) {\n return element[`inner${propName}`];\n }\n if (isDocument(element)) {\n const doc = element.documentElement;\n return Math.max(doc[`offset${propName}`], doc[`scroll${propName}`]);\n }\n element = toNode(element);\n value = css(element, prop);\n value = value === \"auto\" ? element[`offset${propName}`] : toFloat(value) || 0;\n return value - boxModelAdjust(element, prop);\n } else {\n return css(\n element,\n prop,\n !value && value !== 0 ? \"\" : +value + boxModelAdjust(element, prop) + \"px\"\n );\n }\n };\n }\n function boxModelAdjust(element, prop, sizing = \"border-box\") {\n return css(element, \"boxSizing\") === sizing ? sumBy(\n dirs$1[prop].map(ucfirst),\n (prop2) => toFloat(css(element, `padding${prop2}`)) + toFloat(css(element, `border${prop2}Width`))\n ) : 0;\n }\n function flipPosition(pos) {\n for (const dir in dirs$1) {\n for (const i in dirs$1[dir]) {\n if (dirs$1[dir][i] === pos) {\n return dirs$1[dir][1 - i];\n }\n }\n }\n return pos;\n }\n function toPx(value, property = \"width\", element = window, offsetDim = false) {\n if (!isString(value)) {\n return toFloat(value);\n }\n return sumBy(parseCalc(value), (value2) => {\n const unit = parseUnit(value2);\n return unit ? percent(\n unit === \"vh\" ? getViewportHeight() : unit === \"vw\" ? width(toWindow(element)) : offsetDim ? element[`offset${ucfirst(property)}`] : dimensions(element)[property],\n value2\n ) : value2;\n });\n }\n const calcRe = /-?\\d+(?:\\.\\d+)?(?:v[wh]|%|px)?/g;\n const parseCalc = memoize((calc) => calc.toString().replace(/\\s/g, \"\").match(calcRe) || []);\n const unitRe = /(?:v[hw]|%)$/;\n const parseUnit = memoize((str) => (str.match(unitRe) || [])[0]);\n function percent(base, value) {\n return base * toFloat(value) / 100;\n }\n let vh;\n let vhEl;\n function getViewportHeight() {\n if (vh) {\n return vh;\n }\n if (!vhEl) {\n vhEl = $(\"
\");\n css(vhEl, {\n height: \"100vh\",\n position: \"fixed\"\n });\n on(window, \"resize\", () => vh = null);\n }\n append(document.body, vhEl);\n vh = vhEl.clientHeight;\n remove$1(vhEl);\n return vh;\n }\n\n const inBrowser = typeof window !== \"undefined\";\n const isRtl = inBrowser && document.dir === \"rtl\";\n const hasTouch = inBrowser && \"ontouchstart\" in window;\n const hasPointerEvents = inBrowser && window.PointerEvent;\n const pointerDown = hasPointerEvents ? \"pointerdown\" : hasTouch ? \"touchstart\" : \"mousedown\";\n const pointerMove = hasPointerEvents ? \"pointermove\" : hasTouch ? \"touchmove\" : \"mousemove\";\n const pointerUp = hasPointerEvents ? \"pointerup\" : hasTouch ? \"touchend\" : \"mouseup\";\n const pointerEnter = hasPointerEvents ? \"pointerenter\" : hasTouch ? \"\" : \"mouseenter\";\n const pointerLeave = hasPointerEvents ? \"pointerleave\" : hasTouch ? \"\" : \"mouseleave\";\n const pointerCancel = hasPointerEvents ? \"pointercancel\" : \"touchcancel\";\n\n const fastdom = {\n reads: [],\n writes: [],\n read(task) {\n this.reads.push(task);\n scheduleFlush();\n return task;\n },\n write(task) {\n this.writes.push(task);\n scheduleFlush();\n return task;\n },\n clear(task) {\n remove(this.reads, task);\n remove(this.writes, task);\n },\n flush\n };\n function flush(recursion) {\n runTasks(fastdom.reads);\n runTasks(fastdom.writes.splice(0));\n fastdom.scheduled = false;\n if (fastdom.reads.length || fastdom.writes.length) {\n scheduleFlush(recursion + 1);\n }\n }\n const RECURSION_LIMIT = 4;\n function scheduleFlush(recursion) {\n if (fastdom.scheduled) {\n return;\n }\n fastdom.scheduled = true;\n if (recursion && recursion < RECURSION_LIMIT) {\n Promise.resolve().then(() => flush(recursion));\n } else {\n requestAnimationFrame(() => flush(1));\n }\n }\n function runTasks(tasks) {\n let task;\n while (task = tasks.shift()) {\n try {\n task();\n } catch (e) {\n console.error(e);\n }\n }\n }\n function remove(array, item) {\n const index = array.indexOf(item);\n return ~index && array.splice(index, 1);\n }\n\n function MouseTracker() {\n }\n MouseTracker.prototype = {\n positions: [],\n init() {\n this.positions = [];\n let position;\n this.unbind = on(document, \"mousemove\", (e) => position = getEventPos(e));\n this.interval = setInterval(() => {\n if (!position) {\n return;\n }\n this.positions.push(position);\n if (this.positions.length > 5) {\n this.positions.shift();\n }\n }, 50);\n },\n cancel() {\n var _a;\n (_a = this.unbind) == null ? void 0 : _a.call(this);\n clearInterval(this.interval);\n },\n movesTo(target) {\n if (this.positions.length < 2) {\n return false;\n }\n const p = target.getBoundingClientRect();\n const { left, right, top, bottom } = p;\n const [prevPosition] = this.positions;\n const position = last(this.positions);\n const path = [prevPosition, position];\n if (pointInRect(position, p)) {\n return false;\n }\n const diagonals = [\n [\n { x: left, y: top },\n { x: right, y: bottom }\n ],\n [\n { x: left, y: bottom },\n { x: right, y: top }\n ]\n ];\n return diagonals.some((diagonal) => {\n const intersection = intersect(path, diagonal);\n return intersection && pointInRect(intersection, p);\n });\n }\n };\n function intersect([{ x: x1, y: y1 }, { x: x2, y: y2 }], [{ x: x3, y: y3 }, { x: x4, y: y4 }]) {\n const denominator = (y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1);\n if (denominator === 0) {\n return false;\n }\n const ua = ((x4 - x3) * (y1 - y3) - (y4 - y3) * (x1 - x3)) / denominator;\n if (ua < 0) {\n return false;\n }\n return { x: x1 + ua * (x2 - x1), y: y1 + ua * (y2 - y1) };\n }\n\n function observeIntersection(targets, cb, options = {}, { intersecting = true } = {}) {\n const observer = new IntersectionObserver(\n intersecting ? (entries, observer2) => {\n if (entries.some((entry) => entry.isIntersecting)) {\n cb(entries, observer2);\n }\n } : cb,\n options\n );\n for (const el of toNodes(targets)) {\n observer.observe(el);\n }\n return observer;\n }\n const hasResizeObserver = inBrowser && window.ResizeObserver;\n function observeResize(targets, cb, options = { box: \"border-box\" }) {\n if (hasResizeObserver) {\n return observe$1(ResizeObserver, targets, cb, options);\n }\n const off = [on(window, \"load resize\", cb), on(document, \"loadedmetadata load\", cb, true)];\n return { disconnect: () => off.map((cb2) => cb2()) };\n }\n function observeViewportResize(cb) {\n return { disconnect: on([window, window.visualViewport], \"resize\", cb) };\n }\n function observeMutation(targets, cb, options) {\n return observe$1(MutationObserver, targets, cb, options);\n }\n function observe$1(Observer, targets, cb, options) {\n const observer = new Observer(cb);\n for (const el of toNodes(targets)) {\n observer.observe(el, options);\n }\n return observer;\n }\n\n function play(el) {\n if (isIFrame(el)) {\n call(el, { func: \"playVideo\", method: \"play\" });\n }\n if (isHTML5(el)) {\n try {\n el.play().catch(noop);\n } catch (e) {\n }\n }\n }\n function pause(el) {\n if (isIFrame(el)) {\n call(el, { func: \"pauseVideo\", method: \"pause\" });\n }\n if (isHTML5(el)) {\n el.pause();\n }\n }\n function mute(el) {\n if (isIFrame(el)) {\n call(el, { func: \"mute\", method: \"setVolume\", value: 0 });\n }\n if (isHTML5(el)) {\n el.muted = true;\n }\n }\n function isVideo(el) {\n return isHTML5(el) || isIFrame(el);\n }\n function isHTML5(el) {\n return isTag(el, \"video\");\n }\n function isIFrame(el) {\n return isTag(el, \"iframe\") && (isYoutube(el) || isVimeo(el));\n }\n function isYoutube(el) {\n return !!el.src.match(\n /\\/\\/.*?youtube(-nocookie)?\\.[a-z]+\\/(watch\\?v=[^&\\s]+|embed)|youtu\\.be\\/.*/\n );\n }\n function isVimeo(el) {\n return !!el.src.match(/vimeo\\.com\\/video\\/.*/);\n }\n async function call(el, cmd) {\n await enableApi(el);\n post(el, cmd);\n }\n function post(el, cmd) {\n try {\n el.contentWindow.postMessage(JSON.stringify({ event: \"command\", ...cmd }), \"*\");\n } catch (e) {\n }\n }\n const stateKey = \"_ukPlayer\";\n let counter = 0;\n function enableApi(el) {\n if (el[stateKey]) {\n return el[stateKey];\n }\n const youtube = isYoutube(el);\n const vimeo = isVimeo(el);\n const id = ++counter;\n let poller;\n return el[stateKey] = new Promise((resolve) => {\n youtube && once(el, \"load\", () => {\n const listener = () => post(el, { event: \"listening\", id });\n poller = setInterval(listener, 100);\n listener();\n });\n once(window, \"message\", resolve, false, ({ data }) => {\n try {\n data = JSON.parse(data);\n return youtube && (data == null ? void 0 : data.id) === id && data.event === \"onReady\" || vimeo && Number(data == null ? void 0 : data.player_id) === id;\n } catch (e) {\n }\n });\n el.src = `${el.src}${includes(el.src, \"?\") ? \"&\" : \"?\"}${youtube ? \"enablejsapi=1\" : `api=1&player_id=${id}`}`;\n }).then(() => clearInterval(poller));\n }\n\n function isInView(element, offsetTop = 0, offsetLeft = 0) {\n if (!isVisible(element)) {\n return false;\n }\n return intersectRect(\n ...overflowParents(element).map((parent) => {\n const { top, left, bottom, right } = offsetViewport(parent);\n return {\n top: top - offsetTop,\n left: left - offsetLeft,\n bottom: bottom + offsetTop,\n right: right + offsetLeft\n };\n }).concat(offset(element))\n );\n }\n function scrollIntoView(element, { offset: offsetBy = 0 } = {}) {\n const parents2 = isVisible(element) ? scrollParents(element, false, [\"hidden\"]) : [];\n return parents2.reduce(\n (fn, scrollElement, i) => {\n const { scrollTop, scrollHeight, offsetHeight } = scrollElement;\n const viewport = offsetViewport(scrollElement);\n const maxScroll = scrollHeight - viewport.height;\n const { height: elHeight, top: elTop } = parents2[i - 1] ? offsetViewport(parents2[i - 1]) : offset(element);\n let top = Math.ceil(elTop - viewport.top - offsetBy + scrollTop);\n if (offsetBy > 0 && offsetHeight < elHeight + offsetBy) {\n top += offsetBy;\n } else {\n offsetBy = 0;\n }\n if (top > maxScroll) {\n offsetBy -= top - maxScroll;\n top = maxScroll;\n } else if (top < 0) {\n offsetBy -= top;\n top = 0;\n }\n return () => scrollTo(scrollElement, top - scrollTop).then(fn);\n },\n () => Promise.resolve()\n )();\n function scrollTo(element2, top) {\n return new Promise((resolve) => {\n const scroll = element2.scrollTop;\n const duration = getDuration(Math.abs(top));\n const start = Date.now();\n (function step() {\n const percent = ease(clamp((Date.now() - start) / duration));\n element2.scrollTop = scroll + top * percent;\n if (percent === 1) {\n resolve();\n } else {\n requestAnimationFrame(step);\n }\n })();\n });\n }\n function getDuration(dist) {\n return 40 * Math.pow(dist, 0.375);\n }\n function ease(k) {\n return 0.5 * (1 - Math.cos(Math.PI * k));\n }\n }\n function scrolledOver(element, startOffset = 0, endOffset = 0) {\n if (!isVisible(element)) {\n return 0;\n }\n const scrollElement = scrollParent(element, true);\n const { scrollHeight, scrollTop } = scrollElement;\n const { height: viewportHeight } = offsetViewport(scrollElement);\n const maxScroll = scrollHeight - viewportHeight;\n const elementOffsetTop = offsetPosition(element)[0] - offsetPosition(scrollElement)[0];\n const start = Math.max(0, elementOffsetTop - viewportHeight + startOffset);\n const end = Math.min(maxScroll, elementOffsetTop + element.offsetHeight - endOffset);\n return clamp((scrollTop - start) / (end - start));\n }\n function scrollParents(element, scrollable = false, props = []) {\n const scrollEl = scrollingElement(element);\n let ancestors = parents(element).reverse();\n ancestors = ancestors.slice(ancestors.indexOf(scrollEl) + 1);\n const fixedIndex = findIndex(ancestors, (el) => css(el, \"position\") === \"fixed\");\n if (~fixedIndex) {\n ancestors = ancestors.slice(fixedIndex);\n }\n return [scrollEl].concat(\n ancestors.filter(\n (parent) => css(parent, \"overflow\").split(\" \").some((prop) => includes([\"auto\", \"scroll\", ...props], prop)) && (!scrollable || parent.scrollHeight > offsetViewport(parent).height)\n )\n ).reverse();\n }\n function scrollParent(...args) {\n return scrollParents(...args)[0];\n }\n function overflowParents(element) {\n return scrollParents(element, false, [\"hidden\", \"clip\"]);\n }\n function offsetViewport(scrollElement) {\n const window = toWindow(scrollElement);\n const {\n visualViewport,\n document: { documentElement }\n } = window;\n let viewportElement = scrollElement === scrollingElement(scrollElement) ? window : scrollElement;\n if (isWindow(viewportElement) && visualViewport) {\n let { height, width, scale, pageTop: top, pageLeft: left } = visualViewport;\n height = Math.round(height * scale);\n width = Math.round(width * scale);\n return { height, width, top, left, bottom: top + height, right: left + width };\n }\n let rect = offset(viewportElement);\n if (css(viewportElement, \"display\") === \"inline\") {\n return rect;\n }\n for (let [prop, dir, start, end] of [\n [\"width\", \"x\", \"left\", \"right\"],\n [\"height\", \"y\", \"top\", \"bottom\"]\n ]) {\n if (isWindow(viewportElement)) {\n viewportElement = documentElement;\n } else {\n rect[start] += toFloat(css(viewportElement, `border-${start}-width`));\n }\n const subpixel = rect[prop] % 1;\n rect[prop] = rect[dir] = viewportElement[`client${ucfirst(prop)}`] - (subpixel ? subpixel < 0.5 ? -subpixel : 1 - subpixel : 0);\n rect[end] = rect[prop] + rect[start];\n }\n return rect;\n }\n function scrollingElement(element) {\n return toWindow(element).document.scrollingElement;\n }\n\n const dirs = [\n [\"width\", \"x\", \"left\", \"right\"],\n [\"height\", \"y\", \"top\", \"bottom\"]\n ];\n function positionAt(element, target, options) {\n options = {\n attach: {\n element: [\"left\", \"top\"],\n target: [\"left\", \"top\"],\n ...options.attach\n },\n offset: [0, 0],\n placement: [],\n ...options\n };\n if (!isArray(target)) {\n target = [target, target];\n }\n offset(element, getPosition(element, target, options));\n }\n function getPosition(element, target, options) {\n const position = attachTo(element, target, options);\n const { boundary, viewportOffset = 0, placement } = options;\n let offsetPosition = position;\n for (const [i, [prop, , start, end]] of Object.entries(dirs)) {\n const viewport = getViewport$2(element, target[i], viewportOffset, boundary, i);\n if (isWithin(position, viewport, i)) {\n continue;\n }\n let offsetBy = 0;\n if (placement[i] === \"flip\") {\n const attach = options.attach.target[i];\n if (attach === end && position[end] <= viewport[end] || attach === start && position[start] >= viewport[start]) {\n continue;\n }\n offsetBy = flip(element, target, options, i)[start] - position[start];\n const scrollArea = getScrollArea(element, target[i], viewportOffset, i);\n if (!isWithin(applyOffset(position, offsetBy, i), scrollArea, i)) {\n if (isWithin(position, scrollArea, i)) {\n continue;\n }\n if (options.recursion) {\n return false;\n }\n const newPos = flipAxis(element, target, options);\n if (newPos && isWithin(newPos, scrollArea, 1 - i)) {\n return newPos;\n }\n continue;\n }\n } else if (placement[i] === \"shift\") {\n const targetDim = offset(target[i]);\n const { offset: elOffset } = options;\n offsetBy = clamp(\n clamp(position[start], viewport[start], viewport[end] - position[prop]),\n targetDim[start] - position[prop] + elOffset[i],\n targetDim[end] - elOffset[i]\n ) - position[start];\n }\n offsetPosition = applyOffset(offsetPosition, offsetBy, i);\n }\n return offsetPosition;\n }\n function attachTo(element, target, options) {\n let { attach, offset: offsetBy } = {\n attach: {\n element: [\"left\", \"top\"],\n target: [\"left\", \"top\"],\n ...options.attach\n },\n offset: [0, 0],\n ...options\n };\n let elOffset = offset(element);\n for (const [i, [prop, , start, end]] of Object.entries(dirs)) {\n const targetOffset = attach.target[i] === attach.element[i] ? offsetViewport(target[i]) : offset(target[i]);\n elOffset = applyOffset(\n elOffset,\n targetOffset[start] - elOffset[start] + moveBy(attach.target[i], end, targetOffset[prop]) - moveBy(attach.element[i], end, elOffset[prop]) + +offsetBy[i],\n i\n );\n }\n return elOffset;\n }\n function applyOffset(position, offset2, i) {\n const [, dir, start, end] = dirs[i];\n const newPos = { ...position };\n newPos[start] = position[dir] = position[start] + offset2;\n newPos[end] += offset2;\n return newPos;\n }\n function moveBy(attach, end, dim) {\n return attach === \"center\" ? dim / 2 : attach === end ? dim : 0;\n }\n function getViewport$2(element, target, viewportOffset, boundary, i) {\n let viewport = getIntersectionArea(...commonScrollParents(element, target).map(offsetViewport));\n if (viewportOffset) {\n viewport[dirs[i][2]] += viewportOffset;\n viewport[dirs[i][3]] -= viewportOffset;\n }\n if (boundary) {\n viewport = getIntersectionArea(\n viewport,\n offset(isArray(boundary) ? boundary[i] : boundary)\n );\n }\n return viewport;\n }\n function getScrollArea(element, target, viewportOffset, i) {\n const [prop, axis, start, end] = dirs[i];\n const [scrollElement] = commonScrollParents(element, target);\n const viewport = offsetViewport(scrollElement);\n if ([\"auto\", \"scroll\"].includes(css(scrollElement, `overflow-${axis}`))) {\n viewport[start] -= scrollElement[`scroll${ucfirst(start)}`];\n viewport[end] = viewport[start] + scrollElement[`scroll${ucfirst(prop)}`];\n }\n viewport[start] += viewportOffset;\n viewport[end] -= viewportOffset;\n return viewport;\n }\n function commonScrollParents(element, target) {\n return overflowParents(target).filter((parent) => within(element, parent));\n }\n function getIntersectionArea(...rects) {\n let area = {};\n for (const rect of rects) {\n for (const [, , start, end] of dirs) {\n area[start] = Math.max(area[start] || 0, rect[start]);\n area[end] = Math.min(...[area[end], rect[end]].filter(Boolean));\n }\n }\n return area;\n }\n function isWithin(positionA, positionB, i) {\n const [, , start, end] = dirs[i];\n return positionA[start] >= positionB[start] && positionA[end] <= positionB[end];\n }\n function flip(element, target, { offset: offset2, attach }, i) {\n return attachTo(element, target, {\n attach: {\n element: flipAttach(attach.element, i),\n target: flipAttach(attach.target, i)\n },\n offset: flipOffset(offset2, i)\n });\n }\n function flipAxis(element, target, options) {\n return getPosition(element, target, {\n ...options,\n attach: {\n element: options.attach.element.map(flipAttachAxis).reverse(),\n target: options.attach.target.map(flipAttachAxis).reverse()\n },\n offset: options.offset.reverse(),\n placement: options.placement.reverse(),\n recursion: true\n });\n }\n function flipAttach(attach, i) {\n const newAttach = [...attach];\n const index = dirs[i].indexOf(attach[i]);\n if (~index) {\n newAttach[i] = dirs[i][1 - index % 2 + 2];\n }\n return newAttach;\n }\n function flipAttachAxis(prop) {\n for (let i = 0; i < dirs.length; i++) {\n const index = dirs[i].indexOf(prop);\n if (~index) {\n return dirs[1 - i][index % 2 + 2];\n }\n }\n }\n function flipOffset(offset2, i) {\n offset2 = [...offset2];\n offset2[i] *= -1;\n return offset2;\n }\n\n var util = /*#__PURE__*/Object.freeze({\n __proto__: null,\n $: $,\n $$: $$,\n Animation: Animation,\n Dimensions: Dimensions,\n MouseTracker: MouseTracker,\n Transition: Transition,\n addClass: addClass,\n after: after,\n append: append,\n apply: apply,\n assign: assign,\n attr: attr,\n before: before,\n boxModelAdjust: boxModelAdjust,\n camelize: camelize,\n children: children,\n clamp: clamp,\n closest: closest,\n createEvent: createEvent,\n css: css,\n data: data,\n dimensions: dimensions,\n each: each,\n empty: empty,\n endsWith: endsWith,\n escape: escape,\n fastdom: fastdom,\n filter: filter,\n find: find,\n findAll: findAll,\n findIndex: findIndex,\n flipPosition: flipPosition,\n fragment: fragment,\n getEventPos: getEventPos,\n getIndex: getIndex,\n getTargetedElement: getTargetedElement,\n hasAttr: hasAttr,\n hasClass: hasClass,\n hasOwn: hasOwn,\n hasTouch: hasTouch,\n height: height,\n html: html,\n hyphenate: hyphenate,\n inBrowser: inBrowser,\n includes: includes,\n index: index,\n intersectRect: intersectRect,\n isArray: isArray,\n isBoolean: isBoolean,\n isDocument: isDocument,\n isElement: isElement,\n isEmpty: isEmpty,\n isEqual: isEqual,\n isFocusable: isFocusable,\n isFunction: isFunction,\n isInView: isInView,\n isInput: isInput,\n isNode: isNode,\n isNumber: isNumber,\n isNumeric: isNumeric,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isRtl: isRtl,\n isSameSiteAnchor: isSameSiteAnchor,\n isString: isString,\n isTag: isTag,\n isTouch: isTouch,\n isUndefined: isUndefined,\n isVideo: isVideo,\n isVisible: isVisible,\n isVoidElement: isVoidElement,\n isWindow: isWindow,\n last: last,\n matches: matches,\n memoize: memoize,\n mute: mute,\n noop: noop,\n observeIntersection: observeIntersection,\n observeMutation: observeMutation,\n observeResize: observeResize,\n observeViewportResize: observeViewportResize,\n off: off,\n offset: offset,\n offsetPosition: offsetPosition,\n offsetViewport: offsetViewport,\n on: on,\n once: once,\n overflowParents: overflowParents,\n parent: parent,\n parents: parents,\n pause: pause,\n pick: pick,\n play: play,\n pointInRect: pointInRect,\n pointerCancel: pointerCancel,\n pointerDown: pointerDown,\n pointerEnter: pointerEnter,\n pointerLeave: pointerLeave,\n pointerMove: pointerMove,\n pointerUp: pointerUp,\n position: position,\n positionAt: positionAt,\n prepend: prepend,\n propName: propName,\n query: query,\n queryAll: queryAll,\n ready: ready,\n remove: remove$1,\n removeAttr: removeAttr,\n removeClass: removeClass,\n removeClasses: removeClasses,\n replaceClass: replaceClass,\n scrollIntoView: scrollIntoView,\n scrollParent: scrollParent,\n scrollParents: scrollParents,\n scrolledOver: scrolledOver,\n selFocusable: selFocusable,\n selInput: selInput,\n sortBy: sortBy$1,\n startsWith: startsWith,\n sumBy: sumBy,\n swap: swap,\n toArray: toArray,\n toBoolean: toBoolean,\n toEventTargets: toEventTargets,\n toFloat: toFloat,\n toNode: toNode,\n toNodes: toNodes,\n toNumber: toNumber,\n toPx: toPx,\n toWindow: toWindow,\n toggleClass: toggleClass,\n trigger: trigger,\n ucfirst: ucfirst,\n uniqueBy: uniqueBy,\n unwrap: unwrap,\n width: width,\n within: within,\n wrapAll: wrapAll,\n wrapInner: wrapInner\n });\n\n function initUpdates(instance) {\n instance._data = {};\n instance._updates = [...instance.$options.update || []];\n }\n function prependUpdate(instance, update) {\n instance._updates.unshift(update);\n }\n function clearUpdateData(instance) {\n delete instance._data;\n }\n function callUpdate(instance, e = \"update\") {\n if (!instance._connected) {\n return;\n }\n if (!instance._updates.length) {\n return;\n }\n if (!instance._queued) {\n instance._queued = /* @__PURE__ */ new Set();\n fastdom.read(() => {\n if (instance._connected) {\n runUpdates(instance, instance._queued);\n }\n delete instance._queued;\n });\n }\n instance._queued.add(e.type || e);\n }\n function runUpdates(instance, types) {\n for (const { read, write, events = [] } of instance._updates) {\n if (!types.has(\"update\") && !events.some((type) => types.has(type))) {\n continue;\n }\n let result;\n if (read) {\n result = read.call(instance, instance._data, types);\n if (result && isPlainObject(result)) {\n assign(instance._data, result);\n }\n }\n if (write && result !== false) {\n fastdom.write(() => {\n if (instance._connected) {\n write.call(instance, instance._data, types);\n }\n });\n }\n }\n }\n\n function initWatches(instance) {\n instance._watches = [];\n for (const watches of instance.$options.watch || []) {\n for (const [name, watch] of Object.entries(watches)) {\n registerWatch(instance, watch, name);\n }\n }\n instance._initial = true;\n }\n function registerWatch(instance, watch, name) {\n instance._watches.push({\n name,\n ...isPlainObject(watch) ? watch : { handler: watch }\n });\n }\n function runWatches(instance, values) {\n for (const { name, handler, immediate = true } of instance._watches) {\n if (instance._initial && immediate || hasOwn(values, name) && !isEqual(values[name], instance[name])) {\n handler.call(instance, instance[name], values[name]);\n }\n }\n instance._initial = false;\n }\n\n function initComputed(instance) {\n const { computed } = instance.$options;\n instance._computed = {};\n if (computed) {\n for (const key in computed) {\n registerComputed(instance, key, computed[key]);\n }\n }\n }\n function registerComputed(instance, key, cb) {\n instance._hasComputed = true;\n Object.defineProperty(instance, key, {\n enumerable: true,\n get() {\n const { _computed, $props, $el } = instance;\n if (!hasOwn(_computed, key)) {\n _computed[key] = (cb.get || cb).call(instance, $props, $el);\n }\n return _computed[key];\n },\n set(value) {\n const { _computed } = instance;\n _computed[key] = cb.set ? cb.set.call(instance, value) : value;\n if (isUndefined(_computed[key])) {\n delete _computed[key];\n }\n }\n });\n }\n function initComputedUpdates(instance) {\n if (!instance._hasComputed) {\n return;\n }\n prependUpdate(instance, {\n read: () => runWatches(instance, resetComputed(instance)),\n events: [\"resize\", \"computed\"]\n });\n registerComputedObserver();\n instances$1.add(instance);\n }\n function disconnectComputedUpdates(instance) {\n instances$1 == null ? void 0 : instances$1.delete(instance);\n resetComputed(instance);\n }\n function resetComputed(instance) {\n const values = { ...instance._computed };\n instance._computed = {};\n return values;\n }\n let observer;\n let instances$1;\n function registerComputedObserver() {\n if (observer) {\n return;\n }\n instances$1 = /* @__PURE__ */ new Set();\n observer = new MutationObserver(() => {\n for (const instance of instances$1) {\n callUpdate(instance, \"computed\");\n }\n });\n observer.observe(document, {\n childList: true,\n subtree: true\n });\n }\n\n function initEvents(instance) {\n instance._events = [];\n for (const event of instance.$options.events || []) {\n if (hasOwn(event, \"handler\")) {\n registerEvent(instance, event);\n } else {\n for (const key in event) {\n registerEvent(instance, event[key], key);\n }\n }\n }\n }\n function unbindEvents(instance) {\n instance._events.forEach((unbind) => unbind());\n delete instance._events;\n }\n function registerEvent(instance, event, key) {\n let { name, el, handler, capture, passive, delegate, filter, self } = isPlainObject(event) ? event : { name: key, handler: event };\n el = isFunction(el) ? el.call(instance, instance) : el || instance.$el;\n if (isArray(el)) {\n el.forEach((el2) => registerEvent(instance, { ...event, el: el2 }, key));\n return;\n }\n if (!el || filter && !filter.call(instance)) {\n return;\n }\n instance._events.push(\n on(\n el,\n name,\n delegate ? isString(delegate) ? delegate : delegate.call(instance, instance) : null,\n isString(handler) ? instance[handler] : handler.bind(instance),\n { passive, capture, self }\n )\n );\n }\n\n function initObservers(instance) {\n instance._observers = [];\n for (const observer of instance.$options.observe || []) {\n if (hasOwn(observer, \"handler\")) {\n registerObservable(instance, observer);\n } else {\n for (const observable of observer) {\n registerObservable(instance, observable);\n }\n }\n }\n }\n function registerObserver(instance, ...observer) {\n instance._observers.push(...observer);\n }\n function disconnectObservers(instance) {\n for (const observer of instance._observers) {\n observer.disconnect();\n }\n }\n function registerObservable(instance, observable) {\n let { observe, target = instance.$el, handler, options, filter, args } = observable;\n if (filter && !filter.call(instance, instance)) {\n return;\n }\n const key = `_observe${instance._observers.length}`;\n if (isFunction(target) && !hasOwn(instance, key)) {\n registerComputed(instance, key, () => target.call(instance, instance));\n }\n handler = isString(handler) ? instance[handler] : handler.bind(instance);\n if (isFunction(options)) {\n options = options.call(instance, instance);\n }\n const targets = hasOwn(instance, key) ? instance[key] : target;\n const observer = observe(targets, handler, options, args);\n if (isFunction(target) && isArray(instance[key]) && observer.unobserve) {\n registerWatch(instance, { handler: updateTargets(observer), immediate: false }, key);\n }\n registerObserver(instance, observer);\n }\n function updateTargets(observer) {\n return (targets, prev) => {\n for (const target of prev) {\n !includes(targets, target) && observer.unobserve(target);\n }\n for (const target of targets) {\n !includes(prev, target) && observer.observe(target);\n }\n };\n }\n\n const strats = {};\n strats.events = strats.watch = strats.observe = strats.created = strats.beforeConnect = strats.connected = strats.beforeDisconnect = strats.disconnected = strats.destroy = concatStrat;\n strats.args = function(parentVal, childVal) {\n return childVal !== false && concatStrat(childVal || parentVal);\n };\n strats.update = function(parentVal, childVal) {\n return sortBy$1(\n concatStrat(parentVal, isFunction(childVal) ? { read: childVal } : childVal),\n \"order\"\n );\n };\n strats.props = function(parentVal, childVal) {\n if (isArray(childVal)) {\n const value = {};\n for (const key of childVal) {\n value[key] = String;\n }\n childVal = value;\n }\n return strats.methods(parentVal, childVal);\n };\n strats.computed = strats.methods = function(parentVal, childVal) {\n return childVal ? parentVal ? { ...parentVal, ...childVal } : childVal : parentVal;\n };\n strats.i18n = strats.data = function(parentVal, childVal, vm) {\n if (!vm) {\n if (!childVal) {\n return parentVal;\n }\n if (!parentVal) {\n return childVal;\n }\n return function(vm2) {\n return mergeFnData(parentVal, childVal, vm2);\n };\n }\n return mergeFnData(parentVal, childVal, vm);\n };\n function mergeFnData(parentVal, childVal, vm) {\n return strats.computed(\n isFunction(parentVal) ? parentVal.call(vm, vm) : parentVal,\n isFunction(childVal) ? childVal.call(vm, vm) : childVal\n );\n }\n function concatStrat(parentVal, childVal) {\n parentVal = parentVal && !isArray(parentVal) ? [parentVal] : parentVal;\n return childVal ? parentVal ? parentVal.concat(childVal) : isArray(childVal) ? childVal : [childVal] : parentVal;\n }\n function defaultStrat(parentVal, childVal) {\n return isUndefined(childVal) ? parentVal : childVal;\n }\n function mergeOptions(parent, child, vm) {\n const options = {};\n if (isFunction(child)) {\n child = child.options;\n }\n if (child.extends) {\n parent = mergeOptions(parent, child.extends, vm);\n }\n if (child.mixins) {\n for (const mixin of child.mixins) {\n parent = mergeOptions(parent, mixin, vm);\n }\n }\n for (const key in parent) {\n mergeKey(key);\n }\n for (const key in child) {\n if (!hasOwn(parent, key)) {\n mergeKey(key);\n }\n }\n function mergeKey(key) {\n options[key] = (strats[key] || defaultStrat)(parent[key], child[key], vm);\n }\n return options;\n }\n function parseOptions(options, args = []) {\n try {\n return options ? startsWith(options, \"{\") ? JSON.parse(options) : args.length && !includes(options, \":\") ? { [args[0]]: options } : options.split(\";\").reduce((options2, option) => {\n const [key, value] = option.split(/:(.*)/);\n if (key && !isUndefined(value)) {\n options2[key.trim()] = value.trim();\n }\n return options2;\n }, {}) : {};\n } catch (e) {\n return {};\n }\n }\n function coerce$1(type, value) {\n if (type === Boolean) {\n return toBoolean(value);\n } else if (type === Number) {\n return toNumber(value);\n } else if (type === \"list\") {\n return toList(value);\n } else if (type === Object && isString(value)) {\n return parseOptions(value);\n }\n return type ? type(value) : value;\n }\n function toList(value) {\n return isArray(value) ? value : isString(value) ? value.split(/,(?![^(]*\\))/).map((value2) => isNumeric(value2) ? toNumber(value2) : toBoolean(value2.trim())) : [value];\n }\n\n function initProps(instance) {\n const props = getProps(instance.$options);\n for (let key in props) {\n if (!isUndefined(props[key])) {\n instance.$props[key] = props[key];\n }\n }\n const exclude = [instance.$options.computed, instance.$options.methods];\n for (let key in instance.$props) {\n if (key in props && notIn(exclude, key)) {\n instance[key] = instance.$props[key];\n }\n }\n }\n function getProps(opts) {\n const data$1 = {};\n const { args = [], props = {}, el, id } = opts;\n if (!props) {\n return data$1;\n }\n for (const key in props) {\n const prop = hyphenate(key);\n let value = data(el, prop);\n if (isUndefined(value)) {\n continue;\n }\n value = props[key] === Boolean && value === \"\" ? true : coerce$1(props[key], value);\n if (prop === \"target\" && startsWith(value, \"_\")) {\n continue;\n }\n data$1[key] = value;\n }\n const options = parseOptions(data(el, id), args);\n for (const key in options) {\n const prop = camelize(key);\n if (!isUndefined(props[prop])) {\n data$1[prop] = coerce$1(props[prop], options[key]);\n }\n }\n return data$1;\n }\n function notIn(options, key) {\n return options.every((arr) => !arr || !hasOwn(arr, key));\n }\n function initPropsObserver(instance) {\n const { $options, $props } = instance;\n const { id, props, el } = $options;\n if (!props) {\n return;\n }\n const attributes = Object.keys(props);\n const filter = attributes.map((key) => hyphenate(key)).concat(id);\n const observer = new MutationObserver((records) => {\n const data = getProps($options);\n if (records.some(({ attributeName }) => {\n const prop = attributeName.replace(\"data-\", \"\");\n return (prop === id ? attributes : [camelize(prop), camelize(attributeName)]).some(\n (prop2) => !isUndefined(data[prop2]) && data[prop2] !== $props[prop2]\n );\n })) {\n instance.$reset();\n }\n });\n observer.observe(el, {\n attributes: true,\n attributeFilter: filter.concat(filter.map((key) => `data-${key}`))\n });\n registerObserver(instance, observer);\n }\n\n function callHook(instance, hook) {\n var _a;\n (_a = instance.$options[hook]) == null ? void 0 : _a.forEach((handler) => handler.call(instance));\n }\n function callConnected(instance) {\n if (instance._connected) {\n return;\n }\n initProps(instance);\n callHook(instance, \"beforeConnect\");\n instance._connected = true;\n initEvents(instance);\n initUpdates(instance);\n initWatches(instance);\n initObservers(instance);\n initPropsObserver(instance);\n initComputedUpdates(instance);\n callHook(instance, \"connected\");\n callUpdate(instance);\n }\n function callDisconnected(instance) {\n if (!instance._connected) {\n return;\n }\n callHook(instance, \"beforeDisconnect\");\n unbindEvents(instance);\n clearUpdateData(instance);\n disconnectObservers(instance);\n disconnectComputedUpdates(instance);\n callHook(instance, \"disconnected\");\n instance._connected = false;\n }\n\n let uid = 0;\n function init$1(instance, options = {}) {\n options.data = normalizeData(options, instance.constructor.options);\n instance.$options = mergeOptions(instance.constructor.options, options, instance);\n instance.$props = {};\n instance._uid = uid++;\n initData(instance);\n initMethods(instance);\n initComputed(instance);\n callHook(instance, \"created\");\n if (options.el) {\n instance.$mount(options.el);\n }\n }\n function initData(instance) {\n const { data = {} } = instance.$options;\n for (const key in data) {\n instance.$props[key] = instance[key] = data[key];\n }\n }\n function initMethods(instance) {\n const { methods } = instance.$options;\n if (methods) {\n for (const key in methods) {\n instance[key] = methods[key].bind(instance);\n }\n }\n }\n function normalizeData({ data = {} }, { args = [], props = {} }) {\n if (isArray(data)) {\n data = data.slice(0, args.length).reduce((data2, value, index) => {\n if (isPlainObject(value)) {\n assign(data2, value);\n } else {\n data2[args[index]] = value;\n }\n return data2;\n }, {});\n }\n for (const key in data) {\n if (isUndefined(data[key])) {\n delete data[key];\n } else if (props[key]) {\n data[key] = coerce$1(props[key], data[key]);\n }\n }\n return data;\n }\n\n const App = function(options) {\n init$1(this, options);\n };\n App.util = util;\n App.options = {};\n App.version = \"3.16.26\";\n\n const PREFIX = \"uk-\";\n const DATA = \"__uikit__\";\n const components$1 = {};\n function component(name, options) {\n var _a;\n const id = PREFIX + hyphenate(name);\n if (!options) {\n if (isPlainObject(components$1[id])) {\n components$1[id] = App.extend(components$1[id]);\n }\n return components$1[id];\n }\n name = camelize(name);\n App[name] = (element, data) => createComponent(name, element, data);\n const opt = isPlainObject(options) ? { ...options } : options.options;\n opt.id = id;\n opt.name = name;\n (_a = opt.install) == null ? void 0 : _a.call(opt, App, opt, name);\n if (App._initialized && !opt.functional) {\n requestAnimationFrame(() => createComponent(name, `[${id}],[data-${id}]`));\n }\n return components$1[id] = opt;\n }\n function createComponent(name, element, data, ...args) {\n const Component = component(name);\n return Component.options.functional ? new Component({ data: isPlainObject(element) ? element : [element, data, ...args] }) : element ? $$(element).map(init)[0] : init();\n function init(element2) {\n const instance = getComponent(element2, name);\n if (instance) {\n if (data) {\n instance.$destroy();\n } else {\n return instance;\n }\n }\n return new Component({ el: element2, data });\n }\n }\n function getComponents(element) {\n return (element == null ? void 0 : element[DATA]) || {};\n }\n function getComponent(element, name) {\n return getComponents(element)[name];\n }\n function attachToElement(element, instance) {\n if (!element[DATA]) {\n element[DATA] = {};\n }\n element[DATA][instance.$options.name] = instance;\n }\n function detachFromElement(element, instance) {\n var _a;\n (_a = element[DATA]) == null ? true : delete _a[instance.$options.name];\n if (!isEmpty(element[DATA])) {\n delete element[DATA];\n }\n }\n\n function boot(App) {\n if (inBrowser && window.MutationObserver) {\n if (document.body) {\n requestAnimationFrame(() => init(App));\n } else {\n new MutationObserver((records, observer) => {\n if (document.body) {\n init(App);\n observer.disconnect();\n }\n }).observe(document.documentElement, { childList: true });\n }\n }\n }\n function init(App) {\n trigger(document, \"uikit:init\", App);\n if (document.body) {\n apply(document.body, connect);\n }\n new MutationObserver((records) => records.forEach(applyChildListMutation)).observe(document, {\n childList: true,\n subtree: true\n });\n new MutationObserver((records) => records.forEach(applyAttributeMutation)).observe(document, {\n attributes: true,\n subtree: true\n });\n App._initialized = true;\n }\n function applyChildListMutation({ addedNodes, removedNodes }) {\n for (const node of addedNodes) {\n apply(node, connect);\n }\n for (const node of removedNodes) {\n apply(node, disconnect);\n }\n }\n function applyAttributeMutation({ target, attributeName }) {\n var _a;\n const name = getComponentName(attributeName);\n if (name) {\n if (hasAttr(target, attributeName)) {\n createComponent(name, target);\n return;\n }\n (_a = getComponent(target, name)) == null ? void 0 : _a.$destroy();\n }\n }\n function connect(node) {\n const components2 = getComponents(node);\n for (const name in getComponents(node)) {\n callConnected(components2[name]);\n }\n for (const attributeName of node.getAttributeNames()) {\n const name = getComponentName(attributeName);\n name && createComponent(name, node);\n }\n }\n function disconnect(node) {\n const components2 = getComponents(node);\n for (const name in getComponents(node)) {\n callDisconnected(components2[name]);\n }\n }\n function getComponentName(attribute) {\n if (startsWith(attribute, \"data-\")) {\n attribute = attribute.slice(5);\n }\n const cmp = components$1[attribute];\n return cmp && (isPlainObject(cmp) ? cmp : cmp.options).name;\n }\n\n function globalApi(App) {\n App.component = component;\n App.getComponents = getComponents;\n App.getComponent = getComponent;\n App.update = update;\n App.use = function(plugin) {\n if (plugin.installed) {\n return;\n }\n plugin.call(null, this);\n plugin.installed = true;\n return this;\n };\n App.mixin = function(mixin, component2) {\n component2 = (isString(component2) ? this.component(component2) : component2) || this;\n component2.options = mergeOptions(component2.options, mixin);\n };\n App.extend = function(options) {\n options || (options = {});\n const Super = this;\n const Sub = function UIkitComponent(options2) {\n init$1(this, options2);\n };\n Sub.prototype = Object.create(Super.prototype);\n Sub.prototype.constructor = Sub;\n Sub.options = mergeOptions(Super.options, options);\n Sub.super = Super;\n Sub.extend = Super.extend;\n return Sub;\n };\n let container;\n Object.defineProperty(App, \"container\", {\n get() {\n return container || document.body;\n },\n set(element) {\n container = $(element);\n }\n });\n }\n function update(element, e) {\n element = element ? toNode(element) : document.body;\n for (const parentEl of parents(element).reverse()) {\n updateElement(parentEl, e);\n }\n apply(element, (element2) => updateElement(element2, e));\n }\n function updateElement(element, e) {\n const components = getComponents(element);\n for (const name in components) {\n callUpdate(components[name], e);\n }\n }\n\n function instanceApi(App) {\n App.prototype.$mount = function(el) {\n const instance = this;\n attachToElement(el, instance);\n instance.$options.el = el;\n if (within(el, document)) {\n callConnected(instance);\n }\n };\n App.prototype.$destroy = function(removeEl = false) {\n const instance = this;\n const { el } = instance.$options;\n if (el) {\n callDisconnected(instance);\n }\n callHook(instance, \"destroy\");\n detachFromElement(el, instance);\n if (removeEl) {\n remove$1(instance.$el);\n }\n };\n App.prototype.$create = createComponent;\n App.prototype.$emit = function(e) {\n callUpdate(this, e);\n };\n App.prototype.$update = function(element = this.$el, e) {\n update(element, e);\n };\n App.prototype.$reset = function() {\n callDisconnected(this);\n callConnected(this);\n };\n App.prototype.$getComponent = getComponent;\n Object.defineProperties(App.prototype, {\n $el: {\n get() {\n return this.$options.el;\n }\n },\n $container: Object.getOwnPropertyDescriptor(App, \"container\")\n });\n }\n function generateId(instance, el = instance.$el, postfix = \"\") {\n if (el.id) {\n return el.id;\n }\n let id = `${instance.$options.id}-${instance._uid}${postfix}`;\n if ($(`#${id}`)) {\n id = generateId(instance, el, `${postfix}-2`);\n }\n return id;\n }\n\n globalApi(App);\n instanceApi(App);\n\n function resize(options) {\n return observe(observeResize, options, \"resize\");\n }\n function intersection(options) {\n return observe(observeIntersection, options);\n }\n function mutation(options) {\n return observe(observeMutation, options);\n }\n function lazyload(options = {}) {\n return intersection({\n handler: function(entries, observer) {\n const { targets = this.$el, preload = 5 } = options;\n for (const el of toNodes(isFunction(targets) ? targets(this) : targets)) {\n $$('[loading=\"lazy\"]', el).slice(0, preload - 1).forEach((el2) => removeAttr(el2, \"loading\"));\n }\n for (const el of entries.filter(({ isIntersecting }) => isIntersecting).map(({ target }) => target)) {\n observer.unobserve(el);\n }\n },\n ...options\n });\n }\n function viewport() {\n return observe((target, handler) => observeViewportResize(handler));\n }\n function scroll$1(options) {\n return observe(\n (target, handler) => ({\n disconnect: on(toScrollTargets(target), \"scroll\", handler, {\n passive: true,\n capture: true\n })\n }),\n options,\n \"scroll\"\n );\n }\n function swipe(options) {\n return {\n observe(target, handler) {\n return {\n observe: noop,\n unobserve: noop,\n disconnect: on(target, pointerDown, handler, { passive: true })\n };\n },\n handler(e) {\n if (!isTouch(e)) {\n return;\n }\n const pos = getEventPos(e);\n const target = \"tagName\" in e.target ? e.target : parent(e.target);\n once(document, `${pointerUp} ${pointerCancel} scroll`, (e2) => {\n const { x, y } = getEventPos(e2);\n if (e2.type !== \"scroll\" && target && x && Math.abs(pos.x - x) > 100 || y && Math.abs(pos.y - y) > 100) {\n setTimeout(() => {\n trigger(target, \"swipe\");\n trigger(target, `swipe${swipeDirection(pos.x, pos.y, x, y)}`);\n });\n }\n });\n },\n ...options\n };\n }\n function observe(observe2, options, emit) {\n return {\n observe: observe2,\n handler() {\n this.$emit(emit);\n },\n ...options\n };\n }\n function swipeDirection(x1, y1, x2, y2) {\n return Math.abs(x1 - x2) >= Math.abs(y1 - y2) ? x1 - x2 > 0 ? \"Left\" : \"Right\" : y1 - y2 > 0 ? \"Up\" : \"Down\";\n }\n function toScrollTargets(elements) {\n return toNodes(elements).map((node) => {\n const { ownerDocument } = node;\n const parent2 = scrollParent(node, true);\n return parent2 === ownerDocument.scrollingElement ? ownerDocument : parent2;\n });\n }\n\n var Class = {\n connected() {\n addClass(this.$el, this.$options.id);\n }\n };\n\n var Togglable = {\n props: {\n cls: Boolean,\n animation: \"list\",\n duration: Number,\n velocity: Number,\n origin: String,\n transition: String\n },\n data: {\n cls: false,\n animation: [false],\n duration: 200,\n velocity: 0.2,\n origin: false,\n transition: \"ease\",\n clsEnter: \"uk-togglabe-enter\",\n clsLeave: \"uk-togglabe-leave\"\n },\n computed: {\n hasAnimation({ animation }) {\n return !!animation[0];\n },\n hasTransition({ animation }) {\n return [\"slide\", \"reveal\"].some((transition) => startsWith(animation[0], transition));\n }\n },\n methods: {\n async toggleElement(targets, toggle, animate) {\n try {\n await Promise.all(\n toNodes(targets).map((el) => {\n const show = isBoolean(toggle) ? toggle : !this.isToggled(el);\n if (!trigger(el, `before${show ? \"show\" : \"hide\"}`, [this])) {\n return Promise.reject();\n }\n const promise = (isFunction(animate) ? animate : animate === false || !this.hasAnimation ? toggleInstant : this.hasTransition ? toggleTransition : toggleAnimation)(el, show, this);\n const cls = show ? this.clsEnter : this.clsLeave;\n addClass(el, cls);\n trigger(el, show ? \"show\" : \"hide\", [this]);\n const done = () => {\n removeClass(el, cls);\n trigger(el, show ? \"shown\" : \"hidden\", [this]);\n };\n return promise ? promise.then(done, () => {\n removeClass(el, cls);\n return Promise.reject();\n }) : done();\n })\n );\n return true;\n } catch (e) {\n return false;\n }\n },\n isToggled(el = this.$el) {\n el = toNode(el);\n return hasClass(el, this.clsEnter) ? true : hasClass(el, this.clsLeave) ? false : this.cls ? hasClass(el, this.cls.split(\" \")[0]) : isVisible(el);\n },\n _toggle(el, toggled) {\n if (!el) {\n return;\n }\n toggled = Boolean(toggled);\n let changed;\n if (this.cls) {\n changed = includes(this.cls, \" \") || toggled !== hasClass(el, this.cls);\n changed && toggleClass(el, this.cls, includes(this.cls, \" \") ? void 0 : toggled);\n } else {\n changed = toggled === el.hidden;\n changed && (el.hidden = !toggled);\n }\n $$(\"[autofocus]\", el).some((el2) => isVisible(el2) ? el2.focus() || true : el2.blur());\n if (changed) {\n trigger(el, \"toggled\", [toggled, this]);\n }\n }\n }\n };\n function toggleInstant(el, show, { _toggle }) {\n Animation.cancel(el);\n Transition.cancel(el);\n return _toggle(el, show);\n }\n async function toggleTransition(el, show, { animation, duration, velocity, transition, _toggle }) {\n var _a;\n const [mode = \"reveal\", startProp = \"top\"] = ((_a = animation[0]) == null ? void 0 : _a.split(\"-\")) || [];\n const dirs = [\n [\"left\", \"right\"],\n [\"top\", \"bottom\"]\n ];\n const dir = dirs[includes(dirs[0], startProp) ? 0 : 1];\n const end = dir[1] === startProp;\n const props = [\"width\", \"height\"];\n const dimProp = props[dirs.indexOf(dir)];\n const marginProp = `margin-${dir[0]}`;\n const marginStartProp = `margin-${startProp}`;\n let currentDim = dimensions(el)[dimProp];\n const inProgress = Transition.inProgress(el);\n await Transition.cancel(el);\n if (show) {\n _toggle(el, true);\n }\n const prevProps = Object.fromEntries(\n [\n \"padding\",\n \"border\",\n \"width\",\n \"height\",\n \"minWidth\",\n \"minHeight\",\n \"overflowY\",\n \"overflowX\",\n marginProp,\n marginStartProp\n ].map((key) => [key, el.style[key]])\n );\n const dim = dimensions(el);\n const currentMargin = toFloat(css(el, marginProp));\n const marginStart = toFloat(css(el, marginStartProp));\n const endDim = dim[dimProp] + marginStart;\n if (!inProgress && !show) {\n currentDim += marginStart;\n }\n const [wrapper] = wrapInner(el, \"
\");\n css(wrapper, {\n boxSizing: \"border-box\",\n height: dim.height,\n width: dim.width,\n ...css(el, [\n \"overflow\",\n \"padding\",\n \"borderTop\",\n \"borderRight\",\n \"borderBottom\",\n \"borderLeft\",\n \"borderImage\",\n marginStartProp\n ])\n });\n css(el, {\n padding: 0,\n border: 0,\n minWidth: 0,\n minHeight: 0,\n [marginStartProp]: 0,\n width: dim.width,\n height: dim.height,\n overflow: \"hidden\",\n [dimProp]: currentDim\n });\n const percent = currentDim / endDim;\n duration = (velocity * endDim + duration) * (show ? 1 - percent : percent);\n const endProps = { [dimProp]: show ? endDim : 0 };\n if (end) {\n css(el, marginProp, endDim - currentDim + currentMargin);\n endProps[marginProp] = show ? currentMargin : endDim + currentMargin;\n }\n if (!end ^ mode === \"reveal\") {\n css(wrapper, marginProp, -endDim + currentDim);\n Transition.start(wrapper, { [marginProp]: show ? 0 : -endDim }, duration, transition);\n }\n try {\n await Transition.start(el, endProps, duration, transition);\n } finally {\n css(el, prevProps);\n unwrap(wrapper.firstChild);\n if (!show) {\n _toggle(el, false);\n }\n }\n }\n function toggleAnimation(el, show, cmp) {\n Animation.cancel(el);\n const { animation, duration, _toggle } = cmp;\n if (show) {\n _toggle(el, true);\n return Animation.in(el, animation[0], duration, cmp.origin);\n }\n return Animation.out(el, animation[1] || animation[0], duration, cmp.origin).then(\n () => _toggle(el, false)\n );\n }\n\n const keyMap = {\n TAB: 9,\n ESC: 27,\n SPACE: 32,\n END: 35,\n HOME: 36,\n LEFT: 37,\n UP: 38,\n RIGHT: 39,\n DOWN: 40\n };\n\n var Accordion = {\n mixins: [Class, Togglable],\n props: {\n animation: Boolean,\n targets: String,\n active: null,\n collapsible: Boolean,\n multiple: Boolean,\n toggle: String,\n content: String,\n offset: Number\n },\n data: {\n targets: \"> *\",\n active: false,\n animation: true,\n collapsible: true,\n multiple: false,\n clsOpen: \"uk-open\",\n toggle: \"> .uk-accordion-title\",\n content: \"> .uk-accordion-content\",\n offset: 0\n },\n computed: {\n items({ targets }, $el) {\n return $$(targets, $el);\n },\n toggles({ toggle }) {\n return this.items.map((item) => $(toggle, item));\n },\n contents({ content }) {\n return this.items.map((item) => {\n var _a;\n return ((_a = item._wrapper) == null ? void 0 : _a.firstElementChild) || $(content, item);\n });\n }\n },\n watch: {\n items(items, prev) {\n if (prev || hasClass(items, this.clsOpen)) {\n return;\n }\n const active = this.active !== false && items[Number(this.active)] || !this.collapsible && items[0];\n if (active) {\n this.toggle(active, false);\n }\n },\n toggles() {\n this.$emit();\n },\n contents(items) {\n for (const el of items) {\n const isOpen = hasClass(\n this.items.find((item) => within(el, item)),\n this.clsOpen\n );\n hide(el, !isOpen);\n }\n this.$emit();\n }\n },\n observe: lazyload(),\n events: [\n {\n name: \"click keydown\",\n delegate() {\n return `${this.targets} ${this.$props.toggle}`;\n },\n async handler(e) {\n var _a;\n if (e.type === \"keydown\" && e.keyCode !== keyMap.SPACE) {\n return;\n }\n e.preventDefault();\n (_a = this._off) == null ? void 0 : _a.call(this);\n this._off = keepScrollPosition(e.target);\n await this.toggle(index(this.toggles, e.current));\n this._off();\n }\n },\n {\n name: \"shown hidden\",\n self: true,\n delegate() {\n return this.targets;\n },\n handler() {\n this.$emit();\n }\n }\n ],\n update() {\n const activeItems = filter(this.items, `.${this.clsOpen}`);\n for (const index2 in this.items) {\n const toggle = this.toggles[index2];\n const content = this.contents[index2];\n if (!toggle || !content) {\n continue;\n }\n toggle.id = generateId(this, toggle, `-title-${index2}`);\n content.id = generateId(this, content, `-content-${index2}`);\n const active = includes(activeItems, this.items[index2]);\n attr(toggle, {\n role: isTag(toggle, \"a\") ? \"button\" : null,\n \"aria-controls\": content.id,\n \"aria-expanded\": active,\n \"aria-disabled\": !this.collapsible && activeItems.length < 2 && active\n });\n attr(content, { role: \"region\", \"aria-labelledby\": toggle.id });\n if (isTag(content, \"ul\")) {\n attr(children(content), \"role\", \"presentation\");\n }\n }\n },\n methods: {\n toggle(item, animate) {\n item = this.items[getIndex(item, this.items)];\n let items = [item];\n const activeItems = filter(this.items, `.${this.clsOpen}`);\n if (!this.multiple && !includes(activeItems, items[0])) {\n items = items.concat(activeItems);\n }\n if (!this.collapsible && activeItems.length < 2 && includes(activeItems, item)) {\n return;\n }\n return Promise.all(\n items.map(\n (el) => this.toggleElement(el, !includes(activeItems, el), (el2, show) => {\n toggleClass(el2, this.clsOpen, show);\n if (animate === false || !this.animation) {\n hide($(this.content, el2), !show);\n return;\n }\n return transition(el2, show, this);\n })\n )\n );\n }\n }\n };\n function hide(el, hide2) {\n el && (el.hidden = hide2);\n }\n async function transition(el, show, { content, duration, velocity, transition: transition2 }) {\n var _a;\n content = ((_a = el._wrapper) == null ? void 0 : _a.firstElementChild) || $(content, el);\n if (!el._wrapper) {\n el._wrapper = wrapAll(content, \"
\");\n }\n const wrapper = el._wrapper;\n css(wrapper, \"overflow\", \"hidden\");\n const currentHeight = toFloat(css(wrapper, \"height\"));\n await Transition.cancel(wrapper);\n hide(content, false);\n const endHeight = sumBy([\"marginTop\", \"marginBottom\"], (prop) => css(content, prop)) + dimensions(content).height;\n const percent = currentHeight / endHeight;\n duration = (velocity * endHeight + duration) * (show ? 1 - percent : percent);\n css(wrapper, \"height\", currentHeight);\n await Transition.start(wrapper, { height: show ? endHeight : 0 }, duration, transition2);\n unwrap(content);\n delete el._wrapper;\n if (!show) {\n hide(content, true);\n }\n }\n function keepScrollPosition(el) {\n const scrollElement = scrollParent(el, true);\n let frame;\n (function scroll() {\n frame = requestAnimationFrame(() => {\n const { top } = el.getBoundingClientRect();\n if (top < 0) {\n scrollElement.scrollTop += top;\n }\n scroll();\n });\n })();\n return () => requestAnimationFrame(() => cancelAnimationFrame(frame));\n }\n\n var alert = {\n mixins: [Class, Togglable],\n args: \"animation\",\n props: {\n animation: Boolean,\n close: String\n },\n data: {\n animation: true,\n selClose: \".uk-alert-close\",\n duration: 150\n },\n events: {\n name: \"click\",\n delegate() {\n return this.selClose;\n },\n handler(e) {\n e.preventDefault();\n this.close();\n }\n },\n methods: {\n async close() {\n await this.toggleElement(this.$el, false, animate$1);\n this.$destroy(true);\n }\n }\n };\n function animate$1(el, show, { duration, transition, velocity }) {\n const height = toFloat(css(el, \"height\"));\n css(el, \"height\", height);\n return Transition.start(\n el,\n {\n height: 0,\n marginTop: 0,\n marginBottom: 0,\n paddingTop: 0,\n paddingBottom: 0,\n borderTop: 0,\n borderBottom: 0,\n opacity: 0\n },\n velocity * height + duration,\n transition\n );\n }\n\n var Video = {\n args: \"autoplay\",\n props: {\n automute: Boolean,\n autoplay: Boolean\n },\n data: {\n automute: false,\n autoplay: true\n },\n connected() {\n this.inView = this.autoplay === \"inview\";\n if (this.inView && !hasAttr(this.$el, \"preload\")) {\n this.$el.preload = \"none\";\n }\n if (isTag(this.$el, \"iframe\") && !hasAttr(this.$el, \"allow\")) {\n this.$el.allow = \"autoplay\";\n }\n if (this.automute) {\n mute(this.$el);\n }\n },\n observe: [intersection({ args: { intersecting: false } }), resize()],\n update: {\n read({ visible }) {\n if (!isVideo(this.$el)) {\n return false;\n }\n return {\n prev: visible,\n visible: isVisible(this.$el),\n inView: this.inView && isInView(this.$el)\n };\n },\n write({ prev, visible, inView }) {\n if (!visible || this.inView && !inView) {\n pause(this.$el);\n } else if (this.autoplay === true && !prev || inView) {\n play(this.$el);\n }\n },\n events: [\"resize\"]\n }\n };\n\n var cover = {\n mixins: [Video],\n props: {\n width: Number,\n height: Number\n },\n data: {\n automute: true\n },\n events: {\n \"load loadedmetadata\"() {\n this.$emit(\"resize\");\n }\n },\n observe: resize({\n target: ({ $el }) => [getPositionedParent($el) || parent($el)]\n }),\n update: {\n read() {\n const { ratio, cover } = Dimensions;\n const { $el, width, height } = this;\n let dim = { width, height };\n if (!width || !height) {\n const intrinsic = {\n width: $el.naturalWidth || $el.videoWidth || $el.clientWidth,\n height: $el.naturalHeight || $el.videoHeight || $el.clientHeight\n };\n if (width) {\n dim = ratio(intrinsic, \"width\", width);\n } else if (height) {\n dim = ratio(intrinsic, \"height\", height);\n } else {\n dim = intrinsic;\n }\n }\n const { offsetHeight: coverHeight, offsetWidth: coverWidth } = getPositionedParent($el) || parent($el);\n const coverDim = cover(dim, {\n width: coverWidth + (coverWidth % 2 ? 1 : 0),\n height: coverHeight + (coverHeight % 2 ? 1 : 0)\n });\n if (!coverDim.width || !coverDim.height) {\n return false;\n }\n return coverDim;\n },\n write({ height, width }) {\n css(this.$el, { height, width });\n },\n events: [\"resize\"]\n }\n };\n function getPositionedParent(el) {\n while (el = parent(el)) {\n if (css(el, \"position\") !== \"static\") {\n return el;\n }\n }\n }\n\n var Container = {\n props: {\n container: Boolean\n },\n data: {\n container: true\n },\n computed: {\n container({ container }) {\n return container === true && this.$container || container && $(container);\n }\n }\n };\n\n let prevented;\n function preventBackgroundScroll(el) {\n const off = on(\n el,\n \"touchmove\",\n (e) => {\n if (e.targetTouches.length !== 1 || matches(e.target, 'input[type=\"range\"')) {\n return;\n }\n let { scrollHeight, clientHeight } = scrollParent(e.target);\n if (clientHeight >= scrollHeight && e.cancelable) {\n e.preventDefault();\n }\n },\n { passive: false }\n );\n if (prevented) {\n return off;\n }\n prevented = true;\n const { scrollingElement } = document;\n css(scrollingElement, {\n overflowY: CSS.supports(\"overflow\", \"clip\") ? \"clip\" : \"hidden\",\n touchAction: \"none\",\n paddingRight: width(window) - scrollingElement.clientWidth || \"\"\n });\n return () => {\n prevented = false;\n off();\n css(scrollingElement, { overflowY: \"\", touchAction: \"\", paddingRight: \"\" });\n };\n }\n\n var Position = {\n props: {\n pos: String,\n offset: null,\n flip: Boolean,\n shift: Boolean,\n inset: Boolean\n },\n data: {\n pos: `bottom-${isRtl ? \"right\" : \"left\"}`,\n offset: false,\n flip: true,\n shift: true,\n inset: false\n },\n connected() {\n this.pos = this.$props.pos.split(\"-\").concat(\"center\").slice(0, 2);\n [this.dir, this.align] = this.pos;\n this.axis = includes([\"top\", \"bottom\"], this.dir) ? \"y\" : \"x\";\n },\n methods: {\n positionAt(element, target, boundary) {\n let offset = [this.getPositionOffset(element), this.getShiftOffset(element)];\n const placement = [this.flip && \"flip\", this.shift && \"shift\"];\n const attach = {\n element: [this.inset ? this.dir : flipPosition(this.dir), this.align],\n target: [this.dir, this.align]\n };\n if (this.axis === \"y\") {\n for (const prop in attach) {\n attach[prop].reverse();\n }\n offset.reverse();\n placement.reverse();\n }\n const restoreScrollPosition = storeScrollPosition(element);\n const elDim = dimensions(element);\n css(element, { top: -elDim.height, left: -elDim.width });\n positionAt(element, target, {\n attach,\n offset,\n boundary,\n placement,\n viewportOffset: this.getViewportOffset(element)\n });\n restoreScrollPosition();\n },\n getPositionOffset(element) {\n return toPx(\n this.offset === false ? css(element, \"--uk-position-offset\") : this.offset,\n this.axis === \"x\" ? \"width\" : \"height\",\n element\n ) * (includes([\"left\", \"top\"], this.dir) ? -1 : 1) * (this.inset ? -1 : 1);\n },\n getShiftOffset(element) {\n return this.align === \"center\" ? 0 : toPx(\n css(element, \"--uk-position-shift-offset\"),\n this.axis === \"y\" ? \"width\" : \"height\",\n element\n ) * (includes([\"left\", \"top\"], this.align) ? 1 : -1);\n },\n getViewportOffset(element) {\n return toPx(css(element, \"--uk-position-viewport-offset\"));\n }\n }\n };\n function storeScrollPosition(element) {\n const scrollElement = scrollParent(element);\n const { scrollTop } = scrollElement;\n return () => {\n if (scrollTop !== scrollElement.scrollTop) {\n scrollElement.scrollTop = scrollTop;\n }\n };\n }\n\n let active$1;\n var drop = {\n mixins: [Container, Position, Togglable],\n args: \"pos\",\n props: {\n mode: \"list\",\n toggle: Boolean,\n boundary: Boolean,\n boundaryX: Boolean,\n boundaryY: Boolean,\n target: Boolean,\n targetX: Boolean,\n targetY: Boolean,\n stretch: Boolean,\n delayShow: Number,\n delayHide: Number,\n autoUpdate: Boolean,\n clsDrop: String,\n animateOut: Boolean,\n bgScroll: Boolean\n },\n data: {\n mode: [\"click\", \"hover\"],\n toggle: \"- *\",\n boundary: false,\n boundaryX: false,\n boundaryY: false,\n target: false,\n targetX: false,\n targetY: false,\n stretch: false,\n delayShow: 0,\n delayHide: 800,\n autoUpdate: true,\n clsDrop: false,\n animateOut: false,\n bgScroll: true,\n animation: [\"uk-animation-fade\"],\n cls: \"uk-open\",\n container: false\n },\n computed: {\n boundary({ boundary, boundaryX, boundaryY }, $el) {\n return [\n query(boundaryX || boundary, $el) || window,\n query(boundaryY || boundary, $el) || window\n ];\n },\n target({ target, targetX, targetY }, $el) {\n targetX || (targetX = target || this.targetEl);\n targetY || (targetY = target || this.targetEl);\n return [\n targetX === true ? window : query(targetX, $el),\n targetY === true ? window : query(targetY, $el)\n ];\n }\n },\n created() {\n this.tracker = new MouseTracker();\n },\n beforeConnect() {\n this.clsDrop = this.$props.clsDrop || `uk-${this.$options.name}`;\n },\n connected() {\n addClass(this.$el, \"uk-drop\", this.clsDrop);\n if (this.toggle && !this.targetEl) {\n this.targetEl = createToggleComponent(this);\n }\n this._style = pick(this.$el.style, [\"width\", \"height\"]);\n },\n disconnected() {\n if (this.isActive()) {\n this.hide(false);\n active$1 = null;\n }\n css(this.$el, this._style);\n },\n observe: lazyload({\n target: ({ toggle, $el }) => query(toggle, $el),\n targets: ({ $el }) => $el\n }),\n events: [\n {\n name: \"click\",\n delegate() {\n return \".uk-drop-close\";\n },\n handler(e) {\n e.preventDefault();\n this.hide(false);\n }\n },\n {\n name: \"click\",\n delegate() {\n return 'a[href*=\"#\"]';\n },\n handler({ defaultPrevented, current }) {\n const { hash } = current;\n if (!defaultPrevented && hash && isSameSiteAnchor(current) && !within(hash, this.$el)) {\n this.hide(false);\n }\n }\n },\n {\n name: \"beforescroll\",\n handler() {\n this.hide(false);\n }\n },\n {\n name: \"toggle\",\n self: true,\n handler(e, toggle) {\n e.preventDefault();\n if (this.isToggled()) {\n this.hide(false);\n } else {\n this.show(toggle == null ? void 0 : toggle.$el, false);\n }\n }\n },\n {\n name: \"toggleshow\",\n self: true,\n handler(e, toggle) {\n e.preventDefault();\n this.show(toggle == null ? void 0 : toggle.$el);\n }\n },\n {\n name: \"togglehide\",\n self: true,\n handler(e) {\n e.preventDefault();\n if (!matches(this.$el, \":focus,:hover\")) {\n this.hide();\n }\n }\n },\n {\n name: `${pointerEnter} focusin`,\n filter() {\n return includes(this.mode, \"hover\");\n },\n handler(e) {\n if (!isTouch(e)) {\n this.clearTimers();\n }\n }\n },\n {\n name: `${pointerLeave} focusout`,\n filter() {\n return includes(this.mode, \"hover\");\n },\n handler(e) {\n if (!isTouch(e) && e.relatedTarget) {\n this.hide();\n }\n }\n },\n {\n name: \"toggled\",\n self: true,\n handler(e, toggled) {\n attr(this.targetEl, \"aria-expanded\", toggled ? true : null);\n if (!toggled) {\n return;\n }\n this.clearTimers();\n this.position();\n }\n },\n {\n name: \"show\",\n self: true,\n handler() {\n active$1 = this;\n this.tracker.init();\n const handlers = [\n listenForResize(this),\n listenForEscClose$1(this),\n listenForBackgroundClose$1(this),\n this.autoUpdate && listenForScroll(this),\n !this.bgScroll && preventBackgroundScroll(this.$el)\n ];\n once(this.$el, \"hide\", () => handlers.forEach((handler) => handler && handler()), {\n self: true\n });\n }\n },\n {\n name: \"beforehide\",\n self: true,\n handler() {\n this.clearTimers();\n }\n },\n {\n name: \"hide\",\n handler({ target }) {\n if (this.$el !== target) {\n active$1 = active$1 === null && within(target, this.$el) && this.isToggled() ? this : active$1;\n return;\n }\n active$1 = this.isActive() ? null : active$1;\n this.tracker.cancel();\n }\n }\n ],\n update: {\n write() {\n if (this.isToggled() && !hasClass(this.$el, this.clsEnter)) {\n this.position();\n }\n }\n },\n methods: {\n show(target = this.targetEl, delay = true) {\n if (this.isToggled() && target && this.targetEl && target !== this.targetEl) {\n this.hide(false, false);\n }\n this.targetEl = target;\n this.clearTimers();\n if (this.isActive()) {\n return;\n }\n if (active$1) {\n if (delay && active$1.isDelaying) {\n this.showTimer = setTimeout(() => matches(target, \":hover\") && this.show(), 10);\n return;\n }\n let prev;\n while (active$1 && prev !== active$1 && !within(this.$el, active$1.$el)) {\n prev = active$1;\n active$1.hide(false, false);\n }\n }\n if (this.container && parent(this.$el) !== this.container) {\n append(this.container, this.$el);\n }\n this.showTimer = setTimeout(\n () => this.toggleElement(this.$el, true),\n delay && this.delayShow || 0\n );\n },\n hide(delay = true, animate = true) {\n const hide = () => this.toggleElement(this.$el, false, this.animateOut && animate);\n this.clearTimers();\n this.isDelaying = getPositionedElements(this.$el).some(\n (el) => this.tracker.movesTo(el)\n );\n if (delay && this.isDelaying) {\n this.hideTimer = setTimeout(this.hide, 50);\n } else if (delay && this.delayHide) {\n this.hideTimer = setTimeout(hide, this.delayHide);\n } else {\n hide();\n }\n },\n clearTimers() {\n clearTimeout(this.showTimer);\n clearTimeout(this.hideTimer);\n this.showTimer = null;\n this.hideTimer = null;\n this.isDelaying = false;\n },\n isActive() {\n return active$1 === this;\n },\n position() {\n removeClass(this.$el, \"uk-drop-stack\");\n css(this.$el, this._style);\n this.$el.hidden = true;\n const viewports = this.target.map((target) => getViewport$1(this.$el, target));\n const viewportOffset = this.getViewportOffset(this.$el);\n const dirs = [\n [0, [\"x\", \"width\", \"left\", \"right\"]],\n [1, [\"y\", \"height\", \"top\", \"bottom\"]]\n ];\n for (const [i, [axis, prop]] of dirs) {\n if (this.axis !== axis && includes([axis, true], this.stretch)) {\n css(this.$el, {\n [prop]: Math.min(\n offset(this.boundary[i])[prop],\n viewports[i][prop] - 2 * viewportOffset\n ),\n [`overflow-${axis}`]: \"auto\"\n });\n }\n }\n const maxWidth = viewports[0].width - 2 * viewportOffset;\n this.$el.hidden = false;\n css(this.$el, \"maxWidth\", \"\");\n if (this.$el.offsetWidth > maxWidth) {\n addClass(this.$el, \"uk-drop-stack\");\n }\n css(this.$el, \"maxWidth\", maxWidth);\n this.positionAt(this.$el, this.target, this.boundary);\n for (const [i, [axis, prop, start, end]] of dirs) {\n if (this.axis === axis && includes([axis, true], this.stretch)) {\n const positionOffset = Math.abs(this.getPositionOffset(this.$el));\n const targetOffset = offset(this.target[i]);\n const elOffset = offset(this.$el);\n css(this.$el, {\n [prop]: (targetOffset[start] > elOffset[start] ? targetOffset[this.inset ? end : start] - Math.max(\n offset(this.boundary[i])[start],\n viewports[i][start] + viewportOffset\n ) : Math.min(\n offset(this.boundary[i])[end],\n viewports[i][end] - viewportOffset\n ) - targetOffset[this.inset ? start : end]) - positionOffset,\n [`overflow-${axis}`]: \"auto\"\n });\n this.positionAt(this.$el, this.target, this.boundary);\n }\n }\n }\n }\n };\n function getPositionedElements(el) {\n const result = [];\n apply(el, (el2) => css(el2, \"position\") !== \"static\" && result.push(el2));\n return result;\n }\n function getViewport$1(el, target) {\n return offsetViewport(overflowParents(target).find((parent2) => within(el, parent2)));\n }\n function createToggleComponent(drop) {\n const { $el } = drop.$create(\"toggle\", query(drop.toggle, drop.$el), {\n target: drop.$el,\n mode: drop.mode\n });\n attr($el, \"aria-haspopup\", true);\n return $el;\n }\n function listenForResize(drop) {\n const update = () => drop.$emit();\n const off = [\n observeViewportResize(update),\n observeResize(overflowParents(drop.$el).concat(drop.target), update)\n ];\n return () => off.map((observer) => observer.disconnect());\n }\n function listenForScroll(drop) {\n return on([document, ...overflowParents(drop.$el)], \"scroll\", () => drop.$emit(), {\n passive: true\n });\n }\n function listenForEscClose$1(drop) {\n return on(document, \"keydown\", (e) => {\n if (e.keyCode === keyMap.ESC) {\n drop.hide(false);\n }\n });\n }\n function listenForBackgroundClose$1(drop) {\n return on(document, pointerDown, ({ target }) => {\n if (!within(target, drop.$el)) {\n once(\n document,\n `${pointerUp} ${pointerCancel} scroll`,\n ({ defaultPrevented, type, target: newTarget }) => {\n if (!defaultPrevented && type === pointerUp && target === newTarget && !(drop.targetEl && within(target, drop.targetEl))) {\n drop.hide(false);\n }\n },\n true\n );\n }\n });\n }\n\n var Dropnav = {\n mixins: [Class, Container],\n props: {\n align: String,\n clsDrop: String,\n boundary: Boolean,\n dropbar: Boolean,\n dropbarAnchor: Boolean,\n duration: Number,\n mode: Boolean,\n offset: Boolean,\n stretch: Boolean,\n delayShow: Boolean,\n delayHide: Boolean,\n target: Boolean,\n targetX: Boolean,\n targetY: Boolean,\n animation: Boolean,\n animateOut: Boolean\n },\n data: {\n align: isRtl ? \"right\" : \"left\",\n clsDrop: \"uk-dropdown\",\n clsDropbar: \"uk-dropnav-dropbar\",\n boundary: true,\n dropbar: false,\n dropbarAnchor: false,\n duration: 200,\n container: false,\n selNavItem: \"> li > a, > ul > li > a\"\n },\n computed: {\n dropbarAnchor({ dropbarAnchor }, $el) {\n return query(dropbarAnchor, $el) || $el;\n },\n dropbar({ dropbar }) {\n if (!dropbar) {\n return null;\n }\n dropbar = this._dropbar || query(dropbar, this.$el) || $(`+ .${this.clsDropbar}`, this.$el);\n return dropbar ? dropbar : this._dropbar = $(\"
\");\n },\n dropContainer(_, $el) {\n return this.container || $el;\n },\n dropdowns({ clsDrop }, $el) {\n var _a;\n const dropdowns = $$(`.${clsDrop}`, $el);\n if (this.dropContainer !== $el) {\n for (const el of $$(`.${clsDrop}`, this.dropContainer)) {\n const target = (_a = this.getDropdown(el)) == null ? void 0 : _a.targetEl;\n if (!includes(dropdowns, el) && target && within(target, this.$el)) {\n dropdowns.push(el);\n }\n }\n }\n return dropdowns;\n },\n items({ selNavItem }, $el) {\n return $$(selNavItem, $el);\n }\n },\n watch: {\n dropbar(dropbar) {\n addClass(\n dropbar,\n \"uk-dropbar\",\n \"uk-dropbar-top\",\n this.clsDropbar,\n `uk-${this.$options.name}-dropbar`\n );\n },\n dropdowns() {\n this.initializeDropdowns();\n }\n },\n connected() {\n this.initializeDropdowns();\n },\n disconnected() {\n remove$1(this._dropbar);\n delete this._dropbar;\n },\n events: [\n {\n name: \"mouseover focusin\",\n delegate() {\n return this.selNavItem;\n },\n handler({ current }) {\n const active2 = this.getActive();\n if (active2 && includes(active2.mode, \"hover\") && active2.targetEl && !within(active2.targetEl, current) && !active2.isDelaying) {\n active2.hide(false);\n }\n }\n },\n {\n name: \"keydown\",\n self: true,\n delegate() {\n return this.selNavItem;\n },\n handler(e) {\n var _a;\n const { current, keyCode } = e;\n const active2 = this.getActive();\n if (keyCode === keyMap.DOWN && (active2 == null ? void 0 : active2.targetEl) === current) {\n e.preventDefault();\n (_a = $(selFocusable, active2.$el)) == null ? void 0 : _a.focus();\n }\n handleNavItemNavigation(e, this.items, active2);\n }\n },\n {\n name: \"keydown\",\n el() {\n return this.dropContainer;\n },\n delegate() {\n return `.${this.clsDrop}`;\n },\n handler(e) {\n var _a;\n const { current, keyCode } = e;\n if (!includes(this.dropdowns, current)) {\n return;\n }\n const active2 = this.getActive();\n let next = -1;\n if (keyCode === keyMap.HOME) {\n next = 0;\n } else if (keyCode === keyMap.END) {\n next = \"last\";\n } else if (keyCode === keyMap.UP) {\n next = \"previous\";\n } else if (keyCode === keyMap.DOWN) {\n next = \"next\";\n } else if (keyCode === keyMap.ESC) {\n (_a = active2.targetEl) == null ? void 0 : _a.focus();\n }\n if (~next) {\n e.preventDefault();\n const elements = $$(selFocusable, current);\n elements[getIndex(\n next,\n elements,\n findIndex(elements, (el) => matches(el, \":focus\"))\n )].focus();\n }\n handleNavItemNavigation(e, this.items, active2);\n }\n },\n {\n name: \"mouseleave\",\n el() {\n return this.dropbar;\n },\n filter() {\n return this.dropbar;\n },\n handler() {\n const active2 = this.getActive();\n if (active2 && includes(active2.mode, \"hover\") && !this.dropdowns.some((el) => matches(el, \":hover\"))) {\n active2.hide();\n }\n }\n },\n {\n name: \"beforeshow\",\n el() {\n return this.dropContainer;\n },\n filter() {\n return this.dropbar;\n },\n handler({ target }) {\n if (!this.isDropbarDrop(target)) {\n return;\n }\n if (this.dropbar.previousElementSibling !== this.dropbarAnchor) {\n after(this.dropbarAnchor, this.dropbar);\n }\n addClass(target, `${this.clsDrop}-dropbar`);\n }\n },\n {\n name: \"show\",\n el() {\n return this.dropContainer;\n },\n filter() {\n return this.dropbar;\n },\n handler({ target }) {\n if (!this.isDropbarDrop(target)) {\n return;\n }\n const drop = this.getDropdown(target);\n const adjustHeight = () => {\n const targetOffsets = parents(target, `.${this.clsDrop}`).concat(target).map((el) => offset(el));\n const minTop = Math.min(...targetOffsets.map(({ top }) => top));\n const maxBottom = Math.max(...targetOffsets.map(({ bottom }) => bottom));\n const dropbarOffset = offset(this.dropbar);\n css(this.dropbar, \"top\", this.dropbar.offsetTop - (dropbarOffset.top - minTop));\n this.transitionTo(\n maxBottom - minTop + toFloat(css(target, \"marginBottom\")),\n target\n );\n };\n this._observer = observeResize([drop.$el, ...drop.target], adjustHeight);\n adjustHeight();\n }\n },\n {\n name: \"beforehide\",\n el() {\n return this.dropContainer;\n },\n filter() {\n return this.dropbar;\n },\n handler(e) {\n const active2 = this.getActive();\n if (matches(this.dropbar, \":hover\") && active2.$el === e.target && !this.items.some((el) => active2.targetEl !== el && matches(el, \":focus\"))) {\n e.preventDefault();\n }\n }\n },\n {\n name: \"hide\",\n el() {\n return this.dropContainer;\n },\n filter() {\n return this.dropbar;\n },\n handler({ target }) {\n var _a;\n if (!this.isDropbarDrop(target)) {\n return;\n }\n (_a = this._observer) == null ? void 0 : _a.disconnect();\n const active2 = this.getActive();\n if (!active2 || active2.$el === target) {\n this.transitionTo(0);\n }\n }\n }\n ],\n methods: {\n getActive() {\n var _a;\n return includes(this.dropdowns, (_a = active$1) == null ? void 0 : _a.$el) && active$1;\n },\n async transitionTo(newHeight, el) {\n const { dropbar } = this;\n const oldHeight = height(dropbar);\n el = oldHeight < newHeight && el;\n await Transition.cancel([el, dropbar]);\n css(el, \"clipPath\", `polygon(0 0,100% 0,100% ${oldHeight}px,0 ${oldHeight}px)`);\n height(dropbar, oldHeight);\n await Promise.all([\n Transition.start(dropbar, { height: newHeight }, this.duration),\n Transition.start(\n el,\n {\n clipPath: `polygon(0 0,100% 0,100% ${newHeight}px,0 ${newHeight}px)`\n },\n this.duration\n ).finally(() => css(el, { clipPath: \"\" }))\n ]).catch(noop);\n },\n getDropdown(el) {\n return this.$getComponent(el, \"drop\") || this.$getComponent(el, \"dropdown\");\n },\n isDropbarDrop(el) {\n return this.getDropdown(el) && hasClass(el, this.clsDrop);\n },\n initializeDropdowns() {\n this.$create(\n \"drop\",\n this.dropdowns.filter((el) => !this.getDropdown(el)),\n {\n ...this.$props,\n flip: false,\n shift: true,\n pos: `bottom-${this.align}`,\n boundary: this.boundary === true ? this.$el : this.boundary\n }\n );\n }\n }\n };\n function handleNavItemNavigation(e, toggles, active2) {\n var _a, _b, _c;\n const { current, keyCode } = e;\n let next = -1;\n if (keyCode === keyMap.HOME) {\n next = 0;\n } else if (keyCode === keyMap.END) {\n next = \"last\";\n } else if (keyCode === keyMap.LEFT) {\n next = \"previous\";\n } else if (keyCode === keyMap.RIGHT) {\n next = \"next\";\n } else if (keyCode === keyMap.TAB) {\n (_a = active2.targetEl) == null ? void 0 : _a.focus();\n (_b = active2.hide) == null ? void 0 : _b.call(active2, false);\n }\n if (~next) {\n e.preventDefault();\n (_c = active2.hide) == null ? void 0 : _c.call(active2, false);\n toggles[getIndex(next, toggles, toggles.indexOf(active2.targetEl || current))].focus();\n }\n }\n\n var formCustom = {\n mixins: [Class],\n args: \"target\",\n props: {\n target: Boolean\n },\n data: {\n target: false\n },\n computed: {\n input(_, $el) {\n return $(selInput, $el);\n },\n state() {\n return this.input.nextElementSibling;\n },\n target({ target }, $el) {\n return target && (target === true && parent(this.input) === $el && this.input.nextElementSibling || $(target, $el));\n }\n },\n update() {\n var _a;\n const { target, input } = this;\n if (!target) {\n return;\n }\n let option;\n const prop = isInput(target) ? \"value\" : \"textContent\";\n const prev = target[prop];\n const value = ((_a = input.files) == null ? void 0 : _a[0]) ? input.files[0].name : matches(input, \"select\") && (option = $$(\"option\", input).filter((el) => el.selected)[0]) ? option.textContent : input.value;\n if (prev !== value) {\n target[prop] = value;\n }\n },\n events: [\n {\n name: \"change\",\n handler() {\n this.$emit();\n }\n },\n {\n name: \"reset\",\n el() {\n return closest(this.$el, \"form\");\n },\n handler() {\n this.$emit();\n }\n }\n ]\n };\n\n var Margin = {\n props: {\n margin: String,\n firstColumn: Boolean\n },\n data: {\n margin: \"uk-margin-small-top\",\n firstColumn: \"uk-first-column\"\n },\n observe: [\n mutation({\n options: {\n childList: true,\n attributes: true,\n attributeFilter: [\"style\"]\n }\n }),\n resize({\n target: ({ $el }) => [$el, ...children($el)]\n })\n ],\n update: {\n read() {\n const rows = getRows(this.$el.children);\n return {\n rows,\n columns: getColumns(rows)\n };\n },\n write({ columns, rows }) {\n for (const row of rows) {\n for (const column of row) {\n toggleClass(column, this.margin, rows[0] !== row);\n toggleClass(column, this.firstColumn, columns[0].includes(column));\n }\n }\n },\n events: [\"resize\"]\n }\n };\n function getRows(items) {\n return sortBy(items, \"top\", \"bottom\");\n }\n function getColumns(rows) {\n const columns = [];\n for (const row of rows) {\n const sorted = sortBy(row, \"left\", \"right\");\n for (let j = 0; j < sorted.length; j++) {\n columns[j] = columns[j] ? columns[j].concat(sorted[j]) : sorted[j];\n }\n }\n return isRtl ? columns.reverse() : columns;\n }\n function sortBy(items, startProp, endProp) {\n const sorted = [[]];\n for (const el of items) {\n if (!isVisible(el)) {\n continue;\n }\n let dim = getOffset(el);\n for (let i = sorted.length - 1; i >= 0; i--) {\n const current = sorted[i];\n if (!current[0]) {\n current.push(el);\n break;\n }\n let startDim;\n if (current[0].offsetParent === el.offsetParent) {\n startDim = getOffset(current[0]);\n } else {\n dim = getOffset(el, true);\n startDim = getOffset(current[0], true);\n }\n if (dim[startProp] >= startDim[endProp] - 1 && dim[startProp] !== startDim[startProp]) {\n sorted.push([el]);\n break;\n }\n if (dim[endProp] - 1 > startDim[startProp] || dim[startProp] === startDim[startProp]) {\n current.push(el);\n break;\n }\n if (i === 0) {\n sorted.unshift([el]);\n break;\n }\n }\n }\n return sorted;\n }\n function getOffset(element, offset = false) {\n let { offsetTop, offsetLeft, offsetHeight, offsetWidth } = element;\n if (offset) {\n [offsetTop, offsetLeft] = offsetPosition(element);\n }\n return {\n top: offsetTop,\n left: offsetLeft,\n bottom: offsetTop + offsetHeight,\n right: offsetLeft + offsetWidth\n };\n }\n\n var grid = {\n extends: Margin,\n mixins: [Class],\n name: \"grid\",\n props: {\n masonry: Boolean,\n parallax: Number\n },\n data: {\n margin: \"uk-grid-margin\",\n clsStack: \"uk-grid-stack\",\n masonry: false,\n parallax: 0\n },\n connected() {\n this.masonry && addClass(this.$el, \"uk-flex-top uk-flex-wrap-top\");\n },\n observe: scroll$1({ filter: ({ parallax }) => parallax }),\n update: [\n {\n write({ columns }) {\n toggleClass(this.$el, this.clsStack, columns.length < 2);\n },\n events: [\"resize\"]\n },\n {\n read(data) {\n let { columns, rows } = data;\n if (!columns.length || !this.masonry && !this.parallax || positionedAbsolute(this.$el)) {\n data.translates = false;\n return false;\n }\n let translates = false;\n const nodes = children(this.$el);\n const columnHeights = columns.map((column) => sumBy(column, \"offsetHeight\"));\n const margin = getMarginTop(nodes, this.margin) * (rows.length - 1);\n const elHeight = Math.max(...columnHeights) + margin;\n if (this.masonry) {\n columns = columns.map((column) => sortBy$1(column, \"offsetTop\"));\n translates = getTranslates(rows, columns);\n }\n let padding = Math.abs(this.parallax);\n if (padding) {\n padding = columnHeights.reduce(\n (newPadding, hgt, i) => Math.max(\n newPadding,\n hgt + margin + (i % 2 ? padding : padding / 8) - elHeight\n ),\n 0\n );\n }\n return { padding, columns, translates, height: translates ? elHeight : \"\" };\n },\n write({ height, padding }) {\n css(this.$el, \"paddingBottom\", padding || \"\");\n height !== false && css(this.$el, \"height\", height);\n },\n events: [\"resize\"]\n },\n {\n read() {\n if (this.parallax && positionedAbsolute(this.$el)) {\n return false;\n }\n return {\n scrolled: this.parallax ? scrolledOver(this.$el) * Math.abs(this.parallax) : false\n };\n },\n write({ columns, scrolled, translates }) {\n if (scrolled === false && !translates) {\n return;\n }\n columns.forEach(\n (column, i) => column.forEach(\n (el, j) => css(\n el,\n \"transform\",\n !scrolled && !translates ? \"\" : `translateY(${(translates && -translates[i][j]) + (scrolled ? i % 2 ? scrolled : scrolled / 8 : 0)}px)`\n )\n )\n );\n },\n events: [\"scroll\", \"resize\"]\n }\n ]\n };\n function positionedAbsolute(el) {\n return children(el).some((el2) => css(el2, \"position\") === \"absolute\");\n }\n function getTranslates(rows, columns) {\n const rowHeights = rows.map((row) => Math.max(...row.map((el) => el.offsetHeight)));\n return columns.map((elements) => {\n let prev = 0;\n return elements.map(\n (element, row) => prev += row ? rowHeights[row - 1] - elements[row - 1].offsetHeight : 0\n );\n });\n }\n function getMarginTop(nodes, cls) {\n const [node] = nodes.filter((el) => hasClass(el, cls));\n return toFloat(node ? css(node, \"marginTop\") : css(nodes[0], \"paddingLeft\"));\n }\n\n var heightMatch = {\n args: \"target\",\n props: {\n target: String,\n row: Boolean\n },\n data: {\n target: \"> *\",\n row: true\n },\n computed: {\n elements({ target }, $el) {\n return $$(target, $el);\n }\n },\n observe: resize({\n target: ({ $el, elements }) => [$el, ...elements]\n }),\n update: {\n read() {\n return {\n rows: (this.row ? getRows(this.elements) : [this.elements]).map(match)\n };\n },\n write({ rows }) {\n for (const { heights, elements } of rows) {\n elements.forEach((el, i) => css(el, \"minHeight\", heights[i]));\n }\n },\n events: [\"resize\"]\n }\n };\n function match(elements) {\n if (elements.length < 2) {\n return { heights: [\"\"], elements };\n }\n let heights = elements.map(getHeight);\n const max = Math.max(...heights);\n return {\n heights: elements.map((el, i) => heights[i].toFixed(2) === max.toFixed(2) ? \"\" : max),\n elements\n };\n }\n function getHeight(element) {\n const style = pick(element.style, [\"display\", \"minHeight\"]);\n if (!isVisible(element)) {\n css(element, \"display\", \"block\", \"important\");\n }\n css(element, \"minHeight\", \"\");\n const height = dimensions(element).height - boxModelAdjust(element, \"height\", \"content-box\");\n css(element, style);\n return height;\n }\n\n var heightViewport = {\n props: {\n expand: Boolean,\n offsetTop: Boolean,\n offsetBottom: Boolean,\n minHeight: Number\n },\n data: {\n expand: false,\n offsetTop: false,\n offsetBottom: false,\n minHeight: 0\n },\n // check for offsetTop change\n observe: resize({\n target: ({ $el }) => [$el, ...scrollParents($el)]\n }),\n update: {\n read() {\n if (!isVisible(this.$el)) {\n return false;\n }\n let minHeight = \"\";\n const box = boxModelAdjust(this.$el, \"height\", \"content-box\");\n const { body, scrollingElement } = document;\n const scrollElement = scrollParent(this.$el);\n const { height: viewportHeight } = offsetViewport(\n scrollElement === body ? scrollingElement : scrollElement\n );\n if (this.expand) {\n minHeight = `${viewportHeight - (dimensions(scrollElement).height - dimensions(this.$el).height) - box}px`;\n } else {\n const isScrollingElement = scrollingElement === scrollElement || body === scrollElement;\n minHeight = `calc(${isScrollingElement ? \"100vh\" : `${viewportHeight}px`}`;\n if (this.offsetTop) {\n if (isScrollingElement) {\n const top = offsetPosition(this.$el)[0] - offsetPosition(scrollElement)[0];\n minHeight += top > 0 && top < viewportHeight / 2 ? ` - ${top}px` : \"\";\n } else {\n minHeight += ` - ${css(scrollElement, \"paddingTop\")}`;\n }\n }\n if (this.offsetBottom === true) {\n minHeight += ` - ${dimensions(this.$el.nextElementSibling).height}px`;\n } else if (isNumeric(this.offsetBottom)) {\n minHeight += ` - ${this.offsetBottom}vh`;\n } else if (this.offsetBottom && endsWith(this.offsetBottom, \"px\")) {\n minHeight += ` - ${toFloat(this.offsetBottom)}px`;\n } else if (isString(this.offsetBottom)) {\n minHeight += ` - ${dimensions(query(this.offsetBottom, this.$el)).height}px`;\n }\n minHeight += `${box ? ` - ${box}px` : \"\"})`;\n }\n return { minHeight };\n },\n write({ minHeight }) {\n css(this.$el, \"minHeight\", `max(${this.minHeight || 0}px, ${minHeight})`);\n },\n events: [\"resize\"]\n }\n };\n\n var closeIcon = \"\";\n\n var closeLarge = \"\";\n\n var dropParentIcon = \"\";\n\n var marker = \"\";\n\n var navParentIconLarge = \"\";\n\n var navParentIcon = \"\";\n\n var navbarParentIcon = \"\";\n\n var navbarToggleIcon = \"\";\n\n var overlayIcon = \"\";\n\n var paginationNext = \"\";\n\n var paginationPrevious = \"\";\n\n var searchIcon = \"\";\n\n var searchLarge = \"\";\n\n var searchNavbar = \"\";\n\n var slidenavNextLarge = \"\";\n\n var slidenavNext = \"\";\n\n var slidenavPreviousLarge = \"\";\n\n var slidenavPrevious = \"\";\n\n var spinner = \"\";\n\n var totop = \"\";\n\n var I18n = {\n props: {\n i18n: Object\n },\n data: {\n i18n: null\n },\n methods: {\n t(key, ...params) {\n var _a, _b, _c;\n let i = 0;\n return ((_c = ((_a = this.i18n) == null ? void 0 : _a[key]) || ((_b = this.$options.i18n) == null ? void 0 : _b[key])) == null ? void 0 : _c.replace(\n /%s/g,\n () => params[i++] || \"\"\n )) || \"\";\n }\n }\n };\n\n var Svg = {\n args: \"src\",\n props: {\n width: Number,\n height: Number,\n ratio: Number\n },\n data: {\n ratio: 1\n },\n connected() {\n this.svg = this.getSvg().then((el) => {\n if (!this._connected) {\n return;\n }\n const svg = insertSVG(el, this.$el);\n if (this.svgEl && svg !== this.svgEl) {\n remove$1(this.svgEl);\n }\n applyWidthAndHeight.call(this, svg, el);\n return this.svgEl = svg;\n }, noop);\n },\n disconnected() {\n this.svg.then((svg) => {\n if (this._connected) {\n return;\n }\n if (isVoidElement(this.$el)) {\n this.$el.hidden = false;\n }\n remove$1(svg);\n this.svgEl = null;\n });\n this.svg = null;\n },\n methods: {\n async getSvg() {\n }\n }\n };\n function insertSVG(el, root) {\n if (isVoidElement(root) || isTag(root, \"canvas\")) {\n root.hidden = true;\n const next = root.nextElementSibling;\n return equals(el, next) ? next : after(root, el);\n }\n const last = root.lastElementChild;\n return equals(el, last) ? last : append(root, el);\n }\n function equals(el, other) {\n return isTag(el, \"svg\") && isTag(other, \"svg\") && el.innerHTML === other.innerHTML;\n }\n function applyWidthAndHeight(el, ref) {\n const props = [\"width\", \"height\"];\n let dimensions = props.map((prop) => this[prop]);\n if (!dimensions.some((val) => val)) {\n dimensions = props.map((prop) => attr(ref, prop));\n }\n const viewBox = attr(ref, \"viewBox\");\n if (viewBox && !dimensions.some((val) => val)) {\n dimensions = viewBox.split(\" \").slice(2);\n }\n dimensions.forEach((val, i) => attr(el, props[i], toFloat(val) * this.ratio || null));\n }\n\n const icons = {\n spinner,\n totop,\n marker,\n \"close-icon\": closeIcon,\n \"close-large\": closeLarge,\n \"drop-parent-icon\": dropParentIcon,\n \"nav-parent-icon\": navParentIcon,\n \"nav-parent-icon-large\": navParentIconLarge,\n \"navbar-parent-icon\": navbarParentIcon,\n \"navbar-toggle-icon\": navbarToggleIcon,\n \"overlay-icon\": overlayIcon,\n \"pagination-next\": paginationNext,\n \"pagination-previous\": paginationPrevious,\n \"search-icon\": searchIcon,\n \"search-large\": searchLarge,\n \"search-navbar\": searchNavbar,\n \"slidenav-next\": slidenavNext,\n \"slidenav-next-large\": slidenavNextLarge,\n \"slidenav-previous\": slidenavPrevious,\n \"slidenav-previous-large\": slidenavPreviousLarge\n };\n const Icon = {\n install: install$1,\n mixins: [Svg],\n args: \"icon\",\n props: { icon: String },\n isIcon: true,\n beforeConnect() {\n addClass(this.$el, \"uk-icon\");\n },\n methods: {\n async getSvg() {\n const icon = getIcon(this.icon);\n if (!icon) {\n throw \"Icon not found.\";\n }\n return icon;\n }\n }\n };\n const IconComponent = {\n args: false,\n extends: Icon,\n data: (vm) => ({\n icon: hyphenate(vm.constructor.options.name)\n }),\n beforeConnect() {\n addClass(this.$el, this.$options.id);\n }\n };\n const NavParentIcon = {\n extends: IconComponent,\n beforeConnect() {\n const icon = this.$props.icon;\n this.icon = closest(this.$el, \".uk-nav-primary\") ? `${icon}-large` : icon;\n }\n };\n const Search = {\n extends: IconComponent,\n mixins: [I18n],\n i18n: { toggle: \"Open Search\", submit: \"Submit Search\" },\n beforeConnect() {\n this.icon = hasClass(this.$el, \"uk-search-icon\") && parents(this.$el, \".uk-search-large\").length ? \"search-large\" : parents(this.$el, \".uk-search-navbar\").length ? \"search-navbar\" : this.$props.icon;\n if (hasAttr(this.$el, \"aria-label\")) {\n return;\n }\n if (hasClass(this.$el, \"uk-search-toggle\") || hasClass(this.$el, \"uk-navbar-toggle\")) {\n const label = this.t(\"toggle\");\n attr(this.$el, \"aria-label\", label);\n } else {\n const button = closest(this.$el, \"a,button\");\n if (button) {\n const label = this.t(\"submit\");\n attr(button, \"aria-label\", label);\n }\n }\n }\n };\n const Spinner = {\n extends: IconComponent,\n beforeConnect() {\n attr(this.$el, \"role\", \"status\");\n },\n methods: {\n async getSvg() {\n const icon = await Icon.methods.getSvg.call(this);\n if (this.ratio !== 1) {\n css($(\"circle\", icon), \"strokeWidth\", 1 / this.ratio);\n }\n return icon;\n }\n }\n };\n const ButtonComponent = {\n extends: IconComponent,\n mixins: [I18n],\n beforeConnect() {\n const button = closest(this.$el, \"a,button\");\n attr(button, \"role\", this.role !== null && isTag(button, \"a\") ? \"button\" : this.role);\n const label = this.t(\"label\");\n if (label && !hasAttr(button, \"aria-label\")) {\n attr(button, \"aria-label\", label);\n }\n }\n };\n const Slidenav = {\n extends: ButtonComponent,\n beforeConnect() {\n addClass(this.$el, \"uk-slidenav\");\n const icon = this.$props.icon;\n this.icon = hasClass(this.$el, \"uk-slidenav-large\") ? `${icon}-large` : icon;\n }\n };\n const NavbarToggleIcon = {\n extends: ButtonComponent,\n i18n: { label: \"Open menu\" }\n };\n const Close = {\n extends: ButtonComponent,\n i18n: { label: \"Close\" },\n beforeConnect() {\n this.icon = `close-${hasClass(this.$el, \"uk-close-large\") ? \"large\" : \"icon\"}`;\n }\n };\n const Marker = {\n extends: ButtonComponent,\n i18n: { label: \"Open\" }\n };\n const Totop = {\n extends: ButtonComponent,\n i18n: { label: \"Back to top\" }\n };\n const PaginationNext = {\n extends: ButtonComponent,\n i18n: { label: \"Next page\" },\n data: { role: null }\n };\n const PaginationPrevious = {\n extends: ButtonComponent,\n i18n: { label: \"Previous page\" },\n data: { role: null }\n };\n const parsed = {};\n function install$1(UIkit) {\n UIkit.icon.add = (name, svg) => {\n const added = isString(name) ? { [name]: svg } : name;\n each(added, (svg2, name2) => {\n icons[name2] = svg2;\n delete parsed[name2];\n });\n if (UIkit._initialized) {\n apply(\n document.body,\n (el) => each(UIkit.getComponents(el), (cmp) => {\n cmp.$options.isIcon && cmp.icon in added && cmp.$reset();\n })\n );\n }\n };\n }\n function getIcon(icon) {\n if (!icons[icon]) {\n return null;\n }\n if (!parsed[icon]) {\n parsed[icon] = $((icons[applyRtl(icon)] || icons[icon]).trim());\n }\n return parsed[icon].cloneNode(true);\n }\n function applyRtl(icon) {\n return isRtl ? swap(swap(icon, \"left\", \"right\"), \"previous\", \"next\") : icon;\n }\n\n const nativeLazyLoad = inBrowser && \"loading\" in HTMLImageElement.prototype;\n var img = {\n args: \"dataSrc\",\n props: {\n dataSrc: String,\n sources: String,\n margin: String,\n target: String,\n loading: String\n },\n data: {\n dataSrc: \"\",\n sources: false,\n margin: \"50%\",\n target: false,\n loading: \"lazy\"\n },\n connected() {\n if (this.loading !== \"lazy\") {\n this.load();\n return;\n }\n if (nativeLazyLoad && isImg(this.$el)) {\n this.$el.loading = \"lazy\";\n setSrcAttrs(this.$el);\n }\n ensureSrcAttribute(this.$el);\n },\n disconnected() {\n if (this.img) {\n this.img.onload = \"\";\n }\n delete this.img;\n },\n observe: intersection({\n target: ({ $el, $props }) => [$el, ...queryAll($props.target, $el)],\n handler(entries, observer) {\n this.load();\n observer.disconnect();\n },\n options: ({ margin }) => ({ rootMargin: margin }),\n filter: ({ loading }) => loading === \"lazy\"\n }),\n methods: {\n load() {\n if (this.img) {\n return this.img;\n }\n const image = isImg(this.$el) ? this.$el : getImageFromElement(this.$el, this.dataSrc, this.sources);\n removeAttr(image, \"loading\");\n setSrcAttrs(this.$el, image.currentSrc);\n return this.img = image;\n }\n }\n };\n function setSrcAttrs(el, src) {\n if (isImg(el)) {\n const parentNode = parent(el);\n const elements = isTag(parentNode, \"picture\") ? children(parentNode) : [el];\n elements.forEach((el2) => setSourceProps(el2, el2));\n } else if (src) {\n const change = !includes(el.style.backgroundImage, src);\n if (change) {\n css(el, \"backgroundImage\", `url(${escape(src)})`);\n trigger(el, createEvent(\"load\", false));\n }\n }\n }\n const srcProps = [\"data-src\", \"data-srcset\", \"sizes\"];\n function setSourceProps(sourceEl, targetEl) {\n for (const prop of srcProps) {\n const value = data(sourceEl, prop);\n if (value) {\n attr(targetEl, prop.replace(/^(data-)+/, \"\"), value);\n }\n }\n }\n function getImageFromElement(el, src, sources) {\n const img = new Image();\n wrapInPicture(img, sources);\n setSourceProps(el, img);\n img.onload = () => {\n setSrcAttrs(el, img.currentSrc);\n };\n attr(img, \"src\", src);\n return img;\n }\n function wrapInPicture(img, sources) {\n sources = parseSources(sources);\n if (sources.length) {\n const picture = fragment(\"\");\n for (const attrs of sources) {\n const source = fragment(\"\");\n attr(source, attrs);\n append(picture, source);\n }\n append(picture, img);\n }\n }\n function parseSources(sources) {\n if (!sources) {\n return [];\n }\n if (startsWith(sources, \"[\")) {\n try {\n sources = JSON.parse(sources);\n } catch (e) {\n sources = [];\n }\n } else {\n sources = parseOptions(sources);\n }\n if (!isArray(sources)) {\n sources = [sources];\n }\n return sources.filter((source) => !isEmpty(source));\n }\n function ensureSrcAttribute(el) {\n if (isImg(el) && !hasAttr(el, \"src\")) {\n attr(el, \"src\", 'data:image/svg+xml;utf8,');\n }\n }\n function isImg(el) {\n return isTag(el, \"img\");\n }\n\n var Media = {\n props: {\n media: Boolean\n },\n data: {\n media: false\n },\n connected() {\n const media = toMedia(this.media, this.$el);\n this.matchMedia = true;\n if (media) {\n this.mediaObj = window.matchMedia(media);\n const handler = () => {\n this.matchMedia = this.mediaObj.matches;\n trigger(this.$el, createEvent(\"mediachange\", false, true, [this.mediaObj]));\n };\n this.offMediaObj = on(this.mediaObj, \"change\", () => {\n handler();\n this.$emit(\"resize\");\n });\n handler();\n }\n },\n disconnected() {\n var _a;\n (_a = this.offMediaObj) == null ? void 0 : _a.call(this);\n }\n };\n function toMedia(value, element) {\n if (isString(value)) {\n if (startsWith(value, \"@\")) {\n value = toFloat(css(element, `--uk-breakpoint-${value.substr(1)}`));\n } else if (isNaN(value)) {\n return value;\n }\n }\n return value && isNumeric(value) ? `(min-width: ${value}px)` : \"\";\n }\n\n var leader = {\n mixins: [Class, Media],\n props: {\n fill: String\n },\n data: {\n fill: \"\",\n clsWrapper: \"uk-leader-fill\",\n clsHide: \"uk-leader-hide\",\n attrFill: \"data-fill\"\n },\n computed: {\n fill({ fill }) {\n return fill || css(this.$el, \"--uk-leader-fill-content\");\n }\n },\n connected() {\n [this.wrapper] = wrapInner(this.$el, ``);\n },\n disconnected() {\n unwrap(this.wrapper.childNodes);\n },\n observe: resize(),\n update: {\n read() {\n const width = Math.trunc(this.$el.offsetWidth / 2);\n return {\n width,\n fill: this.fill,\n hide: !this.matchMedia\n };\n },\n write({ width, fill, hide }) {\n toggleClass(this.wrapper, this.clsHide, hide);\n attr(this.wrapper, this.attrFill, new Array(width).join(fill));\n },\n events: [\"resize\"]\n }\n };\n\n const active = [];\n var Modal = {\n mixins: [Class, Container, Togglable],\n props: {\n selPanel: String,\n selClose: String,\n escClose: Boolean,\n bgClose: Boolean,\n stack: Boolean,\n role: String\n },\n data: {\n cls: \"uk-open\",\n escClose: true,\n bgClose: true,\n overlay: true,\n stack: false,\n role: \"dialog\"\n },\n computed: {\n panel({ selPanel }, $el) {\n return $(selPanel, $el);\n },\n transitionElement() {\n return this.panel;\n },\n bgClose({ bgClose }) {\n return bgClose && this.panel;\n }\n },\n connected() {\n attr(this.panel || this.$el, \"role\", this.role);\n if (this.overlay) {\n attr(this.panel || this.$el, \"aria-modal\", true);\n }\n },\n beforeDisconnect() {\n if (includes(active, this)) {\n this.toggleElement(this.$el, false, false);\n }\n },\n events: [\n {\n name: \"click\",\n delegate() {\n return `${this.selClose},a[href*=\"#\"]`;\n },\n handler(e) {\n const { current, defaultPrevented } = e;\n const { hash } = current;\n if (!defaultPrevented && hash && isSameSiteAnchor(current) && !within(hash, this.$el) && $(hash, document.body)) {\n this.hide();\n } else if (matches(current, this.selClose)) {\n e.preventDefault();\n this.hide();\n }\n }\n },\n {\n name: \"toggle\",\n self: true,\n handler(e) {\n if (e.defaultPrevented) {\n return;\n }\n e.preventDefault();\n if (this.isToggled() === includes(active, this)) {\n this.toggle();\n }\n }\n },\n {\n name: \"beforeshow\",\n self: true,\n handler(e) {\n if (includes(active, this)) {\n return false;\n }\n if (!this.stack && active.length) {\n Promise.all(active.map((modal) => modal.hide())).then(this.show);\n e.preventDefault();\n } else {\n active.push(this);\n }\n }\n },\n {\n name: \"show\",\n self: true,\n handler() {\n if (this.stack) {\n css(this.$el, \"zIndex\", toFloat(css(this.$el, \"zIndex\")) + active.length);\n }\n const handlers = [\n this.overlay && preventBackgroundFocus(this),\n this.overlay && preventBackgroundScroll(this.$el),\n this.bgClose && listenForBackgroundClose(this),\n this.escClose && listenForEscClose(this)\n ];\n once(\n this.$el,\n \"hidden\",\n () => handlers.forEach((handler) => handler && handler()),\n { self: true }\n );\n addClass(document.documentElement, this.clsPage);\n }\n },\n {\n name: \"shown\",\n self: true,\n handler() {\n if (!isFocusable(this.$el)) {\n attr(this.$el, \"tabindex\", \"-1\");\n }\n if (!matches(this.$el, \":focus-within\")) {\n this.$el.focus();\n }\n }\n },\n {\n name: \"hidden\",\n self: true,\n handler() {\n if (includes(active, this)) {\n active.splice(active.indexOf(this), 1);\n }\n css(this.$el, \"zIndex\", \"\");\n if (!active.some((modal) => modal.clsPage === this.clsPage)) {\n removeClass(document.documentElement, this.clsPage);\n }\n }\n }\n ],\n methods: {\n toggle() {\n return this.isToggled() ? this.hide() : this.show();\n },\n show() {\n if (this.container && parent(this.$el) !== this.container) {\n append(this.container, this.$el);\n return new Promise(\n (resolve) => requestAnimationFrame(() => this.show().then(resolve))\n );\n }\n return this.toggleElement(this.$el, true, animate);\n },\n hide() {\n return this.toggleElement(this.$el, false, animate);\n }\n }\n };\n function animate(el, show, { transitionElement, _toggle }) {\n return new Promise(\n (resolve, reject) => once(el, \"show hide\", () => {\n var _a;\n (_a = el._reject) == null ? void 0 : _a.call(el);\n el._reject = reject;\n _toggle(el, show);\n const off = once(\n transitionElement,\n \"transitionstart\",\n () => {\n once(transitionElement, \"transitionend transitioncancel\", resolve, {\n self: true\n });\n clearTimeout(timer);\n },\n { self: true }\n );\n const timer = setTimeout(\n () => {\n off();\n resolve();\n },\n toMs(css(transitionElement, \"transitionDuration\"))\n );\n })\n ).then(() => delete el._reject);\n }\n function toMs(time) {\n return time ? endsWith(time, \"ms\") ? toFloat(time) : toFloat(time) * 1e3 : 0;\n }\n function preventBackgroundFocus(modal) {\n return on(document, \"focusin\", (e) => {\n if (last(active) === modal && !within(e.target, modal.$el)) {\n modal.$el.focus();\n }\n });\n }\n function listenForBackgroundClose(modal) {\n return on(document, pointerDown, ({ target }) => {\n if (last(active) !== modal || modal.overlay && !within(target, modal.$el) || within(target, modal.panel)) {\n return;\n }\n once(\n document,\n `${pointerUp} ${pointerCancel} scroll`,\n ({ defaultPrevented, type, target: newTarget }) => {\n if (!defaultPrevented && type === pointerUp && target === newTarget) {\n modal.hide();\n }\n },\n true\n );\n });\n }\n function listenForEscClose(modal) {\n return on(document, \"keydown\", (e) => {\n if (e.keyCode === 27 && last(active) === modal) {\n modal.hide();\n }\n });\n }\n\n var modal = {\n install,\n mixins: [Modal],\n data: {\n clsPage: \"uk-modal-page\",\n selPanel: \".uk-modal-dialog\",\n selClose: \".uk-modal-close, .uk-modal-close-default, .uk-modal-close-outside, .uk-modal-close-full\"\n },\n events: [\n {\n name: \"show\",\n self: true,\n handler() {\n if (hasClass(this.panel, \"uk-margin-auto-vertical\")) {\n addClass(this.$el, \"uk-flex\");\n } else {\n css(this.$el, \"display\", \"block\");\n }\n height(this.$el);\n }\n },\n {\n name: \"hidden\",\n self: true,\n handler() {\n css(this.$el, \"display\", \"\");\n removeClass(this.$el, \"uk-flex\");\n }\n }\n ]\n };\n function install({ modal }) {\n modal.dialog = function(content, options) {\n const dialog = modal(\n `
${content}
`,\n { stack: true, role: \"alertdialog\", ...options }\n );\n dialog.show();\n on(\n dialog.$el,\n \"hidden\",\n async () => {\n await Promise.resolve();\n dialog.$destroy(true);\n },\n { self: true }\n );\n return dialog;\n };\n modal.alert = function(message, options) {\n return openDialog(\n ({ i18n }) => `
${isString(message) ? message : html(message)}
`,\n options\n );\n };\n modal.confirm = function(message, options) {\n return openDialog(\n ({ i18n }) => `
${isString(message) ? message : html(message)}
`,\n options,\n () => Promise.reject()\n );\n };\n modal.prompt = function(message, value, options) {\n const promise = openDialog(\n ({ i18n }) => `
`,\n options,\n () => null,\n () => input.value\n );\n const { $el } = promise.dialog;\n const input = $(\"input\", $el);\n on($el, \"show\", () => input.select());\n return promise;\n };\n modal.i18n = {\n ok: \"Ok\",\n cancel: \"Cancel\"\n };\n function openDialog(tmpl, options, hideFn = noop, submitFn = noop) {\n options = {\n bgClose: false,\n escClose: true,\n ...options,\n i18n: { ...modal.i18n, ...options == null ? void 0 : options.i18n }\n };\n const dialog = modal.dialog(tmpl(options), options);\n return assign(\n new Promise((resolve) => {\n const off = on(dialog.$el, \"hide\", () => resolve(hideFn()));\n on(dialog.$el, \"submit\", \"form\", (e) => {\n e.preventDefault();\n resolve(submitFn(dialog));\n off();\n dialog.hide();\n });\n }),\n { dialog }\n );\n }\n }\n\n var nav = {\n extends: Accordion,\n data: {\n targets: \"> .uk-parent\",\n toggle: \"> a\",\n content: \"> ul\"\n }\n };\n\n var navbar = {\n extends: Dropnav,\n data: {\n clsDrop: \"uk-navbar-dropdown\",\n selNavItem: \".uk-navbar-nav > li > a,a.uk-navbar-item,button.uk-navbar-item,.uk-navbar-item a,.uk-navbar-item button,.uk-navbar-toggle\"\n // Simplify with :where() selector once browser target is Safari 14+\n },\n watch: {\n items() {\n const justify = hasClass(this.$el, \"uk-navbar-justify\");\n for (const container of $$(\n \".uk-navbar-nav, .uk-navbar-left, .uk-navbar-right\",\n this.$el\n )) {\n css(\n container,\n \"flexGrow\",\n justify ? $$(\n \".uk-navbar-nav > li > a, .uk-navbar-item, .uk-navbar-toggle\",\n container\n ).length : \"\"\n );\n }\n }\n }\n };\n\n var offcanvas = {\n mixins: [Modal],\n args: \"mode\",\n props: {\n mode: String,\n flip: Boolean,\n overlay: Boolean,\n swiping: Boolean\n },\n data: {\n mode: \"slide\",\n flip: false,\n overlay: false,\n clsPage: \"uk-offcanvas-page\",\n clsContainer: \"uk-offcanvas-container\",\n selPanel: \".uk-offcanvas-bar\",\n clsFlip: \"uk-offcanvas-flip\",\n clsContainerAnimation: \"uk-offcanvas-container-animation\",\n clsSidebarAnimation: \"uk-offcanvas-bar-animation\",\n clsMode: \"uk-offcanvas\",\n clsOverlay: \"uk-offcanvas-overlay\",\n selClose: \".uk-offcanvas-close\",\n container: false,\n swiping: true\n },\n computed: {\n clsFlip({ flip, clsFlip }) {\n return flip ? clsFlip : \"\";\n },\n clsOverlay({ overlay, clsOverlay }) {\n return overlay ? clsOverlay : \"\";\n },\n clsMode({ mode, clsMode }) {\n return `${clsMode}-${mode}`;\n },\n clsSidebarAnimation({ mode, clsSidebarAnimation }) {\n return mode === \"none\" || mode === \"reveal\" ? \"\" : clsSidebarAnimation;\n },\n clsContainerAnimation({ mode, clsContainerAnimation }) {\n return mode !== \"push\" && mode !== \"reveal\" ? \"\" : clsContainerAnimation;\n },\n transitionElement({ mode }) {\n return mode === \"reveal\" ? parent(this.panel) : this.panel;\n }\n },\n observe: swipe({ filter: ({ swiping }) => swiping }),\n update: {\n read() {\n if (this.isToggled() && !isVisible(this.$el)) {\n this.hide();\n }\n },\n events: [\"resize\"]\n },\n events: [\n {\n name: \"touchmove\",\n self: true,\n passive: false,\n filter() {\n return this.overlay;\n },\n handler(e) {\n e.cancelable && e.preventDefault();\n }\n },\n {\n name: \"show\",\n self: true,\n handler() {\n if (this.mode === \"reveal\" && !hasClass(parent(this.panel), this.clsMode)) {\n wrapAll(this.panel, \"
\");\n addClass(parent(this.panel), this.clsMode);\n }\n const { body, scrollingElement } = document;\n addClass(body, this.clsContainer, this.clsFlip);\n css(body, \"touch-action\", \"pan-y pinch-zoom\");\n css(this.$el, \"display\", \"block\");\n css(this.panel, \"maxWidth\", scrollingElement.clientWidth);\n addClass(this.$el, this.clsOverlay);\n addClass(\n this.panel,\n this.clsSidebarAnimation,\n this.mode === \"reveal\" ? \"\" : this.clsMode\n );\n height(body);\n addClass(body, this.clsContainerAnimation);\n this.clsContainerAnimation && suppressUserScale();\n }\n },\n {\n name: \"hide\",\n self: true,\n handler() {\n removeClass(document.body, this.clsContainerAnimation);\n css(document.body, \"touch-action\", \"\");\n }\n },\n {\n name: \"hidden\",\n self: true,\n handler() {\n this.clsContainerAnimation && resumeUserScale();\n if (this.mode === \"reveal\") {\n unwrap(this.panel);\n }\n removeClass(this.panel, this.clsSidebarAnimation, this.clsMode);\n removeClass(this.$el, this.clsOverlay);\n css(this.$el, \"display\", \"\");\n css(this.panel, \"maxWidth\", \"\");\n removeClass(document.body, this.clsContainer, this.clsFlip);\n }\n },\n {\n name: \"swipeLeft swipeRight\",\n handler(e) {\n if (this.isToggled() && endsWith(e.type, \"Left\") ^ this.flip) {\n this.hide();\n }\n }\n }\n ]\n };\n function suppressUserScale() {\n getViewport().content += \",user-scalable=0\";\n }\n function resumeUserScale() {\n const viewport = getViewport();\n viewport.content = viewport.content.replace(/,user-scalable=0$/, \"\");\n }\n function getViewport() {\n return $('meta[name=\"viewport\"]', document.head) || append(document.head, '');\n }\n\n var overflowAuto = {\n mixins: [Class],\n props: {\n selContainer: String,\n selContent: String,\n minHeight: Number\n },\n data: {\n selContainer: \".uk-modal\",\n selContent: \".uk-modal-dialog\",\n minHeight: 150\n },\n computed: {\n container({ selContainer }, $el) {\n return closest($el, selContainer);\n },\n content({ selContent }, $el) {\n return closest($el, selContent);\n }\n },\n observe: resize({\n target: ({ container, content }) => [container, content]\n }),\n update: {\n read() {\n if (!this.content || !this.container || !isVisible(this.$el)) {\n return false;\n }\n return {\n max: Math.max(\n this.minHeight,\n height(this.container) - (dimensions(this.content).height - height(this.$el))\n )\n };\n },\n write({ max }) {\n css(this.$el, { minHeight: this.minHeight, maxHeight: max });\n },\n events: [\"resize\"]\n }\n };\n\n var responsive = {\n props: [\"width\", \"height\"],\n connected() {\n addClass(this.$el, \"uk-responsive-width\");\n },\n observe: resize({\n target: ({ $el }) => [$el, parent($el)]\n }),\n update: {\n read() {\n return isVisible(this.$el) && this.width && this.height ? { width: width(parent(this.$el)), height: this.height } : false;\n },\n write(dim) {\n height(\n this.$el,\n Dimensions.contain(\n {\n height: this.height,\n width: this.width\n },\n dim\n ).height\n );\n },\n events: [\"resize\"]\n }\n };\n\n var scroll = {\n props: {\n offset: Number\n },\n data: {\n offset: 0\n },\n connected() {\n registerClick(this);\n },\n disconnected() {\n unregisterClick(this);\n },\n methods: {\n async scrollTo(el) {\n el = el && $(el) || document.body;\n if (trigger(this.$el, \"beforescroll\", [this, el])) {\n await scrollIntoView(el, { offset: this.offset });\n trigger(this.$el, \"scrolled\", [this, el]);\n }\n }\n }\n };\n const instances = /* @__PURE__ */ new Set();\n function registerClick(cmp) {\n if (!instances.size) {\n on(document, \"click\", clickHandler);\n }\n instances.add(cmp);\n }\n function unregisterClick(cmp) {\n instances.delete(cmp);\n if (!instances.size) {\n off(document, \"click\", clickHandler);\n }\n }\n function clickHandler(e) {\n if (e.defaultPrevented) {\n return;\n }\n for (const instance of instances) {\n if (within(e.target, instance.$el) && isSameSiteAnchor(instance.$el)) {\n e.preventDefault();\n if (window.location.href !== instance.$el.href) {\n window.history.pushState({}, \"\", instance.$el.href);\n }\n instance.scrollTo(getTargetedElement(instance.$el));\n }\n }\n }\n\n var scrollspy = {\n args: \"cls\",\n props: {\n cls: String,\n target: String,\n hidden: Boolean,\n margin: String,\n repeat: Boolean,\n delay: Number\n },\n data: () => ({\n cls: \"\",\n target: false,\n hidden: true,\n margin: \"-1px\",\n repeat: false,\n delay: 0,\n inViewClass: \"uk-scrollspy-inview\"\n }),\n computed: {\n elements({ target }, $el) {\n return target ? $$(target, $el) : [$el];\n }\n },\n watch: {\n elements(elements) {\n if (this.hidden) {\n css(filter(elements, `:not(.${this.inViewClass})`), \"opacity\", 0);\n }\n }\n },\n connected() {\n this.elementData = /* @__PURE__ */ new Map();\n },\n disconnected() {\n for (const [el, state] of this.elementData.entries()) {\n removeClass(el, this.inViewClass, (state == null ? void 0 : state.cls) || \"\");\n }\n delete this.elementData;\n },\n observe: intersection({\n target: ({ elements }) => elements,\n handler(records) {\n const elements = this.elementData;\n for (const { target: el, isIntersecting } of records) {\n if (!elements.has(el)) {\n elements.set(el, {\n cls: data(el, \"uk-scrollspy-class\") || this.cls\n });\n }\n const state = elements.get(el);\n if (!this.repeat && state.show) {\n continue;\n }\n state.show = isIntersecting;\n }\n this.$emit();\n },\n options: (instance) => ({ rootMargin: instance.margin }),\n args: { intersecting: false }\n }),\n update: [\n {\n write(data) {\n for (const [el, state] of this.elementData.entries()) {\n if (state.show && !state.inview && !state.queued) {\n state.queued = true;\n data.promise = (data.promise || Promise.resolve()).then(() => new Promise((resolve) => setTimeout(resolve, this.delay))).then(() => {\n this.toggle(el, true);\n setTimeout(() => {\n state.queued = false;\n this.$emit();\n }, 300);\n });\n } else if (!state.show && state.inview && !state.queued && this.repeat) {\n this.toggle(el, false);\n }\n }\n }\n }\n ],\n methods: {\n toggle(el, inview) {\n var _a;\n const state = this.elementData.get(el);\n if (!state) {\n return;\n }\n (_a = state.off) == null ? void 0 : _a.call(state);\n css(el, \"opacity\", !inview && this.hidden ? 0 : \"\");\n toggleClass(el, this.inViewClass, inview);\n toggleClass(el, state.cls);\n if (/\\buk-animation-/.test(state.cls)) {\n const removeAnimationClasses = () => removeClasses(el, \"uk-animation-[\\\\w-]+\");\n if (inview) {\n state.off = once(el, \"animationcancel animationend\", removeAnimationClasses);\n } else {\n removeAnimationClasses();\n }\n }\n trigger(el, inview ? \"inview\" : \"outview\");\n state.inview = inview;\n this.$update(el);\n }\n }\n };\n\n var scrollspyNav = {\n props: {\n cls: String,\n closest: String,\n scroll: Boolean,\n overflow: Boolean,\n offset: Number\n },\n data: {\n cls: \"uk-active\",\n closest: false,\n scroll: false,\n overflow: true,\n offset: 0\n },\n computed: {\n links(_, $el) {\n return $$('a[href*=\"#\"]', $el).filter((el) => el.hash && isSameSiteAnchor(el));\n },\n elements({ closest: selector }) {\n return closest(this.links, selector || \"*\");\n }\n },\n watch: {\n links(links) {\n if (this.scroll) {\n this.$create(\"scroll\", links, { offset: this.offset || 0 });\n }\n }\n },\n observe: [intersection(), scroll$1()],\n update: [\n {\n read() {\n const targets = this.links.map(getTargetedElement).filter(Boolean);\n const { length } = targets;\n if (!length || !isVisible(this.$el)) {\n return false;\n }\n const scrollElement = scrollParent(targets, true);\n const { scrollTop, scrollHeight } = scrollElement;\n const viewport = offsetViewport(scrollElement);\n const max = scrollHeight - viewport.height;\n let active = false;\n if (scrollTop === max) {\n active = length - 1;\n } else {\n for (let i = 0; i < targets.length; i++) {\n if (offset(targets[i]).top - viewport.top - this.offset > 0) {\n break;\n }\n active = +i;\n }\n if (active === false && this.overflow) {\n active = 0;\n }\n }\n return { active };\n },\n write({ active }) {\n const changed = active !== false && !hasClass(this.elements[active], this.cls);\n this.links.forEach((el) => el.blur());\n for (let i = 0; i < this.elements.length; i++) {\n toggleClass(this.elements[i], this.cls, +i === active);\n }\n if (changed) {\n trigger(this.$el, \"active\", [active, this.elements[active]]);\n }\n },\n events: [\"scroll\", \"resize\"]\n }\n ]\n };\n\n var sticky = {\n mixins: [Class, Media],\n props: {\n position: String,\n top: null,\n bottom: null,\n start: null,\n end: null,\n offset: String,\n overflowFlip: Boolean,\n animation: String,\n clsActive: String,\n clsInactive: String,\n clsFixed: String,\n clsBelow: String,\n selTarget: String,\n showOnUp: Boolean,\n targetOffset: Number\n },\n data: {\n position: \"top\",\n top: false,\n bottom: false,\n start: false,\n end: false,\n offset: 0,\n overflowFlip: false,\n animation: \"\",\n clsActive: \"uk-active\",\n clsInactive: \"\",\n clsFixed: \"uk-sticky-fixed\",\n clsBelow: \"uk-sticky-below\",\n selTarget: \"\",\n showOnUp: false,\n targetOffset: false\n },\n computed: {\n selTarget({ selTarget }, $el) {\n return selTarget && $(selTarget, $el) || $el;\n }\n },\n connected() {\n this.start = coerce(this.start || this.top);\n this.end = coerce(this.end || this.bottom);\n this.placeholder = $(\"+ .uk-sticky-placeholder\", this.$el) || $('
');\n this.isFixed = false;\n this.setActive(false);\n },\n beforeDisconnect() {\n if (this.isFixed) {\n this.hide();\n removeClass(this.selTarget, this.clsInactive);\n }\n reset(this.$el);\n remove$1(this.placeholder);\n this.placeholder = null;\n },\n observe: [\n viewport(),\n scroll$1({ target: () => document.scrollingElement }),\n resize({ target: ({ $el }) => [$el, document.scrollingElement] })\n ],\n events: [\n {\n name: \"load hashchange popstate\",\n el() {\n return window;\n },\n filter() {\n return this.targetOffset !== false;\n },\n handler() {\n const { scrollingElement } = document;\n if (!location.hash || scrollingElement.scrollTop === 0) {\n return;\n }\n setTimeout(() => {\n const targetOffset = offset($(location.hash));\n const elOffset = offset(this.$el);\n if (this.isFixed && intersectRect(targetOffset, elOffset)) {\n scrollingElement.scrollTop = targetOffset.top - elOffset.height - toPx(this.targetOffset, \"height\", this.placeholder) - toPx(this.offset, \"height\", this.placeholder);\n }\n });\n }\n },\n {\n name: \"transitionstart\",\n capture: true,\n handler() {\n this.transitionInProgress = once(\n this.$el,\n \"transitionend transitioncancel\",\n () => this.transitionInProgress = null\n );\n }\n }\n ],\n update: [\n {\n read({ height: height$1, width, margin, sticky }) {\n this.inactive = !this.matchMedia || !isVisible(this.$el);\n if (this.inactive) {\n return;\n }\n const hide = this.isFixed && !this.transitionInProgress;\n if (hide) {\n preventTransition(this.selTarget);\n this.hide();\n }\n if (!this.active) {\n ({ height: height$1, width } = offset(this.$el));\n margin = css(this.$el, \"margin\");\n }\n if (hide) {\n this.show();\n }\n const viewport2 = toPx(\"100vh\", \"height\");\n const dynamicViewport = height(window);\n const maxScrollHeight = document.scrollingElement.scrollHeight - viewport2;\n let position = this.position;\n if (this.overflowFlip && height$1 > viewport2) {\n position = position === \"top\" ? \"bottom\" : \"top\";\n }\n const referenceElement = this.isFixed ? this.placeholder : this.$el;\n let offset$1 = toPx(this.offset, \"height\", sticky ? this.$el : referenceElement);\n if (position === \"bottom\" && (height$1 < dynamicViewport || this.overflowFlip)) {\n offset$1 += dynamicViewport - height$1;\n }\n const overflow = this.overflowFlip ? 0 : Math.max(0, height$1 + offset$1 - viewport2);\n const topOffset = offset(referenceElement).top;\n const elHeight = offset(this.$el).height;\n const start = (this.start === false ? topOffset : parseProp(this.start, this.$el, topOffset)) - offset$1;\n const end = this.end === false ? maxScrollHeight : Math.min(\n maxScrollHeight,\n parseProp(this.end, this.$el, topOffset + height$1, true) - elHeight - offset$1 + overflow\n );\n sticky = maxScrollHeight && !this.showOnUp && start + offset$1 === topOffset && end === Math.min(\n maxScrollHeight,\n parseProp(\"!*\", this.$el, 0, true) - elHeight - offset$1 + overflow\n ) && css(parent(this.$el), \"overflowY\") === \"visible\";\n return {\n start,\n end,\n offset: offset$1,\n overflow,\n topOffset,\n height: height$1,\n elHeight,\n width,\n margin,\n top: offsetPosition(referenceElement)[0],\n sticky\n };\n },\n write({ height, width, margin, offset, sticky }) {\n if (this.inactive || sticky || !this.isFixed) {\n reset(this.$el);\n }\n if (this.inactive) {\n return;\n }\n if (sticky) {\n height = width = margin = 0;\n css(this.$el, { position: \"sticky\", top: offset });\n }\n const { placeholder } = this;\n css(placeholder, { height, width, margin });\n if (!within(placeholder, document)) {\n placeholder.hidden = true;\n }\n (sticky ? before : after)(this.$el, placeholder);\n },\n events: [\"resize\"]\n },\n {\n read({\n scroll: prevScroll = 0,\n dir: prevDir = \"down\",\n overflow,\n overflowScroll = 0,\n start,\n end\n }) {\n const scroll2 = document.scrollingElement.scrollTop;\n const dir = prevScroll <= scroll2 ? \"down\" : \"up\";\n return {\n dir,\n prevDir,\n scroll: scroll2,\n prevScroll,\n offsetParentTop: offset(\n (this.isFixed ? this.placeholder : this.$el).offsetParent\n ).top,\n overflowScroll: clamp(\n overflowScroll + clamp(scroll2, start, end) - clamp(prevScroll, start, end),\n 0,\n overflow\n )\n };\n },\n write(data, types) {\n const isScrollUpdate = types.has(\"scroll\");\n const {\n initTimestamp = 0,\n dir,\n prevDir,\n scroll: scroll2,\n prevScroll = 0,\n top,\n start,\n topOffset,\n height\n } = data;\n if (scroll2 < 0 || scroll2 === prevScroll && isScrollUpdate || this.showOnUp && !isScrollUpdate && !this.isFixed) {\n return;\n }\n const now = Date.now();\n if (now - initTimestamp > 300 || dir !== prevDir) {\n data.initScroll = scroll2;\n data.initTimestamp = now;\n }\n if (this.showOnUp && !this.isFixed && Math.abs(data.initScroll - scroll2) <= 30 && Math.abs(prevScroll - scroll2) <= 10) {\n return;\n }\n if (this.inactive || scroll2 < start || this.showOnUp && (scroll2 <= start || dir === \"down\" && isScrollUpdate || dir === \"up\" && !this.isFixed && scroll2 <= topOffset + height)) {\n if (!this.isFixed) {\n if (Animation.inProgress(this.$el) && top > scroll2) {\n Animation.cancel(this.$el);\n this.hide();\n }\n return;\n }\n if (this.animation && scroll2 > topOffset) {\n Animation.cancel(this.$el);\n Animation.out(this.$el, this.animation).then(() => this.hide(), noop);\n } else {\n this.hide();\n }\n } else if (this.isFixed) {\n this.update();\n } else if (this.animation && scroll2 > topOffset) {\n Animation.cancel(this.$el);\n this.show();\n Animation.in(this.$el, this.animation).catch(noop);\n } else {\n preventTransition(this.selTarget);\n this.show();\n }\n },\n events: [\"resize\", \"resizeViewport\", \"scroll\"]\n }\n ],\n methods: {\n show() {\n this.isFixed = true;\n this.update();\n this.placeholder.hidden = false;\n },\n hide() {\n const { offset, sticky } = this._data;\n this.setActive(false);\n removeClass(this.$el, this.clsFixed, this.clsBelow);\n if (sticky) {\n css(this.$el, \"top\", offset);\n } else {\n css(this.$el, {\n position: \"\",\n top: \"\",\n width: \"\",\n marginTop: \"\"\n });\n }\n this.placeholder.hidden = true;\n this.isFixed = false;\n },\n update() {\n let {\n width,\n scroll: scroll2 = 0,\n overflow,\n overflowScroll = 0,\n start,\n end,\n offset,\n topOffset,\n height,\n elHeight,\n offsetParentTop,\n sticky\n } = this._data;\n const active = start !== 0 || scroll2 > start;\n if (!sticky) {\n let position = \"fixed\";\n if (scroll2 > end) {\n offset += end - offsetParentTop;\n position = \"absolute\";\n }\n css(this.$el, { position, width, marginTop: 0 }, \"important\");\n }\n if (overflow) {\n offset -= overflowScroll;\n }\n css(this.$el, \"top\", offset);\n this.setActive(active);\n toggleClass(\n this.$el,\n this.clsBelow,\n scroll2 > topOffset + (sticky ? Math.min(height, elHeight) : height)\n );\n addClass(this.$el, this.clsFixed);\n },\n setActive(active) {\n const prev = this.active;\n this.active = active;\n if (active) {\n replaceClass(this.selTarget, this.clsInactive, this.clsActive);\n prev !== active && trigger(this.$el, \"active\");\n } else {\n replaceClass(this.selTarget, this.clsActive, this.clsInactive);\n prev !== active && trigger(this.$el, \"inactive\");\n }\n }\n }\n };\n function parseProp(value, el, propOffset, padding) {\n if (!value) {\n return 0;\n }\n if (isNumeric(value) || isString(value) && value.match(/^-?\\d/)) {\n return propOffset + toPx(value, \"height\", el, true);\n } else {\n const refElement = value === true ? parent(el) : query(value, el);\n return offset(refElement).bottom - (padding && refElement && within(el, refElement) ? toFloat(css(refElement, \"paddingBottom\")) : 0);\n }\n }\n function coerce(value) {\n if (value === \"true\") {\n return true;\n } else if (value === \"false\") {\n return false;\n }\n return value;\n }\n function reset(el) {\n css(el, { position: \"\", top: \"\", marginTop: \"\", width: \"\" });\n }\n function preventTransition(el) {\n css(el, \"transition\", \"0s\");\n requestAnimationFrame(() => css(el, \"transition\", \"\"));\n }\n\n function getMaxPathLength(el) {\n return Math.ceil(\n Math.max(\n 0,\n ...$$(\"[stroke]\", el).map((stroke) => {\n try {\n return stroke.getTotalLength();\n } catch (e) {\n return 0;\n }\n })\n )\n );\n }\n\n var svg = {\n mixins: [Svg],\n args: \"src\",\n props: {\n src: String,\n icon: String,\n attributes: \"list\",\n strokeAnimation: Boolean\n },\n data: {\n strokeAnimation: false\n },\n observe: [\n mutation({\n async handler() {\n const svg = await this.svg;\n if (svg) {\n applyAttributes.call(this, svg);\n }\n },\n options: {\n attributes: true,\n attributeFilter: [\"id\", \"class\", \"style\"]\n }\n })\n ],\n async connected() {\n if (includes(this.src, \"#\")) {\n [this.src, this.icon] = this.src.split(\"#\");\n }\n const svg = await this.svg;\n if (svg) {\n applyAttributes.call(this, svg);\n if (this.strokeAnimation) {\n applyAnimation(svg);\n }\n }\n },\n methods: {\n async getSvg() {\n if (isTag(this.$el, \"img\") && !this.$el.complete && this.$el.loading === \"lazy\") {\n return new Promise(\n (resolve) => once(this.$el, \"load\", () => resolve(this.getSvg()))\n );\n }\n return parseSVG(await loadSVG(this.src), this.icon) || Promise.reject(\"SVG not found.\");\n }\n }\n };\n function applyAttributes(el) {\n const { $el } = this;\n addClass(el, attr($el, \"class\"), \"uk-svg\");\n for (let i = 0; i < $el.style.length; i++) {\n const prop = $el.style[i];\n css(el, prop, css($el, prop));\n }\n for (const attribute in this.attributes) {\n const [prop, value] = this.attributes[attribute].split(\":\", 2);\n attr(el, prop, value);\n }\n if (!this.$el.id) {\n removeAttr(el, \"id\");\n }\n }\n const loadSVG = memoize(async (src) => {\n if (src) {\n if (startsWith(src, \"data:\")) {\n return decodeURIComponent(src.split(\",\")[1]);\n } else {\n return (await fetch(src)).text();\n }\n } else {\n return Promise.reject();\n }\n });\n function parseSVG(svg, icon) {\n if (icon && includes(svg, \"/g;\n const parseSymbols = memoize(function(svg) {\n const symbols = {};\n symbolRe.lastIndex = 0;\n let match;\n while (match = symbolRe.exec(svg)) {\n symbols[match[3]] = ``;\n }\n return symbols;\n });\n function applyAnimation(el) {\n const length = getMaxPathLength(el);\n if (length) {\n css(el, \"--uk-animation-stroke\", length);\n }\n }\n\n const selDisabled = \".uk-disabled *, .uk-disabled, [disabled]\";\n var Switcher = {\n mixins: [Togglable],\n args: \"connect\",\n props: {\n connect: String,\n toggle: String,\n itemNav: String,\n active: Number,\n followFocus: Boolean,\n swiping: Boolean\n },\n data: {\n connect: \"~.uk-switcher\",\n toggle: \"> * > :first-child\",\n itemNav: false,\n active: 0,\n cls: \"uk-active\",\n attrItem: \"uk-switcher-item\",\n selVertical: \".uk-nav\",\n followFocus: false,\n swiping: true\n },\n computed: {\n connects({ connect }, $el) {\n return queryAll(connect, $el);\n },\n connectChildren() {\n return this.connects.map((el) => children(el)).flat();\n },\n toggles({ toggle }, $el) {\n return $$(toggle, $el);\n },\n children() {\n return children(this.$el).filter(\n (child) => this.toggles.some((toggle) => within(toggle, child))\n );\n }\n },\n watch: {\n connects(connects) {\n if (this.swiping) {\n css(connects, \"touchAction\", \"pan-y pinch-zoom\");\n }\n this.$emit();\n },\n connectChildren() {\n let index = Math.max(0, this.index());\n for (const el of this.connects) {\n children(el).forEach((child, i) => toggleClass(child, this.cls, i === index));\n }\n this.$emit();\n },\n toggles(toggles) {\n this.$emit();\n const active = this.index();\n this.show(~active ? active : toggles[this.active] || toggles[0]);\n }\n },\n connected() {\n attr(this.$el, \"role\", \"tablist\");\n },\n observe: [\n lazyload({ targets: ({ connectChildren }) => connectChildren }),\n swipe({ target: ({ connects }) => connects, filter: ({ swiping }) => swiping })\n ],\n events: [\n {\n name: \"click keydown\",\n delegate() {\n return this.toggle;\n },\n handler(e) {\n if (!matches(e.current, selDisabled) && (e.type === \"click\" || e.keyCode === keyMap.SPACE)) {\n e.preventDefault();\n this.show(e.current);\n }\n }\n },\n {\n name: \"keydown\",\n delegate() {\n return this.toggle;\n },\n handler(e) {\n const { current, keyCode } = e;\n const isVertical = matches(this.$el, this.selVertical);\n let i = keyCode === keyMap.HOME ? 0 : keyCode === keyMap.END ? \"last\" : keyCode === keyMap.LEFT && !isVertical || keyCode === keyMap.UP && isVertical ? \"previous\" : keyCode === keyMap.RIGHT && !isVertical || keyCode === keyMap.DOWN && isVertical ? \"next\" : -1;\n if (~i) {\n e.preventDefault();\n const toggles = this.toggles.filter((el) => !matches(el, selDisabled));\n const next = toggles[getIndex(i, toggles, toggles.indexOf(current))];\n next.focus();\n if (this.followFocus) {\n this.show(next);\n }\n }\n }\n },\n {\n name: \"click\",\n el() {\n return this.connects.concat(this.itemNav ? queryAll(this.itemNav, this.$el) : []);\n },\n delegate() {\n return `[${this.attrItem}],[data-${this.attrItem}]`;\n },\n handler(e) {\n if (closest(e.target, \"a,button\")) {\n e.preventDefault();\n this.show(data(e.current, this.attrItem));\n }\n }\n },\n {\n name: \"swipeRight swipeLeft\",\n filter() {\n return this.swiping;\n },\n el() {\n return this.connects;\n },\n handler({ type }) {\n this.show(endsWith(type, \"Left\") ? \"next\" : \"previous\");\n }\n }\n ],\n update() {\n var _a;\n attr(this.connects, \"role\", \"presentation\");\n attr(children(this.$el), \"role\", \"presentation\");\n for (const index in this.toggles) {\n const toggle = this.toggles[index];\n const item = (_a = this.connects[0]) == null ? void 0 : _a.children[index];\n attr(toggle, \"role\", \"tab\");\n if (!item) {\n continue;\n }\n toggle.id = generateId(this, toggle, `-tab-${index}`);\n item.id = generateId(this, item, `-tabpanel-${index}`);\n attr(toggle, \"aria-controls\", item.id);\n attr(item, { role: \"tabpanel\", \"aria-labelledby\": toggle.id });\n }\n attr(this.$el, \"aria-orientation\", matches(this.$el, this.selVertical) ? \"vertical\" : null);\n },\n methods: {\n index() {\n return findIndex(this.children, (el) => hasClass(el, this.cls));\n },\n show(item) {\n const toggles = this.toggles.filter((el) => !matches(el, selDisabled));\n const prev = this.index();\n const next = getIndex(\n !isNode(item) || includes(toggles, item) ? item : 0,\n toggles,\n getIndex(this.toggles[prev], toggles)\n );\n const active = getIndex(toggles[next], this.toggles);\n this.children.forEach((child, i) => {\n toggleClass(child, this.cls, active === i);\n attr(this.toggles[i], {\n \"aria-selected\": active === i,\n tabindex: active === i ? null : -1\n });\n });\n const animate = prev >= 0 && prev !== next;\n this.connects.forEach(async ({ children: children2 }) => {\n const actives = toArray(children2).filter(\n (child, i) => i !== active && hasClass(child, this.cls)\n );\n await this.toggleElement(actives, false, animate);\n await this.toggleElement(children2[active], true, animate);\n });\n }\n }\n };\n\n var tab = {\n mixins: [Class],\n extends: Switcher,\n props: {\n media: Boolean\n },\n data: {\n media: 960,\n attrItem: \"uk-tab-item\",\n selVertical: \".uk-tab-left,.uk-tab-right\"\n },\n connected() {\n const cls = hasClass(this.$el, \"uk-tab-left\") ? \"uk-tab-left\" : hasClass(this.$el, \"uk-tab-right\") ? \"uk-tab-right\" : false;\n if (cls) {\n this.$create(\"toggle\", this.$el, { cls, mode: \"media\", media: this.media });\n }\n }\n };\n\n const KEY_SPACE = 32;\n var toggle = {\n mixins: [Media, Togglable],\n args: \"target\",\n props: {\n href: String,\n target: null,\n mode: \"list\",\n queued: Boolean\n },\n data: {\n href: false,\n target: false,\n mode: \"click\",\n queued: true\n },\n computed: {\n target({ target }, $el) {\n target = queryAll(target || $el.hash, $el);\n return target.length && target || [$el];\n }\n },\n connected() {\n if (!includes(this.mode, \"media\")) {\n if (!isFocusable(this.$el)) {\n attr(this.$el, \"tabindex\", \"0\");\n }\n if (!this.cls && isTag(this.$el, \"a\")) {\n attr(this.$el, \"role\", \"button\");\n }\n }\n },\n observe: lazyload({ target: ({ target }) => target }),\n events: [\n {\n name: pointerDown,\n filter() {\n return includes(this.mode, \"hover\");\n },\n handler(e) {\n this._preventClick = null;\n if (!isTouch(e) || isBoolean(this._showState) || this.$el.disabled) {\n return;\n }\n trigger(this.$el, \"focus\");\n once(\n document,\n pointerDown,\n () => trigger(this.$el, \"blur\"),\n true,\n (e2) => !within(e2.target, this.$el)\n );\n if (includes(this.mode, \"click\")) {\n this._preventClick = true;\n }\n }\n },\n {\n // mouseenter mouseleave are added because of Firefox bug,\n // where pointerleave is triggered immediately after pointerenter on scroll\n name: `mouseenter mouseleave ${pointerEnter} ${pointerLeave} focus blur`,\n filter() {\n return includes(this.mode, \"hover\");\n },\n handler(e) {\n if (isTouch(e) || this.$el.disabled) {\n return;\n }\n const show = includes([\"mouseenter\", pointerEnter, \"focus\"], e.type);\n const expanded = this.isToggled(this.target);\n if (!show && (!isBoolean(this._showState) || e.type !== \"blur\" && matches(this.$el, \":focus\") || e.type === \"blur\" && matches(this.$el, \":hover\"))) {\n if (expanded === this._showState) {\n this._showState = null;\n }\n return;\n }\n if (show && isBoolean(this._showState) && expanded !== this._showState) {\n return;\n }\n this._showState = show ? expanded : null;\n this.toggle(`toggle${show ? \"show\" : \"hide\"}`);\n }\n },\n {\n name: \"keydown\",\n filter() {\n return includes(this.mode, \"click\") && !isTag(this.$el, \"input\");\n },\n handler(e) {\n if (e.keyCode === KEY_SPACE) {\n e.preventDefault();\n this.$el.click();\n }\n }\n },\n {\n name: \"click\",\n filter() {\n return [\"click\", \"hover\"].some((mode) => includes(this.mode, mode));\n },\n handler(e) {\n let link;\n if (this._preventClick || closest(e.target, 'a[href=\"#\"], a[href=\"\"]') || (link = closest(e.target, \"a[href]\")) && (!this.isToggled(this.target) || link.hash && matches(this.target, link.hash))) {\n e.preventDefault();\n }\n if (!this._preventClick && includes(this.mode, \"click\")) {\n this.toggle();\n }\n }\n },\n {\n name: \"mediachange\",\n filter() {\n return includes(this.mode, \"media\");\n },\n el() {\n return this.target;\n },\n handler(e, mediaObj) {\n if (mediaObj.matches ^ this.isToggled(this.target)) {\n this.toggle();\n }\n }\n }\n ],\n methods: {\n async toggle(type) {\n if (!trigger(this.target, type || \"toggle\", [this])) {\n return;\n }\n if (hasAttr(this.$el, \"aria-expanded\")) {\n attr(this.$el, \"aria-expanded\", !this.isToggled(this.target));\n }\n if (!this.queued) {\n return this.toggleElement(this.target);\n }\n const leaving = this.target.filter((el) => hasClass(el, this.clsLeave));\n if (leaving.length) {\n for (const el of this.target) {\n const isLeaving = includes(leaving, el);\n this.toggleElement(el, isLeaving, isLeaving);\n }\n return;\n }\n const toggled = this.target.filter(this.isToggled);\n if (await this.toggleElement(toggled, false)) {\n await this.toggleElement(\n this.target.filter((el) => !includes(toggled, el)),\n true\n );\n }\n }\n }\n };\n\n var components = /*#__PURE__*/Object.freeze({\n __proto__: null,\n Accordion: Accordion,\n Alert: alert,\n Close: Close,\n Cover: cover,\n Drop: drop,\n DropParentIcon: IconComponent,\n Dropdown: drop,\n Dropnav: Dropnav,\n FormCustom: formCustom,\n Grid: grid,\n HeightMatch: heightMatch,\n HeightViewport: heightViewport,\n Icon: Icon,\n Img: img,\n Leader: leader,\n Margin: Margin,\n Marker: Marker,\n Modal: modal,\n Nav: nav,\n NavParentIcon: NavParentIcon,\n Navbar: navbar,\n NavbarParentIcon: IconComponent,\n NavbarToggleIcon: NavbarToggleIcon,\n Offcanvas: offcanvas,\n OverflowAuto: overflowAuto,\n OverlayIcon: IconComponent,\n PaginationNext: PaginationNext,\n PaginationPrevious: PaginationPrevious,\n Responsive: responsive,\n Scroll: scroll,\n Scrollspy: scrollspy,\n ScrollspyNav: scrollspyNav,\n SearchIcon: Search,\n SlidenavNext: Slidenav,\n SlidenavPrevious: Slidenav,\n Spinner: Spinner,\n Sticky: sticky,\n Svg: svg,\n Switcher: Switcher,\n Tab: tab,\n Toggle: toggle,\n Totop: Totop,\n Video: Video\n });\n\n each(components, (component, name) => App.component(name, component));\n boot(App);\n\n return App;\n\n}));\n","const initAccordionList = () => {\n const accordionList = document.querySelector('.accordion__list');\n\n if (accordionList) {\n const accordionButtons = accordionList.querySelectorAll('.accordion__row');\n\n accordionButtons.forEach((button) => {\n button.addEventListener('click', function (event) {\n const accordionID = button.getAttribute('data-id');\n const accordionContent = document.querySelector(\n '.accordion__list-item--content[data-id=\"' + accordionID + '\"]',\n );\n\n accordionContent.classList.toggle('accordion-content--open');\n\n if (accordionContent.classList.contains('accordion-content--open')) {\n document.querySelector(\n '.accordion__list-item[data-id=\"' +\n accordionID +\n '\"] .icon-show-more',\n ).style.display = 'none';\n document.querySelector(\n '.accordion__list-item[data-id=\"' +\n accordionID +\n '\"] .icon-show-less',\n ).style.display = 'block';\n } else {\n document.querySelector(\n '.accordion__list-item[data-id=\"' +\n accordionID +\n '\"] .icon-show-more',\n ).style.display = 'block';\n document.querySelector(\n '.accordion__list-item[data-id=\"' +\n accordionID +\n '\"] .icon-show-less',\n ).style.display = 'none';\n }\n });\n });\n }\n};\n\nexport default initAccordionList;\n","const { hasOwnProperty, toString } = Object.prototype;\n\nexport function hasOwn(obj, key) {\n return hasOwnProperty.call(obj, key);\n}\n\nconst hyphenateRe = /\\B([A-Z])/g;\n\nexport const hyphenate = memoize((str) => str.replace(hyphenateRe, '-$1').toLowerCase());\n\nconst camelizeRe = /-(\\w)/g;\n\nexport const camelize = memoize((str) =>\n (str.charAt(0).toLowerCase() + str.slice(1)).replace(camelizeRe, (_, c) => c.toUpperCase()),\n);\n\nexport const ucfirst = memoize((str) => str.charAt(0).toUpperCase() + str.slice(1));\n\nexport function startsWith(str, search) {\n return str?.startsWith?.(search);\n}\n\nexport function endsWith(str, search) {\n return str?.endsWith?.(search);\n}\n\nexport function includes(obj, search) {\n return obj?.includes?.(search);\n}\n\nexport function findIndex(array, predicate) {\n return array?.findIndex?.(predicate);\n}\n\nexport const { isArray, from: toArray } = Array;\nexport const { assign } = Object;\n\nexport function isFunction(obj) {\n return typeof obj === 'function';\n}\n\nexport function isObject(obj) {\n return obj !== null && typeof obj === 'object';\n}\n\nexport function isPlainObject(obj) {\n return toString.call(obj) === '[object Object]';\n}\n\nexport function isWindow(obj) {\n return isObject(obj) && obj === obj.window;\n}\n\nexport function isDocument(obj) {\n return nodeType(obj) === 9;\n}\n\nexport function isNode(obj) {\n return nodeType(obj) >= 1;\n}\n\nexport function isElement(obj) {\n return nodeType(obj) === 1;\n}\n\nfunction nodeType(obj) {\n return !isWindow(obj) && isObject(obj) && obj.nodeType;\n}\n\nexport function isBoolean(value) {\n return typeof value === 'boolean';\n}\n\nexport function isString(value) {\n return typeof value === 'string';\n}\n\nexport function isNumber(value) {\n return typeof value === 'number';\n}\n\nexport function isNumeric(value) {\n return isNumber(value) || (isString(value) && !isNaN(value - parseFloat(value)));\n}\n\nexport function isEmpty(obj) {\n return !(isArray(obj) ? obj.length : isObject(obj) ? Object.keys(obj).length : false);\n}\n\nexport function isUndefined(value) {\n return value === void 0;\n}\n\nexport function toBoolean(value) {\n return isBoolean(value)\n ? value\n : value === 'true' || value === '1' || value === ''\n ? true\n : value === 'false' || value === '0'\n ? false\n : value;\n}\n\nexport function toNumber(value) {\n const number = Number(value);\n return isNaN(number) ? false : number;\n}\n\nexport function toFloat(value) {\n return parseFloat(value) || 0;\n}\n\nexport function toNode(element) {\n return toNodes(element)[0];\n}\n\nexport function toNodes(element) {\n return isNode(element) ? [element] : Array.from(element || []).filter(isNode);\n}\n\nexport function toWindow(element) {\n if (isWindow(element)) {\n return element;\n }\n\n element = toNode(element);\n const document = isDocument(element) ? element : element?.ownerDocument;\n\n return document?.defaultView || window;\n}\n\nexport function isEqual(value, other) {\n return (\n value === other ||\n (isObject(value) &&\n isObject(other) &&\n Object.keys(value).length === Object.keys(other).length &&\n each(value, (val, key) => val === other[key]))\n );\n}\n\nexport function swap(value, a, b) {\n return value.replace(new RegExp(`${a}|${b}`, 'g'), (match) => (match === a ? b : a));\n}\n\nexport function last(array) {\n return array[array.length - 1];\n}\n\nexport function each(obj, cb) {\n for (const key in obj) {\n if (false === cb(obj[key], key)) {\n return false;\n }\n }\n return true;\n}\n\nexport function sortBy(array, prop) {\n return array\n .slice()\n .sort(({ [prop]: propA = 0 }, { [prop]: propB = 0 }) =>\n propA > propB ? 1 : propB > propA ? -1 : 0,\n );\n}\n\nexport function sumBy(array, iteratee) {\n return array.reduce(\n (sum, item) => sum + toFloat(isFunction(iteratee) ? iteratee(item) : item[iteratee]),\n 0,\n );\n}\n\nexport function uniqueBy(array, prop) {\n const seen = new Set();\n return array.filter(({ [prop]: check }) => (seen.has(check) ? false : seen.add(check)));\n}\n\nexport function pick(obj, props) {\n return props.reduce((res, prop) => ({ ...res, [prop]: obj[prop] }), {});\n}\n\nexport function clamp(number, min = 0, max = 1) {\n return Math.min(Math.max(toNumber(number) || 0, min), max);\n}\n\nexport function noop() {}\n\nexport function intersectRect(...rects) {\n return [\n ['bottom', 'top'],\n ['right', 'left'],\n ].every(\n ([minProp, maxProp]) =>\n Math.min(...rects.map(({ [minProp]: min }) => min)) -\n Math.max(...rects.map(({ [maxProp]: max }) => max)) >\n 0,\n );\n}\n\nexport function pointInRect(point, rect) {\n return (\n point.x <= rect.right &&\n point.x >= rect.left &&\n point.y <= rect.bottom &&\n point.y >= rect.top\n );\n}\n\nfunction ratio(dimensions, prop, value) {\n const aProp = prop === 'width' ? 'height' : 'width';\n\n return {\n [aProp]: dimensions[prop]\n ? Math.round((value * dimensions[aProp]) / dimensions[prop])\n : dimensions[aProp],\n [prop]: value,\n };\n}\n\nfunction contain(dimensions, maxDimensions) {\n dimensions = { ...dimensions };\n\n for (const prop in dimensions) {\n dimensions =\n dimensions[prop] > maxDimensions[prop]\n ? ratio(dimensions, prop, maxDimensions[prop])\n : dimensions;\n }\n\n return dimensions;\n}\n\nfunction cover(dimensions, maxDimensions) {\n dimensions = contain(dimensions, maxDimensions);\n\n for (const prop in dimensions) {\n dimensions =\n dimensions[prop] < maxDimensions[prop]\n ? ratio(dimensions, prop, maxDimensions[prop])\n : dimensions;\n }\n\n return dimensions;\n}\n\nexport const Dimensions = { ratio, contain, cover };\n\nexport function getIndex(i, elements, current = 0, finite = false) {\n elements = toNodes(elements);\n\n const { length } = elements;\n\n if (!length) {\n return -1;\n }\n\n i = isNumeric(i)\n ? toNumber(i)\n : i === 'next'\n ? current + 1\n : i === 'previous'\n ? current - 1\n : i === 'last'\n ? length - 1\n : elements.indexOf(toNode(i));\n\n if (finite) {\n return clamp(i, 0, length - 1);\n }\n\n i %= length;\n\n return i < 0 ? i + length : i;\n}\n\nexport function memoize(fn) {\n const cache = Object.create(null);\n return (key) => cache[key] || (cache[key] = fn(key));\n}\n","import { isFunction, isObject, isUndefined, toNode, toNodes } from './lang';\n\nexport function attr(element, name, value) {\n if (isObject(name)) {\n for (const key in name) {\n attr(element, key, name[key]);\n }\n return;\n }\n\n if (isUndefined(value)) {\n return toNode(element)?.getAttribute(name);\n } else {\n for (const el of toNodes(element)) {\n if (isFunction(value)) {\n value = value.call(el, attr(el, name));\n }\n\n if (value === null) {\n removeAttr(el, name);\n } else {\n el.setAttribute(name, value);\n }\n }\n }\n}\n\nexport function hasAttr(element, name) {\n return toNodes(element).some((element) => element.hasAttribute(name));\n}\n\nexport function removeAttr(element, name) {\n toNodes(element).forEach((element) => element.removeAttribute(name));\n}\n\nexport function data(element, attribute) {\n for (const name of [attribute, `data-${attribute}`]) {\n if (hasAttr(element, name)) {\n return attr(element, name);\n }\n }\n}\n","import { attr } from './attr';\nimport { isUndefined, toNodes } from './lang';\n\nexport function addClass(element, ...args) {\n apply(element, args, 'add');\n}\n\nexport function removeClass(element, ...args) {\n apply(element, args, 'remove');\n}\n\nexport function removeClasses(element, cls) {\n attr(element, 'class', (value) =>\n (value || '').replace(new RegExp(`\\\\b${cls}\\\\b\\\\s?`, 'g'), ''),\n );\n}\n\nexport function replaceClass(element, ...args) {\n args[0] && removeClass(element, args[0]);\n args[1] && addClass(element, args[1]);\n}\n\nexport function hasClass(element, cls) {\n [cls] = getClasses(cls);\n return !!cls && toNodes(element).some((node) => node.classList.contains(cls));\n}\n\nexport function toggleClass(element, cls, force) {\n const classes = getClasses(cls);\n\n if (!isUndefined(force)) {\n force = !!force;\n }\n\n for (const node of toNodes(element)) {\n for (const cls of classes) {\n node.classList.toggle(cls, force);\n }\n }\n}\n\nfunction apply(element, args, fn) {\n args = args.reduce((args, arg) => args.concat(getClasses(arg)), []);\n\n for (const node of toNodes(element)) {\n node.classList[fn](...args);\n }\n}\n\nfunction getClasses(str) {\n return String(str).split(/[ ,]/).filter(Boolean);\n}\n","import { isElement, isString, startsWith, toArray, toNode, toNodes } from './lang';\n\nconst voidElements = {\n area: true,\n base: true,\n br: true,\n col: true,\n embed: true,\n hr: true,\n img: true,\n input: true,\n keygen: true,\n link: true,\n meta: true,\n param: true,\n source: true,\n track: true,\n wbr: true,\n};\nexport function isVoidElement(element) {\n return toNodes(element).some((element) => voidElements[element.tagName.toLowerCase()]);\n}\n\nexport function isVisible(element) {\n return toNodes(element).some(\n (element) => element.offsetWidth || element.offsetHeight || element.getClientRects().length,\n );\n}\n\nexport const selInput = 'input,select,textarea,button';\nexport function isInput(element) {\n return toNodes(element).some((element) => matches(element, selInput));\n}\n\nexport const selFocusable = `${selInput},a[href],[tabindex]`;\nexport function isFocusable(element) {\n return matches(element, selFocusable);\n}\n\nexport function parent(element) {\n return toNode(element)?.parentElement;\n}\n\nexport function filter(element, selector) {\n return toNodes(element).filter((element) => matches(element, selector));\n}\n\nexport function matches(element, selector) {\n return toNodes(element).some((element) => element.matches(selector));\n}\n\nexport function closest(element, selector) {\n return isElement(element)\n ? element.closest(startsWith(selector, '>') ? selector.slice(1) : selector)\n : toNodes(element)\n .map((element) => closest(element, selector))\n .filter(Boolean);\n}\n\nexport function within(element, selector) {\n return isString(selector)\n ? !!closest(element, selector)\n : toNode(selector).contains(toNode(element));\n}\n\nexport function parents(element, selector) {\n const elements = [];\n\n while ((element = parent(element))) {\n if (!selector || matches(element, selector)) {\n elements.push(element);\n }\n }\n\n return elements;\n}\n\nexport function children(element, selector) {\n element = toNode(element);\n const children = element ? toArray(element.children) : [];\n return selector ? filter(children, selector) : children;\n}\n\nexport function index(element, ref) {\n return ref ? toNodes(element).indexOf(toNode(ref)) : children(parent(element)).indexOf(element);\n}\n\nexport function isSameSiteAnchor(el) {\n el = toNode(el);\n return el && ['origin', 'pathname', 'search'].every((part) => el[part] === location[part]);\n}\n\nexport function getTargetedElement(el) {\n if (isSameSiteAnchor(el)) {\n el = toNode(el);\n const id = decodeURIComponent(el.hash).substring(1);\n return document.getElementById(id) || document.getElementsByName(id)[0];\n }\n}\n","import { attr } from './attr';\nimport { closest, index, matches, parent } from './filter';\nimport { isDocument, isString, memoize, toNode, toNodes } from './lang';\n\nexport function query(selector, context) {\n return find(selector, getContext(selector, context));\n}\n\nexport function queryAll(selector, context) {\n return findAll(selector, getContext(selector, context));\n}\n\nexport function find(selector, context) {\n return toNode(_query(selector, toNode(context), 'querySelector'));\n}\n\nexport function findAll(selector, context) {\n return toNodes(_query(selector, toNode(context), 'querySelectorAll'));\n}\n\nconst contextSelectorRe = /(^|[^\\\\],)\\s*[!>+~-]/;\nconst isContextSelector = memoize((selector) => selector.match(contextSelectorRe));\n\nfunction getContext(selector, context = document) {\n return (isString(selector) && isContextSelector(selector)) || isDocument(context)\n ? context\n : context.ownerDocument;\n}\n\nconst contextSanitizeRe = /([!>+~-])(?=\\s+[!>+~-]|\\s*$)/g;\nconst sanatize = memoize((selector) => selector.replace(contextSanitizeRe, '$1 *'));\n\nfunction _query(selector, context = document, queryFn) {\n if (!selector || !isString(selector)) {\n return selector;\n }\n\n selector = sanatize(selector);\n\n if (isContextSelector(selector)) {\n const split = splitSelector(selector);\n selector = '';\n for (let sel of split) {\n let ctx = context;\n\n if (sel[0] === '!') {\n const selectors = sel.substr(1).trim().split(' ');\n ctx = closest(parent(context), selectors[0]);\n sel = selectors.slice(1).join(' ').trim();\n if (!sel.length && split.length === 1) {\n return ctx;\n }\n }\n\n if (sel[0] === '-') {\n const selectors = sel.substr(1).trim().split(' ');\n const prev = (ctx || context).previousElementSibling;\n ctx = matches(prev, sel.substr(1)) ? prev : null;\n sel = selectors.slice(1).join(' ');\n }\n\n if (ctx) {\n selector += `${selector ? ',' : ''}${domPath(ctx)} ${sel}`;\n }\n }\n\n context = document;\n }\n\n try {\n return context[queryFn](selector);\n } catch (e) {\n return null;\n }\n}\n\nconst selectorRe = /.*?[^\\\\](?:,|$)/g;\n\nconst splitSelector = memoize((selector) =>\n selector.match(selectorRe).map((selector) => selector.replace(/,$/, '').trim()),\n);\n\nfunction domPath(element) {\n const names = [];\n while (element.parentNode) {\n const id = attr(element, 'id');\n if (id) {\n names.unshift(`#${escape(id)}`);\n break;\n } else {\n let { tagName } = element;\n if (tagName !== 'HTML') {\n tagName += `:nth-child(${index(element) + 1})`;\n }\n names.unshift(tagName);\n element = element.parentNode;\n }\n }\n return names.join(' > ');\n}\n\nexport function escape(css) {\n return isString(css) ? CSS.escape(css) : '';\n}\n","import { closest, within } from './filter';\nimport { isArray, isFunction, isString, toNode, toNodes } from './lang';\nimport { findAll } from './selector';\n\nexport function on(...args) {\n let [targets, types, selector, listener, useCapture = false] = getArgs(args);\n\n if (listener.length > 1) {\n listener = detail(listener);\n }\n\n if (useCapture?.self) {\n listener = selfFilter(listener);\n }\n\n if (selector) {\n listener = delegate(selector, listener);\n }\n\n for (const type of types) {\n for (const target of targets) {\n target.addEventListener(type, listener, useCapture);\n }\n }\n\n return () => off(targets, types, listener, useCapture);\n}\n\nexport function off(...args) {\n let [targets, types, , listener, useCapture = false] = getArgs(args);\n for (const type of types) {\n for (const target of targets) {\n target.removeEventListener(type, listener, useCapture);\n }\n }\n}\n\nexport function once(...args) {\n const [element, types, selector, listener, useCapture = false, condition] = getArgs(args);\n const off = on(\n element,\n types,\n selector,\n (e) => {\n const result = !condition || condition(e);\n if (result) {\n off();\n listener(e, result);\n }\n },\n useCapture,\n );\n\n return off;\n}\n\nexport function trigger(targets, event, detail) {\n return toEventTargets(targets).every((target) =>\n target.dispatchEvent(createEvent(event, true, true, detail)),\n );\n}\n\nexport function createEvent(e, bubbles = true, cancelable = false, detail) {\n if (isString(e)) {\n e = new CustomEvent(e, { bubbles, cancelable, detail });\n }\n\n return e;\n}\n\nfunction getArgs(args) {\n // Event targets\n args[0] = toEventTargets(args[0]);\n\n // Event types\n if (isString(args[1])) {\n args[1] = args[1].split(' ');\n }\n\n // Delegate?\n if (isFunction(args[2])) {\n args.splice(2, 0, false);\n }\n\n return args;\n}\n\nfunction delegate(selector, listener) {\n return (e) => {\n const current =\n selector[0] === '>'\n ? findAll(selector, e.currentTarget)\n .reverse()\n .filter((element) => within(e.target, element))[0]\n : closest(e.target, selector);\n\n if (current) {\n e.current = current;\n listener.call(this, e);\n delete e.current;\n }\n };\n}\n\nfunction detail(listener) {\n return (e) => (isArray(e.detail) ? listener(e, ...e.detail) : listener(e));\n}\n\nfunction selfFilter(listener) {\n return function (e) {\n if (e.target === e.currentTarget || e.target === e.current) {\n return listener.call(null, e);\n }\n };\n}\n\nfunction isEventTarget(target) {\n return target && 'addEventListener' in target;\n}\n\nfunction toEventTarget(target) {\n return isEventTarget(target) ? target : toNode(target);\n}\n\nexport function toEventTargets(target) {\n return isArray(target)\n ? target.map(toEventTarget).filter(Boolean)\n : isString(target)\n ? findAll(target)\n : isEventTarget(target)\n ? [target]\n : toNodes(target);\n}\n\nexport function isTouch(e) {\n return e.pointerType === 'touch' || !!e.touches;\n}\n\nexport function getEventPos(e) {\n const { clientX: x, clientY: y } = e.touches?.[0] || e.changedTouches?.[0] || e;\n\n return { x, y };\n}\n","import {\n each,\n hyphenate,\n isArray,\n isNumber,\n isNumeric,\n isObject,\n isString,\n isUndefined,\n memoize,\n startsWith,\n toNodes,\n} from './lang';\n\nconst cssNumber = {\n 'animation-iteration-count': true,\n 'column-count': true,\n 'fill-opacity': true,\n 'flex-grow': true,\n 'flex-shrink': true,\n 'font-weight': true,\n 'line-height': true,\n opacity: true,\n order: true,\n orphans: true,\n 'stroke-dasharray': true,\n 'stroke-dashoffset': true,\n widows: true,\n 'z-index': true,\n zoom: true,\n};\n\nexport function css(element, property, value, priority) {\n const elements = toNodes(element);\n for (const element of elements) {\n if (isString(property)) {\n property = propName(property);\n\n if (isUndefined(value)) {\n return getComputedStyle(element).getPropertyValue(property);\n } else {\n element.style.setProperty(\n property,\n isNumeric(value) && !cssNumber[property]\n ? `${value}px`\n : value || isNumber(value)\n ? value\n : '',\n priority,\n );\n }\n } else if (isArray(property)) {\n const props = {};\n for (const prop of property) {\n props[prop] = css(element, prop);\n }\n return props;\n } else if (isObject(property)) {\n priority = value;\n each(property, (value, property) => css(element, property, value, priority));\n }\n }\n return elements[0];\n}\n\n// https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-setproperty\nexport const propName = memoize((name) => vendorPropName(name));\n\nfunction vendorPropName(name) {\n if (startsWith(name, '--')) {\n return name;\n }\n\n name = hyphenate(name);\n\n const { style } = document.documentElement;\n\n if (name in style) {\n return name;\n }\n\n for (const prefix of ['webkit', 'moz']) {\n const prefixedName = `-${prefix}-${name}`;\n if (prefixedName in style) {\n return prefixedName;\n }\n }\n}\n","import { attr } from './attr';\nimport { addClass, hasClass, removeClass, removeClasses } from './class';\nimport { once, trigger } from './event';\nimport { startsWith, toNodes } from './lang';\nimport { css, propName } from './style';\n\nfunction transition(element, props, duration = 400, timing = 'linear') {\n duration = Math.round(duration);\n return Promise.all(\n toNodes(element).map(\n (element) =>\n new Promise((resolve, reject) => {\n for (const name in props) {\n const value = css(element, name);\n if (value === '') {\n css(element, name, value);\n }\n }\n\n const timer = setTimeout(() => trigger(element, 'transitionend'), duration);\n\n once(\n element,\n 'transitionend transitioncanceled',\n ({ type }) => {\n clearTimeout(timer);\n removeClass(element, 'uk-transition');\n css(element, {\n transitionProperty: '',\n transitionDuration: '',\n transitionTimingFunction: '',\n });\n type === 'transitioncanceled' ? reject() : resolve(element);\n },\n { self: true },\n );\n\n addClass(element, 'uk-transition');\n css(element, {\n transitionProperty: Object.keys(props).map(propName).join(','),\n transitionDuration: `${duration}ms`,\n transitionTimingFunction: timing,\n ...props,\n });\n }),\n ),\n );\n}\n\nexport const Transition = {\n start: transition,\n\n async stop(element) {\n trigger(element, 'transitionend');\n await Promise.resolve();\n },\n\n async cancel(element) {\n trigger(element, 'transitioncanceled');\n await Promise.resolve();\n },\n\n inProgress(element) {\n return hasClass(element, 'uk-transition');\n },\n};\n\nconst animationPrefix = 'uk-animation-';\n\nfunction animate(element, animation, duration = 200, origin, out) {\n return Promise.all(\n toNodes(element).map(\n (element) =>\n new Promise((resolve, reject) => {\n trigger(element, 'animationcanceled');\n const timer = setTimeout(() => trigger(element, 'animationend'), duration);\n\n once(\n element,\n 'animationend animationcanceled',\n ({ type }) => {\n clearTimeout(timer);\n\n type === 'animationcanceled' ? reject() : resolve(element);\n\n css(element, 'animationDuration', '');\n removeClasses(element, `${animationPrefix}\\\\S*`);\n },\n { self: true },\n );\n\n css(element, 'animationDuration', `${duration}ms`);\n addClass(element, animation, animationPrefix + (out ? 'leave' : 'enter'));\n\n if (startsWith(animation, animationPrefix)) {\n origin && addClass(element, `uk-transform-origin-${origin}`);\n out && addClass(element, `${animationPrefix}reverse`);\n }\n }),\n ),\n );\n}\n\nconst inProgressRe = new RegExp(`${animationPrefix}(enter|leave)`);\n\nexport const Animation = {\n in: animate,\n\n out(element, animation, duration, origin) {\n return animate(element, animation, duration, origin, true);\n },\n\n inProgress(element) {\n return inProgressRe.test(attr(element, 'class'));\n },\n\n cancel(element) {\n trigger(element, 'animationcanceled');\n },\n};\n","import { once } from './event';\nimport { parent } from './filter';\nimport { isElement, isString, isUndefined, startsWith, toArray, toNode, toNodes } from './lang';\nimport { find, findAll } from './selector';\n\nexport function ready(fn) {\n if (document.readyState !== 'loading') {\n fn();\n return;\n }\n\n once(document, 'DOMContentLoaded', fn);\n}\n\nexport function isTag(element, ...tagNames) {\n return tagNames.some((tagName) => element?.tagName?.toLowerCase() === tagName.toLowerCase());\n}\n\nexport function empty(element) {\n element = $(element);\n element.innerHTML = '';\n return element;\n}\n\nexport function html(parent, html) {\n return isUndefined(html) ? $(parent).innerHTML : append(empty(parent), html);\n}\n\nexport const prepend = applyFn('prepend');\nexport const append = applyFn('append');\nexport const before = applyFn('before');\nexport const after = applyFn('after');\n\nfunction applyFn(fn) {\n return function (ref, element) {\n const nodes = toNodes(isString(element) ? fragment(element) : element);\n $(ref)?.[fn](...nodes);\n return unwrapSingle(nodes);\n };\n}\n\nexport function remove(element) {\n toNodes(element).forEach((element) => element.remove());\n}\n\nexport function wrapAll(element, structure) {\n structure = toNode(before(element, structure));\n\n while (structure.firstChild) {\n structure = structure.firstChild;\n }\n\n append(structure, element);\n\n return structure;\n}\n\nexport function wrapInner(element, structure) {\n return toNodes(\n toNodes(element).map((element) =>\n element.hasChildNodes()\n ? wrapAll(toArray(element.childNodes), structure)\n : append(element, structure),\n ),\n );\n}\n\nexport function unwrap(element) {\n toNodes(element)\n .map(parent)\n .filter((value, index, self) => self.indexOf(value) === index)\n .forEach((parent) => parent.replaceWith(...parent.childNodes));\n}\n\nconst fragmentRe = /^\\s*<(\\w+|!)[^>]*>/;\nconst singleTagRe = /^<(\\w+)\\s*\\/?>(?:<\\/\\1>)?$/;\n\nexport function fragment(html) {\n const matches = singleTagRe.exec(html);\n if (matches) {\n return document.createElement(matches[1]);\n }\n\n const container = document.createElement('div');\n if (fragmentRe.test(html)) {\n container.insertAdjacentHTML('beforeend', html.trim());\n } else {\n container.textContent = html;\n }\n\n return unwrapSingle(container.childNodes);\n}\n\nfunction unwrapSingle(nodes) {\n return nodes.length > 1 ? nodes : nodes[0];\n}\n\nexport function apply(node, fn) {\n if (!isElement(node)) {\n return;\n }\n\n fn(node);\n node = node.firstElementChild;\n while (node) {\n const next = node.nextElementSibling;\n apply(node, fn);\n node = next;\n }\n}\n\nexport function $(selector, context) {\n return isHtml(selector) ? toNode(fragment(selector)) : find(selector, context);\n}\n\nexport function $$(selector, context) {\n return isHtml(selector) ? toNodes(fragment(selector)) : findAll(selector, context);\n}\n\nfunction isHtml(str) {\n return isString(str) && startsWith(str.trim(), '<');\n}\n","import { $, append, remove } from './dom';\nimport { on } from './event';\nimport {\n isDocument,\n isElement,\n isString,\n isUndefined,\n isWindow,\n memoize,\n sumBy,\n toFloat,\n toNode,\n toWindow,\n ucfirst,\n} from './lang';\nimport { css } from './style';\n\nconst dirs = {\n width: ['left', 'right'],\n height: ['top', 'bottom'],\n};\n\nexport function dimensions(element) {\n const rect = isElement(element)\n ? toNode(element).getBoundingClientRect()\n : { height: height(element), width: width(element), top: 0, left: 0 };\n\n return {\n height: rect.height,\n width: rect.width,\n top: rect.top,\n left: rect.left,\n bottom: rect.top + rect.height,\n right: rect.left + rect.width,\n };\n}\n\nexport function offset(element, coordinates) {\n if (coordinates) {\n css(element, { left: 0, top: 0 });\n }\n\n const currentOffset = dimensions(element);\n\n if (element) {\n const { scrollY, scrollX } = toWindow(element);\n const offsetBy = { height: scrollY, width: scrollX };\n\n for (const dir in dirs) {\n for (const prop of dirs[dir]) {\n currentOffset[prop] += offsetBy[dir];\n }\n }\n }\n\n if (!coordinates) {\n return currentOffset;\n }\n\n for (const prop of ['left', 'top']) {\n css(element, prop, coordinates[prop] - currentOffset[prop]);\n }\n}\n\nexport function position(element) {\n let { top, left } = offset(element);\n\n const {\n ownerDocument: { body, documentElement },\n offsetParent,\n } = toNode(element);\n let parent = offsetParent || documentElement;\n\n while (\n parent &&\n (parent === body || parent === documentElement) &&\n css(parent, 'position') === 'static'\n ) {\n parent = parent.parentNode;\n }\n\n if (isElement(parent)) {\n const parentOffset = offset(parent);\n top -= parentOffset.top + toFloat(css(parent, 'borderTopWidth'));\n left -= parentOffset.left + toFloat(css(parent, 'borderLeftWidth'));\n }\n\n return {\n top: top - toFloat(css(element, 'marginTop')),\n left: left - toFloat(css(element, 'marginLeft')),\n };\n}\n\nexport function offsetPosition(element) {\n element = toNode(element);\n\n const offset = [element.offsetTop, element.offsetLeft];\n\n while ((element = element.offsetParent)) {\n offset[0] += element.offsetTop + toFloat(css(element, `borderTopWidth`));\n offset[1] += element.offsetLeft + toFloat(css(element, `borderLeftWidth`));\n\n if (css(element, 'position') === 'fixed') {\n const win = toWindow(element);\n offset[0] += win.scrollY;\n offset[1] += win.scrollX;\n return offset;\n }\n }\n\n return offset;\n}\n\nexport const height = dimension('height');\nexport const width = dimension('width');\n\nfunction dimension(prop) {\n const propName = ucfirst(prop);\n return (element, value) => {\n if (isUndefined(value)) {\n if (isWindow(element)) {\n return element[`inner${propName}`];\n }\n\n if (isDocument(element)) {\n const doc = element.documentElement;\n return Math.max(doc[`offset${propName}`], doc[`scroll${propName}`]);\n }\n\n element = toNode(element);\n\n value = css(element, prop);\n value = value === 'auto' ? element[`offset${propName}`] : toFloat(value) || 0;\n\n return value - boxModelAdjust(element, prop);\n } else {\n return css(\n element,\n prop,\n !value && value !== 0 ? '' : +value + boxModelAdjust(element, prop) + 'px',\n );\n }\n };\n}\n\nexport function boxModelAdjust(element, prop, sizing = 'border-box') {\n return css(element, 'boxSizing') === sizing\n ? sumBy(\n dirs[prop].map(ucfirst),\n (prop) =>\n toFloat(css(element, `padding${prop}`)) +\n toFloat(css(element, `border${prop}Width`)),\n )\n : 0;\n}\n\nexport function flipPosition(pos) {\n for (const dir in dirs) {\n for (const i in dirs[dir]) {\n if (dirs[dir][i] === pos) {\n return dirs[dir][1 - i];\n }\n }\n }\n return pos;\n}\n\nexport function toPx(value, property = 'width', element = window, offsetDim = false) {\n if (!isString(value)) {\n return toFloat(value);\n }\n\n return sumBy(parseCalc(value), (value) => {\n const unit = parseUnit(value);\n\n return unit\n ? percent(\n unit === 'vh'\n ? getViewportHeight()\n : unit === 'vw'\n ? width(toWindow(element))\n : offsetDim\n ? element[`offset${ucfirst(property)}`]\n : dimensions(element)[property],\n value,\n )\n : value;\n });\n}\n\nconst calcRe = /-?\\d+(?:\\.\\d+)?(?:v[wh]|%|px)?/g;\nconst parseCalc = memoize((calc) => calc.toString().replace(/\\s/g, '').match(calcRe) || []);\nconst unitRe = /(?:v[hw]|%)$/;\nconst parseUnit = memoize((str) => (str.match(unitRe) || [])[0]);\n\nfunction percent(base, value) {\n return (base * toFloat(value)) / 100;\n}\n\nlet vh;\nlet vhEl;\n\nfunction getViewportHeight() {\n if (vh) {\n return vh;\n }\n if (!vhEl) {\n vhEl = $('
');\n css(vhEl, {\n height: '100vh',\n position: 'fixed',\n });\n on(window, 'resize', () => (vh = null));\n }\n\n append(document.body, vhEl);\n vh = vhEl.clientHeight;\n remove(vhEl);\n return vh;\n}\n","export const inBrowser = typeof window !== 'undefined';\nexport const isRtl = inBrowser && document.dir === 'rtl';\n\nexport const hasTouch = inBrowser && 'ontouchstart' in window;\nconst hasPointerEvents = inBrowser && window.PointerEvent;\n\nexport const pointerDown = hasPointerEvents ? 'pointerdown' : hasTouch ? 'touchstart' : 'mousedown';\nexport const pointerMove = hasPointerEvents ? 'pointermove' : hasTouch ? 'touchmove' : 'mousemove';\nexport const pointerUp = hasPointerEvents ? 'pointerup' : hasTouch ? 'touchend' : 'mouseup';\nexport const pointerEnter = hasPointerEvents ? 'pointerenter' : hasTouch ? '' : 'mouseenter';\nexport const pointerLeave = hasPointerEvents ? 'pointerleave' : hasTouch ? '' : 'mouseleave';\nexport const pointerCancel = hasPointerEvents ? 'pointercancel' : 'touchcancel';\n","import { inBrowser } from './env';\nimport { on } from './event';\nimport { toNodes } from './lang';\n\nexport function observeIntersection(targets, cb, options = {}, { intersecting = true } = {}) {\n const observer = new IntersectionObserver(\n intersecting\n ? (entries, observer) => {\n if (entries.some((entry) => entry.isIntersecting)) {\n cb(entries, observer);\n }\n }\n : cb,\n options,\n );\n for (const el of toNodes(targets)) {\n observer.observe(el);\n }\n\n return observer;\n}\n\nconst hasResizeObserver = inBrowser && window.ResizeObserver;\nexport function observeResize(targets, cb, options = { box: 'border-box' }) {\n if (hasResizeObserver) {\n return observe(ResizeObserver, targets, cb, options);\n }\n\n // Fallback Safari < 13.1\n const off = [on(window, 'load resize', cb), on(document, 'loadedmetadata load', cb, true)];\n return { disconnect: () => off.map((cb) => cb()) };\n}\n\nexport function observeViewportResize(cb) {\n return { disconnect: on([window, window.visualViewport], 'resize', cb) };\n}\n\nexport function observeMutation(targets, cb, options) {\n return observe(MutationObserver, targets, cb, options);\n}\n\nfunction observe(Observer, targets, cb, options) {\n const observer = new Observer(cb);\n for (const el of toNodes(targets)) {\n observer.observe(el, options);\n }\n\n return observer;\n}\n","import {\n $$,\n getEventPos,\n isFunction,\n isTouch,\n noop,\n observeIntersection,\n observeMutation,\n observeResize,\n observeViewportResize,\n on,\n once,\n parent,\n pointerCancel,\n pointerDown,\n pointerUp,\n removeAttr,\n scrollParent,\n toNodes,\n trigger,\n} from 'uikit-util';\n\nexport function resize(options) {\n return observe(observeResize, options, 'resize');\n}\n\nexport function intersection(options) {\n return observe(observeIntersection, options);\n}\n\nexport function mutation(options) {\n return observe(observeMutation, options);\n}\n\nexport function lazyload(options = {}) {\n return intersection({\n handler: function (entries, observer) {\n const { targets = this.$el, preload = 5 } = options;\n for (const el of toNodes(isFunction(targets) ? targets(this) : targets)) {\n $$('[loading=\"lazy\"]', el)\n .slice(0, preload - 1)\n .forEach((el) => removeAttr(el, 'loading'));\n }\n\n for (const el of entries\n .filter(({ isIntersecting }) => isIntersecting)\n .map(({ target }) => target)) {\n observer.unobserve(el);\n }\n },\n ...options,\n });\n}\n\nexport function viewport() {\n return observe((target, handler) => observeViewportResize(handler));\n}\n\nexport function scroll(options) {\n return observe(\n (target, handler) => ({\n disconnect: on(toScrollTargets(target), 'scroll', handler, {\n passive: true,\n capture: true,\n }),\n }),\n options,\n 'scroll',\n );\n}\n\nexport function swipe(options) {\n return {\n observe(target, handler) {\n return {\n observe: noop,\n unobserve: noop,\n disconnect: on(target, pointerDown, handler, { passive: true }),\n };\n },\n handler(e) {\n if (!isTouch(e)) {\n return;\n }\n\n // Handle Swipe Gesture\n const pos = getEventPos(e);\n const target = 'tagName' in e.target ? e.target : parent(e.target);\n once(document, `${pointerUp} ${pointerCancel} scroll`, (e) => {\n const { x, y } = getEventPos(e);\n\n // swipe\n if (\n (e.type !== 'scroll' && target && x && Math.abs(pos.x - x) > 100) ||\n (y && Math.abs(pos.y - y) > 100)\n ) {\n setTimeout(() => {\n trigger(target, 'swipe');\n trigger(target, `swipe${swipeDirection(pos.x, pos.y, x, y)}`);\n });\n }\n });\n },\n ...options,\n };\n}\n\nfunction observe(observe, options, emit) {\n return {\n observe,\n handler() {\n this.$emit(emit);\n },\n ...options,\n };\n}\n\nfunction swipeDirection(x1, y1, x2, y2) {\n return Math.abs(x1 - x2) >= Math.abs(y1 - y2)\n ? x1 - x2 > 0\n ? 'Left'\n : 'Right'\n : y1 - y2 > 0\n ? 'Up'\n : 'Down';\n}\n\nfunction toScrollTargets(elements) {\n return toNodes(elements).map((node) => {\n const { ownerDocument } = node;\n const parent = scrollParent(node, true);\n return parent === ownerDocument.scrollingElement ? ownerDocument : parent;\n });\n}\n","import { addClass } from 'uikit-util';\n\nexport default {\n connected() {\n addClass(this.$el, this.$options.id);\n },\n};\n","export default {\n props: {\n i18n: Object,\n },\n\n data: {\n i18n: null,\n },\n\n methods: {\n t(key, ...params) {\n let i = 0;\n return (\n (this.i18n?.[key] || this.$options.i18n?.[key])?.replace(\n /%s/g,\n () => params[i++] || '',\n ) || ''\n );\n },\n },\n};\n","import { attr, matches } from 'uikit-util';\n\nexport default {\n props: {\n autoplay: Boolean,\n autoplayInterval: Number,\n pauseOnHover: Boolean,\n },\n\n data: {\n autoplay: false,\n autoplayInterval: 7000,\n pauseOnHover: true,\n },\n\n connected() {\n attr(this.list, 'aria-live', this.autoplay ? 'off' : 'polite');\n this.autoplay && this.startAutoplay();\n },\n\n disconnected() {\n this.stopAutoplay();\n },\n\n update() {\n attr(this.slides, 'tabindex', '-1');\n },\n\n events: [\n {\n name: 'visibilitychange',\n\n el() {\n return document;\n },\n\n filter() {\n return this.autoplay;\n },\n\n handler() {\n if (document.hidden) {\n this.stopAutoplay();\n } else {\n this.startAutoplay();\n }\n },\n },\n ],\n\n methods: {\n startAutoplay() {\n this.stopAutoplay();\n\n this.interval = setInterval(() => {\n if (\n !(\n this.stack.length ||\n (this.draggable && matches(this.$el, ':focus-within')) ||\n (this.pauseOnHover && matches(this.$el, ':hover'))\n )\n ) {\n this.show('next');\n }\n }, this.autoplayInterval);\n },\n\n stopAutoplay() {\n clearInterval(this.interval);\n },\n },\n};\n","import {\n closest,\n css,\n getEventPos,\n includes,\n isRtl,\n isTouch,\n noop,\n off,\n on,\n selInput,\n toArray,\n trigger,\n} from 'uikit-util';\n\nconst pointerOptions = { passive: false, capture: true };\nconst pointerUpOptions = { passive: true, capture: true };\nconst pointerDown = 'touchstart mousedown';\nconst pointerMove = 'touchmove mousemove';\nconst pointerUp = 'touchend touchcancel mouseup click input scroll';\n\nexport default {\n props: {\n draggable: Boolean,\n },\n\n data: {\n draggable: true,\n threshold: 10,\n },\n\n created() {\n for (const key of ['start', 'move', 'end']) {\n const fn = this[key];\n this[key] = (e) => {\n const pos = getEventPos(e).x * (isRtl ? -1 : 1);\n\n this.prevPos = pos === this.pos ? this.prevPos : this.pos;\n this.pos = pos;\n\n fn(e);\n };\n }\n },\n\n events: [\n {\n name: pointerDown,\n\n passive: true,\n\n delegate() {\n return `${this.selList} > *`;\n },\n\n handler(e) {\n if (\n !this.draggable ||\n (!isTouch(e) && hasSelectableText(e.target)) ||\n closest(e.target, selInput) ||\n e.button > 0 ||\n this.length < 2\n ) {\n return;\n }\n\n this.start(e);\n },\n },\n\n {\n name: 'dragstart',\n\n handler(e) {\n e.preventDefault();\n },\n },\n\n {\n // iOS workaround for slider stopping if swiping fast\n name: pointerMove,\n el() {\n return this.list;\n },\n handler: noop,\n ...pointerOptions,\n },\n ],\n\n methods: {\n start() {\n this.drag = this.pos;\n\n if (this._transitioner) {\n this.percent = this._transitioner.percent();\n this.drag += this._transitioner.getDistance() * this.percent * this.dir;\n\n this._transitioner.cancel();\n this._transitioner.translate(this.percent);\n\n this.dragging = true;\n\n this.stack = [];\n } else {\n this.prevIndex = this.index;\n }\n\n on(document, pointerMove, this.move, pointerOptions);\n\n // 'input' event is triggered by video controls\n on(document, pointerUp, this.end, pointerUpOptions);\n\n css(this.list, 'userSelect', 'none');\n },\n\n move(e) {\n const distance = this.pos - this.drag;\n\n if (\n distance === 0 ||\n this.prevPos === this.pos ||\n (!this.dragging && Math.abs(distance) < this.threshold)\n ) {\n return;\n }\n\n // prevent click event\n css(this.list, 'pointerEvents', 'none');\n\n e.cancelable && e.preventDefault();\n\n this.dragging = true;\n this.dir = distance < 0 ? 1 : -1;\n\n let { slides, prevIndex } = this;\n let dis = Math.abs(distance);\n let nextIndex = this.getIndex(prevIndex + this.dir);\n let width = this._getDistance(prevIndex, nextIndex);\n\n while (nextIndex !== prevIndex && dis > width) {\n this.drag -= width * this.dir;\n\n prevIndex = nextIndex;\n dis -= width;\n nextIndex = this.getIndex(prevIndex + this.dir);\n width = this._getDistance(prevIndex, nextIndex);\n }\n\n this.percent = dis / width;\n\n const prev = slides[prevIndex];\n const next = slides[nextIndex];\n const changed = this.index !== nextIndex;\n const edge = prevIndex === nextIndex;\n\n let itemShown;\n\n for (const i of [this.index, this.prevIndex]) {\n if (!includes([nextIndex, prevIndex], i)) {\n trigger(slides[i], 'itemhidden', [this]);\n\n if (edge) {\n itemShown = true;\n this.prevIndex = prevIndex;\n }\n }\n }\n\n if ((this.index === prevIndex && this.prevIndex !== prevIndex) || itemShown) {\n trigger(slides[this.index], 'itemshown', [this]);\n }\n\n if (changed) {\n this.prevIndex = prevIndex;\n this.index = nextIndex;\n\n !edge && trigger(prev, 'beforeitemhide', [this]);\n trigger(next, 'beforeitemshow', [this]);\n }\n\n this._transitioner = this._translate(Math.abs(this.percent), prev, !edge && next);\n\n if (changed) {\n !edge && trigger(prev, 'itemhide', [this]);\n trigger(next, 'itemshow', [this]);\n }\n },\n\n end() {\n off(document, pointerMove, this.move, pointerOptions);\n off(document, pointerUp, this.end, pointerUpOptions);\n\n if (this.dragging) {\n this.dragging = null;\n\n if (this.index === this.prevIndex) {\n this.percent = 1 - this.percent;\n this.dir *= -1;\n this._show(false, this.index, true);\n this._transitioner = null;\n } else {\n const dirChange =\n (isRtl ? this.dir * (isRtl ? 1 : -1) : this.dir) < 0 ===\n this.prevPos > this.pos;\n this.index = dirChange ? this.index : this.prevIndex;\n\n if (dirChange) {\n this.percent = 1 - this.percent;\n }\n\n this.show(\n (this.dir > 0 && !dirChange) || (this.dir < 0 && dirChange)\n ? 'next'\n : 'previous',\n true,\n );\n }\n }\n\n css(this.list, { userSelect: '', pointerEvents: '' });\n\n this.drag = this.percent = null;\n },\n\n _getDistance(prev, next) {\n return (\n this._getTransitioner(prev, prev !== next && next).getDistance() ||\n this.slides[prev].offsetWidth\n );\n },\n },\n};\n\nfunction hasSelectableText(el) {\n return (\n css(el, 'userSelect') !== 'none' &&\n toArray(el.childNodes).some((el) => el.nodeType === 3 && el.textContent.trim())\n );\n}\n","import { $, remove, within } from 'uikit-util';\nimport { attachToElement, createComponent, detachFromElement, getComponent } from './component';\nimport { update } from './global';\nimport { callConnected, callDisconnected, callHook } from './hooks';\nimport { callUpdate } from './update';\n\nexport default function (App) {\n App.prototype.$mount = function (el) {\n const instance = this;\n attachToElement(el, instance);\n\n instance.$options.el = el;\n\n if (within(el, document)) {\n callConnected(instance);\n }\n };\n\n App.prototype.$destroy = function (removeEl = false) {\n const instance = this;\n const { el } = instance.$options;\n\n if (el) {\n callDisconnected(instance);\n }\n\n callHook(instance, 'destroy');\n\n detachFromElement(el, instance);\n\n if (removeEl) {\n remove(instance.$el);\n }\n };\n\n App.prototype.$create = createComponent;\n App.prototype.$emit = function (e) {\n callUpdate(this, e);\n };\n\n App.prototype.$update = function (element = this.$el, e) {\n update(element, e);\n };\n\n App.prototype.$reset = function () {\n callDisconnected(this);\n callConnected(this);\n };\n\n App.prototype.$getComponent = getComponent;\n\n Object.defineProperties(App.prototype, {\n $el: {\n get() {\n return this.$options.el;\n },\n },\n\n $container: Object.getOwnPropertyDescriptor(App, 'container'),\n });\n}\n\nexport function generateId(instance, el = instance.$el, postfix = '') {\n if (el.id) {\n return el.id;\n }\n\n let id = `${instance.$options.id}-${instance._uid}${postfix}`;\n\n if ($(`#${id}`)) {\n id = generateId(instance, el, `${postfix}-2`);\n }\n\n return id;\n}\n","export const keyMap = {\n TAB: 9,\n ESC: 27,\n SPACE: 32,\n END: 35,\n HOME: 36,\n LEFT: 37,\n UP: 38,\n RIGHT: 39,\n DOWN: 40,\n};\n","import {\n $,\n $$,\n append,\n attr,\n children,\n closest,\n data,\n empty,\n isNumeric,\n matches,\n parent,\n toFloat,\n toNumber,\n toggleClass,\n} from 'uikit-util';\nimport { generateId } from '../api/instance';\nimport { keyMap } from '../util/keys';\n\nexport default {\n i18n: {\n next: 'Next slide',\n previous: 'Previous slide',\n slideX: 'Slide %s',\n slideLabel: '%s of %s',\n role: 'String',\n },\n\n data: {\n selNav: false,\n role: 'region',\n },\n\n computed: {\n nav({ selNav }, $el) {\n return $(selNav, $el);\n },\n\n navChildren() {\n return children(this.nav);\n },\n\n selNavItem({ attrItem }) {\n return `[${attrItem}],[data-${attrItem}]`;\n },\n\n navItems(_, $el) {\n return $$(this.selNavItem, $el);\n },\n },\n\n watch: {\n nav(nav, prev) {\n attr(nav, 'role', 'tablist');\n\n if (prev) {\n this.$emit();\n }\n },\n\n list(list) {\n attr(list, 'role', 'presentation');\n },\n\n navChildren(children) {\n attr(children, 'role', 'presentation');\n },\n\n navItems(items) {\n for (const el of items) {\n const cmd = data(el, this.attrItem);\n const button = $('a,button', el) || el;\n\n let ariaLabel;\n let ariaControls = null;\n if (isNumeric(cmd)) {\n const item = toNumber(cmd);\n const slide = this.slides[item];\n\n if (slide) {\n if (!slide.id) {\n slide.id = generateId(this, slide, `-item-${cmd}`);\n }\n ariaControls = slide.id;\n }\n\n ariaLabel = this.t('slideX', toFloat(cmd) + 1);\n\n attr(button, 'role', 'tab');\n } else {\n if (this.list) {\n if (!this.list.id) {\n this.list.id = generateId(this, this.list, '-items');\n }\n\n ariaControls = this.list.id;\n }\n\n ariaLabel = this.t(cmd);\n }\n\n attr(button, {\n 'aria-controls': ariaControls,\n 'aria-label': attr(button, 'aria-label') || ariaLabel,\n });\n }\n },\n\n slides(slides) {\n slides.forEach((slide, i) =>\n attr(slide, {\n role: this.nav ? 'tabpanel' : 'group',\n 'aria-label': this.t('slideLabel', i + 1, this.length),\n 'aria-roledescription': this.nav ? null : 'slide',\n }),\n );\n },\n\n length(length) {\n const navLength = this.navChildren.length;\n if (this.nav && length !== navLength) {\n empty(this.nav);\n for (let i = 0; i < length; i++) {\n append(this.nav, `
  • `);\n }\n }\n },\n },\n\n connected() {\n attr(this.$el, {\n role: this.role,\n 'aria-roledescription': 'carousel',\n });\n },\n\n update: [\n {\n write() {\n this.navItems.concat(this.nav).forEach((el) => el && (el.hidden = !this.maxIndex));\n this.updateNav();\n },\n\n events: ['resize'],\n },\n ],\n\n events: [\n {\n name: 'click keydown',\n\n delegate() {\n return this.selNavItem;\n },\n\n handler(e) {\n if (\n closest(e.target, 'a,button') &&\n (e.type === 'click' || e.keyCode === keyMap.SPACE)\n ) {\n e.preventDefault();\n this.show(data(e.current, this.attrItem));\n }\n },\n },\n\n {\n name: 'itemshow',\n handler: 'updateNav',\n },\n\n {\n name: 'keydown',\n\n delegate() {\n return this.selNavItem;\n },\n\n handler(e) {\n const { current, keyCode } = e;\n const cmd = data(current, this.attrItem);\n\n if (!isNumeric(cmd)) {\n return;\n }\n\n let i =\n keyCode === keyMap.HOME\n ? 0\n : keyCode === keyMap.END\n ? 'last'\n : keyCode === keyMap.LEFT\n ? 'previous'\n : keyCode === keyMap.RIGHT\n ? 'next'\n : -1;\n\n if (~i) {\n e.preventDefault();\n this.show(i);\n }\n },\n },\n ],\n\n methods: {\n updateNav() {\n const index = this.getValidIndex();\n\n for (const el of this.navItems) {\n const cmd = data(el, this.attrItem);\n const button = $('a,button', el) || el;\n\n if (isNumeric(cmd)) {\n const item = toNumber(cmd);\n const active = item === index;\n\n toggleClass(el, this.clsActive, active);\n\n attr(button, {\n 'aria-selected': active,\n tabindex: active ? null : -1,\n });\n\n if (active && button && matches(parent(el), ':focus-within')) {\n button.focus();\n }\n } else {\n toggleClass(\n el,\n 'uk-invisible',\n this.finite &&\n ((cmd === 'previous' && index === 0) ||\n (cmd === 'next' && index >= this.maxIndex)),\n );\n }\n }\n },\n },\n};\n","import {\n $,\n children,\n clamp,\n getIndex,\n hasClass,\n isNumber,\n isRtl,\n removeClass,\n trigger,\n} from 'uikit-util';\nimport { resize } from '../api/observables';\nimport I18n from './i18n';\nimport SliderAutoplay from './slider-autoplay';\nimport SliderDrag from './slider-drag';\nimport SliderNav from './slider-nav';\n\nexport default {\n mixins: [SliderAutoplay, SliderDrag, SliderNav, I18n],\n\n props: {\n clsActivated: Boolean,\n easing: String,\n index: Number,\n finite: Boolean,\n velocity: Number,\n },\n\n data: () => ({\n easing: 'ease',\n finite: false,\n velocity: 1,\n index: 0,\n prevIndex: -1,\n stack: [],\n percent: 0,\n clsActive: 'uk-active',\n clsActivated: false,\n Transitioner: false,\n transitionOptions: {},\n }),\n\n connected() {\n this.prevIndex = -1;\n this.index = this.getValidIndex(this.$props.index);\n this.stack = [];\n },\n\n disconnected() {\n removeClass(this.slides, this.clsActive);\n },\n\n computed: {\n duration({ velocity }, $el) {\n return speedUp($el.offsetWidth / velocity);\n },\n\n list({ selList }, $el) {\n return $(selList, $el);\n },\n\n maxIndex() {\n return this.length - 1;\n },\n\n slides() {\n return children(this.list);\n },\n\n length() {\n return this.slides.length;\n },\n },\n\n watch: {\n slides(slides, prev) {\n if (prev) {\n this.$emit();\n }\n },\n },\n\n observe: resize(),\n\n methods: {\n show(index, force = false) {\n if (this.dragging || !this.length) {\n return;\n }\n\n const { stack } = this;\n const queueIndex = force ? 0 : stack.length;\n const reset = () => {\n stack.splice(queueIndex, 1);\n\n if (stack.length) {\n this.show(stack.shift(), true);\n }\n };\n\n stack[force ? 'unshift' : 'push'](index);\n\n if (!force && stack.length > 1) {\n if (stack.length === 2) {\n this._transitioner?.forward(Math.min(this.duration, 200));\n }\n\n return;\n }\n\n const prevIndex = this.getIndex(this.index);\n const prev = hasClass(this.slides, this.clsActive) && this.slides[prevIndex];\n const nextIndex = this.getIndex(index, this.index);\n const next = this.slides[nextIndex];\n\n if (prev === next) {\n reset();\n return;\n }\n\n this.dir = getDirection(index, prevIndex);\n this.prevIndex = prevIndex;\n this.index = nextIndex;\n\n if (\n (prev && !trigger(prev, 'beforeitemhide', [this])) ||\n !trigger(next, 'beforeitemshow', [this, prev])\n ) {\n this.index = this.prevIndex;\n reset();\n return;\n }\n\n const promise = this._show(prev, next, force).then(() => {\n prev && trigger(prev, 'itemhidden', [this]);\n trigger(next, 'itemshown', [this]);\n\n stack.shift();\n this._transitioner = null;\n\n requestAnimationFrame(() => stack.length && this.show(stack.shift(), true));\n });\n\n prev && trigger(prev, 'itemhide', [this]);\n trigger(next, 'itemshow', [this]);\n\n return promise;\n },\n\n getIndex(index = this.index, prev = this.index) {\n return clamp(\n getIndex(index, this.slides, prev, this.finite),\n 0,\n Math.max(0, this.maxIndex),\n );\n },\n\n getValidIndex(index = this.index, prevIndex = this.prevIndex) {\n return this.getIndex(index, prevIndex);\n },\n\n _show(prev, next, force) {\n this._transitioner = this._getTransitioner(prev, next, this.dir, {\n easing: force\n ? next.offsetWidth < 600\n ? 'cubic-bezier(0.25, 0.46, 0.45, 0.94)' /* easeOutQuad */\n : 'cubic-bezier(0.165, 0.84, 0.44, 1)' /* easeOutQuart */\n : this.easing,\n ...this.transitionOptions,\n });\n\n if (!force && !prev) {\n this._translate(1);\n return Promise.resolve();\n }\n\n const { length } = this.stack;\n return this._transitioner[length > 1 ? 'forward' : 'show'](\n length > 1 ? Math.min(this.duration, 75 + 75 / (length - 1)) : this.duration,\n this.percent,\n );\n },\n\n _translate(percent, prev = this.prevIndex, next = this.index) {\n const transitioner = this._getTransitioner(prev === next ? false : prev, next);\n transitioner.translate(percent);\n return transitioner;\n },\n\n _getTransitioner(\n prev = this.prevIndex,\n next = this.index,\n dir = this.dir || 1,\n options = this.transitionOptions,\n ) {\n return new this.Transitioner(\n isNumber(prev) ? this.slides[prev] : prev,\n isNumber(next) ? this.slides[next] : next,\n dir * (isRtl ? -1 : 1),\n options,\n );\n },\n },\n};\n\nfunction getDirection(index, prevIndex) {\n return index === 'next' ? 1 : index === 'previous' ? -1 : index < prevIndex ? -1 : 1;\n}\n\nexport function speedUp(x) {\n return 0.5 * x + 300; // parabola through (400,500; 600,600; 1800,1200)\n}\n","export default {\n update: {\n write() {\n if (this.stack.length || this.dragging) {\n return;\n }\n\n const index = this.getValidIndex(this.index);\n\n if (!~this.prevIndex || this.index !== index) {\n this.show(index);\n } else {\n this._translate(1, this.prevIndex, this.index);\n }\n },\n\n events: ['resize'],\n },\n};\n","import { lazyload } from '../../api/observables';\n\nexport default {\n observe: lazyload({\n target: ({ slides }) => slides,\n targets: (instance) => instance.getAdjacentSlides(),\n }),\n};\n","import { css } from 'uikit-util';\n\nexport default {\n slide: {\n show(dir) {\n return [{ transform: translate(dir * -100) }, { transform: translate() }];\n },\n\n percent(current) {\n return translated(current);\n },\n\n translate(percent, dir) {\n return [\n { transform: translate(dir * -100 * percent) },\n { transform: translate(dir * 100 * (1 - percent)) },\n ];\n },\n },\n};\n\nexport function translated(el) {\n return Math.abs(css(el, 'transform').split(',')[4] / el.offsetWidth) || 0;\n}\n\nexport function translate(value = 0, unit = '%') {\n value += value ? unit : '';\n return `translate3d(${value}, 0, 0)`;\n}\n\nexport function scale3d(value) {\n return `scale3d(${value}, ${value}, 1)`;\n}\n","import {\n children,\n clamp,\n createEvent,\n css,\n dimensions,\n findIndex,\n includes,\n isRtl,\n noop,\n position,\n sumBy,\n Transition,\n trigger,\n} from 'uikit-util';\nimport { translate } from '../../mixin/internal/slideshow-animations';\n\nexport default function (prev, next, dir, { center, easing, list }) {\n const from = prev\n ? getLeft(prev, list, center)\n : getLeft(next, list, center) + dimensions(next).width * dir;\n const to = next\n ? getLeft(next, list, center)\n : from + dimensions(prev).width * dir * (isRtl ? -1 : 1);\n\n let resolve;\n\n return {\n dir,\n\n show(duration, percent = 0, linear) {\n const timing = linear ? 'linear' : easing;\n duration -= Math.round(duration * clamp(percent, -1, 1));\n\n this.translate(percent);\n\n percent = prev ? percent : clamp(percent, 0, 1);\n triggerUpdate(this.getItemIn(), 'itemin', { percent, duration, timing, dir });\n prev &&\n triggerUpdate(this.getItemIn(true), 'itemout', {\n percent: 1 - percent,\n duration,\n timing,\n dir,\n });\n\n return new Promise((res) => {\n resolve ||= res;\n Transition.start(\n list,\n { transform: translate(-to * (isRtl ? -1 : 1), 'px') },\n duration,\n timing,\n ).then(resolve, noop);\n });\n },\n\n cancel() {\n return Transition.cancel(list);\n },\n\n reset() {\n css(list, 'transform', '');\n },\n\n async forward(duration, percent = this.percent()) {\n await this.cancel();\n return this.show(duration, percent, true);\n },\n\n translate(percent) {\n const distance = this.getDistance() * dir * (isRtl ? -1 : 1);\n\n css(\n list,\n 'transform',\n translate(\n clamp(\n -to + (distance - distance * percent),\n -getWidth(list),\n dimensions(list).width,\n ) * (isRtl ? -1 : 1),\n 'px',\n ),\n );\n\n const actives = this.getActives();\n const itemIn = this.getItemIn();\n const itemOut = this.getItemIn(true);\n\n percent = prev ? clamp(percent, -1, 1) : 0;\n\n for (const slide of children(list)) {\n const isActive = includes(actives, slide);\n const isIn = slide === itemIn;\n const isOut = slide === itemOut;\n const translateIn =\n isIn ||\n (!isOut &&\n (isActive ||\n (dir * (isRtl ? -1 : 1) === -1) ^\n (getElLeft(slide, list) > getElLeft(prev || next))));\n\n triggerUpdate(slide, `itemtranslate${translateIn ? 'in' : 'out'}`, {\n dir,\n percent: isOut ? 1 - percent : isIn ? percent : isActive ? 1 : 0,\n });\n }\n },\n\n percent() {\n return Math.abs(\n (css(list, 'transform').split(',')[4] * (isRtl ? -1 : 1) + from) / (to - from),\n );\n },\n\n getDistance() {\n return Math.abs(to - from);\n },\n\n getItemIn(out = false) {\n let actives = this.getActives();\n let nextActives = inView(list, getLeft(next || prev, list, center));\n\n if (out) {\n const temp = actives;\n actives = nextActives;\n nextActives = temp;\n }\n\n return nextActives[findIndex(nextActives, (el) => !includes(actives, el))];\n },\n\n getActives() {\n return inView(list, getLeft(prev || next, list, center));\n },\n };\n}\n\nfunction getLeft(el, list, center) {\n const left = getElLeft(el, list);\n\n return center ? left - centerEl(el, list) : Math.min(left, getMax(list));\n}\n\nexport function getMax(list) {\n return Math.max(0, getWidth(list) - dimensions(list).width);\n}\n\nexport function getWidth(list) {\n return sumBy(children(list), (el) => dimensions(el).width);\n}\n\nfunction centerEl(el, list) {\n return dimensions(list).width / 2 - dimensions(el).width / 2;\n}\n\nfunction getElLeft(el, list) {\n return (\n (el &&\n (position(el).left + (isRtl ? dimensions(el).width - dimensions(list).width : 0)) *\n (isRtl ? -1 : 1)) ||\n 0\n );\n}\n\nfunction inView(list, listLeft) {\n listLeft -= 1;\n const listWidth = dimensions(list).width;\n const listRight = listLeft + listWidth + 2;\n\n return children(list).filter((slide) => {\n const slideLeft = getElLeft(slide, list);\n const slideRight = slideLeft + Math.min(dimensions(slide).width, listWidth);\n\n return slideLeft >= listLeft && slideRight <= listRight;\n });\n}\n\nfunction triggerUpdate(el, type, data) {\n trigger(el, createEvent(type, false, false, data));\n}\n","import {\n $,\n $$,\n addClass,\n attr,\n children,\n css,\n data,\n dimensions,\n findIndex,\n getIndex,\n hasOwn,\n includes,\n isVisible,\n last,\n selFocusable,\n sumBy,\n toFloat,\n toNumber,\n toggleClass,\n} from 'uikit-util';\nimport { resize } from '../api/observables';\nimport Class from '../mixin/class';\nimport Slider, { speedUp } from '../mixin/slider';\nimport SliderReactive from '../mixin/slider-reactive';\nimport SliderPreload from './internal/slider-preload';\nimport Transitioner, { getMax, getWidth } from './internal/slider-transitioner';\n\nexport default {\n mixins: [Class, Slider, SliderReactive, SliderPreload],\n\n props: {\n center: Boolean,\n sets: Boolean,\n },\n\n data: {\n center: false,\n sets: false,\n attrItem: 'uk-slider-item',\n selList: '.uk-slider-items',\n selNav: '.uk-slider-nav',\n clsContainer: 'uk-slider-container',\n Transitioner,\n },\n\n computed: {\n avgWidth() {\n return getWidth(this.list) / this.length;\n },\n\n finite({ finite }) {\n return finite || isFinite(this.list, this.center);\n },\n\n maxIndex() {\n if (!this.finite || (this.center && !this.sets)) {\n return this.length - 1;\n }\n\n if (this.center) {\n return last(this.sets);\n }\n\n let lft = 0;\n const max = getMax(this.list);\n const index = findIndex(this.slides, (el) => {\n if (lft >= max) {\n return true;\n }\n\n lft += dimensions(el).width;\n });\n\n return ~index ? index : this.length - 1;\n },\n\n sets({ sets: enabled }) {\n if (!enabled) {\n return;\n }\n\n let left = 0;\n const sets = [];\n const width = dimensions(this.list).width;\n for (let i = 0; i < this.length; i++) {\n const slideWidth = dimensions(this.slides[i]).width;\n\n if (left + slideWidth > width) {\n left = 0;\n }\n\n if (this.center) {\n if (\n left < width / 2 &&\n left + slideWidth + dimensions(getIndex(+i + 1, this.slides)).width / 2 >\n width / 2\n ) {\n sets.push(+i);\n left = width / 2 - slideWidth / 2;\n }\n } else if (left === 0) {\n sets.push(Math.min(+i, this.maxIndex));\n }\n\n left += slideWidth;\n }\n\n if (sets.length) {\n return sets;\n }\n },\n\n transitionOptions() {\n return {\n center: this.center,\n list: this.list,\n };\n },\n\n slides() {\n return children(this.list).filter(isVisible);\n },\n },\n\n connected() {\n toggleClass(this.$el, this.clsContainer, !$(`.${this.clsContainer}`, this.$el));\n },\n\n observe: resize({\n target: ({ slides }) => slides,\n }),\n\n update: {\n write() {\n for (const el of this.navItems) {\n const index = toNumber(data(el, this.attrItem));\n if (index !== false) {\n el.hidden =\n !this.maxIndex ||\n index > this.maxIndex ||\n (this.sets && !includes(this.sets, index));\n }\n }\n\n if (this.length && !this.dragging && !this.stack.length) {\n this.reorder();\n this._translate(1);\n }\n\n this.updateActiveClasses();\n },\n\n events: ['resize'],\n },\n\n events: {\n beforeitemshow(e) {\n if (\n !this.dragging &&\n this.sets &&\n this.stack.length < 2 &&\n !includes(this.sets, this.index)\n ) {\n this.index = this.getValidIndex();\n }\n\n const diff = Math.abs(\n this.index -\n this.prevIndex +\n ((this.dir > 0 && this.index < this.prevIndex) ||\n (this.dir < 0 && this.index > this.prevIndex)\n ? (this.maxIndex + 1) * this.dir\n : 0),\n );\n\n if (!this.dragging && diff > 1) {\n for (let i = 0; i < diff; i++) {\n this.stack.splice(1, 0, this.dir > 0 ? 'next' : 'previous');\n }\n\n e.preventDefault();\n return;\n }\n\n const index =\n this.dir < 0 || !this.slides[this.prevIndex] ? this.index : this.prevIndex;\n this.duration =\n speedUp(this.avgWidth / this.velocity) *\n (dimensions(this.slides[index]).width / this.avgWidth);\n\n this.reorder();\n },\n\n itemshow() {\n if (~this.prevIndex) {\n addClass(this._getTransitioner().getItemIn(), this.clsActive);\n }\n },\n\n itemshown() {\n this.updateActiveClasses();\n },\n },\n\n methods: {\n reorder() {\n if (this.finite) {\n css(this.slides, 'order', '');\n return;\n }\n\n const index = this.dir > 0 && this.slides[this.prevIndex] ? this.prevIndex : this.index;\n\n this.slides.forEach((slide, i) =>\n css(\n slide,\n 'order',\n this.dir > 0 && i < index ? 1 : this.dir < 0 && i >= this.index ? -1 : '',\n ),\n );\n\n if (!this.center) {\n return;\n }\n\n const next = this.slides[index];\n let width = dimensions(this.list).width / 2 - dimensions(next).width / 2;\n let j = 0;\n\n while (width > 0) {\n const slideIndex = this.getIndex(--j + index, index);\n const slide = this.slides[slideIndex];\n\n css(slide, 'order', slideIndex > index ? -2 : -1);\n width -= dimensions(slide).width;\n }\n },\n\n updateActiveClasses() {\n const actives = this._getTransitioner(this.index).getActives();\n const activeClasses = [\n this.clsActive,\n ((!this.sets || includes(this.sets, toFloat(this.index))) && this.clsActivated) ||\n '',\n ];\n for (const slide of this.slides) {\n const active = includes(actives, slide);\n toggleClass(slide, activeClasses, active);\n attr(slide, 'aria-hidden', !active);\n for (const focusable of $$(selFocusable, slide)) {\n if (!hasOwn(focusable, '_tabindex')) {\n focusable._tabindex = attr(focusable, 'tabindex');\n }\n attr(focusable, 'tabindex', active ? focusable._tabindex : -1);\n }\n }\n },\n\n getValidIndex(index = this.index, prevIndex = this.prevIndex) {\n index = this.getIndex(index, prevIndex);\n\n if (!this.sets) {\n return index;\n }\n\n let prev;\n\n do {\n if (includes(this.sets, index)) {\n return index;\n }\n\n prev = index;\n index = this.getIndex(index + this.dir, prevIndex);\n } while (index !== prev);\n\n return index;\n },\n\n getAdjacentSlides() {\n const { width } = dimensions(this.list);\n const left = -width;\n const right = width * 2;\n const slideWidth = dimensions(this.slides[this.index]).width;\n const slideLeft = this.center ? width / 2 - slideWidth / 2 : 0;\n const slides = new Set();\n for (const i of [-1, 1]) {\n let currentLeft = slideLeft + (i > 0 ? slideWidth : 0);\n let j = 0;\n do {\n const slide = this.slides[this.getIndex(this.index + i + j++ * i)];\n currentLeft += dimensions(slide).width * i;\n slides.add(slide);\n } while (this.length > j && currentLeft > left && currentLeft < right);\n }\n return Array.from(slides);\n },\n },\n};\n\nfunction isFinite(list, center) {\n if (!list || list.length < 2) {\n return true;\n }\n\n const { width: listWidth } = dimensions(list);\n if (!center) {\n return Math.ceil(getWidth(list)) < Math.trunc(listWidth + getMaxElWidth(list));\n }\n\n const slides = children(list);\n const listHalf = Math.trunc(listWidth / 2);\n for (const index in slides) {\n const slide = slides[index];\n const slideWidth = dimensions(slide).width;\n const slidesInView = new Set([slide]);\n\n let diff = 0;\n for (const i of [-1, 1]) {\n let left = slideWidth / 2;\n\n let j = 0;\n\n while (left < listHalf) {\n const nextSlide = slides[getIndex(+index + i + j++ * i, slides)];\n\n if (slidesInView.has(nextSlide)) {\n return true;\n }\n\n left += dimensions(nextSlide).width;\n slidesInView.add(nextSlide);\n }\n diff = Math.max(\n diff,\n slideWidth / 2 +\n dimensions(slides[getIndex(+index + i, slides)]).width / 2 -\n (left - listHalf),\n );\n }\n\n if (\n diff >\n sumBy(\n slides.filter((slide) => !slidesInView.has(slide)),\n (slide) => dimensions(slide).width,\n )\n ) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getMaxElWidth(list) {\n return Math.max(0, ...children(list).map((el) => dimensions(el).width));\n}\n","import { clamp, createEvent, css, noop, Transition, trigger } from 'uikit-util';\n\nexport default function Transitioner(prev, next, dir, { animation, easing }) {\n const { percent, translate, show = noop } = animation;\n const props = show(dir);\n\n let resolve;\n\n return {\n dir,\n\n show(duration, percent = 0, linear) {\n const timing = linear ? 'linear' : easing;\n duration -= Math.round(duration * clamp(percent, -1, 1));\n\n this.translate(percent);\n\n triggerUpdate(next, 'itemin', { percent, duration, timing, dir });\n triggerUpdate(prev, 'itemout', { percent: 1 - percent, duration, timing, dir });\n\n return new Promise((res) => {\n resolve ||= res;\n Promise.all([\n Transition.start(next, props[1], duration, timing),\n Transition.start(prev, props[0], duration, timing),\n ]).then(() => {\n this.reset();\n resolve();\n }, noop);\n });\n },\n\n cancel() {\n return Transition.cancel([next, prev]);\n },\n\n reset() {\n for (const prop in props[0]) {\n css([next, prev], prop, '');\n }\n },\n\n async forward(duration, percent = this.percent()) {\n await this.cancel();\n return this.show(duration, percent, true);\n },\n\n translate(percent) {\n this.reset();\n\n const props = translate(percent, dir);\n css(next, props[1]);\n css(prev, props[0]);\n triggerUpdate(next, 'itemtranslatein', { percent, dir });\n triggerUpdate(prev, 'itemtranslateout', { percent: 1 - percent, dir });\n },\n\n percent() {\n return percent(prev || next, next, dir);\n },\n\n getDistance() {\n return prev?.offsetWidth;\n },\n };\n}\n\nfunction triggerUpdate(el, type, data) {\n trigger(el, createEvent(type, false, false, data));\n}\n","import { addClass, removeClass } from 'uikit-util';\nimport Animations from './internal/slideshow-animations';\nimport Transitioner from './internal/slideshow-transitioner';\nimport Slider from './slider.js';\n\nexport default {\n mixins: [Slider],\n\n props: {\n animation: String,\n },\n\n data: {\n animation: 'slide',\n clsActivated: 'uk-transition-active',\n Animations,\n Transitioner,\n },\n\n computed: {\n animation({ animation, Animations }) {\n return { ...(Animations[animation] || Animations.slide), name: animation };\n },\n\n transitionOptions() {\n return { animation: this.animation };\n },\n },\n\n events: {\n beforeitemshow({ target }) {\n addClass(target, this.clsActive);\n },\n\n itemshown({ target }) {\n addClass(target, this.clsActivated);\n },\n\n itemhidden({ target }) {\n removeClass(target, this.clsActive, this.clsActivated);\n },\n },\n};\n","import { css } from 'uikit-util';\nimport Animations, {\n scale3d,\n translate,\n translated,\n} from '../../mixin/internal/slideshow-animations';\n\nexport default {\n ...Animations,\n fade: {\n show() {\n return [{ opacity: 0, zIndex: 0 }, { zIndex: -1 }];\n },\n\n percent(current) {\n return 1 - css(current, 'opacity');\n },\n\n translate(percent) {\n return [{ opacity: 1 - percent, zIndex: 0 }, { zIndex: -1 }];\n },\n },\n\n scale: {\n show() {\n return [{ opacity: 0, transform: scale3d(1 + 0.5), zIndex: 0 }, { zIndex: -1 }];\n },\n\n percent(current) {\n return 1 - css(current, 'opacity');\n },\n\n translate(percent) {\n return [\n { opacity: 1 - percent, transform: scale3d(1 + 0.5 * percent), zIndex: 0 },\n { zIndex: -1 },\n ];\n },\n },\n\n pull: {\n show(dir) {\n return dir < 0\n ? [\n { transform: translate(30), zIndex: -1 },\n { transform: translate(), zIndex: 0 },\n ]\n : [\n { transform: translate(-100), zIndex: 0 },\n { transform: translate(), zIndex: -1 },\n ];\n },\n\n percent(current, next, dir) {\n return dir < 0 ? 1 - translated(next) : translated(current);\n },\n\n translate(percent, dir) {\n return dir < 0\n ? [\n { transform: translate(30 * percent), zIndex: -1 },\n { transform: translate(-100 * (1 - percent)), zIndex: 0 },\n ]\n : [\n { transform: translate(-percent * 100), zIndex: 0 },\n { transform: translate(30 * (1 - percent)), zIndex: -1 },\n ];\n },\n },\n\n push: {\n show(dir) {\n return dir < 0\n ? [\n { transform: translate(100), zIndex: 0 },\n { transform: translate(), zIndex: -1 },\n ]\n : [\n { transform: translate(-30), zIndex: -1 },\n { transform: translate(), zIndex: 0 },\n ];\n },\n\n percent(current, next, dir) {\n return dir > 0 ? 1 - translated(next) : translated(current);\n },\n\n translate(percent, dir) {\n return dir < 0\n ? [\n { transform: translate(percent * 100), zIndex: 0 },\n { transform: translate(-30 * (1 - percent)), zIndex: -1 },\n ]\n : [\n { transform: translate(-30 * percent), zIndex: -1 },\n { transform: translate(100 * (1 - percent)), zIndex: 0 },\n ];\n },\n },\n};\n","import { boxModelAdjust, css } from 'uikit-util';\nimport Class from '../mixin/class';\nimport SliderReactive from '../mixin/slider-reactive';\nimport Slideshow from '../mixin/slideshow';\nimport SliderPreload from './internal/slider-preload';\nimport Animations from './internal/slideshow-animations';\n\nexport default {\n mixins: [Class, Slideshow, SliderReactive, SliderPreload],\n\n props: {\n ratio: String,\n minHeight: Number,\n maxHeight: Number,\n },\n\n data: {\n ratio: '16:9',\n minHeight: false,\n maxHeight: false,\n selList: '.uk-slideshow-items',\n attrItem: 'uk-slideshow-item',\n selNav: '.uk-slideshow-nav',\n Animations,\n },\n\n update: {\n read() {\n if (!this.list) {\n return false;\n }\n\n let [width, height] = this.ratio.split(':').map(Number);\n\n height = (height * this.list.offsetWidth) / width || 0;\n\n if (this.minHeight) {\n height = Math.max(this.minHeight, height);\n }\n\n if (this.maxHeight) {\n height = Math.min(this.maxHeight, height);\n }\n\n return { height: height - boxModelAdjust(this.list, 'height', 'content-box') };\n },\n\n write({ height }) {\n height > 0 && css(this.list, 'minHeight', height);\n },\n\n events: ['resize'],\n },\n\n methods: {\n getAdjacentSlides() {\n return [1, -1].map((i) => this.slides[this.getIndex(this.index + i)]);\n },\n },\n};\n","import UIkit from 'uikit/dist/js/uikit-core';\nimport Slider from 'uikit/src/js/components/slider';\nimport Slideshow from 'uikit/src/js/components/slideshow';\n// To enable parallax functionality, uncomment the desired line(s) below\n// import Parallax from 'uikit/src/js/components/parallax';\n// import SliderParallax from 'uikit/src/js/components/slider-parallax';\n// import SlideshowParallax from 'uikit/src/js/components/slideshow-parallax';\n\n// Add individual components imported from UIKit below\nconst components = [\n { name: 'slider', component: Slider },\n { name: 'slideshow', component: Slideshow },\n // To enable parallax functionality, uncomment the desired line(s) below\n // { name: 'parallax', component: Parallax },\n // { name: 'slider-parallax', component: SliderParallax },\n // { name: 'slideshow-parallax', component: SlideshowParallax },\n];\n\ncomponents.forEach(({ name, component }) => {\n UIkit.component(name, component);\n});\n\nexport default UIkit;\n","import UIkit from './UIkit';\n\nconst initBlogResources = () => {\n UIkit.util.on('.blog-resources .uk-slider', 'beforeitemshow', function (e) {\n const index = parseInt(e.target.dataset.id) + 1;\n const currentSlide = document.querySelector(\n '.blog-resources__current-slide',\n );\n let totalSlides = document.querySelector('.blog-resources__total-slides');\n const progessBar = document.querySelector(\n '#blog-resources__js-progressbar',\n );\n\n totalSlides = totalSlides.innerHTML;\n currentSlide.innerHTML = index.toString().padStart(2, '0');\n progessBar.value = `${(index / totalSlides) * 100}`;\n });\n};\n\nexport default initBlogResources;\n","import UIkit from './UIkit';\n\nconst initSlideshows = () => {\n UIkit.util.on('.hero .uk-slider', 'beforeitemshow', function (e) {\n const index = parseInt(e.target.dataset.id) + 1;\n const currentSlide = document.querySelector('.current-slide');\n const currentSlideMobile = document.querySelector('.current-slide-mobile');\n let totalSlides = document.querySelector('.total-slides');\n const progessBar = document.querySelector('#js-progressbar');\n const progessBarMobile = document.querySelector('#js-progressbar-mobile');\n\n totalSlides = totalSlides.innerHTML;\n currentSlide.innerHTML = index.toString().padStart(2, '0');\n currentSlideMobile.innerHTML = index.toString().padStart(2, '0');\n progessBar.value = `${(index / totalSlides) * 100}`;\n progessBarMobile.value = `${(index / totalSlides) * 100}`;\n });\n\n setTimeout(() => {\n const slideshows = document.querySelectorAll(\n '.hero .uk-slider-items div[aria-roledescription=\"slide\"]',\n );\n\n slideshows.forEach((slideshow) => {\n const slideshowId = slideshow.dataset.id;\n\n if (typeof slideshowId === 'undefined') {\n slideshow.remove();\n }\n });\n }, 1000);\n};\n\nexport default initSlideshows;\n","import UIkit from './UIkit';\n\nconst initImageSlider = () => {\n const imageSlider = document.querySelectorAll('.image-slider');\n const brandsImageSlider = document.querySelectorAll('.brands-image-slider');\n\n if (imageSlider) {\n imageSlider.forEach((slider) => {\n const sliderID = slider.getAttribute('id');\n const currentSlider = document.querySelector(\n '#' + sliderID + ' .uk-slider',\n );\n\n UIkit.util.on(currentSlider, 'beforeitemshow', function (e) {\n const index = parseInt(e.target.dataset.id) + 1;\n\n const currentSlide = document.querySelector(\n '#' + sliderID + ' .image-slider__current-slide',\n );\n\n let totalSlides = document.querySelector(\n '#' + sliderID + ' .image-slider__total-slides',\n );\n\n const progessBar = document.querySelector(\n '#' + sliderID + ' #image-slider__js-progressbar',\n );\n\n totalSlides = totalSlides.innerHTML;\n currentSlide.innerHTML = index.toString().padStart(2, '0');\n progessBar.value = `${(index / totalSlides) * 100}`;\n });\n });\n }\n\n if (brandsImageSlider) {\n brandsImageSlider.forEach((slider) => {\n const sliderID = slider.getAttribute('id');\n const currentSlider = document.querySelector(\n '#' + sliderID + ' .uk-slider',\n );\n\n UIkit.util.on(currentSlider, 'beforeitemshow', function (e) {\n const index = parseInt(e.target.dataset.id) + 1;\n\n const currentSlide = document.querySelector(\n '#' + sliderID + ' .brands-image-slider__current-slide',\n );\n\n let totalSlides = document.querySelector(\n '#' + sliderID + ' .brands-image-slider__total-slides',\n );\n\n const progessBar = document.querySelector(\n '#' + sliderID + ' #brands-image-slider__js-progressbar',\n );\n\n totalSlides = totalSlides.innerHTML;\n currentSlide.innerHTML = index.toString().padStart(2, '0');\n progessBar.value = `${(index / totalSlides) * 100}`;\n });\n });\n }\n};\n\nexport default initImageSlider;\n","import UIkit from './UIkit';\n\nconst initImageSliderPartial = () => {\n UIkit.util.on(\n '.image-slider-partial .uk-slider',\n 'beforeitemshow',\n function (e) {\n const index = parseInt(e.target.dataset.id) + 1;\n const currentSlide = document.querySelector(\n '.image-slider-partial__current-slide',\n );\n let totalSlides = document.querySelector(\n '.image-slider-partial__total-slides',\n );\n const progessBar = document.querySelector(\n '#image-slider-partial__js-progressbar',\n );\n\n totalSlides = totalSlides.innerHTML;\n currentSlide.innerHTML = index.toString().padStart(2, '0');\n progessBar.value = `${(index / totalSlides) * 100}`;\n },\n );\n};\n\nexport default initImageSliderPartial;\n","const initPartials = () => {\n const containerFiftyFifty = document.querySelectorAll('.fifty-fifty');\n\n if (containerFiftyFifty) {\n containerFiftyFifty.forEach((container) => {\n const partialImage = container.querySelector('.partial.image');\n const partialImageSlider = container.querySelector(\n '.partial.image-slider-partial',\n );\n\n if (partialImage) {\n container.classList.add('fifty-fifty--image');\n }\n\n if (partialImageSlider) {\n container.classList.add('fifty-fifty--image-slider-partial');\n }\n });\n }\n};\n\nexport default initPartials;\n","import UIkit from './UIkit';\n\nconst initTestimonials = () => {\n UIkit.util.on('.testimonials .uk-slider', 'beforeitemshow', function (e) {\n const index = parseInt(e.target.dataset.id) + 1;\n const currentSlide = document.querySelector('.testimonials__current-slide');\n let totalSlides = document.querySelector('.testimonials__total-slides');\n const progessBar = document.querySelector('#testimonials__js-progressbar');\n\n totalSlides = totalSlides.innerHTML;\n currentSlide.innerHTML = index.toString().padStart(2, '0');\n progessBar.value = `${(index / totalSlides) * 100}`;\n });\n};\n\nexport default initTestimonials;\n","import UIkit from './UIkit';\n\nconst initTimelineSlider = () => {\n UIkit.util.on('.timeline .uk-slider', 'beforeitemshow', function (e) {\n const index = parseInt(e.target.dataset.id) + 1;\n const currentSlide = document.querySelector('.timeline__current-slide');\n let totalSlides = document.querySelector('.timeline__total-slides');\n const progessBar = document.querySelector('#timeline__js-progressbar');\n\n totalSlides = totalSlides.innerHTML;\n currentSlide.innerHTML = index.toString().padStart(2, '0');\n progessBar.value = `${(index / totalSlides) * 100}`;\n });\n};\n\nexport default initTimelineSlider;\n","const initHeaderSearch = () => {\n const searchButton = document.querySelector('.search-form');\n\n if (searchButton) {\n const searchForm = document.querySelector('#searchform');\n const searchFormMobile = document.querySelector('#searchform-mobile');\n const additionalLinks = document.querySelectorAll('.additional-link .btn');\n const menuDropdown = document.querySelectorAll('.menu-item-has-children');\n const mobileToggle = document.querySelector('.navbar__mobile-button');\n const mobileContact = document.querySelector('.btn-mobile-contact');\n\n searchButton.addEventListener('click', (e) => {\n e.preventDefault();\n searchForm.classList.toggle('active');\n\n additionalLinks.forEach((link) => {\n link.classList.toggle('uk-hidden');\n });\n });\n\n menuDropdown.forEach((dropdown) => {\n dropdown.innerHTML += `\n \n `;\n });\n\n mobileToggle.addEventListener('click', () => {\n if (mobileToggle.classList.contains('active')) {\n mobileToggle.classList.toggle('active');\n mobileToggle.classList.toggle('not-active');\n setTimeout(function () {\n mobileToggle.classList.remove('not-active');\n }, 350);\n } else if (mobileToggle.classList.contains('not-active')) {\n mobileToggle.classList.toggle('active');\n mobileToggle.classList.toggle('not-active');\n } else {\n mobileToggle.classList.add('active');\n }\n\n if (mobileToggle.classList.contains('active')) {\n document.querySelector('ul#menu-menu-primary').classList.add('active');\n searchFormMobile.classList.add('search-active');\n mobileContact.classList.add('contact-active');\n } else {\n document\n .querySelector('ul#menu-menu-primary')\n .classList.remove('active');\n searchFormMobile.classList.remove('search-active');\n mobileContact.classList.remove('contact-active');\n }\n });\n\n window.addEventListener('resize', () => {\n if (window.outerWidth > 1240) {\n document\n .querySelector('ul#menu-menu-primary')\n .classList.remove('active');\n\n mobileToggle.classList.remove('active');\n searchFormMobile.classList.remove('search-active');\n mobileContact.classList.remove('contact-active');\n\n menuDropdown.forEach((dropdown) => {\n dropdown.classList.remove('dropdown-active');\n });\n } else {\n mobileMenu();\n }\n });\n\n window.addEventListener('load', () => {\n if (window.outerWidth <= 1240) {\n mobileMenu();\n }\n });\n\n function mobileMenu() {\n menuDropdown.forEach((dropdown) => {\n dropdown.addEventListener('click', () => {\n if (dropdown.classList.contains('dropdown-active')) {\n dropdown.classList.remove('dropdown-active');\n } else {\n dropdown.classList.add('dropdown-active');\n }\n });\n });\n }\n }\n};\n\nexport default initHeaderSearch;\n","const initresourceFiltering = () => {\n const resourceFilteringContainer = document.querySelector(\n '.resource-filtering',\n );\n\n if (resourceFilteringContainer) {\n const url = new URL(window.location.href);\n const dropdownItems = document.querySelectorAll('.filter-item button');\n const resourceResultsContainer =\n document.querySelector('#resource-results');\n const searchButton = document.querySelector('#search-resource');\n const filteringText = document.querySelector('.filtering-text');\n const removeFilter = document.querySelectorAll('.remove-filter');\n\n dropdownItems.forEach((item) => {\n item.addEventListener('click', () => {\n const selectedCategory = item.dataset.id;\n const dropdownType = item.dataset.type;\n const selectedCategoryText = item.textContent;\n document.querySelector(\n '.choose-button[data-id=\"' + dropdownType + '\"]',\n ).textContent = selectedCategoryText;\n });\n });\n\n searchButton.addEventListener('click', () => {\n // const selectedCategory = dropdownButton.textContent;\n const selectedTopic = document.querySelector(\n '.choose-button[data-id=\"topic-tag\"]',\n ).textContent;\n\n const selectedIndustry = document.querySelector(\n '.choose-button[data-id=\"industry-tag\"]',\n ).textContent;\n\n const selectedResource = document.querySelector(\n '.choose-button[data-id=\"resource-type\"]',\n ).textContent;\n\n const inputValue = document.querySelector('.search-input').value;\n filteringText.innerHTML = '';\n\n if (!isWhitespaceString(selectedTopic)) {\n if (selectedTopic !== '') {\n if (!url.searchParams.has('topic')) {\n url.searchParams.append('topic', selectedTopic);\n } else {\n url.searchParams.set('topic', selectedTopic);\n }\n }\n }\n\n if (!isWhitespaceString(selectedIndustry)) {\n if (selectedIndustry !== '') {\n if (!url.searchParams.has('industry')) {\n url.searchParams.append('industry', selectedIndustry);\n } else {\n url.searchParams.set('industry', selectedIndustry);\n }\n }\n }\n\n if (!isWhitespaceString(selectedResource)) {\n if (selectedResource !== '') {\n if (!url.searchParams.has('resource')) {\n url.searchParams.append('resource', selectedResource);\n } else {\n url.searchParams.set('resource', selectedResource);\n }\n }\n }\n\n if (inputValue) {\n if (!url.searchParams.has('search')) {\n url.searchParams.append('search', inputValue);\n } else {\n url.searchParams.set('search', inputValue);\n }\n }\n\n history.pushState({}, '', url.href);\n\n getResourcesResults(\n selectedTopic,\n selectedIndustry,\n selectedResource,\n inputValue,\n );\n });\n\n // Search Functionality\n const protocol = window.location.protocol;\n const hostname = window.location.hostname;\n const restBase = protocol + '//' + hostname + '/wp-json/resource-rest/v1';\n\n const getResourcesResults = (topic, industry, resource, searchInput) => {\n if (isWhitespaceString(topic)) {\n topic = '';\n }\n\n if (isWhitespaceString(industry)) {\n industry = '';\n }\n\n if (isWhitespaceString(resource)) {\n resource = '';\n }\n\n let data = {\n action: 'resource_rest',\n topic: topic,\n industry: industry,\n resource: resource,\n search_input: searchInput,\n };\n\n if (topic) {\n filteringText.innerHTML += ``;\n }\n\n if (industry) {\n filteringText.innerHTML += ``;\n }\n\n if (resource) {\n filteringText.innerHTML += ``;\n }\n\n if (searchInput) {\n filteringText.innerHTML += ``;\n }\n\n const removeFilter = document.querySelectorAll('.remove-filter');\n\n removeFilter.forEach((item) => {\n item.addEventListener('click', () => {\n let topic = '';\n let industry = '';\n let resource = '';\n let text = '';\n\n item.remove();\n\n const topicFilter = document.querySelector(\n '.remove-filter[data-type=\"topic-tag\"]',\n );\n\n const industryFilter = document.querySelector(\n '.remove-filter[data-type=\"industry-tag\"]',\n );\n\n const resourceFilter = document.querySelector(\n '.remove-filter[data-type=\"resource-type\"]',\n );\n\n const textFilter = document.querySelector(\n '.remove-filter[data-type=\"text\"]',\n );\n\n if (!topicFilter) {\n if (url.searchParams.has('topic')) {\n document.querySelector(\n '.choose-button[data-id=\"topic-tag\"]',\n ).textContent = '';\n\n url.searchParams.delete('topic');\n }\n } else {\n topic = topicFilter.getAttribute('data-value');\n }\n\n if (!industryFilter) {\n if (url.searchParams.has('industry')) {\n document.querySelector(\n '.choose-button[data-id=\"industry-tag\"]',\n ).textContent = '';\n\n url.searchParams.delete('industry');\n }\n } else {\n industry = industryFilter.getAttribute('data-value');\n }\n\n if (!resourceFilter) {\n if (url.searchParams.has('resource')) {\n document.querySelector(\n '.choose-button[data-id=\"resource-type\"]',\n ).textContent = '';\n\n url.searchParams.delete('resource');\n }\n } else {\n resource = resourceFilter.getAttribute('data-value');\n }\n\n if (!textFilter) {\n document.querySelector('.search-input').value = '';\n\n if (url.searchParams.has('search')) {\n url.searchParams.delete('search');\n }\n } else {\n text = textFilter.getAttribute('data-value');\n }\n\n history.pushState({}, '', url.href);\n filteringText.innerHTML = '';\n\n getResourcesResults(topic, industry, resource, searchInput);\n });\n });\n\n const options = {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'X-WP-Nonce': resource_rest.apiNonce,\n },\n credentials: 'same-origin',\n body: JSON.stringify({\n data: data,\n }),\n };\n\n fetch(restBase + '/search', options)\n .then((response) => {\n if (!response.ok) {\n const statusError = 'Error getting Search from API';\n console.log(statusError, response);\n }\n return response.json();\n })\n .then((response) => {\n if (response.posts !== '') {\n resourceResultsContainer.classList.add('active-results');\n resourceResultsContainer.innerHTML = response.posts;\n } else {\n resourceResultsContainer.classList.remove('active-results');\n resourceResultsContainer.innerHTML = '';\n }\n })\n .catch((response) => {\n console.log(response);\n });\n };\n\n if (\n url.searchParams.has('search') ||\n url.searchParams.has('topic') ||\n url.searchParams.has('industry') ||\n url.searchParams.has('resource')\n ) {\n const topicSearch = url.searchParams.get('topic');\n const industrySearch = url.searchParams.get('industry');\n const resourceSearch = url.searchParams.get('resource');\n const searchInput = url.searchParams.get('search');\n\n getResourcesResults(\n topicSearch,\n industrySearch,\n resourceSearch,\n searchInput,\n );\n }\n }\n\n function isWhitespaceString(str) {\n if (str) {\n return !str.replace(/\\s/g, '').length;\n }\n }\n};\n\nexport default initresourceFiltering;\n","const initResources = () => {\n const resourceContainer = document.querySelector('.resources');\n\n if (resourceContainer) {\n const resourceItems = document.querySelectorAll('.resource-item');\n const loadMore = document.querySelector('.load-more');\n\n resourceItems.forEach((item) => {\n item.style.display = 'none';\n });\n\n resourceItems.forEach((item, index) => {\n if (index < 12) {\n item.style.display = 'block';\n }\n });\n\n if (resourceItems.length < 13) {\n loadMore.style.display = 'none';\n }\n\n loadMore.addEventListener('click', () => {\n const page = loadMore.getAttribute('data-page');\n\n document\n .querySelector('.load-more')\n .setAttribute('data-page', parseInt(page) + 1);\n\n resourceItems.forEach((item, index) => {\n if (index < 12 * parseInt(page)) {\n item.style.display = 'block';\n\n if (index === resourceItems.length - 1) {\n loadMore.style.display = 'none';\n }\n }\n });\n });\n }\n};\n\nexport default initResources;\n","// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport UIkit from 'uikit/dist/js/uikit-core';\nimport initAccordionList from './theme/accordion';\nimport initBlogResources from './theme/blogResources';\nimport initSlideshows from './theme/slideshow';\nimport initImageSlider from './theme/imageSlider';\nimport initImageSliderPartial from './theme/imageSliderPartial';\nimport initPartials from './theme/partials';\nimport initTestimonials from './theme/testimonials';\nimport initTimelineSlider from './theme/timelineSlider';\nimport initHeaderSearch from './theme/headerSearch';\nimport initresourceFiltering from './theme/resourceFiltering';\nimport initResources from './theme/resources';\n\ninitAccordionList();\ninitBlogResources();\ninitSlideshows();\ninitImageSlider();\ninitImageSliderPartial();\ninitPartials();\ninitTestimonials();\ninitTimelineSlider();\ninitHeaderSearch();\ninitresourceFiltering();\ninitResources();\n"],"names":["global","factory","module","this","hasOwnProperty","toString","hasOwn","obj","key","hyphenateRe","hyphenate","memoize","str","camelizeRe","camelize","_","c","ucfirst","startsWith","search","_a","endsWith","includes","findIndex","array","predicate","isArray","toArray","assign","isFunction","isObject","isPlainObject","isWindow","isDocument","nodeType","isNode","isElement","isBoolean","value","isString","isNumber","isNumeric","isEmpty","isUndefined","toBoolean","toNumber","number","toFloat","toNode","element","toNodes","toWindow","document","isEqual","other","each","val","swap","a","b","match","last","cb","sortBy$1","prop","propA","propB","sumBy","iteratee","sum","item","uniqueBy","seen","check","pick","props","res","clamp","min","max","noop","intersectRect","rects","minProp","maxProp","pointInRect","point","rect","ratio","dimensions","aProp","contain","maxDimensions","cover$1","Dimensions","getIndex","i","elements","current","finite","length","fn","cache","attr","name","el","removeAttr","hasAttr","element2","data","attribute","addClass","args","apply$1","removeClass","removeClasses","cls","replaceClass","hasClass","getClasses","node","toggleClass","force","classes","cls2","args2","arg","voidElements","isVoidElement","isVisible","selInput","isInput","matches","selFocusable","isFocusable","parent","filter","selector","closest","within","parents","children","children2","index","ref","isSameSiteAnchor","part","getTargetedElement","id","query","context","find","getContext","queryAll","findAll","_query","contextSelectorRe","isContextSelector","contextSanitizeRe","sanatize","queryFn","split","splitSelector","sel","ctx","selectors","prev","domPath","selectorRe","selector2","names","escape","tagName","css","on","targets","types","listener","useCapture","getArgs","detail","selfFilter","delegate","type","target","off","once","condition","off2","e","result","trigger","event","detail2","toEventTargets","createEvent","bubbles","cancelable","isEventTarget","toEventTarget","isTouch","getEventPos","_b","x","y","cssNumber","property","priority","propName","value2","property2","vendorPropName","style","prefix","prefixedName","transition$1","duration","timing","resolve","reject","timer","Transition","animationPrefix","animate$2","animation","origin","out","inProgressRe","Animation","ready","isTag","tagNames","empty","$","html","parent2","html2","append","prepend","applyFn","before","after","nodes","fragment","unwrapSingle","remove$1","wrapAll","structure","wrapInner","unwrap","self","fragmentRe","singleTagRe","container","apply","next","isHtml","$$","dirs$1","height","width","offset","coordinates","currentOffset","scrollY","scrollX","offsetBy","dir","position","top","left","body","documentElement","offsetParent","parentOffset","offsetPosition","offset2","win","dimension","doc","boxModelAdjust","sizing","prop2","flipPosition","pos","toPx","offsetDim","parseCalc","unit","parseUnit","percent","getViewportHeight","calcRe","calc","unitRe","base","vh","vhEl","inBrowser","isRtl","hasTouch","hasPointerEvents","pointerDown","pointerMove","pointerUp","pointerEnter","pointerLeave","pointerCancel","fastdom","task","scheduleFlush","remove","flush","recursion","runTasks","RECURSION_LIMIT","tasks","MouseTracker","p","right","bottom","prevPosition","path","diagonal","intersection","intersect","x1","y1","x2","y2","x3","y3","x4","y4","denominator","ua","observeIntersection","options","intersecting","observer","entries","observer2","entry","hasResizeObserver","observeResize","observe$1","cb2","observeViewportResize","observeMutation","Observer","play","isIFrame","call","isHTML5","pause","mute","isVideo","isYoutube","isVimeo","cmd","enableApi","post","stateKey","counter","youtube","vimeo","poller","isInView","offsetTop","offsetLeft","overflowParents","offsetViewport","scrollIntoView","parents2","scrollParents","scrollElement","scrollTop","scrollHeight","offsetHeight","viewport","maxScroll","elHeight","elTop","scrollTo","scroll","getDuration","start","step","ease","dist","k","scrolledOver","startOffset","endOffset","scrollParent","viewportHeight","elementOffsetTop","end","scrollable","scrollEl","scrollingElement","ancestors","fixedIndex","window","visualViewport","viewportElement","scale","subpixel","dirs","positionAt","getPosition","attachTo","boundary","viewportOffset","placement","getViewport$2","isWithin","attach","flip","scrollArea","getScrollArea","applyOffset","newPos","flipAxis","targetDim","elOffset","targetOffset","moveBy","dim","getIntersectionArea","commonScrollParents","axis","area","positionA","positionB","flipAttach","flipOffset","flipAttachAxis","newAttach","util","initUpdates","instance","prependUpdate","update","clearUpdateData","callUpdate","runUpdates","read","write","events","initWatches","watches","watch","registerWatch","runWatches","values","handler","immediate","initComputed","computed","registerComputed","_computed","$props","$el","initComputedUpdates","resetComputed","registerComputedObserver","instances$1","disconnectComputedUpdates","initEvents","registerEvent","unbindEvents","unbind","capture","passive","el2","initObservers","registerObservable","observable","registerObserver","disconnectObservers","observe","updateTargets","strats","concatStrat","parentVal","childVal","vm","mergeFnData","vm2","defaultStrat","mergeOptions","child","mixin","mergeKey","parseOptions","options2","option","coerce$1","toList","initProps","getProps","exclude","notIn","opts","data$1","arr","initPropsObserver","$options","attributes","records","attributeName","callHook","hook","callConnected","callDisconnected","uid","init$1","normalizeData","initData","initMethods","methods","data2","App","PREFIX","DATA","components$1","component","createComponent","opt","Component","init","getComponent","getComponents","attachToElement","detachFromElement","boot","connect","applyChildListMutation","applyAttributeMutation","addedNodes","removedNodes","disconnect","getComponentName","components2","cmp","globalApi","plugin","component2","Super","Sub","parentEl","updateElement","components","instanceApi","removeEl","generateId","postfix","resize","mutation","lazyload","preload","isIntersecting","scroll$1","toScrollTargets","swipe","e2","swipeDirection","observe2","emit","ownerDocument","Class","Togglable","transition","toggle","animate","show","promise","toggleInstant","toggleTransition","toggleAnimation","done","toggled","changed","_toggle","velocity","mode","startProp","dimProp","marginProp","marginStartProp","currentDim","inProgress","prevProps","currentMargin","marginStart","endDim","wrapper","endProps","keyMap","Accordion","content","items","active","isOpen","hide","keepScrollPosition","activeItems","index2","hide2","transition2","currentHeight","endHeight","frame","alert","animate$1","Video","visible","inView","cover","getPositionedParent","intrinsic","coverHeight","coverWidth","coverDim","Container","prevented","preventBackgroundScroll","clientHeight","Position","restoreScrollPosition","storeScrollPosition","elDim","active$1","drop","boundaryX","boundaryY","targetX","targetY","createToggleComponent","defaultPrevented","hash","handlers","listenForResize","listenForEscClose$1","listenForBackgroundClose$1","listenForScroll","delay","getPositionedElements","viewports","getViewport$1","maxWidth","positionOffset","newTarget","Dropnav","dropbarAnchor","dropbar","clsDrop","dropdowns","selNavItem","active2","keyCode","handleNavItemNavigation","adjustHeight","targetOffsets","minTop","maxBottom","dropbarOffset","newHeight","oldHeight","toggles","_c","formCustom","input","Margin","rows","getRows","getColumns","columns","row","column","sortBy","sorted","j","endProp","getOffset","startDim","offsetWidth","grid","parallax","positionedAbsolute","translates","columnHeights","margin","getMarginTop","getTranslates","padding","newPadding","hgt","scrolled","rowHeights","heightMatch","heights","getHeight","heightViewport","minHeight","box","isScrollingElement","closeIcon","closeLarge","dropParentIcon","marker","navParentIconLarge","navParentIcon","navbarParentIcon","navbarToggleIcon","overlayIcon","paginationNext","paginationPrevious","searchIcon","searchLarge","searchNavbar","slidenavNextLarge","slidenavNext","slidenavPreviousLarge","slidenavPrevious","spinner","totop","I18n","params","Svg","svg","insertSVG","applyWidthAndHeight","root","equals","viewBox","icons","Icon","install$1","icon","getIcon","IconComponent","NavParentIcon","Search","label","button","Spinner","ButtonComponent","Slidenav","NavbarToggleIcon","Close","Marker","Totop","PaginationNext","PaginationPrevious","parsed","UIkit","added","svg2","name2","applyRtl","nativeLazyLoad","img","isImg","setSrcAttrs","ensureSrcAttribute","loading","image","getImageFromElement","src","parentNode","setSourceProps","srcProps","sourceEl","targetEl","sources","wrapInPicture","parseSources","picture","attrs","source","Media","media","toMedia","leader","fill","Modal","selPanel","bgClose","modal","preventBackgroundFocus","listenForBackgroundClose","listenForEscClose","transitionElement","toMs","time","install","dialog","message","openDialog","i18n","tmpl","hideFn","submitFn","nav","navbar","justify","offcanvas","clsFlip","overlay","clsOverlay","clsMode","clsSidebarAnimation","clsContainerAnimation","swiping","suppressUserScale","resumeUserScale","getViewport","overflowAuto","selContainer","selContent","responsive","registerClick","unregisterClick","instances","clickHandler","scrollspy","state","inview","removeAnimationClasses","scrollspyNav","links","sticky","selTarget","coerce","reset","height$1","preventTransition","viewport2","dynamicViewport","maxScrollHeight","referenceElement","offset$1","overflow","topOffset","parseProp","placeholder","prevScroll","prevDir","overflowScroll","scroll2","isScrollUpdate","initTimestamp","now","offsetParentTop","propOffset","refElement","getMaxPathLength","stroke","applyAttributes","applyAnimation","parseSVG","loadSVG","parseSymbols","symbolRe","symbols","selDisabled","Switcher","connects","connectChildren","isVertical","actives","tab","KEY_SPACE","expanded","link","mediaObj","leaving","isLeaving","initAccordionList","accordionList","accordionID","accordionContent","SliderAutoplay","pointerOptions","pointerUpOptions","SliderDrag","hasSelectableText","distance","slides","prevIndex","dis","nextIndex","edge","itemShown","dirChange","SliderNav","selNav","attrItem","list","ariaLabel","ariaControls","slide","navLength","Slider$1","speedUp","selList","stack","queueIndex","getDirection","transitioner","SliderReactive","SliderPreload","Animations$1","translate","translated","scale3d","Transitioner$1","center","easing","from","getLeft","to","linear","triggerUpdate","getWidth","itemIn","itemOut","isActive","isIn","isOut","translateIn","getElLeft","nextActives","temp","centerEl","getMax","listLeft","listWidth","listRight","slideLeft","slideRight","Slider","Transitioner","isFinite","lft","enabled","sets","slideWidth","diff","slideIndex","activeClasses","focusable","currentLeft","getMaxElWidth","listHalf","slidesInView","nextSlide","Slideshow$1","Animations","Slideshow","initBlogResources","currentSlide","totalSlides","progessBar","initSlideshows","currentSlideMobile","progessBarMobile","slideshow","initImageSlider","imageSlider","brandsImageSlider","slider","sliderID","currentSlider","initImageSliderPartial","initPartials","containerFiftyFifty","partialImage","partialImageSlider","initTestimonials","initTimelineSlider","initHeaderSearch","searchButton","mobileMenu","menuDropdown","dropdown","searchForm","searchFormMobile","additionalLinks","mobileToggle","mobileContact","initresourceFiltering","url","dropdownItems","resourceResultsContainer","filteringText","dropdownType","selectedCategoryText","selectedTopic","selectedIndustry","selectedResource","inputValue","isWhitespaceString","getResourcesResults","protocol","hostname","restBase","topic","industry","resource","searchInput","topicFilter","industryFilter","resourceFilter","textFilter","response","topicSearch","industrySearch","resourceSearch","initResources","resourceItems","loadM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