@dolanske/vui 1.5.13 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vui.js CHANGED
@@ -2,7 +2,7 @@ var Bs = Object.defineProperty;
2
2
  var Rs = (e, t, a) => t in e ? Bs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
3
  var ge = (e, t, a) => Rs(e, typeof t != "symbol" ? t + "" : t, a);
4
4
  import * as Ql from "vue";
5
- import { createElementVNode as U, toRef as Ma, readonly as Na, ref as E, customRef as Es, onMounted as Ye, nextTick as et, getCurrentInstance as Kt, watch as Ae, hasInjectionContext as Wo, inject as vn, getCurrentScope as sr, onScopeDispose as ur, shallowRef as Qe, shallowReadonly as Ia, toValue as qe, isRef as Zr, computed as O, watchEffect as Mt, unref as v, reactive as va, toRaw as Is, defineComponent as ie, useTemplateRef as gt, onBeforeMount as zo, createElementBlock as D, openBlock as y, normalizeClass as ye, renderSlot as I, createBlock as te, createCommentVNode as L, createTextVNode as We, toDisplayString as Te, normalizeStyle as Ve, Fragment as be, useSlots as pt, useId as oa, renderList as Ne, resolveDynamicComponent as ia, createVNode as he, h as Vt, withCtx as q, onUnmounted as ha, mergeProps as Se, createSlots as mt, normalizeProps as Xe, guardReactiveProps as ut, Teleport as An, Transition as Gt, render as Kl, withModifiers as ma, useAttrs as Ca, onBeforeUpdate as Ls, withDirectives as zt, vShow as Xn, withKeys as Ns, mergeModels as $t, useModel as Bt, vModelCheckbox as qo, Comment as Ys, cloneVNode as Fs, effectScope as jo, onBeforeUnmount as Uo, provide as cl, toRefs as fl, toHandlerKey as Vs, camelize as Hs, vModelText as Jn, createPropsRestProxy as vl, vModelRadio as Ws, useCssVars as zs, markRaw as Or, TransitionGroup as qs } from "vue";
5
+ import { createElementVNode as U, toRef as Ma, readonly as Na, ref as E, customRef as Es, onMounted as Ye, nextTick as et, getCurrentInstance as Kt, watch as Ae, hasInjectionContext as Wo, inject as vn, getCurrentScope as sr, onScopeDispose as ur, shallowRef as Qe, shallowReadonly as Ia, toValue as qe, isRef as Zr, computed as O, watchEffect as Mt, unref as v, reactive as va, toRaw as Is, defineComponent as ie, useTemplateRef as gt, onBeforeMount as zo, createElementBlock as D, openBlock as y, normalizeClass as ye, renderSlot as I, createBlock as te, createCommentVNode as L, createTextVNode as We, toDisplayString as Te, normalizeStyle as Ve, Fragment as be, useSlots as pt, useId as oa, renderList as Ne, resolveDynamicComponent as ia, createVNode as he, h as Vt, withCtx as q, onUnmounted as ha, mergeProps as Se, createSlots as mt, normalizeProps as Xe, guardReactiveProps as ut, Teleport as mn, Transition as Gt, render as Kl, withModifiers as ma, useAttrs as Ca, onBeforeUpdate as Ls, withDirectives as zt, vShow as Xn, withKeys as Ns, mergeModels as $t, useModel as Bt, vModelCheckbox as qo, Comment as Ys, cloneVNode as Fs, effectScope as jo, onBeforeUnmount as Uo, provide as cl, toRefs as fl, toHandlerKey as Vs, camelize as Hs, vModelText as Jn, createPropsRestProxy as vl, vModelRadio as Ws, useCssVars as zs, markRaw as Or, TransitionGroup as qs } from "vue";
6
6
  const js = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M117.66 170.34a8 8 0 0 1 0 11.32l-32 32a8 8 0 0 1-11.32 0l-32-32a8 8 0 0 1 11.32-11.32L72 188.69V48a8 8 0 0 1 16 0v140.69l18.34-18.35a8 8 0 0 1 11.32 0m96-96l-32-32a8 8 0 0 0-11.32 0l-32 32a8 8 0 0 0 11.32 11.32L168 67.31V208a8 8 0 0 0 16 0V67.31l18.34 18.35a8 8 0 0 0 11.32-11.32"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), Us = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M214.86 180.12a8 8 0 0 1-11 2.74L136 142.13V216a8 8 0 0 1-16 0v-73.87l-67.88 40.73a8 8 0 1 1-8.23-13.72L112.45 128L43.89 86.86a8 8 0 1 1 8.23-13.72L120 113.87V40a8 8 0 0 1 16 0v73.87l67.88-40.73a8 8 0 1 1 8.23 13.72L143.55 128l68.56 41.14a8 8 0 0 1 2.75 10.98"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), Gl = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M208 32h-24v-8a8 8 0 0 0-16 0v8H88v-8a8 8 0 0 0-16 0v8H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16M72 48v8a8 8 0 0 0 16 0v-8h80v8a8 8 0 0 0 16 0v-8h24v32H48V48Zm136 160H48V96h160z"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), Qs = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M205.66 202.34a8 8 0 0 1-11.32 11.32l-80-80a8 8 0 0 1 0-11.32l80-80a8 8 0 0 1 11.32 11.32L131.31 128ZM51.31 128l74.35-74.34a8 8 0 0 0-11.32-11.32l-80 80a8 8 0 0 0 0 11.32l80 80a8 8 0 0 0 11.32-11.32Z"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), Ks = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="m141.66 133.66l-80 80a8 8 0 0 1-11.32-11.32L124.69 128L50.34 53.66a8 8 0 0 1 11.32-11.32l80 80a8 8 0 0 1 0 11.32m80-11.32l-80-80a8 8 0 0 0-11.32 11.32L204.69 128l-74.35 74.34a8 8 0 0 0 11.32 11.32l80-80a8 8 0 0 0 0-11.32"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), ml = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="m213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), Qo = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M165.66 202.34a8 8 0 0 1-11.32 11.32l-80-80a8 8 0 0 1 0-11.32l80-80a8 8 0 0 1 11.32 11.32L91.31 128Z"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), pl = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="m181.66 133.66l-80 80a8 8 0 0 1-11.32-11.32L164.69 128L90.34 53.66a8 8 0 0 1 11.32-11.32l80 80a8 8 0 0 1 0 11.32"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), Ko = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M213.66 165.66a8 8 0 0 1-11.32 0L128 91.31l-74.34 74.35a8 8 0 0 1-11.32-11.32l80-80a8 8 0 0 1 11.32 0l80 80a8 8 0 0 1 0 11.32"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), Gs = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M132 24A100.11 100.11 0 0 0 32 124v84a16 16 0 0 0 16 16h84a100 100 0 0 0 0-200m0 184H48v-84a84 84 0 1 1 84 84"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), Xs = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="m232.49 80.49l-128 128a12 12 0 0 1-17 0l-56-56a12 12 0 1 1 17-17L96 183L215.51 63.51a12 12 0 0 1 17 17Z"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), Zs = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M173.66 98.34a8 8 0 0 1 0 11.32l-56 56a8 8 0 0 1-11.32 0l-24-24a8 8 0 0 1 11.32-11.32L112 148.69l50.34-50.35a8 8 0 0 1 11.32 0M232 128A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104m-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), hl = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M208 32H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16m-34.34 77.66l-56 56a8 8 0 0 1-11.32 0l-24-24a8 8 0 0 1 11.32-11.32L112 148.69l50.34-50.35a8 8 0 0 1 11.32 11.32"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), Js = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m0 192a88 88 0 1 1 88-88a88.1 88.1 0 0 1-88 88"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), eu = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m0 192a88 88 0 1 1 88-88a88.1 88.1 0 0 1-88 88m64-88a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8V72a8 8 0 0 1 16 0v48h48a8 8 0 0 1 8 8"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), tu = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M247.31 124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57 61.26 162.88 48 128 48S61.43 61.26 36.34 86.35C17.51 105.18 9 124 8.69 124.76a8 8 0 0 0 0 6.5c.35.79 8.82 19.57 27.65 38.4C61.43 194.74 93.12 208 128 208s66.57-13.26 91.66-38.34c18.83-18.83 27.3-37.61 27.65-38.4a8 8 0 0 0 0-6.5M128 192c-30.78 0-57.67-11.19-79.93-33.25A133.5 133.5 0 0 1 25 128a133.3 133.3 0 0 1 23.07-30.75C70.33 75.19 97.22 64 128 64s57.67 11.19 79.93 33.25A133.5 133.5 0 0 1 231.05 128c-7.21 13.46-38.62 64-103.05 64m0-112a48 48 0 1 0 48 48a48.05 48.05 0 0 0-48-48m0 80a32 32 0 1 1 32-32a32 32 0 0 1-32 32"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), au = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M53.92 34.62a8 8 0 1 0-11.84 10.76l19.24 21.17C25 88.84 9.38 123.2 8.69 124.76a8 8 0 0 0 0 6.5c.35.79 8.82 19.57 27.65 38.4C61.43 194.74 93.12 208 128 208a127.1 127.1 0 0 0 52.07-10.83l22 24.21a8 8 0 1 0 11.84-10.76Zm47.33 75.84l41.67 45.85a32 32 0 0 1-41.67-45.85M128 192c-30.78 0-57.67-11.19-79.93-33.25A133.2 133.2 0 0 1 25 128c4.69-8.79 19.66-33.39 47.35-49.38l18 19.75a48 48 0 0 0 63.66 70l14.73 16.2A112 112 0 0 1 128 192m6-95.43a8 8 0 0 1 3-15.72a48.16 48.16 0 0 1 38.77 42.64a8 8 0 0 1-7.22 8.71a6 6 0 0 1-.75 0a8 8 0 0 1-8-7.26A32.09 32.09 0 0 0 134 96.57m113.28 34.69c-.42.94-10.55 23.37-33.36 43.8a8 8 0 1 1-10.67-11.92a132.8 132.8 0 0 0 27.8-35.14a133.2 133.2 0 0 0-23.12-30.77C185.67 75.19 158.78 64 128 64a118.4 118.4 0 0 0-19.36 1.57A8 8 0 1 1 106 49.79A134 134 0 0 1 128 48c34.88 0 66.57 13.26 91.66 38.35c18.83 18.83 27.3 37.62 27.65 38.41a8 8 0 0 1 0 6.5Z"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), nu = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="m213.66 82.34l-56-56A8 8 0 0 0 152 24H56a16 16 0 0 0-16 16v176a16 16 0 0 0 16 16h144a16 16 0 0 0 16-16V88a8 8 0 0 0-2.34-5.66M160 51.31L188.69 80H160ZM200 216H56V40h88v48a8 8 0 0 0 8 8h48z"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), ru = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m0 192a88 88 0 1 1 88-88a88.1 88.1 0 0 1-88 88m16-40a8 8 0 0 1-8 8a16 16 0 0 1-16-16v-40a8 8 0 0 1 0-16a16 16 0 0 1 16 16v40a8 8 0 0 1 8 8m-32-92a12 12 0 1 1 12 12a12 12 0 0 1-12-12"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), lu = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="m229.66 218.34l-50.07-50.06a88.11 88.11 0 1 0-11.31 11.31l50.06 50.07a8 8 0 0 0 11.32-11.32M40 112a72 72 0 1 1 72 72a72.08 72.08 0 0 1-72-72"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), ou = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M224 128a8 8 0 0 1-8 8H40a8 8 0 0 1 0-16h176a8 8 0 0 1 8 8"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), iu = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M200.77 53.89A103.27 103.27 0 0 0 128 24h-1.07A104 104 0 0 0 24 128c0 43 26.58 79.06 69.36 94.17A32 32 0 0 0 136 192a16 16 0 0 1 16-16h46.21a31.81 31.81 0 0 0 31.2-24.88a104.4 104.4 0 0 0 2.59-24a103.28 103.28 0 0 0-31.23-73.23m13 93.71a15.89 15.89 0 0 1-15.56 12.4H152a32 32 0 0 0-32 32a16 16 0 0 1-21.31 15.07C62.49 194.3 40 164 40 128a88 88 0 0 1 87.09-88h.9a88.35 88.35 0 0 1 88 87.25a89 89 0 0 1-2.18 20.35ZM140 76a12 12 0 1 1-12-12a12 12 0 0 1 12 12m-44 24a12 12 0 1 1-12-12a12 12 0 0 1 12 12m0 56a12 12 0 1 1-12-12a12 12 0 0 1 12 12m88-56a12 12 0 1 1-12-12a12 12 0 0 1 12 12"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), su = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M224 128a8 8 0 0 1-8 8h-80v80a8 8 0 0 1-16 0v-80H40a8 8 0 0 1 0-16h80V40a8 8 0 0 1 16 0v80h80a8 8 0 0 1 8 8"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), uu = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m0 192a88 88 0 1 1 88-88a88.1 88.1 0 0 1-88 88m56-88a56 56 0 1 1-56-56a56.06 56.06 0 0 1 56 56"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), du = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M128 128a8 8 0 0 1-8 8H48a8 8 0 0 1 0-16h72a8 8 0 0 1 8 8M48 72h136a8 8 0 0 0 0-16H48a8 8 0 0 0 0 16m56 112H48a8 8 0 0 0 0 16h56a8 8 0 0 0 0-16m125.66-21.66a8 8 0 0 0-11.32 0L192 188.69V112a8 8 0 0 0-16 0v76.69l-26.34-26.35a8 8 0 0 0-11.32 11.32l40 40a8 8 0 0 0 11.32 0l40-40a8 8 0 0 0 0-11.32"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), cu = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M40 128a8 8 0 0 1 8-8h72a8 8 0 0 1 0 16H48a8 8 0 0 1-8-8m8-56h56a8 8 0 0 0 0-16H48a8 8 0 0 0 0 16m136 112H48a8 8 0 0 0 0 16h136a8 8 0 0 0 0-16m45.66-101.66l-40-40a8 8 0 0 0-11.32 0l-40 40a8 8 0 0 0 11.32 11.32L176 67.31V144a8 8 0 0 0 16 0V67.31l26.34 26.35a8 8 0 0 0 11.32-11.32"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), yl = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M208 32H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16m0 176H48V48h160z"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), fu = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M221.87 83.16A104.1 104.1 0 1 1 195.67 49l22.67-22.68a8 8 0 0 1 11.32 11.32l-96 96a8 8 0 0 1-11.32-11.32l27.72-27.72a40 40 0 1 0 17.87 31.09a8 8 0 1 1 16-.9a56 56 0 1 1-22.38-41.65l22.75-22.75a87.88 87.88 0 1 0 23.13 29.67a8 8 0 0 1 14.44-6.9"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), vu = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M230.92 212c-15.23-26.33-38.7-45.21-66.09-54.16a72 72 0 1 0-73.66 0c-27.39 8.94-50.86 27.82-66.09 54.16a8 8 0 1 0 13.85 8c18.84-32.56 52.14-52 89.07-52s70.23 19.44 89.07 52a8 8 0 1 0 13.85-8M72 96a56 56 0 1 1 56 56a56.06 56.06 0 0 1-56-56"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), mu = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M236.8 188.09L149.35 36.22a24.76 24.76 0 0 0-42.7 0L19.2 188.09a23.51 23.51 0 0 0 0 23.72A24.35 24.35 0 0 0 40.55 224h174.9a24.35 24.35 0 0 0 21.33-12.19a23.51 23.51 0 0 0 .02-23.72m-13.87 15.71a8.5 8.5 0 0 1-7.48 4.2H40.55a8.5 8.5 0 0 1-7.48-4.2a7.59 7.59 0 0 1 0-7.72l87.45-151.87a8.75 8.75 0 0 1 15 0l87.45 151.87a7.59 7.59 0 0 1-.04 7.72M120 144v-40a8 8 0 0 1 16 0v40a8 8 0 0 1-16 0m20 36a12 12 0 1 1-12-12a12 12 0 0 1 12 12"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), pu = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M128 72a8 8 0 0 1 8 8v56a8 8 0 0 1-16 0V80a8 8 0 0 1 8-8m-12 100a12 12 0 1 0 12-12a12 12 0 0 0-12 12m124-44a15.85 15.85 0 0 1-4.67 11.28l-96.05 96.06a16 16 0 0 1-22.56 0l-96-96.06a16 16 0 0 1 0-22.56l96.05-96.06a16 16 0 0 1 22.56 0l96.05 96.06A15.85 15.85 0 0 1 240 128m-16 0l-96-96l-96 96l96 96Z"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16), dr = (e) => U("svg", { "aria-hidden": !0, role: "img", innerHTML: '<path fill="currentColor" d="M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128L50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128Z"/>', width: "1em", height: "1em", viewBox: "0 0 256 256", ...e }, null, 16);
7
7
  function cr(e) {
8
8
  return sr() ? (ur(e), !0) : !1;
@@ -37,15 +37,15 @@ function _u(e, t) {
37
37
  }
38
38
  const Xo = (e) => e();
39
39
  function $u(...e) {
40
- let t = 0, a, n = !0, r = Jt, l, o, i, s, c;
41
- !Zr(e[0]) && typeof e[0] == "object" ? { delay: o, trailing: i = !0, leading: s = !0, rejectOnCancel: c = !1 } = e[0] : [o, i = !0, s = !0, c = !1] = e;
40
+ let t = 0, a, n = !0, r = Jt, l, o, i, s, d;
41
+ !Zr(e[0]) && typeof e[0] == "object" ? { delay: o, trailing: i = !0, leading: s = !0, rejectOnCancel: d = !1 } = e[0] : [o, i = !0, s = !0, d = !1] = e;
42
42
  const u = () => {
43
43
  a && (clearTimeout(a), a = void 0, r(), r = Jt);
44
44
  };
45
45
  return (f) => {
46
46
  const p = qe(o), h = Date.now() - t, g = () => l = f();
47
47
  return u(), p <= 0 ? (t = Date.now(), g()) : (h > p && (s || !n) ? (t = Date.now(), g()) : i && (l = new Promise((b, k) => {
48
- r = c ? k : b, a = setTimeout(() => {
48
+ r = d ? k : b, a = setTimeout(() => {
49
49
  t = Date.now(), n = !0, b(g()), u();
50
50
  }, Math.max(0, p - h));
51
51
  })), !s && !a && (a = setTimeout(() => n = !0, p)), n = !1, l);
@@ -104,7 +104,7 @@ function Mu(e, t, a = {}) {
104
104
  eventFilter: n,
105
105
  initialState: r = "active",
106
106
  ...l
107
- } = a, { eventFilter: o, pause: i, resume: s, isActive: c } = Du(n, { initialState: r });
107
+ } = a, { eventFilter: o, pause: i, resume: s, isActive: d } = Du(n, { initialState: r });
108
108
  return { stop: Zo(
109
109
  e,
110
110
  t,
@@ -112,7 +112,7 @@ function Mu(e, t, a = {}) {
112
112
  ...l,
113
113
  eventFilter: o
114
114
  }
115
- ), pause: i, resume: s, isActive: c };
115
+ ), pause: i, resume: s, isActive: d };
116
116
  }
117
117
  function Jo(e, t = !0, a) {
118
118
  Tu() ? Ye(e, a) : t ? e() : et(e);
@@ -129,14 +129,14 @@ function ei(e, t, a = {}) {
129
129
  function s() {
130
130
  l.value = !1, i();
131
131
  }
132
- function c(...u) {
132
+ function d(...u) {
133
133
  r && e(), i(), l.value = !0, o = setTimeout(() => {
134
134
  l.value = !1, o = null, e(...u);
135
135
  }, qe(t));
136
136
  }
137
- return n && (l.value = !0, fr && c()), cr(s), {
137
+ return n && (l.value = !0, fr && d()), cr(s), {
138
138
  isPending: Ia(l),
139
- start: c,
139
+ start: d,
140
140
  stop: s
141
141
  };
142
142
  }
@@ -187,28 +187,28 @@ function Wt(e) {
187
187
  function Je(...e) {
188
188
  const t = [], a = () => {
189
189
  t.forEach((i) => i()), t.length = 0;
190
- }, n = (i, s, c, u) => (i.addEventListener(s, c, u), () => i.removeEventListener(s, c, u)), r = O(() => {
190
+ }, n = (i, s, d, u) => (i.addEventListener(s, d, u), () => i.removeEventListener(s, d, u)), r = O(() => {
191
191
  const i = Zn(qe(e[0])).filter((s) => s != null);
192
192
  return i.every((s) => typeof s != "string") ? i : void 0;
193
193
  }), l = Pu(
194
194
  () => {
195
195
  var i, s;
196
196
  return [
197
- (s = (i = r.value) == null ? void 0 : i.map((c) => Wt(c))) != null ? s : [It].filter((c) => c != null),
197
+ (s = (i = r.value) == null ? void 0 : i.map((d) => Wt(d))) != null ? s : [It].filter((d) => d != null),
198
198
  Zn(qe(r.value ? e[1] : e[0])),
199
199
  Zn(v(r.value ? e[2] : e[1])),
200
200
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
201
201
  qe(r.value ? e[3] : e[2])
202
202
  ];
203
203
  },
204
- ([i, s, c, u]) => {
205
- if (a(), !(i != null && i.length) || !(s != null && s.length) || !(c != null && c.length))
204
+ ([i, s, d, u]) => {
205
+ if (a(), !(i != null && i.length) || !(s != null && s.length) || !(d != null && d.length))
206
206
  return;
207
- const d = wu(u) ? { ...u } : u;
207
+ const c = wu(u) ? { ...u } : u;
208
208
  t.push(
209
209
  ...i.flatMap(
210
210
  (f) => s.flatMap(
211
- (p) => c.map((h) => n(f, p, h, d))
211
+ (p) => d.map((h) => n(f, p, h, c))
212
212
  )
213
213
  )
214
214
  );
@@ -230,7 +230,7 @@ function ai(e, t, a = {}) {
230
230
  Array.from(n.document.body.children).forEach((k) => Je(k, "click", Jt, b)), Je(n.document.documentElement, "click", Jt, b);
231
231
  }
232
232
  let s = !0;
233
- const c = (b) => qe(r).some((k) => {
233
+ const d = (b) => qe(r).some((k) => {
234
234
  if (typeof k == "string")
235
235
  return Array.from(n.document.querySelectorAll(k)).some((_) => _ === b.target || b.composedPath().includes(_));
236
236
  {
@@ -242,14 +242,14 @@ function ai(e, t, a = {}) {
242
242
  const k = qe(b);
243
243
  return k && k.$.subTree.shapeFlag === 16;
244
244
  }
245
- function d(b, k) {
245
+ function c(b, k) {
246
246
  const _ = qe(b), w = _.$.subTree && _.$.subTree.children;
247
247
  return w == null || !Array.isArray(w) ? !1 : w.some((P) => P.el === k.target || k.composedPath().includes(P.el));
248
248
  }
249
249
  const f = (b) => {
250
250
  const k = Wt(e);
251
- if (b.target != null && !(!(k instanceof Element) && u(e) && d(e, b)) && !(!k || k === b.target || b.composedPath().includes(k))) {
252
- if ("detail" in b && b.detail === 0 && (s = !c(b)), !s) {
251
+ if (b.target != null && !(!(k instanceof Element) && u(e) && c(e, b)) && !(!k || k === b.target || b.composedPath().includes(k))) {
252
+ if ("detail" in b && b.detail === 0 && (s = !d(b)), !s) {
253
253
  s = !0;
254
254
  return;
255
255
  }
@@ -265,7 +265,7 @@ function ai(e, t, a = {}) {
265
265
  }, { passive: !0, capture: l }),
266
266
  Je(n, "pointerdown", (b) => {
267
267
  const k = Wt(e);
268
- s = !c(b) && !!(k && !b.composedPath().includes(k));
268
+ s = !d(b) && !!(k && !b.composedPath().includes(k));
269
269
  }, { passive: !0 }),
270
270
  o && Je(n, "blur", (b) => {
271
271
  setTimeout(() => {
@@ -303,18 +303,18 @@ function Cu(e, t, a = {}) {
303
303
  }, s = O(() => {
304
304
  const f = qe(e), p = Zn(f).map(Wt).filter(yu);
305
305
  return new Set(p);
306
- }), c = Ae(
306
+ }), d = Ae(
307
307
  () => s.value,
308
308
  (f) => {
309
309
  i(), o.value && f.size && (l = new MutationObserver(t), f.forEach((p) => l.observe(p, r)));
310
310
  },
311
311
  { immediate: !0, flush: "post" }
312
- ), u = () => l == null ? void 0 : l.takeRecords(), d = () => {
313
- c(), i();
312
+ ), u = () => l == null ? void 0 : l.takeRecords(), c = () => {
313
+ d(), i();
314
314
  };
315
- return cr(d), {
315
+ return cr(c), {
316
316
  isSupported: o,
317
- stop: d,
317
+ stop: c,
318
318
  takeRecords: u
319
319
  };
320
320
  }
@@ -324,17 +324,17 @@ function Bu() {
324
324
  return typeof e == "number" ? e : void 0;
325
325
  }
326
326
  function Ru(e, t = {}) {
327
- const { window: a = It, ssrWidth: n = Bu() } = t, r = Cn(() => a && "matchMedia" in a && typeof a.matchMedia == "function"), l = Qe(typeof n == "number"), o = Qe(), i = Qe(!1), s = (c) => {
328
- i.value = c.matches;
327
+ const { window: a = It, ssrWidth: n = Bu() } = t, r = Cn(() => a && "matchMedia" in a && typeof a.matchMedia == "function"), l = Qe(typeof n == "number"), o = Qe(), i = Qe(!1), s = (d) => {
328
+ i.value = d.matches;
329
329
  };
330
330
  return Mt(() => {
331
331
  if (l.value) {
332
332
  l.value = !r.value;
333
- const c = qe(e).split(",");
334
- i.value = c.some((u) => {
335
- const d = u.includes("not all"), f = u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), p = u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
333
+ const d = qe(e).split(",");
334
+ i.value = d.some((u) => {
335
+ const c = u.includes("not all"), f = u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), p = u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
336
336
  let h = !!(f || p);
337
- return f && h && (h = n >= Xl(f[1])), p && h && (h = n <= Xl(p[1])), d ? !h : h;
337
+ return f && h && (h = n >= Xl(f[1])), p && h && (h = n <= Xl(p[1])), c ? !h : h;
338
338
  });
339
339
  return;
340
340
  }
@@ -346,11 +346,11 @@ function Jl(e, t = {}) {
346
346
  controls: a = !1,
347
347
  navigator: n = ti
348
348
  } = t, r = Cn(() => n && "permissions" in n), l = Qe(), o = typeof e == "string" ? { name: e } : e, i = Qe(), s = () => {
349
- var u, d;
350
- i.value = (d = (u = l.value) == null ? void 0 : u.state) != null ? d : "prompt";
349
+ var u, c;
350
+ i.value = (c = (u = l.value) == null ? void 0 : u.state) != null ? c : "prompt";
351
351
  };
352
352
  Je(l, "change", s, { passive: !0 });
353
- const c = xu(async () => {
353
+ const d = xu(async () => {
354
354
  if (r.value) {
355
355
  if (!l.value)
356
356
  try {
@@ -364,10 +364,10 @@ function Jl(e, t = {}) {
364
364
  return Is(l.value);
365
365
  }
366
366
  });
367
- return c(), a ? {
367
+ return d(), a ? {
368
368
  state: i,
369
369
  isSupported: r,
370
- query: c
370
+ query: d
371
371
  } : i;
372
372
  }
373
373
  function Eu(e = {}) {
@@ -377,7 +377,7 @@ function Eu(e = {}) {
377
377
  source: n,
378
378
  copiedDuring: r = 1500,
379
379
  legacy: l = !1
380
- } = e, o = Cn(() => t && "clipboard" in t), i = Jl("clipboard-read"), s = Jl("clipboard-write"), c = O(() => o.value || l), u = Qe(""), d = Qe(!1), f = ei(() => d.value = !1, r, { immediate: !1 });
380
+ } = e, o = Cn(() => t && "clipboard" in t), i = Jl("clipboard-read"), s = Jl("clipboard-write"), d = O(() => o.value || l), u = Qe(""), c = Qe(!1), f = ei(() => c.value = !1, r, { immediate: !1 });
381
381
  async function p() {
382
382
  let _ = !(o.value && k(i.value));
383
383
  if (!_)
@@ -388,9 +388,9 @@ function Eu(e = {}) {
388
388
  }
389
389
  _ && (u.value = b());
390
390
  }
391
- c.value && a && Je(["copy", "cut"], p, { passive: !0 });
391
+ d.value && a && Je(["copy", "cut"], p, { passive: !0 });
392
392
  async function h(_ = qe(n)) {
393
- if (c.value && _ != null) {
393
+ if (d.value && _ != null) {
394
394
  let w = !(o.value && k(s.value));
395
395
  if (!w)
396
396
  try {
@@ -398,7 +398,7 @@ function Eu(e = {}) {
398
398
  } catch {
399
399
  w = !0;
400
400
  }
401
- w && g(_), u.value = _, d.value = !0, f.start();
401
+ w && g(_), u.value = _, c.value = !0, f.start();
402
402
  }
403
403
  }
404
404
  function g(_) {
@@ -413,9 +413,9 @@ function Eu(e = {}) {
413
413
  return _ === "granted" || _ === "prompt";
414
414
  }
415
415
  return {
416
- isSupported: c,
416
+ isSupported: d,
417
417
  text: u,
418
- copied: d,
418
+ copied: c,
419
419
  copy: h
420
420
  };
421
421
  }
@@ -473,9 +473,9 @@ function Vu(e, t, a, n = {}) {
473
473
  deep: o = !0,
474
474
  listenToStorageChanges: i = !0,
475
475
  writeDefaults: s = !0,
476
- mergeDefaults: c = !1,
476
+ mergeDefaults: d = !1,
477
477
  shallow: u,
478
- window: d = It,
478
+ window: c = It,
479
479
  eventFilter: f,
480
480
  onError: p = (G) => {
481
481
  console.error(G);
@@ -498,18 +498,18 @@ function Vu(e, t, a, n = {}) {
498
498
  () => x(g.value),
499
499
  { flush: l, deep: o, eventFilter: f }
500
500
  );
501
- Ae(b, () => R(), { flush: l }), d && i && Jo(() => {
502
- a instanceof Storage ? Je(d, "storage", R, { passive: !0 }) : Je(d, eo, V), h && R();
501
+ Ae(b, () => R(), { flush: l }), c && i && Jo(() => {
502
+ a instanceof Storage ? Je(c, "storage", R, { passive: !0 }) : Je(c, eo, V), h && R();
503
503
  }), h || R();
504
504
  function M(G, le) {
505
- if (d) {
505
+ if (c) {
506
506
  const me = {
507
507
  key: b.value,
508
508
  oldValue: G,
509
509
  newValue: le,
510
510
  storageArea: a
511
511
  };
512
- d.dispatchEvent(a instanceof Storage ? new StorageEvent("storage", me) : new CustomEvent(eo, {
512
+ c.dispatchEvent(a instanceof Storage ? new StorageEvent("storage", me) : new CustomEvent(eo, {
513
513
  detail: me
514
514
  }));
515
515
  }
@@ -531,9 +531,9 @@ function Vu(e, t, a, n = {}) {
531
531
  const le = G ? G.newValue : a.getItem(b.value);
532
532
  if (le == null)
533
533
  return s && k != null && a.setItem(b.value, w.write(k)), k;
534
- if (!G && c) {
534
+ if (!G && d) {
535
535
  const me = w.read(le);
536
- return typeof c == "function" ? c(me, k) : _ === "object" && !Array.isArray(me) ? { ...k, ...me } : me;
536
+ return typeof d == "function" ? d(me, k) : _ === "object" && !Array.isArray(me) ? { ...k, ...me } : me;
537
537
  } else return typeof le != "string" ? le : w.read(le);
538
538
  }
539
539
  function R(G) {
@@ -570,9 +570,9 @@ function Wu(e = {}) {
570
570
  storageKey: o = "vueuse-color-scheme",
571
571
  listenToStorageChanges: i = !0,
572
572
  storageRef: s,
573
- emitAuto: c,
573
+ emitAuto: d,
574
574
  disableTransition: u = !0
575
- } = e, d = {
575
+ } = e, c = {
576
576
  auto: "",
577
577
  light: "light",
578
578
  dark: "dark",
@@ -587,7 +587,7 @@ function Wu(e = {}) {
587
587
  let V = null;
588
588
  if (T === "class") {
589
589
  const le = M.split(/\s/g);
590
- Object.values(d).flatMap((me) => (me || "").split(/\s/g)).filter(Boolean).forEach((me) => {
590
+ Object.values(c).flatMap((me) => (me || "").split(/\s/g)).filter(Boolean).forEach((me) => {
591
591
  le.includes(me) ? F.add(me) : R.add(me);
592
592
  });
593
593
  } else
@@ -605,7 +605,7 @@ function Wu(e = {}) {
605
605
  );
606
606
  function k(P) {
607
607
  var T;
608
- b(t, a, (T = d[P]) != null ? T : P);
608
+ b(t, a, (T = c[P]) != null ? T : P);
609
609
  }
610
610
  function _(P) {
611
611
  e.onChanged ? e.onChanged(P, k) : k(P);
@@ -613,7 +613,7 @@ function Wu(e = {}) {
613
613
  Ae(g, _, { flush: "post", immediate: !0 }), Jo(() => _(g.value));
614
614
  const w = O({
615
615
  get() {
616
- return c ? h.value : g.value;
616
+ return d ? h.value : g.value;
617
617
  },
618
618
  set(P) {
619
619
  h.value = P;
@@ -623,14 +623,14 @@ function Wu(e = {}) {
623
623
  }
624
624
  function zu(e, t, a = {}) {
625
625
  const { window: n = It, initialValue: r, observe: l = !1 } = a, o = Qe(r), i = O(() => {
626
- var c;
627
- return Wt(t) || ((c = n == null ? void 0 : n.document) == null ? void 0 : c.documentElement);
626
+ var d;
627
+ return Wt(t) || ((d = n == null ? void 0 : n.document) == null ? void 0 : d.documentElement);
628
628
  });
629
629
  function s() {
630
- var c;
631
- const u = qe(e), d = qe(i);
632
- if (d && n && u) {
633
- const f = (c = n.getComputedStyle(d).getPropertyValue(u)) == null ? void 0 : c.trim();
630
+ var d;
631
+ const u = qe(e), c = qe(i);
632
+ if (c && n && u) {
633
+ const f = (d = n.getComputedStyle(c).getPropertyValue(u)) == null ? void 0 : d.trim();
634
634
  o.value = f || o.value || r;
635
635
  }
636
636
  }
@@ -639,15 +639,15 @@ function zu(e, t, a = {}) {
639
639
  window: n
640
640
  }), Ae(
641
641
  [i, () => qe(e)],
642
- (c, u) => {
642
+ (d, u) => {
643
643
  u[0] && u[1] && u[0].style.removeProperty(u[1]), s();
644
644
  },
645
645
  { immediate: !0 }
646
646
  ), Ae(
647
647
  [o, i],
648
- ([c, u]) => {
649
- const d = qe(e);
650
- u != null && u.style && d && (c == null ? u.style.removeProperty(d) : u.style.setProperty(d, c));
648
+ ([d, u]) => {
649
+ const c = qe(e);
650
+ u != null && u.style && c && (d == null ? u.style.removeProperty(c) : u.style.setProperty(c, d));
651
651
  },
652
652
  { immediate: !0 }
653
653
  ), o;
@@ -658,20 +658,20 @@ function ri(e, t, a = {}) {
658
658
  const o = Cn(() => n && "ResizeObserver" in n), i = () => {
659
659
  l && (l.disconnect(), l = void 0);
660
660
  }, s = O(() => {
661
- const d = qe(e);
662
- return Array.isArray(d) ? d.map((f) => Wt(f)) : [Wt(d)];
663
- }), c = Ae(
661
+ const c = qe(e);
662
+ return Array.isArray(c) ? c.map((f) => Wt(f)) : [Wt(c)];
663
+ }), d = Ae(
664
664
  s,
665
- (d) => {
665
+ (c) => {
666
666
  if (i(), o.value && n) {
667
667
  l = new ResizeObserver(t);
668
- for (const f of d)
668
+ for (const f of c)
669
669
  f && l.observe(f, r);
670
670
  }
671
671
  },
672
672
  { immediate: !0, flush: "post" }
673
673
  ), u = () => {
674
- i(), c();
674
+ i(), d();
675
675
  };
676
676
  return cr(u), {
677
677
  isSupported: o,
@@ -700,24 +700,24 @@ function gl(e = {}) {
700
700
  return {};
701
701
  },
702
702
  current: o
703
- }, s = t ? va(i) : i, c = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set();
704
- function d(g, b) {
703
+ }, s = t ? va(i) : i, d = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set();
704
+ function c(g, b) {
705
705
  g in s && (t ? s[g] = b : s[g].value = b);
706
706
  }
707
707
  function f() {
708
708
  o.clear();
709
709
  for (const g of u)
710
- d(g, !1);
710
+ c(g, !1);
711
711
  }
712
712
  function p(g, b) {
713
713
  var k, _;
714
714
  const w = (k = g.key) == null ? void 0 : k.toLowerCase(), T = [(_ = g.code) == null ? void 0 : _.toLowerCase(), w].filter(Boolean);
715
715
  w && (b ? o.add(w) : o.delete(w));
716
716
  for (const M of T)
717
- u.add(M), d(M, b);
718
- w === "meta" && !b ? (c.forEach((M) => {
719
- o.delete(M), d(M, !1);
720
- }), c.clear()) : typeof g.getModifierState == "function" && g.getModifierState("Meta") && b && [...o, ...T].forEach((M) => c.add(M));
717
+ u.add(M), c(M, b);
718
+ w === "meta" && !b ? (d.forEach((M) => {
719
+ o.delete(M), c(M, !1);
720
+ }), d.clear()) : typeof g.getModifierState == "function" && g.getModifierState("Meta") && b && [...o, ...T].forEach((M) => d.add(M));
721
721
  }
722
722
  Je(a, "keydown", (g) => (p(g, !0), l(g)), { passive: r }), Je(a, "keyup", (g) => (p(g, !1), l(g)), { passive: r }), Je("blur", f, { passive: r }), Je("focus", f, { passive: r });
723
723
  const h = new Proxy(
@@ -756,20 +756,20 @@ function Uu(e = {}) {
756
756
  scroll: i = !0,
757
757
  eventFilter: s
758
758
  } = e;
759
- let c = null, u = 0, d = 0;
759
+ let d = null, u = 0, c = 0;
760
760
  const f = Qe(r.x), p = Qe(r.y), h = Qe(null), g = typeof t == "function" ? t : ju[t], b = (x) => {
761
761
  const F = g(x);
762
- c = x, F && ([f.value, p.value] = F, h.value = "mouse"), l && (u = l.scrollX, d = l.scrollY);
762
+ d = x, F && ([f.value, p.value] = F, h.value = "mouse"), l && (u = l.scrollX, c = l.scrollY);
763
763
  }, k = (x) => {
764
764
  if (x.touches.length > 0) {
765
765
  const F = g(x.touches[0]);
766
766
  F && ([f.value, p.value] = F, h.value = "touch");
767
767
  }
768
768
  }, _ = () => {
769
- if (!c || !l)
769
+ if (!d || !l)
770
770
  return;
771
- const x = g(c);
772
- c instanceof MouseEvent && x && (f.value = x[0] + l.scrollX - u, p.value = x[1] + l.scrollY - d);
771
+ const x = g(d);
772
+ d instanceof MouseEvent && x && (f.value = x[0] + l.scrollX - u, p.value = x[1] + l.scrollY - c);
773
773
  }, w = () => {
774
774
  f.value = r.x, p.value = r.y;
775
775
  }, P = s ? (x) => s(() => b(x), {}) : (x) => b(x), T = s ? (x) => s(() => k(x), {}) : (x) => k(x), M = s ? () => s(() => _(), {}) : () => _();
@@ -787,7 +787,7 @@ function Qu(e, t = {}) {
787
787
  const {
788
788
  handleOutside: a = !0,
789
789
  window: n = It
790
- } = t, r = t.type || "page", { x: l, y: o, sourceType: i } = Uu(t), s = Qe(e ?? (n == null ? void 0 : n.document.body)), c = Qe(0), u = Qe(0), d = Qe(0), f = Qe(0), p = Qe(0), h = Qe(0), g = Qe(!0);
790
+ } = t, r = t.type || "page", { x: l, y: o, sourceType: i } = Uu(t), s = Qe(e ?? (n == null ? void 0 : n.document.body)), d = Qe(0), u = Qe(0), c = Qe(0), f = Qe(0), p = Qe(0), h = Qe(0), g = Qe(!0);
791
791
  let b = () => {
792
792
  };
793
793
  return n && (b = Ae(
@@ -802,9 +802,9 @@ function Qu(e, t = {}) {
802
802
  width: P,
803
803
  height: T
804
804
  } = k.getBoundingClientRect();
805
- d.value = _ + (r === "page" ? n.pageXOffset : 0), f.value = w + (r === "page" ? n.pageYOffset : 0), p.value = T, h.value = P;
806
- const M = l.value - d.value, x = o.value - f.value;
807
- g.value = P === 0 || T === 0 || M < 0 || x < 0 || M > P || x > T, (a || !g.value) && (c.value = M, u.value = x);
805
+ c.value = _ + (r === "page" ? n.pageXOffset : 0), f.value = w + (r === "page" ? n.pageYOffset : 0), p.value = T, h.value = P;
806
+ const M = l.value - c.value, x = o.value - f.value;
807
+ g.value = P === 0 || T === 0 || M < 0 || x < 0 || M > P || x > T, (a || !g.value) && (d.value = M, u.value = x);
808
808
  },
809
809
  { immediate: !0 }
810
810
  ), Je(
@@ -816,9 +816,9 @@ function Qu(e, t = {}) {
816
816
  x: l,
817
817
  y: o,
818
818
  sourceType: i,
819
- elementX: c,
819
+ elementX: d,
820
820
  elementY: u,
821
- elementPositionX: d,
821
+ elementPositionX: c,
822
822
  elementPositionY: f,
823
823
  elementHeight: p,
824
824
  elementWidth: h,
@@ -844,9 +844,9 @@ const Ku = ["aria-hidden"], Gu = {
844
844
  l.value = n.open;
845
845
  }, {
846
846
  flush: "post"
847
- }), Ae(l, (d) => {
847
+ }), Ae(l, (c) => {
848
848
  var f;
849
- d ? (r("open"), i.value = ((f = o.value) == null ? void 0 : f.scrollHeight) || 0) : r("close");
849
+ c ? (r("open"), i.value = ((f = o.value) == null ? void 0 : f.scrollHeight) || 0) : r("close");
850
850
  }, {
851
851
  flush: "post",
852
852
  immediate: !0
@@ -854,7 +854,7 @@ const Ku = ["aria-hidden"], Gu = {
854
854
  function s() {
855
855
  l.value = !0;
856
856
  }
857
- function c() {
857
+ function d() {
858
858
  l.value = !1;
859
859
  }
860
860
  function u() {
@@ -862,22 +862,22 @@ const Ku = ["aria-hidden"], Gu = {
862
862
  }
863
863
  return t({
864
864
  open: s,
865
- close: c,
865
+ close: d,
866
866
  toggle: u,
867
867
  isOpen: l
868
868
  }), zo(() => {
869
869
  n.card && n.unstyled && console.warn("[Accordion] Both 'card' and 'unstyled' props are selected. Unstyled will take precedence.");
870
870
  }), Ye(() => {
871
- ri(o, ([d]) => {
872
- l.value && i.value !== d.contentRect.height && (i.value = d.contentRect.height || 0);
871
+ ri(o, ([c]) => {
872
+ l.value && i.value !== c.contentRect.height && (i.value = c.contentRect.height || 0);
873
873
  });
874
- }), (d, f) => (y(), D("div", {
874
+ }), (c, f) => (y(), D("div", {
875
875
  class: ye(["vui-accordion", { open: l.value, "is-card": !!n.card && !n.unstyled, "is-unstyled": !!n.unstyled }])
876
876
  }, [
877
- d.$slots.trigger ? I(d.$slots, "trigger", {
877
+ c.$slots.trigger ? I(c.$slots, "trigger", {
878
878
  key: 0,
879
879
  open: s,
880
- close: c,
880
+ close: d,
881
881
  toggle: u,
882
882
  isOpen: l.value
883
883
  }) : (y(), D("button", {
@@ -885,7 +885,7 @@ const Ku = ["aria-hidden"], Gu = {
885
885
  class: "vui-accordion-header",
886
886
  onClick: f[0] || (f[0] = (p) => l.value = !l.value)
887
887
  }, [
888
- I(d.$slots, "header", {}, () => [
888
+ I(c.$slots, "header", {}, () => [
889
889
  We(Te(n.label), 1)
890
890
  ]),
891
891
  n.unstyled ? L("", !0) : (y(), te(v(ml), { key: 0 }))
@@ -896,7 +896,7 @@ const Ku = ["aria-hidden"], Gu = {
896
896
  style: Ve({ "max-height": l.value ? `${i.value}px` : "0px" })
897
897
  }, [
898
898
  U("div", Gu, [
899
- I(d.$slots, "default")
899
+ I(c.$slots, "default")
900
900
  ], 512)
901
901
  ], 12, Ku)
902
902
  ], 2));
@@ -931,14 +931,14 @@ const oy = /* @__PURE__ */ ie({
931
931
  function l(o) {
932
932
  if (!t.single)
933
933
  return;
934
- document.querySelectorAll(`[data-accordion-group-id=${n}]`).forEach((s, c) => {
935
- c !== o && s.__vnode.ctx.exposed.close();
934
+ document.querySelectorAll(`[data-accordion-group-id=${n}]`).forEach((s, d) => {
935
+ d !== o && s.__vnode.ctx.exposed.close();
936
936
  });
937
937
  }
938
- return Bn(r, "Accordion"), (o, i) => (y(!0), D(be, null, Ne(v(r), (s, c) => (y(), te(ia(s), {
938
+ return Bn(r, "Accordion"), (o, i) => (y(!0), D(be, null, Ne(v(r), (s, d) => (y(), te(ia(s), {
939
939
  key: s,
940
940
  "data-accordion-group-id": v(n),
941
- onOpen: (u) => l(c)
941
+ onOpen: (u) => l(d)
942
942
  }, null, 40, ["data-accordion-group-id", "onOpen"]))), 128));
943
943
  }
944
944
  }), Xu = {
@@ -1293,7 +1293,7 @@ const fd = /* @__PURE__ */ ie({
1293
1293
  const t = e, a = O(
1294
1294
  () => typeof t.gap == "number" ? Et(t.gap) : `var(--space-${t.gap})`
1295
1295
  ), n = O(() => t.row ? "row" : t.column ? "column" : t.rowReverse ? "row-reverse" : t.columnReverse ? "column-reverse" : "row"), r = O(() => t.xStart ? "flex-start" : t.xEnd ? "flex-end" : t.xCenter ? "center" : t.xBetween ? "space-between" : t.xEvenly ? "space-evenly" : t.xAround ? "space-around" : "flex-start"), l = O(() => t.yStart ? "flex-start" : t.yEnd ? "flex-end" : t.yCenter ? "center" : t.yBaseline ? "baseline" : "flex-start"), o = O(() => t.inline ? "inline-flex" : "flex"), i = O(() => t.wrap ? "wrap" : t.wrapReverse ? "wrap-reverse" : "nowrap"), s = O(() => t.expand ? "100%" : "auto");
1296
- return (c, u) => (y(), D("div", {
1296
+ return (d, u) => (y(), D("div", {
1297
1297
  class: "vui-flex",
1298
1298
  style: Ve({
1299
1299
  display: o.value,
@@ -1305,7 +1305,7 @@ const fd = /* @__PURE__ */ ie({
1305
1305
  width: s.value
1306
1306
  })
1307
1307
  }, [
1308
- I(c.$slots, "default")
1308
+ I(d.$slots, "default")
1309
1309
  ], 4));
1310
1310
  }
1311
1311
  }), vd = /* @__PURE__ */ ie({
@@ -1361,8 +1361,8 @@ function ui(e, t, a) {
1361
1361
  days: o = 0,
1362
1362
  hours: i = 0,
1363
1363
  minutes: s = 0,
1364
- seconds: c = 0
1365
- } = t, u = Pe(e, a == null ? void 0 : a.in), d = r || n ? qt(u, r + n * 12) : u, f = o || l ? Rt(d, o + l * 7) : d, p = s + i * 60, g = (c + p * 60) * 1e3;
1364
+ seconds: d = 0
1365
+ } = t, u = Pe(e, a == null ? void 0 : a.in), c = r || n ? qt(u, r + n * 12) : u, f = o || l ? Rt(c, o + l * 7) : c, p = s + i * 60, g = (d + p * 60) * 1e3;
1366
1366
  return je(e, +f + g);
1367
1367
  }
1368
1368
  function yd(e, t, a) {
@@ -1376,8 +1376,8 @@ function ja() {
1376
1376
  return wd;
1377
1377
  }
1378
1378
  function jt(e, t) {
1379
- var i, s, c, u;
1380
- const a = ja(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((s = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : s.weekStartsOn) ?? a.weekStartsOn ?? ((u = (c = a.locale) == null ? void 0 : c.options) == null ? void 0 : u.weekStartsOn) ?? 0, r = Pe(e, t == null ? void 0 : t.in), l = r.getDay(), o = (l < n ? 7 : 0) + l - n;
1379
+ var i, s, d, u;
1380
+ const a = ja(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((s = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : s.weekStartsOn) ?? a.weekStartsOn ?? ((u = (d = a.locale) == null ? void 0 : d.options) == null ? void 0 : u.weekStartsOn) ?? 0, r = Pe(e, t == null ? void 0 : t.in), l = r.getDay(), o = (l < n ? 7 : 0) + l - n;
1381
1381
  return r.setDate(r.getDate() - o), r.setHours(0, 0, 0, 0), r;
1382
1382
  }
1383
1383
  function rn(e, t) {
@@ -1441,7 +1441,7 @@ function io(e, t) {
1441
1441
  function fi(e) {
1442
1442
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
1443
1443
  }
1444
- function Dn(e) {
1444
+ function xn(e) {
1445
1445
  return !(!fi(e) && typeof e != "number" || isNaN(+Pe(e)));
1446
1446
  }
1447
1447
  function so(e, t) {
@@ -1503,13 +1503,13 @@ function pi(e, t) {
1503
1503
  const a = Pe(e, t == null ? void 0 : t.in), n = a.getFullYear();
1504
1504
  return a.setFullYear(n + 1, 0, 0), a.setHours(23, 59, 59, 999), a;
1505
1505
  }
1506
- function Tn(e, t) {
1506
+ function Mn(e, t) {
1507
1507
  const a = Pe(e, t == null ? void 0 : t.in);
1508
1508
  return a.setFullYear(a.getFullYear(), 0, 1), a.setHours(0, 0, 0, 0), a;
1509
1509
  }
1510
1510
  function hi(e, t) {
1511
- var i, s, c, u;
1512
- const a = ja(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((s = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : s.weekStartsOn) ?? a.weekStartsOn ?? ((u = (c = a.locale) == null ? void 0 : c.options) == null ? void 0 : u.weekStartsOn) ?? 0, r = Pe(e, t == null ? void 0 : t.in), l = r.getDay(), o = (l < n ? -7 : 0) + 6 - (l - n);
1511
+ var i, s, d, u;
1512
+ const a = ja(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((s = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : s.weekStartsOn) ?? a.weekStartsOn ?? ((u = (d = a.locale) == null ? void 0 : d.options) == null ? void 0 : u.weekStartsOn) ?? 0, r = Pe(e, t == null ? void 0 : t.in), l = r.getDay(), o = (l < n ? -7 : 0) + 6 - (l - n);
1513
1513
  return r.setDate(r.getDate() + o), r.setHours(23, 59, 59, 999), r;
1514
1514
  }
1515
1515
  function uo(e, t) {
@@ -1625,7 +1625,7 @@ const Pd = {
1625
1625
  nextWeek: "eeee 'at' p",
1626
1626
  other: "P"
1627
1627
  }, Bd = (e, t, a, n) => Sd[e];
1628
- function gn(e) {
1628
+ function wn(e) {
1629
1629
  return (t, a) => {
1630
1630
  const n = a != null && a.context ? String(a.context) : "standalone";
1631
1631
  let r;
@@ -1767,46 +1767,46 @@ const Rd = {
1767
1767
  return a + "th";
1768
1768
  }, Vd = {
1769
1769
  ordinalNumber: Fd,
1770
- era: gn({
1770
+ era: wn({
1771
1771
  values: Rd,
1772
1772
  defaultWidth: "wide"
1773
1773
  }),
1774
- quarter: gn({
1774
+ quarter: wn({
1775
1775
  values: Ed,
1776
1776
  defaultWidth: "wide",
1777
1777
  argumentCallback: (e) => e - 1
1778
1778
  }),
1779
- month: gn({
1779
+ month: wn({
1780
1780
  values: Id,
1781
1781
  defaultWidth: "wide"
1782
1782
  }),
1783
- day: gn({
1783
+ day: wn({
1784
1784
  values: Ld,
1785
1785
  defaultWidth: "wide"
1786
1786
  }),
1787
- dayPeriod: gn({
1787
+ dayPeriod: wn({
1788
1788
  values: Nd,
1789
1789
  defaultWidth: "wide",
1790
1790
  formattingValues: Yd,
1791
1791
  defaultFormattingWidth: "wide"
1792
1792
  })
1793
1793
  };
1794
- function wn(e) {
1794
+ function bn(e) {
1795
1795
  return (t, a = {}) => {
1796
1796
  const n = a.width, r = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], l = t.match(r);
1797
1797
  if (!l)
1798
1798
  return null;
1799
- const o = l[0], i = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], s = Array.isArray(i) ? Wd(i, (d) => d.test(o)) : (
1799
+ const o = l[0], i = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], s = Array.isArray(i) ? Wd(i, (c) => c.test(o)) : (
1800
1800
  // [TODO] -- I challenge you to fix the type
1801
- Hd(i, (d) => d.test(o))
1801
+ Hd(i, (c) => c.test(o))
1802
1802
  );
1803
- let c;
1804
- c = e.valueCallback ? e.valueCallback(s) : s, c = a.valueCallback ? (
1803
+ let d;
1804
+ d = e.valueCallback ? e.valueCallback(s) : s, d = a.valueCallback ? (
1805
1805
  // [TODO] -- I challenge you to fix the type
1806
- a.valueCallback(c)
1807
- ) : c;
1806
+ a.valueCallback(d)
1807
+ ) : d;
1808
1808
  const u = t.slice(o.length);
1809
- return { value: c, rest: u };
1809
+ return { value: d, rest: u };
1810
1810
  };
1811
1811
  }
1812
1812
  function Hd(e, t) {
@@ -1904,32 +1904,32 @@ const qd = /^(\d+)(th|st|nd|rd)?/i, jd = /\d+/i, Ud = {
1904
1904
  parsePattern: jd,
1905
1905
  valueCallback: (e) => parseInt(e, 10)
1906
1906
  }),
1907
- era: wn({
1907
+ era: bn({
1908
1908
  matchPatterns: Ud,
1909
1909
  defaultMatchWidth: "wide",
1910
1910
  parsePatterns: Qd,
1911
1911
  defaultParseWidth: "any"
1912
1912
  }),
1913
- quarter: wn({
1913
+ quarter: bn({
1914
1914
  matchPatterns: Kd,
1915
1915
  defaultMatchWidth: "wide",
1916
1916
  parsePatterns: Gd,
1917
1917
  defaultParseWidth: "any",
1918
1918
  valueCallback: (e) => e + 1
1919
1919
  }),
1920
- month: wn({
1920
+ month: bn({
1921
1921
  matchPatterns: Xd,
1922
1922
  defaultMatchWidth: "wide",
1923
1923
  parsePatterns: Zd,
1924
1924
  defaultParseWidth: "any"
1925
1925
  }),
1926
- day: wn({
1926
+ day: bn({
1927
1927
  matchPatterns: Jd,
1928
1928
  defaultMatchWidth: "wide",
1929
1929
  parsePatterns: ec,
1930
1930
  defaultParseWidth: "any"
1931
1931
  }),
1932
- dayPeriod: wn({
1932
+ dayPeriod: bn({
1933
1933
  matchPatterns: tc,
1934
1934
  defaultMatchWidth: "any",
1935
1935
  parsePatterns: ac,
@@ -1949,24 +1949,24 @@ const qd = /^(\d+)(th|st|nd|rd)?/i, jd = /\d+/i, Ud = {
1949
1949
  };
1950
1950
  function rc(e, t) {
1951
1951
  const a = Pe(e, t == null ? void 0 : t.in);
1952
- return ci(a, Tn(a)) + 1;
1952
+ return ci(a, Mn(a)) + 1;
1953
1953
  }
1954
1954
  function bl(e, t) {
1955
1955
  const a = Pe(e, t == null ? void 0 : t.in), n = +rn(a) - +bd(a);
1956
1956
  return Math.round(n / ii) + 1;
1957
1957
  }
1958
1958
  function kl(e, t) {
1959
- var u, d, f, p;
1960
- const a = Pe(e, t == null ? void 0 : t.in), n = a.getFullYear(), r = ja(), l = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((p = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, o = je((t == null ? void 0 : t.in) || e, 0);
1959
+ var u, c, f, p;
1960
+ const a = Pe(e, t == null ? void 0 : t.in), n = a.getFullYear(), r = ja(), l = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((c = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : c.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((p = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, o = je((t == null ? void 0 : t.in) || e, 0);
1961
1961
  o.setFullYear(n + 1, 0, l), o.setHours(0, 0, 0, 0);
1962
1962
  const i = jt(o, t), s = je((t == null ? void 0 : t.in) || e, 0);
1963
1963
  s.setFullYear(n, 0, l), s.setHours(0, 0, 0, 0);
1964
- const c = jt(s, t);
1965
- return +a >= +i ? n + 1 : +a >= +c ? n : n - 1;
1964
+ const d = jt(s, t);
1965
+ return +a >= +i ? n + 1 : +a >= +d ? n : n - 1;
1966
1966
  }
1967
1967
  function lc(e, t) {
1968
- var i, s, c, u;
1969
- const a = ja(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((s = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : s.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((u = (c = a.locale) == null ? void 0 : c.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, r = kl(e, t), l = je((t == null ? void 0 : t.in) || e, 0);
1968
+ var i, s, d, u;
1969
+ const a = ja(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((s = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : s.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((u = (d = a.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, r = kl(e, t), l = je((t == null ? void 0 : t.in) || e, 0);
1970
1970
  return l.setFullYear(r, 0, n), l.setHours(0, 0, 0, 0), jt(l, t);
1971
1971
  }
1972
1972
  function _l(e, t) {
@@ -2669,9 +2669,9 @@ function dc(e, t, a) {
2669
2669
  }
2670
2670
  const cc = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, fc = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, vc = /^'([^]*?)'?$/, mc = /''/g, pc = /[a-zA-Z]/;
2671
2671
  function na(e, t, a) {
2672
- var u, d, f, p, h, g, b, k;
2673
- const n = ja(), r = (a == null ? void 0 : a.locale) ?? n.locale ?? yi, l = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((d = (u = a == null ? void 0 : a.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((p = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, o = (a == null ? void 0 : a.weekStartsOn) ?? ((g = (h = a == null ? void 0 : a.locale) == null ? void 0 : h.options) == null ? void 0 : g.weekStartsOn) ?? n.weekStartsOn ?? ((k = (b = n.locale) == null ? void 0 : b.options) == null ? void 0 : k.weekStartsOn) ?? 0, i = Pe(e, a == null ? void 0 : a.in);
2674
- if (!Dn(i))
2672
+ var u, c, f, p, h, g, b, k;
2673
+ const n = ja(), r = (a == null ? void 0 : a.locale) ?? n.locale ?? yi, l = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((c = (u = a == null ? void 0 : a.locale) == null ? void 0 : u.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((p = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, o = (a == null ? void 0 : a.weekStartsOn) ?? ((g = (h = a == null ? void 0 : a.locale) == null ? void 0 : h.options) == null ? void 0 : g.weekStartsOn) ?? n.weekStartsOn ?? ((k = (b = n.locale) == null ? void 0 : b.options) == null ? void 0 : k.weekStartsOn) ?? 0, i = Pe(e, a == null ? void 0 : a.in);
2674
+ if (!xn(i))
2675
2675
  throw new RangeError("Invalid time value");
2676
2676
  let s = t.match(fc).map((_) => {
2677
2677
  const w = _[0];
@@ -2695,7 +2695,7 @@ function na(e, t, a) {
2695
2695
  return { isToken: !1, value: _ };
2696
2696
  });
2697
2697
  r.localize.preprocessor && (s = r.localize.preprocessor(i, s));
2698
- const c = {
2698
+ const d = {
2699
2699
  firstWeekContainsDate: l,
2700
2700
  weekStartsOn: o,
2701
2701
  locale: r
@@ -2705,7 +2705,7 @@ function na(e, t, a) {
2705
2705
  const w = _.value;
2706
2706
  (!(a != null && a.useAdditionalWeekYearTokens) && bi(w) || !(a != null && a.useAdditionalDayOfYearTokens) && wi(w)) && tl(w, t, String(e));
2707
2707
  const P = co[w[0]];
2708
- return P(i, w, r.localize, c);
2708
+ return P(i, w, r.localize, d);
2709
2709
  }).join("");
2710
2710
  }
2711
2711
  function hc(e) {
@@ -3564,8 +3564,8 @@ class Hc extends He {
3564
3564
  }
3565
3565
  }
3566
3566
  function Dl(e, t, a) {
3567
- var d, f, p, h;
3568
- const n = ja(), r = (a == null ? void 0 : a.weekStartsOn) ?? ((f = (d = a == null ? void 0 : a.locale) == null ? void 0 : d.options) == null ? void 0 : f.weekStartsOn) ?? n.weekStartsOn ?? ((h = (p = n.locale) == null ? void 0 : p.options) == null ? void 0 : h.weekStartsOn) ?? 0, l = Pe(e, a == null ? void 0 : a.in), o = l.getDay(), s = (t % 7 + 7) % 7, c = 7 - r, u = t < 0 || t > 6 ? t - (o + c) % 7 : (s + c) % 7 - (o + c) % 7;
3567
+ var c, f, p, h;
3568
+ const n = ja(), r = (a == null ? void 0 : a.weekStartsOn) ?? ((f = (c = a == null ? void 0 : a.locale) == null ? void 0 : c.options) == null ? void 0 : f.weekStartsOn) ?? n.weekStartsOn ?? ((h = (p = n.locale) == null ? void 0 : p.options) == null ? void 0 : h.weekStartsOn) ?? 0, l = Pe(e, a == null ? void 0 : a.in), o = l.getDay(), s = (t % 7 + 7) % 7, d = 7 - r, u = t < 0 || t > 6 ? t - (o + d) % 7 : (s + d) % 7 - (o + d) % 7;
3569
3569
  return Rt(l, u, a);
3570
3570
  }
3571
3571
  class Wc extends He {
@@ -4266,11 +4266,11 @@ function al(e, t, a, n) {
4266
4266
  const r = () => je((n == null ? void 0 : n.in) || a, NaN), l = wc(), o = (n == null ? void 0 : n.locale) ?? l.locale ?? yi, i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((k = (b = n == null ? void 0 : n.locale) == null ? void 0 : b.options) == null ? void 0 : k.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((w = (_ = l.locale) == null ? void 0 : _.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((T = (P = n == null ? void 0 : n.locale) == null ? void 0 : P.options) == null ? void 0 : T.weekStartsOn) ?? l.weekStartsOn ?? ((x = (M = l.locale) == null ? void 0 : M.options) == null ? void 0 : x.weekStartsOn) ?? 0;
4267
4267
  if (!t)
4268
4268
  return e ? r() : Pe(a, n == null ? void 0 : n.in);
4269
- const c = {
4269
+ const d = {
4270
4270
  firstWeekContainsDate: i,
4271
4271
  weekStartsOn: s,
4272
4272
  locale: o
4273
- }, u = [new xc(n == null ? void 0 : n.in, a)], d = t.match(cf).map((F) => {
4273
+ }, u = [new xc(n == null ? void 0 : n.in, a)], c = t.match(cf).map((F) => {
4274
4274
  const R = F[0];
4275
4275
  if (R in el) {
4276
4276
  const V = el[R];
@@ -4278,7 +4278,7 @@ function al(e, t, a, n) {
4278
4278
  }
4279
4279
  return F;
4280
4280
  }).join("").match(df), f = [];
4281
- for (let F of d) {
4281
+ for (let F of c) {
4282
4282
  !(n != null && n.useAdditionalWeekYearTokens) && bi(F) && tl(F, t, e), !(n != null && n.useAdditionalDayOfYearTokens) && wi(F) && tl(F, t, e);
4283
4283
  const R = F[0], V = uf[R];
4284
4284
  if (V) {
@@ -4300,7 +4300,7 @@ function al(e, t, a, n) {
4300
4300
  e,
4301
4301
  F,
4302
4302
  o.match,
4303
- c
4303
+ d
4304
4304
  );
4305
4305
  if (!le)
4306
4306
  return r();
@@ -4325,9 +4325,9 @@ function al(e, t, a, n) {
4325
4325
  if (isNaN(+h)) return r();
4326
4326
  const g = {};
4327
4327
  for (const F of p) {
4328
- if (!F.validate(h, c))
4328
+ if (!F.validate(h, d))
4329
4329
  return r();
4330
- const R = F.set(h, g, c);
4330
+ const R = F.set(h, g, d);
4331
4331
  Array.isArray(R) ? (h = R[0], Object.assign(g, R[1])) : h = R;
4332
4332
  }
4333
4333
  return h;
@@ -4387,14 +4387,14 @@ function wf(e, t, a) {
4387
4387
  days: o = 0,
4388
4388
  hours: i = 0,
4389
4389
  minutes: s = 0,
4390
- seconds: c = 0
4391
- } = t, u = sn(e, r + n * 12, a), d = xi(u, o + l * 7, a), f = s + i * 60, h = (c + f * 60) * 1e3;
4392
- return je(e, +d - h);
4390
+ seconds: d = 0
4391
+ } = t, u = sn(e, r + n * 12, a), c = xi(u, o + l * 7, a), f = s + i * 60, h = (d + f * 60) * 1e3;
4392
+ return je(e, +c - h);
4393
4393
  }
4394
4394
  function Oi(e, t, a) {
4395
4395
  return wl(e, -t, a);
4396
4396
  }
4397
- function mn() {
4397
+ function pn() {
4398
4398
  const e = Ca();
4399
4399
  return y(), D(
4400
4400
  "svg",
@@ -4423,7 +4423,7 @@ function mn() {
4423
4423
  ]
4424
4424
  );
4425
4425
  }
4426
- mn.compatConfig = {
4426
+ pn.compatConfig = {
4427
4427
  MODE: 3
4428
4428
  };
4429
4429
  function Ai() {
@@ -4647,7 +4647,7 @@ const xf = (e, t, a) => {
4647
4647
  t.push(a(r));
4648
4648
  }
4649
4649
  return t;
4650
- }, Mn = (e, t, a) => {
4650
+ }, Pn = (e, t, a) => {
4651
4651
  const n = a != null, r = t != null;
4652
4652
  if (!n && !r) return !1;
4653
4653
  const l = +a, o = +t;
@@ -4693,7 +4693,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
4693
4693
  if (n) return n(e);
4694
4694
  }, Sf = () => "ontouchstart" in window || navigator.maxTouchPoints > 0, Ei = (e, t) => e ? an.MONTH_AND_YEAR : t ? an.YEAR : an.DATE, Ii = (e) => e < 10 ? `0${e}` : e, wo = (e, t, a, n, r, l) => {
4695
4695
  const o = al(e, t.slice(0, e.length), /* @__PURE__ */ new Date(), { locale: l });
4696
- return Dn(o) && fi(o) ? n || r ? o : Ue(o, {
4696
+ return xn(o) && fi(o) ? n || r ? o : Ue(o, {
4697
4697
  hours: +a.hours,
4698
4698
  minutes: +(a == null ? void 0 : a.minutes),
4699
4699
  seconds: +(a == null ? void 0 : a.seconds),
@@ -4731,7 +4731,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
4731
4731
  }, xa = (e, t, a, n) => {
4732
4732
  let r = e ? re(e) : re();
4733
4733
  return (t || t === 0) && (r = yf(r, +t)), (a || a === 0) && (r = gf(r, +a)), (n || n === 0) && (r = Pi(r, +n)), Mi(r, 0);
4734
- }, lt = (e, t) => !e || !t ? !1 : on(wt(e), wt(t)), Le = (e, t) => !e || !t ? !1 : tn(wt(e), wt(t)), st = (e, t) => !e || !t ? !1 : Wa(wt(e), wt(t)), Pn = (e, t, a) => e != null && e[0] && e != null && e[1] ? st(a, e[0]) && lt(a, e[1]) : e != null && e[0] && t ? st(a, e[0]) && lt(a, t) || lt(a, e[0]) && st(a, t) : !1, Ht = (e) => {
4734
+ }, lt = (e, t) => !e || !t ? !1 : on(wt(e), wt(t)), Le = (e, t) => !e || !t ? !1 : tn(wt(e), wt(t)), st = (e, t) => !e || !t ? !1 : Wa(wt(e), wt(t)), On = (e, t, a) => e != null && e[0] && e != null && e[1] ? st(a, e[0]) && lt(a, e[1]) : e != null && e[0] && t ? st(a, e[0]) && lt(a, t) || lt(a, e[0]) && st(a, t) : !1, Ht = (e) => {
4735
4735
  const t = Ue(new Date(e), { date: 1 });
4736
4736
  return wt(t);
4737
4737
  }, Rr = (e, t, a) => t && (a || a === 0) ? Object.fromEntries(
@@ -4790,7 +4790,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
4790
4790
  }, Vn = (e, t) => {
4791
4791
  if (t) return e();
4792
4792
  throw new Error(Sl.prop("range"));
4793
- }, ll = (e) => Array.isArray(e) ? Dn(e[0]) && (e[1] ? Dn(e[1]) : !0) : e ? Dn(e) : !1, Nf = (e, t) => Ue(t ?? re(), {
4793
+ }, ll = (e) => Array.isArray(e) ? xn(e[0]) && (e[1] ? xn(e[1]) : !0) : e ? xn(e) : !1, Nf = (e, t) => Ue(t ?? re(), {
4794
4794
  hours: +e.hours || 0,
4795
4795
  minutes: +e.minutes || 0,
4796
4796
  seconds: +e.seconds || 0
@@ -4823,17 +4823,17 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
4823
4823
  }, Wi = (e, t, a) => typeof e == "function" ? e({ month: t, year: a }) : !!e.months.find((n) => n.month === t && n.year === a), Rl = (e, t) => typeof e == "function" ? e(t) : e.years.includes(t), ol = (e) => `dp-${na(e, "yyyy-MM-dd")}`, ko = (e, t) => {
4824
4824
  const a = xi(wt(t), e), n = Rt(wt(t), e);
4825
4825
  return { before: a, after: n };
4826
- }, bn = va({
4826
+ }, kn = va({
4827
4827
  menuFocused: !1,
4828
4828
  shiftKeyInMenu: !1
4829
4829
  }), zi = () => {
4830
4830
  const e = (a) => {
4831
- bn.menuFocused = a;
4831
+ kn.menuFocused = a;
4832
4832
  }, t = (a) => {
4833
- bn.shiftKeyInMenu !== a && (bn.shiftKeyInMenu = a);
4833
+ kn.shiftKeyInMenu !== a && (kn.shiftKeyInMenu = a);
4834
4834
  };
4835
4835
  return {
4836
- control: O(() => ({ shiftKeyInMenu: bn.shiftKeyInMenu, menuFocused: bn.menuFocused })),
4836
+ control: O(() => ({ shiftKeyInMenu: kn.shiftKeyInMenu, menuFocused: kn.menuFocused })),
4837
4837
  setMenuFocused: e,
4838
4838
  setShiftKey: t
4839
4839
  };
@@ -4849,20 +4849,20 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
4849
4849
  },
4850
4850
  monthPicker: []
4851
4851
  }), Nr = E(null), Hn = E(!1), Yr = E(!1), Fr = E(!1), Vr = E(!1), kt = E(0), it = E(0), Sa = () => {
4852
- const e = O(() => Hn.value ? [...Ke.selectionGrid, Ke.actionRow].filter((d) => d.length) : Yr.value ? [
4852
+ const e = O(() => Hn.value ? [...Ke.selectionGrid, Ke.actionRow].filter((c) => c.length) : Yr.value ? [
4853
4853
  ...Ke.timePicker[0],
4854
4854
  ...Ke.timePicker[1],
4855
4855
  Vr.value ? [] : [Nr.value],
4856
4856
  Ke.actionRow
4857
- ].filter((d) => d.length) : Fr.value ? [...Ke.monthPicker, Ke.actionRow] : [Ke.monthYear, ...Ke.calendar, Ke.time, Ke.actionRow].filter((d) => d.length)), t = (d) => {
4858
- kt.value = d ? kt.value + 1 : kt.value - 1;
4857
+ ].filter((c) => c.length) : Fr.value ? [...Ke.monthPicker, Ke.actionRow] : [Ke.monthYear, ...Ke.calendar, Ke.time, Ke.actionRow].filter((c) => c.length)), t = (c) => {
4858
+ kt.value = c ? kt.value + 1 : kt.value - 1;
4859
4859
  let f = null;
4860
- e.value[it.value] && (f = e.value[it.value][kt.value]), !f && e.value[it.value + (d ? 1 : -1)] ? (it.value = it.value + (d ? 1 : -1), kt.value = d ? 0 : e.value[it.value].length - 1) : f || (kt.value = d ? kt.value - 1 : kt.value + 1);
4861
- }, a = (d) => {
4862
- it.value === 0 && !d || it.value === e.value.length && d || (it.value = d ? it.value + 1 : it.value - 1, e.value[it.value] ? e.value[it.value] && !e.value[it.value][kt.value] && kt.value !== 0 && (kt.value = e.value[it.value].length - 1) : it.value = d ? it.value - 1 : it.value + 1);
4863
- }, n = (d) => {
4860
+ e.value[it.value] && (f = e.value[it.value][kt.value]), !f && e.value[it.value + (c ? 1 : -1)] ? (it.value = it.value + (c ? 1 : -1), kt.value = c ? 0 : e.value[it.value].length - 1) : f || (kt.value = c ? kt.value - 1 : kt.value + 1);
4861
+ }, a = (c) => {
4862
+ it.value === 0 && !c || it.value === e.value.length && c || (it.value = c ? it.value + 1 : it.value - 1, e.value[it.value] ? e.value[it.value] && !e.value[it.value][kt.value] && kt.value !== 0 && (kt.value = e.value[it.value].length - 1) : it.value = c ? it.value - 1 : it.value + 1);
4863
+ }, n = (c) => {
4864
4864
  let f = null;
4865
- e.value[it.value] && (f = e.value[it.value][kt.value]), f ? f.focus({ preventScroll: !Hn.value }) : kt.value = d ? kt.value - 1 : kt.value + 1;
4865
+ e.value[it.value] && (f = e.value[it.value][kt.value]), f ? f.focus({ preventScroll: !Hn.value }) : kt.value = c ? kt.value - 1 : kt.value + 1;
4866
4866
  }, r = () => {
4867
4867
  t(!0), n(!0);
4868
4868
  }, l = () => {
@@ -4871,27 +4871,27 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
4871
4871
  a(!1), n(!0);
4872
4872
  }, i = () => {
4873
4873
  a(!0), n(!0);
4874
- }, s = (d, f) => {
4875
- Ke[f] = d;
4876
- }, c = (d, f) => {
4877
- Ke[f] = d;
4874
+ }, s = (c, f) => {
4875
+ Ke[f] = c;
4876
+ }, d = (c, f) => {
4877
+ Ke[f] = c;
4878
4878
  }, u = () => {
4879
4879
  kt.value = 0, it.value = 0;
4880
4880
  };
4881
4881
  return {
4882
4882
  buildMatrix: s,
4883
- buildMultiLevelMatrix: c,
4884
- setTimePickerBackRef: (d) => {
4885
- Nr.value = d;
4883
+ buildMultiLevelMatrix: d,
4884
+ setTimePickerBackRef: (c) => {
4885
+ Nr.value = c;
4886
4886
  },
4887
- setSelectionGrid: (d) => {
4888
- Hn.value = d, u(), d || (Ke.selectionGrid = []);
4887
+ setSelectionGrid: (c) => {
4888
+ Hn.value = c, u(), c || (Ke.selectionGrid = []);
4889
4889
  },
4890
- setTimePicker: (d, f = !1) => {
4891
- Yr.value = d, Vr.value = f, u(), d || (Ke.timePicker[0] = [], Ke.timePicker[1] = []);
4890
+ setTimePicker: (c, f = !1) => {
4891
+ Yr.value = c, Vr.value = f, u(), c || (Ke.timePicker[0] = [], Ke.timePicker[1] = []);
4892
4892
  },
4893
- setTimePickerElements: (d, f = 0) => {
4894
- Ke.timePicker[f] = d;
4893
+ setTimePickerElements: (c, f = 0) => {
4894
+ Ke.timePicker[f] = c;
4895
4895
  },
4896
4896
  arrowRight: r,
4897
4897
  arrowLeft: l,
@@ -4900,8 +4900,8 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
4900
4900
  clearArrowNav: () => {
4901
4901
  Ke.monthYear = [], Ke.calendar = [], Ke.time = [], Ke.actionRow = [], Ke.selectionGrid = [], Ke.timePicker[0] = [], Ke.timePicker[1] = [], Hn.value = !1, Yr.value = !1, Vr.value = !1, Fr.value = !1, u(), Nr.value = null;
4902
4902
  },
4903
- setMonthPicker: (d) => {
4904
- Fr.value = d, u();
4903
+ setMonthPicker: (c) => {
4904
+ Fr.value = c, u();
4905
4905
  },
4906
4906
  refSets: Ke
4907
4907
  // exposed for testing
@@ -5061,7 +5061,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
5061
5061
  }, a = () => {
5062
5062
  var M;
5063
5063
  return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? t() : e.weekPicker ? `${((M = b.value) == null ? void 0 : M.type) === "iso" ? "II" : "ww"}-RR` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${t()}` : "MM/dd/yyyy";
5064
- }, n = (M) => Fi(M, e.enableSeconds), r = () => P.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [n(e.startTime[0]), n(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? n(e.startTime) : null, l = O(() => Hf(e.multiCalendars)), o = O(() => r()), i = O(() => Vf(e.ariaLabels)), s = O(() => jf(e.filters)), c = O(() => zf(e.transitions)), u = O(() => Uf(e.actionRow)), d = O(
5064
+ }, n = (M) => Fi(M, e.enableSeconds), r = () => P.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [n(e.startTime[0]), n(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? n(e.startTime) : null, l = O(() => Hf(e.multiCalendars)), o = O(() => r()), i = O(() => Vf(e.ariaLabels)), s = O(() => jf(e.filters)), d = O(() => zf(e.transitions)), u = O(() => Uf(e.actionRow)), c = O(
5065
5065
  () => Wf(e.previewFormat, e.format, a())
5066
5066
  ), f = O(() => qf(e.textInput)), p = O(() => Qf(e.inline)), h = O(() => Kf(e.config)), g = O(() => Gf(e.highlight)), b = O(() => Xf(e.weekNumbers)), k = O(() => Jf(e.timezone)), _ = O(() => av(e.multiDates)), w = O(
5067
5067
  () => tv({
@@ -5078,13 +5078,13 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
5078
5078
  })
5079
5079
  ), P = O(() => Zf(e.range)), T = O(() => nv(e.ui));
5080
5080
  return {
5081
- defaultedTransitions: c,
5081
+ defaultedTransitions: d,
5082
5082
  defaultedMultiCalendars: l,
5083
5083
  defaultedStartTime: o,
5084
5084
  defaultedAriaLabels: i,
5085
5085
  defaultedFilters: s,
5086
5086
  defaultedActionRow: u,
5087
- defaultedPreviewFormat: d,
5087
+ defaultedPreviewFormat: c,
5088
5088
  defaultedTextInput: f,
5089
5089
  defaultedInline: p,
5090
5090
  defaultedConfig: h,
@@ -5102,7 +5102,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
5102
5102
  }
5103
5103
  };
5104
5104
  }, rv = (e, t, a) => {
5105
- const n = E(), { defaultedTextInput: r, defaultedRange: l, defaultedTz: o, defaultedMultiDates: i, getDefaultPattern: s } = tt(t), c = E(""), u = Ma(t, "format"), d = Ma(t, "formatLocale");
5105
+ const n = E(), { defaultedTextInput: r, defaultedRange: l, defaultedTz: o, defaultedMultiDates: i, getDefaultPattern: s } = tt(t), d = E(""), u = Ma(t, "format"), c = Ma(t, "formatLocale");
5106
5106
  Ae(
5107
5107
  n,
5108
5108
  () => {
@@ -5188,21 +5188,21 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
5188
5188
  ];
5189
5189
  }, V = () => Array.isArray(n.value) ? n.value[1] ? R() : de(ht(n.value[0])) : [], G = () => (n.value || []).map((m) => de(m)), le = (m = !1) => (m || F(), t.modelAuto ? V() : i.value.enabled ? G() : Array.isArray(n.value) ? Vn(() => R(), l.value.enabled) : de(ht(n.value))), me = (m) => !m || Array.isArray(m) && !m.length ? null : t.timePicker ? w(ht(m)) : t.monthPicker ? P(ht(m)) : t.yearPicker ? k(ht(m)) : i.value.enabled ? T(ht(m)) : t.weekPicker ? M(ht(m)) : x(ht(m)), S = (m) => {
5190
5190
  const H = me(m);
5191
- ll(ht(H)) ? (n.value = ht(H), ae()) : (n.value = null, c.value = "");
5191
+ ll(ht(H)) ? (n.value = ht(H), ae()) : (n.value = null, d.value = "");
5192
5192
  }, N = () => {
5193
5193
  const m = (H) => na(H, r.value.format);
5194
5194
  return `${m(n.value[0])} ${r.value.rangeSeparator} ${n.value[1] ? m(n.value[1]) : ""}`;
5195
5195
  }, A = () => a.value && n.value ? Array.isArray(n.value) ? N() : na(n.value, r.value.format) : h(n.value), Z = () => n.value ? i.value.enabled ? n.value.map((m) => h(m)).join("; ") : r.value.enabled && typeof r.value.format == "string" ? A() : h(n.value) : "", ae = () => {
5196
- !t.format || typeof t.format == "string" || r.value.enabled && typeof r.value.format == "string" ? c.value = Z() : c.value = t.format(n.value);
5196
+ !t.format || typeof t.format == "string" || r.value.enabled && typeof r.value.format == "string" ? d.value = Z() : d.value = t.format(n.value);
5197
5197
  }, Q = (m) => {
5198
5198
  if (t.utc) {
5199
5199
  const H = new Date(m);
5200
5200
  return t.utc === "preserve" ? new Date(H.getTime() + H.getTimezoneOffset() * 6e4) : H;
5201
5201
  }
5202
5202
  return t.modelType ? $f.includes(t.modelType) ? f(new Date(m)) : t.modelType === "format" && (typeof t.format == "string" || !t.format) ? f(
5203
- al(m, s(), /* @__PURE__ */ new Date(), { locale: d.value })
5203
+ al(m, s(), /* @__PURE__ */ new Date(), { locale: c.value })
5204
5204
  ) : f(
5205
- al(m, t.modelType, /* @__PURE__ */ new Date(), { locale: d.value })
5205
+ al(m, t.modelType, /* @__PURE__ */ new Date(), { locale: c.value })
5206
5206
  ) : f(new Date(m));
5207
5207
  }, de = (m) => m ? t.utc ? Rf(m, t.utc === "preserve", t.enableSeconds) : t.modelType ? t.modelType === "timestamp" ? +p(m) : t.modelType === "iso" ? p(m).toISOString() : t.modelType === "format" && (typeof t.format == "string" || !t.format) ? h(p(m)) : h(p(m), t.modelType, !0) : p(m) : "", z = (m, H = !1, ve = !1) => {
5208
5208
  if (ve) return m;
@@ -5224,7 +5224,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
5224
5224
  return m ? H : e("update:model-value", C());
5225
5225
  }, ee = (m = !1) => (m || ae(), t.monthPicker ? W(b, m) : t.timePicker ? W(g, m) : t.yearPicker ? W(Oe, m) : t.weekPicker ? X(m) : z(le(m), !0, m));
5226
5226
  return {
5227
- inputValue: c,
5227
+ inputValue: d,
5228
5228
  internalModelValue: n,
5229
5229
  checkBeforeEmit: () => n.value ? l.value.enabled ? l.value.partialRange ? n.value.length >= 1 : n.value.length === 2 : !!n.value : !1,
5230
5230
  parseExternalModelValue: S,
@@ -5232,28 +5232,28 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
5232
5232
  emitModelValue: ee
5233
5233
  };
5234
5234
  }, lv = (e, t) => {
5235
- const { defaultedFilters: a, propDates: n } = tt(e), { validateMonthYearInRange: r } = Ba(e), l = (u, d) => {
5235
+ const { defaultedFilters: a, propDates: n } = tt(e), { validateMonthYearInRange: r } = Ba(e), l = (u, c) => {
5236
5236
  let f = u;
5237
- return a.value.months.includes(Ie(f)) ? (f = d ? qt(u, 1) : sn(u, 1), l(f, d)) : f;
5238
- }, o = (u, d) => {
5237
+ return a.value.months.includes(Ie(f)) ? (f = c ? qt(u, 1) : sn(u, 1), l(f, c)) : f;
5238
+ }, o = (u, c) => {
5239
5239
  let f = u;
5240
- return a.value.years.includes(Oe(f)) ? (f = d ? wl(u, 1) : Oi(u, 1), o(f, d)) : f;
5241
- }, i = (u, d = !1) => {
5240
+ return a.value.years.includes(Oe(f)) ? (f = c ? wl(u, 1) : Oi(u, 1), o(f, c)) : f;
5241
+ }, i = (u, c = !1) => {
5242
5242
  const f = Ue(re(), { month: e.month, year: e.year });
5243
5243
  let p = u ? qt(f, 1) : sn(f, 1);
5244
5244
  e.disableYearSelect && (p = aa(p, e.year));
5245
5245
  let h = Ie(p), g = Oe(p);
5246
- a.value.months.includes(h) && (p = l(p, u), h = Ie(p), g = Oe(p)), a.value.years.includes(g) && (p = o(p, u), g = Oe(p)), r(h, g, u, e.preventMinMaxNavigation) && s(h, g, d);
5247
- }, s = (u, d, f) => {
5248
- t("update-month-year", { month: u, year: d, fromNav: f });
5249
- }, c = O(() => (u) => Vi(
5246
+ a.value.months.includes(h) && (p = l(p, u), h = Ie(p), g = Oe(p)), a.value.years.includes(g) && (p = o(p, u), g = Oe(p)), r(h, g, u, e.preventMinMaxNavigation) && s(h, g, c);
5247
+ }, s = (u, c, f) => {
5248
+ t("update-month-year", { month: u, year: c, fromNav: f });
5249
+ }, d = O(() => (u) => Vi(
5250
5250
  Ue(re(), { month: e.month, year: e.year }),
5251
5251
  n.value.maxDate,
5252
5252
  n.value.minDate,
5253
5253
  e.preventMinMaxNavigation,
5254
5254
  u
5255
5255
  ));
5256
- return { handleMonthYearChange: i, isDisabled: c, updateMonthYear: s };
5256
+ return { handleMonthYearChange: i, isDisabled: d, updateMonthYear: s };
5257
5257
  }, pr = {
5258
5258
  multiCalendars: { type: [Boolean, Number, String, Object], default: void 0 },
5259
5259
  modelValue: { type: [String, Date, Array, Object, Number], default: null },
@@ -5406,9 +5406,9 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
5406
5406
  defaultedMultiCalendars: o,
5407
5407
  defaultedTextInput: i,
5408
5408
  defaultedInline: s,
5409
- defaultedRange: c,
5409
+ defaultedRange: d,
5410
5410
  defaultedMultiDates: u
5411
- } = tt(n), { isTimeValid: d, isMonthValid: f } = Ba(n), { buildMatrix: p } = Sa(), h = E(null), g = E(null), b = E(!1), k = E({}), _ = E(null), w = E(null);
5411
+ } = tt(n), { isTimeValid: c, isMonthValid: f } = Ba(n), { buildMatrix: p } = Sa(), h = E(null), g = E(null), b = E(!1), k = E({}), _ = E(null), w = E(null);
5412
5412
  Ye(() => {
5413
5413
  n.arrowNavigation && p([vt(h), vt(g)], "actionRow"), P(), window.addEventListener("resize", P);
5414
5414
  }), ha(() => {
@@ -5420,8 +5420,8 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
5420
5420
  const A = (S = _.value) == null ? void 0 : S.getBoundingClientRect(), Z = (N = w.value) == null ? void 0 : N.getBoundingClientRect();
5421
5421
  A && Z && (k.value.maxWidth = `${Z.width - A.width - 20}px`), b.value = !0;
5422
5422
  }, 0);
5423
- }, T = O(() => c.value.enabled && !c.value.partialRange && n.internalModelValue ? n.internalModelValue.length === 2 : !0), M = O(
5424
- () => !d.value(n.internalModelValue) || !f.value(n.internalModelValue) || !T.value
5423
+ }, T = O(() => d.value.enabled && !d.value.partialRange && n.internalModelValue ? n.internalModelValue.length === 2 : !0), M = O(
5424
+ () => !c.value(n.internalModelValue) || !f.value(n.internalModelValue) || !T.value
5425
5425
  ), x = () => {
5426
5426
  const S = l.value;
5427
5427
  return n.timePicker || n.monthPicker, S(ht(n.internalModelValue));
@@ -5438,7 +5438,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
5438
5438
  ), V = O(() => !n.internalModelValue || !n.menuMount ? "" : typeof l.value == "string" ? Array.isArray(n.internalModelValue) ? n.internalModelValue.length === 2 && n.internalModelValue[1] ? F() : u.value.enabled ? n.internalModelValue.map((S) => `${R(S)}`) : n.modelAuto ? `${R(n.internalModelValue[0])}` : `${R(n.internalModelValue[0])} -` : R(n.internalModelValue) : x()), G = () => u.value.enabled ? "; " : " - ", le = O(
5439
5439
  () => Array.isArray(V.value) ? V.value.join(G()) : V.value
5440
5440
  ), me = () => {
5441
- d.value(n.internalModelValue) && f.value(n.internalModelValue) && T.value ? a("select-date") : a("invalid-select");
5441
+ c.value(n.internalModelValue) && f.value(n.internalModelValue) && T.value ? a("select-date") : a("invalid-select");
5442
5442
  };
5443
5443
  return (S, N) => (y(), D("div", {
5444
5444
  ref_key: "actionRowRef",
@@ -5531,7 +5531,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
5531
5531
  },
5532
5532
  emits: ["selected", "toggle", "reset-flow", "hover-value"],
5533
5533
  setup(e, { expose: t, emit: a }) {
5534
- const { setSelectionGrid: n, buildMultiLevelMatrix: r, setMonthPicker: l } = Sa(), o = a, i = e, { defaultedAriaLabels: s, defaultedTextInput: c, defaultedConfig: u, handleEventPropagation: d } = tt(
5534
+ const { setSelectionGrid: n, buildMultiLevelMatrix: r, setMonthPicker: l } = Sa(), o = a, i = e, { defaultedAriaLabels: s, defaultedTextInput: d, defaultedConfig: u, handleEventPropagation: c } = tt(
5535
5535
  i
5536
5536
  ), { hideNavigationButtons: f } = gr(), p = E(!1), h = E(null), g = E(null), b = E([]), k = E(), _ = E(null), w = E(0), P = E(null);
5537
5537
  Ls(() => {
@@ -5545,7 +5545,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
5545
5545
  }, M = () => {
5546
5546
  var C;
5547
5547
  const W = vt(g);
5548
- W && (c.value.enabled || (h.value ? (C = h.value) == null || C.focus({ preventScroll: !0 }) : W.focus({ preventScroll: !0 })), p.value = W.clientHeight < W.scrollHeight);
5548
+ W && (d.value.enabled || (h.value ? (C = h.value) == null || C.focus({ preventScroll: !0 }) : W.focus({ preventScroll: !0 })), p.value = W.clientHeight < W.scrollHeight);
5549
5549
  }, x = O(
5550
5550
  () => ({
5551
5551
  dp__overlay: !0,
@@ -5587,7 +5587,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
5587
5587
  }, S = () => {
5588
5588
  o("toggle"), o("reset-flow");
5589
5589
  }, N = (C) => {
5590
- i.escClose && (S(), d(C));
5590
+ i.escClose && (S(), c(C));
5591
5591
  }, A = (C, W, X, ee) => {
5592
5592
  C && ((W.active || W.value === i.focusValue) && (h.value = C), i.arrowNavigation && (Array.isArray(b.value[X]) ? b.value[X][ee] = C : b.value[X] = [C], Z()));
5593
5593
  }, Z = () => {
@@ -5734,7 +5734,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
5734
5734
  ], 2))), 128))
5735
5735
  ], 10, vv));
5736
5736
  }
5737
- }), mv = ["data-dp-element", "aria-label", "aria-disabled"], xn = /* @__PURE__ */ ie({
5737
+ }), mv = ["data-dp-element", "aria-label", "aria-disabled"], Tn = /* @__PURE__ */ ie({
5738
5738
  compatConfig: {
5739
5739
  MODE: 3
5740
5740
  },
@@ -5778,7 +5778,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
5778
5778
  },
5779
5779
  emits: ["toggle-year-picker", "year-select", "handle-year"],
5780
5780
  setup(e, { emit: t }) {
5781
- const a = t, n = e, { showRightIcon: r, showLeftIcon: l } = gr(), { defaultedConfig: o, defaultedMultiCalendars: i, defaultedAriaLabels: s, defaultedTransitions: c, defaultedUI: u } = tt(n), { showTransition: d, transitionName: f } = In(c), p = E(!1), h = (k = !1, _) => {
5781
+ const a = t, n = e, { showRightIcon: r, showLeftIcon: l } = gr(), { defaultedConfig: o, defaultedMultiCalendars: i, defaultedAriaLabels: s, defaultedTransitions: d, defaultedUI: u } = tt(n), { showTransition: c, transitionName: f } = In(d), p = E(!1), h = (k = !1, _) => {
5782
5782
  p.value = !p.value, a("toggle-year-picker", { flow: k, show: _ });
5783
5783
  }, g = (k) => {
5784
5784
  p.value = !1, a("year-select", k);
@@ -5791,7 +5791,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
5791
5791
  U("div", {
5792
5792
  class: ye(["dp--year-mode-picker", { "dp--hidden-el": p.value }])
5793
5793
  }, [
5794
- v(l)(v(i), e.instance) ? (y(), te(xn, {
5794
+ v(l)(v(i), e.instance) ? (y(), te(Tn, {
5795
5795
  key: 0,
5796
5796
  ref: "mpPrevIconRef",
5797
5797
  "aria-label": (w = v(s)) == null ? void 0 : w.prevYear,
@@ -5822,7 +5822,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
5822
5822
  We(Te(e.year), 1)
5823
5823
  ], 64))
5824
5824
  ], 40, pv),
5825
- v(r)(v(i), e.instance) ? (y(), te(xn, {
5825
+ v(r)(v(i), e.instance) ? (y(), te(Tn, {
5826
5826
  key: 1,
5827
5827
  ref: "mpNextIconRef",
5828
5828
  "aria-label": (M = v(s)) == null ? void 0 : M.nextYear,
@@ -5839,7 +5839,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
5839
5839
  ], 2),
5840
5840
  he(Gt, {
5841
5841
  name: v(f)(e.showYearPicker),
5842
- css: v(d)
5842
+ css: v(c)
5843
5843
  }, {
5844
5844
  default: q(() => {
5845
5845
  var F, R;
@@ -5860,7 +5860,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
5860
5860
  }, mt({
5861
5861
  "button-icon": q(() => [
5862
5862
  k.$slots["calendar-icon"] ? I(k.$slots, "calendar-icon", { key: 0 }) : L("", !0),
5863
- k.$slots["calendar-icon"] ? L("", !0) : (y(), te(v(mn), { key: 1 }))
5863
+ k.$slots["calendar-icon"] ? L("", !0) : (y(), te(v(pn), { key: 1 }))
5864
5864
  ]),
5865
5865
  _: 2
5866
5866
  }, [
@@ -5907,14 +5907,14 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
5907
5907
  props: o,
5908
5908
  filters: i,
5909
5909
  year: s,
5910
- month: c,
5910
+ month: d,
5911
5911
  emit: u
5912
5912
  }) => {
5913
- const d = O(() => Cl(o.yearRange, o.locale, o.reverseYears)), f = E([!1]), p = O(() => (V, G) => {
5913
+ const c = O(() => Cl(o.yearRange, o.locale, o.reverseYears)), f = E([!1]), p = O(() => (V, G) => {
5914
5914
  const le = Ue(Ht(/* @__PURE__ */ new Date()), {
5915
- month: c.value(V),
5915
+ month: d.value(V),
5916
5916
  year: s.value(V)
5917
- }), me = G ? pi(le) : Tn(le);
5917
+ }), me = G ? pi(le) : Mn(le);
5918
5918
  return Vi(
5919
5919
  me,
5920
5920
  n.value.maxDate,
@@ -5957,9 +5957,9 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
5957
5957
  });
5958
5958
  const T = (V, G) => {
5959
5959
  r.value[G].year = V, u("update-month-year", { instance: G, year: V, month: r.value[G].month }), e.value.count && !e.value.solo && b(G);
5960
- }, M = O(() => (V) => un(d.value, (G) => {
5960
+ }, M = O(() => (V) => un(c.value, (G) => {
5961
5961
  var le;
5962
- const me = s.value(V) === G.value, S = Mn(
5962
+ const me = s.value(V) === G.value, S = Pn(
5963
5963
  G.value,
5964
5964
  dn(n.value.minDate),
5965
5965
  dn(n.value.maxDate)
@@ -5993,9 +5993,9 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
5993
5993
  defaultedRange: o,
5994
5994
  defaultedHighlight: i,
5995
5995
  propDates: s,
5996
- defaultedTz: c,
5996
+ defaultedTz: d,
5997
5997
  defaultedFilters: u,
5998
- defaultedMultiDates: d
5998
+ defaultedMultiDates: c
5999
5999
  } = tt(e), f = () => {
6000
6000
  e.isTextInputDate && P(Oe(re(e.startDate)), 0);
6001
6001
  }, { modelValue: p, year: h, month: g, calendars: b } = Ln(e, t, f), k = O(() => Ci(e.formatLocale, e.locale, e.monthNameFormat)), _ = E(null), { checkMinMaxRange: w } = Ba(e), {
@@ -6034,14 +6034,14 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6034
6034
  const ee = le();
6035
6035
  if (Array.isArray(p.value) && Array.isArray(ee)) {
6036
6036
  const m = S(W, X, 0) || S(W, X, 1), H = fa(Ht(re()), W, h.value(X));
6037
- return Pn(p.value, _.value, H) && !m;
6037
+ return On(p.value, _.value, H) && !m;
6038
6038
  }
6039
6039
  return !1;
6040
6040
  }
6041
6041
  return !1;
6042
6042
  }, A = O(() => (W) => un(k.value, (X) => {
6043
6043
  var ee;
6044
- const m = me(W, X.value), H = Mn(
6044
+ const m = me(W, X.value), H = Pn(
6045
6045
  X.value,
6046
6046
  Li(h.value(W), s.value.minDate),
6047
6047
  Ni(h.value(W), s.value.maxDate)
@@ -6056,8 +6056,8 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6056
6056
  yr(p.value, t, e.autoApply, e.modelAuto);
6057
6057
  });
6058
6058
  }, de = (W, X) => {
6059
- El(Z(W, X), p, d.value.limit), t("auto-apply", !0);
6060
- }, z = (W, X) => (b.value[X].month = W, C(X, b.value[X].year, W), d.value.enabled ? de(W, X) : o.value.enabled ? Q(W, X) : ae(W, X)), we = (W, X) => {
6059
+ El(Z(W, X), p, c.value.limit), t("auto-apply", !0);
6060
+ }, z = (W, X) => (b.value[X].month = W, C(X, b.value[X].year, W), c.value.enabled ? de(W, X) : o.value.enabled ? Q(W, X) : ae(W, X)), we = (W, X) => {
6061
6061
  P(W, X), C(X, W, null);
6062
6062
  }, C = (W, X, ee) => {
6063
6063
  let m = ee;
@@ -6083,7 +6083,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6083
6083
  value: W,
6084
6084
  modelValue: p,
6085
6085
  range: o.value.enabled,
6086
- timezone: X ? void 0 : c.value.timezone
6086
+ timezone: X ? void 0 : d.value.timezone
6087
6087
  }), t("auto-apply");
6088
6088
  },
6089
6089
  setHoverDate: (W, X) => {
@@ -6125,9 +6125,9 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6125
6125
  const {
6126
6126
  groupedMonths: i,
6127
6127
  groupedYears: s,
6128
- year: c,
6128
+ year: d,
6129
6129
  isDisabled: u,
6130
- defaultedMultiCalendars: d,
6130
+ defaultedMultiCalendars: c,
6131
6131
  defaultedConfig: f,
6132
6132
  showYearPicker: p,
6133
6133
  modelValue: h,
@@ -6142,13 +6142,13 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6142
6142
  } = hv(o, n);
6143
6143
  return t({ getSidebarProps: () => ({
6144
6144
  modelValue: h,
6145
- year: c,
6145
+ year: d,
6146
6146
  getModelMonthYear: M,
6147
6147
  selectMonth: k,
6148
6148
  selectYear: _,
6149
6149
  handleYear: T
6150
6150
  }), presetDate: g, toggleYearPicker: (x) => w(0, x) }), (x, F) => (y(), te(hr, {
6151
- "multi-calendars": v(d).count,
6151
+ "multi-calendars": v(c).count,
6152
6152
  collapse: x.collapse,
6153
6153
  stretch: "",
6154
6154
  "is-mobile": x.isMobile
@@ -6159,7 +6159,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6159
6159
  value: x.internalModelValue
6160
6160
  }) : L("", !0),
6161
6161
  x.$slots["month-year"] ? I(x.$slots, "month-year", Xe(Se({ key: 1 }, {
6162
- year: v(c),
6162
+ year: v(d),
6163
6163
  months: v(i)(R),
6164
6164
  years: v(s)(R),
6165
6165
  selectMonth: v(k),
@@ -6184,7 +6184,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6184
6184
  items: v(s)(R),
6185
6185
  instance: R,
6186
6186
  "show-year-picker": v(p)[R],
6187
- year: v(c)(R),
6187
+ year: v(d)(R),
6188
6188
  "is-disabled": (V) => v(u)(R, V),
6189
6189
  onHandleYear: (V) => v(T)(R, V),
6190
6190
  onYearSelect: (V) => v(P)(V, R),
@@ -6218,18 +6218,18 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6218
6218
  }), gv = (e, t) => {
6219
6219
  const a = () => {
6220
6220
  e.isTextInputDate && (u.value = Oe(re(e.startDate)));
6221
- }, { modelValue: n } = Ln(e, t, a), r = E(null), { defaultedHighlight: l, defaultedMultiDates: o, defaultedFilters: i, defaultedRange: s, propDates: c } = tt(e), u = E();
6221
+ }, { modelValue: n } = Ln(e, t, a), r = E(null), { defaultedHighlight: l, defaultedMultiDates: o, defaultedFilters: i, defaultedRange: s, propDates: d } = tt(e), u = E();
6222
6222
  Ye(() => {
6223
6223
  e.startDate && (n.value && e.focusStartDate || !n.value) && (u.value = Oe(re(e.startDate)));
6224
6224
  });
6225
- const d = (k) => Array.isArray(n.value) ? n.value.some((_) => Oe(_) === k) : n.value ? Oe(n.value) === k : !1, f = (k) => s.value.enabled && Array.isArray(n.value) ? Pn(n.value, r.value, b(k)) : !1, p = (k) => c.value.allowedDates instanceof Map ? c.value.allowedDates.size ? c.value.allowedDates.has(`${k}`) : !1 : !0, h = (k) => c.value.disabledDates instanceof Map ? c.value.disabledDates.size ? c.value.disabledDates.has(`${k}`) : !1 : !0, g = O(() => un(Cl(e.yearRange, e.locale, e.reverseYears), (k) => {
6226
- const _ = d(k.value), w = Mn(
6225
+ const c = (k) => Array.isArray(n.value) ? n.value.some((_) => Oe(_) === k) : n.value ? Oe(n.value) === k : !1, f = (k) => s.value.enabled && Array.isArray(n.value) ? On(n.value, r.value, b(k)) : !1, p = (k) => d.value.allowedDates instanceof Map ? d.value.allowedDates.size ? d.value.allowedDates.has(`${k}`) : !1 : !0, h = (k) => d.value.disabledDates instanceof Map ? d.value.disabledDates.size ? d.value.disabledDates.has(`${k}`) : !1 : !0, g = O(() => un(Cl(e.yearRange, e.locale, e.reverseYears), (k) => {
6226
+ const _ = c(k.value), w = Pn(
6227
6227
  k.value,
6228
- dn(c.value.minDate),
6229
- dn(c.value.maxDate)
6228
+ dn(d.value.minDate),
6229
+ dn(d.value.maxDate)
6230
6230
  ) || i.value.years.includes(k.value) || !p(k.value) || h(k.value), P = f(k.value) && !_, T = Rl(l.value, k.value);
6231
6231
  return { active: _, disabled: w, isBetween: P, highlighted: T };
6232
- })), b = (k) => aa(Ht(Tn(/* @__PURE__ */ new Date())), k);
6232
+ })), b = (k) => aa(Ht(Mn(/* @__PURE__ */ new Date())), k);
6233
6233
  return {
6234
6234
  groupedYears: g,
6235
6235
  modelValue: n,
@@ -6240,7 +6240,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6240
6240
  selectYear: (k) => {
6241
6241
  var _;
6242
6242
  if (t("update-month-year", { instance: 0, year: k }), o.value.enabled)
6243
- return n.value ? Array.isArray(n.value) && (((_ = n.value) == null ? void 0 : _.map((w) => Oe(w))).includes(k) ? n.value = n.value.filter((w) => Oe(w) !== k) : n.value.push(aa(wt(re()), k))) : n.value = [aa(wt(Tn(re())), k)], t("auto-apply", !0);
6243
+ return n.value ? Array.isArray(n.value) && (((_ = n.value) == null ? void 0 : _.map((w) => Oe(w))).includes(k) ? n.value = n.value.filter((w) => Oe(w) !== k) : n.value.push(aa(wt(re()), k))) : n.value = [aa(wt(Mn(re())), k)], t("auto-apply", !0);
6244
6244
  s.value.enabled ? (n.value = Il(n, b(k), t), et().then(() => {
6245
6245
  yr(n.value, t, e.autoApply, e.modelAuto);
6246
6246
  })) : (n.value = b(k), t("auto-apply"));
@@ -6263,35 +6263,35 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6263
6263
  "update-month-year"
6264
6264
  ],
6265
6265
  setup(e, { expose: t, emit: a }) {
6266
- const n = a, r = e, { groupedYears: l, modelValue: o, focusYear: i, selectYear: s, setHoverValue: c } = gv(r, n), { defaultedConfig: u } = tt(r);
6266
+ const n = a, r = e, { groupedYears: l, modelValue: o, focusYear: i, selectYear: s, setHoverValue: d } = gv(r, n), { defaultedConfig: u } = tt(r);
6267
6267
  return t({ getSidebarProps: () => ({
6268
6268
  modelValue: o,
6269
6269
  selectYear: s
6270
- }) }), (d, f) => (y(), D("div", null, [
6271
- d.$slots["top-extra"] ? I(d.$slots, "top-extra", {
6270
+ }) }), (c, f) => (y(), D("div", null, [
6271
+ c.$slots["top-extra"] ? I(c.$slots, "top-extra", {
6272
6272
  key: 0,
6273
- value: d.internalModelValue
6273
+ value: c.internalModelValue
6274
6274
  }) : L("", !0),
6275
- d.$slots["month-year"] ? I(d.$slots, "month-year", Xe(Se({ key: 1 }, {
6275
+ c.$slots["month-year"] ? I(c.$slots, "month-year", Xe(Se({ key: 1 }, {
6276
6276
  years: v(l),
6277
6277
  selectYear: v(s)
6278
6278
  }))) : (y(), te(En, {
6279
6279
  key: 2,
6280
6280
  items: v(l),
6281
- "is-last": d.autoApply && !v(u).keepActionRow,
6281
+ "is-last": c.autoApply && !v(u).keepActionRow,
6282
6282
  height: v(u).modeHeight,
6283
- config: d.config,
6284
- "no-overlay-focus": !!(d.noOverlayFocus || d.textInput),
6283
+ config: c.config,
6284
+ "no-overlay-focus": !!(c.noOverlayFocus || c.textInput),
6285
6285
  "focus-value": v(i),
6286
6286
  type: "year",
6287
6287
  "use-relative": "",
6288
6288
  onSelected: v(s),
6289
- onHoverValue: v(c)
6289
+ onHoverValue: v(d)
6290
6290
  }, mt({ _: 2 }, [
6291
- d.$slots["year-overlay-value"] ? {
6291
+ c.$slots["year-overlay-value"] ? {
6292
6292
  name: "item",
6293
6293
  fn: q(({ item: p }) => [
6294
- I(d.$slots, "year-overlay-value", {
6294
+ I(c.$slots, "year-overlay-value", {
6295
6295
  text: p.text,
6296
6296
  value: p.value
6297
6297
  })
@@ -6335,9 +6335,9 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6335
6335
  const n = a, r = e, { setTimePickerElements: l, setTimePickerBackRef: o } = Sa(), {
6336
6336
  defaultedAriaLabels: i,
6337
6337
  defaultedTransitions: s,
6338
- defaultedFilters: c,
6338
+ defaultedFilters: d,
6339
6339
  defaultedConfig: u,
6340
- defaultedRange: d,
6340
+ defaultedRange: c,
6341
6341
  defaultedMultiCalendars: f
6342
6342
  } = tt(r), { transitionName: p, showTransition: h } = In(s), g = va({
6343
6343
  hours: !1,
@@ -6354,8 +6354,8 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6354
6354
  milliseconds: 0
6355
6355
  }), M = O(
6356
6356
  () => ($) => Q($, r[$]) || F($, r[$])
6357
- ), x = O(() => ({ hours: r.hours, minutes: r.minutes, seconds: r.seconds })), F = ($, se) => d.value.enabled && !d.value.disableTimeRangeValidation ? !r.validateTime($, se) : !1, R = ($, se) => {
6358
- if (d.value.enabled && !d.value.disableTimeRangeValidation) {
6357
+ ), x = O(() => ({ hours: r.hours, minutes: r.minutes, seconds: r.seconds })), F = ($, se) => c.value.enabled && !c.value.disableTimeRangeValidation ? !r.validateTime($, se) : !1, R = ($, se) => {
6358
+ if (c.value.enabled && !c.value.disableTimeRangeValidation) {
6359
6359
  const fe = se ? +r[`${$}Increment`] : -+r[`${$}Increment`], K = r[$] + fe;
6360
6360
  return !r.validateTime($, K);
6361
6361
  }
@@ -6371,7 +6371,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6371
6371
  dp__time_col_sec_with_button: r.enableSeconds && !r.is24
6372
6372
  })
6373
6373
  ), N = O(
6374
- () => r.timePickerInline && d.value.enabled && !f.value.count
6374
+ () => r.timePickerInline && c.value.enabled && !f.value.count
6375
6375
  ), A = O(() => {
6376
6376
  const $ = [{ type: "hours" }];
6377
6377
  return r.enableMinutes && $.push({ type: "", separator: !0 }, {
@@ -6394,7 +6394,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6394
6394
  const se = r.is24 ? 24 : 12, fe = $ === "hours" ? se : 60, K = +r[`${$}GridIncrement`], _e = $ === "hours" && !r.is24 ? K : 0, $e = [];
6395
6395
  for (let xe = _e; xe < fe; xe += K)
6396
6396
  $e.push({ value: r.is24 ? xe : de(xe, $), text: xe < 10 ? `0${xe}` : `${xe}` });
6397
- return $ === "hours" && !r.is24 && $e.unshift({ value: b.value === "PM" ? 12 : 0, text: "12" }), un($e, (xe) => ({ active: !1, disabled: c.value.times[$].includes(xe.value) || !W(xe.value, $) || Q($, xe.value) || F($, xe.value) }));
6397
+ return $ === "hours" && !r.is24 && $e.unshift({ value: b.value === "PM" ? 12 : 0, text: "12" }), un($e, (xe) => ({ active: !1, disabled: d.value.times[$].includes(xe.value) || !W(xe.value, $) || Q($, xe.value) || F($, xe.value) }));
6398
6398
  }, we = ($) => $ >= 0 ? $ : 59, C = ($) => $ >= 0 ? $ : 23, W = ($, se) => {
6399
6399
  const fe = r.minTime ? T(Rr(r.minTime)) : null, K = r.maxTime ? T(Rr(r.maxTime)) : null, _e = T(
6400
6400
  Rr(
@@ -6582,7 +6582,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6582
6582
  }, mt({
6583
6583
  "button-icon": q(() => [
6584
6584
  $.$slots["clock-icon"] ? I($.$slots, "clock-icon", { key: 0 }) : L("", !0),
6585
- $.$slots["clock-icon"] ? L("", !0) : (y(), te(ia($.timePickerInline ? v(mn) : v(Ml)), { key: 1 }))
6585
+ $.$slots["clock-icon"] ? L("", !0) : (y(), te(ia($.timePickerInline ? v(pn) : v(Ml)), { key: 1 }))
6586
6586
  ]),
6587
6587
  _: 2
6588
6588
  }, [
@@ -6640,7 +6640,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6640
6640
  "am-pm-change"
6641
6641
  ],
6642
6642
  setup(e, { expose: t, emit: a }) {
6643
- const n = a, r = e, { buildMatrix: l, setTimePicker: o } = Sa(), i = pt(), { defaultedTransitions: s, defaultedAriaLabels: c, defaultedTextInput: u, defaultedConfig: d, defaultedRange: f } = tt(r), { transitionName: p, showTransition: h } = In(s), { hideNavigationButtons: g } = gr(), b = E(null), k = E(null), _ = E([]), w = E(null), P = E(!1);
6643
+ const n = a, r = e, { buildMatrix: l, setTimePicker: o } = Sa(), i = pt(), { defaultedTransitions: s, defaultedAriaLabels: d, defaultedTextInput: u, defaultedConfig: c, defaultedRange: f } = tt(r), { transitionName: p, showTransition: h } = In(s), { hideNavigationButtons: g } = gr(), b = E(null), k = E(null), _ = E([]), w = E(null), P = E(!1);
6644
6644
  Ye(() => {
6645
6645
  n("mount"), !r.timePicker && r.arrowNavigation ? l([vt(b.value)], "time") : o(!0, r.timePicker);
6646
6646
  });
@@ -6663,7 +6663,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6663
6663
  }, V = O(() => ({
6664
6664
  dp__btn: !0,
6665
6665
  dp__button: !0,
6666
- dp__button_bottom: r.autoApply && !d.value.keepActionRow
6666
+ dp__button_bottom: r.autoApply && !c.value.keepActionRow
6667
6667
  })), G = Ct(i, "timePicker"), le = (Q, de, z) => f.value.enabled ? de === 0 ? [Q, F.value[1][z]] : [F.value[0][z], Q] : Q, me = (Q) => {
6668
6668
  n("update:hours", Q);
6669
6669
  }, S = (Q) => {
@@ -6692,7 +6692,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6692
6692
  ref: b,
6693
6693
  type: "button",
6694
6694
  class: ye({ ...V.value, "dp--hidden-el": M.value }),
6695
- "aria-label": (z = v(c)) == null ? void 0 : z.openTimePicker,
6695
+ "aria-label": (z = v(d)) == null ? void 0 : z.openTimePicker,
6696
6696
  tabindex: Q.noOverlayFocus ? void 0 : 0,
6697
6697
  "data-test-id": "open-time-picker-btn",
6698
6698
  onKeydown: de[0] || (de[0] = (we) => v(Tt)(we, () => R(!0))),
@@ -6720,8 +6720,8 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6720
6720
  "dp--overlay-absolute": !r.timePicker && !Q.timePickerInline,
6721
6721
  "dp--overlay-relative": r.timePicker
6722
6722
  }),
6723
- style: Ve(Q.timePicker ? { height: `${v(d).modeHeight}px` } : void 0),
6724
- "aria-label": (we = v(c)) == null ? void 0 : we.timePicker,
6723
+ style: Ve(Q.timePicker ? { height: `${v(c).modeHeight}px` } : void 0),
6724
+ "aria-label": (we = v(d)) == null ? void 0 : we.timePicker,
6725
6725
  tabindex: Q.timePickerInline ? void 0 : 0
6726
6726
  }, [
6727
6727
  U("div", {
@@ -6784,13 +6784,13 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6784
6784
  ref: k,
6785
6785
  type: "button",
6786
6786
  class: ye({ ...V.value, "dp--hidden-el": P.value }),
6787
- "aria-label": (C = v(c)) == null ? void 0 : C.closeTimePicker,
6787
+ "aria-label": (C = v(d)) == null ? void 0 : C.closeTimePicker,
6788
6788
  tabindex: "0",
6789
6789
  onKeydown: de[3] || (de[3] = (W) => v(Tt)(W, () => R(!1))),
6790
6790
  onClick: de[4] || (de[4] = (W) => R(!1))
6791
6791
  }, [
6792
6792
  Q.$slots["calendar-icon"] ? I(Q.$slots, "calendar-icon", { key: 0 }) : L("", !0),
6793
- Q.$slots["calendar-icon"] ? L("", !0) : (y(), te(v(mn), { key: 1 }))
6793
+ Q.$slots["calendar-icon"] ? L("", !0) : (y(), te(v(pn), { key: 1 }))
6794
6794
  ], 42, Cv)), [
6795
6795
  [Xn, !v(g)(Q.hideNavigation, "time")]
6796
6796
  ]) : L("", !0)
@@ -6806,11 +6806,11 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6806
6806
  }), Gi = (e, t, a, n) => {
6807
6807
  const { defaultedRange: r } = tt(e), l = (w, P) => Array.isArray(t[w]) ? t[w][P] : t[w], o = (w) => e.enableSeconds ? Array.isArray(t.seconds) ? t.seconds[w] : t.seconds : 0, i = (w, P) => w ? P !== void 0 ? xa(w, l("hours", P), l("minutes", P), o(P)) : xa(w, t.hours, t.minutes, o()) : Pi(re(), o(P)), s = (w, P) => {
6808
6808
  t[w] = P;
6809
- }, c = O(() => e.modelAuto && r.value.enabled ? Array.isArray(a.value) ? a.value.length > 1 : !1 : r.value.enabled), u = (w, P) => {
6809
+ }, d = O(() => e.modelAuto && r.value.enabled ? Array.isArray(a.value) ? a.value.length > 1 : !1 : r.value.enabled), u = (w, P) => {
6810
6810
  const T = Object.fromEntries(
6811
6811
  Object.keys(t).map((M) => M === w ? [M, P] : [M, t[M]].slice())
6812
6812
  );
6813
- if (c.value && !r.value.disableTimeRangeValidation) {
6813
+ if (d.value && !r.value.disableTimeRangeValidation) {
6814
6814
  const M = (F) => a.value ? xa(
6815
6815
  a.value[F],
6816
6816
  T.hours[F],
@@ -6820,14 +6820,14 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6820
6820
  return !(Le(M(0), M(1)) && (Wa(M(0), x(1)) || on(M(1), x(0))));
6821
6821
  }
6822
6822
  return !0;
6823
- }, d = (w, P) => {
6823
+ }, c = (w, P) => {
6824
6824
  u(w, P) && (s(w, P), n && n());
6825
6825
  }, f = (w) => {
6826
- d("hours", w);
6826
+ c("hours", w);
6827
6827
  }, p = (w) => {
6828
- d("minutes", w);
6828
+ c("minutes", w);
6829
6829
  }, h = (w) => {
6830
- d("seconds", w);
6830
+ c("seconds", w);
6831
6831
  }, g = (w, P, T, M) => {
6832
6832
  P && f(w), !P && !T && p(w), T && h(w), a.value && M(a.value);
6833
6833
  }, b = (w) => {
@@ -6868,7 +6868,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6868
6868
  }, Sv = (e, t) => {
6869
6869
  const a = () => {
6870
6870
  e.isTextInputDate && P();
6871
- }, { modelValue: n, time: r } = Ln(e, t, a), { defaultedStartTime: l, defaultedRange: o, defaultedTz: i } = tt(e), { updateTimeValues: s, getSetDateTime: c, setTime: u, assignStartTime: d, disabledTimesConfig: f, validateTime: p } = Gi(e, r, n, h);
6871
+ }, { modelValue: n, time: r } = Ln(e, t, a), { defaultedStartTime: l, defaultedRange: o, defaultedTz: i } = tt(e), { updateTimeValues: s, getSetDateTime: d, setTime: u, assignStartTime: c, disabledTimesConfig: f, validateTime: p } = Gi(e, r, n, h);
6872
6872
  function h() {
6873
6873
  t("update-flow-step");
6874
6874
  }
@@ -6889,11 +6889,11 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6889
6889
  if (o.value.enabled) {
6890
6890
  const [M, x] = b();
6891
6891
  n.value = [
6892
- Pt(c(M, 0), i.value.timezone),
6893
- Pt(c(x, 1), i.value.timezone)
6892
+ Pt(d(M, 0), i.value.timezone),
6893
+ Pt(d(x, 1), i.value.timezone)
6894
6894
  ];
6895
6895
  } else
6896
- n.value = Pt(c(b()), i.value.timezone);
6896
+ n.value = Pt(d(b()), i.value.timezone);
6897
6897
  }, _ = (M) => Array.isArray(M) ? [Va(re(M[0])), Va(re(M[1]))] : [Va(M ?? re())], w = (M, x, F) => {
6898
6898
  u("hours", M), u("minutes", x), u("seconds", e.enableSeconds ? F : 0);
6899
6899
  }, P = () => {
@@ -6906,10 +6906,10 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6906
6906
  };
6907
6907
  Ye(() => {
6908
6908
  if (!e.shadow)
6909
- return d(l.value), n.value ? P() : k();
6909
+ return c(l.value), n.value ? P() : k();
6910
6910
  });
6911
6911
  const T = () => {
6912
- Array.isArray(n.value) ? n.value = n.value.map((M, x) => M && c(M, x)) : n.value = c(n.value), t("time-update");
6912
+ Array.isArray(n.value) ? n.value = n.value.map((M, x) => M && d(M, x)) : n.value = d(n.value), t("time-update");
6913
6913
  };
6914
6914
  return {
6915
6915
  modelValue: n,
@@ -6938,13 +6938,13 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6938
6938
  "overlay-toggle"
6939
6939
  ],
6940
6940
  setup(e, { expose: t, emit: a }) {
6941
- const n = a, r = e, l = pt(), o = Ct(l, "timePicker"), i = E(null), { time: s, modelValue: c, disabledTimesConfig: u, updateTime: d, validateTime: f } = Sv(r, n);
6941
+ const n = a, r = e, l = pt(), o = Ct(l, "timePicker"), i = E(null), { time: s, modelValue: d, disabledTimesConfig: u, updateTime: c, validateTime: f } = Sv(r, n);
6942
6942
  return Ye(() => {
6943
6943
  r.shadow || n("mount", null);
6944
6944
  }), t({ getSidebarProps: () => ({
6945
- modelValue: c,
6945
+ modelValue: d,
6946
6946
  time: s,
6947
- updateTime: d
6947
+ updateTime: c
6948
6948
  }), toggleTimePicker: (p, h = !1, g = "") => {
6949
6949
  var b;
6950
6950
  (b = i.value) == null || b.toggleTimePicker(p, h, g);
@@ -6964,9 +6964,9 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6964
6964
  "internal-model-value": p.internalModelValue,
6965
6965
  "disabled-times-config": v(u),
6966
6966
  "validate-time": v(f),
6967
- "onUpdate:hours": h[0] || (h[0] = (g) => v(d)(g)),
6968
- "onUpdate:minutes": h[1] || (h[1] = (g) => v(d)(g, !1)),
6969
- "onUpdate:seconds": h[2] || (h[2] = (g) => v(d)(g, !1, !0)),
6967
+ "onUpdate:hours": h[0] || (h[0] = (g) => v(c)(g)),
6968
+ "onUpdate:minutes": h[1] || (h[1] = (g) => v(c)(g, !1)),
6969
+ "onUpdate:seconds": h[2] || (h[2] = (g) => v(c)(g, !1, !0)),
6970
6970
  onAmPmChange: h[3] || (h[3] = (g) => p.$emit("am-pm-change", g)),
6971
6971
  onResetFlow: h[4] || (h[4] = (g) => p.$emit("reset-flow")),
6972
6972
  onOverlayClosed: h[5] || (h[5] = (g) => p.$emit("overlay-toggle", { open: !1, overlay: g })),
@@ -7006,9 +7006,9 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7006
7006
  defaultedAriaLabels: o,
7007
7007
  defaultedMultiCalendars: i,
7008
7008
  defaultedFilters: s,
7009
- defaultedConfig: c,
7009
+ defaultedConfig: d,
7010
7010
  defaultedHighlight: u,
7011
- propDates: d,
7011
+ propDates: c,
7012
7012
  defaultedUI: f
7013
7013
  } = tt(r), { transitionName: p, showTransition: h } = In(l), { buildMatrix: g } = Sa(), { handleMonthYearChange: b, isDisabled: k, updateMonthYear: _ } = lv(r, n), { showLeftIcon: w, showRightIcon: P } = gr(), T = E(!1), M = E(!1), x = E(!1), F = E([null, null, null, null]);
7014
7014
  Ye(() => {
@@ -7028,17 +7028,17 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7028
7028
  updateMonthYear: _,
7029
7029
  toggle: C === Yt.month ? Z : ae
7030
7030
  })), me = O(() => r.months.find((W) => W.value === r.month) || { text: "", value: 0 }), S = O(() => un(r.months, (C) => {
7031
- const W = r.month === C.value, X = Mn(
7031
+ const W = r.month === C.value, X = Pn(
7032
7032
  C.value,
7033
- Li(r.year, d.value.minDate),
7034
- Ni(r.year, d.value.maxDate)
7033
+ Li(r.year, c.value.minDate),
7034
+ Ni(r.year, c.value.maxDate)
7035
7035
  ) || s.value.months.includes(C.value), ee = Wi(u.value, C.value, r.year);
7036
7036
  return { active: W, disabled: X, highlighted: ee };
7037
7037
  })), N = O(() => un(r.years, (C) => {
7038
- const W = r.year === C.value, X = Mn(
7038
+ const W = r.year === C.value, X = Pn(
7039
7039
  C.value,
7040
- dn(d.value.minDate),
7041
- dn(d.value.maxDate)
7040
+ dn(c.value.minDate),
7041
+ dn(c.value.maxDate)
7042
7042
  ) || s.value.years.includes(C.value), ee = Rl(u.value, C.value);
7043
7043
  return { active: W, disabled: X, highlighted: ee };
7044
7044
  })), A = (C, W, X) => {
@@ -7103,7 +7103,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7103
7103
  I(C.$slots, "top-extra", { value: C.internalModelValue })
7104
7104
  ])) : L("", !0),
7105
7105
  U("div", Lv, [
7106
- v(w)(v(i), e.instance) && !C.vertical ? (y(), te(xn, {
7106
+ v(w)(v(i), e.instance) && !C.vertical ? (y(), te(Tn, {
7107
7107
  key: 0,
7108
7108
  "aria-label": (X = v(o)) == null ? void 0 : X.prevMonth,
7109
7109
  disabled: v(k)(!1),
@@ -7156,7 +7156,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7156
7156
  items: j.items,
7157
7157
  "arrow-navigation": C.arrowNavigation,
7158
7158
  "hide-navigation": C.hideNavigation,
7159
- "is-last": C.autoApply && !v(c).keepActionRow,
7159
+ "is-last": C.autoApply && !v(d).keepActionRow,
7160
7160
  "skip-button-ref": !1,
7161
7161
  config: C.config,
7162
7162
  type: j.type,
@@ -7171,7 +7171,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7171
7171
  }, mt({
7172
7172
  "button-icon": q(() => [
7173
7173
  C.$slots["calendar-icon"] ? I(C.$slots, "calendar-icon", { key: 0 }) : L("", !0),
7174
- C.$slots["calendar-icon"] ? L("", !0) : (y(), te(v(mn), { key: 1 }))
7174
+ C.$slots["calendar-icon"] ? L("", !0) : (y(), te(v(pn), { key: 1 }))
7175
7175
  ]),
7176
7176
  _: 2
7177
7177
  }, [
@@ -7207,7 +7207,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7207
7207
  }, 1032, ["name", "css"])
7208
7208
  ], 64))), 128))
7209
7209
  ], 2),
7210
- v(w)(v(i), e.instance) && C.vertical ? (y(), te(xn, {
7210
+ v(w)(v(i), e.instance) && C.vertical ? (y(), te(Tn, {
7211
7211
  key: 1,
7212
7212
  "aria-label": (m = v(o)) == null ? void 0 : m.prevMonth,
7213
7213
  "el-name": "action-prev",
@@ -7221,7 +7221,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7221
7221
  ]),
7222
7222
  _: 3
7223
7223
  }, 8, ["aria-label", "disabled", "class"])) : L("", !0),
7224
- v(P)(v(i), e.instance) ? (y(), te(xn, {
7224
+ v(P)(v(i), e.instance) ? (y(), te(Tn, {
7225
7225
  key: 2,
7226
7226
  ref: "rightIcon",
7227
7227
  "el-name": "action-next",
@@ -7280,9 +7280,9 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7280
7280
  defaultedTransitions: o,
7281
7281
  defaultedConfig: i,
7282
7282
  defaultedAriaLabels: s,
7283
- defaultedMultiCalendars: c,
7283
+ defaultedMultiCalendars: d,
7284
7284
  defaultedWeekNumbers: u,
7285
- defaultedMultiDates: d,
7285
+ defaultedMultiDates: c,
7286
7286
  defaultedUI: f
7287
7287
  } = tt(r), p = E(null), h = E({
7288
7288
  bottom: "",
@@ -7313,7 +7313,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7313
7313
  };
7314
7314
  }), me = O(() => (j) => Le(j, p.value)), S = O(() => ({
7315
7315
  dp__calendar: !0,
7316
- dp__calendar_next: c.value.count > 0 && r.instance !== 0
7316
+ dp__calendar_next: d.value.count > 0 && r.instance !== 0
7317
7317
  })), N = O(() => (j) => r.hideOffsetDates ? j.current : !0), A = async (j, Ce) => {
7318
7318
  const { width: ne, height: ce } = j.getBoundingClientRect();
7319
7319
  p.value = Ce.value;
@@ -7333,7 +7333,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7333
7333
  fe && ((ce = j.marker) != null && ce.customPosition && (se = ($ = j.marker) == null ? void 0 : $.tooltip) != null && se.length ? h.value = j.marker.customPosition(fe) : await A(fe, j), n("tooltip-open", j.marker));
7334
7334
  }, ae = async (j, Ce, ne) => {
7335
7335
  var ce, $;
7336
- if (M.value && d.value.enabled && d.value.dragSelect)
7336
+ if (M.value && c.value.enabled && c.value.dragSelect)
7337
7337
  return n("select-date", j);
7338
7338
  if (n("set-hover-date", j), ($ = (ce = j.marker) == null ? void 0 : ce.tooltip) != null && $.length) {
7339
7339
  if (r.hideOffsetDates && !j.current) return;
@@ -7358,11 +7358,11 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7358
7358
  const Ce = j[0];
7359
7359
  return u.value.hideOnOffsetDates ? j.some((ne) => ne.current) ? ee(Ce) : "" : ee(Ce);
7360
7360
  }, H = (j, Ce, ne = !0) => {
7361
- !ne && Sf() || (!d.value.enabled || i.value.allowPreventDefault) && (Da(j, i.value), n("select-date", Ce));
7361
+ !ne && Sf() || (!c.value.enabled || i.value.allowPreventDefault) && (Da(j, i.value), n("select-date", Ce));
7362
7362
  }, ve = (j) => {
7363
7363
  Da(j, i.value);
7364
7364
  }, Fe = (j) => {
7365
- d.value.enabled && d.value.dragSelect ? (M.value = !0, n("select-date", j)) : d.value.enabled && n("select-date", j);
7365
+ c.value.enabled && c.value.dragSelect ? (M.value = !0, n("select-date", j)) : c.value.enabled && n("select-date", j);
7366
7366
  };
7367
7367
  return t({ triggerTransition: V }), (j, Ce) => (y(), D("div", {
7368
7368
  class: ye(S.value)
@@ -7508,7 +7508,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7508
7508
  ], 2));
7509
7509
  }
7510
7510
  }), Do = (e) => Array.isArray(e), Uv = (e, t, a, n) => {
7511
- const r = E([]), l = E(/* @__PURE__ */ new Date()), o = E(), i = () => z(e.isTextInputDate), { modelValue: s, calendars: c, time: u, today: d } = Ln(e, t, i), {
7511
+ const r = E([]), l = E(/* @__PURE__ */ new Date()), o = E(), i = () => z(e.isTextInputDate), { modelValue: s, calendars: d, time: u, today: c } = Ln(e, t, i), {
7512
7512
  defaultedMultiCalendars: f,
7513
7513
  defaultedStartTime: p,
7514
7514
  defaultedRange: h,
@@ -7517,12 +7517,12 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7517
7517
  propDates: k,
7518
7518
  defaultedMultiDates: _
7519
7519
  } = tt(e), { validateMonthYearInRange: w, isDisabled: P, isDateRangeAllowed: T, checkMinMaxRange: M } = Ba(e), { updateTimeValues: x, getSetDateTime: F, setTime: R, assignStartTime: V, validateTime: G, disabledTimesConfig: le } = Gi(e, u, s, n), me = O(
7520
- () => (Y) => c.value[Y] ? c.value[Y].month : 0
7520
+ () => (Y) => d.value[Y] ? d.value[Y].month : 0
7521
7521
  ), S = O(
7522
- () => (Y) => c.value[Y] ? c.value[Y].year : 0
7522
+ () => (Y) => d.value[Y] ? d.value[Y].year : 0
7523
7523
  ), N = (Y) => !g.value.keepViewOnOffsetClick || Y ? !0 : !o.value, A = (Y, ue, Me, Ee = !1) => {
7524
7524
  var J, pe;
7525
- N(Ee) && (c.value[Y] || (c.value[Y] = { month: 0, year: 0 }), c.value[Y].month = go(ue) ? (J = c.value[Y]) == null ? void 0 : J.month : ue, c.value[Y].year = go(Me) ? (pe = c.value[Y]) == null ? void 0 : pe.year : Me);
7525
+ N(Ee) && (d.value[Y] || (d.value[Y] = { month: 0, year: 0 }), d.value[Y].month = go(ue) ? (J = d.value[Y]) == null ? void 0 : J.month : ue, d.value[Y].year = go(Me) ? (pe = d.value[Y]) == null ? void 0 : pe.year : Me);
7526
7526
  }, Z = () => {
7527
7527
  e.autoApply && t("select-date");
7528
7528
  }, ae = () => {
@@ -7545,7 +7545,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7545
7545
  if ((!f.value.count || !f.value.static || ue) && A(0, Ie(Y), Oe(Y)), f.value.count && (!s.value || we() || !f.value.solo) && (!f.value.solo || ue))
7546
7546
  for (let Me = 1; Me < f.value.count; Me++) {
7547
7547
  const Ee = Ue(re(), { month: me.value(Me - 1), year: S.value(Me - 1) }), J = ui(Ee, { months: 1 });
7548
- c.value[Me] = { month: Ie(J), year: Oe(J) };
7548
+ d.value[Me] = { month: Ie(J), year: Oe(J) };
7549
7549
  }
7550
7550
  }, W = (Y, ue) => {
7551
7551
  C(Y), R("hours", pa(Y)), R("minutes", Oa(Y)), R("seconds", ln(Y)), f.value.count && ue && j();
@@ -7702,7 +7702,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7702
7702
  if (P(Y.value) || !Y.current && e.hideOffsetDates) return t("invalid-date", Y.value);
7703
7703
  if (o.value = JSON.parse(JSON.stringify(Y)), !h.value.enabled) return xe(Y);
7704
7704
  Do(u.hours) && Do(u.minutes) && !_.value.enabled && (Dt(Y, ue), Lt());
7705
- }, yn = (Y, ue) => {
7705
+ }, gn = (Y, ue) => {
7706
7706
  var Me;
7707
7707
  A(Y, ue.month, ue.year, !0), f.value.count && !f.value.solo && Fe(Y), t("update-month-year", { instance: Y, month: ue.month, year: ue.year }), a(f.value.solo ? Y : void 0);
7708
7708
  const Ee = (Me = e.flow) != null && Me.length ? e.flow[e.flowStep] : void 0;
@@ -7729,13 +7729,13 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7729
7729
  t("time-update");
7730
7730
  }, Mr = () => Array.isArray(s.value) && s.value.length ? s.value[s.value.length - 1] : null;
7731
7731
  return {
7732
- calendars: c,
7732
+ calendars: d,
7733
7733
  modelValue: s,
7734
7734
  month: me,
7735
7735
  year: S,
7736
7736
  time: u,
7737
7737
  disabledTimesConfig: le,
7738
- today: d,
7738
+ today: c,
7739
7739
  validateTime: G,
7740
7740
  getCalendarDays: $e,
7741
7741
  getMarker: se,
@@ -7743,7 +7743,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7743
7743
  handleSwipe: $,
7744
7744
  handleArrow: ce,
7745
7745
  selectDate: Ra,
7746
- updateMonthYear: yn,
7746
+ updateMonthYear: gn,
7747
7747
  presetDate: Nt,
7748
7748
  selectCurrentDate: ga,
7749
7749
  updateTime: (Y, ue = !0, Me = !1) => {
@@ -7787,9 +7787,9 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7787
7787
  month: o,
7788
7788
  year: i,
7789
7789
  modelValue: s,
7790
- time: c,
7790
+ time: d,
7791
7791
  disabledTimesConfig: u,
7792
- today: d,
7792
+ today: c,
7793
7793
  validateTime: f,
7794
7794
  getCalendarDays: p,
7795
7795
  getMarker: h,
@@ -7846,7 +7846,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7846
7846
  }, H = (ne, ce) => {
7847
7847
  var $;
7848
7848
  if (!r.range) {
7849
- const se = s.value ? s.value : d, fe = ce ? new Date(ce) : se, K = ne ? jt(fe, { weekStartsOn: 1 }) : hi(fe, { weekStartsOn: 1 });
7849
+ const se = s.value ? s.value : c, fe = ce ? new Date(ce) : se, K = ne ? jt(fe, { weekStartsOn: 1 }) : hi(fe, { weekStartsOn: 1 });
7850
7850
  _({
7851
7851
  value: K,
7852
7852
  current: Ie(fe) === o.value(0),
@@ -7877,7 +7877,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7877
7877
  modelValue: s,
7878
7878
  month: o,
7879
7879
  year: i,
7880
- time: c,
7880
+ time: d,
7881
7881
  updateTime: M,
7882
7882
  updateMonthYear: w,
7883
7883
  selectDate: _,
@@ -7948,14 +7948,14 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7948
7948
  _: 3
7949
7949
  }, 8, ["multi-calendars", "collapse", "is-mobile"]),
7950
7950
  ne.enableTimePicker ? (y(), D("div", Qv, [
7951
- ne.$slots["time-picker"] ? I(ne.$slots, "time-picker", Xe(Se({ key: 0 }, { time: v(c), updateTime: v(M) }))) : (y(), te(Ki, Se({
7951
+ ne.$slots["time-picker"] ? I(ne.$slots, "time-picker", Xe(Se({ key: 0 }, { time: v(d), updateTime: v(M) }))) : (y(), te(Ki, Se({
7952
7952
  key: 1,
7953
7953
  ref_key: "timePickerRef",
7954
7954
  ref: A
7955
7955
  }, ne.$props, {
7956
- hours: v(c).hours,
7957
- minutes: v(c).minutes,
7958
- seconds: v(c).seconds,
7956
+ hours: v(d).hours,
7957
+ minutes: v(d).minutes,
7958
+ seconds: v(d).seconds,
7959
7959
  "internal-model-value": ne.internalModelValue,
7960
7960
  "disabled-times-config": v(u),
7961
7961
  "validate-time": v(f),
@@ -7986,8 +7986,8 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7986
7986
  defaultedRange: o,
7987
7987
  propDates: i,
7988
7988
  defaultedFilters: s,
7989
- defaultedMultiDates: c
7990
- } = tt(e), { modelValue: u, year: d, month: f, calendars: p } = Ln(e, t), { isDisabled: h } = Ba(e), { selectYear: g, groupedYears: b, showYearPicker: k, isDisabled: _, toggleYearPicker: w, handleYearSelect: P, handleYear: T } = Qi({
7989
+ defaultedMultiDates: d
7990
+ } = tt(e), { modelValue: u, year: c, month: f, calendars: p } = Ln(e, t), { isDisabled: h } = Ba(e), { selectYear: g, groupedYears: b, showYearPicker: k, isDisabled: _, toggleYearPicker: w, handleYearSelect: P, handleYear: T } = Qi({
7991
7991
  modelValue: u,
7992
7992
  multiCalendars: n,
7993
7993
  range: o,
@@ -7995,7 +7995,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7995
7995
  calendars: p,
7996
7996
  propDates: i,
7997
7997
  month: f,
7998
- year: d,
7998
+ year: c,
7999
7999
  filters: s,
8000
8000
  props: e,
8001
8001
  emit: t
@@ -8003,15 +8003,15 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8003
8003
  if (o.value.enabled) {
8004
8004
  if (Array.isArray(u.value)) {
8005
8005
  const A = Le(N, u.value[0]) || Le(N, u.value[1]);
8006
- return Pn(u.value, a.value, N) && !A;
8006
+ return On(u.value, a.value, N) && !A;
8007
8007
  }
8008
8008
  return !1;
8009
8009
  }
8010
8010
  return !1;
8011
8011
  }, R = (N, A) => N.quarter === so(A) && N.year === Oe(A), V = (N) => typeof l.value == "function" ? l.value({ quarter: so(N), year: Oe(N) }) : !!l.value.quarters.find((A) => R(A, N)), G = O(() => (N) => {
8012
- const A = Ue(/* @__PURE__ */ new Date(), { year: d.value(N) });
8012
+ const A = Ue(/* @__PURE__ */ new Date(), { year: c.value(N) });
8013
8013
  return Dd({
8014
- start: Tn(A),
8014
+ start: Mn(A),
8015
8015
  end: pi(A)
8016
8016
  }).map((Z) => {
8017
8017
  const ae = Ya(Z), Q = uo(Z), de = h(Z), z = F(ae), we = V(ae);
@@ -8025,7 +8025,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8025
8025
  };
8026
8026
  });
8027
8027
  }), le = (N) => {
8028
- El(N, u, c.value.limit), t("auto-apply", !0);
8028
+ El(N, u, d.value.limit), t("auto-apply", !0);
8029
8029
  }, me = (N) => {
8030
8030
  u.value = Il(u, N, t), yr(u.value, t, e.autoApply, e.modelAuto);
8031
8031
  }, S = (N) => {
@@ -8035,7 +8035,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8035
8035
  defaultedConfig: r,
8036
8036
  defaultedMultiCalendars: n,
8037
8037
  groupedYears: b,
8038
- year: d,
8038
+ year: c,
8039
8039
  isDisabled: _,
8040
8040
  quarters: G,
8041
8041
  showYearPicker: k,
@@ -8046,7 +8046,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8046
8046
  selectYear: g,
8047
8047
  selectQuarter: (N, A, Z) => {
8048
8048
  if (!Z)
8049
- return p.value[A].month = Ie(uo(N)), c.value.enabled ? le(N) : o.value.enabled ? me(N) : S(N);
8049
+ return p.value[A].month = Ie(uo(N)), d.value.enabled ? le(N) : o.value.enabled ? me(N) : S(N);
8050
8050
  },
8051
8051
  toggleYearPicker: w,
8052
8052
  handleYearSelect: P,
@@ -8074,9 +8074,9 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8074
8074
  const n = a, r = e, l = pt(), o = Ct(l, "yearMode"), {
8075
8075
  defaultedMultiCalendars: i,
8076
8076
  defaultedConfig: s,
8077
- groupedYears: c,
8077
+ groupedYears: d,
8078
8078
  year: u,
8079
- isDisabled: d,
8079
+ isDisabled: c,
8080
8080
  quarters: f,
8081
8081
  modelValue: p,
8082
8082
  showYearPicker: h,
@@ -8109,11 +8109,11 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8109
8109
  }) : L("", !0),
8110
8110
  U("div", null, [
8111
8111
  he(qi, Se(P.$props, {
8112
- items: v(c)(M),
8112
+ items: v(d)(M),
8113
8113
  instance: M,
8114
8114
  "show-year-picker": v(h)[M],
8115
8115
  year: v(u)(M),
8116
- "is-disabled": (x) => v(d)(M, x),
8116
+ "is-disabled": (x) => v(c)(M, x),
8117
8117
  onHandleYear: (x) => v(w)(M, x),
8118
8118
  onYearSelect: (x) => v(_)(x, M),
8119
8119
  onToggleYearPicker: (x) => v(k)(M, x == null ? void 0 : x.flow, x == null ? void 0 : x.show)
@@ -8234,14 +8234,14 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8234
8234
  flowStep: me.value,
8235
8235
  menuWrapRef: l.value
8236
8236
  };
8237
- }), { setMenuFocused: i, setShiftKey: s, control: c } = zi(), u = pt(), { defaultedTextInput: d, defaultedInline: f, defaultedConfig: p, defaultedUI: h, handleEventPropagation: g } = tt(r), { isMobile: b } = Xi(p, r.shadow), k = E(null), _ = E(0), w = E(null), P = E(!1), T = E(null), M = E(!1), x = (B) => {
8237
+ }), { setMenuFocused: i, setShiftKey: s, control: d } = zi(), u = pt(), { defaultedTextInput: c, defaultedInline: f, defaultedConfig: p, defaultedUI: h, handleEventPropagation: g } = tt(r), { isMobile: b } = Xi(p, r.shadow), k = E(null), _ = E(0), w = E(null), P = E(!1), T = E(null), M = E(!1), x = (B) => {
8238
8238
  M.value = !0, p.value.allowPreventDefault && B.preventDefault(), Da(B, p.value, !0);
8239
8239
  };
8240
8240
  Ye(() => {
8241
8241
  if (!r.shadow) {
8242
8242
  P.value = !0, F(), window.addEventListener("resize", F);
8243
8243
  const B = vt(l);
8244
- B && !d.value.enabled && !f.value.enabled && (i(!0), de()), B && (B.addEventListener("pointerdown", x), B.addEventListener("mousedown", x));
8244
+ B && !c.value.enabled && !f.value.enabled && (i(!0), de()), B && (B.addEventListener("pointerdown", x), B.addEventListener("mousedown", x));
8245
8245
  }
8246
8246
  document.addEventListener("mousedown", Be);
8247
8247
  }), ha(() => {
@@ -8288,7 +8288,7 @@ const rl = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8288
8288
  if (B === xt.right) return R();
8289
8289
  } else B === xt.left || B === xt.up ? $("handleArrow", xt.left, 0, B === xt.up) : $("handleArrow", xt.right, 0, B === xt.down);
8290
8290
  }, j = (B) => {
8291
- s(B.shiftKey), !r.disableMonthYearSelect && B.code === Ge.tab && B.target.classList.contains("dp__menu") && c.value.shiftKeyInMenu && (B.preventDefault(), Da(B, p.value, !0), n("close-picker"));
8291
+ s(B.shiftKey), !r.disableMonthYearSelect && B.code === Ge.tab && B.target.classList.contains("dp__menu") && d.value.shiftKeyInMenu && (B.preventDefault(), Da(B, p.value, !0), n("close-picker"));
8292
8292
  }, Ce = () => {
8293
8293
  de(), n("time-picker-close");
8294
8294
  }, ne = (B) => {
@@ -8494,12 +8494,12 @@ const um = ({
8494
8494
  props: o,
8495
8495
  slots: i
8496
8496
  }) => {
8497
- const { defaultedConfig: s } = tt(o), c = E({}), u = E(!1), d = E({
8497
+ const { defaultedConfig: s } = tt(o), d = E({}), u = E(!1), c = E({
8498
8498
  top: "0",
8499
8499
  left: "0"
8500
8500
  }), f = E(!1), p = Ma(o, "teleportCenter");
8501
8501
  Ae(p, () => {
8502
- d.value = JSON.parse(JSON.stringify({})), T();
8502
+ c.value = JSON.parse(JSON.stringify({})), T();
8503
8503
  });
8504
8504
  const h = (A) => {
8505
8505
  if (o.teleport) {
@@ -8511,19 +8511,19 @@ const um = ({
8511
8511
  }
8512
8512
  return { top: 0, left: 0 };
8513
8513
  }, g = (A, Z) => {
8514
- d.value.left = `${A + Z - c.value.width}px`;
8514
+ c.value.left = `${A + Z - d.value.width}px`;
8515
8515
  }, b = (A) => {
8516
- d.value.left = `${A}px`;
8516
+ c.value.left = `${A}px`;
8517
8517
  }, k = (A, Z) => {
8518
- o.position === en.left && b(A), o.position === en.right && g(A, Z), o.position === en.center && (d.value.left = `${A + Z / 2 - c.value.width / 2}px`);
8518
+ o.position === en.left && b(A), o.position === en.right && g(A, Z), o.position === en.center && (c.value.left = `${A + Z / 2 - d.value.width / 2}px`);
8519
8519
  }, _ = (A) => {
8520
8520
  const { width: Z, height: ae } = A.getBoundingClientRect(), { top: Q, left: de } = h(A);
8521
8521
  return { top: +Q, left: +de, width: Z, height: ae };
8522
8522
  }, w = () => {
8523
- d.value.left = "50%", d.value.top = "50%", d.value.transform = "translate(-50%, -50%)", d.value.position = "fixed", delete d.value.opacity;
8523
+ c.value.left = "50%", c.value.top = "50%", c.value.transform = "translate(-50%, -50%)", c.value.position = "fixed", delete c.value.opacity;
8524
8524
  }, P = () => {
8525
8525
  const A = vt(a);
8526
- d.value = o.altPosition(A);
8526
+ c.value = o.altPosition(A);
8527
8527
  }, T = (A = !0) => {
8528
8528
  var Z;
8529
8529
  if (!r.value.enabled) {
@@ -8531,7 +8531,7 @@ const um = ({
8531
8531
  if (o.altPosition !== null) return P();
8532
8532
  if (A) {
8533
8533
  const ae = o.teleport ? (Z = t.value) == null ? void 0 : Z.$el : e.value;
8534
- ae && (c.value = ae.getBoundingClientRect()), l("recalculate-position");
8534
+ ae && (d.value = ae.getBoundingClientRect()), l("recalculate-position");
8535
8535
  }
8536
8536
  return le();
8537
8537
  }
@@ -8539,13 +8539,13 @@ const um = ({
8539
8539
  window.screen.width > 768 && !u.value && k(Z, ae), R(A);
8540
8540
  }, x = (A) => {
8541
8541
  const { top: Z, left: ae, height: Q, width: de } = _(A);
8542
- d.value.top = `${Q + Z + +o.offset}px`, f.value = !1, u.value || (d.value.left = `${ae + de / 2 - c.value.width / 2}px`), M({ inputEl: A, left: ae, width: de });
8542
+ c.value.top = `${Q + Z + +o.offset}px`, f.value = !1, u.value || (c.value.left = `${ae + de / 2 - d.value.width / 2}px`), M({ inputEl: A, left: ae, width: de });
8543
8543
  }, F = (A) => {
8544
8544
  const { top: Z, left: ae, width: Q } = _(A);
8545
- d.value.top = `${Z - +o.offset - c.value.height}px`, f.value = !0, M({ inputEl: A, left: ae, width: Q });
8545
+ c.value.top = `${Z - +o.offset - d.value.height}px`, f.value = !0, M({ inputEl: A, left: ae, width: Q });
8546
8546
  }, R = (A) => {
8547
8547
  if (o.autoPosition) {
8548
- const { left: Z, width: ae } = _(A), { left: Q, right: de } = c.value;
8548
+ const { left: Z, width: ae } = _(A), { left: Q, right: de } = d.value;
8549
8549
  if (!u.value) {
8550
8550
  if (Math.abs(Q) !== Math.abs(de)) {
8551
8551
  if (Q <= 0)
@@ -8561,7 +8561,7 @@ const um = ({
8561
8561
  if (A) {
8562
8562
  if (o.autoPosition === Ft.top) return Ft.top;
8563
8563
  if (o.autoPosition === Ft.bottom) return Ft.bottom;
8564
- const { height: Z } = c.value, { top: ae, height: Q } = A.getBoundingClientRect(), de = window.innerHeight - ae - Q, z = ae;
8564
+ const { height: Z } = d.value, { top: ae, height: Q } = A.getBoundingClientRect(), de = window.innerHeight - ae - Q, z = ae;
8565
8565
  return Z <= de ? Ft.bottom : Z > de && Z <= z ? Ft.top : de >= z ? Ft.bottom : Ft.top;
8566
8566
  }
8567
8567
  return Ft.bottom;
@@ -8593,7 +8593,7 @@ const um = ({
8593
8593
  };
8594
8594
  return {
8595
8595
  openOnTop: f,
8596
- menuStyle: d,
8596
+ menuStyle: c,
8597
8597
  xCorrect: u,
8598
8598
  setMenuPosition: T,
8599
8599
  getScrollableParent: S,
@@ -8614,7 +8614,7 @@ const um = ({
8614
8614
  },
8615
8615
  Object.fromEntries(ee.map((H) => [H, i[H]]))
8616
8616
  );
8617
- A != null && (m.appContext = A.appContext), Kl(m, we), c.value = (z = m.el) == null ? void 0 : z.getBoundingClientRect(), Kl(null, we), W.removeChild(we);
8617
+ A != null && (m.appContext = A.appContext), Kl(m, we), d.value = (z = m.el) == null ? void 0 : z.getBoundingClientRect(), Kl(null, we), W.removeChild(we);
8618
8618
  }
8619
8619
  };
8620
8620
  }, ka = [
@@ -8699,18 +8699,18 @@ const um = ({
8699
8699
  },
8700
8700
  { deep: !0 }
8701
8701
  );
8702
- const c = O({
8702
+ const d = O({
8703
8703
  get: () => e.internalModelValue,
8704
8704
  set: (f) => {
8705
8705
  !e.readonly && !e.disabled && t("update:internal-model-value", f);
8706
8706
  }
8707
8707
  }), u = O(
8708
8708
  () => (f) => o.value[f] ? o.value[f].month : 0
8709
- ), d = O(
8709
+ ), c = O(
8710
8710
  () => (f) => o.value[f] ? o.value[f].year : 0
8711
8711
  );
8712
8712
  return Ae(
8713
- c,
8713
+ d,
8714
8714
  (f, p) => {
8715
8715
  a && JSON.stringify(f ?? {}) !== JSON.stringify(p ?? {}) && a();
8716
8716
  },
@@ -8718,9 +8718,9 @@ const um = ({
8718
8718
  ), {
8719
8719
  calendars: o,
8720
8720
  time: s,
8721
- modelValue: c,
8721
+ modelValue: d,
8722
8722
  month: u,
8723
- year: d,
8723
+ year: c,
8724
8724
  today: l
8725
8725
  };
8726
8726
  }, fm = (e, t) => {
@@ -8732,7 +8732,7 @@ const um = ({
8732
8732
  defaultedTz: o,
8733
8733
  propDates: i,
8734
8734
  defaultedRange: s
8735
- } = tt(t), { isDisabled: c } = Ba(t), u = E(null), d = E(Pt(/* @__PURE__ */ new Date(), o.value.timezone)), f = (m) => {
8735
+ } = tt(t), { isDisabled: d } = Ba(t), u = E(null), c = E(Pt(/* @__PURE__ */ new Date(), o.value.timezone)), f = (m) => {
8736
8736
  !m.current && t.hideOffsetDates || (u.value = m.value);
8737
8737
  }, p = () => {
8738
8738
  u.value = null;
@@ -8748,7 +8748,7 @@ const um = ({
8748
8748
  return H ? st(e.value[0], m.value) && ve : lt(e.value[0], m.value) && ve;
8749
8749
  }
8750
8750
  return !1;
8751
- }, w = (m) => !e.value || t.hideOffsetDates && !m.current ? !1 : s.value.enabled ? t.modelAuto && Array.isArray(e.value) ? Le(m.value, e.value[0] ? e.value[0] : d.value) : !1 : n.value.enabled && Array.isArray(e.value) ? e.value.some((H) => Le(H, m.value)) : Le(m.value, e.value ? e.value : d.value), P = (m) => {
8751
+ }, w = (m) => !e.value || t.hideOffsetDates && !m.current ? !1 : s.value.enabled ? t.modelAuto && Array.isArray(e.value) ? Le(m.value, e.value[0] ? e.value[0] : c.value) : !1 : n.value.enabled && Array.isArray(e.value) ? e.value.some((H) => Le(H, m.value)) : Le(m.value, e.value ? e.value : c.value), P = (m) => {
8752
8752
  if (s.value.autoRange || t.weekPicker) {
8753
8753
  if (u.value) {
8754
8754
  if (t.hideOffsetDates && !m.current) return !1;
@@ -8779,12 +8779,12 @@ const um = ({
8779
8779
  return !1;
8780
8780
  }
8781
8781
  return !1;
8782
- }, x = (m) => Pn(e.value, u.value, m.value), F = () => t.modelAuto && Array.isArray(t.internalModelValue) ? !!t.internalModelValue[0] : !1, R = () => t.modelAuto ? Si(t.internalModelValue) : !0, V = (m) => {
8782
+ }, x = (m) => On(e.value, u.value, m.value), F = () => t.modelAuto && Array.isArray(t.internalModelValue) ? !!t.internalModelValue[0] : !1, R = () => t.modelAuto ? Si(t.internalModelValue) : !0, V = (m) => {
8783
8783
  if (t.weekPicker) return !1;
8784
8784
  const H = s.value.enabled ? !k(m) && !k(m, !1) : !0;
8785
- return !c(m.value) && !w(m) && !(!m.current && t.hideOffsetDates) && H;
8785
+ return !d(m.value) && !w(m) && !(!m.current && t.hideOffsetDates) && H;
8786
8786
  }, G = (m) => s.value.enabled ? t.modelAuto ? F() && w(m) : !1 : w(m), le = (m) => l.value ? Cf(m.value, i.value.highlight) : !1, me = (m) => {
8787
- const H = c(m.value);
8787
+ const H = d(m.value);
8788
8788
  return H && (typeof l.value == "function" ? !l.value(m.value, H) : !l.value.options.highlightDisabled);
8789
8789
  }, S = (m) => {
8790
8790
  var H;
@@ -8798,20 +8798,20 @@ const um = ({
8798
8798
  }, Z = (m) => {
8799
8799
  if (Array.isArray(e.value) && e.value.length === 1) {
8800
8800
  const { before: H, after: ve } = ko(+s.value.minRange, e.value[0]);
8801
- return Pn([H, ve], e.value[0], m.value);
8801
+ return On([H, ve], e.value[0], m.value);
8802
8802
  }
8803
8803
  return !1;
8804
8804
  }, ae = (m) => s.value.enabled && (s.value.maxRange || s.value.minRange) ? s.value.maxRange && s.value.minRange ? A(m) || Z(m) : s.value.maxRange ? A(m) : Z(m) : !1, Q = (m) => {
8805
8805
  const { isRangeStart: H, isRangeEnd: ve } = C(m), Fe = s.value.enabled ? H || ve : !1;
8806
8806
  return {
8807
8807
  dp__cell_offset: !m.current,
8808
- dp__pointer: !t.disabled && !(!m.current && t.hideOffsetDates) && !c(m.value) && !ae(m),
8809
- dp__cell_disabled: c(m.value) || ae(m),
8808
+ dp__pointer: !t.disabled && !(!m.current && t.hideOffsetDates) && !d(m.value) && !ae(m),
8809
+ dp__cell_disabled: d(m.value) || ae(m),
8810
8810
  dp__cell_highlight: !me(m) && (le(m) || S(m)) && !G(m) && !Fe && !M(m) && !(N(m) && t.weekPicker) && !ve,
8811
8811
  dp__cell_highlight_active: !me(m) && (le(m) || S(m)) && G(m),
8812
- dp__today: !t.noToday && Le(m.value, d.value) && m.current,
8813
- "dp--past": lt(m.value, d.value),
8814
- "dp--future": st(m.value, d.value)
8812
+ dp__today: !t.noToday && Le(m.value, c.value) && m.current,
8813
+ "dp--past": lt(m.value, c.value),
8814
+ "dp--future": st(m.value, c.value)
8815
8815
  };
8816
8816
  }, de = (m) => ({
8817
8817
  dp__active_date: G(m),
@@ -8876,12 +8876,12 @@ const um = ({
8876
8876
  const { defaultedFilters: t, defaultedRange: a, propDates: n, defaultedMultiDates: r } = tt(e), l = (S) => n.value.disabledDates ? typeof n.value.disabledDates == "function" ? n.value.disabledDates(re(S)) : !!ar(S, n.value.disabledDates) : !1, o = (S) => n.value.maxDate ? e.yearPicker ? Oe(S) > Oe(n.value.maxDate) : st(S, n.value.maxDate) : !1, i = (S) => n.value.minDate ? e.yearPicker ? Oe(S) < Oe(n.value.minDate) : lt(S, n.value.minDate) : !1, s = (S) => {
8877
8877
  const N = o(S), A = i(S), Z = l(S), ae = t.value.months.map((C) => +C).includes(Ie(S)), Q = e.disabledWeekDays.length ? e.disabledWeekDays.some((C) => +C === yc(S)) : !1, de = p(S), z = Oe(S), we = z < +e.yearRange[0] || z > +e.yearRange[1];
8878
8878
  return !(N || A || Z || ae || we || Q || de);
8879
- }, c = (S, N) => lt(...$a(n.value.minDate, S, N)) || Le(...$a(n.value.minDate, S, N)), u = (S, N) => st(...$a(n.value.maxDate, S, N)) || Le(...$a(n.value.maxDate, S, N)), d = (S, N, A) => {
8879
+ }, d = (S, N) => lt(...$a(n.value.minDate, S, N)) || Le(...$a(n.value.minDate, S, N)), u = (S, N) => st(...$a(n.value.maxDate, S, N)) || Le(...$a(n.value.maxDate, S, N)), c = (S, N, A) => {
8880
8880
  let Z = !1;
8881
- return n.value.maxDate && A && u(S, N) && (Z = !0), n.value.minDate && !A && c(S, N) && (Z = !0), Z;
8881
+ return n.value.maxDate && A && u(S, N) && (Z = !0), n.value.minDate && !A && d(S, N) && (Z = !0), Z;
8882
8882
  }, f = (S, N, A, Z) => {
8883
8883
  let ae = !1;
8884
- return Z && (n.value.minDate || n.value.maxDate) ? n.value.minDate && n.value.maxDate ? ae = d(S, N, A) : (n.value.minDate && c(S, N) || n.value.maxDate && u(S, N)) && (ae = !0) : ae = !0, ae;
8884
+ return Z && (n.value.minDate || n.value.maxDate) ? n.value.minDate && n.value.maxDate ? ae = c(S, N, A) : (n.value.minDate && d(S, N) || n.value.maxDate && u(S, N)) && (ae = !0) : ae = !0, ae;
8885
8885
  }, p = (S) => Array.isArray(n.value.allowedDates) && !n.value.allowedDates.length ? !0 : n.value.allowedDates ? !ar(S, n.value.allowedDates, Ei(e.monthPicker, e.yearPicker)) : !1, h = (S) => !s(S), g = (S) => a.value.noDisabledRange ? !mi({ start: S[0], end: S[1] }).some((N) => h(N)) : !0, b = (S) => {
8886
8886
  if (S) {
8887
8887
  const N = Oe(S);
@@ -8961,24 +8961,24 @@ const um = ({
8961
8961
  [Fa.timePicker]: !e.enableTimePicker || e.timePicker || e.monthPicker,
8962
8962
  [Fa.calendar]: !1,
8963
8963
  [Fa.header]: !1
8964
- }), l = O(() => e.monthPicker || e.timePicker), o = (d) => {
8964
+ }), l = O(() => e.monthPicker || e.timePicker), o = (c) => {
8965
8965
  var f;
8966
8966
  if ((f = e.flow) != null && f.length) {
8967
- if (!d && l.value) return u();
8968
- r[d] = !0, Object.keys(r).filter((p) => !r[p]).length || u();
8967
+ if (!c && l.value) return u();
8968
+ r[c] = !0, Object.keys(r).filter((p) => !r[p]).length || u();
8969
8969
  }
8970
8970
  }, i = () => {
8971
- var d, f;
8972
- (d = e.flow) != null && d.length && n.value !== -1 && (n.value += 1, t("flow-step", n.value), u()), ((f = e.flow) == null ? void 0 : f.length) === n.value && et().then(() => s());
8971
+ var c, f;
8972
+ (c = e.flow) != null && c.length && n.value !== -1 && (n.value += 1, t("flow-step", n.value), u()), ((f = e.flow) == null ? void 0 : f.length) === n.value && et().then(() => s());
8973
8973
  }, s = () => {
8974
8974
  n.value = -1;
8975
- }, c = (d, f, ...p) => {
8975
+ }, d = (c, f, ...p) => {
8976
8976
  var h, g;
8977
- e.flow[n.value] === d && a.value && ((g = (h = a.value)[f]) == null || g.call(h, ...p));
8978
- }, u = (d = 0) => {
8979
- d && (n.value += d), c(_t.month, "toggleMonthPicker", !0), c(_t.year, "toggleYearPicker", !0), c(_t.calendar, "toggleTimePicker", !1, !0), c(_t.time, "toggleTimePicker", !0, !0);
8977
+ e.flow[n.value] === c && a.value && ((g = (h = a.value)[f]) == null || g.call(h, ...p));
8978
+ }, u = (c = 0) => {
8979
+ c && (n.value += c), d(_t.month, "toggleMonthPicker", !0), d(_t.year, "toggleYearPicker", !0), d(_t.calendar, "toggleTimePicker", !1, !0), d(_t.time, "toggleTimePicker", !0, !0);
8980
8980
  const f = e.flow[n.value];
8981
- (f === _t.hours || f === _t.minutes || f === _t.seconds) && c(f, "toggleTimePicker", !0, !0, f);
8981
+ (f === _t.hours || f === _t.minutes || f === _t.seconds) && d(f, "toggleTimePicker", !0, !0, f);
8982
8982
  };
8983
8983
  return { childMount: o, updateFlowStep: i, resetFlow: s, handleFlow: u, flowStep: n };
8984
8984
  }, mm = {
@@ -9018,9 +9018,9 @@ const um = ({
9018
9018
  defaultedAriaLabels: o,
9019
9019
  defaultedInline: i,
9020
9020
  defaultedConfig: s,
9021
- defaultedRange: c,
9021
+ defaultedRange: d,
9022
9022
  defaultedMultiDates: u,
9023
- defaultedUI: d,
9023
+ defaultedUI: c,
9024
9024
  getDefaultPattern: f,
9025
9025
  getDefaultStartTime: p
9026
9026
  } = tt(r), { checkMinMaxRange: h } = Ba(r), g = E(), b = E(null), k = E(!1), _ = E(!1), w = O(
@@ -9034,7 +9034,7 @@ const um = ({
9034
9034
  dp__input_invalid: typeof r.state == "boolean" ? !r.state : !1,
9035
9035
  dp__input_focus: k.value || r.isMenuOpen,
9036
9036
  dp__input_reg: !l.value.enabled,
9037
- ...d.value.input ?? {}
9037
+ ...c.value.input ?? {}
9038
9038
  })
9039
9039
  ), P = () => {
9040
9040
  n("set-input-date", null), r.clearable && r.autoApply && (n("set-empty-date"), g.value = null);
@@ -9059,7 +9059,7 @@ const um = ({
9059
9059
  }, x = () => {
9060
9060
  _.value = !0;
9061
9061
  }, F = (z) => {
9062
- if (c.value.enabled)
9062
+ if (d.value.enabled)
9063
9063
  M(z);
9064
9064
  else if (u.value.enabled) {
9065
9065
  const we = z.split(";");
@@ -9162,7 +9162,7 @@ const um = ({
9162
9162
  }, [
9163
9163
  I(z.$slots, "input-icon")
9164
9164
  ])) : L("", !0),
9165
- !z.$slots["input-icon"] && !z.hideInputIcon && !z.$slots["dp-input"] ? (y(), te(v(mn), {
9165
+ !z.$slots["input-icon"] && !z.hideInputIcon && !z.$slots["dp-input"] ? (y(), te(v(pn), {
9166
9166
  key: 1,
9167
9167
  "aria-label": (W = v(o)) == null ? void 0 : W.calendarIcon,
9168
9168
  class: "dp__input_icon dp__input_icons",
@@ -9247,7 +9247,7 @@ const um = ({
9247
9247
  "text-input"
9248
9248
  ],
9249
9249
  setup(e, { expose: t, emit: a }) {
9250
- const n = a, r = e, l = pt(), o = E(!1), i = Ma(r, "modelValue"), s = Ma(r, "timezone"), c = E(null), u = E(null), d = E(null), f = E(!1), p = E(null), h = E(!1), g = E(!1), b = E(!1), k = E(!1), { setMenuFocused: _, setShiftKey: w } = zi(), { clearArrowNav: P } = Sa(), { validateDate: T, isValidTime: M } = Ba(r), {
9250
+ const n = a, r = e, l = pt(), o = E(!1), i = Ma(r, "modelValue"), s = Ma(r, "timezone"), d = E(null), u = E(null), c = E(null), f = E(!1), p = E(null), h = E(!1), g = E(!1), b = E(!1), k = E(!1), { setMenuFocused: _, setShiftKey: w } = zi(), { clearArrowNav: P } = Sa(), { validateDate: T, isValidTime: M } = Ba(r), {
9251
9251
  defaultedTransitions: x,
9252
9252
  defaultedTextInput: F,
9253
9253
  defaultedInline: R,
@@ -9278,9 +9278,9 @@ const um = ({
9278
9278
  { deep: !0 }
9279
9279
  );
9280
9280
  const { openOnTop: Q, menuStyle: de, xCorrect: z, setMenuPosition: we, getScrollableParent: C, shadowRender: W } = um({
9281
- menuRef: c,
9281
+ menuRef: d,
9282
9282
  menuRefInner: u,
9283
- inputRef: d,
9283
+ inputRef: c,
9284
9284
  pickerWrapperRef: p,
9285
9285
  inline: R,
9286
9286
  emit: n,
@@ -9307,7 +9307,7 @@ const um = ({
9307
9307
  disabled: !r.teleport || R.value.enabled
9308
9308
  } : {}), ce = O(() => ({ class: "dp__outer_menu_wrap" })), $ = O(() => R.value.enabled && (r.timePicker || r.monthPicker || r.yearPicker || r.quarterPicker)), se = () => {
9309
9309
  var J, pe;
9310
- return ((pe = (J = d.value) == null ? void 0 : J.$el) == null ? void 0 : pe.getBoundingClientRect()) ?? { width: 0, left: 0, right: 0 };
9310
+ return ((pe = (J = c.value) == null ? void 0 : J.$el) == null ? void 0 : pe.getBoundingClientRect()) ?? { width: 0, left: 0, right: 0 };
9311
9311
  }, fe = () => {
9312
9312
  o.value && (V.value.closeOnScroll ? rt() : we());
9313
9313
  }, K = () => {
@@ -9323,7 +9323,7 @@ const um = ({
9323
9323
  !r.disabled && !r.readonly && (W(A, xo, r), we(!1), o.value = !0, o.value && n("open"), o.value || ke(), m(r.modelValue));
9324
9324
  }, Be = () => {
9325
9325
  var J, pe;
9326
- X.value = "", ke(), (J = u.value) == null || J.onValueCleared(), (pe = d.value) == null || pe.setParsedDate(null), n("update:model-value", null), n("update:model-timezone-value", null), n("cleared"), V.value.closeOnClearValue && rt();
9326
+ X.value = "", ke(), (J = u.value) == null || J.onValueCleared(), (pe = c.value) == null || pe.setParsedDate(null), n("update:model-value", null), n("update:model-timezone-value", null), n("cleared"), V.value.closeOnClearValue && rt();
9327
9327
  }, B = () => {
9328
9328
  const J = ee.value;
9329
9329
  return !J || !Array.isArray(J) && T(J) ? !0 : Array.isArray(J) ? le.value.enabled || J.length === 2 && T(J[0]) && T(J[1]) ? !0 : G.value.partialRange && !r.timePicker ? T(J[0]) : !1 : !1;
@@ -9332,7 +9332,7 @@ const um = ({
9332
9332
  }, Re = (J) => {
9333
9333
  Ze(), H(), V.value.closeOnAutoApply && !J && rt();
9334
9334
  }, Ze = () => {
9335
- d.value && F.value.enabled && d.value.setParsedDate(ee.value);
9335
+ c.value && F.value.enabled && c.value.setParsedDate(ee.value);
9336
9336
  }, Dt = (J = !1) => {
9337
9337
  r.autoApply && M(ee.value) && B() && (G.value.enabled && Array.isArray(ee.value) ? (G.value.partialRange || ee.value.length === 2) && Re(J) : Re(J));
9338
9338
  }, ke = () => {
@@ -9351,7 +9351,7 @@ const um = ({
9351
9351
  })) : n("invalid-date", J);
9352
9352
  }, Lt = () => {
9353
9353
  r.autoApply && M(ee.value) && H(), Ze();
9354
- }, Ra = () => o.value ? rt() : xe(), yn = (J) => {
9354
+ }, Ra = () => o.value ? rt() : xe(), gn = (J) => {
9355
9355
  ee.value = J;
9356
9356
  }, Nt = () => {
9357
9357
  F.value.enabled && (f.value = !0, ve()), n("focus");
@@ -9374,10 +9374,10 @@ const um = ({
9374
9374
  }, ue = (J, pe) => V.value.onClickOutside ? V.value.onClickOutside(J, pe) : rt(!0), Me = (J = 0) => {
9375
9375
  var pe;
9376
9376
  (pe = u.value) == null || pe.handleFlow(J);
9377
- }, Ee = () => c;
9377
+ }, Ee = () => d;
9378
9378
  return _m(
9379
- c,
9380
9379
  d,
9380
+ c,
9381
9381
  (J) => ue(B, J)
9382
9382
  ), t({
9383
9383
  closeMenu: rt,
@@ -9387,7 +9387,7 @@ const um = ({
9387
9387
  onScroll: fe,
9388
9388
  formatInputValue: ve,
9389
9389
  // exposed for testing purposes
9390
- updateInternalModelValue: yn,
9390
+ updateInternalModelValue: gn,
9391
9391
  // modify internal modelValue
9392
9392
  setMonthYear: Ga,
9393
9393
  parseModel: Mr,
@@ -9404,7 +9404,7 @@ const um = ({
9404
9404
  }, [
9405
9405
  he(gm, Se({
9406
9406
  ref_key: "inputRef",
9407
- ref: d,
9407
+ ref: c,
9408
9408
  "input-value": v(X),
9409
9409
  "onUpdate:inputValue": pe[0] || (pe[0] = (De) => Zr(X) ? X.value = De : null),
9410
9410
  "is-menu-open": o.value
@@ -9428,7 +9428,7 @@ const um = ({
9428
9428
  ])
9429
9429
  }))
9430
9430
  ]), 1040, ["input-value", "is-menu-open", "onSetEmptyDate"]),
9431
- (y(), te(ia(J.teleport ? An : "div"), Xe(ut(ne.value)), {
9431
+ (y(), te(ia(J.teleport ? mn : "div"), Xe(ut(ne.value)), {
9432
9432
  default: q(() => [
9433
9433
  he(Gt, {
9434
9434
  name: v(me)(v(Q)),
@@ -9438,7 +9438,7 @@ const um = ({
9438
9438
  o.value ? (y(), D("div", Se({
9439
9439
  key: 0,
9440
9440
  ref_key: "dpWrapMenuRef",
9441
- ref: c
9441
+ ref: d
9442
9442
  }, ce.value, {
9443
9443
  class: { "dp--menu-wrapper": !v(R).enabled },
9444
9444
  style: v(R).enabled ? void 0 : v(de)
@@ -9901,7 +9901,7 @@ function Po(e, t, a) {
9901
9901
  reference: n,
9902
9902
  floating: r
9903
9903
  } = e;
9904
- const l = cn(t), o = ts(t), i = es(o), s = za(t), c = l === "y", u = n.x + n.width / 2 - r.width / 2, d = n.y + n.height / 2 - r.height / 2, f = n[i] / 2 - r[i] / 2;
9904
+ const l = cn(t), o = ts(t), i = es(o), s = za(t), d = l === "y", u = n.x + n.width / 2 - r.width / 2, c = n.y + n.height / 2 - r.height / 2, f = n[i] / 2 - r[i] / 2;
9905
9905
  let p;
9906
9906
  switch (s) {
9907
9907
  case "top":
@@ -9919,13 +9919,13 @@ function Po(e, t, a) {
9919
9919
  case "right":
9920
9920
  p = {
9921
9921
  x: n.x + n.width,
9922
- y: d
9922
+ y: c
9923
9923
  };
9924
9924
  break;
9925
9925
  case "left":
9926
9926
  p = {
9927
9927
  x: n.x - r.width,
9928
- y: d
9928
+ y: c
9929
9929
  };
9930
9930
  break;
9931
9931
  default:
@@ -9936,10 +9936,10 @@ function Po(e, t, a) {
9936
9936
  }
9937
9937
  switch (br(t)) {
9938
9938
  case "start":
9939
- p[o] -= f * (a && c ? -1 : 1);
9939
+ p[o] -= f * (a && d ? -1 : 1);
9940
9940
  break;
9941
9941
  case "end":
9942
- p[o] += f * (a && c ? -1 : 1);
9942
+ p[o] += f * (a && d ? -1 : 1);
9943
9943
  break;
9944
9944
  }
9945
9945
  return p;
@@ -9951,14 +9951,14 @@ const zm = async (e, t, a) => {
9951
9951
  middleware: l = [],
9952
9952
  platform: o
9953
9953
  } = a, i = l.filter(Boolean), s = await (o.isRTL == null ? void 0 : o.isRTL(t));
9954
- let c = await o.getElementRects({
9954
+ let d = await o.getElementRects({
9955
9955
  reference: e,
9956
9956
  floating: t,
9957
9957
  strategy: r
9958
9958
  }), {
9959
9959
  x: u,
9960
- y: d
9961
- } = Po(c, n, s), f = n, p = {}, h = 0;
9960
+ y: c
9961
+ } = Po(d, n, s), f = n, p = {}, h = 0;
9962
9962
  for (let g = 0; g < i.length; g++) {
9963
9963
  const {
9964
9964
  name: b,
@@ -9970,36 +9970,36 @@ const zm = async (e, t, a) => {
9970
9970
  reset: T
9971
9971
  } = await k({
9972
9972
  x: u,
9973
- y: d,
9973
+ y: c,
9974
9974
  initialPlacement: n,
9975
9975
  placement: f,
9976
9976
  strategy: r,
9977
9977
  middlewareData: p,
9978
- rects: c,
9978
+ rects: d,
9979
9979
  platform: o,
9980
9980
  elements: {
9981
9981
  reference: e,
9982
9982
  floating: t
9983
9983
  }
9984
9984
  });
9985
- u = _ ?? u, d = w ?? d, p = {
9985
+ u = _ ?? u, c = w ?? c, p = {
9986
9986
  ...p,
9987
9987
  [b]: {
9988
9988
  ...p[b],
9989
9989
  ...P
9990
9990
  }
9991
- }, T && h <= 50 && (h++, typeof T == "object" && (T.placement && (f = T.placement), T.rects && (c = T.rects === !0 ? await o.getElementRects({
9991
+ }, T && h <= 50 && (h++, typeof T == "object" && (T.placement && (f = T.placement), T.rects && (d = T.rects === !0 ? await o.getElementRects({
9992
9992
  reference: e,
9993
9993
  floating: t,
9994
9994
  strategy: r
9995
9995
  }) : T.rects), {
9996
9996
  x: u,
9997
- y: d
9998
- } = Po(c, f, s)), g = -1);
9997
+ y: c
9998
+ } = Po(d, f, s)), g = -1);
9999
9999
  }
10000
10000
  return {
10001
10001
  x: u,
10002
- y: d,
10002
+ y: c,
10003
10003
  placement: f,
10004
10004
  strategy: r,
10005
10005
  middlewareData: p
@@ -10016,17 +10016,17 @@ async function as(e, t) {
10016
10016
  elements: i,
10017
10017
  strategy: s
10018
10018
  } = e, {
10019
- boundary: c = "clippingAncestors",
10019
+ boundary: d = "clippingAncestors",
10020
10020
  rootBoundary: u = "viewport",
10021
- elementContext: d = "floating",
10021
+ elementContext: c = "floating",
10022
10022
  altBoundary: f = !1,
10023
10023
  padding: p = 0
10024
- } = wr(t, e), h = Wm(p), b = i[f ? d === "floating" ? "reference" : "floating" : d], k = or(await l.getClippingRect({
10024
+ } = wr(t, e), h = Wm(p), b = i[f ? c === "floating" ? "reference" : "floating" : c], k = or(await l.getClippingRect({
10025
10025
  element: (a = await (l.isElement == null ? void 0 : l.isElement(b))) == null || a ? b : b.contextElement || await (l.getDocumentElement == null ? void 0 : l.getDocumentElement(i.floating)),
10026
- boundary: c,
10026
+ boundary: d,
10027
10027
  rootBoundary: u,
10028
10028
  strategy: s
10029
- })), _ = d === "floating" ? {
10029
+ })), _ = c === "floating" ? {
10030
10030
  x: n,
10031
10031
  y: r,
10032
10032
  width: o.floating.width,
@@ -10062,10 +10062,10 @@ const qm = function(e) {
10062
10062
  rects: o,
10063
10063
  initialPlacement: i,
10064
10064
  platform: s,
10065
- elements: c
10065
+ elements: d
10066
10066
  } = t, {
10067
10067
  mainAxis: u = !0,
10068
- crossAxis: d = !0,
10068
+ crossAxis: c = !0,
10069
10069
  fallbackPlacements: f,
10070
10070
  fallbackStrategy: p = "bestFit",
10071
10071
  fallbackAxisSideDirection: h = "none",
@@ -10074,11 +10074,11 @@ const qm = function(e) {
10074
10074
  } = wr(e, t);
10075
10075
  if ((a = l.arrow) != null && a.alignmentOffset)
10076
10076
  return {};
10077
- const k = za(r), _ = cn(i), w = za(i) === i, P = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), T = f || (w || !g ? [lr(i)] : Ym(i)), M = h !== "none";
10077
+ const k = za(r), _ = cn(i), w = za(i) === i, P = await (s.isRTL == null ? void 0 : s.isRTL(d.floating)), T = f || (w || !g ? [lr(i)] : Ym(i)), M = h !== "none";
10078
10078
  !f && M && T.push(...Vm(i, g, h, P));
10079
10079
  const x = [i, ...T], F = await as(t, b), R = [];
10080
10080
  let V = ((n = l.flip) == null ? void 0 : n.overflows) || [];
10081
- if (u && R.push(F[k]), d) {
10081
+ if (u && R.push(F[k]), c) {
10082
10082
  const S = Nm(r, o, P);
10083
10083
  R.push(F[S[0]], F[S[1]]);
10084
10084
  }
@@ -10135,25 +10135,25 @@ async function jm(e, t) {
10135
10135
  placement: a,
10136
10136
  platform: n,
10137
10137
  elements: r
10138
- } = e, l = await (n.isRTL == null ? void 0 : n.isRTL(r.floating)), o = za(a), i = br(a), s = cn(a) === "y", c = ["left", "top"].includes(o) ? -1 : 1, u = l && s ? -1 : 1, d = wr(t, e);
10138
+ } = e, l = await (n.isRTL == null ? void 0 : n.isRTL(r.floating)), o = za(a), i = br(a), s = cn(a) === "y", d = ["left", "top"].includes(o) ? -1 : 1, u = l && s ? -1 : 1, c = wr(t, e);
10139
10139
  let {
10140
10140
  mainAxis: f,
10141
10141
  crossAxis: p,
10142
10142
  alignmentAxis: h
10143
- } = typeof d == "number" ? {
10144
- mainAxis: d,
10143
+ } = typeof c == "number" ? {
10144
+ mainAxis: c,
10145
10145
  crossAxis: 0,
10146
10146
  alignmentAxis: null
10147
10147
  } : {
10148
- mainAxis: d.mainAxis || 0,
10149
- crossAxis: d.crossAxis || 0,
10150
- alignmentAxis: d.alignmentAxis
10148
+ mainAxis: c.mainAxis || 0,
10149
+ crossAxis: c.crossAxis || 0,
10150
+ alignmentAxis: c.alignmentAxis
10151
10151
  };
10152
10152
  return i && typeof h == "number" && (p = i === "end" ? h * -1 : h), s ? {
10153
10153
  x: p * u,
10154
- y: f * c
10154
+ y: f * d
10155
10155
  } : {
10156
- x: f * c,
10156
+ x: f * d,
10157
10157
  y: p * u
10158
10158
  };
10159
10159
  }
@@ -10204,23 +10204,23 @@ const Um = function(e) {
10204
10204
  }
10205
10205
  },
10206
10206
  ...s
10207
- } = wr(e, t), c = {
10207
+ } = wr(e, t), d = {
10208
10208
  x: a,
10209
10209
  y: n
10210
- }, u = await as(t, s), d = cn(za(r)), f = Ji(d);
10211
- let p = c[f], h = c[d];
10210
+ }, u = await as(t, s), c = cn(za(r)), f = Ji(c);
10211
+ let p = d[f], h = d[c];
10212
10212
  if (l) {
10213
10213
  const b = f === "y" ? "top" : "left", k = f === "y" ? "bottom" : "right", _ = p + u[b], w = p - u[k];
10214
10214
  p = Mo(_, p, w);
10215
10215
  }
10216
10216
  if (o) {
10217
- const b = d === "y" ? "top" : "left", k = d === "y" ? "bottom" : "right", _ = h + u[b], w = h - u[k];
10217
+ const b = c === "y" ? "top" : "left", k = c === "y" ? "bottom" : "right", _ = h + u[b], w = h - u[k];
10218
10218
  h = Mo(_, h, w);
10219
10219
  }
10220
10220
  const g = i.fn({
10221
10221
  ...t,
10222
10222
  [f]: p,
10223
- [d]: h
10223
+ [c]: h
10224
10224
  });
10225
10225
  return {
10226
10226
  ...g,
@@ -10229,7 +10229,7 @@ const Um = function(e) {
10229
10229
  y: g.y - n,
10230
10230
  enabled: {
10231
10231
  [f]: l,
10232
- [d]: o
10232
+ [c]: o
10233
10233
  }
10234
10234
  }
10235
10235
  };
@@ -10332,15 +10332,15 @@ function ns(e) {
10332
10332
  const t = Aa(e);
10333
10333
  return fn(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : la(t) && Nn(t) ? t : ns(t);
10334
10334
  }
10335
- function On(e, t, a) {
10335
+ function An(e, t, a) {
10336
10336
  var n;
10337
10337
  t === void 0 && (t = []), a === void 0 && (a = !0);
10338
10338
  const r = ns(e), l = r === ((n = e.ownerDocument) == null ? void 0 : n.body), o = St(r);
10339
10339
  if (l) {
10340
10340
  const i = ul(o);
10341
- return t.concat(o, o.visualViewport || [], Nn(r) ? r : [], i && a ? On(i) : []);
10341
+ return t.concat(o, o.visualViewport || [], Nn(r) ? r : [], i && a ? An(i) : []);
10342
10342
  }
10343
- return t.concat(r, On(r, [], a));
10343
+ return t.concat(r, An(r, [], a));
10344
10344
  }
10345
10345
  function ul(e) {
10346
10346
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
@@ -10390,20 +10390,20 @@ function qa(e, t, a, n) {
10390
10390
  let o = ra(1);
10391
10391
  t && (n ? Ut(n) && (o = nn(n)) : o = nn(e));
10392
10392
  const i = Zm(l, a, n) ? ls(l) : ra(0);
10393
- let s = (r.left + i.x) / o.x, c = (r.top + i.y) / o.y, u = r.width / o.x, d = r.height / o.y;
10393
+ let s = (r.left + i.x) / o.x, d = (r.top + i.y) / o.y, u = r.width / o.x, c = r.height / o.y;
10394
10394
  if (l) {
10395
10395
  const f = St(l), p = n && Ut(n) ? St(n) : n;
10396
10396
  let h = f, g = ul(h);
10397
10397
  for (; g && n && p !== h; ) {
10398
10398
  const b = nn(g), k = g.getBoundingClientRect(), _ = Qt(g), w = k.left + (g.clientLeft + parseFloat(_.paddingLeft)) * b.x, P = k.top + (g.clientTop + parseFloat(_.paddingTop)) * b.y;
10399
- s *= b.x, c *= b.y, u *= b.x, d *= b.y, s += w, c += P, h = St(g), g = ul(h);
10399
+ s *= b.x, d *= b.y, u *= b.x, c *= b.y, s += w, d += P, h = St(g), g = ul(h);
10400
10400
  }
10401
10401
  }
10402
10402
  return or({
10403
10403
  width: u,
10404
- height: d,
10404
+ height: c,
10405
10405
  x: s,
10406
- y: c
10406
+ y: d
10407
10407
  });
10408
10408
  }
10409
10409
  function Hl(e, t) {
@@ -10434,18 +10434,18 @@ function Jm(e) {
10434
10434
  let s = {
10435
10435
  scrollLeft: 0,
10436
10436
  scrollTop: 0
10437
- }, c = ra(1);
10438
- const u = ra(0), d = la(n);
10439
- if ((d || !d && !l) && ((Ua(n) !== "body" || Nn(o)) && (s = $r(n)), la(n))) {
10437
+ }, d = ra(1);
10438
+ const u = ra(0), c = la(n);
10439
+ if ((c || !c && !l) && ((Ua(n) !== "body" || Nn(o)) && (s = $r(n)), la(n))) {
10440
10440
  const p = qa(n);
10441
- c = nn(n), u.x = p.x + n.clientLeft, u.y = p.y + n.clientTop;
10441
+ d = nn(n), u.x = p.x + n.clientLeft, u.y = p.y + n.clientTop;
10442
10442
  }
10443
- const f = o && !d && !l ? os(o, s, !0) : ra(0);
10443
+ const f = o && !c && !l ? os(o, s, !0) : ra(0);
10444
10444
  return {
10445
- width: a.width * c.x,
10446
- height: a.height * c.y,
10447
- x: a.x * c.x - s.scrollLeft * c.x + u.x + f.x,
10448
- y: a.y * c.y - s.scrollTop * c.y + u.y + f.y
10445
+ width: a.width * d.x,
10446
+ height: a.height * d.y,
10447
+ x: a.x * d.x - s.scrollLeft * d.x + u.x + f.x,
10448
+ y: a.y * d.y - s.scrollTop * d.y + u.y + f.y
10449
10449
  };
10450
10450
  }
10451
10451
  function ep(e) {
@@ -10467,8 +10467,8 @@ function ap(e, t) {
10467
10467
  let l = n.clientWidth, o = n.clientHeight, i = 0, s = 0;
10468
10468
  if (r) {
10469
10469
  l = r.width, o = r.height;
10470
- const c = Fl();
10471
- (!c || c && t === "fixed") && (i = r.offsetLeft, s = r.offsetTop);
10470
+ const d = Fl();
10471
+ (!d || d && t === "fixed") && (i = r.offsetLeft, s = r.offsetTop);
10472
10472
  }
10473
10473
  return {
10474
10474
  width: l,
@@ -10478,12 +10478,12 @@ function ap(e, t) {
10478
10478
  };
10479
10479
  }
10480
10480
  function np(e, t) {
10481
- const a = qa(e, !0, t === "fixed"), n = a.top + e.clientTop, r = a.left + e.clientLeft, l = la(e) ? nn(e) : ra(1), o = e.clientWidth * l.x, i = e.clientHeight * l.y, s = r * l.x, c = n * l.y;
10481
+ const a = qa(e, !0, t === "fixed"), n = a.top + e.clientTop, r = a.left + e.clientLeft, l = la(e) ? nn(e) : ra(1), o = e.clientWidth * l.x, i = e.clientHeight * l.y, s = r * l.x, d = n * l.y;
10482
10482
  return {
10483
10483
  width: o,
10484
10484
  height: i,
10485
10485
  x: s,
10486
- y: c
10486
+ y: d
10487
10487
  };
10488
10488
  }
10489
10489
  function Ao(e, t, a) {
@@ -10513,7 +10513,7 @@ function rp(e, t) {
10513
10513
  const a = t.get(e);
10514
10514
  if (a)
10515
10515
  return a;
10516
- let n = On(e, [], !1).filter((i) => Ut(i) && Ua(i) !== "body"), r = null;
10516
+ let n = An(e, [], !1).filter((i) => Ut(i) && Ua(i) !== "body"), r = null;
10517
10517
  const l = Qt(e).position === "fixed";
10518
10518
  let o = l ? Aa(e) : e;
10519
10519
  for (; Ut(o) && !fn(o); ) {
@@ -10529,9 +10529,9 @@ function lp(e) {
10529
10529
  rootBoundary: n,
10530
10530
  strategy: r
10531
10531
  } = e;
10532
- const o = [...a === "clippingAncestors" ? _r(t) ? [] : rp(t, this._c) : [].concat(a), n], i = o[0], s = o.reduce((c, u) => {
10533
- const d = Ao(t, u, r);
10534
- return c.top = Ha(d.top, c.top), c.right = nr(d.right, c.right), c.bottom = nr(d.bottom, c.bottom), c.left = Ha(d.left, c.left), c;
10532
+ const o = [...a === "clippingAncestors" ? _r(t) ? [] : rp(t, this._c) : [].concat(a), n], i = o[0], s = o.reduce((d, u) => {
10533
+ const c = Ao(t, u, r);
10534
+ return d.top = Ha(c.top, d.top), d.right = nr(c.right, d.right), d.bottom = nr(c.bottom, d.bottom), d.left = Ha(c.left, d.left), d;
10535
10535
  }, Ao(t, i, r));
10536
10536
  return {
10537
10537
  width: s.right - s.left,
@@ -10562,10 +10562,10 @@ function ip(e, t, a) {
10562
10562
  const f = qa(t, !0, l, t);
10563
10563
  s.x = f.x + t.clientLeft, s.y = f.y + t.clientTop;
10564
10564
  } else r && (s.x = Hl(r));
10565
- const c = r && !n && !l ? os(r, i) : ra(0), u = o.left + i.scrollLeft - s.x - c.x, d = o.top + i.scrollTop - s.y - c.y;
10565
+ const d = r && !n && !l ? os(r, i) : ra(0), u = o.left + i.scrollLeft - s.x - d.x, c = o.top + i.scrollTop - s.y - d.y;
10566
10566
  return {
10567
10567
  x: u,
10568
- y: d,
10568
+ y: c,
10569
10569
  width: o.width,
10570
10570
  height: o.height
10571
10571
  };
@@ -10638,15 +10638,15 @@ function cp(e, t) {
10638
10638
  }
10639
10639
  function o(i, s) {
10640
10640
  i === void 0 && (i = !1), s === void 0 && (s = 1), l();
10641
- const c = e.getBoundingClientRect(), {
10641
+ const d = e.getBoundingClientRect(), {
10642
10642
  left: u,
10643
- top: d,
10643
+ top: c,
10644
10644
  width: f,
10645
10645
  height: p
10646
- } = c;
10646
+ } = d;
10647
10647
  if (i || t(), !f || !p)
10648
10648
  return;
10649
- const h = Wn(d), g = Wn(r.clientWidth - (u + f)), b = Wn(r.clientHeight - (d + p)), k = Wn(u), w = {
10649
+ const h = Wn(c), g = Wn(r.clientWidth - (u + f)), b = Wn(r.clientHeight - (c + p)), k = Wn(u), w = {
10650
10650
  rootMargin: -h + "px " + -g + "px " + -b + "px " + -k + "px",
10651
10651
  threshold: Ha(0, nr(1, s)) || 1
10652
10652
  };
@@ -10660,7 +10660,7 @@ function cp(e, t) {
10660
10660
  o(!1, 1e-7);
10661
10661
  }, 1e3);
10662
10662
  }
10663
- x === 1 && !us(c, e.getBoundingClientRect()) && o(), P = !1;
10663
+ x === 1 && !us(d, e.getBoundingClientRect()) && o(), P = !1;
10664
10664
  }
10665
10665
  try {
10666
10666
  a = new IntersectionObserver(T, {
@@ -10683,21 +10683,21 @@ function ds(e, t, a, n) {
10683
10683
  elementResize: o = typeof ResizeObserver == "function",
10684
10684
  layoutShift: i = typeof IntersectionObserver == "function",
10685
10685
  animationFrame: s = !1
10686
- } = n, c = Vl(e), u = r || l ? [...c ? On(c) : [], ...On(t)] : [];
10686
+ } = n, d = Vl(e), u = r || l ? [...d ? An(d) : [], ...An(t)] : [];
10687
10687
  u.forEach((k) => {
10688
10688
  r && k.addEventListener("scroll", a, {
10689
10689
  passive: !0
10690
10690
  }), l && k.addEventListener("resize", a);
10691
10691
  });
10692
- const d = c && i ? cp(c, a) : null;
10692
+ const c = d && i ? cp(d, a) : null;
10693
10693
  let f = -1, p = null;
10694
10694
  o && (p = new ResizeObserver((k) => {
10695
10695
  let [_] = k;
10696
- _ && _.target === c && p && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
10696
+ _ && _.target === d && p && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
10697
10697
  var w;
10698
10698
  (w = p) == null || w.observe(t);
10699
10699
  })), a();
10700
- }), c && !s && p.observe(c), p.observe(t));
10700
+ }), d && !s && p.observe(d), p.observe(t));
10701
10701
  let h, g = s ? qa(e) : null;
10702
10702
  s && b();
10703
10703
  function b() {
@@ -10708,7 +10708,7 @@ function ds(e, t, a, n) {
10708
10708
  var k;
10709
10709
  u.forEach((_) => {
10710
10710
  r && _.removeEventListener("scroll", a), l && _.removeEventListener("resize", a);
10711
- }), d == null || d(), (k = p) == null || k.disconnect(), p = null, s && cancelAnimationFrame(h);
10711
+ }), c == null || c(), (k = p) == null || k.disconnect(), p = null, s && cancelAnimationFrame(h);
10712
10712
  };
10713
10713
  }
10714
10714
  const cs = Um, fs = Qm, vs = qm, fp = (e, t, a) => {
@@ -10734,7 +10734,7 @@ function So(e) {
10734
10734
  }
10735
10735
  return e;
10736
10736
  }
10737
- function kn(e) {
10737
+ function _n(e) {
10738
10738
  return typeof e == "function" ? e() : v(e);
10739
10739
  }
10740
10740
  function ms(e) {
@@ -10748,17 +10748,17 @@ function ps(e, t, a) {
10748
10748
  a === void 0 && (a = {});
10749
10749
  const n = a.whileElementsMounted, r = O(() => {
10750
10750
  var x;
10751
- return (x = kn(a.open)) != null ? x : !0;
10752
- }), l = O(() => kn(a.middleware)), o = O(() => {
10751
+ return (x = _n(a.open)) != null ? x : !0;
10752
+ }), l = O(() => _n(a.middleware)), o = O(() => {
10753
10753
  var x;
10754
- return (x = kn(a.placement)) != null ? x : "bottom";
10754
+ return (x = _n(a.placement)) != null ? x : "bottom";
10755
10755
  }), i = O(() => {
10756
10756
  var x;
10757
- return (x = kn(a.strategy)) != null ? x : "absolute";
10757
+ return (x = _n(a.strategy)) != null ? x : "absolute";
10758
10758
  }), s = O(() => {
10759
10759
  var x;
10760
- return (x = kn(a.transform)) != null ? x : !0;
10761
- }), c = O(() => So(e.value)), u = O(() => So(t.value)), d = E(0), f = E(0), p = E(i.value), h = E(o.value), g = Qe({}), b = E(!1), k = O(() => {
10760
+ return (x = _n(a.transform)) != null ? x : !0;
10761
+ }), d = O(() => So(e.value)), u = O(() => So(t.value)), c = E(0), f = E(0), p = E(i.value), h = E(o.value), g = Qe({}), b = E(!1), k = O(() => {
10762
10762
  const x = {
10763
10763
  position: p.value,
10764
10764
  left: "0",
@@ -10766,7 +10766,7 @@ function ps(e, t, a) {
10766
10766
  };
10767
10767
  if (!u.value)
10768
10768
  return x;
10769
- const F = Bo(u.value, d.value), R = Bo(u.value, f.value);
10769
+ const F = Bo(u.value, c.value), R = Bo(u.value, f.value);
10770
10770
  return s.value ? {
10771
10771
  ...x,
10772
10772
  transform: "translate(" + F + "px, " + R + "px)",
@@ -10781,15 +10781,15 @@ function ps(e, t, a) {
10781
10781
  });
10782
10782
  let _;
10783
10783
  function w() {
10784
- if (c.value == null || u.value == null)
10784
+ if (d.value == null || u.value == null)
10785
10785
  return;
10786
10786
  const x = r.value;
10787
- fp(c.value, u.value, {
10787
+ fp(d.value, u.value, {
10788
10788
  middleware: l.value,
10789
10789
  placement: o.value,
10790
10790
  strategy: i.value
10791
10791
  }).then((F) => {
10792
- d.value = F.x, f.value = F.y, p.value = F.strategy, h.value = F.placement, g.value = F.middlewareData, b.value = x !== !1;
10792
+ c.value = F.x, f.value = F.y, p.value = F.strategy, h.value = F.placement, g.value = F.middlewareData, b.value = x !== !1;
10793
10793
  });
10794
10794
  }
10795
10795
  function P() {
@@ -10800,8 +10800,8 @@ function ps(e, t, a) {
10800
10800
  w();
10801
10801
  return;
10802
10802
  }
10803
- if (c.value != null && u.value != null) {
10804
- _ = n(c.value, u.value, w);
10803
+ if (d.value != null && u.value != null) {
10804
+ _ = n(d.value, u.value, w);
10805
10805
  return;
10806
10806
  }
10807
10807
  }
@@ -10810,12 +10810,12 @@ function ps(e, t, a) {
10810
10810
  }
10811
10811
  return Ae([l, o, i, r], w, {
10812
10812
  flush: "sync"
10813
- }), Ae([c, u], T, {
10813
+ }), Ae([d, u], T, {
10814
10814
  flush: "sync"
10815
10815
  }), Ae(r, M, {
10816
10816
  flush: "sync"
10817
10817
  }), sr() && ur(P), {
10818
- x: Ia(d),
10818
+ x: Ia(c),
10819
10819
  y: Ia(f),
10820
10820
  strategy: Ia(p),
10821
10821
  placement: Ia(h),
@@ -10855,16 +10855,16 @@ const py = /* @__PURE__ */ ie({
10855
10855
  fs(),
10856
10856
  vs()
10857
10857
  ]
10858
- }), c = O(() => {
10858
+ }), d = O(() => {
10859
10859
  if (e.transitionName !== "none")
10860
10860
  return e.transitionName ? e.transitionName : oi(e.confirmPlacement);
10861
10861
  });
10862
- return (u, d) => (y(), D(be, null, [
10862
+ return (u, c) => (y(), D(be, null, [
10863
10863
  U("div", {
10864
10864
  ref: "anchor",
10865
10865
  class: "vui-clipboard-copy-wrap",
10866
10866
  role: "button",
10867
- onClick: d[0] || (d[0] = (f) => v(t)(u.text))
10867
+ onClick: c[0] || (c[0] = (f) => v(t)(u.text))
10868
10868
  }, [
10869
10869
  I(u.$slots, "default", {
10870
10870
  copy: v(t),
@@ -10872,7 +10872,7 @@ const py = /* @__PURE__ */ ie({
10872
10872
  })
10873
10873
  ], 512),
10874
10874
  he(Gt, {
10875
- name: c.value,
10875
+ name: d.value,
10876
10876
  mode: "in-out"
10877
10877
  }, {
10878
10878
  default: q(() => [
@@ -10893,7 +10893,7 @@ const py = /* @__PURE__ */ ie({
10893
10893
  }, {
10894
10894
  default: q(() => [
10895
10895
  he(v(Xs)),
10896
- d[1] || (d[1] = We(" Copied to clipboard "))
10896
+ c[1] || (c[1] = We(" Copied to clipboard "))
10897
10897
  ]),
10898
10898
  _: 1
10899
10899
  }))
@@ -10913,7 +10913,7 @@ const mp = ie({
10913
10913
  inheritAttrs: !1,
10914
10914
  setup(e, { attrs: t, slots: a }) {
10915
10915
  return () => {
10916
- var s, c;
10916
+ var s, d;
10917
10917
  if (!a.default)
10918
10918
  return null;
10919
10919
  const n = Wl(a.default()), r = n.findIndex((u) => u.type !== Ys);
@@ -10922,7 +10922,7 @@ const mp = ie({
10922
10922
  const l = n[r];
10923
10923
  (s = l.props) == null || delete s.ref;
10924
10924
  const o = l.props ? Se(t, l.props) : t;
10925
- t.class && ((c = l.props) != null && c.class) && delete l.props.class;
10925
+ t.class && ((d = l.props) != null && d.class) && delete l.props.class;
10926
10926
  const i = Fs(l, o);
10927
10927
  for (const u in o)
10928
10928
  u.startsWith("on") && (i.props || (i.props = {}), i.props[u] = o[u]);
@@ -10997,28 +10997,28 @@ function xr(e) {
10997
10997
  function ys(...e) {
10998
10998
  const t = [], a = () => {
10999
10999
  t.forEach((i) => i()), t.length = 0;
11000
- }, n = (i, s, c, u) => (i.addEventListener(s, c, u), () => i.removeEventListener(s, c, u)), r = O(() => {
11000
+ }, n = (i, s, d, u) => (i.addEventListener(s, d, u), () => i.removeEventListener(s, d, u)), r = O(() => {
11001
11001
  const i = qr(qe(e[0])).filter((s) => s != null);
11002
11002
  return i.every((s) => typeof s != "string") ? i : void 0;
11003
11003
  }), l = Dp(
11004
11004
  () => {
11005
11005
  var i, s;
11006
11006
  return [
11007
- (s = (i = r.value) == null ? void 0 : i.map((c) => xr(c))) != null ? s : [zl].filter((c) => c != null),
11007
+ (s = (i = r.value) == null ? void 0 : i.map((d) => xr(d))) != null ? s : [zl].filter((d) => d != null),
11008
11008
  qr(qe(r.value ? e[1] : e[0])),
11009
11009
  qr(v(r.value ? e[2] : e[1])),
11010
11010
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
11011
11011
  qe(r.value ? e[3] : e[2])
11012
11012
  ];
11013
11013
  },
11014
- ([i, s, c, u]) => {
11015
- if (a(), !(i != null && i.length) || !(s != null && s.length) || !(c != null && c.length))
11014
+ ([i, s, d, u]) => {
11015
+ if (a(), !(i != null && i.length) || !(s != null && s.length) || !(d != null && d.length))
11016
11016
  return;
11017
- const d = bp(u) ? { ...u } : u;
11017
+ const c = bp(u) ? { ...u } : u;
11018
11018
  t.push(
11019
11019
  ...i.flatMap(
11020
11020
  (f) => s.flatMap(
11021
- (p) => c.map((h) => n(f, p, h, d))
11021
+ (p) => d.map((h) => n(f, p, h, c))
11022
11022
  )
11023
11023
  )
11024
11024
  );
@@ -11059,14 +11059,14 @@ function Op(e, t, a, n = {}) {
11059
11059
  const {
11060
11060
  clone: i = !1,
11061
11061
  passive: s = !1,
11062
- eventName: c,
11062
+ eventName: d,
11063
11063
  deep: u = !1,
11064
- defaultValue: d,
11064
+ defaultValue: c,
11065
11065
  shouldEmit: f
11066
11066
  } = n, p = Kt(), h = a || (p == null ? void 0 : p.emit) || ((r = p == null ? void 0 : p.$emit) == null ? void 0 : r.bind(p)) || ((o = (l = p == null ? void 0 : p.proxy) == null ? void 0 : l.$emit) == null ? void 0 : o.bind(p == null ? void 0 : p.proxy));
11067
- let g = c;
11067
+ let g = d;
11068
11068
  g = g || `update:${t.toString()}`;
11069
- const b = (w) => i ? typeof i == "function" ? i(w) : Pp(w) : w, k = () => gp(e[t]) ? b(e[t]) : d, _ = (w) => {
11069
+ const b = (w) => i ? typeof i == "function" ? i(w) : Pp(w) : w, k = () => gp(e[t]) ? b(e[t]) : c, _ = (w) => {
11070
11070
  f ? f(w) && h(g, w) : h(g, w);
11071
11071
  };
11072
11072
  if (s) {
@@ -11161,7 +11161,7 @@ function Sp(e, t) {
11161
11161
  var b;
11162
11162
  const a = E({}), n = E("none"), r = E(e), l = e.value ? "mounted" : "unmounted";
11163
11163
  let o;
11164
- const i = ((b = t.value) == null ? void 0 : b.ownerDocument.defaultView) ?? zl, { state: s, dispatch: c } = Cp(l, {
11164
+ const i = ((b = t.value) == null ? void 0 : b.ownerDocument.defaultView) ?? zl, { state: s, dispatch: d } = Cp(l, {
11165
11165
  mounted: {
11166
11166
  UNMOUNT: "unmounted",
11167
11167
  ANIMATION_OUT: "unmountSuspended"
@@ -11187,29 +11187,29 @@ function Sp(e, t) {
11187
11187
  const w = _ !== k;
11188
11188
  if (await et(), w) {
11189
11189
  const T = n.value, M = zn(t.value);
11190
- k ? (c("MOUNT"), u("enter"), M === "none" && u("after-enter")) : M === "none" || M === "undefined" || ((P = a.value) == null ? void 0 : P.display) === "none" ? (c("UNMOUNT"), u("leave"), u("after-leave")) : _ && T !== M ? (c("ANIMATION_OUT"), u("leave")) : (c("UNMOUNT"), u("after-leave"));
11190
+ k ? (d("MOUNT"), u("enter"), M === "none" && u("after-enter")) : M === "none" || M === "undefined" || ((P = a.value) == null ? void 0 : P.display) === "none" ? (d("UNMOUNT"), u("leave"), u("after-leave")) : _ && T !== M ? (d("ANIMATION_OUT"), u("leave")) : (d("UNMOUNT"), u("after-leave"));
11191
11191
  }
11192
11192
  },
11193
11193
  { immediate: !0 }
11194
11194
  );
11195
- const d = (k) => {
11195
+ const c = (k) => {
11196
11196
  const _ = zn(t.value), w = _.includes(
11197
11197
  k.animationName
11198
11198
  ), P = s.value === "mounted" ? "enter" : "leave";
11199
- if (k.target === t.value && w && (u(`after-${P}`), c("ANIMATION_END"), !r.value)) {
11199
+ if (k.target === t.value && w && (u(`after-${P}`), d("ANIMATION_END"), !r.value)) {
11200
11200
  const T = t.value.style.animationFillMode;
11201
11201
  t.value.style.animationFillMode = "forwards", o = i == null ? void 0 : i.setTimeout(() => {
11202
11202
  var M;
11203
11203
  ((M = t.value) == null ? void 0 : M.style.animationFillMode) === "forwards" && (t.value.style.animationFillMode = T);
11204
11204
  });
11205
11205
  }
11206
- k.target === t.value && _ === "none" && c("ANIMATION_END");
11206
+ k.target === t.value && _ === "none" && d("ANIMATION_END");
11207
11207
  }, f = (k) => {
11208
11208
  k.target === t.value && (n.value = zn(t.value));
11209
11209
  }, p = Ae(
11210
11210
  t,
11211
11211
  (k, _) => {
11212
- k ? (a.value = getComputedStyle(k), k.addEventListener("animationstart", f), k.addEventListener("animationcancel", d), k.addEventListener("animationend", d)) : (c("ANIMATION_END"), o !== void 0 && (i == null || i.clearTimeout(o)), _ == null || _.removeEventListener("animationstart", f), _ == null || _.removeEventListener("animationcancel", d), _ == null || _.removeEventListener("animationend", d));
11212
+ k ? (a.value = getComputedStyle(k), k.addEventListener("animationstart", f), k.addEventListener("animationcancel", c), k.addEventListener("animationend", c)) : (d("ANIMATION_END"), o !== void 0 && (i == null || i.clearTimeout(o)), _ == null || _.removeEventListener("animationstart", f), _ == null || _.removeEventListener("animationcancel", c), _ == null || _.removeEventListener("animationend", c));
11213
11213
  },
11214
11214
  { immediate: !0 }
11215
11215
  ), h = Ae(s, () => {
@@ -11240,14 +11240,14 @@ const ws = ie({
11240
11240
  },
11241
11241
  slots: {},
11242
11242
  setup(e, { slots: t, expose: a }) {
11243
- var c;
11243
+ var d;
11244
11244
  const { present: n, forceMount: r } = fl(e), l = E(), { isPresent: o } = Sp(n, l);
11245
11245
  a({ present: o });
11246
11246
  let i = t.default({ present: o.value });
11247
11247
  i = Wl(i || []);
11248
11248
  const s = Kt();
11249
11249
  if (i && (i == null ? void 0 : i.length) > 1) {
11250
- const u = (c = s == null ? void 0 : s.parent) != null && c.type.name ? `<${s.parent.type.name} />` : "component";
11250
+ const u = (d = s == null ? void 0 : s.parent) != null && d.type.name ? `<${s.parent.type.name} />` : "component";
11251
11251
  throw new Error(
11252
11252
  [
11253
11253
  `Detected an invalid children for \`${u}\` for \`Presence\` component.`,
@@ -11257,7 +11257,7 @@ const ws = ie({
11257
11257
  [
11258
11258
  "Provide a single child element so that `presence` directive attach correctly.",
11259
11259
  "Ensure the first child is an actual element instead of a raw text node or comment node."
11260
- ].map((d) => ` - ${d}`).join(`
11260
+ ].map((c) => ` - ${c}`).join(`
11261
11261
  `)
11262
11262
  ].join(`
11263
11263
  `)
@@ -11265,8 +11265,8 @@ const ws = ie({
11265
11265
  }
11266
11266
  return () => r.value || n.value || o.value ? Vt(t.default({ present: o.value })[0], {
11267
11267
  ref: (u) => {
11268
- const d = xr(u);
11269
- return typeof (d == null ? void 0 : d.hasAttribute) > "u" || (d != null && d.hasAttribute("data-reka-popper-content-wrapper") ? l.value = d.firstElementChild : l.value = d), d;
11268
+ const c = xr(u);
11269
+ return typeof (c == null ? void 0 : c.hasAttribute) > "u" || (c != null && c.hasAttribute("data-reka-popper-content-wrapper") ? l.value = c.firstElementChild : l.value = c), c;
11270
11270
  }
11271
11271
  }) : null;
11272
11272
  }
@@ -11310,7 +11310,7 @@ const [Ka, Bp] = ql("DialogRoot"), Rp = /* @__PURE__ */ ie({
11310
11310
  descriptionId: "",
11311
11311
  triggerElement: l,
11312
11312
  contentElement: o
11313
- }), (s, c) => I(s.$slots, "default", { open: v(r) });
11313
+ }), (s, d) => I(s.$slots, "default", { open: v(r) });
11314
11314
  }
11315
11315
  }), Ep = /* @__PURE__ */ ie({
11316
11316
  __name: "Teleport",
@@ -11322,7 +11322,7 @@ const [Ka, Bp] = ql("DialogRoot"), Rp = /* @__PURE__ */ ie({
11322
11322
  },
11323
11323
  setup(e) {
11324
11324
  const t = xp();
11325
- return (a, n) => v(t) || a.forceMount ? (y(), te(An, {
11325
+ return (a, n) => v(t) || a.forceMount ? (y(), te(mn, {
11326
11326
  key: 0,
11327
11327
  to: a.to,
11328
11328
  disabled: a.disabled,
@@ -11358,25 +11358,25 @@ function Np(e, t) {
11358
11358
  return Mt((o) => {
11359
11359
  if (!Qa)
11360
11360
  return;
11361
- const i = async (c) => {
11362
- const u = c.target;
11361
+ const i = async (d) => {
11362
+ const u = d.target;
11363
11363
  if (t != null && t.value) {
11364
11364
  if (ks(t.value, u)) {
11365
11365
  n.value = !1;
11366
11366
  return;
11367
11367
  }
11368
- if (c.target && !n.value) {
11369
- let d = function() {
11368
+ if (d.target && !n.value) {
11369
+ let c = function() {
11370
11370
  bs(
11371
11371
  Ip,
11372
11372
  e,
11373
11373
  f
11374
11374
  );
11375
11375
  };
11376
- const f = { originalEvent: c };
11377
- c.pointerType === "touch" ? (a.removeEventListener("click", r.value), r.value = d, a.addEventListener("click", r.value, {
11376
+ const f = { originalEvent: d };
11377
+ d.pointerType === "touch" ? (a.removeEventListener("click", r.value), r.value = c, a.addEventListener("click", r.value, {
11378
11378
  once: !0
11379
- })) : d();
11379
+ })) : c();
11380
11380
  } else
11381
11381
  a.removeEventListener("click", r.value);
11382
11382
  n.value = !1;
@@ -11428,10 +11428,10 @@ const da = va({
11428
11428
  var h;
11429
11429
  return ((h = l.value) == null ? void 0 : h.ownerDocument) ?? globalThis.document;
11430
11430
  }
11431
- ), i = O(() => da.layersRoot), s = O(() => l.value ? Array.from(i.value).indexOf(l.value) : -1), c = O(() => da.layersWithOutsidePointerEventsDisabled.size > 0), u = O(() => {
11431
+ ), i = O(() => da.layersRoot), s = O(() => l.value ? Array.from(i.value).indexOf(l.value) : -1), d = O(() => da.layersWithOutsidePointerEventsDisabled.size > 0), u = O(() => {
11432
11432
  const h = Array.from(i.value), [g] = [...da.layersWithOutsidePointerEventsDisabled].slice(-1), b = h.indexOf(g);
11433
11433
  return s.value >= b;
11434
- }), d = Np(async (h) => {
11434
+ }), c = Np(async (h) => {
11435
11435
  const g = [...da.branches].some(
11436
11436
  (b) => b == null ? void 0 : b.contains(h.target)
11437
11437
  );
@@ -11459,11 +11459,11 @@ const da = va({
11459
11459
  as: h.as,
11460
11460
  "data-dismissable-layer": "",
11461
11461
  style: Ve({
11462
- pointerEvents: c.value ? u.value ? "auto" : "none" : void 0
11462
+ pointerEvents: d.value ? u.value ? "auto" : "none" : void 0
11463
11463
  }),
11464
11464
  onFocusCapture: v(f).onFocusCapture,
11465
11465
  onBlurCapture: v(f).onBlurCapture,
11466
- onPointerdownCapture: v(d).onPointerDownCapture
11466
+ onPointerdownCapture: v(c).onPointerDownCapture
11467
11467
  }, {
11468
11468
  default: q(() => [
11469
11469
  I(h.$slots, "default")
@@ -11500,8 +11500,8 @@ For more information, see https://www.reka-ui.com/docs/components/${a}`, i = `Wa
11500
11500
  Ye(() => {
11501
11501
  var u;
11502
11502
  document.getElementById(n) || console.warn(o);
11503
- const c = (u = l.value) == null ? void 0 : u.getAttribute("aria-describedby");
11504
- r && c && (document.getElementById(r) || console.warn(i));
11503
+ const d = (u = l.value) == null ? void 0 : u.getAttribute("aria-describedby");
11504
+ r && d && (document.getElementById(r) || console.warn(i));
11505
11505
  });
11506
11506
  }
11507
11507
  const jr = "focusScope.autoFocusOnMount", Ur = "focusScope.autoFocusOnUnmount", Io = { bubbles: !1, cancelable: !0 };
@@ -11594,67 +11594,67 @@ const Zp = /* @__PURE__ */ ie({
11594
11594
  Mt((u) => {
11595
11595
  if (!Qa)
11596
11596
  return;
11597
- const d = l.value;
11597
+ const c = l.value;
11598
11598
  if (!a.trapped)
11599
11599
  return;
11600
11600
  function f(b) {
11601
- if (s.paused || !d)
11601
+ if (s.paused || !c)
11602
11602
  return;
11603
11603
  const k = b.target;
11604
- d.contains(k) ? o.value = k : _a(o.value, { select: !0 });
11604
+ c.contains(k) ? o.value = k : _a(o.value, { select: !0 });
11605
11605
  }
11606
11606
  function p(b) {
11607
- if (s.paused || !d)
11607
+ if (s.paused || !c)
11608
11608
  return;
11609
11609
  const k = b.relatedTarget;
11610
- k !== null && (d.contains(k) || _a(o.value, { select: !0 }));
11610
+ k !== null && (c.contains(k) || _a(o.value, { select: !0 }));
11611
11611
  }
11612
11612
  function h(b) {
11613
- d.contains(o.value) || _a(d);
11613
+ c.contains(o.value) || _a(c);
11614
11614
  }
11615
11615
  document.addEventListener("focusin", f), document.addEventListener("focusout", p);
11616
11616
  const g = new MutationObserver(h);
11617
- d && g.observe(d, { childList: !0, subtree: !0 }), u(() => {
11617
+ c && g.observe(c, { childList: !0, subtree: !0 }), u(() => {
11618
11618
  document.removeEventListener("focusin", f), document.removeEventListener("focusout", p), g.disconnect();
11619
11619
  });
11620
11620
  }), Mt(async (u) => {
11621
- const d = l.value;
11622
- if (await et(), !d)
11621
+ const c = l.value;
11622
+ if (await et(), !c)
11623
11623
  return;
11624
11624
  i.add(s);
11625
11625
  const f = Ta();
11626
- if (!d.contains(f)) {
11626
+ if (!c.contains(f)) {
11627
11627
  const h = new CustomEvent(jr, Io);
11628
- d.addEventListener(jr, (g) => n("mountAutoFocus", g)), d.dispatchEvent(h), h.defaultPrevented || (qp(Xp(_s(d)), {
11628
+ c.addEventListener(jr, (g) => n("mountAutoFocus", g)), c.dispatchEvent(h), h.defaultPrevented || (qp(Xp(_s(c)), {
11629
11629
  select: !0
11630
- }), Ta() === f && _a(d));
11630
+ }), Ta() === f && _a(c));
11631
11631
  }
11632
11632
  u(() => {
11633
- d.removeEventListener(jr, (b) => n("mountAutoFocus", b));
11633
+ c.removeEventListener(jr, (b) => n("mountAutoFocus", b));
11634
11634
  const h = new CustomEvent(Ur, Io), g = (b) => {
11635
11635
  n("unmountAutoFocus", b);
11636
11636
  };
11637
- d.addEventListener(Ur, g), d.dispatchEvent(h), setTimeout(() => {
11638
- h.defaultPrevented || _a(f ?? document.body, { select: !0 }), d.removeEventListener(Ur, g), i.remove(s);
11637
+ c.addEventListener(Ur, g), c.dispatchEvent(h), setTimeout(() => {
11638
+ h.defaultPrevented || _a(f ?? document.body, { select: !0 }), c.removeEventListener(Ur, g), i.remove(s);
11639
11639
  }, 0);
11640
11640
  });
11641
11641
  });
11642
- function c(u) {
11642
+ function d(u) {
11643
11643
  if (!a.loop && !a.trapped || s.paused)
11644
11644
  return;
11645
- const d = u.key === "Tab" && !u.altKey && !u.ctrlKey && !u.metaKey, f = Ta();
11646
- if (d && f) {
11645
+ const c = u.key === "Tab" && !u.altKey && !u.ctrlKey && !u.metaKey, f = Ta();
11646
+ if (c && f) {
11647
11647
  const p = u.currentTarget, [h, g] = jp(p);
11648
11648
  h && g ? !u.shiftKey && f === g ? (u.preventDefault(), a.loop && _a(h, { select: !0 })) : u.shiftKey && f === h && (u.preventDefault(), a.loop && _a(g, { select: !0 })) : f === p && u.preventDefault();
11649
11649
  }
11650
11650
  }
11651
- return (u, d) => (y(), te(v(Dr), {
11651
+ return (u, c) => (y(), te(v(Dr), {
11652
11652
  ref_key: "currentRef",
11653
11653
  ref: r,
11654
11654
  tabindex: "-1",
11655
11655
  "as-child": u.asChild,
11656
11656
  as: u.as,
11657
- onKeydown: c
11657
+ onKeydown: d
11658
11658
  }, {
11659
11659
  default: q(() => [
11660
11660
  I(u.$slots, "default")
@@ -11687,8 +11687,8 @@ const Zp = /* @__PURE__ */ ie({
11687
11687
  "as-child": "",
11688
11688
  loop: "",
11689
11689
  trapped: a.trapFocus,
11690
- onMountAutoFocus: s[5] || (s[5] = (c) => n("openAutoFocus", c)),
11691
- onUnmountAutoFocus: s[6] || (s[6] = (c) => n("closeAutoFocus", c))
11690
+ onMountAutoFocus: s[5] || (s[5] = (d) => n("openAutoFocus", d)),
11691
+ onUnmountAutoFocus: s[6] || (s[6] = (d) => n("closeAutoFocus", d))
11692
11692
  }, {
11693
11693
  default: q(() => [
11694
11694
  he(v(Fp), Se({
@@ -11702,11 +11702,11 @@ const Zp = /* @__PURE__ */ ie({
11702
11702
  "aria-labelledby": v(r).titleId,
11703
11703
  "data-state": v(Vp)(v(r).open.value)
11704
11704
  }, i.$attrs, {
11705
- onDismiss: s[0] || (s[0] = (c) => v(r).onOpenChange(!1)),
11706
- onEscapeKeyDown: s[1] || (s[1] = (c) => n("escapeKeyDown", c)),
11707
- onFocusOutside: s[2] || (s[2] = (c) => n("focusOutside", c)),
11708
- onInteractOutside: s[3] || (s[3] = (c) => n("interactOutside", c)),
11709
- onPointerDownOutside: s[4] || (s[4] = (c) => n("pointerDownOutside", c))
11705
+ onDismiss: s[0] || (s[0] = (d) => v(r).onOpenChange(!1)),
11706
+ onEscapeKeyDown: s[1] || (s[1] = (d) => n("escapeKeyDown", d)),
11707
+ onFocusOutside: s[2] || (s[2] = (d) => n("focusOutside", d)),
11708
+ onInteractOutside: s[3] || (s[3] = (d) => n("interactOutside", d)),
11709
+ onPointerDownOutside: s[4] || (s[4] = (d) => n("pointerDownOutside", d))
11710
11710
  }), {
11711
11711
  default: q(() => [
11712
11712
  I(i.$slots, "default")
@@ -11737,12 +11737,12 @@ var Jp = function(e) {
11737
11737
  }, th = function(e, t, a, n) {
11738
11738
  var r = eh(t, Array.isArray(e) ? e : [e]);
11739
11739
  jn[a] || (jn[a] = /* @__PURE__ */ new WeakMap());
11740
- var l = jn[a], o = [], i = /* @__PURE__ */ new Set(), s = new Set(r), c = function(d) {
11741
- !d || i.has(d) || (i.add(d), c(d.parentNode));
11740
+ var l = jn[a], o = [], i = /* @__PURE__ */ new Set(), s = new Set(r), d = function(c) {
11741
+ !c || i.has(c) || (i.add(c), d(c.parentNode));
11742
11742
  };
11743
- r.forEach(c);
11744
- var u = function(d) {
11745
- !d || s.has(d) || Array.prototype.forEach.call(d.children, function(f) {
11743
+ r.forEach(d);
11744
+ var u = function(c) {
11745
+ !c || s.has(c) || Array.prototype.forEach.call(c.children, function(f) {
11746
11746
  if (i.has(f))
11747
11747
  u(f);
11748
11748
  else
@@ -11755,9 +11755,9 @@ var Jp = function(e) {
11755
11755
  });
11756
11756
  };
11757
11757
  return u(t), i.clear(), Qr++, function() {
11758
- o.forEach(function(d) {
11759
- var f = Ja.get(d) - 1, p = l.get(d) - 1;
11760
- Ja.set(d, f), l.set(d, p), f || (qn.has(d) || d.removeAttribute(n), qn.delete(d)), p || d.removeAttribute(a);
11758
+ o.forEach(function(c) {
11759
+ var f = Ja.get(c) - 1, p = l.get(c) - 1;
11760
+ Ja.set(c, f), l.set(c, p), f || (qn.has(c) || c.removeAttribute(n), qn.delete(c)), p || c.removeAttribute(a);
11761
11761
  }), Qr--, Qr || (Ja = /* @__PURE__ */ new WeakMap(), Ja = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap(), jn = {});
11762
11762
  };
11763
11763
  }, ah = function(e, t, a) {
@@ -11787,19 +11787,19 @@ const rh = /* @__PURE__ */ ie({
11787
11787
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
11788
11788
  setup(e, { emit: t }) {
11789
11789
  const a = e, n = t, r = Ka(), l = jl(n), { forwardRef: o, currentElement: i } = ya();
11790
- return nh(i), (s, c) => (y(), te($s, Se({ ...a, ...v(l) }, {
11790
+ return nh(i), (s, d) => (y(), te($s, Se({ ...a, ...v(l) }, {
11791
11791
  ref: v(o),
11792
11792
  "trap-focus": v(r).open.value,
11793
11793
  "disable-outside-pointer-events": !0,
11794
- onCloseAutoFocus: c[0] || (c[0] = (u) => {
11795
- var d;
11796
- u.defaultPrevented || (u.preventDefault(), (d = v(r).triggerElement.value) == null || d.focus());
11794
+ onCloseAutoFocus: d[0] || (d[0] = (u) => {
11795
+ var c;
11796
+ u.defaultPrevented || (u.preventDefault(), (c = v(r).triggerElement.value) == null || c.focus());
11797
11797
  }),
11798
- onPointerDownOutside: c[1] || (c[1] = (u) => {
11799
- const d = u.detail.originalEvent, f = d.button === 0 && d.ctrlKey === !0;
11800
- (d.button === 2 || f) && u.preventDefault();
11798
+ onPointerDownOutside: d[1] || (d[1] = (u) => {
11799
+ const c = u.detail.originalEvent, f = c.button === 0 && c.ctrlKey === !0;
11800
+ (c.button === 2 || f) && u.preventDefault();
11801
11801
  }),
11802
- onFocusOutside: c[2] || (c[2] = (u) => {
11802
+ onFocusOutside: d[2] || (d[2] = (u) => {
11803
11803
  u.preventDefault();
11804
11804
  })
11805
11805
  }), {
@@ -11823,18 +11823,18 @@ const rh = /* @__PURE__ */ ie({
11823
11823
  const a = e, r = jl(t);
11824
11824
  ya();
11825
11825
  const l = Ka(), o = E(!1), i = E(!1);
11826
- return (s, c) => (y(), te($s, Se({ ...a, ...v(r) }, {
11826
+ return (s, d) => (y(), te($s, Se({ ...a, ...v(r) }, {
11827
11827
  "trap-focus": !1,
11828
11828
  "disable-outside-pointer-events": !1,
11829
- onCloseAutoFocus: c[0] || (c[0] = (u) => {
11830
- var d;
11831
- u.defaultPrevented || (o.value || (d = v(l).triggerElement.value) == null || d.focus(), u.preventDefault()), o.value = !1, i.value = !1;
11829
+ onCloseAutoFocus: d[0] || (d[0] = (u) => {
11830
+ var c;
11831
+ u.defaultPrevented || (o.value || (c = v(l).triggerElement.value) == null || c.focus(), u.preventDefault()), o.value = !1, i.value = !1;
11832
11832
  }),
11833
- onInteractOutside: c[1] || (c[1] = (u) => {
11833
+ onInteractOutside: d[1] || (d[1] = (u) => {
11834
11834
  var p;
11835
11835
  u.defaultPrevented || (o.value = !0, u.detail.originalEvent.type === "pointerdown" && (i.value = !0));
11836
- const d = u.target;
11837
- ((p = v(l).triggerElement.value) == null ? void 0 : p.contains(d)) && u.preventDefault(), u.detail.originalEvent.type === "focusin" && i.value && u.preventDefault();
11836
+ const c = u.target;
11837
+ ((p = v(l).triggerElement.value) == null ? void 0 : p.contains(c)) && u.preventDefault(), u.detail.originalEvent.type === "focusin" && i.value && u.preventDefault();
11838
11838
  })
11839
11839
  }), {
11840
11840
  default: q(() => [
@@ -11924,7 +11924,7 @@ const sh = ih(), uh = yp(() => {
11924
11924
  document.body.style.paddingRight = "", document.body.style.marginRight = "", document.body.style.pointerEvents = "", document.body.style.removeProperty("--scrollbar-width"), document.body.style.overflow = t.value ?? "", Ro && (r == null || r()), t.value = void 0;
11925
11925
  };
11926
11926
  return Ae(a, (o, i) => {
11927
- var d;
11927
+ var c;
11928
11928
  if (!Qa)
11929
11929
  return;
11930
11930
  if (!o) {
@@ -11932,10 +11932,10 @@ const sh = ih(), uh = yp(() => {
11932
11932
  return;
11933
11933
  }
11934
11934
  t.value === void 0 && (t.value = document.body.style.overflow);
11935
- const s = window.innerWidth - document.documentElement.clientWidth, c = { padding: s, margin: 0 }, u = (d = n.scrollBody) != null && d.value ? typeof n.scrollBody.value == "object" ? sh({
11935
+ const s = window.innerWidth - document.documentElement.clientWidth, d = { padding: s, margin: 0 }, u = (c = n.scrollBody) != null && c.value ? typeof n.scrollBody.value == "object" ? sh({
11936
11936
  padding: n.scrollBody.value.padding === !0 ? s : n.scrollBody.value.padding,
11937
11937
  margin: n.scrollBody.value.margin === !0 ? s : n.scrollBody.value.margin
11938
- }, c) : c : { padding: 0, margin: 0 };
11938
+ }, d) : d : { padding: 0, margin: 0 };
11939
11939
  s > 0 && (document.body.style.paddingRight = typeof u.padding == "number" ? `${u.padding}px` : String(u.padding), document.body.style.marginRight = typeof u.margin == "number" ? `${u.margin}px` : String(u.margin), document.body.style.setProperty("--scrollbar-width", `${s}px`), document.body.style.overflow = "hidden"), Ro && (r = ys(
11940
11940
  document,
11941
11941
  "touchmove",
@@ -12078,14 +12078,14 @@ function Yo(e, t, a, n = {}) {
12078
12078
  const {
12079
12079
  clone: i = !1,
12080
12080
  passive: s = !1,
12081
- eventName: c,
12081
+ eventName: d,
12082
12082
  deep: u = !1,
12083
- defaultValue: d,
12083
+ defaultValue: c,
12084
12084
  shouldEmit: f
12085
12085
  } = n, p = Kt(), h = a || (p == null ? void 0 : p.emit) || ((r = p == null ? void 0 : p.$emit) == null ? void 0 : r.bind(p)) || ((o = (l = p == null ? void 0 : p.proxy) == null ? void 0 : l.$emit) == null ? void 0 : o.bind(p == null ? void 0 : p.proxy));
12086
- let g = c;
12086
+ let g = d;
12087
12087
  t || (t = "modelValue"), g = g || `update:${t.toString()}`;
12088
- const b = (w) => i ? typeof i == "function" ? i(w) : gh(w) : w, k = () => yh(e[t]) ? b(e[t]) : d, _ = (w) => {
12088
+ const b = (w) => i ? typeof i == "function" ? i(w) : gh(w) : w, k = () => yh(e[t]) ? b(e[t]) : c, _ = (w) => {
12089
12089
  f ? f(w) && h(g, w) : h(g, w);
12090
12090
  };
12091
12091
  if (s) {
@@ -12197,11 +12197,11 @@ function xh({
12197
12197
  }), Uo(() => {
12198
12198
  typeof window < "u" && window.removeEventListener("resize", s);
12199
12199
  });
12200
- const c = O(
12200
+ const d = O(
12201
12201
  () => (t.value && e.value === t.value[t.value.length - 1]) ?? null
12202
12202
  ), u = O(
12203
12203
  () => t.value && t.value.length > 0 && ((r == null ? void 0 : r.value) || (r == null ? void 0 : r.value) === 0) && !Number.isNaN(r == null ? void 0 : r.value) && t.value[(r == null ? void 0 : r.value) ?? -1] === e.value || !t.value
12204
- ), d = O(
12204
+ ), c = O(
12205
12205
  () => {
12206
12206
  var _;
12207
12207
  return ((_ = t.value) == null ? void 0 : _.findIndex((w) => w === e.value)) ?? null;
@@ -12223,7 +12223,7 @@ function xh({
12223
12223
  ), p = O(
12224
12224
  () => {
12225
12225
  var _;
12226
- return d.value !== null ? (_ = f.value) == null ? void 0 : _[d.value] : null;
12226
+ return c.value !== null ? (_ = f.value) == null ? void 0 : _[c.value] : null;
12227
12227
  }
12228
12228
  ), h = (_) => {
12229
12229
  var w, P, T, M;
@@ -12265,7 +12265,7 @@ function xh({
12265
12265
  var M, x, F;
12266
12266
  if (r.value === void 0)
12267
12267
  return;
12268
- const R = o.value === "bottom" || o.value === "right" ? (p.value ?? 0) - _ : (p.value ?? 0) + _, V = d.value === r.value - 1, G = d.value === 0, le = _ > 0;
12268
+ const R = o.value === "bottom" || o.value === "right" ? (p.value ?? 0) - _ : (p.value ?? 0) + _, V = c.value === r.value - 1, G = c.value === 0, le = _ > 0;
12269
12269
  if (V && yt((M = n.value) == null ? void 0 : M.$el, {
12270
12270
  transition: `opacity ${at.DURATION}s cubic-bezier(${at.EASE.join(",")})`
12271
12271
  }), P > 2 && !le) {
@@ -12279,13 +12279,13 @@ function xh({
12279
12279
  const me = (x = f.value) == null ? void 0 : x.reduce((N, A) => typeof N != "number" || typeof A != "number" ? N : Math.abs(A - R) < Math.abs(N - R) ? A : N), S = ft(o.value) ? window.innerHeight : window.innerWidth;
12280
12280
  if (P > Ms && Math.abs(_) < S * 0.4) {
12281
12281
  const N = le ? 1 : -1;
12282
- if (N > 0 && c) {
12282
+ if (N > 0 && d) {
12283
12283
  h(f.value[(((F = t.value) == null ? void 0 : F.length) ?? 0) - 1]);
12284
12284
  return;
12285
12285
  }
12286
- if (G && N < 0 && T && w(), d.value === null)
12286
+ if (G && N < 0 && T && w(), c.value === null)
12287
12287
  return;
12288
- h(f.value[d.value + N]);
12288
+ h(f.value[c.value + N]);
12289
12289
  return;
12290
12290
  }
12291
12291
  h(me);
@@ -12300,23 +12300,23 @@ function xh({
12300
12300
  });
12301
12301
  }
12302
12302
  function k(_, w) {
12303
- if (!t.value || typeof d.value != "number" || !f.value || r.value === void 0)
12303
+ if (!t.value || typeof c.value != "number" || !f.value || r.value === void 0)
12304
12304
  return null;
12305
- const P = d.value === r.value - 1;
12306
- if (d.value >= r.value && w)
12305
+ const P = c.value === r.value - 1;
12306
+ if (c.value >= r.value && w)
12307
12307
  return 0;
12308
12308
  if (P && !w)
12309
12309
  return 1;
12310
12310
  if (!u.value && !P)
12311
12311
  return null;
12312
- const T = P ? d.value + 1 : d.value - 1, M = P ? f.value[T] - f.value[T - 1] : f.value[T + 1] - f.value[T], x = _ / Math.abs(M);
12312
+ const T = P ? c.value + 1 : c.value - 1, M = P ? f.value[T] - f.value[T - 1] : f.value[T + 1] - f.value[T], x = _ / Math.abs(M);
12313
12313
  return P ? 1 - x : x;
12314
12314
  }
12315
12315
  return {
12316
- isLastSnapPoint: c,
12316
+ isLastSnapPoint: d,
12317
12317
  shouldFade: u,
12318
12318
  getPercentageDragged: k,
12319
- activeSnapPointIndex: d,
12319
+ activeSnapPointIndex: c,
12320
12320
  onRelease: g,
12321
12321
  onDrag: b,
12322
12322
  snapPointsOffset: f
@@ -12325,21 +12325,21 @@ function xh({
12325
12325
  function Vo() {
12326
12326
  return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
12327
12327
  }
12328
- let _n = null;
12328
+ let $n = null;
12329
12329
  function Th(e) {
12330
12330
  const { isOpen: t, modal: a, nested: n, hasBeenOpened: r, preventScrollRestoration: l, noBodyStyles: o } = e, i = E(typeof window < "u" ? window.location.href : ""), s = E(0);
12331
- function c() {
12332
- if (Vo() && _n === null && t.value && !o.value) {
12333
- _n = {
12331
+ function d() {
12332
+ if (Vo() && $n === null && t.value && !o.value) {
12333
+ $n = {
12334
12334
  position: document.body.style.position,
12335
12335
  top: document.body.style.top,
12336
12336
  left: document.body.style.left,
12337
12337
  height: document.body.style.height
12338
12338
  };
12339
- const { scrollX: d, innerHeight: f } = window;
12339
+ const { scrollX: c, innerHeight: f } = window;
12340
12340
  document.body.style.setProperty("position", "fixed", "important"), Object.assign(document.body.style, {
12341
12341
  top: `${-s.value}px`,
12342
- left: `${-d}px`,
12342
+ left: `${-c}px`,
12343
12343
  right: "0px",
12344
12344
  height: "auto"
12345
12345
  }), setTimeout(() => {
@@ -12351,26 +12351,26 @@ function Th(e) {
12351
12351
  }
12352
12352
  }
12353
12353
  function u() {
12354
- if (Vo() && _n !== null && !o.value) {
12355
- const d = -Number.parseInt(document.body.style.top, 10), f = -Number.parseInt(document.body.style.left, 10);
12356
- Object.assign(document.body.style, _n), window.requestAnimationFrame(() => {
12354
+ if (Vo() && $n !== null && !o.value) {
12355
+ const c = -Number.parseInt(document.body.style.top, 10), f = -Number.parseInt(document.body.style.left, 10);
12356
+ Object.assign(document.body.style, $n), window.requestAnimationFrame(() => {
12357
12357
  if (l.value && i.value !== window.location.href) {
12358
12358
  i.value = window.location.href;
12359
12359
  return;
12360
12360
  }
12361
- window.scrollTo(f, d);
12362
- }), _n = null;
12361
+ window.scrollTo(f, c);
12362
+ }), $n = null;
12363
12363
  }
12364
12364
  }
12365
12365
  return Ye(() => {
12366
- function d() {
12366
+ function c() {
12367
12367
  s.value = window.scrollY;
12368
12368
  }
12369
- d(), window.addEventListener("scroll", d), ha(() => {
12370
- window.removeEventListener("scroll", d);
12369
+ c(), window.addEventListener("scroll", c), ha(() => {
12370
+ window.removeEventListener("scroll", c);
12371
12371
  });
12372
12372
  }), Ae([t, r, i], () => {
12373
- n.value || !r.value || (t.value ? (window.matchMedia("(display-mode: standalone)").matches || c(), a.value || setTimeout(() => {
12373
+ n.value || !r.value || (t.value ? (window.matchMedia("(display-mode: standalone)").matches || d(), a.value || setTimeout(() => {
12374
12374
  u();
12375
12375
  }, 500)) : u());
12376
12376
  }), { restorePositionSetting: u };
@@ -12388,9 +12388,9 @@ function Ph(e) {
12388
12388
  dismissible: o,
12389
12389
  nested: i,
12390
12390
  modal: s,
12391
- shouldScaleBackground: c,
12391
+ shouldScaleBackground: d,
12392
12392
  setBackgroundColorOnScale: u,
12393
- scrollLockTimeout: d,
12393
+ scrollLockTimeout: c,
12394
12394
  closeThreshold: f,
12395
12395
  activeSnapPoint: p,
12396
12396
  fadeFromIndex: h,
@@ -12457,7 +12457,7 @@ function Ph(e) {
12457
12457
  return !0;
12458
12458
  if (Be && Be.length > 0)
12459
12459
  return !1;
12460
- if (G.value && oe.getTime() - G.value.getTime() < d.value && B === 0 || _e)
12460
+ if (G.value && oe.getTime() - G.value.getTime() < c.value && B === 0 || _e)
12461
12461
  return G.value = oe, !1;
12462
12462
  for (; xe; ) {
12463
12463
  if (xe.scrollHeight > xe.clientHeight) {
@@ -12495,15 +12495,15 @@ function Ph(e) {
12495
12495
  });
12496
12496
  return;
12497
12497
  }
12498
- const yn = 1 - Lt;
12498
+ const gn = 1 - Lt;
12499
12499
  if ((X.value || h.value && z.value === h.value - 1) && (t(Lt), yt(
12500
12500
  (B = x.value) == null ? void 0 : B.$el,
12501
12501
  {
12502
- opacity: `${yn}`,
12502
+ opacity: `${gn}`,
12503
12503
  transition: "none"
12504
12504
  },
12505
12505
  !0
12506
- )), Ot && x.value && c.value) {
12506
+ )), Ot && x.value && d.value) {
12507
12507
  const Nt = Math.min(H() + Lt * (1 - H()), 1), ga = 8 - Lt * 8, Ga = Math.max(0, 14 - Lt * 14);
12508
12508
  yt(
12509
12509
  Ot,
@@ -12534,7 +12534,7 @@ function Ph(e) {
12534
12534
  }), yt((K = x.value) == null ? void 0 : K.$el, {
12535
12535
  transition: `opacity ${at.DURATION}s cubic-bezier(${at.EASE.join(",")})`,
12536
12536
  opacity: "1"
12537
- }), c.value && $e && $e > 0 && w.value && yt(
12537
+ }), d.value && $e && $e > 0 && w.value && yt(
12538
12538
  _e,
12539
12539
  {
12540
12540
  borderRadius: `${Ps}px`,
@@ -12559,7 +12559,7 @@ function Ph(e) {
12559
12559
  }, at.DURATION * 1e3));
12560
12560
  }
12561
12561
  Mt(() => {
12562
- if (!w.value && c.value && hh) {
12562
+ if (!w.value && d.value && hh) {
12563
12563
  const K = setTimeout(() => {
12564
12564
  bh(document.body);
12565
12565
  }, 200);
@@ -12664,7 +12664,7 @@ function Ph(e) {
12664
12664
  direction: g,
12665
12665
  shouldFade: X,
12666
12666
  fadeFromIndex: h,
12667
- shouldScaleBackground: c,
12667
+ shouldScaleBackground: d,
12668
12668
  setBackgroundColorOnScale: u,
12669
12669
  onPress: Fe,
12670
12670
  onDrag: j,
@@ -12721,7 +12721,7 @@ const Oh = /* @__PURE__ */ ie({
12721
12721
  r("animationEnd", h);
12722
12722
  }, at.DURATION * 1e3);
12723
12723
  }
12724
- }, { closeDrawer: c, hasBeenOpened: u, modal: d, isOpen: f } = wh(
12724
+ }, { closeDrawer: d, hasBeenOpened: u, modal: c, isOpen: f } = wh(
12725
12725
  Ph({
12726
12726
  ...s,
12727
12727
  ...fl(n),
@@ -12735,13 +12735,13 @@ const Oh = /* @__PURE__ */ ie({
12735
12735
  s.emitOpenChange(h);
12736
12736
  return;
12737
12737
  }
12738
- f.value = h, h ? u.value = !0 : c();
12738
+ f.value = h, h ? u.value = !0 : d();
12739
12739
  }
12740
12740
  return t({
12741
12741
  open: f
12742
12742
  }), (h, g) => (y(), te(v(Rp), {
12743
12743
  open: v(f),
12744
- modal: v(d),
12744
+ modal: v(c),
12745
12745
  "onUpdate:open": p
12746
12746
  }, {
12747
12747
  default: q(() => [
@@ -12772,19 +12772,19 @@ function Sh() {
12772
12772
  Mt((s) => {
12773
12773
  if (t.value && a.value) {
12774
12774
  l.value && clearTimeout(l.value);
12775
- const c = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
12776
- if (!c)
12775
+ const d = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
12776
+ if (!d)
12777
12777
  return;
12778
12778
  _h(
12779
12779
  n.value && !r.value ? Gr(document.body, { background: "black" }) : Ch,
12780
- Gr(c, {
12780
+ Gr(d, {
12781
12781
  transformOrigin: ft(e.value) ? "top" : "left",
12782
12782
  transitionProperty: "transform, border-radius",
12783
12783
  transitionDuration: `${at.DURATION}s`,
12784
12784
  transitionTimingFunction: `cubic-bezier(${at.EASE.join(",")})`
12785
12785
  })
12786
12786
  );
12787
- const u = Gr(c, {
12787
+ const u = Gr(d, {
12788
12788
  borderRadius: `${Ps}px`,
12789
12789
  overflow: "hidden",
12790
12790
  ...ft(e.value) ? {
@@ -12813,9 +12813,9 @@ const Bh = /* @__PURE__ */ ie({
12813
12813
  onPress: o,
12814
12814
  onDrag: i,
12815
12815
  onRelease: s,
12816
- modal: c,
12816
+ modal: d,
12817
12817
  emitOpenChange: u,
12818
- dismissible: d,
12818
+ dismissible: c,
12819
12819
  keyboardIsOpen: f,
12820
12820
  closeDrawer: p,
12821
12821
  direction: h,
@@ -12824,11 +12824,11 @@ const Bh = /* @__PURE__ */ ie({
12824
12824
  Sh();
12825
12825
  const b = E(!1), k = O(() => n.value && n.value.length > 0 ? `${n.value[0]}px` : "0");
12826
12826
  function _(T) {
12827
- if (!c.value || T.defaultPrevented) {
12827
+ if (!d.value || T.defaultPrevented) {
12828
12828
  T.preventDefault();
12829
12829
  return;
12830
12830
  }
12831
- f.value && (f.value = !1), d.value ? u(!1) : T.preventDefault();
12831
+ f.value && (f.value = !1), c.value ? u(!1) : T.preventDefault();
12832
12832
  }
12833
12833
  function w(T) {
12834
12834
  g.value || o(T);
@@ -12855,7 +12855,7 @@ const Bh = /* @__PURE__ */ ie({
12855
12855
  onOpenAutoFocus: M[0] || (M[0] = ma(() => {
12856
12856
  }, ["prevent"])),
12857
12857
  onEscapeKeyDown: M[1] || (M[1] = (x) => {
12858
- v(d) || x.preventDefault();
12858
+ v(c) || x.preventDefault();
12859
12859
  })
12860
12860
  }, {
12861
12861
  default: q(() => [
@@ -12921,12 +12921,12 @@ const Bh = /* @__PURE__ */ ie({
12921
12921
  _: 3
12922
12922
  }, 16, ["open", "aria-describedby"]));
12923
12923
  }
12924
- }), pn = (e, t) => {
12924
+ }), hn = (e, t) => {
12925
12925
  const a = e.__vccOpts || e;
12926
12926
  for (const [n, r] of t)
12927
12927
  a[n] = r;
12928
12928
  return a;
12929
- }, yy = /* @__PURE__ */ pn(Rh, [["__scopeId", "data-v-cb2412ef"]]), As = /* @__PURE__ */ ie({
12929
+ }, yy = /* @__PURE__ */ hn(Rh, [["__scopeId", "data-v-0987ca7b"]]), As = /* @__PURE__ */ ie({
12930
12930
  inheritAttrs: !1,
12931
12931
  __name: "Popout",
12932
12932
  props: {
@@ -12952,23 +12952,25 @@ const Bh = /* @__PURE__ */ ie({
12952
12952
  Ae(() => a.anchor, (u) => {
12953
12953
  u && (o.value = u, s());
12954
12954
  }), ai(l, () => n("clickOutside"));
12955
- const c = O(() => {
12955
+ const d = O(() => {
12956
12956
  if (a.transitionName !== "none")
12957
12957
  return a.transitionName ? a.transitionName : oi(a.placement);
12958
12958
  });
12959
- return (u, d) => (y(), te(Gt, { name: c.value }, {
12960
- default: q(() => [
12961
- a.visible ? (y(), D("div", Se({
12962
- key: 0,
12963
- ref: "popout",
12964
- style: v(i),
12965
- class: "vui-popout"
12966
- }, v(r)), [
12967
- I(u.$slots, "default")
12968
- ], 16)) : L("", !0)
12969
- ]),
12970
- _: 3
12971
- }, 8, ["name"]));
12959
+ return (u, c) => (y(), te(mn, { to: "body" }, [
12960
+ he(Gt, { name: d.value }, {
12961
+ default: q(() => [
12962
+ a.visible ? (y(), D("div", Se({
12963
+ key: 0,
12964
+ ref: "popout",
12965
+ style: v(i),
12966
+ class: "vui-popout"
12967
+ }, v(r)), [
12968
+ I(u.$slots, "default")
12969
+ ], 16)) : L("", !0)
12970
+ ]),
12971
+ _: 3
12972
+ }, 8, ["name"])
12973
+ ]));
12972
12974
  }
12973
12975
  }), Eh = ["aria-expanded"], Ih = /* @__PURE__ */ ie({
12974
12976
  __name: "Dropdown",
@@ -12987,7 +12989,7 @@ const Bh = /* @__PURE__ */ ie({
12987
12989
  function s() {
12988
12990
  o.value = !1;
12989
12991
  }
12990
- function c() {
12992
+ function d() {
12991
12993
  o.value = !o.value;
12992
12994
  }
12993
12995
  ai(l, (h) => {
@@ -13001,10 +13003,10 @@ const Bh = /* @__PURE__ */ ie({
13001
13003
  t({
13002
13004
  open: i,
13003
13005
  close: s,
13004
- toggle: c,
13006
+ toggle: d,
13005
13007
  isOpen: o
13006
13008
  });
13007
- const d = O(() => Et(e.minWidth)), f = O(() => e.expand ? `${u.value}px` : "initial"), { escape: p } = gl();
13009
+ const c = O(() => Et(e.minWidth)), f = O(() => e.expand ? `${u.value}px` : "initial"), { escape: p } = gl();
13008
13010
  return vr(p, s), Ae(o, (h) => {
13009
13011
  h || n("close");
13010
13012
  }), Ye(() => {
@@ -13022,7 +13024,7 @@ const Bh = /* @__PURE__ */ ie({
13022
13024
  open: i,
13023
13025
  isOpen: o.value,
13024
13026
  close: s,
13025
- toggle: c
13027
+ toggle: d
13026
13028
  })
13027
13029
  ], 8, Eh),
13028
13030
  he(As, {
@@ -13032,7 +13034,7 @@ const Bh = /* @__PURE__ */ ie({
13032
13034
  class: "vui-dropdown",
13033
13035
  placement: h.placement,
13034
13036
  style: Ve({
13035
- minWidth: h.expand ? f.value : d.value,
13037
+ minWidth: h.expand ? f.value : c.value,
13036
13038
  maxHeight: v(Et)(h.maxHeight)
13037
13039
  })
13038
13040
  }, {
@@ -13040,7 +13042,7 @@ const Bh = /* @__PURE__ */ ie({
13040
13042
  I(h.$slots, "default", {
13041
13043
  open: i,
13042
13044
  close: s,
13043
- toggle: c,
13045
+ toggle: d,
13044
13046
  isOpen: o.value
13045
13047
  })
13046
13048
  ]),
@@ -13118,7 +13120,7 @@ const Bh = /* @__PURE__ */ ie({
13118
13120
  const t = e, a = O(
13119
13121
  () => typeof t.gap == "number" ? Et(t.gap) : `var(--space-${t.gap})`
13120
13122
  ), n = O(() => typeof t.columns == "number" ? Jr(t.columns).map(() => "1fr").join(" ") : t.columns ?? "none"), r = O(() => typeof t.rows == "number" ? Jr(t.rows || 1).map(() => "").join("1fr") : t.rows ?? "none"), l = O(() => t.yStart ? "flex-start" : t.yEnd ? "flex-end" : t.yCenter ? "center" : t.yBaseline ? "baseline" : t.yStretch ? "stretch" : "flex-start"), o = O(() => t.inline ? "inline-grid" : "grid"), i = O(() => t.expand ? "100%" : "auto");
13121
- return (s, c) => (y(), D("div", {
13123
+ return (s, d) => (y(), D("div", {
13122
13124
  class: "vui-grid",
13123
13125
  style: Ve({
13124
13126
  display: o.value,
@@ -13141,7 +13143,7 @@ const Bh = /* @__PURE__ */ ie({
13141
13143
  }, Gh = {
13142
13144
  key: 1,
13143
13145
  class: "vui-input-errors"
13144
- }, hn = /* @__PURE__ */ ie({
13146
+ }, yn = /* @__PURE__ */ ie({
13145
13147
  __name: "Input",
13146
13148
  props: /* @__PURE__ */ $t({
13147
13149
  type: { default: "text" },
@@ -13257,7 +13259,7 @@ const Bh = /* @__PURE__ */ ie({
13257
13259
  emits: ["update:modelValue"],
13258
13260
  setup(e) {
13259
13261
  const t = e, a = Ca(), n = Bt(e, "modelValue"), r = oa();
13260
- return (l, o) => (y(), te(hn, Se({ ...v(a), ...t }, {
13262
+ return (l, o) => (y(), te(yn, Se({ ...v(a), ...t }, {
13261
13263
  type: "color",
13262
13264
  class: "vui-input-color"
13263
13265
  }), {
@@ -13322,7 +13324,7 @@ const Bh = /* @__PURE__ */ ie({
13322
13324
  emits: ["update:modelValue"],
13323
13325
  setup(e) {
13324
13326
  const t = vl(e, ["incrementBy", "incrementEnabled", "hideIncrement", "decrementBy", "decrementEnabled", "hideDecrement"]), a = Bt(e, "modelValue");
13325
- return (n, r) => (y(), te(hn, Se(t, {
13327
+ return (n, r) => (y(), te(yn, Se(t, {
13326
13328
  modelValue: a.value,
13327
13329
  "onUpdate:modelValue": r[2] || (r[2] = (l) => a.value = l),
13328
13330
  modelModifiers: { number: !0 },
@@ -13361,7 +13363,7 @@ const Bh = /* @__PURE__ */ ie({
13361
13363
  _: 1
13362
13364
  }, 16, ["modelValue"]));
13363
13365
  }
13364
- }), by = /* @__PURE__ */ pn(e0, [["__scopeId", "data-v-449a3f73"]]), t0 = ["id"], a0 = ["for"], ky = /* @__PURE__ */ ie({
13366
+ }), by = /* @__PURE__ */ hn(e0, [["__scopeId", "data-v-268d824f"]]), t0 = ["id"], a0 = ["for"], ky = /* @__PURE__ */ ie({
13365
13367
  __name: "Dropzone",
13366
13368
  props: {
13367
13369
  label: {},
@@ -13381,25 +13383,25 @@ const Bh = /* @__PURE__ */ ie({
13381
13383
  const a = e, n = t, r = E(!1);
13382
13384
  function l(i, s) {
13383
13385
  i.preventDefault(), i.stopPropagation();
13384
- const c = s ? i.target.files : i.dataTransfer.files;
13385
- c.length > 0 && n("files", c);
13386
+ const d = s ? i.target.files : i.dataTransfer.files;
13387
+ d.length > 0 && n("files", d);
13386
13388
  }
13387
13389
  const o = gt("dropzone");
13388
13390
  return Ye(() => {
13389
13391
  Je(o, "dragenter", l, !1), Je(o, "dragleave", l, !1), Je(o, "dragover", l, !1), Je(o, "drop", l, !1), Je(o, "input", (i) => l(i, !0), !1);
13390
- }), (i, s) => (y(), te(hn, Se(a, {
13392
+ }), (i, s) => (y(), te(yn, Se(a, {
13391
13393
  ref: "dropzone",
13392
13394
  type: "file",
13393
13395
  class: ["vui-dropzone", { dragging: r.value }],
13394
- onDragenter: s[0] || (s[0] = (c) => r.value = !0),
13395
- onMouseleave: s[1] || (s[1] = (c) => r.value = !1)
13396
+ onDragenter: s[0] || (s[0] = (d) => r.value = !0),
13397
+ onMouseleave: s[1] || (s[1] = (d) => r.value = !1)
13396
13398
  }), {
13397
- __internal_replace_input: q(({ inputId: c }) => [
13399
+ __internal_replace_input: q(({ inputId: d }) => [
13398
13400
  U("input", {
13399
- id: c,
13401
+ id: d,
13400
13402
  type: "file"
13401
13403
  }, null, 8, t0),
13402
- U("label", { for: c }, [
13404
+ U("label", { for: d }, [
13403
13405
  I(i.$slots, "default", { dragging: r.value }, () => [
13404
13406
  he(Pa, {
13405
13407
  "x-center": "",
@@ -13445,7 +13447,7 @@ const Bh = /* @__PURE__ */ ie({
13445
13447
  emits: ["files"],
13446
13448
  setup(e, { emit: t }) {
13447
13449
  const a = e, n = t;
13448
- return (r, l) => (y(), te(hn, Se({ type: "file" }, a, {
13450
+ return (r, l) => (y(), te(yn, Se({ type: "file" }, a, {
13449
13451
  onInput: l[0] || (l[0] = (o) => n("files", o.target.files))
13450
13452
  }), null, 16));
13451
13453
  }
@@ -13471,7 +13473,7 @@ const Bh = /* @__PURE__ */ ie({
13471
13473
  },
13472
13474
  setup(e) {
13473
13475
  const t = vl(e, ["showPassword", "type"]), a = E(e.showPassword);
13474
- return (n, r) => (y(), te(hn, Se(t, {
13476
+ return (n, r) => (y(), te(yn, Se(t, {
13475
13477
  type: a.value ? "text" : "password",
13476
13478
  autocomplete: "off"
13477
13479
  }), {
@@ -13651,7 +13653,7 @@ const Bh = /* @__PURE__ */ ie({
13651
13653
  if (e.transitionName !== "none")
13652
13654
  return e.transitionName;
13653
13655
  });
13654
- return (o, i) => (y(), te(An, { to: "body" }, [
13656
+ return (o, i) => (y(), te(mn, { to: "body" }, [
13655
13657
  he(Gt, {
13656
13658
  appear: "",
13657
13659
  name: l.value
@@ -13724,7 +13726,7 @@ const Bh = /* @__PURE__ */ ie({
13724
13726
  }, 8, ["name"])
13725
13727
  ]));
13726
13728
  }
13727
- }), d0 = /* @__PURE__ */ pn(u0, [["__scopeId", "data-v-a7ab7908"]]), c0 = { class: "typeset" }, My = /* @__PURE__ */ ie({
13729
+ }), d0 = /* @__PURE__ */ hn(u0, [["__scopeId", "data-v-3d2207b9"]]), c0 = { class: "typeset" }, My = /* @__PURE__ */ ie({
13728
13730
  __name: "Confirm",
13729
13731
  props: {
13730
13732
  title: {},
@@ -13802,12 +13804,12 @@ const Bh = /* @__PURE__ */ ie({
13802
13804
  redacted: Ma(() => e.redacted),
13803
13805
  // Called by all OTPItem child components to properly set max length of the input.
13804
13806
  register: () => o.value++
13805
- }), Ae(n, (d) => a("change", d));
13806
- function s(d) {
13807
- n.value = d, i.value && (i.value.value = d);
13807
+ }), Ae(n, (c) => a("change", c));
13808
+ function s(c) {
13809
+ n.value = c, i.value && (i.value.value = c);
13808
13810
  }
13809
- function c(d) {
13810
- const f = d.key;
13811
+ function d(c) {
13812
+ const f = c.key;
13811
13813
  if (l.value.test(f) && f.length === 1) {
13812
13814
  const p = no(n.value, f, r.value);
13813
13815
  p.length <= o.value && (s(p), r.value < o.value - 1 && r.value++);
@@ -13821,9 +13823,9 @@ const Bh = /* @__PURE__ */ ie({
13821
13823
  s(p);
13822
13824
  }
13823
13825
  }
13824
- function u(d) {
13826
+ function u(c) {
13825
13827
  var p;
13826
- const f = (p = d.clipboardData) == null ? void 0 : p.getData("text/plain");
13828
+ const f = (p = c.clipboardData) == null ? void 0 : p.getData("text/plain");
13827
13829
  if (f) {
13828
13830
  const h = f.trim().slice(0, o.value - r.value);
13829
13831
  if (!l.value.test(h))
@@ -13832,21 +13834,21 @@ const Bh = /* @__PURE__ */ ie({
13832
13834
  s(k), r.value = Math.min(k.length, o.value - 1);
13833
13835
  }
13834
13836
  }
13835
- return (d, f) => (y(), D("div", f0, [
13837
+ return (c, f) => (y(), D("div", f0, [
13836
13838
  U("input", {
13837
13839
  ref: "inputRef",
13838
13840
  type: "text",
13839
- inputmode: d.mode === "num" ? "numeric" : "text",
13841
+ inputmode: c.mode === "num" ? "numeric" : "text",
13840
13842
  autocomplete: "one-time-code",
13841
13843
  class: "vui-otp-input",
13842
13844
  contenteditable: "true",
13843
- onKeydown: c,
13845
+ onKeydown: d,
13844
13846
  onBlur: f[0] || (f[0] = (p) => r.value = -1),
13845
13847
  onFocus: f[1] || (f[1] = (p) => r.value = Math.min(n.value.length, o.value - 1)),
13846
13848
  onPaste: u
13847
13849
  }, null, 40, v0),
13848
13850
  U("div", m0, [
13849
- I(d.$slots, "default")
13851
+ I(c.$slots, "default")
13850
13852
  ])
13851
13853
  ]));
13852
13854
  }
@@ -13884,10 +13886,10 @@ function g0(e, t = 1, a = 15, n = 5) {
13884
13886
  if (r <= n)
13885
13887
  l = 1, o = r;
13886
13888
  else {
13887
- const u = Math.floor(n / 2), d = Math.ceil(n / 2) - 1;
13888
- t <= u ? (l = 1, o = n) : t + d >= r ? (l = r - n + 1, o = r) : (l = t - u, o = t + d);
13889
+ const u = Math.floor(n / 2), c = Math.ceil(n / 2) - 1;
13890
+ t <= u ? (l = 1, o = n) : t + c >= r ? (l = r - n + 1, o = r) : (l = t - u, o = t + c);
13889
13891
  }
13890
- const i = (t - 1) * a, s = Math.min(i + a - 1, e - 1), c = Jr(o + 1 - l).map((u) => l + u);
13892
+ const i = (t - 1) * a, s = Math.min(i + a - 1, e - 1), d = Jr(o + 1 - l).map((u) => l + u);
13891
13893
  return {
13892
13894
  totalItems: e,
13893
13895
  currentPage: t,
@@ -13897,7 +13899,7 @@ function g0(e, t = 1, a = 15, n = 5) {
13897
13899
  endPage: o,
13898
13900
  startIndex: i,
13899
13901
  endIndex: s,
13900
- pages: c
13902
+ pages: d
13901
13903
  };
13902
13904
  }
13903
13905
  const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
@@ -13905,13 +13907,14 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
13905
13907
  __name: "Tooltip",
13906
13908
  props: {
13907
13909
  placement: {},
13908
- delay: { default: 0 }
13910
+ delay: { default: 0 },
13911
+ disabled: { type: Boolean }
13909
13912
  },
13910
13913
  setup(e) {
13911
13914
  const t = Ca(), a = gt("popoutAnchor"), n = E(!1), r = E(!1);
13912
13915
  let l;
13913
- Ae(n, (s) => {
13914
- if (s) {
13916
+ Ae(n, (d) => {
13917
+ if (d) {
13915
13918
  if (!e.delay || e.delay <= 0) {
13916
13919
  r.value = !0;
13917
13920
  return;
@@ -13923,33 +13926,36 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
13923
13926
  clearTimeout(l), r.value = !1;
13924
13927
  });
13925
13928
  const o = oa(), i = O(() => {
13926
- var s;
13927
- return (s = a.value) == null ? void 0 : s.children[0];
13929
+ var d;
13930
+ return (d = a.value) == null ? void 0 : d.children[0];
13928
13931
  });
13929
- return (s, c) => (y(), D(be, null, [
13932
+ function s(d) {
13933
+ e.disabled || (n.value = d);
13934
+ }
13935
+ return (d, u) => (y(), D(be, null, [
13930
13936
  U("div", {
13931
13937
  ref: "popoutAnchor",
13932
13938
  class: "popout-anchor",
13933
13939
  "aria-describedby": v(o),
13934
- onMouseenter: c[0] || (c[0] = (u) => n.value = !0),
13935
- onMouseleave: c[1] || (c[1] = (u) => n.value = !1)
13940
+ onMouseenter: u[0] || (u[0] = (c) => s(!0)),
13941
+ onMouseleave: u[1] || (u[1] = (c) => s(!1))
13936
13942
  }, [
13937
- I(s.$slots, "default", {}, void 0, !0)
13943
+ I(d.$slots, "default", {}, void 0, !0)
13938
13944
  ], 40, w0),
13939
13945
  he(As, Se({
13940
13946
  id: v(o),
13941
13947
  visible: r.value,
13942
13948
  anchor: i.value,
13943
13949
  class: "vui-tooltip"
13944
- }, v(t), { placement: s.placement }), {
13950
+ }, v(t), { placement: d.placement }), {
13945
13951
  default: q(() => [
13946
- I(s.$slots, "tooltip", {}, void 0, !0)
13952
+ I(d.$slots, "tooltip", {}, void 0, !0)
13947
13953
  ]),
13948
13954
  _: 3
13949
13955
  }, 16, ["id", "visible", "anchor", "placement"])
13950
13956
  ], 64));
13951
13957
  }
13952
- }), $n = /* @__PURE__ */ pn(b0, [["__scopeId", "data-v-105dd1d8"]]), Ay = /* @__PURE__ */ ie({
13958
+ }), Dn = /* @__PURE__ */ hn(b0, [["__scopeId", "data-v-8f422e53"]]), Ay = /* @__PURE__ */ ie({
13953
13959
  __name: "Pagination",
13954
13960
  props: {
13955
13961
  numbers: { type: Boolean, default: !0 },
@@ -13967,15 +13973,15 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
13967
13973
  function i() {
13968
13974
  n("change", a.pagination.currentPage - 1);
13969
13975
  }
13970
- return (s, c) => (y(), te(Pa, {
13976
+ return (s, d) => (y(), te(Pa, {
13971
13977
  inline: "",
13972
13978
  class: "vui-pagination",
13973
13979
  gap: "xxs"
13974
13980
  }, {
13975
13981
  default: q(() => [
13976
13982
  I(s.$slots, "start", {}, () => [
13977
- a.firstLast ? (y(), te($n, { key: 0 }, {
13978
- tooltip: q(() => c[2] || (c[2] = [
13983
+ a.firstLast ? (y(), te(Dn, { key: 0 }, {
13984
+ tooltip: q(() => d[2] || (d[2] = [
13979
13985
  U("p", null, "First page", -1)
13980
13986
  ])),
13981
13987
  default: q(() => [
@@ -13983,7 +13989,7 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
13983
13989
  plain: "",
13984
13990
  disabled: a.pagination.startPage === a.pagination.currentPage,
13985
13991
  square: "",
13986
- onClick: c[0] || (c[0] = (u) => n("change", a.pagination.startPage))
13992
+ onClick: d[0] || (d[0] = (u) => n("change", a.pagination.startPage))
13987
13993
  }, {
13988
13994
  default: q(() => [
13989
13995
  he(v(Qs))
@@ -13998,8 +14004,8 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
13998
14004
  disabled: l.value,
13999
14005
  setPage: i
14000
14006
  }, () => [
14001
- a.prevNext ? (y(), te($n, { key: 0 }, {
14002
- tooltip: q(() => c[3] || (c[3] = [
14007
+ a.prevNext ? (y(), te(Dn, { key: 0 }, {
14008
+ tooltip: q(() => d[3] || (d[3] = [
14003
14009
  U("p", null, "Previous page", -1)
14004
14010
  ])),
14005
14011
  default: q(() => [
@@ -14028,7 +14034,7 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
14028
14034
  square: "",
14029
14035
  plain: a.pagination.currentPage !== u,
14030
14036
  variant: "gray",
14031
- onClick: (d) => n("change", u)
14037
+ onClick: (c) => n("change", u)
14032
14038
  }, {
14033
14039
  default: q(() => [
14034
14040
  We(Te(u), 1)
@@ -14042,8 +14048,8 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
14042
14048
  disabled: r.value,
14043
14049
  setPage: o
14044
14050
  }, () => [
14045
- a.prevNext ? (y(), te($n, { key: 0 }, {
14046
- tooltip: q(() => c[4] || (c[4] = [
14051
+ a.prevNext ? (y(), te(Dn, { key: 0 }, {
14052
+ tooltip: q(() => d[4] || (d[4] = [
14047
14053
  U("p", null, "Next page", -1)
14048
14054
  ])),
14049
14055
  default: q(() => [
@@ -14063,8 +14069,8 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
14063
14069
  })) : L("", !0)
14064
14070
  ]),
14065
14071
  I(s.$slots, "end", {}, () => [
14066
- a.firstLast ? (y(), te($n, { key: 0 }, {
14067
- tooltip: q(() => c[5] || (c[5] = [
14072
+ a.firstLast ? (y(), te(Dn, { key: 0 }, {
14073
+ tooltip: q(() => d[5] || (d[5] = [
14068
14074
  U("p", null, "Last page", -1)
14069
14075
  ])),
14070
14076
  default: q(() => [
@@ -14072,7 +14078,7 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
14072
14078
  plain: "",
14073
14079
  disabled: a.pagination.endPage === a.pagination.currentPage,
14074
14080
  square: "",
14075
- onClick: c[1] || (c[1] = (u) => n("change", a.pagination.endPage))
14081
+ onClick: d[1] || (d[1] = (u) => n("change", a.pagination.endPage))
14076
14082
  }, {
14077
14083
  default: q(() => [
14078
14084
  he(v(Ks))
@@ -14120,7 +14126,7 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
14120
14126
  s >= 100 && a("done");
14121
14127
  }), Ye(l);
14122
14128
  const o = O(() => `${ro(0, 100, n.value)}%`), i = O(() => e.color);
14123
- return (s, c) => (y(), D("div", {
14129
+ return (s, d) => (y(), D("div", {
14124
14130
  ref: "progress",
14125
14131
  class: ye(["vui-progress", {
14126
14132
  fixed: s.fixed,
@@ -14261,9 +14267,9 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
14261
14267
  setup(e) {
14262
14268
  const t = Bt(e, "modelValue"), a = gt("trigger");
14263
14269
  function n(u) {
14264
- var d, f, p;
14270
+ var c, f, p;
14265
14271
  if (e.single)
14266
- (d = t.value) != null && d.some((h) => h.value === u.value) && !e.required ? t.value = void 0 : t.value = [u];
14272
+ (c = t.value) != null && c.some((h) => h.value === u.value) && !e.required ? t.value = void 0 : t.value = [u];
14267
14273
  else if (t.value && ((f = t.value) != null && f.some((h) => h.value === u.value))) {
14268
14274
  const h = t.value.filter((g) => g.value !== u.value);
14269
14275
  (e.required && h.length > 0 || !e.required) && (t.value = h.length > 0 ? h : void 0);
@@ -14279,14 +14285,14 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
14279
14285
  var u;
14280
14286
  t.value = void 0, (u = i.value) == null || u.close();
14281
14287
  }
14282
- const c = oa();
14283
- return (u, d) => (y(), D("div", {
14288
+ const d = oa();
14289
+ return (u, c) => (y(), D("div", {
14284
14290
  class: ye(["vui-input-container vui-select", { expand: u.expand, required: u.required, readonly: u.readonly, disabled: u.disabled, "has-errors": u.errors.length > 0 }])
14285
14291
  }, [
14286
14292
  he(Ih, {
14287
14293
  ref: "dropdown",
14288
14294
  expand: u.expand,
14289
- onClose: d[1] || (d[1] = (f) => {
14295
+ onClose: c[1] || (c[1] = (f) => {
14290
14296
  var p;
14291
14297
  return (p = v(a)) == null ? void 0 : p.focus({ preventScroll: !0 });
14292
14298
  })
@@ -14295,11 +14301,11 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
14295
14301
  U("div", T0, [
14296
14302
  u.label ? (y(), D("label", {
14297
14303
  key: 0,
14298
- for: v(c)
14304
+ for: v(d)
14299
14305
  }, Te(u.label), 9, M0)) : L("", !0),
14300
14306
  u.hint ? (y(), D("p", P0, Te(u.hint), 1)) : L("", !0),
14301
14307
  U("button", {
14302
- id: v(c),
14308
+ id: v(d),
14303
14309
  ref: "trigger",
14304
14310
  class: ye(["vui-input-style vui-select-trigger-container", { "has-value": t.value && t.value.length > 0 }]),
14305
14311
  disabled: u.disabled,
@@ -14307,7 +14313,7 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
14307
14313
  }, [
14308
14314
  U("span", null, Te(o.value), 1),
14309
14315
  u.showClear && !u.required && t.value && t.value.length > 0 ? (y(), D(be, { key: 0 }, [
14310
- d[2] || (d[2] = U("div", { class: "flex-1" }, null, -1)),
14316
+ c[2] || (c[2] = U("div", { class: "flex-1" }, null, -1)),
14311
14317
  he(bt, {
14312
14318
  plain: "",
14313
14319
  square: "",
@@ -14330,9 +14336,9 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
14330
14336
  sticky: ""
14331
14337
  }, {
14332
14338
  default: q(() => [
14333
- he(hn, {
14339
+ he(yn, {
14334
14340
  modelValue: r.value,
14335
- "onUpdate:modelValue": d[0] || (d[0] = (h) => r.value = h),
14341
+ "onUpdate:modelValue": c[0] || (c[0] = (h) => r.value = h),
14336
14342
  placeholder: "Search...",
14337
14343
  focus: p,
14338
14344
  expand: ""
@@ -14385,7 +14391,7 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
14385
14391
  emits: ["close"],
14386
14392
  setup(e, { emit: t }) {
14387
14393
  zs((i) => ({
14388
- bda47706: l.value
14394
+ "5b0d872d": l.value
14389
14395
  }));
14390
14396
  const a = t, n = Ca(), r = O(() => {
14391
14397
  if (e.position === "left" || e.position === "right")
@@ -14406,7 +14412,7 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
14406
14412
  if (e.transitionName !== "none")
14407
14413
  return e.transitionName;
14408
14414
  });
14409
- return (i, s) => (y(), te(An, { to: "body" }, [
14415
+ return (i, s) => (y(), te(mn, { to: "body" }, [
14410
14416
  he(Gt, {
14411
14417
  appear: "",
14412
14418
  name: o.value
@@ -14414,7 +14420,7 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
14414
14420
  default: q(() => [
14415
14421
  i.open ? (y(), te(Cs, {
14416
14422
  key: 0,
14417
- onClose: s[1] || (s[1] = (c) => a("close"))
14423
+ onClose: s[1] || (s[1] = (d) => a("close"))
14418
14424
  }, {
14419
14425
  default: q(() => [
14420
14426
  he(Zi, Se({
@@ -14425,7 +14431,7 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
14425
14431
  he(bt, {
14426
14432
  plain: "",
14427
14433
  square: "",
14428
- onClick: s[0] || (s[0] = (c) => a("close"))
14434
+ onClick: s[0] || (s[0] = (d) => a("close"))
14429
14435
  }, {
14430
14436
  default: q(() => [
14431
14437
  he(v(dr))
@@ -14467,7 +14473,7 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
14467
14473
  }, 8, ["name"])
14468
14474
  ]));
14469
14475
  }
14470
- }), Ey = /* @__PURE__ */ pn(B0, [["__scopeId", "data-v-286cc7de"]]), R0 = {
14476
+ }), Ey = /* @__PURE__ */ hn(B0, [["__scopeId", "data-v-333e1fc4"]]), R0 = {
14471
14477
  key: 0,
14472
14478
  class: "vui-sidebar-header"
14473
14479
  }, E0 = { class: "vui-sidebar-content" }, I0 = { class: "vui-sidebar-content-wrap" }, L0 = {
@@ -14494,16 +14500,16 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
14494
14500
  width: t.width,
14495
14501
  open: n,
14496
14502
  close: () => n.value = !1
14497
- })), { start: s, stop: c, isPending: u } = ei(() => {
14503
+ })), { start: s, stop: d, isPending: u } = ei(() => {
14498
14504
  t.appear && (n.value = !0);
14499
- }, 250), d = gt("wrap"), { elementX: f } = Qu(d);
14505
+ }, 250), c = gt("wrap"), { elementX: f } = Qu(c);
14500
14506
  return zo(() => {
14501
14507
  t.appear && n.value && (n.value = !1);
14502
14508
  }), Ou(f, (p) => {
14503
14509
  var g;
14504
14510
  if (!t.appear || p <= Xr && p >= 0 && u.value)
14505
14511
  return;
14506
- p <= Xr && p >= 0 && !n.value && !u.value ? s() : u.value && c();
14512
+ p <= Xr && p >= 0 && !n.value && !u.value ? s() : u.value && d();
14507
14513
  const h = t.mini ? 65 : t.floaty ? t.width : t.width - (mr(l.value) ? 0 : Number((g = l.value) == null ? void 0 : g.replace("px", "")));
14508
14514
  (p > Xr + h || p < 0) && n.value && (n.value = !1);
14509
14515
  }, {
@@ -14652,7 +14658,7 @@ const w0 = ["aria-describedby"], b0 = /* @__PURE__ */ ie({
14652
14658
  We(Te((l = t.header) == null ? void 0 : l.label), 1)
14653
14659
  ];
14654
14660
  }),
14655
- t.sort && t.header ? (y(), te($n, {
14661
+ t.sort && t.header ? (y(), te(Dn, {
14656
14662
  key: 0,
14657
14663
  placement: "top"
14658
14664
  }, {
@@ -14704,13 +14710,13 @@ function Yy(e, t) {
14704
14710
  );
14705
14711
  }), o = O(() => l.value.currentPage < l.value.endPage), i = O(() => l.value.currentPage > l.value.startPage), s = (T) => {
14706
14712
  (T > r.value && o.value || T < r.value && i.value) && (r.value = T);
14707
- }, c = E({
14713
+ }, d = E({
14708
14714
  key: void 0,
14709
14715
  type: "asc"
14710
14716
  }), u = (T, M = "asc") => {
14711
- c.value.key = T, c.value.type = M === "toggle" ? c.value.type === "asc" ? "desc" : "asc" : M;
14712
- }, d = () => {
14713
- c.value.key = void 0, c.value.type = "asc";
14717
+ d.value.key = T, d.value.type = M === "toggle" ? d.value.type === "asc" ? "desc" : "asc" : M;
14718
+ }, c = () => {
14719
+ d.value.key = void 0, d.value.type = "asc";
14714
14720
  }, f = E(), p = O(() => {
14715
14721
  const T = f.value;
14716
14722
  let M = a.value;
@@ -14718,28 +14724,28 @@ function Yy(e, t) {
14718
14724
  const R = Object.values(F).map((V) => `${V}`);
14719
14725
  return li(R, T);
14720
14726
  }));
14721
- const x = c.value.key;
14727
+ const x = d.value.key;
14722
14728
  return x && (M = [...M].sort((F, R) => {
14723
14729
  const V = F[x], G = R[x];
14724
- return c.value.type === "asc" ? V > G ? 1 : -1 : V > G ? -1 : 1;
14730
+ return d.value.type === "asc" ? V > G ? 1 : -1 : V > G ? -1 : 1;
14725
14731
  })), M;
14726
14732
  }), h = O(
14727
14733
  () => Object.keys(a.value[0] || {}).map((T) => ({
14728
14734
  label: T,
14729
- sortKey: c.value.key === T && c.value.type,
14735
+ sortKey: d.value.key === T && d.value.type,
14730
14736
  sortToggle: () => {
14731
- if (c.value.key === T)
14732
- switch (c.value.type) {
14737
+ if (d.value.key === T)
14738
+ switch (d.value.type) {
14733
14739
  case "asc": {
14734
- c.value.type = "desc";
14740
+ d.value.type = "desc";
14735
14741
  break;
14736
14742
  }
14737
14743
  case "desc": {
14738
- c.value.key = void 0, c.value.key = "asc";
14744
+ d.value.key = void 0, d.value.key = "asc";
14739
14745
  break;
14740
14746
  }
14741
14747
  default: {
14742
- c.value.key = T, c.value.type = "asc";
14748
+ d.value.key = T, d.value.type = "asc";
14743
14749
  break;
14744
14750
  }
14745
14751
  }
@@ -14776,7 +14782,7 @@ function Yy(e, t) {
14776
14782
  isSelectedAll: w
14777
14783
  }), {
14778
14784
  setSort: u,
14779
- clearSort: d,
14785
+ clearSort: c,
14780
14786
  search: f,
14781
14787
  rows: Na(g),
14782
14788
  allRows: Na(p),
@@ -14930,8 +14936,8 @@ const j0 = { key: 0 }, U0 = {
14930
14936
  function l() {
14931
14937
  var i;
14932
14938
  if (window && r.value && n.value) {
14933
- const s = (i = r.value.querySelector(".vui-tab.active")) == null ? void 0 : i.getBoundingClientRect(), c = r.value.getBoundingClientRect();
14934
- !s || !c ? n.value.style.width = "0px" : (n.value.style.width = `${s.width}px`, n.value.style.left = `${s.left - c.left}px`);
14939
+ const s = (i = r.value.querySelector(".vui-tab.active")) == null ? void 0 : i.getBoundingClientRect(), d = r.value.getBoundingClientRect();
14940
+ !s || !d ? n.value.style.width = "0px" : (n.value.style.width = `${s.width}px`, n.value.style.left = `${s.left - d.left}px`);
14935
14941
  }
14936
14942
  }
14937
14943
  const o = Sn(t.default);
@@ -14953,10 +14959,10 @@ const j0 = { key: 0 }, U0 = {
14953
14959
  role: "tablist"
14954
14960
  }, [
14955
14961
  I(i.$slots, "start"),
14956
- (y(!0), D(be, null, Ne(v(o), (c) => (y(), te(ia(c), {
14957
- key: c.props.value,
14958
- class: ye({ active: c.props.value === a.value }),
14959
- onClick: (u) => a.value = c.props.value
14962
+ (y(!0), D(be, null, Ne(v(o), (d) => (y(), te(ia(d), {
14963
+ key: d.props.value,
14964
+ class: ye({ active: d.props.value === a.value }),
14965
+ onClick: (u) => a.value = d.props.value
14960
14966
  }, null, 8, ["class", "onClick"]))), 128)),
14961
14967
  i.$slots.end ? (y(), D(be, { key: 0 }, [
14962
14968
  i.expand ? L("", !0) : (y(), D("div", Z0)),
@@ -15004,7 +15010,7 @@ const ey = { class: "vui-toast-item-content" }, ty = { key: 0 }, ay = /* @__PURE
15004
15010
  placement: { default: "bottom-end" }
15005
15011
  },
15006
15012
  setup(e) {
15007
- return (t, a) => (y(), te(An, { to: "body" }, [
15013
+ return (t, a) => (y(), te(mn, { to: "body" }, [
15008
15014
  U("div", {
15009
15015
  class: ye(["vui-toast-wrapper", t.placement])
15010
15016
  }, [
@@ -15042,7 +15048,7 @@ const ey = { class: "vui-toast-item-content" }, ty = { key: 0 }, ay = /* @__PURE
15042
15048
  ], 2)
15043
15049
  ]));
15044
15050
  }
15045
- }), qy = /* @__PURE__ */ pn(ay, [["__scopeId", "data-v-66eb27be"]]);
15051
+ }), qy = /* @__PURE__ */ hn(ay, [["__scopeId", "data-v-a6d9258a"]]);
15046
15052
  export {
15047
15053
  ly as Accordion,
15048
15054
  oy as AccordionGroup,
@@ -15070,7 +15076,7 @@ export {
15070
15076
  _y as File,
15071
15077
  Pa as Flex,
15072
15078
  gy as Grid,
15073
- hn as Input,
15079
+ yn as Input,
15074
15080
  xy as Kbd,
15075
15081
  Ty as KbdGroup,
15076
15082
  d0 as Modal,
@@ -15093,7 +15099,7 @@ export {
15093
15099
  Hy as Tabs,
15094
15100
  Dy as Textarea,
15095
15101
  qy as Toasts,
15096
- $n as Tooltip,
15102
+ Dn as Tooltip,
15097
15103
  Yy as defineTable,
15098
15104
  g0 as paginate,
15099
15105
  Wy as pushToast,