@point-hub/papp 0.0.144 → 0.0.146

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/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as Fa from "vue";
2
- import { defineComponent as $, ref as E, provide as Pe, createElementBlock as B, openBlock as w, renderSlot as Q, inject as Se, watch as ne, resolveComponent as K, createVNode as H, createElementVNode as O, withCtx as _, toDisplayString as q, normalizeClass as z, normalizeStyle as Ye, createTextVNode as $e, createCommentVNode as V, createBlock as X, computed as T, Fragment as fe, renderList as Ie, unref as N, shallowRef as Rn, triggerRef as _a, onScopeDispose as Lo, onUnmounted as De, nextTick as ke, watchEffect as Ee, onMounted as te, cloneVNode as Fo, h as ue, toRaw as Le, reactive as pr, getCurrentInstance as _o, Teleport as $l, Transition as Vo, toRef as Rl, readonly as Ll, customRef as Fl, getCurrentScope as _l, toValue as ut, useCssVars as Vl, useSlots as No, toRefs as jo, withKeys as Nl, withDirectives as Xe, vShow as jl, onBeforeUnmount as vr, isRef as gt, resolveDynamicComponent as ur, mergeProps as Wl, normalizeProps as Hl, guardReactiveProps as ql, useModel as de, isReactive as Va, isVNode as zl, createApp as Na, createSlots as Ul, mergeModels as we, vModelCheckbox as Wo, resolveDirective as Ho, vModelText as Ut, vModelDynamic as Yl } from "vue";
2
+ import { defineComponent as R, ref as E, provide as Pe, createElementBlock as B, openBlock as w, renderSlot as Q, inject as Se, watch as ne, resolveComponent as K, createVNode as H, createElementVNode as O, withCtx as _, toDisplayString as q, normalizeClass as z, normalizeStyle as Ye, createTextVNode as $e, createCommentVNode as V, createBlock as X, computed as T, Fragment as fe, renderList as Ie, unref as N, shallowRef as Rn, triggerRef as _a, onScopeDispose as Lo, onUnmounted as De, nextTick as ke, watchEffect as Ee, onMounted as te, cloneVNode as Fo, h as ue, toRaw as Le, reactive as pr, getCurrentInstance as _o, Teleport as $l, Transition as Vo, toRef as Rl, readonly as Ll, customRef as Fl, getCurrentScope as _l, toValue as ut, useCssVars as Vl, useSlots as No, toRefs as jo, withKeys as Nl, withDirectives as Xe, vShow as jl, onBeforeUnmount as vr, isRef as gt, resolveDynamicComponent as ur, mergeProps as Wl, normalizeProps as Hl, guardReactiveProps as ql, useModel as de, isReactive as Va, isVNode as zl, createApp as Na, createSlots as Ul, mergeModels as we, vModelCheckbox as Wo, resolveDirective as Ho, vModelText as Ut, vModelDynamic as Yl } from "vue";
3
3
  import { useRoute as qo } from "vue-router";
4
4
  import { defineStore as mr } from "pinia";
5
- const Xl = { class: "accordion-container" }, Ql = /* @__PURE__ */ $({
5
+ const Xl = { class: "accordion-container" }, Ql = /* @__PURE__ */ R({
6
6
  __name: "base-accordion",
7
7
  props: {
8
8
  alwaysOpen: { type: Boolean, default: !1 }
@@ -18,7 +18,7 @@ const Xl = { class: "accordion-container" }, Ql = /* @__PURE__ */ $({
18
18
  for (const [r, a] of t)
19
19
  n[r] = a;
20
20
  return n;
21
- }, Gl = /* @__PURE__ */ oe(Ql, [["__scopeId", "data-v-72d57350"]]), Kl = { class: "accordion-item" }, Jl = 32, Zl = /* @__PURE__ */ $({
21
+ }, Gl = /* @__PURE__ */ oe(Ql, [["__scopeId", "data-v-72d57350"]]), Kl = { class: "accordion-item" }, Jl = 32, Zl = /* @__PURE__ */ R({
22
22
  __name: "base-accordion-item",
23
23
  props: {
24
24
  itemId: {},
@@ -83,7 +83,7 @@ const Xl = { class: "accordion-container" }, Ql = /* @__PURE__ */ $({
83
83
  }, rs = {
84
84
  key: 0,
85
85
  class: "block i-fa7-regular:circle-check"
86
- }, as = { class: "alert-text" }, os = { class: "font-extrabold" }, is = /* @__PURE__ */ $({
86
+ }, as = { class: "alert-text" }, os = { class: "font-extrabold" }, is = /* @__PURE__ */ R({
87
87
  __name: "base-alert",
88
88
  props: {
89
89
  title: { default: "" },
@@ -155,7 +155,7 @@ const Xl = { class: "accordion-container" }, Ql = /* @__PURE__ */ $({
155
155
  ]));
156
156
  };
157
157
  }
158
- }), ls = /* @__PURE__ */ oe(is, [["__scopeId", "data-v-b4b4a5d0"]]), ss = ["src"], us = /* @__PURE__ */ $({
158
+ }), ls = /* @__PURE__ */ oe(is, [["__scopeId", "data-v-b4b4a5d0"]]), ss = ["src"], us = /* @__PURE__ */ R({
159
159
  __name: "base-avatar",
160
160
  props: {
161
161
  name: {},
@@ -216,7 +216,7 @@ function fs(e, t) {
216
216
  const ps = /* @__PURE__ */ oe(ds, [["render", fs], ["__scopeId", "data-v-85c79e7a"]]), vs = {
217
217
  key: 0,
218
218
  class: "h-2 w-2 rounded-full bg-current"
219
- }, ms = /* @__PURE__ */ $({
219
+ }, ms = /* @__PURE__ */ R({
220
220
  __name: "base-badge",
221
221
  props: {
222
222
  color: { default: "primary" },
@@ -233,7 +233,7 @@ const ps = /* @__PURE__ */ oe(ds, [["render", fs], ["__scopeId", "data-v-85c79e7
233
233
  Q(a.$slots, "default", {}, void 0, !0)
234
234
  ]));
235
235
  }
236
- }), hs = /* @__PURE__ */ oe(ms, [["__scopeId", "data-v-7c8ade6a"]]), gs = { class: "breadcrumb-ul" }, bs = /* @__PURE__ */ $({
236
+ }), hs = /* @__PURE__ */ oe(ms, [["__scopeId", "data-v-7c8ade6a"]]), gs = { class: "breadcrumb-ul" }, bs = /* @__PURE__ */ R({
237
237
  __name: "base-breadcrumb",
238
238
  props: {
239
239
  items: {},
@@ -271,7 +271,7 @@ const ps = /* @__PURE__ */ oe(ds, [["render", fs], ["__scopeId", "data-v-85c79e7
271
271
  }, xs = {
272
272
  key: 1,
273
273
  class: "spinner spinner-white spinner-xs"
274
- }, ks = /* @__PURE__ */ $({
274
+ }, ks = /* @__PURE__ */ R({
275
275
  __name: "base-button",
276
276
  props: {
277
277
  type: { default: "button" },
@@ -304,7 +304,7 @@ const ps = /* @__PURE__ */ oe(ds, [["render", fs], ["__scopeId", "data-v-85c79e7
304
304
  }), ia = /* @__PURE__ */ oe(ks, [["__scopeId", "data-v-0a388736"]]), Ss = { class: "card-header" }, Os = { class: "flex justify-between items-center text-xs uppercase font-semibold" }, Cs = {
305
305
  key: 0,
306
306
  class: "border-b border-slate-200 dark:border-slate-700 -mx-4 my-4"
307
- }, Es = /* @__PURE__ */ $({
307
+ }, Es = /* @__PURE__ */ R({
308
308
  __name: "base-card",
309
309
  props: {
310
310
  title: {},
@@ -343,7 +343,7 @@ const ps = /* @__PURE__ */ oe(ds, [["render", fs], ["__scopeId", "data-v-85c79e7
343
343
  }), Ts = /* @__PURE__ */ oe(Es, [["__scopeId", "data-v-e824d2d1"]]), Bs = {
344
344
  key: 0,
345
345
  class: "text-xs text-slate-500"
346
- }, Ps = /* @__PURE__ */ $({
346
+ }, Ps = /* @__PURE__ */ R({
347
347
  __name: "base-divider",
348
348
  props: {
349
349
  text: {},
@@ -381,18 +381,18 @@ function tn(e, t, n) {
381
381
  let u;
382
382
  n.key && ((i = n.debug) != null && i.call(n)) && (u = Date.now());
383
383
  const c = e();
384
- if (!(c.length !== r.length || c.some((g, v) => r[v] !== g)))
384
+ if (!(c.length !== r.length || c.some((g, p) => r[p] !== g)))
385
385
  return a;
386
386
  r = c;
387
387
  let h;
388
388
  if (n.key && ((l = n.debug) != null && l.call(n)) && (h = Date.now()), a = t(...c), n.key && ((s = n.debug) != null && s.call(n))) {
389
- const g = Math.round((Date.now() - u) * 100) / 100, v = Math.round((Date.now() - h) * 100) / 100, m = v / 16, b = (y, C) => {
389
+ const g = Math.round((Date.now() - u) * 100) / 100, p = Math.round((Date.now() - h) * 100) / 100, m = p / 16, b = (y, C) => {
390
390
  for (y = String(y); y.length < C; )
391
391
  y = " " + y;
392
392
  return y;
393
393
  };
394
394
  console.info(
395
- `%c⏱ ${b(v, 5)} /${b(g, 5)} ms`,
395
+ `%c⏱ ${b(p, 5)} /${b(g, 5)} ms`,
396
396
  `
397
397
  font-size: .6rem;
398
398
  font-weight: bold;
@@ -651,11 +651,11 @@ class Ns {
651
651
  this.pendingMeasuredCacheIndexes = [];
652
652
  const d = this.measurementsCache.slice(0, s);
653
653
  for (let u = s; u < n; u++) {
654
- const c = o(u), f = this.options.lanes === 1 ? d[u - 1] : this.getFurthestMeasurement(d, u), h = f ? f.end + this.options.gap : r + a, g = l.get(c), v = typeof g == "number" ? g : this.options.estimateSize(u), m = h + v, b = f ? f.lane : u % this.options.lanes;
654
+ const c = o(u), f = this.options.lanes === 1 ? d[u - 1] : this.getFurthestMeasurement(d, u), h = f ? f.end + this.options.gap : r + a, g = l.get(c), p = typeof g == "number" ? g : this.options.estimateSize(u), m = h + p, b = f ? f.lane : u % this.options.lanes;
655
655
  d[u] = {
656
656
  index: u,
657
657
  start: h,
658
- size: v,
658
+ size: p,
659
659
  end: m,
660
660
  key: c,
661
661
  lane: b
@@ -1002,7 +1002,7 @@ let Us = /* @__PURE__ */ Symbol("headlessui.useid"), Ys = 0;
1002
1002
  const Te = (za = Fa.useId) != null ? za : function() {
1003
1003
  return Fa.inject(Us, () => `${++Ys}`)();
1004
1004
  };
1005
- function R(e) {
1005
+ function F(e) {
1006
1006
  var t;
1007
1007
  if (e == null || e.value == null) return null;
1008
1008
  let n = (t = e.value.$el) != null ? t : e.value;
@@ -1044,7 +1044,7 @@ function je(e) {
1044
1044
  if (Ln.isServer) return null;
1045
1045
  if (e instanceof Node) return e.ownerDocument;
1046
1046
  if (e != null && e.hasOwnProperty("value")) {
1047
- let t = R(e);
1047
+ let t = F(e);
1048
1048
  if (t) return t.ownerDocument;
1049
1049
  }
1050
1050
  return document;
@@ -1155,7 +1155,7 @@ function ua(e, t, n = T(() => !0)) {
1155
1155
  })(e);
1156
1156
  for (let d of s) {
1157
1157
  if (d === null) continue;
1158
- let u = d instanceof HTMLElement ? d : R(d);
1158
+ let u = d instanceof HTMLElement ? d : F(d);
1159
1159
  if (u != null && u.contains(l) || o.composed && o.composedPath().includes(u)) return;
1160
1160
  }
1161
1161
  return !sa(l, la.Loose) && l.tabIndex !== -1 && o.preventDefault(), t(o, l);
@@ -1182,7 +1182,7 @@ function da(e, t) {
1182
1182
  n.value = Ya(e.value.type, e.value.as);
1183
1183
  }), Ee(() => {
1184
1184
  var r;
1185
- n.value || R(t) && R(t) instanceof HTMLButtonElement && !((r = R(t)) != null && r.hasAttribute("type")) && (n.value = "button");
1185
+ n.value || F(t) && F(t) instanceof HTMLButtonElement && !((r = F(t)) != null && r.hasAttribute("type")) && (n.value = "button");
1186
1186
  }), n;
1187
1187
  }
1188
1188
  function Xa(e) {
@@ -1233,12 +1233,12 @@ function Or({ props: e, attrs: t, slots: n, slot: r, name: a }) {
1233
1233
  if (l === "template") {
1234
1234
  if (d = ei(d ?? []), Object.keys(s).length > 0 || Object.keys(t).length > 0) {
1235
1235
  let [c, ...f] = d ?? [];
1236
- if (!ru(c) || f.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${a} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(s).concat(Object.keys(t)).map((v) => v.trim()).filter((v, m, b) => b.indexOf(v) === m).sort((v, m) => v.localeCompare(m)).map((v) => ` - ${v}`).join(`
1237
- `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((v) => ` - ${v}`).join(`
1236
+ if (!ru(c) || f.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${a} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(s).concat(Object.keys(t)).map((p) => p.trim()).filter((p, m, b) => b.indexOf(p) === m).sort((p, m) => p.localeCompare(m)).map((p) => ` - ${p}`).join(`
1237
+ `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((p) => ` - ${p}`).join(`
1238
1238
  `)].join(`
1239
1239
  `));
1240
1240
  let h = ti((i = c.props) != null ? i : {}, s, u), g = Fo(c, h, !0);
1241
- for (let v in h) v.startsWith("on") && (g.props || (g.props = {}), g.props[v] = h[v]);
1241
+ for (let p in h) p.startsWith("on") && (g.props || (g.props = {}), g.props[p] = h[p]);
1242
1242
  return g;
1243
1243
  }
1244
1244
  return Array.isArray(d) && d.length === 1 ? d[0] : d;
@@ -1277,7 +1277,7 @@ function ru(e) {
1277
1277
  return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
1278
1278
  }
1279
1279
  var Yt = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Yt || {});
1280
- let Xt = $({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs: n }) {
1280
+ let Xt = R({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs: n }) {
1281
1281
  return () => {
1282
1282
  var r;
1283
1283
  let { features: a, ...o } = e, i = { "aria-hidden": (a & 2) === 2 ? !0 : (r = o["aria-hidden"]) != null ? r : void 0, hidden: (a & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(a & 4) === 4 && (a & 2) !== 2 && { display: "none" } } };
@@ -1379,16 +1379,16 @@ function Gt(e) {
1379
1379
  }
1380
1380
  return t;
1381
1381
  }
1382
- let si = /* @__PURE__ */ Symbol("VirtualContext"), fu = $({ name: "VirtualProvider", setup(e, { slots: t }) {
1382
+ let si = /* @__PURE__ */ Symbol("VirtualContext"), fu = R({ name: "VirtualProvider", setup(e, { slots: t }) {
1383
1383
  let n = Gt("VirtualProvider"), r = T(() => {
1384
- let l = R(n.optionsRef);
1384
+ let l = F(n.optionsRef);
1385
1385
  if (!l) return { start: 0, end: 0 };
1386
1386
  let s = window.getComputedStyle(l);
1387
1387
  return { start: parseFloat(s.paddingBlockStart || s.paddingTop), end: parseFloat(s.paddingBlockEnd || s.paddingBottom) };
1388
1388
  }), a = Hs(T(() => ({ scrollPaddingStart: r.value.start, scrollPaddingEnd: r.value.end, count: n.virtual.value.options.length, estimateSize() {
1389
1389
  return 40;
1390
1390
  }, getScrollElement() {
1391
- return R(n.optionsRef);
1391
+ return F(n.optionsRef);
1392
1392
  }, overscan: 12 }))), o = T(() => {
1393
1393
  var l;
1394
1394
  return (l = n.virtual.value) == null ? void 0 : l.options;
@@ -1401,45 +1401,45 @@ let si = /* @__PURE__ */ Symbol("VirtualContext"), fu = $({ name: "VirtualProvid
1401
1401
  n.activeOptionIndex.value !== null && n.virtual.value.options.length > n.activeOptionIndex.value && a.value.scrollToIndex(n.activeOptionIndex.value);
1402
1402
  }
1403
1403
  } }, a.value.getVirtualItems().map((l) => Fo(t.default({ option: n.virtual.value.options[l.index], open: n.comboboxState.value === 0 })[0], { key: `${i.value}-${l.index}`, "data-index": l.index, "aria-setsize": n.virtual.value.options.length, "aria-posinset": l.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${l.start}px)`, overflowAnchor: "none" } })))];
1404
- } }), pu = $({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], nullable: !0, default: null }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, nullable: { type: Boolean, default: !1 }, multiple: { type: [Boolean], default: !1 }, immediate: { type: [Boolean], default: !1 }, virtual: { type: Object, default: null } }, inheritAttrs: !1, setup(e, { slots: t, attrs: n, emit: r }) {
1404
+ } }), pu = R({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], nullable: !0, default: null }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, nullable: { type: Boolean, default: !1 }, multiple: { type: [Boolean], default: !1 }, immediate: { type: [Boolean], default: !1 }, virtual: { type: Object, default: null } }, inheritAttrs: !1, setup(e, { slots: t, attrs: n, emit: r }) {
1405
1405
  let a = E(1), o = E(null), i = E(null), l = E(null), s = E(null), d = E({ static: !1, hold: !1 }), u = E([]), c = E(null), f = E(2), h = E(!1);
1406
1406
  function g(P = (I) => I) {
1407
- let I = c.value !== null ? u.value[c.value] : null, F = P(u.value.slice()), L = F.length > 0 && F[0].dataRef.order.value !== null ? F.sort((Y, G) => Y.dataRef.order.value - G.dataRef.order.value) : bt(F, (Y) => R(Y.dataRef.domRef)), U = I ? L.indexOf(I) : null;
1408
- return U === -1 && (U = null), { options: L, activeOptionIndex: U };
1407
+ let I = c.value !== null ? u.value[c.value] : null, L = P(u.value.slice()), $ = L.length > 0 && L[0].dataRef.order.value !== null ? L.sort((Y, G) => Y.dataRef.order.value - G.dataRef.order.value) : bt(L, (Y) => F(Y.dataRef.domRef)), U = I ? $.indexOf(I) : null;
1408
+ return U === -1 && (U = null), { options: $, activeOptionIndex: U };
1409
1409
  }
1410
- let v = T(() => e.multiple ? 1 : 0), m = T(() => e.nullable), [b, y] = Yo(T(() => e.modelValue), (P) => r("update:modelValue", P), T(() => e.defaultValue)), C = T(() => b.value === void 0 ? Ce(v.value, { 1: [], 0: void 0 }) : b.value), p = null, k = null;
1411
- function A(P) {
1412
- return Ce(v.value, { 0() {
1410
+ let p = T(() => e.multiple ? 1 : 0), m = T(() => e.nullable), [b, y] = Yo(T(() => e.modelValue), (P) => r("update:modelValue", P), T(() => e.defaultValue)), C = T(() => b.value === void 0 ? Ce(p.value, { 1: [], 0: void 0 }) : b.value), v = null, x = null;
1411
+ function k(P) {
1412
+ return Ce(p.value, { 0() {
1413
1413
  return y?.(P);
1414
1414
  }, 1: () => {
1415
- let I = Le(x.value.value).slice(), F = Le(P), L = I.findIndex((U) => x.compare(F, Le(U)));
1416
- return L === -1 ? I.push(F) : I.splice(L, 1), y?.(I);
1415
+ let I = Le(A.value.value).slice(), L = Le(P), $ = I.findIndex((U) => A.compare(L, Le(U)));
1416
+ return $ === -1 ? I.push(L) : I.splice($, 1), y?.(I);
1417
1417
  } });
1418
1418
  }
1419
1419
  let S = T(() => {
1420
1420
  });
1421
1421
  ne([S], ([P], [I]) => {
1422
- if (x.virtual.value && P && I && c.value !== null) {
1423
- let F = P.indexOf(I[c.value]);
1424
- F !== -1 ? c.value = F : c.value = null;
1422
+ if (A.virtual.value && P && I && c.value !== null) {
1423
+ let L = P.indexOf(I[c.value]);
1424
+ L !== -1 ? c.value = L : c.value = null;
1425
1425
  }
1426
1426
  });
1427
- let x = { comboboxState: a, value: C, mode: v, compare(P, I) {
1427
+ let A = { comboboxState: a, value: C, mode: p, compare(P, I) {
1428
1428
  if (typeof e.by == "string") {
1429
- let F = e.by;
1430
- return P?.[F] === I?.[F];
1429
+ let L = e.by;
1430
+ return P?.[L] === I?.[L];
1431
1431
  }
1432
1432
  return e.by === null ? su(P, I) : e.by(P, I);
1433
1433
  }, calculateIndex(P) {
1434
- return x.virtual.value ? e.by === null ? x.virtual.value.options.indexOf(P) : x.virtual.value.options.findIndex((I) => x.compare(I, P)) : u.value.findIndex((I) => x.compare(I.dataRef.value, P));
1434
+ return A.virtual.value ? e.by === null ? A.virtual.value.options.indexOf(P) : A.virtual.value.options.findIndex((I) => A.compare(I, P)) : u.value.findIndex((I) => A.compare(I.dataRef.value, P));
1435
1435
  }, defaultValue: T(() => e.defaultValue), nullable: m, immediate: T(() => !1), virtual: T(() => null), inputRef: i, labelRef: o, buttonRef: l, optionsRef: s, disabled: T(() => e.disabled), options: u, change(P) {
1436
1436
  y(P);
1437
1437
  }, activeOptionIndex: T(() => {
1438
- if (h.value && c.value === null && (x.virtual.value ? x.virtual.value.options.length > 0 : u.value.length > 0)) {
1439
- if (x.virtual.value) {
1440
- let I = x.virtual.value.options.findIndex((F) => {
1441
- var L;
1442
- return !((L = x.virtual.value) != null && L.disabled(F));
1438
+ if (h.value && c.value === null && (A.virtual.value ? A.virtual.value.options.length > 0 : u.value.length > 0)) {
1439
+ if (A.virtual.value) {
1440
+ let I = A.virtual.value.options.findIndex((L) => {
1441
+ var $;
1442
+ return !(($ = A.virtual.value) != null && $.disabled(L));
1443
1443
  });
1444
1444
  if (I !== -1) return I;
1445
1445
  }
@@ -1451,88 +1451,88 @@ let si = /* @__PURE__ */ Symbol("VirtualContext"), fu = $({ name: "VirtualProvid
1451
1451
  h.value = !1, !e.disabled && a.value !== 1 && (a.value = 1, c.value = null);
1452
1452
  }, openCombobox() {
1453
1453
  if (h.value = !0, !e.disabled && a.value !== 0) {
1454
- if (x.value.value) {
1455
- let P = x.calculateIndex(x.value.value);
1454
+ if (A.value.value) {
1455
+ let P = A.calculateIndex(A.value.value);
1456
1456
  P !== -1 && (c.value = P);
1457
1457
  }
1458
1458
  a.value = 0;
1459
1459
  }
1460
1460
  }, setActivationTrigger(P) {
1461
1461
  f.value = P;
1462
- }, goToOption(P, I, F) {
1463
- h.value = !1, p !== null && cancelAnimationFrame(p), p = requestAnimationFrame(() => {
1462
+ }, goToOption(P, I, L) {
1463
+ h.value = !1, v !== null && cancelAnimationFrame(v), v = requestAnimationFrame(() => {
1464
1464
  if (e.disabled || s.value && !d.value.static && a.value === 1) return;
1465
- if (x.virtual.value) {
1466
- c.value = P === be.Specific ? I : Hr({ focus: P }, { resolveItems: () => x.virtual.value.options, resolveActiveIndex: () => {
1465
+ if (A.virtual.value) {
1466
+ c.value = P === be.Specific ? I : Hr({ focus: P }, { resolveItems: () => A.virtual.value.options, resolveActiveIndex: () => {
1467
1467
  var Y, G;
1468
- return (G = (Y = x.activeOptionIndex.value) != null ? Y : x.virtual.value.options.findIndex((ae) => {
1468
+ return (G = (Y = A.activeOptionIndex.value) != null ? Y : A.virtual.value.options.findIndex((ae) => {
1469
1469
  var re;
1470
- return !((re = x.virtual.value) != null && re.disabled(ae));
1470
+ return !((re = A.virtual.value) != null && re.disabled(ae));
1471
1471
  })) != null ? G : null;
1472
- }, resolveDisabled: (Y) => x.virtual.value.disabled(Y), resolveId() {
1472
+ }, resolveDisabled: (Y) => A.virtual.value.disabled(Y), resolveId() {
1473
1473
  throw new Error("Function not implemented.");
1474
- } }), f.value = F ?? 2;
1474
+ } }), f.value = L ?? 2;
1475
1475
  return;
1476
1476
  }
1477
- let L = g();
1478
- if (L.activeOptionIndex === null) {
1479
- let Y = L.options.findIndex((G) => !G.dataRef.disabled);
1480
- Y !== -1 && (L.activeOptionIndex = Y);
1477
+ let $ = g();
1478
+ if ($.activeOptionIndex === null) {
1479
+ let Y = $.options.findIndex((G) => !G.dataRef.disabled);
1480
+ Y !== -1 && ($.activeOptionIndex = Y);
1481
1481
  }
1482
- let U = P === be.Specific ? I : Hr({ focus: P }, { resolveItems: () => L.options, resolveActiveIndex: () => L.activeOptionIndex, resolveId: (Y) => Y.id, resolveDisabled: (Y) => Y.dataRef.disabled });
1483
- c.value = U, f.value = F ?? 2, u.value = L.options;
1482
+ let U = P === be.Specific ? I : Hr({ focus: P }, { resolveItems: () => $.options, resolveActiveIndex: () => $.activeOptionIndex, resolveId: (Y) => Y.id, resolveDisabled: (Y) => Y.dataRef.disabled });
1483
+ c.value = U, f.value = L ?? 2, u.value = $.options;
1484
1484
  });
1485
1485
  }, selectOption(P) {
1486
- let I = u.value.find((L) => L.id === P);
1486
+ let I = u.value.find(($) => $.id === P);
1487
1487
  if (!I) return;
1488
- let { dataRef: F } = I;
1489
- A(F.value);
1488
+ let { dataRef: L } = I;
1489
+ k(L.value);
1490
1490
  }, selectActiveOption() {
1491
- if (x.activeOptionIndex.value !== null) {
1492
- if (x.virtual.value) A(x.virtual.value.options[x.activeOptionIndex.value]);
1491
+ if (A.activeOptionIndex.value !== null) {
1492
+ if (A.virtual.value) k(A.virtual.value.options[A.activeOptionIndex.value]);
1493
1493
  else {
1494
- let { dataRef: P } = u.value[x.activeOptionIndex.value];
1495
- A(P.value);
1494
+ let { dataRef: P } = u.value[A.activeOptionIndex.value];
1495
+ k(P.value);
1496
1496
  }
1497
- x.goToOption(be.Specific, x.activeOptionIndex.value);
1497
+ A.goToOption(be.Specific, A.activeOptionIndex.value);
1498
1498
  }
1499
1499
  }, registerOption(P, I) {
1500
- let F = pr({ id: P, dataRef: I });
1501
- if (x.virtual.value) {
1502
- u.value.push(F);
1500
+ let L = pr({ id: P, dataRef: I });
1501
+ if (A.virtual.value) {
1502
+ u.value.push(L);
1503
1503
  return;
1504
1504
  }
1505
- k && cancelAnimationFrame(k);
1506
- let L = g((U) => (U.push(F), U));
1507
- c.value === null && x.isSelected(I.value.value) && (L.activeOptionIndex = L.options.indexOf(F)), u.value = L.options, c.value = L.activeOptionIndex, f.value = 2, L.options.some((U) => !R(U.dataRef.domRef)) && (k = requestAnimationFrame(() => {
1505
+ x && cancelAnimationFrame(x);
1506
+ let $ = g((U) => (U.push(L), U));
1507
+ c.value === null && A.isSelected(I.value.value) && ($.activeOptionIndex = $.options.indexOf(L)), u.value = $.options, c.value = $.activeOptionIndex, f.value = 2, $.options.some((U) => !F(U.dataRef.domRef)) && (x = requestAnimationFrame(() => {
1508
1508
  let U = g();
1509
1509
  u.value = U.options, c.value = U.activeOptionIndex;
1510
1510
  }));
1511
1511
  }, unregisterOption(P, I) {
1512
- if (p !== null && cancelAnimationFrame(p), I && (h.value = !0), x.virtual.value) {
1513
- u.value = u.value.filter((L) => L.id !== P);
1512
+ if (v !== null && cancelAnimationFrame(v), I && (h.value = !0), A.virtual.value) {
1513
+ u.value = u.value.filter(($) => $.id !== P);
1514
1514
  return;
1515
1515
  }
1516
- let F = g((L) => {
1517
- let U = L.findIndex((Y) => Y.id === P);
1518
- return U !== -1 && L.splice(U, 1), L;
1516
+ let L = g(($) => {
1517
+ let U = $.findIndex((Y) => Y.id === P);
1518
+ return U !== -1 && $.splice(U, 1), $;
1519
1519
  });
1520
- u.value = F.options, c.value = F.activeOptionIndex, f.value = 2;
1520
+ u.value = L.options, c.value = L.activeOptionIndex, f.value = 2;
1521
1521
  }, isSelected(P) {
1522
- return Ce(v.value, { 0: () => x.compare(Le(x.value.value), Le(P)), 1: () => Le(x.value.value).some((I) => x.compare(Le(I), Le(P))) });
1522
+ return Ce(p.value, { 0: () => A.compare(Le(A.value.value), Le(P)), 1: () => Le(A.value.value).some((I) => A.compare(Le(I), Le(P))) });
1523
1523
  }, isActive(P) {
1524
- return c.value === x.calculateIndex(P);
1524
+ return c.value === A.calculateIndex(P);
1525
1525
  } };
1526
- ua([i, l, s], () => x.closeCombobox(), T(() => a.value === 0)), Pe(li, x), fa(T(() => Ce(a.value, { 0: Oe.Open, 1: Oe.Closed })));
1526
+ ua([i, l, s], () => A.closeCombobox(), T(() => a.value === 0)), Pe(li, A), fa(T(() => Ce(a.value, { 0: Oe.Open, 1: Oe.Closed })));
1527
1527
  let M = T(() => {
1528
1528
  var P;
1529
- return (P = R(i)) == null ? void 0 : P.closest("form");
1529
+ return (P = F(i)) == null ? void 0 : P.closest("form");
1530
1530
  });
1531
1531
  return te(() => {
1532
1532
  ne([M], () => {
1533
1533
  if (!M.value || e.defaultValue === void 0) return;
1534
1534
  function P() {
1535
- x.change(e.defaultValue);
1535
+ A.change(e.defaultValue);
1536
1536
  }
1537
1537
  return M.value.addEventListener("reset", P), () => {
1538
1538
  var I;
@@ -1540,31 +1540,31 @@ let si = /* @__PURE__ */ Symbol("VirtualContext"), fu = $({ name: "VirtualProvid
1540
1540
  };
1541
1541
  }, { immediate: !0 });
1542
1542
  }), () => {
1543
- var P, I, F;
1544
- let { name: L, disabled: U, form: Y, ...G } = e, ae = { open: a.value === 0, disabled: U, activeIndex: x.activeOptionIndex.value, activeOption: x.activeOptionIndex.value === null ? null : x.virtual.value ? x.virtual.value.options[(P = x.activeOptionIndex.value) != null ? P : 0] : (F = (I = x.options.value[x.activeOptionIndex.value]) == null ? void 0 : I.dataRef.value) != null ? F : null, value: C.value };
1545
- return ue(fe, [...L != null && C.value != null ? pa({ [L]: C.value }).map(([re, ce]) => ue(Xt, ni({ features: Yt.Hidden, key: re, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: Y, disabled: U, name: re, value: ce }))) : [], pe({ theirProps: { ...n, ...Qt(G, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: ae, slots: t, attrs: n, name: "Combobox" })]);
1543
+ var P, I, L;
1544
+ let { name: $, disabled: U, form: Y, ...G } = e, ae = { open: a.value === 0, disabled: U, activeIndex: A.activeOptionIndex.value, activeOption: A.activeOptionIndex.value === null ? null : A.virtual.value ? A.virtual.value.options[(P = A.activeOptionIndex.value) != null ? P : 0] : (L = (I = A.options.value[A.activeOptionIndex.value]) == null ? void 0 : I.dataRef.value) != null ? L : null, value: C.value };
1545
+ return ue(fe, [...$ != null && C.value != null ? pa({ [$]: C.value }).map(([re, ce]) => ue(Xt, ni({ features: Yt.Hidden, key: re, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: Y, disabled: U, name: re, value: ce }))) : [], pe({ theirProps: { ...n, ...Qt(G, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: ae, slots: t, attrs: n, name: "Combobox" })]);
1546
1546
  };
1547
1547
  } });
1548
- $({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
1548
+ R({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
1549
1549
  var r;
1550
1550
  let a = (r = e.id) != null ? r : `headlessui-combobox-label-${Te()}`, o = Gt("ComboboxLabel");
1551
1551
  function i() {
1552
1552
  var l;
1553
- (l = R(o.inputRef)) == null || l.focus({ preventScroll: !0 });
1553
+ (l = F(o.inputRef)) == null || l.focus({ preventScroll: !0 });
1554
1554
  }
1555
1555
  return () => {
1556
1556
  let l = { open: o.comboboxState.value === 0, disabled: o.disabled.value }, { ...s } = e, d = { id: a, ref: o.labelRef, onClick: i };
1557
1557
  return pe({ ourProps: d, theirProps: s, slot: l, attrs: t, slots: n, name: "ComboboxLabel" });
1558
1558
  };
1559
1559
  } });
1560
- let vu = $({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
1560
+ let vu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
1561
1561
  var a;
1562
1562
  let o = (a = e.id) != null ? a : `headlessui-combobox-button-${Te()}`, i = Gt("ComboboxButton");
1563
1563
  r({ el: i.buttonRef, $el: i.buttonRef });
1564
1564
  function l(u) {
1565
1565
  i.disabled.value || (i.comboboxState.value === 0 ? i.closeCombobox() : (u.preventDefault(), i.openCombobox()), ke(() => {
1566
1566
  var c;
1567
- return (c = R(i.inputRef)) == null ? void 0 : c.focus({ preventScroll: !0 });
1567
+ return (c = F(i.inputRef)) == null ? void 0 : c.focus({ preventScroll: !0 });
1568
1568
  }));
1569
1569
  }
1570
1570
  function s(u) {
@@ -1595,40 +1595,40 @@ let vu = $({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
1595
1595
  let d = da(T(() => ({ as: e.as, type: t.type })), i.buttonRef);
1596
1596
  return () => {
1597
1597
  var u, c;
1598
- let f = { open: i.comboboxState.value === 0, disabled: i.disabled.value, value: i.value.value }, { ...h } = e, g = { ref: i.buttonRef, id: o, type: d.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": (u = R(i.optionsRef)) == null ? void 0 : u.id, "aria-expanded": i.comboboxState.value === 0, "aria-labelledby": i.labelRef.value ? [(c = R(i.labelRef)) == null ? void 0 : c.id, o].join(" ") : void 0, disabled: i.disabled.value === !0 ? !0 : void 0, onKeydown: s, onClick: l };
1598
+ let f = { open: i.comboboxState.value === 0, disabled: i.disabled.value, value: i.value.value }, { ...h } = e, g = { ref: i.buttonRef, id: o, type: d.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": (u = F(i.optionsRef)) == null ? void 0 : u.id, "aria-expanded": i.comboboxState.value === 0, "aria-labelledby": i.labelRef.value ? [(c = F(i.labelRef)) == null ? void 0 : c.id, o].join(" ") : void 0, disabled: i.disabled.value === !0 ? !0 : void 0, onKeydown: s, onClick: l };
1599
1599
  return pe({ ourProps: g, theirProps: h, slot: f, attrs: t, slots: n, name: "ComboboxButton" });
1600
1600
  };
1601
- } }), mu = $({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: null } }, emits: { change: (e) => !0 }, setup(e, { emit: t, attrs: n, slots: r, expose: a }) {
1601
+ } }), mu = R({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: null } }, emits: { change: (e) => !0 }, setup(e, { emit: t, attrs: n, slots: r, expose: a }) {
1602
1602
  var o;
1603
- let i = (o = e.id) != null ? o : `headlessui-combobox-input-${Te()}`, l = Gt("ComboboxInput"), s = T(() => je(R(l.inputRef))), d = { value: !1 };
1603
+ let i = (o = e.id) != null ? o : `headlessui-combobox-input-${Te()}`, l = Gt("ComboboxInput"), s = T(() => je(F(l.inputRef))), d = { value: !1 };
1604
1604
  a({ el: l.inputRef, $el: l.inputRef });
1605
1605
  function u() {
1606
1606
  l.change(null);
1607
- let k = R(l.optionsRef);
1608
- k && (k.scrollTop = 0), l.goToOption(be.Nothing);
1607
+ let x = F(l.optionsRef);
1608
+ x && (x.scrollTop = 0), l.goToOption(be.Nothing);
1609
1609
  }
1610
1610
  let c = T(() => {
1611
- var k;
1612
- let A = l.value.value;
1613
- return R(l.inputRef) ? typeof e.displayValue < "u" && A !== void 0 ? (k = e.displayValue(A)) != null ? k : "" : typeof A == "string" ? A : "" : "";
1611
+ var x;
1612
+ let k = l.value.value;
1613
+ return F(l.inputRef) ? typeof e.displayValue < "u" && k !== void 0 ? (x = e.displayValue(k)) != null ? x : "" : typeof k == "string" ? k : "" : "";
1614
1614
  });
1615
1615
  te(() => {
1616
- ne([c, l.comboboxState, s], ([k, A], [S, x]) => {
1616
+ ne([c, l.comboboxState, s], ([x, k], [S, A]) => {
1617
1617
  if (d.value) return;
1618
- let M = R(l.inputRef);
1619
- M && ((x === 0 && A === 1 || k !== S) && (M.value = k), requestAnimationFrame(() => {
1618
+ let M = F(l.inputRef);
1619
+ M && ((A === 0 && k === 1 || x !== S) && (M.value = x), requestAnimationFrame(() => {
1620
1620
  var P;
1621
1621
  if (d.value || !M || ((P = s.value) == null ? void 0 : P.activeElement) !== M) return;
1622
- let { selectionStart: I, selectionEnd: F } = M;
1623
- Math.abs((F ?? 0) - (I ?? 0)) === 0 && I === 0 && M.setSelectionRange(M.value.length, M.value.length);
1622
+ let { selectionStart: I, selectionEnd: L } = M;
1623
+ Math.abs((L ?? 0) - (I ?? 0)) === 0 && I === 0 && M.setSelectionRange(M.value.length, M.value.length);
1624
1624
  }));
1625
- }, { immediate: !0 }), ne([l.comboboxState], ([k], [A]) => {
1626
- if (k === 0 && A === 1) {
1625
+ }, { immediate: !0 }), ne([l.comboboxState], ([x], [k]) => {
1626
+ if (x === 0 && k === 1) {
1627
1627
  if (d.value) return;
1628
- let S = R(l.inputRef);
1628
+ let S = F(l.inputRef);
1629
1629
  if (!S) return;
1630
- let x = S.value, { selectionStart: M, selectionEnd: P, selectionDirection: I } = S;
1631
- S.value = "", S.value = x, I !== null ? S.setSelectionRange(M, P, I) : S.setSelectionRange(M, P);
1630
+ let A = S.value, { selectionStart: M, selectionEnd: P, selectionDirection: I } = S;
1631
+ S.value = "", S.value = A, I !== null ? S.setSelectionRange(M, P, I) : S.setSelectionRange(M, P);
1632
1632
  }
1633
1633
  });
1634
1634
  });
@@ -1641,40 +1641,40 @@ let vu = $({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
1641
1641
  f.value = !1;
1642
1642
  });
1643
1643
  }
1644
- let v = zs();
1645
- function m(k) {
1646
- switch (d.value = !0, v(() => {
1644
+ let p = zs();
1645
+ function m(x) {
1646
+ switch (d.value = !0, p(() => {
1647
1647
  d.value = !1;
1648
- }), k.key) {
1648
+ }), x.key) {
1649
1649
  case Z.Enter:
1650
1650
  if (d.value = !1, l.comboboxState.value !== 0 || f.value) return;
1651
- if (k.preventDefault(), k.stopPropagation(), l.activeOptionIndex.value === null) {
1651
+ if (x.preventDefault(), x.stopPropagation(), l.activeOptionIndex.value === null) {
1652
1652
  l.closeCombobox();
1653
1653
  return;
1654
1654
  }
1655
1655
  l.selectActiveOption(), l.mode.value === 0 && l.closeCombobox();
1656
1656
  break;
1657
1657
  case Z.ArrowDown:
1658
- return d.value = !1, k.preventDefault(), k.stopPropagation(), Ce(l.comboboxState.value, { 0: () => l.goToOption(be.Next), 1: () => l.openCombobox() });
1658
+ return d.value = !1, x.preventDefault(), x.stopPropagation(), Ce(l.comboboxState.value, { 0: () => l.goToOption(be.Next), 1: () => l.openCombobox() });
1659
1659
  case Z.ArrowUp:
1660
- return d.value = !1, k.preventDefault(), k.stopPropagation(), Ce(l.comboboxState.value, { 0: () => l.goToOption(be.Previous), 1: () => {
1660
+ return d.value = !1, x.preventDefault(), x.stopPropagation(), Ce(l.comboboxState.value, { 0: () => l.goToOption(be.Previous), 1: () => {
1661
1661
  l.openCombobox(), ke(() => {
1662
1662
  l.value.value || l.goToOption(be.Last);
1663
1663
  });
1664
1664
  } });
1665
1665
  case Z.Home:
1666
- if (k.shiftKey) break;
1667
- return d.value = !1, k.preventDefault(), k.stopPropagation(), l.goToOption(be.First);
1666
+ if (x.shiftKey) break;
1667
+ return d.value = !1, x.preventDefault(), x.stopPropagation(), l.goToOption(be.First);
1668
1668
  case Z.PageUp:
1669
- return d.value = !1, k.preventDefault(), k.stopPropagation(), l.goToOption(be.First);
1669
+ return d.value = !1, x.preventDefault(), x.stopPropagation(), l.goToOption(be.First);
1670
1670
  case Z.End:
1671
- if (k.shiftKey) break;
1672
- return d.value = !1, k.preventDefault(), k.stopPropagation(), l.goToOption(be.Last);
1671
+ if (x.shiftKey) break;
1672
+ return d.value = !1, x.preventDefault(), x.stopPropagation(), l.goToOption(be.Last);
1673
1673
  case Z.PageDown:
1674
- return d.value = !1, k.preventDefault(), k.stopPropagation(), l.goToOption(be.Last);
1674
+ return d.value = !1, x.preventDefault(), x.stopPropagation(), l.goToOption(be.Last);
1675
1675
  case Z.Escape:
1676
1676
  if (d.value = !1, l.comboboxState.value !== 0) return;
1677
- k.preventDefault(), l.optionsRef.value && !l.optionsPropsRef.value.static && k.stopPropagation(), l.nullable.value && l.mode.value === 0 && l.value.value === null && u(), l.closeCombobox();
1677
+ x.preventDefault(), l.optionsRef.value && !l.optionsPropsRef.value.static && x.stopPropagation(), l.nullable.value && l.mode.value === 0 && l.value.value === null && u(), l.closeCombobox();
1678
1678
  break;
1679
1679
  case Z.Tab:
1680
1680
  if (d.value = !1, l.comboboxState.value !== 0) return;
@@ -1682,31 +1682,31 @@ let vu = $({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
1682
1682
  break;
1683
1683
  }
1684
1684
  }
1685
- function b(k) {
1686
- t("change", k), l.nullable.value && l.mode.value === 0 && k.target.value === "" && u(), l.openCombobox();
1685
+ function b(x) {
1686
+ t("change", x), l.nullable.value && l.mode.value === 0 && x.target.value === "" && u(), l.openCombobox();
1687
1687
  }
1688
- function y(k) {
1689
- var A, S, x;
1690
- let M = (A = k.relatedTarget) != null ? A : yt.find((P) => P !== k.currentTarget);
1691
- if (d.value = !1, !((S = R(l.optionsRef)) != null && S.contains(M)) && !((x = R(l.buttonRef)) != null && x.contains(M)) && l.comboboxState.value === 0) return k.preventDefault(), l.mode.value === 0 && (l.nullable.value && l.value.value === null ? u() : l.activationTrigger.value !== 1 && l.selectActiveOption()), l.closeCombobox();
1688
+ function y(x) {
1689
+ var k, S, A;
1690
+ let M = (k = x.relatedTarget) != null ? k : yt.find((P) => P !== x.currentTarget);
1691
+ if (d.value = !1, !((S = F(l.optionsRef)) != null && S.contains(M)) && !((A = F(l.buttonRef)) != null && A.contains(M)) && l.comboboxState.value === 0) return x.preventDefault(), l.mode.value === 0 && (l.nullable.value && l.value.value === null ? u() : l.activationTrigger.value !== 1 && l.selectActiveOption()), l.closeCombobox();
1692
1692
  }
1693
- function C(k) {
1694
- var A, S, x;
1695
- let M = (A = k.relatedTarget) != null ? A : yt.find((P) => P !== k.currentTarget);
1696
- (S = R(l.buttonRef)) != null && S.contains(M) || (x = R(l.optionsRef)) != null && x.contains(M) || l.disabled.value || l.immediate.value && l.comboboxState.value !== 0 && (l.openCombobox(), Bt().nextFrame(() => {
1693
+ function C(x) {
1694
+ var k, S, A;
1695
+ let M = (k = x.relatedTarget) != null ? k : yt.find((P) => P !== x.currentTarget);
1696
+ (S = F(l.buttonRef)) != null && S.contains(M) || (A = F(l.optionsRef)) != null && A.contains(M) || l.disabled.value || l.immediate.value && l.comboboxState.value !== 0 && (l.openCombobox(), Bt().nextFrame(() => {
1697
1697
  l.setActivationTrigger(1);
1698
1698
  }));
1699
1699
  }
1700
- let p = T(() => {
1701
- var k, A, S, x;
1702
- return (x = (S = (A = e.defaultValue) != null ? A : l.defaultValue.value !== void 0 ? (k = e.displayValue) == null ? void 0 : k.call(e, l.defaultValue.value) : null) != null ? S : l.defaultValue.value) != null ? x : "";
1700
+ let v = T(() => {
1701
+ var x, k, S, A;
1702
+ return (A = (S = (k = e.defaultValue) != null ? k : l.defaultValue.value !== void 0 ? (x = e.displayValue) == null ? void 0 : x.call(e, l.defaultValue.value) : null) != null ? S : l.defaultValue.value) != null ? A : "";
1703
1703
  });
1704
1704
  return () => {
1705
- var k, A, S, x, M, P, I;
1706
- let F = { open: l.comboboxState.value === 0 }, { displayValue: L, onChange: U, ...Y } = e, G = { "aria-controls": (k = l.optionsRef.value) == null ? void 0 : k.id, "aria-expanded": l.comboboxState.value === 0, "aria-activedescendant": l.activeOptionIndex.value === null ? void 0 : l.virtual.value ? (A = l.options.value.find((ae) => !l.virtual.value.disabled(ae.dataRef.value) && l.compare(ae.dataRef.value, l.virtual.value.options[l.activeOptionIndex.value]))) == null ? void 0 : A.id : (S = l.options.value[l.activeOptionIndex.value]) == null ? void 0 : S.id, "aria-labelledby": (P = (x = R(l.labelRef)) == null ? void 0 : x.id) != null ? P : (M = R(l.buttonRef)) == null ? void 0 : M.id, "aria-autocomplete": "list", id: i, onCompositionstart: h, onCompositionend: g, onKeydown: m, onInput: b, onFocus: C, onBlur: y, role: "combobox", type: (I = n.type) != null ? I : "text", tabIndex: 0, ref: l.inputRef, defaultValue: p.value, disabled: l.disabled.value === !0 ? !0 : void 0 };
1707
- return pe({ ourProps: G, theirProps: Y, slot: F, attrs: n, slots: r, features: Qe.RenderStrategy | Qe.Static, name: "ComboboxInput" });
1705
+ var x, k, S, A, M, P, I;
1706
+ let L = { open: l.comboboxState.value === 0 }, { displayValue: $, onChange: U, ...Y } = e, G = { "aria-controls": (x = l.optionsRef.value) == null ? void 0 : x.id, "aria-expanded": l.comboboxState.value === 0, "aria-activedescendant": l.activeOptionIndex.value === null ? void 0 : l.virtual.value ? (k = l.options.value.find((ae) => !l.virtual.value.disabled(ae.dataRef.value) && l.compare(ae.dataRef.value, l.virtual.value.options[l.activeOptionIndex.value]))) == null ? void 0 : k.id : (S = l.options.value[l.activeOptionIndex.value]) == null ? void 0 : S.id, "aria-labelledby": (P = (A = F(l.labelRef)) == null ? void 0 : A.id) != null ? P : (M = F(l.buttonRef)) == null ? void 0 : M.id, "aria-autocomplete": "list", id: i, onCompositionstart: h, onCompositionend: g, onKeydown: m, onInput: b, onFocus: C, onBlur: y, role: "combobox", type: (I = n.type) != null ? I : "text", tabIndex: 0, ref: l.inputRef, defaultValue: v.value, disabled: l.disabled.value === !0 ? !0 : void 0 };
1707
+ return pe({ ourProps: G, theirProps: Y, slot: L, attrs: n, slots: r, features: Qe.RenderStrategy | Qe.Static, name: "ComboboxInput" });
1708
1708
  };
1709
- } }), hu = $({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, hold: { type: [Boolean], default: !1 } }, setup(e, { attrs: t, slots: n, expose: r }) {
1709
+ } }), hu = R({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, hold: { type: [Boolean], default: !1 } }, setup(e, { attrs: t, slots: n, expose: r }) {
1710
1710
  let a = Gt("ComboboxOptions"), o = `headlessui-combobox-options-${Te()}`;
1711
1711
  r({ el: a.optionsRef, $el: a.optionsRef }), Ee(() => {
1712
1712
  a.optionsPropsRef.value.static = e.static;
@@ -1714,7 +1714,7 @@ let vu = $({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
1714
1714
  a.optionsPropsRef.value.hold = e.hold;
1715
1715
  });
1716
1716
  let i = Fn(), l = T(() => i !== null ? (i.value & Oe.Open) === Oe.Open : a.comboboxState.value === 0);
1717
- ca({ container: T(() => R(a.optionsRef)), enabled: T(() => a.comboboxState.value === 0), accept(d) {
1717
+ ca({ container: T(() => F(a.optionsRef)), enabled: T(() => a.comboboxState.value === 0), accept(d) {
1718
1718
  return d.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : d.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
1719
1719
  }, walk(d) {
1720
1720
  d.setAttribute("role", "none");
@@ -1724,10 +1724,10 @@ let vu = $({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
1724
1724
  }
1725
1725
  return () => {
1726
1726
  var d, u, c;
1727
- let f = { open: a.comboboxState.value === 0 }, h = { "aria-labelledby": (c = (d = R(a.labelRef)) == null ? void 0 : d.id) != null ? c : (u = R(a.buttonRef)) == null ? void 0 : u.id, id: o, ref: a.optionsRef, role: "listbox", "aria-multiselectable": a.mode.value === 1 ? !0 : void 0, onMousedown: s }, g = Qt(e, ["hold"]);
1727
+ let f = { open: a.comboboxState.value === 0 }, h = { "aria-labelledby": (c = (d = F(a.labelRef)) == null ? void 0 : d.id) != null ? c : (u = F(a.buttonRef)) == null ? void 0 : u.id, id: o, ref: a.optionsRef, role: "listbox", "aria-multiselectable": a.mode.value === 1 ? !0 : void 0, onMousedown: s }, g = Qt(e, ["hold"]);
1728
1728
  return pe({ ourProps: h, theirProps: g, slot: f, attrs: t, slots: a.virtual.value && a.comboboxState.value === 0 ? { ...n, default: () => [ue(fu, {}, n.default)] } : n, features: Qe.RenderStrategy | Qe.Static, visible: l.value, name: "ComboboxOptions" });
1729
1729
  };
1730
- } }), gu = $({ name: "ComboboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, order: { type: [Number], default: null } }, setup(e, { slots: t, attrs: n, expose: r }) {
1730
+ } }), gu = R({ name: "ComboboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, order: { type: [Number], default: null } }, setup(e, { slots: t, attrs: n, expose: r }) {
1731
1731
  let a = Gt("ComboboxOption"), o = `headlessui-combobox-option-${Te()}`, i = E(null), l = T(() => e.disabled);
1732
1732
  r({ el: i, $el: i });
1733
1733
  let s = T(() => {
@@ -1735,18 +1735,18 @@ let vu = $({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
1735
1735
  return a.virtual.value ? a.activeOptionIndex.value === a.calculateIndex(e.value) : a.activeOptionIndex.value === null ? !1 : ((y = a.options.value[a.activeOptionIndex.value]) == null ? void 0 : y.id) === o;
1736
1736
  }), d = T(() => a.isSelected(e.value)), u = Se(si, null), c = T(() => ({ disabled: e.disabled, value: e.value, domRef: i, order: T(() => e.order) }));
1737
1737
  te(() => a.registerOption(o, c)), De(() => a.unregisterOption(o, s.value)), Ee(() => {
1738
- let y = R(i);
1738
+ let y = F(i);
1739
1739
  y && u?.value.measureElement(y);
1740
1740
  }), Ee(() => {
1741
1741
  a.comboboxState.value === 0 && s.value && (a.virtual.value || a.activationTrigger.value !== 0 && ke(() => {
1742
1742
  var y, C;
1743
- return (C = (y = R(i)) == null ? void 0 : y.scrollIntoView) == null ? void 0 : C.call(y, { block: "nearest" });
1743
+ return (C = (y = F(i)) == null ? void 0 : y.scrollIntoView) == null ? void 0 : C.call(y, { block: "nearest" });
1744
1744
  }));
1745
1745
  });
1746
1746
  function f(y) {
1747
1747
  y.preventDefault(), y.button === ai.Left && (l.value || (a.selectOption(o), Ko() || requestAnimationFrame(() => {
1748
1748
  var C;
1749
- return (C = R(a.inputRef)) == null ? void 0 : C.focus({ preventScroll: !0 });
1749
+ return (C = F(a.inputRef)) == null ? void 0 : C.focus({ preventScroll: !0 });
1750
1750
  }), a.mode.value === 0 && a.closeCombobox()));
1751
1751
  }
1752
1752
  function h() {
@@ -1756,22 +1756,22 @@ let vu = $({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
1756
1756
  a.goToOption(be.Specific, C);
1757
1757
  }
1758
1758
  let g = Zo();
1759
- function v(y) {
1759
+ function p(y) {
1760
1760
  g.update(y);
1761
1761
  }
1762
1762
  function m(y) {
1763
1763
  var C;
1764
1764
  if (!g.wasMoved(y) || e.disabled || (C = a.virtual.value) != null && C.disabled(e.value) || s.value) return;
1765
- let p = a.calculateIndex(e.value);
1766
- a.goToOption(be.Specific, p, 0);
1765
+ let v = a.calculateIndex(e.value);
1766
+ a.goToOption(be.Specific, v, 0);
1767
1767
  }
1768
1768
  function b(y) {
1769
1769
  var C;
1770
1770
  g.wasMoved(y) && (e.disabled || (C = a.virtual.value) != null && C.disabled(e.value) || s.value && (a.optionsPropsRef.value.hold || a.goToOption(be.Nothing)));
1771
1771
  }
1772
1772
  return () => {
1773
- let { disabled: y } = e, C = { active: s.value, selected: d.value, disabled: y }, p = { id: o, ref: i, role: "option", tabIndex: y === !0 ? void 0 : -1, "aria-disabled": y === !0 ? !0 : void 0, "aria-selected": d.value, disabled: void 0, onMousedown: f, onFocus: h, onPointerenter: v, onMouseenter: v, onPointermove: m, onMousemove: m, onPointerleave: b, onMouseleave: b }, k = Qt(e, ["order", "value"]);
1774
- return pe({ ourProps: p, theirProps: k, slot: C, attrs: n, slots: t, name: "ComboboxOption" });
1773
+ let { disabled: y } = e, C = { active: s.value, selected: d.value, disabled: y }, v = { id: o, ref: i, role: "option", tabIndex: y === !0 ? void 0 : -1, "aria-disabled": y === !0 ? !0 : void 0, "aria-selected": d.value, disabled: void 0, onMousedown: f, onFocus: h, onPointerenter: p, onMouseenter: p, onPointermove: m, onMousemove: m, onPointerleave: b, onMouseleave: b }, x = Qt(e, ["order", "value"]);
1774
+ return pe({ ourProps: v, theirProps: x, slot: C, attrs: n, slots: t, name: "ComboboxOption" });
1775
1775
  };
1776
1776
  } });
1777
1777
  function ui(e, t, n, r) {
@@ -1791,13 +1791,13 @@ function di(e) {
1791
1791
  if (typeof e == "function") return new Set(e());
1792
1792
  let t = /* @__PURE__ */ new Set();
1793
1793
  for (let n of e.value) {
1794
- let r = R(n);
1794
+ let r = F(n);
1795
1795
  r instanceof HTMLElement && t.add(r);
1796
1796
  }
1797
1797
  return t;
1798
1798
  }
1799
1799
  var ci = ((e) => (e[e.None = 1] = "None", e[e.InitialFocus = 2] = "InitialFocus", e[e.TabLock = 4] = "TabLock", e[e.FocusLock = 8] = "FocusLock", e[e.RestoreFocus = 16] = "RestoreFocus", e[e.All = 30] = "All", e))(ci || {});
1800
- let hn = Object.assign($({ name: "FocusTrap", props: { as: { type: [Object, String], default: "div" }, initialFocus: { type: Object, default: null }, features: { type: Number, default: 30 }, containers: { type: [Object, Function], default: E(/* @__PURE__ */ new Set()) } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
1800
+ let hn = Object.assign(R({ name: "FocusTrap", props: { as: { type: [Object, String], default: "div" }, initialFocus: { type: Object, default: null }, features: { type: Number, default: 30 }, containers: { type: [Object, Function], default: E(/* @__PURE__ */ new Set()) } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
1801
1801
  let a = E(null);
1802
1802
  r({ el: a, $el: a });
1803
1803
  let o = T(() => je(a)), i = E(!1);
@@ -1806,8 +1806,8 @@ let hn = Object.assign($({ name: "FocusTrap", props: { as: { type: [Object, Stri
1806
1806
  xu({ ownerDocument: o, container: a, containers: e.containers, previousActiveElement: l }, T(() => i.value && !!(e.features & 8)));
1807
1807
  let s = bu();
1808
1808
  function d(h) {
1809
- let g = R(a);
1810
- g && ((v) => v())(() => {
1809
+ let g = F(a);
1810
+ g && ((p) => p())(() => {
1811
1811
  Ce(s.value, { [xn.Forwards]: () => {
1812
1812
  Ne(g, xe.First, { skipElements: [h.relatedTarget] });
1813
1813
  }, [xn.Backwards]: () => {
@@ -1824,13 +1824,13 @@ let hn = Object.assign($({ name: "FocusTrap", props: { as: { type: [Object, Stri
1824
1824
  function f(h) {
1825
1825
  if (!i.value) return;
1826
1826
  let g = di(e.containers);
1827
- R(a) instanceof HTMLElement && g.add(R(a));
1828
- let v = h.relatedTarget;
1829
- v instanceof HTMLElement && v.dataset.headlessuiFocusGuard !== "true" && (fi(g, v) || (u.value ? Ne(R(a), Ce(s.value, { [xn.Forwards]: () => xe.Next, [xn.Backwards]: () => xe.Previous }) | xe.WrapAround, { relativeTo: h.target }) : h.target instanceof HTMLElement && Et(h.target)));
1827
+ F(a) instanceof HTMLElement && g.add(F(a));
1828
+ let p = h.relatedTarget;
1829
+ p instanceof HTMLElement && p.dataset.headlessuiFocusGuard !== "true" && (fi(g, p) || (u.value ? Ne(F(a), Ce(s.value, { [xn.Forwards]: () => xe.Next, [xn.Backwards]: () => xe.Previous }) | xe.WrapAround, { relativeTo: h.target }) : h.target instanceof HTMLElement && Et(h.target)));
1830
1830
  }
1831
1831
  return () => {
1832
- let h = {}, g = { ref: a, onKeydown: c, onFocusout: f }, { features: v, initialFocus: m, containers: b, ...y } = e;
1833
- return ue(fe, [!!(v & 4) && ue(Xt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Yt.Focusable }), pe({ ourProps: g, theirProps: { ...t, ...y }, slot: h, attrs: t, slots: n, name: "FocusTrap" }), !!(v & 4) && ue(Xt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Yt.Focusable })]);
1832
+ let h = {}, g = { ref: a, onKeydown: c, onFocusout: f }, { features: p, initialFocus: m, containers: b, ...y } = e;
1833
+ return ue(fe, [!!(p & 4) && ue(Xt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Yt.Focusable }), pe({ ourProps: g, theirProps: { ...t, ...y }, slot: h, attrs: t, slots: n, name: "FocusTrap" }), !!(p & 4) && ue(Xt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Yt.Focusable })]);
1834
1834
  };
1835
1835
  } }), { features: ci });
1836
1836
  function yu(e) {
@@ -1860,11 +1860,11 @@ function wu({ ownerDocument: e, container: t, initialFocus: n }, r) {
1860
1860
  return te(() => o.value = !0), De(() => o.value = !1), te(() => {
1861
1861
  ne([t, n, r], (i, l) => {
1862
1862
  if (i.every((d, u) => l?.[u] === d) || !r.value) return;
1863
- let s = R(t);
1863
+ let s = F(t);
1864
1864
  s && hr(() => {
1865
1865
  var d, u;
1866
1866
  if (!o.value) return;
1867
- let c = R(n), f = (d = e.value) == null ? void 0 : d.activeElement;
1867
+ let c = F(n), f = (d = e.value) == null ? void 0 : d.activeElement;
1868
1868
  if (c) {
1869
1869
  if (c === f) {
1870
1870
  a.value = f;
@@ -1884,7 +1884,7 @@ function xu({ ownerDocument: e, container: t, containers: n, previousActiveEleme
1884
1884
  ui((o = e.value) == null ? void 0 : o.defaultView, "focus", (i) => {
1885
1885
  if (!a.value) return;
1886
1886
  let l = di(n);
1887
- R(t) instanceof HTMLElement && l.add(R(t));
1887
+ F(t) instanceof HTMLElement && l.add(F(t));
1888
1888
  let s = r.value;
1889
1889
  if (!s) return;
1890
1890
  let d = i.target;
@@ -2018,7 +2018,7 @@ function Qa(e, t = E(!0)) {
2018
2018
  Ee((n) => {
2019
2019
  var r;
2020
2020
  if (!t.value) return;
2021
- let a = R(e);
2021
+ let a = F(e);
2022
2022
  if (!a) return;
2023
2023
  n(function() {
2024
2024
  var i;
@@ -2039,7 +2039,7 @@ function Pu({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {})
2039
2039
  let d = [];
2040
2040
  for (let u of e) u !== null && (u instanceof HTMLElement ? d.push(u) : "value" in u && u.value instanceof HTMLElement && d.push(u.value));
2041
2041
  if (t != null && t.value) for (let u of t.value) d.push(u);
2042
- for (let u of (i = a?.querySelectorAll("html > *, body > *")) != null ? i : []) u !== document.body && u !== document.head && u instanceof HTMLElement && u.id !== "headlessui-portal-root" && (u.contains(R(r)) || u.contains((s = (l = R(r)) == null ? void 0 : l.getRootNode()) == null ? void 0 : s.host) || d.some((c) => u.contains(c)) || d.push(u));
2042
+ for (let u of (i = a?.querySelectorAll("html > *, body > *")) != null ? i : []) u !== document.body && u !== document.head && u instanceof HTMLElement && u.id !== "headlessui-portal-root" && (u.contains(F(r)) || u.contains((s = (l = F(r)) == null ? void 0 : l.getRootNode()) == null ? void 0 : s.host) || d.some((c) => u.contains(c)) || d.push(u));
2043
2043
  return d;
2044
2044
  }
2045
2045
  return { resolveContainers: o, contains(i) {
@@ -2052,7 +2052,7 @@ let pi = /* @__PURE__ */ Symbol("ForcePortalRootContext");
2052
2052
  function Du() {
2053
2053
  return Se(pi, !1);
2054
2054
  }
2055
- let qr = $({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(e, { slots: t, attrs: n }) {
2055
+ let qr = R({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(e, { slots: t, attrs: n }) {
2056
2056
  return Pe(pi, e.force), () => {
2057
2057
  let { force: r, ...a } = e;
2058
2058
  return pe({ theirProps: a, ourProps: {}, slot: {}, slots: t, attrs: n, name: "ForcePortalRoot" });
@@ -2092,7 +2092,7 @@ function va({ slot: e = E({}), name: t = "Description", props: n = {} } = {}) {
2092
2092
  }
2093
2093
  return Pe(mi, { register: a, slot: e, name: t, props: n }), T(() => r.value.length > 0 ? r.value.join(" ") : void 0);
2094
2094
  }
2095
- $({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
2095
+ R({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
2096
2096
  var r;
2097
2097
  let a = (r = e.id) != null ? r : `headlessui-description-${Te()}`, o = $u();
2098
2098
  return te(() => De(o.register(a))), () => {
@@ -2120,7 +2120,7 @@ function Ga(e, t) {
2120
2120
  let n = t(Lu(e));
2121
2121
  return n <= 0 ? Ur.delete(e) : Ur.set(e, n), n;
2122
2122
  }
2123
- let hi = $({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
2123
+ let hi = R({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
2124
2124
  let r = E(null), a = T(() => je(r)), o = Du(), i = Se(gi, null), l = E(o === !0 || i == null ? Ru(r.value) : i.resolveTarget());
2125
2125
  l.value && Ga(l.value, (f) => f + 1);
2126
2126
  let s = E(!1);
@@ -2132,12 +2132,12 @@ let hi = $({ name: "Portal", props: { as: { type: [Object, String], default: "di
2132
2132
  let d = Se(Yr, null), u = !1, c = _o();
2133
2133
  return ne(r, () => {
2134
2134
  if (u || !d) return;
2135
- let f = R(r);
2135
+ let f = F(r);
2136
2136
  f && (De(d.register(f), c), u = !0);
2137
2137
  }), De(() => {
2138
2138
  var f, h;
2139
2139
  let g = (f = a.value) == null ? void 0 : f.getElementById("headlessui-portal-root");
2140
- !g || l.value !== g || Ga(l.value, (v) => v - 1) || l.value.children.length > 0 || (h = l.value.parentElement) == null || h.removeChild(l.value);
2140
+ !g || l.value !== g || Ga(l.value, (p) => p - 1) || l.value.children.length > 0 || (h = l.value.parentElement) == null || h.removeChild(l.value);
2141
2141
  }), () => {
2142
2142
  if (!s.value || l.value === null) return null;
2143
2143
  let f = { ref: r, "data-headlessui-portal": "" };
@@ -2154,14 +2154,14 @@ function Fu() {
2154
2154
  i !== -1 && t.value.splice(i, 1), e && e.unregister(o);
2155
2155
  }
2156
2156
  let a = { register: n, unregister: r, portals: t };
2157
- return [t, $({ name: "PortalWrapper", setup(o, { slots: i }) {
2157
+ return [t, R({ name: "PortalWrapper", setup(o, { slots: i }) {
2158
2158
  return Pe(Yr, a), () => {
2159
2159
  var l;
2160
2160
  return (l = i.default) == null ? void 0 : l.call(i);
2161
2161
  };
2162
2162
  } })];
2163
2163
  }
2164
- let gi = /* @__PURE__ */ Symbol("PortalGroupContext"), _u = $({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e, { attrs: t, slots: n }) {
2164
+ let gi = /* @__PURE__ */ Symbol("PortalGroupContext"), _u = R({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e, { attrs: t, slots: n }) {
2165
2165
  let r = pr({ resolveTarget() {
2166
2166
  return e.target;
2167
2167
  } });
@@ -2180,28 +2180,28 @@ function _n(e) {
2180
2180
  }
2181
2181
  return t;
2182
2182
  }
2183
- let Kn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Nu = $({ name: "Dialog", inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, open: { type: [Boolean, String], default: Kn }, initialFocus: { type: Object, default: null }, id: { type: String, default: null }, role: { type: String, default: "dialog" } }, emits: { close: (e) => !0 }, setup(e, { emit: t, attrs: n, slots: r, expose: a }) {
2183
+ let Kn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Nu = R({ name: "Dialog", inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, open: { type: [Boolean, String], default: Kn }, initialFocus: { type: Object, default: null }, id: { type: String, default: null }, role: { type: String, default: "dialog" } }, emits: { close: (e) => !0 }, setup(e, { emit: t, attrs: n, slots: r, expose: a }) {
2184
2184
  var o, i;
2185
2185
  let l = (o = e.id) != null ? o : `headlessui-dialog-${Te()}`, s = E(!1);
2186
2186
  te(() => {
2187
2187
  s.value = !0;
2188
2188
  });
2189
- let d = !1, u = T(() => e.role === "dialog" || e.role === "alertdialog" ? e.role : (d || (d = !0, console.warn(`Invalid role [${u}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), c = E(0), f = Fn(), h = T(() => e.open === Kn && f !== null ? (f.value & Oe.Open) === Oe.Open : e.open), g = E(null), v = T(() => je(g));
2189
+ let d = !1, u = T(() => e.role === "dialog" || e.role === "alertdialog" ? e.role : (d || (d = !0, console.warn(`Invalid role [${u}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), c = E(0), f = Fn(), h = T(() => e.open === Kn && f !== null ? (f.value & Oe.Open) === Oe.Open : e.open), g = E(null), p = T(() => je(g));
2190
2190
  if (a({ el: g, $el: g }), !(e.open !== Kn || f !== null)) throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
2191
2191
  if (typeof h.value != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${h.value === Kn ? void 0 : e.open}`);
2192
- let m = T(() => s.value && h.value ? 0 : 1), b = T(() => m.value === 0), y = T(() => c.value > 1), C = Se(Xr, null) !== null, [p, k] = Fu(), { resolveContainers: A, mainTreeNodeRef: S, MainTreeNode: x } = Pu({ portals: p, defaultContainers: [T(() => {
2192
+ let m = T(() => s.value && h.value ? 0 : 1), b = T(() => m.value === 0), y = T(() => c.value > 1), C = Se(Xr, null) !== null, [v, x] = Fu(), { resolveContainers: k, mainTreeNodeRef: S, MainTreeNode: A } = Pu({ portals: v, defaultContainers: [T(() => {
2193
2193
  var ee;
2194
2194
  return (ee = ae.panelRef.value) != null ? ee : g.value;
2195
- })] }), M = T(() => y.value ? "parent" : "leaf"), P = T(() => f !== null ? (f.value & Oe.Closing) === Oe.Closing : !1), I = T(() => C || P.value ? !1 : b.value), F = T(() => {
2195
+ })] }), M = T(() => y.value ? "parent" : "leaf"), P = T(() => f !== null ? (f.value & Oe.Closing) === Oe.Closing : !1), I = T(() => C || P.value ? !1 : b.value), L = T(() => {
2196
2196
  var ee, ie, Ae;
2197
- return (Ae = Array.from((ie = (ee = v.value) == null ? void 0 : ee.querySelectorAll("body > *")) != null ? ie : []).find((me) => me.id === "headlessui-portal-root" ? !1 : me.contains(R(S)) && me instanceof HTMLElement)) != null ? Ae : null;
2197
+ return (Ae = Array.from((ie = (ee = p.value) == null ? void 0 : ee.querySelectorAll("body > *")) != null ? ie : []).find((me) => me.id === "headlessui-portal-root" ? !1 : me.contains(F(S)) && me instanceof HTMLElement)) != null ? Ae : null;
2198
2198
  });
2199
- Qa(F, I);
2200
- let L = T(() => y.value ? !0 : b.value), U = T(() => {
2199
+ Qa(L, I);
2200
+ let $ = T(() => y.value ? !0 : b.value), U = T(() => {
2201
2201
  var ee, ie, Ae;
2202
- return (Ae = Array.from((ie = (ee = v.value) == null ? void 0 : ee.querySelectorAll("[data-headlessui-portal]")) != null ? ie : []).find((me) => me.contains(R(S)) && me instanceof HTMLElement)) != null ? Ae : null;
2202
+ return (Ae = Array.from((ie = (ee = p.value) == null ? void 0 : ee.querySelectorAll("[data-headlessui-portal]")) != null ? ie : []).find((me) => me.contains(F(S)) && me instanceof HTMLElement)) != null ? Ae : null;
2203
2203
  });
2204
- Qa(U, L), Mu({ type: "Dialog", enabled: T(() => m.value === 0), element: g, onUpdate: (ee, ie) => {
2204
+ Qa(U, $), Mu({ type: "Dialog", enabled: T(() => m.value === 0), element: g, onUpdate: (ee, ie) => {
2205
2205
  if (ie === "Dialog") return Ce(ee, { [zr.Add]: () => c.value += 1, [zr.Remove]: () => c.value -= 1 });
2206
2206
  } });
2207
2207
  let Y = va({ name: "DialogDescription", slot: T(() => ({ open: h.value })) }), G = E(null), ae = { titleId: G, panelRef: E(null), dialogState: m, setTitleId(ee) {
@@ -2211,20 +2211,20 @@ let Kn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Nu = $({ name: "Dialog", inheri
2211
2211
  } };
2212
2212
  Pe(Xr, ae);
2213
2213
  let re = T(() => !(!b.value || y.value));
2214
- ua(A, (ee, ie) => {
2214
+ ua(k, (ee, ie) => {
2215
2215
  ee.preventDefault(), ae.close(), ke(() => ie?.focus());
2216
2216
  }, re);
2217
2217
  let ce = T(() => !(y.value || m.value !== 0));
2218
- ui((i = v.value) == null ? void 0 : i.defaultView, "keydown", (ee) => {
2218
+ ui((i = p.value) == null ? void 0 : i.defaultView, "keydown", (ee) => {
2219
2219
  ce.value && (ee.defaultPrevented || ee.key === Z.Escape && (ee.preventDefault(), ee.stopPropagation(), ae.close()));
2220
2220
  });
2221
2221
  let ve = T(() => !(P.value || m.value !== 0 || C));
2222
- return Bu(v, ve, (ee) => {
2222
+ return Bu(p, ve, (ee) => {
2223
2223
  var ie;
2224
- return { containers: [...(ie = ee.containers) != null ? ie : [], A] };
2224
+ return { containers: [...(ie = ee.containers) != null ? ie : [], k] };
2225
2225
  }), Ee((ee) => {
2226
2226
  if (m.value !== 0) return;
2227
- let ie = R(g);
2227
+ let ie = F(g);
2228
2228
  if (!ie) return;
2229
2229
  let Ae = new ResizeObserver((me) => {
2230
2230
  for (let ye of me) {
@@ -2235,10 +2235,10 @@ let Kn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Nu = $({ name: "Dialog", inheri
2235
2235
  Ae.observe(ie), ee(() => Ae.disconnect());
2236
2236
  }), () => {
2237
2237
  let { open: ee, initialFocus: ie, ...Ae } = e, me = { ...n, ref: g, id: l, role: u.value, "aria-modal": m.value === 0 ? !0 : void 0, "aria-labelledby": G.value, "aria-describedby": Y.value }, ye = { open: m.value === 0 };
2238
- return ue(qr, { force: !0 }, () => [ue(hi, () => ue(_u, { target: g.value }, () => ue(qr, { force: !1 }, () => ue(hn, { initialFocus: ie, containers: A, features: b.value ? Ce(M.value, { parent: hn.features.RestoreFocus, leaf: hn.features.All & ~hn.features.FocusLock }) : hn.features.None }, () => ue(k, {}, () => pe({ ourProps: me, theirProps: { ...Ae, ...n }, slot: ye, attrs: n, slots: r, visible: m.value === 0, features: Qe.RenderStrategy | Qe.Static, name: "Dialog" })))))), ue(x)]);
2238
+ return ue(qr, { force: !0 }, () => [ue(hi, () => ue(_u, { target: g.value }, () => ue(qr, { force: !1 }, () => ue(hn, { initialFocus: ie, containers: k, features: b.value ? Ce(M.value, { parent: hn.features.RestoreFocus, leaf: hn.features.All & ~hn.features.FocusLock }) : hn.features.None }, () => ue(x, {}, () => pe({ ourProps: me, theirProps: { ...Ae, ...n }, slot: ye, attrs: n, slots: r, visible: m.value === 0, features: Qe.RenderStrategy | Qe.Static, name: "Dialog" })))))), ue(A)]);
2239
2239
  };
2240
2240
  } });
2241
- $({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
2241
+ R({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
2242
2242
  var r;
2243
2243
  let a = (r = e.id) != null ? r : `headlessui-dialog-overlay-${Te()}`, o = _n("DialogOverlay");
2244
2244
  function i(l) {
@@ -2249,7 +2249,7 @@ $({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div"
2249
2249
  return pe({ ourProps: { id: a, "aria-hidden": !0, onClick: i }, theirProps: l, slot: { open: o.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogOverlay" });
2250
2250
  };
2251
2251
  } });
2252
- $({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
2252
+ R({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
2253
2253
  var a;
2254
2254
  let o = (a = e.id) != null ? a : `headlessui-dialog-backdrop-${Te()}`, i = _n("DialogBackdrop"), l = E(null);
2255
2255
  return r({ el: l, $el: l }), te(() => {
@@ -2259,7 +2259,7 @@ $({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div
2259
2259
  return ue(qr, { force: !0 }, () => ue(hi, () => pe({ ourProps: d, theirProps: { ...t, ...s }, slot: { open: i.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogBackdrop" })));
2260
2260
  };
2261
2261
  } });
2262
- let ju = $({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
2262
+ let ju = R({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
2263
2263
  var a;
2264
2264
  let o = (a = e.id) != null ? a : `headlessui-dialog-panel-${Te()}`, i = _n("DialogPanel");
2265
2265
  r({ el: i.panelRef, $el: i.panelRef });
@@ -2271,7 +2271,7 @@ let ju = $({ name: "DialogPanel", props: { as: { type: [Object, String], default
2271
2271
  return pe({ ourProps: d, theirProps: s, slot: { open: i.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogPanel" });
2272
2272
  };
2273
2273
  } });
2274
- $({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
2274
+ R({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
2275
2275
  var r;
2276
2276
  let a = (r = e.id) != null ? r : `headlessui-dialog-title-${Te()}`, o = _n("DialogTitle");
2277
2277
  return te(() => {
@@ -2311,7 +2311,7 @@ function Wu(e) {
2311
2311
  function Hu(e) {
2312
2312
  let t = E(""), n = E("");
2313
2313
  return () => {
2314
- let r = R(e);
2314
+ let r = F(e);
2315
2315
  if (!r) return "";
2316
2316
  let a = r.innerText;
2317
2317
  if (t.value === a) return n.value;
@@ -2332,42 +2332,42 @@ function gr(e) {
2332
2332
  }
2333
2333
  return t;
2334
2334
  }
2335
- let Yu = $({ name: "Menu", props: { as: { type: [Object, String], default: "template" } }, setup(e, { slots: t, attrs: n }) {
2335
+ let Yu = R({ name: "Menu", props: { as: { type: [Object, String], default: "template" } }, setup(e, { slots: t, attrs: n }) {
2336
2336
  let r = E(1), a = E(null), o = E(null), i = E([]), l = E(""), s = E(null), d = E(1);
2337
2337
  function u(f = (h) => h) {
2338
- let h = s.value !== null ? i.value[s.value] : null, g = bt(f(i.value.slice()), (m) => R(m.dataRef.domRef)), v = h ? g.indexOf(h) : null;
2339
- return v === -1 && (v = null), { items: g, activeItemIndex: v };
2338
+ let h = s.value !== null ? i.value[s.value] : null, g = bt(f(i.value.slice()), (m) => F(m.dataRef.domRef)), p = h ? g.indexOf(h) : null;
2339
+ return p === -1 && (p = null), { items: g, activeItemIndex: p };
2340
2340
  }
2341
2341
  let c = { menuState: r, buttonRef: a, itemsRef: o, items: i, searchQuery: l, activeItemIndex: s, activationTrigger: d, closeMenu: () => {
2342
2342
  r.value = 1, s.value = null;
2343
2343
  }, openMenu: () => r.value = 0, goToItem(f, h, g) {
2344
- let v = u(), m = Hr(f === be.Specific ? { focus: be.Specific, id: h } : { focus: f }, { resolveItems: () => v.items, resolveActiveIndex: () => v.activeItemIndex, resolveId: (b) => b.id, resolveDisabled: (b) => b.dataRef.disabled });
2345
- l.value = "", s.value = m, d.value = g ?? 1, i.value = v.items;
2344
+ let p = u(), m = Hr(f === be.Specific ? { focus: be.Specific, id: h } : { focus: f }, { resolveItems: () => p.items, resolveActiveIndex: () => p.activeItemIndex, resolveId: (b) => b.id, resolveDisabled: (b) => b.dataRef.disabled });
2345
+ l.value = "", s.value = m, d.value = g ?? 1, i.value = p.items;
2346
2346
  }, search(f) {
2347
2347
  let h = l.value !== "" ? 0 : 1;
2348
2348
  l.value += f.toLowerCase();
2349
- let g = (s.value !== null ? i.value.slice(s.value + h).concat(i.value.slice(0, s.value + h)) : i.value).find((m) => m.dataRef.textValue.startsWith(l.value) && !m.dataRef.disabled), v = g ? i.value.indexOf(g) : -1;
2350
- v === -1 || v === s.value || (s.value = v, d.value = 1);
2349
+ let g = (s.value !== null ? i.value.slice(s.value + h).concat(i.value.slice(0, s.value + h)) : i.value).find((m) => m.dataRef.textValue.startsWith(l.value) && !m.dataRef.disabled), p = g ? i.value.indexOf(g) : -1;
2350
+ p === -1 || p === s.value || (s.value = p, d.value = 1);
2351
2351
  }, clearSearch() {
2352
2352
  l.value = "";
2353
2353
  }, registerItem(f, h) {
2354
- let g = u((v) => [...v, { id: f, dataRef: h }]);
2354
+ let g = u((p) => [...p, { id: f, dataRef: h }]);
2355
2355
  i.value = g.items, s.value = g.activeItemIndex, d.value = 1;
2356
2356
  }, unregisterItem(f) {
2357
2357
  let h = u((g) => {
2358
- let v = g.findIndex((m) => m.id === f);
2359
- return v !== -1 && g.splice(v, 1), g;
2358
+ let p = g.findIndex((m) => m.id === f);
2359
+ return p !== -1 && g.splice(p, 1), g;
2360
2360
  });
2361
2361
  i.value = h.items, s.value = h.activeItemIndex, d.value = 1;
2362
2362
  } };
2363
2363
  return ua([a, o], (f, h) => {
2364
2364
  var g;
2365
- c.closeMenu(), sa(h, la.Loose) || (f.preventDefault(), (g = R(a)) == null || g.focus());
2365
+ c.closeMenu(), sa(h, la.Loose) || (f.preventDefault(), (g = F(a)) == null || g.focus());
2366
2366
  }, T(() => r.value === 0)), Pe(bi, c), fa(T(() => Ce(r.value, { 0: Oe.Open, 1: Oe.Closed }))), () => {
2367
2367
  let f = { open: r.value === 0, close: c.closeMenu };
2368
2368
  return pe({ ourProps: {}, theirProps: e, slot: f, slots: t, attrs: n, name: "Menu" });
2369
2369
  };
2370
- } }), Xu = $({ name: "MenuButton", props: { disabled: { type: Boolean, default: !1 }, as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
2370
+ } }), Xu = R({ name: "MenuButton", props: { disabled: { type: Boolean, default: !1 }, as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
2371
2371
  var a;
2372
2372
  let o = (a = e.id) != null ? a : `headlessui-menu-button-${Te()}`, i = gr("MenuButton");
2373
2373
  r({ el: i.buttonRef, $el: i.buttonRef });
@@ -2378,13 +2378,13 @@ let Yu = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
2378
2378
  case Z.ArrowDown:
2379
2379
  c.preventDefault(), c.stopPropagation(), i.openMenu(), ke(() => {
2380
2380
  var f;
2381
- (f = R(i.itemsRef)) == null || f.focus({ preventScroll: !0 }), i.goToItem(be.First);
2381
+ (f = F(i.itemsRef)) == null || f.focus({ preventScroll: !0 }), i.goToItem(be.First);
2382
2382
  });
2383
2383
  break;
2384
2384
  case Z.ArrowUp:
2385
2385
  c.preventDefault(), c.stopPropagation(), i.openMenu(), ke(() => {
2386
2386
  var f;
2387
- (f = R(i.itemsRef)) == null || f.focus({ preventScroll: !0 }), i.goToItem(be.Last);
2387
+ (f = F(i.itemsRef)) == null || f.focus({ preventScroll: !0 }), i.goToItem(be.Last);
2388
2388
  });
2389
2389
  break;
2390
2390
  }
@@ -2399,22 +2399,22 @@ let Yu = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
2399
2399
  function d(c) {
2400
2400
  e.disabled || (i.menuState.value === 0 ? (i.closeMenu(), ke(() => {
2401
2401
  var f;
2402
- return (f = R(i.buttonRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
2402
+ return (f = F(i.buttonRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
2403
2403
  })) : (c.preventDefault(), i.openMenu(), Uu(() => {
2404
2404
  var f;
2405
- return (f = R(i.itemsRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
2405
+ return (f = F(i.itemsRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
2406
2406
  })));
2407
2407
  }
2408
2408
  let u = da(T(() => ({ as: e.as, type: t.type })), i.buttonRef);
2409
2409
  return () => {
2410
2410
  var c;
2411
- let f = { open: i.menuState.value === 0 }, { ...h } = e, g = { ref: i.buttonRef, id: o, type: u.value, "aria-haspopup": "menu", "aria-controls": (c = R(i.itemsRef)) == null ? void 0 : c.id, "aria-expanded": i.menuState.value === 0, onKeydown: l, onKeyup: s, onClick: d };
2411
+ let f = { open: i.menuState.value === 0 }, { ...h } = e, g = { ref: i.buttonRef, id: o, type: u.value, "aria-haspopup": "menu", "aria-controls": (c = F(i.itemsRef)) == null ? void 0 : c.id, "aria-expanded": i.menuState.value === 0, onKeydown: l, onKeyup: s, onClick: d };
2412
2412
  return pe({ ourProps: g, theirProps: h, slot: f, attrs: t, slots: n, name: "MenuButton" });
2413
2413
  };
2414
- } }), Qu = $({ name: "MenuItems", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
2414
+ } }), Qu = R({ name: "MenuItems", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
2415
2415
  var a;
2416
2416
  let o = (a = e.id) != null ? a : `headlessui-menu-items-${Te()}`, i = gr("MenuItems"), l = E(null);
2417
- r({ el: i.itemsRef, $el: i.itemsRef }), ca({ container: T(() => R(i.itemsRef)), enabled: T(() => i.menuState.value === 0), accept(f) {
2417
+ r({ el: i.itemsRef, $el: i.itemsRef }), ca({ container: T(() => F(i.itemsRef)), enabled: T(() => i.menuState.value === 0), accept(f) {
2418
2418
  return f.getAttribute("role") === "menuitem" ? NodeFilter.FILTER_REJECT : f.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
2419
2419
  }, walk(f) {
2420
2420
  f.setAttribute("role", "none");
@@ -2427,9 +2427,9 @@ let Yu = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
2427
2427
  case Z.Enter:
2428
2428
  if (f.preventDefault(), f.stopPropagation(), i.activeItemIndex.value !== null) {
2429
2429
  let g = i.items.value[i.activeItemIndex.value];
2430
- (h = R(g.dataRef.domRef)) == null || h.click();
2430
+ (h = F(g.dataRef.domRef)) == null || h.click();
2431
2431
  }
2432
- i.closeMenu(), Qo(R(i.buttonRef));
2432
+ i.closeMenu(), Qo(F(i.buttonRef));
2433
2433
  break;
2434
2434
  case Z.ArrowDown:
2435
2435
  return f.preventDefault(), f.stopPropagation(), i.goToItem(be.Next);
@@ -2444,11 +2444,11 @@ let Yu = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
2444
2444
  case Z.Escape:
2445
2445
  f.preventDefault(), f.stopPropagation(), i.closeMenu(), ke(() => {
2446
2446
  var g;
2447
- return (g = R(i.buttonRef)) == null ? void 0 : g.focus({ preventScroll: !0 });
2447
+ return (g = F(i.buttonRef)) == null ? void 0 : g.focus({ preventScroll: !0 });
2448
2448
  });
2449
2449
  break;
2450
2450
  case Z.Tab:
2451
- f.preventDefault(), f.stopPropagation(), i.closeMenu(), ke(() => tu(R(i.buttonRef), f.shiftKey ? xe.Previous : xe.Next));
2451
+ f.preventDefault(), f.stopPropagation(), i.closeMenu(), ke(() => tu(F(i.buttonRef), f.shiftKey ? xe.Previous : xe.Next));
2452
2452
  break;
2453
2453
  default:
2454
2454
  f.key.length === 1 && (i.search(f.key), l.value = setTimeout(() => i.clearSearch(), 350));
@@ -2465,10 +2465,10 @@ let Yu = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
2465
2465
  let u = Fn(), c = T(() => u !== null ? (u.value & Oe.Open) === Oe.Open : i.menuState.value === 0);
2466
2466
  return () => {
2467
2467
  var f, h;
2468
- let g = { open: i.menuState.value === 0 }, { ...v } = e, m = { "aria-activedescendant": i.activeItemIndex.value === null || (f = i.items.value[i.activeItemIndex.value]) == null ? void 0 : f.id, "aria-labelledby": (h = R(i.buttonRef)) == null ? void 0 : h.id, id: o, onKeydown: s, onKeyup: d, role: "menu", tabIndex: 0, ref: i.itemsRef };
2469
- return pe({ ourProps: m, theirProps: v, slot: g, attrs: t, slots: n, features: Qe.RenderStrategy | Qe.Static, visible: c.value, name: "MenuItems" });
2468
+ let g = { open: i.menuState.value === 0 }, { ...p } = e, m = { "aria-activedescendant": i.activeItemIndex.value === null || (f = i.items.value[i.activeItemIndex.value]) == null ? void 0 : f.id, "aria-labelledby": (h = F(i.buttonRef)) == null ? void 0 : h.id, id: o, onKeydown: s, onKeyup: d, role: "menu", tabIndex: 0, ref: i.itemsRef };
2469
+ return pe({ ourProps: m, theirProps: p, slot: g, attrs: t, slots: n, features: Qe.RenderStrategy | Qe.Static, visible: c.value, name: "MenuItems" });
2470
2470
  };
2471
- } }), Gu = $({ name: "MenuItem", inheritAttrs: !1, props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: null } }, setup(e, { slots: t, attrs: n, expose: r }) {
2471
+ } }), Gu = R({ name: "MenuItem", inheritAttrs: !1, props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: null } }, setup(e, { slots: t, attrs: n, expose: r }) {
2472
2472
  var a;
2473
2473
  let o = (a = e.id) != null ? a : `headlessui-menu-item-${Te()}`, i = gr("MenuItem"), l = E(null);
2474
2474
  r({ el: l, $el: l });
@@ -2478,12 +2478,12 @@ let Yu = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
2478
2478
  te(() => i.registerItem(o, u)), De(() => i.unregisterItem(o)), Ee(() => {
2479
2479
  i.menuState.value === 0 && s.value && i.activationTrigger.value !== 0 && ke(() => {
2480
2480
  var b, y;
2481
- return (y = (b = R(l)) == null ? void 0 : b.scrollIntoView) == null ? void 0 : y.call(b, { block: "nearest" });
2481
+ return (y = (b = F(l)) == null ? void 0 : b.scrollIntoView) == null ? void 0 : y.call(b, { block: "nearest" });
2482
2482
  });
2483
2483
  });
2484
2484
  function c(b) {
2485
2485
  if (e.disabled) return b.preventDefault();
2486
- i.closeMenu(), Qo(R(i.buttonRef));
2486
+ i.closeMenu(), Qo(F(i.buttonRef));
2487
2487
  }
2488
2488
  function f() {
2489
2489
  if (e.disabled) return i.goToItem(be.Nothing);
@@ -2493,7 +2493,7 @@ let Yu = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
2493
2493
  function g(b) {
2494
2494
  h.update(b);
2495
2495
  }
2496
- function v(b) {
2496
+ function p(b) {
2497
2497
  h.wasMoved(b) && (e.disabled || s.value || i.goToItem(be.Specific, o, 0));
2498
2498
  }
2499
2499
  function m(b) {
@@ -2501,7 +2501,7 @@ let Yu = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
2501
2501
  }
2502
2502
  return () => {
2503
2503
  let { disabled: b, ...y } = e, C = { active: s.value, disabled: b, close: i.closeMenu };
2504
- return pe({ ourProps: { id: o, ref: l, role: "menuitem", tabIndex: b === !0 ? void 0 : -1, "aria-disabled": b === !0 ? !0 : void 0, onClick: c, onFocus: f, onPointerenter: g, onMouseenter: g, onPointermove: v, onMousemove: v, onPointerleave: m, onMouseleave: m }, theirProps: { ...n, ...y }, slot: C, attrs: n, slots: t, name: "MenuItem" });
2504
+ return pe({ ourProps: { id: o, ref: l, role: "menuitem", tabIndex: b === !0 ? void 0 : -1, "aria-disabled": b === !0 ? !0 : void 0, onClick: c, onFocus: f, onPointerenter: g, onMouseenter: g, onPointermove: p, onMousemove: p, onPointerleave: m, onMouseleave: m }, theirProps: { ...n, ...y }, slot: C, attrs: n, slots: t, name: "MenuItem" });
2505
2505
  };
2506
2506
  } }), yi = /* @__PURE__ */ Symbol("LabelContext");
2507
2507
  function Ai() {
@@ -2522,7 +2522,7 @@ function wi({ slot: e = {}, name: t = "Label", props: n = {} } = {}) {
2522
2522
  }
2523
2523
  return Pe(yi, { register: a, slot: e, name: t, props: n }), T(() => r.value.length > 0 ? r.value.join(" ") : void 0);
2524
2524
  }
2525
- $({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: !1 }, id: { type: String, default: null } }, setup(e, { slots: t, attrs: n }) {
2525
+ R({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: !1 }, id: { type: String, default: null } }, setup(e, { slots: t, attrs: n }) {
2526
2526
  var r;
2527
2527
  let a = (r = e.id) != null ? r : `headlessui-label-${Te()}`, o = Ai();
2528
2528
  return te(() => De(o.register(a))), () => {
@@ -2542,7 +2542,7 @@ function ki(e) {
2542
2542
  }
2543
2543
  return t;
2544
2544
  }
2545
- let Ju = $({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "div" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], default: () => Ku }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, id: { type: String, default: null } }, inheritAttrs: !1, setup(e, { emit: t, attrs: n, slots: r, expose: a }) {
2545
+ let Ju = R({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "div" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], default: () => Ku }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, id: { type: String, default: null } }, inheritAttrs: !1, setup(e, { emit: t, attrs: n, slots: r, expose: a }) {
2546
2546
  var o;
2547
2547
  let i = (o = e.id) != null ? o : `headlessui-radiogroup-${Te()}`, l = E(null), s = E([]), d = wi({ name: "RadioGroupLabel" }), u = va({ name: "RadioGroupDescription" });
2548
2548
  a({ el: l, $el: l });
@@ -2563,7 +2563,7 @@ let Ju = $({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, prop
2563
2563
  let b = s.value.findIndex((y) => y.id === m);
2564
2564
  b !== -1 && s.value.splice(b, 1);
2565
2565
  } };
2566
- Pe(xi, h), ca({ container: T(() => R(l)), accept(m) {
2566
+ Pe(xi, h), ca({ container: T(() => F(l)), accept(m) {
2567
2567
  return m.getAttribute("role") === "radio" ? NodeFilter.FILTER_REJECT : m.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
2568
2568
  }, walk(m) {
2569
2569
  m.setAttribute("role", "none");
@@ -2579,8 +2579,8 @@ let Ju = $({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, prop
2579
2579
  case Z.ArrowUp:
2580
2580
  if (m.preventDefault(), m.stopPropagation(), Ne(b, xe.Previous | xe.WrapAround) === Ot.Success) {
2581
2581
  let y = s.value.find((C) => {
2582
- var p;
2583
- return C.element === ((p = je(l)) == null ? void 0 : p.activeElement);
2582
+ var v;
2583
+ return C.element === ((v = je(l)) == null ? void 0 : v.activeElement);
2584
2584
  });
2585
2585
  y && h.change(y.propsRef.value);
2586
2586
  }
@@ -2589,8 +2589,8 @@ let Ju = $({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, prop
2589
2589
  case Z.ArrowDown:
2590
2590
  if (m.preventDefault(), m.stopPropagation(), Ne(b, xe.Next | xe.WrapAround) === Ot.Success) {
2591
2591
  let y = s.value.find((C) => {
2592
- var p;
2593
- return C.element === ((p = je(C.element)) == null ? void 0 : p.activeElement);
2592
+ var v;
2593
+ return C.element === ((v = je(C.element)) == null ? void 0 : v.activeElement);
2594
2594
  });
2595
2595
  y && h.change(y.propsRef.value);
2596
2596
  }
@@ -2599,48 +2599,48 @@ let Ju = $({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, prop
2599
2599
  {
2600
2600
  m.preventDefault(), m.stopPropagation();
2601
2601
  let y = s.value.find((C) => {
2602
- var p;
2603
- return C.element === ((p = je(C.element)) == null ? void 0 : p.activeElement);
2602
+ var v;
2603
+ return C.element === ((v = je(C.element)) == null ? void 0 : v.activeElement);
2604
2604
  });
2605
2605
  y && h.change(y.propsRef.value);
2606
2606
  }
2607
2607
  break;
2608
2608
  }
2609
2609
  }
2610
- let v = T(() => {
2610
+ let p = T(() => {
2611
2611
  var m;
2612
- return (m = R(l)) == null ? void 0 : m.closest("form");
2612
+ return (m = F(l)) == null ? void 0 : m.closest("form");
2613
2613
  });
2614
2614
  return te(() => {
2615
- ne([v], () => {
2616
- if (!v.value || e.defaultValue === void 0) return;
2615
+ ne([p], () => {
2616
+ if (!p.value || e.defaultValue === void 0) return;
2617
2617
  function m() {
2618
2618
  h.change(e.defaultValue);
2619
2619
  }
2620
- return v.value.addEventListener("reset", m), () => {
2620
+ return p.value.addEventListener("reset", m), () => {
2621
2621
  var b;
2622
- (b = v.value) == null || b.removeEventListener("reset", m);
2622
+ (b = p.value) == null || b.removeEventListener("reset", m);
2623
2623
  };
2624
2624
  }, { immediate: !0 });
2625
2625
  }), () => {
2626
- let { disabled: m, name: b, form: y, ...C } = e, p = { ref: l, id: i, role: "radiogroup", "aria-labelledby": d.value, "aria-describedby": u.value, onKeydown: g };
2627
- return ue(fe, [...b != null && c.value != null ? pa({ [b]: c.value }).map(([k, A]) => ue(Xt, ni({ features: Yt.Hidden, key: k, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: y, disabled: m, name: k, value: A }))) : [], pe({ ourProps: p, theirProps: { ...n, ...Qt(C, ["modelValue", "defaultValue", "by"]) }, slot: {}, attrs: n, slots: r, name: "RadioGroup" })]);
2626
+ let { disabled: m, name: b, form: y, ...C } = e, v = { ref: l, id: i, role: "radiogroup", "aria-labelledby": d.value, "aria-describedby": u.value, onKeydown: g };
2627
+ return ue(fe, [...b != null && c.value != null ? pa({ [b]: c.value }).map(([x, k]) => ue(Xt, ni({ features: Yt.Hidden, key: x, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: y, disabled: m, name: x, value: k }))) : [], pe({ ourProps: v, theirProps: { ...n, ...Qt(C, ["modelValue", "defaultValue", "by"]) }, slot: {}, attrs: n, slots: r, name: "RadioGroup" })]);
2628
2628
  };
2629
2629
  } });
2630
2630
  var Zu = ((e) => (e[e.Empty = 1] = "Empty", e[e.Active = 2] = "Active", e))(Zu || {});
2631
- let ed = $({ name: "RadioGroupOption", props: { as: { type: [Object, String], default: "div" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
2631
+ let ed = R({ name: "RadioGroupOption", props: { as: { type: [Object, String], default: "div" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
2632
2632
  var a;
2633
2633
  let o = (a = e.id) != null ? a : `headlessui-radiogroup-option-${Te()}`, i = ki("RadioGroupOption"), l = wi({ name: "RadioGroupLabel" }), s = va({ name: "RadioGroupDescription" }), d = E(null), u = T(() => ({ value: e.value, disabled: e.disabled })), c = E(1);
2634
2634
  r({ el: d, $el: d });
2635
- let f = T(() => R(d));
2635
+ let f = T(() => F(d));
2636
2636
  te(() => i.registerOption({ id: o, element: f, propsRef: u })), De(() => i.unregisterOption(o));
2637
2637
  let h = T(() => {
2638
- var p;
2639
- return ((p = i.firstOption.value) == null ? void 0 : p.id) === o;
2640
- }), g = T(() => i.disabled.value || e.disabled), v = T(() => i.compare(Le(i.value.value), Le(e.value))), m = T(() => g.value ? -1 : v.value || !i.containsCheckedOption.value && h.value ? 0 : -1);
2638
+ var v;
2639
+ return ((v = i.firstOption.value) == null ? void 0 : v.id) === o;
2640
+ }), g = T(() => i.disabled.value || e.disabled), p = T(() => i.compare(Le(i.value.value), Le(e.value))), m = T(() => g.value ? -1 : p.value || !i.containsCheckedOption.value && h.value ? 0 : -1);
2641
2641
  function b() {
2642
- var p;
2643
- i.change(e.value) && (c.value |= 2, (p = R(d)) == null || p.focus());
2642
+ var v;
2643
+ i.change(e.value) && (c.value |= 2, (v = F(d)) == null || v.focus());
2644
2644
  }
2645
2645
  function y() {
2646
2646
  c.value |= 2;
@@ -2649,10 +2649,10 @@ let ed = $({ name: "RadioGroupOption", props: { as: { type: [Object, String], de
2649
2649
  c.value &= -3;
2650
2650
  }
2651
2651
  return () => {
2652
- let { value: p, disabled: k, ...A } = e, S = { checked: v.value, disabled: g.value, active: !!(c.value & 2) }, x = { id: o, ref: d, role: "radio", "aria-checked": v.value ? "true" : "false", "aria-labelledby": l.value, "aria-describedby": s.value, "aria-disabled": g.value ? !0 : void 0, tabIndex: m.value, onClick: g.value ? void 0 : b, onFocus: g.value ? void 0 : y, onBlur: g.value ? void 0 : C };
2653
- return pe({ ourProps: x, theirProps: A, slot: S, attrs: t, slots: n, name: "RadioGroupOption" });
2652
+ let { value: v, disabled: x, ...k } = e, S = { checked: p.value, disabled: g.value, active: !!(c.value & 2) }, A = { id: o, ref: d, role: "radio", "aria-checked": p.value ? "true" : "false", "aria-labelledby": l.value, "aria-describedby": s.value, "aria-disabled": g.value ? !0 : void 0, tabIndex: m.value, onClick: g.value ? void 0 : b, onFocus: g.value ? void 0 : y, onBlur: g.value ? void 0 : C };
2653
+ return pe({ ourProps: A, theirProps: k, slot: S, attrs: t, slots: n, name: "RadioGroupOption" });
2654
2654
  };
2655
- } }), td = $({ props: { onFocus: { type: Function, required: !0 } }, setup(e) {
2655
+ } }), td = R({ props: { onFocus: { type: Function, required: !0 } }, setup(e) {
2656
2656
  let t = E(!0);
2657
2657
  return () => t.value ? ue(Xt, { as: "button", type: "button", features: Yt.Focusable, onFocus(n) {
2658
2658
  n.preventDefault();
@@ -2682,45 +2682,45 @@ function Vn(e) {
2682
2682
  }
2683
2683
  return t;
2684
2684
  }
2685
- let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), ad = $({ name: "TabGroup", emits: { change: (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, selectedIndex: { type: [Number], default: null }, defaultIndex: { type: [Number], default: 0 }, vertical: { type: [Boolean], default: !1 }, manual: { type: [Boolean], default: !1 } }, inheritAttrs: !1, setup(e, { slots: t, attrs: n, emit: r }) {
2685
+ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), ad = R({ name: "TabGroup", emits: { change: (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, selectedIndex: { type: [Number], default: null }, defaultIndex: { type: [Number], default: 0 }, vertical: { type: [Boolean], default: !1 }, manual: { type: [Boolean], default: !1 } }, inheritAttrs: !1, setup(e, { slots: t, attrs: n, emit: r }) {
2686
2686
  var a;
2687
2687
  let o = E((a = e.selectedIndex) != null ? a : e.defaultIndex), i = E([]), l = E([]), s = T(() => e.selectedIndex !== null), d = T(() => s.value ? e.selectedIndex : o.value);
2688
- function u(v) {
2688
+ function u(p) {
2689
2689
  var m;
2690
- let b = bt(c.tabs.value, R), y = bt(c.panels.value, R), C = b.filter((p) => {
2691
- var k;
2692
- return !((k = R(p)) != null && k.hasAttribute("disabled"));
2690
+ let b = bt(c.tabs.value, F), y = bt(c.panels.value, F), C = b.filter((v) => {
2691
+ var x;
2692
+ return !((x = F(v)) != null && x.hasAttribute("disabled"));
2693
2693
  });
2694
- if (v < 0 || v > b.length - 1) {
2695
- let p = Ce(o.value === null ? 0 : Math.sign(v - o.value), { [-1]: () => 1, 0: () => Ce(Math.sign(v), { [-1]: () => 0, 0: () => 0, 1: () => 1 }), 1: () => 0 }), k = Ce(p, { 0: () => b.indexOf(C[0]), 1: () => b.indexOf(C[C.length - 1]) });
2696
- k !== -1 && (o.value = k), c.tabs.value = b, c.panels.value = y;
2694
+ if (p < 0 || p > b.length - 1) {
2695
+ let v = Ce(o.value === null ? 0 : Math.sign(p - o.value), { [-1]: () => 1, 0: () => Ce(Math.sign(p), { [-1]: () => 0, 0: () => 0, 1: () => 1 }), 1: () => 0 }), x = Ce(v, { 0: () => b.indexOf(C[0]), 1: () => b.indexOf(C[C.length - 1]) });
2696
+ x !== -1 && (o.value = x), c.tabs.value = b, c.panels.value = y;
2697
2697
  } else {
2698
- let p = b.slice(0, v), k = [...b.slice(v), ...p].find((S) => C.includes(S));
2699
- if (!k) return;
2700
- let A = (m = b.indexOf(k)) != null ? m : c.selectedIndex.value;
2701
- A === -1 && (A = c.selectedIndex.value), o.value = A, c.tabs.value = b, c.panels.value = y;
2698
+ let v = b.slice(0, p), x = [...b.slice(p), ...v].find((S) => C.includes(S));
2699
+ if (!x) return;
2700
+ let k = (m = b.indexOf(x)) != null ? m : c.selectedIndex.value;
2701
+ k === -1 && (k = c.selectedIndex.value), o.value = k, c.tabs.value = b, c.panels.value = y;
2702
2702
  }
2703
2703
  }
2704
2704
  let c = { selectedIndex: T(() => {
2705
- var v, m;
2706
- return (m = (v = o.value) != null ? v : e.defaultIndex) != null ? m : null;
2707
- }), orientation: T(() => e.vertical ? "vertical" : "horizontal"), activation: T(() => e.manual ? "manual" : "auto"), tabs: i, panels: l, setSelectedIndex(v) {
2708
- d.value !== v && r("change", v), s.value || u(v);
2709
- }, registerTab(v) {
2705
+ var p, m;
2706
+ return (m = (p = o.value) != null ? p : e.defaultIndex) != null ? m : null;
2707
+ }), orientation: T(() => e.vertical ? "vertical" : "horizontal"), activation: T(() => e.manual ? "manual" : "auto"), tabs: i, panels: l, setSelectedIndex(p) {
2708
+ d.value !== p && r("change", p), s.value || u(p);
2709
+ }, registerTab(p) {
2710
2710
  var m;
2711
- if (i.value.includes(v)) return;
2711
+ if (i.value.includes(p)) return;
2712
2712
  let b = i.value[o.value];
2713
- if (i.value.push(v), i.value = bt(i.value, R), !s.value) {
2713
+ if (i.value.push(p), i.value = bt(i.value, F), !s.value) {
2714
2714
  let y = (m = i.value.indexOf(b)) != null ? m : o.value;
2715
2715
  y !== -1 && (o.value = y);
2716
2716
  }
2717
- }, unregisterTab(v) {
2718
- let m = i.value.indexOf(v);
2717
+ }, unregisterTab(p) {
2718
+ let m = i.value.indexOf(p);
2719
2719
  m !== -1 && i.value.splice(m, 1);
2720
- }, registerPanel(v) {
2721
- l.value.includes(v) || (l.value.push(v), l.value = bt(l.value, R));
2722
- }, unregisterPanel(v) {
2723
- let m = l.value.indexOf(v);
2720
+ }, registerPanel(p) {
2721
+ l.value.includes(p) || (l.value.push(p), l.value = bt(l.value, F));
2722
+ }, unregisterPanel(p) {
2723
+ let m = l.value.indexOf(p);
2724
2724
  m !== -1 && l.value.splice(m, 1);
2725
2725
  } };
2726
2726
  Pe(Si, c);
@@ -2731,30 +2731,30 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), ad = $({ name: "TabGroup", em
2731
2731
  let g = T(() => e.selectedIndex);
2732
2732
  return te(() => {
2733
2733
  ne([g], () => {
2734
- var v;
2735
- return u((v = e.selectedIndex) != null ? v : e.defaultIndex);
2734
+ var p;
2735
+ return u((p = e.selectedIndex) != null ? p : e.defaultIndex);
2736
2736
  }, { immediate: !0 });
2737
2737
  }), Ee(() => {
2738
2738
  if (!s.value || d.value == null || c.tabs.value.length <= 0) return;
2739
- let v = bt(c.tabs.value, R);
2740
- v.some((m, b) => R(c.tabs.value[b]) !== R(m)) && c.setSelectedIndex(v.findIndex((m) => R(m) === R(c.tabs.value[d.value])));
2739
+ let p = bt(c.tabs.value, F);
2740
+ p.some((m, b) => F(c.tabs.value[b]) !== F(m)) && c.setSelectedIndex(p.findIndex((m) => F(m) === F(c.tabs.value[d.value])));
2741
2741
  }), () => {
2742
- let v = { selectedIndex: o.value };
2742
+ let p = { selectedIndex: o.value };
2743
2743
  return ue(fe, [i.value.length <= 0 && ue(td, { onFocus: () => {
2744
2744
  for (let m of i.value) {
2745
- let b = R(m);
2745
+ let b = F(m);
2746
2746
  if (b?.tabIndex === 0) return b.focus(), !0;
2747
2747
  }
2748
2748
  return !1;
2749
- } }), pe({ theirProps: { ...n, ...Qt(e, ["selectedIndex", "defaultIndex", "manual", "vertical", "onChange"]) }, ourProps: {}, slot: v, slots: t, attrs: n, name: "TabGroup" })]);
2749
+ } }), pe({ theirProps: { ...n, ...Qt(e, ["selectedIndex", "defaultIndex", "manual", "vertical", "onChange"]) }, ourProps: {}, slot: p, slots: t, attrs: n, name: "TabGroup" })]);
2750
2750
  };
2751
- } }), od = $({ name: "TabList", props: { as: { type: [Object, String], default: "div" } }, setup(e, { attrs: t, slots: n }) {
2751
+ } }), od = R({ name: "TabList", props: { as: { type: [Object, String], default: "div" } }, setup(e, { attrs: t, slots: n }) {
2752
2752
  let r = Vn("TabList");
2753
2753
  return () => {
2754
2754
  let a = { selectedIndex: r.selectedIndex.value }, o = { role: "tablist", "aria-orientation": r.orientation.value };
2755
2755
  return pe({ ourProps: o, theirProps: e, slot: a, attrs: t, slots: n, name: "TabList" });
2756
2756
  };
2757
- } }), id = $({ name: "Tab", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: !1 }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
2757
+ } }), id = R({ name: "Tab", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: !1 }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
2758
2758
  var a;
2759
2759
  let o = (a = e.id) != null ? a : `headlessui-tabs-tab-${Te()}`, i = Vn("Tab"), l = E(null);
2760
2760
  r({ el: l, $el: l }), te(() => i.registerTab(l)), De(() => i.unregisterTab(l));
@@ -2770,15 +2770,15 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), ad = $({ name: "TabGroup", em
2770
2770
  }), c = T(() => u.value === i.selectedIndex.value);
2771
2771
  function f(y) {
2772
2772
  var C;
2773
- let p = y();
2774
- if (p === Ot.Success && i.activation.value === "auto") {
2775
- let k = (C = je(l)) == null ? void 0 : C.activeElement, A = i.tabs.value.findIndex((S) => R(S) === k);
2776
- A !== -1 && i.setSelectedIndex(A);
2773
+ let v = y();
2774
+ if (v === Ot.Success && i.activation.value === "auto") {
2775
+ let x = (C = je(l)) == null ? void 0 : C.activeElement, k = i.tabs.value.findIndex((S) => F(S) === x);
2776
+ k !== -1 && i.setSelectedIndex(k);
2777
2777
  }
2778
- return p;
2778
+ return v;
2779
2779
  }
2780
2780
  function h(y) {
2781
- let C = i.tabs.value.map((p) => R(p)).filter(Boolean);
2781
+ let C = i.tabs.value.map((v) => F(v)).filter(Boolean);
2782
2782
  if (y.key === Z.Space || y.key === Z.Enter) {
2783
2783
  y.preventDefault(), y.stopPropagation(), i.setSelectedIndex(u.value);
2784
2784
  return;
@@ -2798,9 +2798,9 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), ad = $({ name: "TabGroup", em
2798
2798
  } })) === Ot.Success) return y.preventDefault();
2799
2799
  }
2800
2800
  let g = E(!1);
2801
- function v() {
2801
+ function p() {
2802
2802
  var y;
2803
- g.value || (g.value = !0, !e.disabled && ((y = R(l)) == null || y.focus({ preventScroll: !0 }), i.setSelectedIndex(u.value), hr(() => {
2803
+ g.value || (g.value = !0, !e.disabled && ((y = F(l)) == null || y.focus({ preventScroll: !0 }), i.setSelectedIndex(u.value), hr(() => {
2804
2804
  g.value = !1;
2805
2805
  })));
2806
2806
  }
@@ -2810,16 +2810,16 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), ad = $({ name: "TabGroup", em
2810
2810
  let b = da(T(() => ({ as: e.as, type: t.type })), l);
2811
2811
  return () => {
2812
2812
  var y, C;
2813
- let p = { selected: c.value, disabled: (y = e.disabled) != null ? y : !1 }, { ...k } = e, A = { ref: l, onKeydown: h, onMousedown: m, onClick: v, id: o, role: "tab", type: b.value, "aria-controls": (C = R(i.panels.value[u.value])) == null ? void 0 : C.id, "aria-selected": c.value, tabIndex: c.value ? 0 : -1, disabled: e.disabled ? !0 : void 0 };
2814
- return pe({ ourProps: A, theirProps: k, slot: p, attrs: t, slots: n, name: "Tab" });
2813
+ let v = { selected: c.value, disabled: (y = e.disabled) != null ? y : !1 }, { ...x } = e, k = { ref: l, onKeydown: h, onMousedown: m, onClick: p, id: o, role: "tab", type: b.value, "aria-controls": (C = F(i.panels.value[u.value])) == null ? void 0 : C.id, "aria-selected": c.value, tabIndex: c.value ? 0 : -1, disabled: e.disabled ? !0 : void 0 };
2814
+ return pe({ ourProps: k, theirProps: x, slot: v, attrs: t, slots: n, name: "Tab" });
2815
2815
  };
2816
- } }), ld = $({ name: "TabPanels", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
2816
+ } }), ld = R({ name: "TabPanels", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
2817
2817
  let r = Vn("TabPanels");
2818
2818
  return () => {
2819
2819
  let a = { selectedIndex: r.selectedIndex.value };
2820
2820
  return pe({ theirProps: e, ourProps: {}, slot: a, attrs: n, slots: t, name: "TabPanels" });
2821
2821
  };
2822
- } }), sd = $({ name: "TabPanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: null }, tabIndex: { type: Number, default: 0 } }, setup(e, { attrs: t, slots: n, expose: r }) {
2822
+ } }), sd = R({ name: "TabPanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: null }, tabIndex: { type: Number, default: 0 } }, setup(e, { attrs: t, slots: n, expose: r }) {
2823
2823
  var a;
2824
2824
  let o = (a = e.id) != null ? a : `headlessui-tabs-panel-${Te()}`, i = Vn("TabPanel"), l = E(null);
2825
2825
  r({ el: l, $el: l }), te(() => i.registerPanel(l)), De(() => i.unregisterPanel(l));
@@ -2835,8 +2835,8 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), ad = $({ name: "TabGroup", em
2835
2835
  }), c = T(() => u.value === i.selectedIndex.value);
2836
2836
  return () => {
2837
2837
  var f;
2838
- let h = { selected: c.value }, { tabIndex: g, ...v } = e, m = { ref: l, id: o, role: "tabpanel", "aria-labelledby": (f = R(i.tabs.value[u.value])) == null ? void 0 : f.id, tabIndex: c.value ? g : -1 };
2839
- return !c.value && e.unmount && !e.static ? ue(Xt, { as: "span", "aria-hidden": !0, ...m }) : pe({ ourProps: m, theirProps: v, slot: h, attrs: t, slots: n, features: Qe.Static | Qe.RenderStrategy, visible: c.value, name: "TabPanel" });
2838
+ let h = { selected: c.value }, { tabIndex: g, ...p } = e, m = { ref: l, id: o, role: "tabpanel", "aria-labelledby": (f = F(i.tabs.value[u.value])) == null ? void 0 : f.id, tabIndex: c.value ? g : -1 };
2839
+ return !c.value && e.unmount && !e.static ? ue(Xt, { as: "span", "aria-hidden": !0, ...m }) : pe({ ourProps: m, theirProps: p, slot: h, attrs: t, slots: n, features: Qe.Static | Qe.RenderStrategy, visible: c.value, name: "TabPanel" });
2840
2840
  };
2841
2841
  } });
2842
2842
  function ud(e) {
@@ -2907,7 +2907,7 @@ function Oi(e) {
2907
2907
  }
2908
2908
  return { children: t, register: a, unregister: r };
2909
2909
  }
2910
- let Ci = Qe.RenderStrategy, Gr = $({ props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(e, { emit: t, attrs: n, slots: r, expose: a }) {
2910
+ let Ci = Qe.RenderStrategy, Gr = R({ props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(e, { emit: t, attrs: n, slots: r, expose: a }) {
2911
2911
  let o = E(0);
2912
2912
  function i() {
2913
2913
  o.value |= Oe.Opening, t("beforeEnter");
@@ -2924,47 +2924,47 @@ let Ci = Qe.RenderStrategy, Gr = $({ props: { as: { type: [Object, String], defa
2924
2924
  if (!fd() && au()) return () => ue(ba, { ...e, onBeforeEnter: i, onAfterEnter: l, onBeforeLeave: s, onAfterLeave: d }, r);
2925
2925
  let u = E(null), c = T(() => e.unmount ? Ct.Unmount : Ct.Hidden);
2926
2926
  a({ el: u, $el: u });
2927
- let { show: f, appear: h } = pd(), { register: g, unregister: v } = vd(), m = E(f.value ? "visible" : "hidden"), b = { value: !0 }, y = Te(), C = { value: !1 }, p = Oi(() => {
2928
- !C.value && m.value !== "hidden" && (m.value = "hidden", v(y), d());
2927
+ let { show: f, appear: h } = pd(), { register: g, unregister: p } = vd(), m = E(f.value ? "visible" : "hidden"), b = { value: !0 }, y = Te(), C = { value: !1 }, v = Oi(() => {
2928
+ !C.value && m.value !== "hidden" && (m.value = "hidden", p(y), d());
2929
2929
  });
2930
2930
  te(() => {
2931
- let L = g(y);
2932
- De(L);
2931
+ let $ = g(y);
2932
+ De($);
2933
2933
  }), Ee(() => {
2934
2934
  if (c.value === Ct.Hidden && y) {
2935
2935
  if (f.value && m.value !== "visible") {
2936
2936
  m.value = "visible";
2937
2937
  return;
2938
2938
  }
2939
- Ce(m.value, { hidden: () => v(y), visible: () => g(y) });
2939
+ Ce(m.value, { hidden: () => p(y), visible: () => g(y) });
2940
2940
  }
2941
2941
  });
2942
- let k = _t(e.enter), A = _t(e.enterFrom), S = _t(e.enterTo), x = _t(e.entered), M = _t(e.leave), P = _t(e.leaveFrom), I = _t(e.leaveTo);
2942
+ let x = _t(e.enter), k = _t(e.enterFrom), S = _t(e.enterTo), A = _t(e.entered), M = _t(e.leave), P = _t(e.leaveFrom), I = _t(e.leaveTo);
2943
2943
  te(() => {
2944
2944
  Ee(() => {
2945
2945
  if (m.value === "visible") {
2946
- let L = R(u);
2947
- if (L instanceof Comment && L.data === "") throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
2946
+ let $ = F(u);
2947
+ if ($ instanceof Comment && $.data === "") throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
2948
2948
  }
2949
2949
  });
2950
2950
  });
2951
- function F(L) {
2952
- let U = b.value && !h.value, Y = R(u);
2953
- !Y || !(Y instanceof HTMLElement) || U || (C.value = !0, f.value && i(), f.value || s(), L(f.value ? Za(Y, k, A, S, x, (G) => {
2951
+ function L($) {
2952
+ let U = b.value && !h.value, Y = F(u);
2953
+ !Y || !(Y instanceof HTMLElement) || U || (C.value = !0, f.value && i(), f.value || s(), $(f.value ? Za(Y, x, k, S, A, (G) => {
2954
2954
  C.value = !1, G === Qr.Finished && l();
2955
- }) : Za(Y, M, P, I, x, (G) => {
2956
- C.value = !1, G === Qr.Finished && (br(p) || (m.value = "hidden", v(y), d()));
2955
+ }) : Za(Y, M, P, I, A, (G) => {
2956
+ C.value = !1, G === Qr.Finished && (br(v) || (m.value = "hidden", p(y), d()));
2957
2957
  })));
2958
2958
  }
2959
2959
  return te(() => {
2960
- ne([f], (L, U, Y) => {
2961
- F(Y), b.value = !1;
2960
+ ne([f], ($, U, Y) => {
2961
+ L(Y), b.value = !1;
2962
2962
  }, { immediate: !0 });
2963
- }), Pe(ga, p), fa(T(() => Ce(m.value, { visible: Oe.Open, hidden: Oe.Closed }) | o.value)), () => {
2964
- let { appear: L, show: U, enter: Y, enterFrom: G, enterTo: ae, entered: re, leave: ce, leaveFrom: ve, leaveTo: ee, ...ie } = e, Ae = { ref: u }, me = { ...ie, ...h.value && f.value && Ln.isServer ? { class: z([n.class, ie.class, ...k, ...A]) } : {} };
2963
+ }), Pe(ga, v), fa(T(() => Ce(m.value, { visible: Oe.Open, hidden: Oe.Closed }) | o.value)), () => {
2964
+ let { appear: $, show: U, enter: Y, enterFrom: G, enterTo: ae, entered: re, leave: ce, leaveFrom: ve, leaveTo: ee, ...ie } = e, Ae = { ref: u }, me = { ...ie, ...h.value && f.value && Ln.isServer ? { class: z([n.class, ie.class, ...x, ...k]) } : {} };
2965
2965
  return pe({ theirProps: me, ourProps: Ae, slot: {}, slots: r, attrs: n, features: Ci, visible: m.value === "visible", name: "TransitionChild" });
2966
2966
  };
2967
- } }), md = Gr, ba = $({ inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(e, { emit: t, attrs: n, slots: r }) {
2967
+ } }), md = Gr, ba = R({ inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(e, { emit: t, attrs: n, slots: r }) {
2968
2968
  let a = Fn(), o = T(() => e.show === null && a !== null ? (a.value & Oe.Open) === Oe.Open : e.show);
2969
2969
  Ee(() => {
2970
2970
  if (![!0, !1].includes(o.value)) throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.');
@@ -2981,7 +2981,7 @@ let Ci = Qe.RenderStrategy, Gr = $({ props: { as: { type: [Object, String], defa
2981
2981
  return pe({ ourProps: { ...c, as: "template" }, theirProps: {}, slot: {}, slots: { ...r, default: () => [ue(md, { onBeforeEnter: () => t("beforeEnter"), onAfterEnter: () => t("afterEnter"), onBeforeLeave: () => t("beforeLeave"), onAfterLeave: () => t("afterLeave"), ...n, ...c, ...u }, r.default)] }, attrs: {}, features: Ci, visible: i.value === "visible", name: "Transition" });
2982
2982
  };
2983
2983
  } });
2984
- const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
2984
+ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ R({
2985
2985
  __name: "base-dropdown",
2986
2986
  props: {
2987
2987
  position: { default: "left" },
@@ -3025,7 +3025,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3025
3025
  });
3026
3026
  };
3027
3027
  }
3028
- }), bd = /* @__PURE__ */ oe(gd, [["__scopeId", "data-v-f61add00"]]), yd = /* @__PURE__ */ $({
3028
+ }), bd = /* @__PURE__ */ oe(gd, [["__scopeId", "data-v-f61add00"]]), yd = /* @__PURE__ */ R({
3029
3029
  __name: "base-dropdown-item",
3030
3030
  props: {
3031
3031
  text: { default: "" }
@@ -3042,7 +3042,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3042
3042
  _: 3
3043
3043
  }));
3044
3044
  }
3045
- }), Ad = /* @__PURE__ */ oe(yd, [["__scopeId", "data-v-83495c7b"]]), Ei = /* @__PURE__ */ $({
3045
+ }), Ad = /* @__PURE__ */ oe(yd, [["__scopeId", "data-v-83495c7b"]]), Ei = /* @__PURE__ */ R({
3046
3046
  __name: "base-icon",
3047
3047
  props: {
3048
3048
  icon: {},
@@ -3053,7 +3053,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3053
3053
  class: z([e.icon, "inline-block", "text-xl", { "w-1.2em": e.fixedWidth }])
3054
3054
  }, null, 2));
3055
3055
  }
3056
- }), wd = ["href"], xd = /* @__PURE__ */ $({
3056
+ }), wd = ["href"], xd = /* @__PURE__ */ R({
3057
3057
  __name: "base-link",
3058
3058
  props: {
3059
3059
  href: {},
@@ -3076,7 +3076,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3076
3076
  Q(o.$slots, "default", {}, void 0, !0)
3077
3077
  ], 8, wd));
3078
3078
  }
3079
- }), kd = /* @__PURE__ */ oe(xd, [["__scopeId", "data-v-232da412"]]), Sd = /* @__PURE__ */ $({
3079
+ }), kd = /* @__PURE__ */ oe(xd, [["__scopeId", "data-v-232da412"]]), Sd = /* @__PURE__ */ R({
3080
3080
  __name: "base-loader",
3081
3081
  props: {
3082
3082
  type: { default: "classic" },
@@ -3092,7 +3092,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3092
3092
  ], !0)
3093
3093
  ], 2));
3094
3094
  }
3095
- }), Od = /* @__PURE__ */ oe(Sd, [["__scopeId", "data-v-eeedca6a"]]), Cd = ["src"], Ed = /* @__PURE__ */ $({
3095
+ }), Od = /* @__PURE__ */ oe(Sd, [["__scopeId", "data-v-eeedca6a"]]), Cd = ["src"], Ed = /* @__PURE__ */ R({
3096
3096
  __name: "base-mask",
3097
3097
  props: {
3098
3098
  shape: {},
@@ -3114,7 +3114,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3114
3114
  src: e.src
3115
3115
  }, null, 10, Cd));
3116
3116
  }
3117
- }), Td = /* @__PURE__ */ oe(Ed, [["__scopeId", "data-v-9a6dbd27"]]), Bd = { class: "fixed inset-0 overflow-y-auto" }, Pd = { class: "min-h-full flex items-center justify-center text-center" }, Dd = { class: "flex justify-between" }, Id = { class: "text-xl font-bold" }, Md = { class: "max-h-90vh overflow-auto mt-4" }, $d = /* @__PURE__ */ $({
3117
+ }), Td = /* @__PURE__ */ oe(Ed, [["__scopeId", "data-v-9a6dbd27"]]), Bd = { class: "fixed inset-0 overflow-y-auto" }, Pd = { class: "min-h-full flex items-center justify-center text-center" }, Dd = { class: "flex justify-between" }, Id = { class: "text-xl font-bold" }, Md = { class: "max-h-90vh overflow-auto mt-4" }, $d = /* @__PURE__ */ R({
3118
3118
  __name: "base-modal",
3119
3119
  props: {
3120
3120
  title: {},
@@ -3144,10 +3144,6 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3144
3144
  class: "relative z-60"
3145
3145
  }, {
3146
3146
  default: _(() => [
3147
- s[3] || (s[3] = O("div", {
3148
- class: "fixed inset-0 bg-black/10 backdrop-blur-sm",
3149
- "aria-hidden": "true"
3150
- }, null, -1)),
3151
3147
  H(N(Gr), {
3152
3148
  as: "template",
3153
3149
  enter: "duration-300 ease-out",
@@ -3158,7 +3154,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3158
3154
  "leave-to": "opacity-0"
3159
3155
  }, {
3160
3156
  default: _(() => [...s[2] || (s[2] = [
3161
- O("div", { class: "fixed inset-0 bg-black bg-opacity-25" }, null, -1)
3157
+ O("div", { class: "fixed inset-0 bg-black/10 backdrop-blur-sm" }, null, -1)
3162
3158
  ])]),
3163
3159
  _: 1
3164
3160
  }),
@@ -3223,7 +3219,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3223
3219
  }), Rd = { class: "flex w-full items-center justify-between" }, Ld = { class: "text-sm text-slate-600 dark:text-slate-400" }, Fd = {
3224
3220
  key: 0,
3225
3221
  class: "flex gap-2"
3226
- }, _d = /* @__PURE__ */ $({
3222
+ }, _d = /* @__PURE__ */ R({
3227
3223
  __name: "base-pagination",
3228
3224
  props: {
3229
3225
  modelValue: {},
@@ -3257,13 +3253,13 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3257
3253
  return !0;
3258
3254
  };
3259
3255
  return (f, h) => {
3260
- const g = K("base-icon"), v = K("base-button");
3256
+ const g = K("base-icon"), p = K("base-button");
3261
3257
  return w(), B("div", Rd, [
3262
3258
  O("div", null, [
3263
3259
  O("p", Ld, " Showing " + q(e.totalDocument ? 1 + (a.value - 1) * e.pageSize : 0) + " to " + q(a.value * e.pageSize > e.totalDocument ? e.totalDocument : a.value * e.pageSize) + " of " + q(e.totalDocument) + " entries ", 1)
3264
3260
  ]),
3265
3261
  o.value > 1 ? (w(), B("div", Fd, [
3266
- o.value > 5 ? (w(), X(v, {
3262
+ o.value > 5 ? (w(), X(p, {
3267
3263
  key: 0,
3268
3264
  disabled: a.value === 1,
3269
3265
  variant: "text",
@@ -3275,7 +3271,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3275
3271
  ]),
3276
3272
  _: 1
3277
3273
  }, 8, ["disabled"])) : V("", !0),
3278
- o.value > 5 ? (w(), X(v, {
3274
+ o.value > 5 ? (w(), X(p, {
3279
3275
  key: 1,
3280
3276
  disabled: a.value === 1,
3281
3277
  variant: "text",
@@ -3288,7 +3284,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3288
3284
  _: 1
3289
3285
  }, 8, ["disabled"])) : V("", !0),
3290
3286
  (w(!0), B(fe, null, Ie(o.value, (m) => (w(), B(fe, { key: m }, [
3291
- c(m) ? (w(), X(v, {
3287
+ c(m) ? (w(), X(p, {
3292
3288
  key: 0,
3293
3289
  type: "button",
3294
3290
  size: "sm",
@@ -3305,7 +3301,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3305
3301
  _: 2
3306
3302
  }, 1032, ["onClick", "class"])) : V("", !0)
3307
3303
  ], 64))), 128)),
3308
- o.value > 5 ? (w(), X(v, {
3304
+ o.value > 5 ? (w(), X(p, {
3309
3305
  key: 2,
3310
3306
  disabled: a.value === o.value,
3311
3307
  variant: "text",
@@ -3317,7 +3313,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3317
3313
  ]),
3318
3314
  _: 1
3319
3315
  }, 8, ["disabled"])) : V("", !0),
3320
- o.value > 5 ? (w(), X(v, {
3316
+ o.value > 5 ? (w(), X(p, {
3321
3317
  key: 3,
3322
3318
  disabled: a.value === o.value,
3323
3319
  variant: "text",
@@ -3409,7 +3405,7 @@ function eo(e, t, n = {}) {
3409
3405
  }
3410
3406
  function c(m, b) {
3411
3407
  const y = ut(m), C = y.$.subTree && y.$.subTree.children;
3412
- return C == null || !Array.isArray(C) ? !1 : C.some((p) => p.el === b.target || b.composedPath().includes(p.el));
3408
+ return C == null || !Array.isArray(C) ? !1 : C.some((v) => v.el === b.target || b.composedPath().includes(v.el));
3413
3409
  }
3414
3410
  const f = (m) => {
3415
3411
  const b = Sn(e);
@@ -3442,16 +3438,16 @@ function eo(e, t, n = {}) {
3442
3438
  ((b = r.document.activeElement) === null || b === void 0 ? void 0 : b.tagName) === "IFRAME" && !y?.contains(r.document.activeElement) && t(m);
3443
3439
  }, 0);
3444
3440
  }, { passive: !0 })
3445
- ].filter(Boolean), v = () => g.forEach((m) => m());
3441
+ ].filter(Boolean), p = () => g.forEach((m) => m());
3446
3442
  return l ? {
3447
- stop: v,
3443
+ stop: p,
3448
3444
  cancel: () => {
3449
3445
  s = !1;
3450
3446
  },
3451
3447
  trigger: (m) => {
3452
3448
  s = !0, f(m), s = !1;
3453
3449
  }
3454
- } : v;
3450
+ } : p;
3455
3451
  }
3456
3452
  function Pr(e) {
3457
3453
  return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
@@ -3909,24 +3905,24 @@ function Fi(e, t) {
3909
3905
  }
3910
3906
  function Oa(e, t) {
3911
3907
  t === void 0 && (t = {});
3912
- var n = t, r = n.placement, a = r === void 0 ? e.placement : r, o = n.boundary, i = o === void 0 ? ac : o, l = n.rootBoundary, s = l === void 0 ? Di : l, d = n.elementContext, u = d === void 0 ? bn : d, c = n.altBoundary, f = c === void 0 ? !1 : c, h = n.padding, g = h === void 0 ? 0 : h, v = Li(typeof g != "number" ? g : Fi(g, jn)), m = u === bn ? oc : bn, b = e.rects.popper, y = e.elements[f ? m : u], C = Sc(Tn(y) ? y : y.contextElement || Dt(e.elements.popper), i, s), p = an(e.elements.reference), k = $i({
3913
- reference: p,
3908
+ var n = t, r = n.placement, a = r === void 0 ? e.placement : r, o = n.boundary, i = o === void 0 ? ac : o, l = n.rootBoundary, s = l === void 0 ? Di : l, d = n.elementContext, u = d === void 0 ? bn : d, c = n.altBoundary, f = c === void 0 ? !1 : c, h = n.padding, g = h === void 0 ? 0 : h, p = Li(typeof g != "number" ? g : Fi(g, jn)), m = u === bn ? oc : bn, b = e.rects.popper, y = e.elements[f ? m : u], C = Sc(Tn(y) ? y : y.contextElement || Dt(e.elements.popper), i, s), v = an(e.elements.reference), x = $i({
3909
+ reference: v,
3914
3910
  element: b,
3915
3911
  placement: a
3916
- }), A = Jr(Object.assign({}, b, k)), S = u === bn ? A : p, x = {
3917
- top: C.top - S.top + v.top,
3918
- bottom: S.bottom - C.bottom + v.bottom,
3919
- left: C.left - S.left + v.left,
3920
- right: S.right - C.right + v.right
3912
+ }), k = Jr(Object.assign({}, b, x)), S = u === bn ? k : v, A = {
3913
+ top: C.top - S.top + p.top,
3914
+ bottom: S.bottom - C.bottom + p.bottom,
3915
+ left: C.left - S.left + p.left,
3916
+ right: S.right - C.right + p.right
3921
3917
  }, M = e.modifiersData.offset;
3922
3918
  if (u === bn && M) {
3923
3919
  var P = M[a];
3924
- Object.keys(x).forEach(function(I) {
3925
- var F = [nt, tt].indexOf(I) >= 0 ? 1 : -1, L = [qe, tt].indexOf(I) >= 0 ? "y" : "x";
3926
- x[I] += P[L] * F;
3920
+ Object.keys(A).forEach(function(I) {
3921
+ var L = [nt, tt].indexOf(I) >= 0 ? 1 : -1, $ = [qe, tt].indexOf(I) >= 0 ? "y" : "x";
3922
+ A[I] += P[$] * L;
3927
3923
  });
3928
3924
  }
3929
- return x;
3925
+ return A;
3930
3926
  }
3931
3927
  var ao = {
3932
3928
  placement: "bottom",
@@ -3960,13 +3956,13 @@ function Oc(e) {
3960
3956
  state: u,
3961
3957
  setOptions: function(b) {
3962
3958
  var y = typeof b == "function" ? b(u.options) : b;
3963
- v(), u.options = Object.assign({}, o, u.options, y), u.scrollParents = {
3959
+ p(), u.options = Object.assign({}, o, u.options, y), u.scrollParents = {
3964
3960
  reference: Tn(l) ? On(l) : l.contextElement ? On(l.contextElement) : [],
3965
3961
  popper: On(s)
3966
3962
  };
3967
3963
  var C = gc(yc([].concat(r, u.options.modifiers)));
3968
- return u.orderedModifiers = C.filter(function(p) {
3969
- return p.enabled;
3964
+ return u.orderedModifiers = C.filter(function(v) {
3965
+ return v.enabled;
3970
3966
  }), g(), h.update();
3971
3967
  },
3972
3968
  // Sync update – it will always be executed, even if not necessary. This
@@ -3984,15 +3980,15 @@ function Oc(e) {
3984
3980
  }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(P) {
3985
3981
  return u.modifiersData[P.name] = Object.assign({}, P.data);
3986
3982
  });
3987
- for (var p = 0; p < u.orderedModifiers.length; p++) {
3983
+ for (var v = 0; v < u.orderedModifiers.length; v++) {
3988
3984
  if (u.reset === !0) {
3989
- u.reset = !1, p = -1;
3985
+ u.reset = !1, v = -1;
3990
3986
  continue;
3991
3987
  }
3992
- var k = u.orderedModifiers[p], A = k.fn, S = k.options, x = S === void 0 ? {} : S, M = k.name;
3993
- typeof A == "function" && (u = A({
3988
+ var x = u.orderedModifiers[v], k = x.fn, S = x.options, A = S === void 0 ? {} : S, M = x.name;
3989
+ typeof k == "function" && (u = k({
3994
3990
  state: u,
3995
- options: x,
3991
+ options: A,
3996
3992
  name: M,
3997
3993
  instance: h
3998
3994
  }) || u);
@@ -4008,7 +4004,7 @@ function Oc(e) {
4008
4004
  });
4009
4005
  }),
4010
4006
  destroy: function() {
4011
- v(), f = !0;
4007
+ p(), f = !0;
4012
4008
  }
4013
4009
  };
4014
4010
  if (!oo(l, s))
@@ -4018,20 +4014,20 @@ function Oc(e) {
4018
4014
  });
4019
4015
  function g() {
4020
4016
  u.orderedModifiers.forEach(function(m) {
4021
- var b = m.name, y = m.options, C = y === void 0 ? {} : y, p = m.effect;
4022
- if (typeof p == "function") {
4023
- var k = p({
4017
+ var b = m.name, y = m.options, C = y === void 0 ? {} : y, v = m.effect;
4018
+ if (typeof v == "function") {
4019
+ var x = v({
4024
4020
  state: u,
4025
4021
  name: b,
4026
4022
  instance: h,
4027
4023
  options: C
4028
- }), A = function() {
4024
+ }), k = function() {
4029
4025
  };
4030
- c.push(k || A);
4026
+ c.push(x || k);
4031
4027
  }
4032
4028
  });
4033
4029
  }
4034
- function v() {
4030
+ function p() {
4035
4031
  c.forEach(function(m) {
4036
4032
  return m();
4037
4033
  }), c = [];
@@ -4089,19 +4085,19 @@ function Dc(e) {
4089
4085
  };
4090
4086
  }
4091
4087
  function io(e) {
4092
- var t, n = e.popper, r = e.popperRect, a = e.placement, o = e.variation, i = e.offsets, l = e.position, s = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets, c = u === !0 ? Dc(i) : typeof u == "function" ? u(i) : i, f = c.x, h = f === void 0 ? 0 : f, g = c.y, v = g === void 0 ? 0 : g, m = i.hasOwnProperty("x"), b = i.hasOwnProperty("y"), y = ze, C = qe, p = window;
4088
+ var t, n = e.popper, r = e.popperRect, a = e.placement, o = e.variation, i = e.offsets, l = e.position, s = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets, c = u === !0 ? Dc(i) : typeof u == "function" ? u(i) : i, f = c.x, h = f === void 0 ? 0 : f, g = c.y, p = g === void 0 ? 0 : g, m = i.hasOwnProperty("x"), b = i.hasOwnProperty("y"), y = ze, C = qe, v = window;
4093
4089
  if (d) {
4094
- var k = Nn(n), A = "clientHeight", S = "clientWidth";
4095
- k === rt(n) && (k = Dt(n), At(k).position !== "static" && l === "absolute" && (A = "scrollHeight", S = "scrollWidth")), k = k, (a === qe || (a === ze || a === nt) && o === Bn) && (C = tt, v -= k[A] - r.height, v *= s ? 1 : -1), (a === ze || (a === qe || a === tt) && o === Bn) && (y = nt, h -= k[S] - r.width, h *= s ? 1 : -1);
4090
+ var x = Nn(n), k = "clientHeight", S = "clientWidth";
4091
+ x === rt(n) && (x = Dt(n), At(x).position !== "static" && l === "absolute" && (k = "scrollHeight", S = "scrollWidth")), x = x, (a === qe || (a === ze || a === nt) && o === Bn) && (C = tt, p -= x[k] - r.height, p *= s ? 1 : -1), (a === ze || (a === qe || a === tt) && o === Bn) && (y = nt, h -= x[S] - r.width, h *= s ? 1 : -1);
4096
4092
  }
4097
- var x = Object.assign({
4093
+ var A = Object.assign({
4098
4094
  position: l
4099
4095
  }, d && Pc);
4100
4096
  if (s) {
4101
4097
  var M;
4102
- return Object.assign({}, x, (M = {}, M[C] = b ? "0" : "", M[y] = m ? "0" : "", M.transform = (p.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + v + "px)" : "translate3d(" + h + "px, " + v + "px, 0)", M));
4098
+ return Object.assign({}, A, (M = {}, M[C] = b ? "0" : "", M[y] = m ? "0" : "", M.transform = (v.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + p + "px)" : "translate3d(" + h + "px, " + p + "px, 0)", M));
4103
4099
  }
4104
- return Object.assign({}, x, (t = {}, t[C] = b ? v + "px" : "", t[y] = m ? h + "px" : "", t.transform = "", t));
4100
+ return Object.assign({}, A, (t = {}, t[C] = b ? p + "px" : "", t[y] = m ? h + "px" : "", t.transform = "", t));
4105
4101
  }
4106
4102
  function Ic(e) {
4107
4103
  var t = e.state, n = e.options, r = n.gpuAcceleration, a = r === void 0 ? !0 : r, o = n.adaptive, i = o === void 0 ? !0 : o, l = n.roundOffsets, s = l === void 0 ? !0 : l, d = {
@@ -4183,30 +4179,30 @@ function ir(e, t, n) {
4183
4179
  return Tt(e, Pn(t, n));
4184
4180
  }
4185
4181
  function Nc(e) {
4186
- var t = e.state, n = e.options, r = e.name, a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !1 : i, s = n.boundary, d = n.rootBoundary, u = n.altBoundary, c = n.padding, f = n.tether, h = f === void 0 ? !0 : f, g = n.tetherOffset, v = g === void 0 ? 0 : g, m = Oa(t, {
4182
+ var t = e.state, n = e.options, r = e.name, a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !1 : i, s = n.boundary, d = n.rootBoundary, u = n.altBoundary, c = n.padding, f = n.tether, h = f === void 0 ? !0 : f, g = n.tetherOffset, p = g === void 0 ? 0 : g, m = Oa(t, {
4187
4183
  boundary: s,
4188
4184
  rootBoundary: d,
4189
4185
  padding: c,
4190
4186
  altBoundary: u
4191
- }), b = dt(t.placement), y = ln(t.placement), C = !y, p = Sa(b), k = Vc(p), A = t.modifiersData.popperOffsets, S = t.rects.reference, x = t.rects.popper, M = typeof v == "function" ? v(Object.assign({}, t.rects, {
4187
+ }), b = dt(t.placement), y = ln(t.placement), C = !y, v = Sa(b), x = Vc(v), k = t.modifiersData.popperOffsets, S = t.rects.reference, A = t.rects.popper, M = typeof p == "function" ? p(Object.assign({}, t.rects, {
4192
4188
  placement: t.placement
4193
- })) : v, P = {
4189
+ })) : p, P = {
4194
4190
  x: 0,
4195
4191
  y: 0
4196
4192
  };
4197
- if (A) {
4193
+ if (k) {
4198
4194
  if (o || l) {
4199
- var I = p === "y" ? qe : ze, F = p === "y" ? tt : nt, L = p === "y" ? "height" : "width", U = A[p], Y = A[p] + m[I], G = A[p] - m[F], ae = h ? -x[L] / 2 : 0, re = y === on ? S[L] : x[L], ce = y === on ? -x[L] : -S[L], ve = t.elements.arrow, ee = h && ve ? xa(ve) : {
4195
+ var I = v === "y" ? qe : ze, L = v === "y" ? tt : nt, $ = v === "y" ? "height" : "width", U = k[v], Y = k[v] + m[I], G = k[v] - m[L], ae = h ? -A[$] / 2 : 0, re = y === on ? S[$] : A[$], ce = y === on ? -A[$] : -S[$], ve = t.elements.arrow, ee = h && ve ? xa(ve) : {
4200
4196
  width: 0,
4201
4197
  height: 0
4202
- }, ie = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ri(), Ae = ie[I], me = ie[F], ye = ir(0, S[L], ee[L]), Be = C ? S[L] / 2 - ae - ye - Ae - M : re - ye - Ae - M, ot = C ? -S[L] / 2 + ae + ye + me + M : ce + ye + me + M, Re = t.elements.arrow && Nn(t.elements.arrow), it = Re ? p === "y" ? Re.clientTop || 0 : Re.clientLeft || 0 : 0, Ze = t.modifiersData.offset ? t.modifiersData.offset[t.placement][p] : 0, mt = A[p] + Be - Ze - it, Mt = A[p] + ot - Ze;
4198
+ }, ie = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ri(), Ae = ie[I], me = ie[L], ye = ir(0, S[$], ee[$]), Be = C ? S[$] / 2 - ae - ye - Ae - M : re - ye - Ae - M, ot = C ? -S[$] / 2 + ae + ye + me + M : ce + ye + me + M, Re = t.elements.arrow && Nn(t.elements.arrow), it = Re ? v === "y" ? Re.clientTop || 0 : Re.clientLeft || 0 : 0, Ze = t.modifiersData.offset ? t.modifiersData.offset[t.placement][v] : 0, mt = k[v] + Be - Ze - it, Mt = k[v] + ot - Ze;
4203
4199
  if (o) {
4204
4200
  var wt = ir(h ? Pn(Y, mt) : Y, U, h ? Tt(G, Mt) : G);
4205
- A[p] = wt, P[p] = wt - U;
4201
+ k[v] = wt, P[v] = wt - U;
4206
4202
  }
4207
4203
  if (l) {
4208
- var Kt = p === "x" ? qe : ze, Jt = p === "x" ? tt : nt, lt = A[k], xt = lt + m[Kt], $t = lt - m[Jt], Rt = ir(h ? Pn(xt, mt) : xt, lt, h ? Tt($t, Mt) : $t);
4209
- A[k] = Rt, P[k] = Rt - lt;
4204
+ var Kt = v === "x" ? qe : ze, Jt = v === "x" ? tt : nt, lt = k[x], xt = lt + m[Kt], $t = lt - m[Jt], Rt = ir(h ? Pn(xt, mt) : xt, lt, h ? Tt($t, Mt) : $t);
4205
+ k[x] = Rt, P[x] = Rt - lt;
4210
4206
  }
4211
4207
  }
4212
4208
  t.modifiersData[r] = P;
@@ -4246,16 +4242,16 @@ function qc(e, t) {
4246
4242
  return d.indexOf(g) >= 0;
4247
4243
  });
4248
4244
  f.length === 0 && (f = c);
4249
- var h = f.reduce(function(g, v) {
4250
- return g[v] = Oa(e, {
4251
- placement: v,
4245
+ var h = f.reduce(function(g, p) {
4246
+ return g[p] = Oa(e, {
4247
+ placement: p,
4252
4248
  boundary: a,
4253
4249
  rootBoundary: o,
4254
4250
  padding: i
4255
- })[dt(v)], g;
4251
+ })[dt(p)], g;
4256
4252
  }, {});
4257
- return Object.keys(h).sort(function(g, v) {
4258
- return h[g] - h[v];
4253
+ return Object.keys(h).sort(function(g, p) {
4254
+ return h[g] - h[p];
4259
4255
  });
4260
4256
  }
4261
4257
  function zc(e) {
@@ -4267,36 +4263,36 @@ function zc(e) {
4267
4263
  function Uc(e) {
4268
4264
  var t = e.state, n = e.options, r = e.name;
4269
4265
  if (!t.modifiersData[r]._skip) {
4270
- for (var a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !0 : i, s = n.fallbackPlacements, d = n.padding, u = n.boundary, c = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, g = h === void 0 ? !0 : h, v = n.allowedAutoPlacements, m = t.options.placement, b = dt(m), y = b === m, C = s || (y || !g ? [lr(m)] : zc(m)), p = [m].concat(C).reduce(function(me, ye) {
4266
+ for (var a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !0 : i, s = n.fallbackPlacements, d = n.padding, u = n.boundary, c = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, g = h === void 0 ? !0 : h, p = n.allowedAutoPlacements, m = t.options.placement, b = dt(m), y = b === m, C = s || (y || !g ? [lr(m)] : zc(m)), v = [m].concat(C).reduce(function(me, ye) {
4271
4267
  return me.concat(dt(ye) === ka ? qc(t, {
4272
4268
  placement: ye,
4273
4269
  boundary: u,
4274
4270
  rootBoundary: c,
4275
4271
  padding: d,
4276
4272
  flipVariations: g,
4277
- allowedAutoPlacements: v
4273
+ allowedAutoPlacements: p
4278
4274
  }) : ye);
4279
- }, []), k = t.rects.reference, A = t.rects.popper, S = /* @__PURE__ */ new Map(), x = !0, M = p[0], P = 0; P < p.length; P++) {
4280
- var I = p[P], F = dt(I), L = ln(I) === on, U = [qe, tt].indexOf(F) >= 0, Y = U ? "width" : "height", G = Oa(t, {
4275
+ }, []), x = t.rects.reference, k = t.rects.popper, S = /* @__PURE__ */ new Map(), A = !0, M = v[0], P = 0; P < v.length; P++) {
4276
+ var I = v[P], L = dt(I), $ = ln(I) === on, U = [qe, tt].indexOf(L) >= 0, Y = U ? "width" : "height", G = Oa(t, {
4281
4277
  placement: I,
4282
4278
  boundary: u,
4283
4279
  rootBoundary: c,
4284
4280
  altBoundary: f,
4285
4281
  padding: d
4286
- }), ae = U ? L ? nt : ze : L ? tt : qe;
4287
- k[Y] > A[Y] && (ae = lr(ae));
4282
+ }), ae = U ? $ ? nt : ze : $ ? tt : qe;
4283
+ x[Y] > k[Y] && (ae = lr(ae));
4288
4284
  var re = lr(ae), ce = [];
4289
- if (o && ce.push(G[F] <= 0), l && ce.push(G[ae] <= 0, G[re] <= 0), ce.every(function(me) {
4285
+ if (o && ce.push(G[L] <= 0), l && ce.push(G[ae] <= 0, G[re] <= 0), ce.every(function(me) {
4290
4286
  return me;
4291
4287
  })) {
4292
- M = I, x = !1;
4288
+ M = I, A = !1;
4293
4289
  break;
4294
4290
  }
4295
4291
  S.set(I, ce);
4296
4292
  }
4297
- if (x)
4293
+ if (A)
4298
4294
  for (var ve = g ? 3 : 1, ee = function(ye) {
4299
- var Be = p.find(function(ot) {
4295
+ var Be = v.find(function(ot) {
4300
4296
  var Re = S.get(ot);
4301
4297
  if (Re)
4302
4298
  return Re.slice(0, ye).every(function(it) {
@@ -4354,8 +4350,8 @@ var Gc = {
4354
4350
  function Jc(e) {
4355
4351
  var t, n = e.state, r = e.name, a = e.options, o = n.elements.arrow, i = n.modifiersData.popperOffsets, l = dt(n.placement), s = Sa(l), d = [ze, nt].indexOf(l) >= 0, u = d ? "height" : "width";
4356
4352
  if (!(!o || !i)) {
4357
- var c = Kc(a.padding, n), f = xa(o), h = s === "y" ? qe : ze, g = s === "y" ? tt : nt, v = n.rects.reference[u] + n.rects.reference[s] - i[s] - n.rects.popper[u], m = i[s] - n.rects.reference[s], b = Nn(o), y = b ? s === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = v / 2 - m / 2, p = c[h], k = y - f[u] - c[g], A = y / 2 - f[u] / 2 + C, S = ir(p, A, k), x = s;
4358
- n.modifiersData[r] = (t = {}, t[x] = S, t.centerOffset = S - A, t);
4353
+ var c = Kc(a.padding, n), f = xa(o), h = s === "y" ? qe : ze, g = s === "y" ? tt : nt, p = n.rects.reference[u] + n.rects.reference[s] - i[s] - n.rects.popper[u], m = i[s] - n.rects.reference[s], b = Nn(o), y = b ? s === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = p / 2 - m / 2, v = c[h], x = y - f[u] - c[g], k = y / 2 - f[u] / 2 + C, S = ir(v, k, x), A = s;
4354
+ n.modifiersData[r] = (t = {}, t[A] = S, t.centerOffset = S - k, t);
4359
4355
  }
4360
4356
  }
4361
4357
  function Zc(e) {
@@ -4385,13 +4381,13 @@ function tf({
4385
4381
  const s = pr({
4386
4382
  isOpen: !1,
4387
4383
  popperInstance: null
4388
- }), d = (v) => {
4384
+ }), d = (p) => {
4389
4385
  var m;
4390
4386
  (m = s.popperInstance) === null || m === void 0 || m.setOptions((b) => ({
4391
4387
  ...b,
4392
4388
  modifiers: [...b.modifiers, {
4393
4389
  name: "eventListeners",
4394
- enabled: v
4390
+ enabled: p
4395
4391
  }]
4396
4392
  }));
4397
4393
  }, u = () => d(!0), c = () => d(!1), f = () => {
@@ -4399,8 +4395,8 @@ function tf({
4399
4395
  }, h = () => {
4400
4396
  s.isOpen || (s.isOpen = !0, t("open:popper"));
4401
4397
  };
4402
- ne([() => s.isOpen, o], async ([v]) => {
4403
- v ? (await g(), u()) : c();
4398
+ ne([() => s.isOpen, o], async ([p]) => {
4399
+ p ? (await g(), u()) : c();
4404
4400
  });
4405
4401
  const g = async () => {
4406
4402
  await ke(), s.popperInstance = _c(l.value, i.value, {
@@ -4422,8 +4418,8 @@ function tf({
4422
4418
  }), s.popperInstance.update();
4423
4419
  };
4424
4420
  return vr(() => {
4425
- var v;
4426
- (v = s.popperInstance) === null || v === void 0 || v.destroy();
4421
+ var p;
4422
+ (p = s.popperInstance) === null || p === void 0 || p.destroy();
4427
4423
  }), {
4428
4424
  ...jo(s),
4429
4425
  open: h,
@@ -4641,46 +4637,46 @@ var Vi = {
4641
4637
  disabled: f,
4642
4638
  interactive: h,
4643
4639
  locked: g,
4644
- offsetDistance: v,
4640
+ offsetDistance: p,
4645
4641
  offsetSkid: m,
4646
4642
  openDelay: b,
4647
4643
  placement: y,
4648
4644
  show: C
4649
4645
  } = jo(n), {
4650
- isOpen: p,
4651
- open: k,
4652
- close: A
4646
+ isOpen: v,
4647
+ open: x,
4648
+ close: k
4653
4649
  } = tf({
4654
4650
  arrowPadding: s,
4655
4651
  emit: t,
4656
4652
  locked: g,
4657
- offsetDistance: v,
4653
+ offsetDistance: p,
4658
4654
  offsetSkid: m,
4659
4655
  placement: y,
4660
4656
  popperNode: o,
4661
4657
  triggerNode: i
4662
4658
  }), {
4663
4659
  hasContent: S
4664
- } = Kd(r, o, u), x = T(() => C.value !== null), M = T(() => f.value || !S.value), P = T(() => p.value && !M.value), I = T(() => !c.value && !x.value), F = T(() => h.value ? `border: ${v.value}px solid transparent; margin: -${v.value}px;` : null), L = Mr.debounce(k, b.value), U = Mr.debounce(A, d.value), Y = async () => {
4665
- M.value || x.value || (U.clear(), L());
4660
+ } = Kd(r, o, u), A = T(() => C.value !== null), M = T(() => f.value || !S.value), P = T(() => v.value && !M.value), I = T(() => !c.value && !A.value), L = T(() => h.value ? `border: ${p.value}px solid transparent; margin: -${p.value}px;` : null), $ = Mr.debounce(x, b.value), U = Mr.debounce(k, d.value), Y = async () => {
4661
+ M.value || A.value || (U.clear(), $());
4666
4662
  }, G = async () => {
4667
- x.value || (L.clear(), U());
4663
+ A.value || ($.clear(), U());
4668
4664
  }, ae = () => {
4669
- p.value ? G() : Y();
4665
+ v.value ? G() : Y();
4670
4666
  };
4671
4667
  return ne([S, f], ([re, ce]) => {
4672
- p.value && (!re || ce) && A();
4673
- }), ne(p, (re) => {
4668
+ v.value && (!re || ce) && k();
4669
+ }), ne(v, (re) => {
4674
4670
  re ? l.value = !0 : Mr.debounce(() => {
4675
4671
  l.value = !1;
4676
4672
  }, 200);
4677
4673
  }), Ee(() => {
4678
- x.value && (C.value ? L() : U());
4674
+ A.value && (C.value ? $() : U());
4679
4675
  }), Ee(() => {
4680
4676
  I.value && Gd(a, G);
4681
4677
  }), (re, ce) => (w(), B("div", {
4682
4678
  class: "inline-block",
4683
- style: Ye(N(F)),
4679
+ style: Ye(N(L)),
4684
4680
  onMouseleave: ce[2] || (ce[2] = (ve) => e.hover && G()),
4685
4681
  ref: (ve, ee) => {
4686
4682
  ee.popperContainerNode = ve, a.value = ve;
@@ -4703,7 +4699,7 @@ var Vi = {
4703
4699
  ee.popperNode = ve, o.value = ve;
4704
4700
  }
4705
4701
  }, [Q(re.$slots, "content", {
4706
- close: N(A),
4702
+ close: N(k),
4707
4703
  isOpen: l.value
4708
4704
  }, () => [$e(q(N(u)), 1)]), e.arrow ? (w(), X(of, {
4709
4705
  key: 0
@@ -4751,7 +4747,7 @@ var uf = /* @__PURE__ */ (() => {
4751
4747
  t.component("Popper", e);
4752
4748
  }, e;
4753
4749
  })();
4754
- const Ni = /* @__PURE__ */ $({
4750
+ const Ni = /* @__PURE__ */ R({
4755
4751
  __name: "base-popover",
4756
4752
  props: {
4757
4753
  placement: { default: "bottom" }
@@ -4793,7 +4789,7 @@ const Ni = /* @__PURE__ */ $({
4793
4789
  _: 3
4794
4790
  }, 16, ["placement", "show"]));
4795
4791
  }
4796
- }), df = /* @__PURE__ */ $({
4792
+ }), df = /* @__PURE__ */ R({
4797
4793
  __name: "base-progress",
4798
4794
  props: {
4799
4795
  modelValue: {},
@@ -4837,7 +4833,7 @@ const Ni = /* @__PURE__ */ $({
4837
4833
  ], 6)
4838
4834
  ], 2));
4839
4835
  }
4840
- }), cf = /* @__PURE__ */ oe(df, [["__scopeId", "data-v-a32daf0f"]]), ff = { class: "sitemap" }, pf = { key: 0 }, vf = { key: 1 }, mf = { class: "primary" }, hf = { id: "home" }, gf = ["href"], bf = { key: 0 }, yf = ["href"], Af = { key: 0 }, wf = ["href"], xf = { key: 0 }, kf = ["href"], Sf = /* @__PURE__ */ $({
4836
+ }), cf = /* @__PURE__ */ oe(df, [["__scopeId", "data-v-a32daf0f"]]), ff = { class: "sitemap" }, pf = { key: 0 }, vf = { key: 1 }, mf = { class: "primary" }, hf = { id: "home" }, gf = ["href"], bf = { key: 0 }, yf = ["href"], Af = { key: 0 }, wf = ["href"], xf = { key: 0 }, kf = ["href"], Sf = /* @__PURE__ */ R({
4841
4837
  __name: "base-sitemap",
4842
4838
  props: {
4843
4839
  sitemap: { required: !0 },
@@ -4900,7 +4896,7 @@ const Ni = /* @__PURE__ */ $({
4900
4896
  ])
4901
4897
  ]));
4902
4898
  }
4903
- }), Of = /* @__PURE__ */ oe(Sf, [["__scopeId", "data-v-03e99aa1"]]), Cf = /* @__PURE__ */ $({
4899
+ }), Of = /* @__PURE__ */ oe(Sf, [["__scopeId", "data-v-03e99aa1"]]), Cf = /* @__PURE__ */ R({
4904
4900
  __name: "base-spinner",
4905
4901
  props: {
4906
4902
  size: { default: "md" },
@@ -4918,7 +4914,7 @@ const Ni = /* @__PURE__ */ $({
4918
4914
  }, Df = {
4919
4915
  key: 0,
4920
4916
  class: "step-text"
4921
- }, If = /* @__PURE__ */ $({
4917
+ }, If = /* @__PURE__ */ R({
4922
4918
  __name: "base-step",
4923
4919
  props: {
4924
4920
  modelValue: {},
@@ -4961,7 +4957,7 @@ const Ni = /* @__PURE__ */ $({
4961
4957
  ]);
4962
4958
  };
4963
4959
  }
4964
- }), Mf = /* @__PURE__ */ oe(If, [["__scopeId", "data-v-3526c236"]]), Zr = /* @__PURE__ */ $({
4960
+ }), Mf = /* @__PURE__ */ oe(If, [["__scopeId", "data-v-3526c236"]]), Zr = /* @__PURE__ */ R({
4965
4961
  __name: "base-tab",
4966
4962
  setup(e) {
4967
4963
  return (t, n) => (w(), X(N(id), { as: "template" }, {
@@ -4971,7 +4967,7 @@ const Ni = /* @__PURE__ */ $({
4971
4967
  _: 3
4972
4968
  }));
4973
4969
  }
4974
- }), ji = /* @__PURE__ */ $({
4970
+ }), ji = /* @__PURE__ */ R({
4975
4971
  __name: "base-tab-group",
4976
4972
  setup(e) {
4977
4973
  return (t, n) => (w(), X(N(ad), { as: "div" }, {
@@ -4981,7 +4977,7 @@ const Ni = /* @__PURE__ */ $({
4981
4977
  _: 3
4982
4978
  }));
4983
4979
  }
4984
- }), Wi = /* @__PURE__ */ $({
4980
+ }), Wi = /* @__PURE__ */ R({
4985
4981
  __name: "base-tab-list",
4986
4982
  setup(e) {
4987
4983
  return (t, n) => (w(), X(N(od), null, {
@@ -4991,7 +4987,7 @@ const Ni = /* @__PURE__ */ $({
4991
4987
  _: 3
4992
4988
  }));
4993
4989
  }
4994
- }), ea = /* @__PURE__ */ $({
4990
+ }), ea = /* @__PURE__ */ R({
4995
4991
  __name: "base-tab-panel",
4996
4992
  setup(e) {
4997
4993
  return (t, n) => (w(), X(N(sd), null, {
@@ -5001,7 +4997,7 @@ const Ni = /* @__PURE__ */ $({
5001
4997
  _: 3
5002
4998
  }));
5003
4999
  }
5004
- }), Hi = /* @__PURE__ */ $({
5000
+ }), Hi = /* @__PURE__ */ R({
5005
5001
  __name: "base-tab-panels",
5006
5002
  setup(e) {
5007
5003
  return (t, n) => (w(), X(N(ld), null, {
@@ -5078,7 +5074,7 @@ const ep = ["data-testid"], tp = { class: "self-start mt-0.5" }, np = {
5078
5074
  }, ip = {
5079
5075
  key: 4,
5080
5076
  class: "i-fa7-solid:triangle-exclamation block w-4 h-4"
5081
- }, lp = { class: "ms-3 text-sm" }, sp = /* @__PURE__ */ $({
5077
+ }, lp = { class: "ms-3 text-sm" }, sp = /* @__PURE__ */ R({
5082
5078
  __name: "base-toast",
5083
5079
  props: {
5084
5080
  dataTestid: {}
@@ -5357,8 +5353,8 @@ var Ep = function(t, n) {
5357
5353
  function Tp(e) {
5358
5354
  var t, n = e.state, r = e.name, a = e.options, o = n.elements.arrow, i = n.modifiersData.popperOffsets, l = ct(n.placement), s = Ba(l), d = [Ve, Ke].indexOf(l) >= 0, u = d ? "height" : "width";
5359
5355
  if (!(!o || !i)) {
5360
- var c = Ep(a.padding, n), f = Ta(o), h = s === "y" ? _e : Ve, g = s === "y" ? Ge : Ke, v = n.rects.reference[u] + n.rects.reference[s] - i[s] - n.rects.popper[u], m = i[s] - n.rects.reference[s], b = Hn(o), y = b ? s === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = v / 2 - m / 2, p = c[h], k = y - f[u] - c[g], A = y / 2 - f[u] / 2 + C, S = Cn(p, A, k), x = s;
5361
- n.modifiersData[r] = (t = {}, t[x] = S, t.centerOffset = S - A, t);
5356
+ var c = Ep(a.padding, n), f = Ta(o), h = s === "y" ? _e : Ve, g = s === "y" ? Ge : Ke, p = n.rects.reference[u] + n.rects.reference[s] - i[s] - n.rects.popper[u], m = i[s] - n.rects.reference[s], b = Hn(o), y = b ? s === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = p / 2 - m / 2, v = c[h], x = y - f[u] - c[g], k = y / 2 - f[u] / 2 + C, S = Cn(v, k, x), A = s;
5357
+ n.modifiersData[r] = (t = {}, t[A] = S, t.centerOffset = S - k, t);
5362
5358
  }
5363
5359
  }
5364
5360
  function Bp(e) {
@@ -5391,22 +5387,22 @@ function Ip(e) {
5391
5387
  };
5392
5388
  }
5393
5389
  function fo(e) {
5394
- var t, n = e.popper, r = e.popperRect, a = e.placement, o = e.variation, i = e.offsets, l = e.position, s = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets, c = e.isFixed, f = u === !0 ? Ip(i) : typeof u == "function" ? u(i) : i, h = f.x, g = h === void 0 ? 0 : h, v = f.y, m = v === void 0 ? 0 : v, b = i.hasOwnProperty("x"), y = i.hasOwnProperty("y"), C = Ve, p = _e, k = window;
5390
+ var t, n = e.popper, r = e.popperRect, a = e.placement, o = e.variation, i = e.offsets, l = e.position, s = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets, c = e.isFixed, f = u === !0 ? Ip(i) : typeof u == "function" ? u(i) : i, h = f.x, g = h === void 0 ? 0 : h, p = f.y, m = p === void 0 ? 0 : p, b = i.hasOwnProperty("x"), y = i.hasOwnProperty("y"), C = Ve, v = _e, x = window;
5395
5391
  if (d) {
5396
- var A = Hn(n), S = "clientHeight", x = "clientWidth";
5397
- if (A === at(n) && (A = It(n), vt(A).position !== "static" && l === "absolute" && (S = "scrollHeight", x = "scrollWidth")), A = A, a === _e || (a === Ve || a === Ke) && o === Dn) {
5398
- p = Ge;
5399
- var M = c && k.visualViewport ? k.visualViewport.height : (
5392
+ var k = Hn(n), S = "clientHeight", A = "clientWidth";
5393
+ if (k === at(n) && (k = It(n), vt(k).position !== "static" && l === "absolute" && (S = "scrollHeight", A = "scrollWidth")), k = k, a === _e || (a === Ve || a === Ke) && o === Dn) {
5394
+ v = Ge;
5395
+ var M = c && x.visualViewport ? x.visualViewport.height : (
5400
5396
  // $FlowFixMe[prop-missing]
5401
- A[S]
5397
+ k[S]
5402
5398
  );
5403
5399
  m -= M - r.height, m *= s ? 1 : -1;
5404
5400
  }
5405
5401
  if (a === Ve || (a === _e || a === Ge) && o === Dn) {
5406
5402
  C = Ke;
5407
- var P = c && k.visualViewport ? k.visualViewport.width : (
5403
+ var P = c && x.visualViewport ? x.visualViewport.width : (
5408
5404
  // $FlowFixMe[prop-missing]
5409
- A[x]
5405
+ k[A]
5410
5406
  );
5411
5407
  g -= P - r.width, g *= s ? 1 : -1;
5412
5408
  }
@@ -5415,10 +5411,10 @@ function fo(e) {
5415
5411
  position: l
5416
5412
  }, d && Dp);
5417
5413
  if (s) {
5418
- var F;
5419
- return Object.assign({}, I, (F = {}, F[p] = y ? "0" : "", F[C] = b ? "0" : "", F.transform = (k.devicePixelRatio || 1) <= 1 ? "translate(" + g + "px, " + m + "px)" : "translate3d(" + g + "px, " + m + "px, 0)", F));
5414
+ var L;
5415
+ return Object.assign({}, I, (L = {}, L[v] = y ? "0" : "", L[C] = b ? "0" : "", L.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + g + "px, " + m + "px)" : "translate3d(" + g + "px, " + m + "px, 0)", L));
5420
5416
  }
5421
- return Object.assign({}, I, (t = {}, t[p] = y ? m + "px" : "", t[C] = b ? g + "px" : "", t.transform = "", t));
5417
+ return Object.assign({}, I, (t = {}, t[v] = y ? m + "px" : "", t[C] = b ? g + "px" : "", t.transform = "", t));
5422
5418
  }
5423
5419
  function Mp(e) {
5424
5420
  var t = e.state, n = e.options, r = n.gpuAcceleration, a = r === void 0 ? !0 : r, o = n.adaptive, i = o === void 0 ? !0 : o, l = n.roundOffsets, s = l === void 0 ? !0 : l, d = {
@@ -5611,24 +5607,24 @@ function el(e) {
5611
5607
  }
5612
5608
  function In(e, t) {
5613
5609
  t === void 0 && (t = {});
5614
- var n = t, r = n.placement, a = r === void 0 ? e.placement : r, o = n.boundary, i = o === void 0 ? dp : o, l = n.rootBoundary, s = l === void 0 ? zi : l, d = n.elementContext, u = d === void 0 ? yn : d, c = n.altBoundary, f = c === void 0 ? !1 : c, h = n.padding, g = h === void 0 ? 0 : h, v = Ki(typeof g != "number" ? g : Ji(g, Wn)), m = u === yn ? cp : yn, b = e.rects.popper, y = e.elements[f ? m : u], C = Hp(un(y) ? y : y.contextElement || It(e.elements.popper), i, s), p = cn(e.elements.reference), k = el({
5615
- reference: p,
5610
+ var n = t, r = n.placement, a = r === void 0 ? e.placement : r, o = n.boundary, i = o === void 0 ? dp : o, l = n.rootBoundary, s = l === void 0 ? zi : l, d = n.elementContext, u = d === void 0 ? yn : d, c = n.altBoundary, f = c === void 0 ? !1 : c, h = n.padding, g = h === void 0 ? 0 : h, p = Ki(typeof g != "number" ? g : Ji(g, Wn)), m = u === yn ? cp : yn, b = e.rects.popper, y = e.elements[f ? m : u], C = Hp(un(y) ? y : y.contextElement || It(e.elements.popper), i, s), v = cn(e.elements.reference), x = el({
5611
+ reference: v,
5616
5612
  element: b,
5617
5613
  placement: a
5618
- }), A = ta(Object.assign({}, b, k)), S = u === yn ? A : p, x = {
5619
- top: C.top - S.top + v.top,
5620
- bottom: S.bottom - C.bottom + v.bottom,
5621
- left: C.left - S.left + v.left,
5622
- right: S.right - C.right + v.right
5614
+ }), k = ta(Object.assign({}, b, x)), S = u === yn ? k : v, A = {
5615
+ top: C.top - S.top + p.top,
5616
+ bottom: S.bottom - C.bottom + p.bottom,
5617
+ left: C.left - S.left + p.left,
5618
+ right: S.right - C.right + p.right
5623
5619
  }, M = e.modifiersData.offset;
5624
5620
  if (u === yn && M) {
5625
5621
  var P = M[a];
5626
- Object.keys(x).forEach(function(I) {
5627
- var F = [Ke, Ge].indexOf(I) >= 0 ? 1 : -1, L = [_e, Ge].indexOf(I) >= 0 ? "y" : "x";
5628
- x[I] += P[L] * F;
5622
+ Object.keys(A).forEach(function(I) {
5623
+ var L = [Ke, Ge].indexOf(I) >= 0 ? 1 : -1, $ = [_e, Ge].indexOf(I) >= 0 ? "y" : "x";
5624
+ A[I] += P[$] * L;
5629
5625
  });
5630
5626
  }
5631
- return x;
5627
+ return A;
5632
5628
  }
5633
5629
  function qp(e, t) {
5634
5630
  t === void 0 && (t = {});
@@ -5638,16 +5634,16 @@ function qp(e, t) {
5638
5634
  return d.indexOf(g) >= 0;
5639
5635
  });
5640
5636
  f.length === 0 && (f = c);
5641
- var h = f.reduce(function(g, v) {
5642
- return g[v] = In(e, {
5643
- placement: v,
5637
+ var h = f.reduce(function(g, p) {
5638
+ return g[p] = In(e, {
5639
+ placement: p,
5644
5640
  boundary: a,
5645
5641
  rootBoundary: o,
5646
5642
  padding: i
5647
- })[ct(v)], g;
5643
+ })[ct(p)], g;
5648
5644
  }, {});
5649
- return Object.keys(h).sort(function(g, v) {
5650
- return h[g] - h[v];
5645
+ return Object.keys(h).sort(function(g, p) {
5646
+ return h[g] - h[p];
5651
5647
  });
5652
5648
  }
5653
5649
  function zp(e) {
@@ -5659,36 +5655,36 @@ function zp(e) {
5659
5655
  function Up(e) {
5660
5656
  var t = e.state, n = e.options, r = e.name;
5661
5657
  if (!t.modifiersData[r]._skip) {
5662
- for (var a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !0 : i, s = n.fallbackPlacements, d = n.padding, u = n.boundary, c = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, g = h === void 0 ? !0 : h, v = n.allowedAutoPlacements, m = t.options.placement, b = ct(m), y = b === m, C = s || (y || !g ? [sr(m)] : zp(m)), p = [m].concat(C).reduce(function(me, ye) {
5658
+ for (var a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !0 : i, s = n.fallbackPlacements, d = n.padding, u = n.boundary, c = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, g = h === void 0 ? !0 : h, p = n.allowedAutoPlacements, m = t.options.placement, b = ct(m), y = b === m, C = s || (y || !g ? [sr(m)] : zp(m)), v = [m].concat(C).reduce(function(me, ye) {
5663
5659
  return me.concat(ct(ye) === Ea ? qp(t, {
5664
5660
  placement: ye,
5665
5661
  boundary: u,
5666
5662
  rootBoundary: c,
5667
5663
  padding: d,
5668
5664
  flipVariations: g,
5669
- allowedAutoPlacements: v
5665
+ allowedAutoPlacements: p
5670
5666
  }) : ye);
5671
- }, []), k = t.rects.reference, A = t.rects.popper, S = /* @__PURE__ */ new Map(), x = !0, M = p[0], P = 0; P < p.length; P++) {
5672
- var I = p[P], F = ct(I), L = fn(I) === sn, U = [_e, Ge].indexOf(F) >= 0, Y = U ? "width" : "height", G = In(t, {
5667
+ }, []), x = t.rects.reference, k = t.rects.popper, S = /* @__PURE__ */ new Map(), A = !0, M = v[0], P = 0; P < v.length; P++) {
5668
+ var I = v[P], L = ct(I), $ = fn(I) === sn, U = [_e, Ge].indexOf(L) >= 0, Y = U ? "width" : "height", G = In(t, {
5673
5669
  placement: I,
5674
5670
  boundary: u,
5675
5671
  rootBoundary: c,
5676
5672
  altBoundary: f,
5677
5673
  padding: d
5678
- }), ae = U ? L ? Ke : Ve : L ? Ge : _e;
5679
- k[Y] > A[Y] && (ae = sr(ae));
5674
+ }), ae = U ? $ ? Ke : Ve : $ ? Ge : _e;
5675
+ x[Y] > k[Y] && (ae = sr(ae));
5680
5676
  var re = sr(ae), ce = [];
5681
- if (o && ce.push(G[F] <= 0), l && ce.push(G[ae] <= 0, G[re] <= 0), ce.every(function(me) {
5677
+ if (o && ce.push(G[L] <= 0), l && ce.push(G[ae] <= 0, G[re] <= 0), ce.every(function(me) {
5682
5678
  return me;
5683
5679
  })) {
5684
- M = I, x = !1;
5680
+ M = I, A = !1;
5685
5681
  break;
5686
5682
  }
5687
5683
  S.set(I, ce);
5688
5684
  }
5689
- if (x)
5685
+ if (A)
5690
5686
  for (var ve = g ? 3 : 1, ee = function(ye) {
5691
- var Be = p.find(function(ot) {
5687
+ var Be = v.find(function(ot) {
5692
5688
  var Re = S.get(ot);
5693
5689
  if (Re)
5694
5690
  return Re.slice(0, ye).every(function(it) {
@@ -5797,36 +5793,36 @@ function tv(e) {
5797
5793
  return e === "x" ? "y" : "x";
5798
5794
  }
5799
5795
  function nv(e) {
5800
- var t = e.state, n = e.options, r = e.name, a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !1 : i, s = n.boundary, d = n.rootBoundary, u = n.altBoundary, c = n.padding, f = n.tether, h = f === void 0 ? !0 : f, g = n.tetherOffset, v = g === void 0 ? 0 : g, m = In(t, {
5796
+ var t = e.state, n = e.options, r = e.name, a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !1 : i, s = n.boundary, d = n.rootBoundary, u = n.altBoundary, c = n.padding, f = n.tether, h = f === void 0 ? !0 : f, g = n.tetherOffset, p = g === void 0 ? 0 : g, m = In(t, {
5801
5797
  boundary: s,
5802
5798
  rootBoundary: d,
5803
5799
  padding: c,
5804
5800
  altBoundary: u
5805
- }), b = ct(t.placement), y = fn(t.placement), C = !y, p = Ba(b), k = tv(p), A = t.modifiersData.popperOffsets, S = t.rects.reference, x = t.rects.popper, M = typeof v == "function" ? v(Object.assign({}, t.rects, {
5801
+ }), b = ct(t.placement), y = fn(t.placement), C = !y, v = Ba(b), x = tv(v), k = t.modifiersData.popperOffsets, S = t.rects.reference, A = t.rects.popper, M = typeof p == "function" ? p(Object.assign({}, t.rects, {
5806
5802
  placement: t.placement
5807
- })) : v, P = typeof M == "number" ? {
5803
+ })) : p, P = typeof M == "number" ? {
5808
5804
  mainAxis: M,
5809
5805
  altAxis: M
5810
5806
  } : Object.assign({
5811
5807
  mainAxis: 0,
5812
5808
  altAxis: 0
5813
- }, M), I = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, F = {
5809
+ }, M), I = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, L = {
5814
5810
  x: 0,
5815
5811
  y: 0
5816
5812
  };
5817
- if (A) {
5813
+ if (k) {
5818
5814
  if (o) {
5819
- var L, U = p === "y" ? _e : Ve, Y = p === "y" ? Ge : Ke, G = p === "y" ? "height" : "width", ae = A[p], re = ae + m[U], ce = ae - m[Y], ve = h ? -x[G] / 2 : 0, ee = y === sn ? S[G] : x[G], ie = y === sn ? -x[G] : -S[G], Ae = t.elements.arrow, me = h && Ae ? Ta(Ae) : {
5815
+ var $, U = v === "y" ? _e : Ve, Y = v === "y" ? Ge : Ke, G = v === "y" ? "height" : "width", ae = k[v], re = ae + m[U], ce = ae - m[Y], ve = h ? -A[G] / 2 : 0, ee = y === sn ? S[G] : A[G], ie = y === sn ? -A[G] : -S[G], Ae = t.elements.arrow, me = h && Ae ? Ta(Ae) : {
5820
5816
  width: 0,
5821
5817
  height: 0
5822
- }, ye = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Gi(), Be = ye[U], ot = ye[Y], Re = Cn(0, S[G], me[G]), it = C ? S[G] / 2 - ve - Re - Be - P.mainAxis : ee - Re - Be - P.mainAxis, Ze = C ? -S[G] / 2 + ve + Re + ot + P.mainAxis : ie + Re + ot + P.mainAxis, mt = t.elements.arrow && Hn(t.elements.arrow), Mt = mt ? p === "y" ? mt.clientTop || 0 : mt.clientLeft || 0 : 0, wt = (L = I?.[p]) != null ? L : 0, Kt = ae + it - wt - Mt, Jt = ae + Ze - wt, lt = Cn(h ? dr(re, Kt) : re, ae, h ? qt(ce, Jt) : ce);
5823
- A[p] = lt, F[p] = lt - ae;
5818
+ }, ye = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Gi(), Be = ye[U], ot = ye[Y], Re = Cn(0, S[G], me[G]), it = C ? S[G] / 2 - ve - Re - Be - P.mainAxis : ee - Re - Be - P.mainAxis, Ze = C ? -S[G] / 2 + ve + Re + ot + P.mainAxis : ie + Re + ot + P.mainAxis, mt = t.elements.arrow && Hn(t.elements.arrow), Mt = mt ? v === "y" ? mt.clientTop || 0 : mt.clientLeft || 0 : 0, wt = ($ = I?.[v]) != null ? $ : 0, Kt = ae + it - wt - Mt, Jt = ae + Ze - wt, lt = Cn(h ? dr(re, Kt) : re, ae, h ? qt(ce, Jt) : ce);
5819
+ k[v] = lt, L[v] = lt - ae;
5824
5820
  }
5825
5821
  if (l) {
5826
- var xt, $t = p === "x" ? _e : Ve, Rt = p === "x" ? Ge : Ke, ht = A[k], kt = k === "y" ? "height" : "width", vn = ht + m[$t], Lt = ht - m[Rt], mn = [_e, Ve].indexOf(b) !== -1, qn = (xt = I?.[k]) != null ? xt : 0, zn = mn ? vn : ht - S[kt] - x[kt] - qn + P.altAxis, Un = mn ? ht + S[kt] + x[kt] - qn - P.altAxis : Lt, Yn = h && mn ? Cp(zn, ht, Un) : Cn(h ? zn : vn, ht, h ? Un : Lt);
5827
- A[k] = Yn, F[k] = Yn - ht;
5822
+ var xt, $t = v === "x" ? _e : Ve, Rt = v === "x" ? Ge : Ke, ht = k[x], kt = x === "y" ? "height" : "width", vn = ht + m[$t], Lt = ht - m[Rt], mn = [_e, Ve].indexOf(b) !== -1, qn = (xt = I?.[x]) != null ? xt : 0, zn = mn ? vn : ht - S[kt] - A[kt] - qn + P.altAxis, Un = mn ? ht + S[kt] + A[kt] - qn - P.altAxis : Lt, Yn = h && mn ? Cp(zn, ht, Un) : Cn(h ? zn : vn, ht, h ? Un : Lt);
5823
+ k[x] = Yn, L[x] = Yn - ht;
5828
5824
  }
5829
- t.modifiersData[r] = F;
5825
+ t.modifiersData[r] = L;
5830
5826
  }
5831
5827
  }
5832
5828
  var rv = {
@@ -5947,13 +5943,13 @@ function fv(e) {
5947
5943
  state: u,
5948
5944
  setOptions: function(b) {
5949
5945
  var y = typeof b == "function" ? b(u.options) : b;
5950
- v(), u.options = Object.assign({}, o, u.options, y), u.scrollParents = {
5946
+ p(), u.options = Object.assign({}, o, u.options, y), u.scrollParents = {
5951
5947
  reference: un(l) ? En(l) : l.contextElement ? En(l.contextElement) : [],
5952
5948
  popper: En(s)
5953
5949
  };
5954
5950
  var C = uv(cv([].concat(r, u.options.modifiers)));
5955
- return u.orderedModifiers = C.filter(function(p) {
5956
- return p.enabled;
5951
+ return u.orderedModifiers = C.filter(function(v) {
5952
+ return v.enabled;
5957
5953
  }), g(), h.update();
5958
5954
  },
5959
5955
  // Sync update – it will always be executed, even if not necessary. This
@@ -5971,15 +5967,15 @@ function fv(e) {
5971
5967
  }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(P) {
5972
5968
  return u.modifiersData[P.name] = Object.assign({}, P.data);
5973
5969
  });
5974
- for (var p = 0; p < u.orderedModifiers.length; p++) {
5970
+ for (var v = 0; v < u.orderedModifiers.length; v++) {
5975
5971
  if (u.reset === !0) {
5976
- u.reset = !1, p = -1;
5972
+ u.reset = !1, v = -1;
5977
5973
  continue;
5978
5974
  }
5979
- var k = u.orderedModifiers[p], A = k.fn, S = k.options, x = S === void 0 ? {} : S, M = k.name;
5980
- typeof A == "function" && (u = A({
5975
+ var x = u.orderedModifiers[v], k = x.fn, S = x.options, A = S === void 0 ? {} : S, M = x.name;
5976
+ typeof k == "function" && (u = k({
5981
5977
  state: u,
5982
- options: x,
5978
+ options: A,
5983
5979
  name: M,
5984
5980
  instance: h
5985
5981
  }) || u);
@@ -5995,7 +5991,7 @@ function fv(e) {
5995
5991
  });
5996
5992
  }),
5997
5993
  destroy: function() {
5998
- v(), f = !0;
5994
+ p(), f = !0;
5999
5995
  }
6000
5996
  };
6001
5997
  if (!bo(l, s))
@@ -6005,20 +6001,20 @@ function fv(e) {
6005
6001
  });
6006
6002
  function g() {
6007
6003
  u.orderedModifiers.forEach(function(m) {
6008
- var b = m.name, y = m.options, C = y === void 0 ? {} : y, p = m.effect;
6009
- if (typeof p == "function") {
6010
- var k = p({
6004
+ var b = m.name, y = m.options, C = y === void 0 ? {} : y, v = m.effect;
6005
+ if (typeof v == "function") {
6006
+ var x = v({
6011
6007
  state: u,
6012
6008
  name: b,
6013
6009
  instance: h,
6014
6010
  options: C
6015
- }), A = function() {
6011
+ }), k = function() {
6016
6012
  };
6017
- c.push(k || A);
6013
+ c.push(x || k);
6018
6014
  }
6019
6015
  });
6020
6016
  }
6021
- function v() {
6017
+ function p() {
6022
6018
  c.forEach(function(m) {
6023
6019
  return m();
6024
6020
  }), c = [];
@@ -6129,8 +6125,8 @@ function xv(e, t) {
6129
6125
  var o = a.popperRect, i = a.popperState, l = a.props, s = l.interactiveBorder, d = ll(i.placement), u = i.modifiersData.offset;
6130
6126
  if (!u)
6131
6127
  return !0;
6132
- var c = d === "bottom" ? u.top.y : 0, f = d === "top" ? u.bottom.y : 0, h = d === "right" ? u.left.x : 0, g = d === "left" ? u.right.x : 0, v = o.top - r + c > s, m = r - o.bottom - f > s, b = o.left - n + h > s, y = n - o.right - g > s;
6133
- return v || m || b || y;
6128
+ var c = d === "bottom" ? u.top.y : 0, f = d === "top" ? u.bottom.y : 0, h = d === "right" ? u.left.x : 0, g = d === "left" ? u.right.x : 0, p = o.top - r + c > s, m = r - o.bottom - f > s, b = o.left - n + h > s, y = n - o.right - g > s;
6129
+ return p || m || b || y;
6134
6130
  });
6135
6131
  }
6136
6132
  function _r(e, t, n) {
@@ -6324,7 +6320,7 @@ function cl(e) {
6324
6320
  cl.$$tippy = !0;
6325
6321
  var $v = 1, nr = [], Vr = [];
6326
6322
  function Rv(e, t) {
6327
- var n = So(e, Object.assign({}, et, dl(wo(t)))), r, a, o, i = !1, l = !1, s = !1, d = !1, u, c, f, h = [], g = yo(Kt, n.interactiveDebounce), v, m = $v++, b = null, y = bv(n.plugins), C = {
6323
+ var n = So(e, Object.assign({}, et, dl(wo(t)))), r, a, o, i = !1, l = !1, s = !1, d = !1, u, c, f, h = [], g = yo(Kt, n.interactiveDebounce), p, m = $v++, b = null, y = bv(n.plugins), C = {
6328
6324
  // Is the instance currently enabled?
6329
6325
  isEnabled: !0,
6330
6326
  // Is the tippy currently showing and not transitioning out?
@@ -6335,7 +6331,7 @@ function Rv(e, t) {
6335
6331
  isMounted: !1,
6336
6332
  // Has the tippy finished transitioning in?
6337
6333
  isShown: !1
6338
- }, p = {
6334
+ }, v = {
6339
6335
  // properties
6340
6336
  id: m,
6341
6337
  reference: e,
@@ -6357,59 +6353,59 @@ function Rv(e, t) {
6357
6353
  destroy: Il
6358
6354
  };
6359
6355
  if (!n.render)
6360
- return p;
6361
- var k = n.render(p), A = k.popper, S = k.onUpdate;
6362
- A.setAttribute("data-tippy-root", ""), A.id = "tippy-" + p.id, p.popper = A, e._tippy = p, A._tippy = p;
6363
- var x = y.map(function(D) {
6364
- return D.fn(p);
6356
+ return v;
6357
+ var x = n.render(v), k = x.popper, S = x.onUpdate;
6358
+ k.setAttribute("data-tippy-root", ""), k.id = "tippy-" + v.id, v.popper = k, e._tippy = v, k._tippy = v;
6359
+ var A = y.map(function(D) {
6360
+ return D.fn(v);
6365
6361
  }), M = e.hasAttribute("aria-expanded");
6366
- return mt(), ve(), ae(), re("onCreate", [p]), n.showOnCreate && vn(), A.addEventListener("mouseenter", function() {
6367
- p.props.interactive && p.state.isVisible && p.clearDelayTimeouts();
6368
- }), A.addEventListener("mouseleave", function() {
6369
- p.props.interactive && p.props.trigger.indexOf("mouseenter") >= 0 && U().addEventListener("mousemove", g);
6370
- }), p;
6362
+ return mt(), ve(), ae(), re("onCreate", [v]), n.showOnCreate && vn(), k.addEventListener("mouseenter", function() {
6363
+ v.props.interactive && v.state.isVisible && v.clearDelayTimeouts();
6364
+ }), k.addEventListener("mouseleave", function() {
6365
+ v.props.interactive && v.props.trigger.indexOf("mouseenter") >= 0 && U().addEventListener("mousemove", g);
6366
+ }), v;
6371
6367
  function P() {
6372
- var D = p.props.touch;
6368
+ var D = v.props.touch;
6373
6369
  return Array.isArray(D) ? D : [D, 0];
6374
6370
  }
6375
6371
  function I() {
6376
6372
  return P()[0] === "hold";
6377
6373
  }
6378
- function F() {
6374
+ function L() {
6379
6375
  var D;
6380
- return !!((D = p.props.render) != null && D.$$tippy);
6376
+ return !!((D = v.props.render) != null && D.$$tippy);
6381
6377
  }
6382
- function L() {
6383
- return v || e;
6378
+ function $() {
6379
+ return p || e;
6384
6380
  }
6385
6381
  function U() {
6386
- var D = L().parentNode;
6382
+ var D = $().parentNode;
6387
6383
  return D ? sl(D) : document;
6388
6384
  }
6389
6385
  function Y() {
6390
- return cr(A);
6386
+ return cr(k);
6391
6387
  }
6392
6388
  function G(D) {
6393
- return p.state.isMounted && !p.state.isVisible || st.isTouch || u && u.type === "focus" ? 0 : Lr(p.props.delay, D ? 0 : 1, et.delay);
6389
+ return v.state.isMounted && !v.state.isVisible || st.isTouch || u && u.type === "focus" ? 0 : Lr(v.props.delay, D ? 0 : 1, et.delay);
6394
6390
  }
6395
6391
  function ae(D) {
6396
- D === void 0 && (D = !1), A.style.pointerEvents = p.props.interactive && !D ? "" : "none", A.style.zIndex = "" + p.props.zIndex;
6392
+ D === void 0 && (D = !1), k.style.pointerEvents = v.props.interactive && !D ? "" : "none", k.style.zIndex = "" + v.props.zIndex;
6397
6393
  }
6398
6394
  function re(D, j, J) {
6399
- if (J === void 0 && (J = !0), x.forEach(function(se) {
6395
+ if (J === void 0 && (J = !0), A.forEach(function(se) {
6400
6396
  se[D] && se[D].apply(se, j);
6401
6397
  }), J) {
6402
6398
  var he;
6403
- (he = p.props)[D].apply(he, j);
6399
+ (he = v.props)[D].apply(he, j);
6404
6400
  }
6405
6401
  }
6406
6402
  function ce() {
6407
- var D = p.props.aria;
6403
+ var D = v.props.aria;
6408
6404
  if (D.content) {
6409
- var j = "aria-" + D.content, J = A.id, he = jt(p.props.triggerTarget || e);
6405
+ var j = "aria-" + D.content, J = k.id, he = jt(v.props.triggerTarget || e);
6410
6406
  he.forEach(function(se) {
6411
6407
  var Fe = se.getAttribute(j);
6412
- if (p.state.isVisible)
6408
+ if (v.state.isVisible)
6413
6409
  se.setAttribute(j, Fe ? Fe + " " + J : J);
6414
6410
  else {
6415
6411
  var We = Fe && Fe.replace(J, "").trim();
@@ -6419,10 +6415,10 @@ function Rv(e, t) {
6419
6415
  }
6420
6416
  }
6421
6417
  function ve() {
6422
- if (!(M || !p.props.aria.expanded)) {
6423
- var D = jt(p.props.triggerTarget || e);
6418
+ if (!(M || !v.props.aria.expanded)) {
6419
+ var D = jt(v.props.triggerTarget || e);
6424
6420
  D.forEach(function(j) {
6425
- p.props.interactive ? j.setAttribute("aria-expanded", p.state.isVisible && j === L() ? "true" : "false") : j.removeAttribute("aria-expanded");
6421
+ v.props.interactive ? j.setAttribute("aria-expanded", v.state.isVisible && j === $() ? "true" : "false") : j.removeAttribute("aria-expanded");
6426
6422
  });
6427
6423
  }
6428
6424
  }
@@ -6434,17 +6430,17 @@ function Rv(e, t) {
6434
6430
  function ie(D) {
6435
6431
  if (!(st.isTouch && (s || D.type === "mousedown"))) {
6436
6432
  var j = D.composedPath && D.composedPath()[0] || D.target;
6437
- if (!(p.props.interactive && xo(A, j))) {
6438
- if (jt(p.props.triggerTarget || e).some(function(J) {
6433
+ if (!(v.props.interactive && xo(k, j))) {
6434
+ if (jt(v.props.triggerTarget || e).some(function(J) {
6439
6435
  return xo(J, j);
6440
6436
  })) {
6441
- if (st.isTouch || p.state.isVisible && p.props.trigger.indexOf("click") >= 0)
6437
+ if (st.isTouch || v.state.isVisible && v.props.trigger.indexOf("click") >= 0)
6442
6438
  return;
6443
6439
  } else
6444
- re("onClickOutside", [p, D]);
6445
- p.props.hideOnClick === !0 && (p.clearDelayTimeouts(), p.hide(), l = !0, setTimeout(function() {
6440
+ re("onClickOutside", [v, D]);
6441
+ v.props.hideOnClick === !0 && (v.clearDelayTimeouts(), v.hide(), l = !0, setTimeout(function() {
6446
6442
  l = !1;
6447
- }), p.state.isMounted || Be());
6443
+ }), v.state.isMounted || Be());
6448
6444
  }
6449
6445
  }
6450
6446
  }
@@ -6464,7 +6460,7 @@ function Rv(e, t) {
6464
6460
  }
6465
6461
  function ot(D, j) {
6466
6462
  it(D, function() {
6467
- !p.state.isVisible && A.parentNode && A.parentNode.contains(A) && j();
6463
+ !v.state.isVisible && k.parentNode && k.parentNode.contains(k) && j();
6468
6464
  });
6469
6465
  }
6470
6466
  function Re(D, j) {
@@ -6481,7 +6477,7 @@ function Rv(e, t) {
6481
6477
  }
6482
6478
  function Ze(D, j, J) {
6483
6479
  J === void 0 && (J = !1);
6484
- var he = jt(p.props.triggerTarget || e);
6480
+ var he = jt(v.props.triggerTarget || e);
6485
6481
  he.forEach(function(se) {
6486
6482
  se.addEventListener(D, j, J), h.push({
6487
6483
  node: se,
@@ -6496,7 +6492,7 @@ function Rv(e, t) {
6496
6492
  passive: !0
6497
6493
  }), Ze("touchend", Jt, {
6498
6494
  passive: !0
6499
- })), gv(p.props.trigger).forEach(function(D) {
6495
+ })), gv(v.props.trigger).forEach(function(D) {
6500
6496
  if (D !== "manual")
6501
6497
  switch (Ze(D, wt), D) {
6502
6498
  case "mouseenter":
@@ -6519,17 +6515,17 @@ function Rv(e, t) {
6519
6515
  }
6520
6516
  function wt(D) {
6521
6517
  var j, J = !1;
6522
- if (!(!p.state.isEnabled || xt(D) || l)) {
6518
+ if (!(!v.state.isEnabled || xt(D) || l)) {
6523
6519
  var he = ((j = u) == null ? void 0 : j.type) === "focus";
6524
- u = D, v = D.currentTarget, ve(), !p.state.isVisible && $a(D) && nr.forEach(function(se) {
6520
+ u = D, p = D.currentTarget, ve(), !v.state.isVisible && $a(D) && nr.forEach(function(se) {
6525
6521
  return se(D);
6526
- }), D.type === "click" && (p.props.trigger.indexOf("mouseenter") < 0 || i) && p.props.hideOnClick !== !1 && p.state.isVisible ? J = !0 : vn(D), D.type === "click" && (i = !J), J && !he && Lt(D);
6522
+ }), D.type === "click" && (v.props.trigger.indexOf("mouseenter") < 0 || i) && v.props.hideOnClick !== !1 && v.state.isVisible ? J = !0 : vn(D), D.type === "click" && (i = !J), J && !he && Lt(D);
6527
6523
  }
6528
6524
  }
6529
6525
  function Kt(D) {
6530
- var j = D.target, J = L().contains(j) || A.contains(j);
6526
+ var j = D.target, J = $().contains(j) || k.contains(j);
6531
6527
  if (!(D.type === "mousemove" && J)) {
6532
- var he = kt().concat(A).map(function(se) {
6528
+ var he = kt().concat(k).map(function(se) {
6533
6529
  var Fe, We = se._tippy, Zt = (Fe = We.popperInstance) == null ? void 0 : Fe.state;
6534
6530
  return Zt ? {
6535
6531
  popperRect: se.getBoundingClientRect(),
@@ -6541,26 +6537,26 @@ function Rv(e, t) {
6541
6537
  }
6542
6538
  }
6543
6539
  function Jt(D) {
6544
- var j = xt(D) || p.props.trigger.indexOf("click") >= 0 && i;
6540
+ var j = xt(D) || v.props.trigger.indexOf("click") >= 0 && i;
6545
6541
  if (!j) {
6546
- if (p.props.interactive) {
6547
- p.hideWithInteractivity(D);
6542
+ if (v.props.interactive) {
6543
+ v.hideWithInteractivity(D);
6548
6544
  return;
6549
6545
  }
6550
6546
  Lt(D);
6551
6547
  }
6552
6548
  }
6553
6549
  function lt(D) {
6554
- p.props.trigger.indexOf("focusin") < 0 && D.target !== L() || p.props.interactive && D.relatedTarget && A.contains(D.relatedTarget) || Lt(D);
6550
+ v.props.trigger.indexOf("focusin") < 0 && D.target !== $() || v.props.interactive && D.relatedTarget && k.contains(D.relatedTarget) || Lt(D);
6555
6551
  }
6556
6552
  function xt(D) {
6557
6553
  return st.isTouch ? I() !== D.type.indexOf("touch") >= 0 : !1;
6558
6554
  }
6559
6555
  function $t() {
6560
6556
  Rt();
6561
- var D = p.props, j = D.popperOptions, J = D.placement, he = D.offset, se = D.getReferenceClientRect, Fe = D.moveTransition, We = F() ? cr(A).arrow : null, Zt = se ? {
6557
+ var D = v.props, j = D.popperOptions, J = D.placement, he = D.offset, se = D.getReferenceClientRect, Fe = D.moveTransition, We = L() ? cr(k).arrow : null, Zt = se ? {
6562
6558
  getBoundingClientRect: se,
6563
- contextElement: se.contextElement || L()
6559
+ contextElement: se.contextElement || $()
6564
6560
  } : e, La = {
6565
6561
  name: "$$tippy",
6566
6562
  enabled: !0,
@@ -6568,7 +6564,7 @@ function Rv(e, t) {
6568
6564
  requires: ["computeStyles"],
6569
6565
  fn: function(Xn) {
6570
6566
  var en = Xn.state;
6571
- if (F()) {
6567
+ if (L()) {
6572
6568
  var Ml = Y(), Sr = Ml.box;
6573
6569
  ["placement", "reference-hidden", "escaped"].forEach(function(Qn) {
6574
6570
  Qn === "placement" ? Sr.setAttribute("data-placement", en.placement) : en.attributes.popper["data-popper-" + Qn] ? Sr.setAttribute("data-" + Qn, "") : Sr.removeAttribute("data-" + Qn);
@@ -6601,119 +6597,119 @@ function Rv(e, t) {
6601
6597
  adaptive: !Fe
6602
6598
  }
6603
6599
  }, La];
6604
- F() && We && Ft.push({
6600
+ L() && We && Ft.push({
6605
6601
  name: "arrow",
6606
6602
  options: {
6607
6603
  element: We,
6608
6604
  padding: 3
6609
6605
  }
6610
- }), Ft.push.apply(Ft, j?.modifiers || []), p.popperInstance = vv(Zt, A, Object.assign({}, j, {
6606
+ }), Ft.push.apply(Ft, j?.modifiers || []), v.popperInstance = vv(Zt, k, Object.assign({}, j, {
6611
6607
  placement: J,
6612
6608
  onFirstUpdate: f,
6613
6609
  modifiers: Ft
6614
6610
  }));
6615
6611
  }
6616
6612
  function Rt() {
6617
- p.popperInstance && (p.popperInstance.destroy(), p.popperInstance = null);
6613
+ v.popperInstance && (v.popperInstance.destroy(), v.popperInstance = null);
6618
6614
  }
6619
6615
  function ht() {
6620
- var D = p.props.appendTo, j, J = L();
6621
- p.props.interactive && D === ol || D === "parent" ? j = J.parentNode : j = il(D, [J]), j.contains(A) || j.appendChild(A), p.state.isMounted = !0, $t();
6616
+ var D = v.props.appendTo, j, J = $();
6617
+ v.props.interactive && D === ol || D === "parent" ? j = J.parentNode : j = il(D, [J]), j.contains(k) || j.appendChild(k), v.state.isMounted = !0, $t();
6622
6618
  }
6623
6619
  function kt() {
6624
- return pn(A.querySelectorAll("[data-tippy-root]"));
6620
+ return pn(k.querySelectorAll("[data-tippy-root]"));
6625
6621
  }
6626
6622
  function vn(D) {
6627
- p.clearDelayTimeouts(), D && re("onTrigger", [p, D]), ye();
6623
+ v.clearDelayTimeouts(), D && re("onTrigger", [v, D]), ye();
6628
6624
  var j = G(!0), J = P(), he = J[0], se = J[1];
6629
6625
  st.isTouch && he === "hold" && se && (j = se), j ? r = setTimeout(function() {
6630
- p.show();
6631
- }, j) : p.show();
6626
+ v.show();
6627
+ }, j) : v.show();
6632
6628
  }
6633
6629
  function Lt(D) {
6634
- if (p.clearDelayTimeouts(), re("onUntrigger", [p, D]), !p.state.isVisible) {
6630
+ if (v.clearDelayTimeouts(), re("onUntrigger", [v, D]), !v.state.isVisible) {
6635
6631
  Be();
6636
6632
  return;
6637
6633
  }
6638
- if (!(p.props.trigger.indexOf("mouseenter") >= 0 && p.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(D.type) >= 0 && i)) {
6634
+ if (!(v.props.trigger.indexOf("mouseenter") >= 0 && v.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(D.type) >= 0 && i)) {
6639
6635
  var j = G(!1);
6640
6636
  j ? a = setTimeout(function() {
6641
- p.state.isVisible && p.hide();
6637
+ v.state.isVisible && v.hide();
6642
6638
  }, j) : o = requestAnimationFrame(function() {
6643
- p.hide();
6639
+ v.hide();
6644
6640
  });
6645
6641
  }
6646
6642
  }
6647
6643
  function mn() {
6648
- p.state.isEnabled = !0;
6644
+ v.state.isEnabled = !0;
6649
6645
  }
6650
6646
  function qn() {
6651
- p.hide(), p.state.isEnabled = !1;
6647
+ v.hide(), v.state.isEnabled = !1;
6652
6648
  }
6653
6649
  function zn() {
6654
6650
  clearTimeout(r), clearTimeout(a), cancelAnimationFrame(o);
6655
6651
  }
6656
6652
  function Un(D) {
6657
- if (!p.state.isDestroyed) {
6658
- re("onBeforeUpdate", [p, D]), Mt();
6659
- var j = p.props, J = So(e, Object.assign({}, j, wo(D), {
6653
+ if (!v.state.isDestroyed) {
6654
+ re("onBeforeUpdate", [v, D]), Mt();
6655
+ var j = v.props, J = So(e, Object.assign({}, j, wo(D), {
6660
6656
  ignoreAttributes: !0
6661
6657
  }));
6662
- p.props = J, mt(), j.interactiveDebounce !== J.interactiveDebounce && (ee(), g = yo(Kt, J.interactiveDebounce)), j.triggerTarget && !J.triggerTarget ? jt(j.triggerTarget).forEach(function(he) {
6658
+ v.props = J, mt(), j.interactiveDebounce !== J.interactiveDebounce && (ee(), g = yo(Kt, J.interactiveDebounce)), j.triggerTarget && !J.triggerTarget ? jt(j.triggerTarget).forEach(function(he) {
6663
6659
  he.removeAttribute("aria-expanded");
6664
- }) : J.triggerTarget && e.removeAttribute("aria-expanded"), ve(), ae(), S && S(j, J), p.popperInstance && ($t(), kt().forEach(function(he) {
6660
+ }) : J.triggerTarget && e.removeAttribute("aria-expanded"), ve(), ae(), S && S(j, J), v.popperInstance && ($t(), kt().forEach(function(he) {
6665
6661
  requestAnimationFrame(he._tippy.popperInstance.forceUpdate);
6666
- })), re("onAfterUpdate", [p, D]);
6662
+ })), re("onAfterUpdate", [v, D]);
6667
6663
  }
6668
6664
  }
6669
6665
  function Yn(D) {
6670
- p.setProps({
6666
+ v.setProps({
6671
6667
  content: D
6672
6668
  });
6673
6669
  }
6674
6670
  function Tl() {
6675
- var D = p.state.isVisible, j = p.state.isDestroyed, J = !p.state.isEnabled, he = st.isTouch && !p.props.touch, se = Lr(p.props.duration, 0, et.duration);
6676
- if (!(D || j || J || he) && !L().hasAttribute("disabled") && (re("onShow", [p], !1), p.props.onShow(p) !== !1)) {
6677
- if (p.state.isVisible = !0, F() && (A.style.visibility = "visible"), ae(), ye(), p.state.isMounted || (A.style.transition = "none"), F()) {
6671
+ var D = v.state.isVisible, j = v.state.isDestroyed, J = !v.state.isEnabled, he = st.isTouch && !v.props.touch, se = Lr(v.props.duration, 0, et.duration);
6672
+ if (!(D || j || J || he) && !$().hasAttribute("disabled") && (re("onShow", [v], !1), v.props.onShow(v) !== !1)) {
6673
+ if (v.state.isVisible = !0, L() && (k.style.visibility = "visible"), ae(), ye(), v.state.isMounted || (k.style.transition = "none"), L()) {
6678
6674
  var Fe = Y(), We = Fe.box, Zt = Fe.content;
6679
6675
  Fr([We, Zt], 0);
6680
6676
  }
6681
6677
  f = function() {
6682
6678
  var Ft;
6683
- if (!(!p.state.isVisible || d)) {
6684
- if (d = !0, A.offsetHeight, A.style.transition = p.props.moveTransition, F() && p.props.animation) {
6679
+ if (!(!v.state.isVisible || d)) {
6680
+ if (d = !0, k.offsetHeight, k.style.transition = v.props.moveTransition, L() && v.props.animation) {
6685
6681
  var kr = Y(), Xn = kr.box, en = kr.content;
6686
6682
  Fr([Xn, en], se), Mn([Xn, en], "visible");
6687
6683
  }
6688
- ce(), ve(), Ao(Vr, p), (Ft = p.popperInstance) == null || Ft.forceUpdate(), re("onMount", [p]), p.props.animation && F() && Re(se, function() {
6689
- p.state.isShown = !0, re("onShown", [p]);
6684
+ ce(), ve(), Ao(Vr, v), (Ft = v.popperInstance) == null || Ft.forceUpdate(), re("onMount", [v]), v.props.animation && L() && Re(se, function() {
6685
+ v.state.isShown = !0, re("onShown", [v]);
6690
6686
  });
6691
6687
  }
6692
6688
  }, ht();
6693
6689
  }
6694
6690
  }
6695
6691
  function Bl() {
6696
- var D = !p.state.isVisible, j = p.state.isDestroyed, J = !p.state.isEnabled, he = Lr(p.props.duration, 1, et.duration);
6697
- if (!(D || j || J) && (re("onHide", [p], !1), p.props.onHide(p) !== !1)) {
6698
- if (p.state.isVisible = !1, p.state.isShown = !1, d = !1, i = !1, F() && (A.style.visibility = "hidden"), ee(), Be(), ae(!0), F()) {
6692
+ var D = !v.state.isVisible, j = v.state.isDestroyed, J = !v.state.isEnabled, he = Lr(v.props.duration, 1, et.duration);
6693
+ if (!(D || j || J) && (re("onHide", [v], !1), v.props.onHide(v) !== !1)) {
6694
+ if (v.state.isVisible = !1, v.state.isShown = !1, d = !1, i = !1, L() && (k.style.visibility = "hidden"), ee(), Be(), ae(!0), L()) {
6699
6695
  var se = Y(), Fe = se.box, We = se.content;
6700
- p.props.animation && (Fr([Fe, We], he), Mn([Fe, We], "hidden"));
6696
+ v.props.animation && (Fr([Fe, We], he), Mn([Fe, We], "hidden"));
6701
6697
  }
6702
- ce(), ve(), p.props.animation ? F() && ot(he, p.unmount) : p.unmount();
6698
+ ce(), ve(), v.props.animation ? L() && ot(he, v.unmount) : v.unmount();
6703
6699
  }
6704
6700
  }
6705
6701
  function Pl(D) {
6706
6702
  U().addEventListener("mousemove", g), Ao(nr, g), g(D);
6707
6703
  }
6708
6704
  function Dl() {
6709
- p.state.isVisible && p.hide(), p.state.isMounted && (Rt(), kt().forEach(function(D) {
6705
+ v.state.isVisible && v.hide(), v.state.isMounted && (Rt(), kt().forEach(function(D) {
6710
6706
  D._tippy.unmount();
6711
- }), A.parentNode && A.parentNode.removeChild(A), Vr = Vr.filter(function(D) {
6712
- return D !== p;
6713
- }), p.state.isMounted = !1, re("onHidden", [p]));
6707
+ }), k.parentNode && k.parentNode.removeChild(k), Vr = Vr.filter(function(D) {
6708
+ return D !== v;
6709
+ }), v.state.isMounted = !1, re("onHidden", [v]));
6714
6710
  }
6715
6711
  function Il() {
6716
- p.state.isDestroyed || (p.clearDelayTimeouts(), p.unmount(), Mt(), delete e._tippy, p.state.isDestroyed = !0, re("onDestroy", [p]));
6712
+ v.state.isDestroyed || (v.clearDelayTimeouts(), v.unmount(), Mt(), delete e._tippy, v.state.isDestroyed = !0, re("onDestroy", [v]));
6717
6713
  }
6718
6714
  }
6719
6715
  function W(e, t) {
@@ -6752,43 +6748,43 @@ var Lv = Object.assign({}, Xi, {
6752
6748
  n === void 0 && (n = {});
6753
6749
  var a = t, o = [], i = [], l, s = n.overrides, d = [], u = !1;
6754
6750
  function c() {
6755
- i = a.map(function(p) {
6756
- return jt(p.props.triggerTarget || p.reference);
6757
- }).reduce(function(p, k) {
6758
- return p.concat(k);
6751
+ i = a.map(function(v) {
6752
+ return jt(v.props.triggerTarget || v.reference);
6753
+ }).reduce(function(v, x) {
6754
+ return v.concat(x);
6759
6755
  }, []);
6760
6756
  }
6761
6757
  function f() {
6762
- o = a.map(function(p) {
6763
- return p.reference;
6758
+ o = a.map(function(v) {
6759
+ return v.reference;
6764
6760
  });
6765
6761
  }
6766
- function h(p) {
6767
- a.forEach(function(k) {
6768
- p ? k.enable() : k.disable();
6762
+ function h(v) {
6763
+ a.forEach(function(x) {
6764
+ v ? x.enable() : x.disable();
6769
6765
  });
6770
6766
  }
6771
- function g(p) {
6772
- return a.map(function(k) {
6773
- var A = k.setProps;
6774
- return k.setProps = function(S) {
6775
- A(S), k.reference === l && p.setProps(S);
6767
+ function g(v) {
6768
+ return a.map(function(x) {
6769
+ var k = x.setProps;
6770
+ return x.setProps = function(S) {
6771
+ k(S), x.reference === l && v.setProps(S);
6776
6772
  }, function() {
6777
- k.setProps = A;
6773
+ x.setProps = k;
6778
6774
  };
6779
6775
  });
6780
6776
  }
6781
- function v(p, k) {
6782
- var A = i.indexOf(k);
6783
- if (k !== l) {
6784
- l = k;
6785
- var S = (s || []).concat("content").reduce(function(x, M) {
6786
- return x[M] = a[A].props[M], x;
6777
+ function p(v, x) {
6778
+ var k = i.indexOf(x);
6779
+ if (x !== l) {
6780
+ l = x;
6781
+ var S = (s || []).concat("content").reduce(function(A, M) {
6782
+ return A[M] = a[k].props[M], A;
6787
6783
  }, {});
6788
- p.setProps(Object.assign({}, S, {
6784
+ v.setProps(Object.assign({}, S, {
6789
6785
  getReferenceClientRect: typeof S.getReferenceClientRect == "function" ? S.getReferenceClientRect : function() {
6790
- var x;
6791
- return (x = o[A]) == null ? void 0 : x.getBoundingClientRect();
6786
+ var A;
6787
+ return (A = o[k]) == null ? void 0 : A.getBoundingClientRect();
6792
6788
  }
6793
6789
  }));
6794
6790
  }
@@ -6803,14 +6799,14 @@ var Lv = Object.assign({}, Xi, {
6803
6799
  onHidden: function() {
6804
6800
  l = null;
6805
6801
  },
6806
- onClickOutside: function(A) {
6807
- A.props.showOnCreate && !u && (u = !0, l = null);
6802
+ onClickOutside: function(k) {
6803
+ k.props.showOnCreate && !u && (u = !0, l = null);
6808
6804
  },
6809
- onShow: function(A) {
6810
- A.props.showOnCreate && !u && (u = !0, v(A, o[0]));
6805
+ onShow: function(k) {
6806
+ k.props.showOnCreate && !u && (u = !0, p(k, o[0]));
6811
6807
  },
6812
- onTrigger: function(A, S) {
6813
- v(A, S.currentTarget);
6808
+ onTrigger: function(k, S) {
6809
+ p(k, S.currentTarget);
6814
6810
  }
6815
6811
  };
6816
6812
  }
@@ -6821,39 +6817,39 @@ var Lv = Object.assign({}, Xi, {
6821
6817
  modifiers: [].concat(((r = n.popperOptions) == null ? void 0 : r.modifiers) || [], [Lv])
6822
6818
  })
6823
6819
  })), y = b.show;
6824
- b.show = function(p) {
6825
- if (y(), !l && p == null)
6826
- return v(b, o[0]);
6827
- if (!(l && p == null)) {
6828
- if (typeof p == "number")
6829
- return o[p] && v(b, o[p]);
6830
- if (a.indexOf(p) >= 0) {
6831
- var k = p.reference;
6832
- return v(b, k);
6820
+ b.show = function(v) {
6821
+ if (y(), !l && v == null)
6822
+ return p(b, o[0]);
6823
+ if (!(l && v == null)) {
6824
+ if (typeof v == "number")
6825
+ return o[v] && p(b, o[v]);
6826
+ if (a.indexOf(v) >= 0) {
6827
+ var x = v.reference;
6828
+ return p(b, x);
6833
6829
  }
6834
- if (o.indexOf(p) >= 0)
6835
- return v(b, p);
6830
+ if (o.indexOf(v) >= 0)
6831
+ return p(b, v);
6836
6832
  }
6837
6833
  }, b.showNext = function() {
6838
- var p = o[0];
6834
+ var v = o[0];
6839
6835
  if (!l)
6840
6836
  return b.show(0);
6841
- var k = o.indexOf(l);
6842
- b.show(o[k + 1] || p);
6837
+ var x = o.indexOf(l);
6838
+ b.show(o[x + 1] || v);
6843
6839
  }, b.showPrevious = function() {
6844
- var p = o[o.length - 1];
6840
+ var v = o[o.length - 1];
6845
6841
  if (!l)
6846
- return b.show(p);
6847
- var k = o.indexOf(l), A = o[k - 1] || p;
6848
- b.show(A);
6842
+ return b.show(v);
6843
+ var x = o.indexOf(l), k = o[x - 1] || v;
6844
+ b.show(k);
6849
6845
  };
6850
6846
  var C = b.setProps;
6851
- return b.setProps = function(p) {
6852
- s = p.overrides || s, C(p);
6853
- }, b.setInstances = function(p) {
6854
- h(!0), d.forEach(function(k) {
6855
- return k();
6856
- }), a = p, h(!1), f(), c(), d = g(b), b.setProps({
6847
+ return b.setProps = function(v) {
6848
+ s = v.overrides || s, C(v);
6849
+ }, b.setInstances = function(v) {
6850
+ h(!0), d.forEach(function(x) {
6851
+ return x();
6852
+ }), a = v, h(!1), f(), c(), d = g(b), b.setProps({
6857
6853
  triggerTarget: i
6858
6854
  });
6859
6855
  }, d = g(b), b;
@@ -6927,20 +6923,20 @@ var Wv = {
6927
6923
  getReferenceClientRect: null
6928
6924
  }), a = !1;
6929
6925
  }
6930
- function f(v) {
6931
- var m = v.target ? n.contains(v.target) : !0, b = t.props.followCursor, y = v.clientX, C = v.clientY, p = n.getBoundingClientRect(), k = y - p.left, A = C - p.top;
6926
+ function f(p) {
6927
+ var m = p.target ? n.contains(p.target) : !0, b = t.props.followCursor, y = p.clientX, C = p.clientY, v = n.getBoundingClientRect(), x = y - v.left, k = C - v.top;
6932
6928
  (m || !t.props.interactive) && t.setProps({
6933
6929
  // @ts-ignore - unneeded DOMRect properties
6934
6930
  getReferenceClientRect: function() {
6935
- var x = n.getBoundingClientRect(), M = y, P = C;
6936
- b === "initial" && (M = x.left + k, P = x.top + A);
6937
- var I = b === "horizontal" ? x.top : P, F = b === "vertical" ? x.right : M, L = b === "horizontal" ? x.bottom : P, U = b === "vertical" ? x.left : M;
6931
+ var A = n.getBoundingClientRect(), M = y, P = C;
6932
+ b === "initial" && (M = A.left + x, P = A.top + k);
6933
+ var I = b === "horizontal" ? A.top : P, L = b === "vertical" ? A.right : M, $ = b === "horizontal" ? A.bottom : P, U = b === "vertical" ? A.left : M;
6938
6934
  return {
6939
- width: F - U,
6940
- height: L - I,
6935
+ width: L - U,
6936
+ height: $ - I,
6941
6937
  top: I,
6942
- right: F,
6943
- bottom: L,
6938
+ right: L,
6939
+ bottom: $,
6944
6940
  left: U
6945
6941
  };
6946
6942
  }
@@ -6953,10 +6949,10 @@ var Wv = {
6953
6949
  }), Nv(r));
6954
6950
  }
6955
6951
  function g() {
6956
- rr = rr.filter(function(v) {
6957
- return v.instance !== t;
6958
- }), rr.filter(function(v) {
6959
- return v.doc === r;
6952
+ rr = rr.filter(function(p) {
6953
+ return p.instance !== t;
6954
+ }), rr.filter(function(p) {
6955
+ return p.doc === r;
6960
6956
  }).length === 0 && jv(r);
6961
6957
  }
6962
6958
  return {
@@ -7031,9 +7027,9 @@ var qv = {
7031
7027
  onAfterUpdate: c,
7032
7028
  onTrigger: function(h, g) {
7033
7029
  if ($a(g)) {
7034
- var v = pn(t.reference.getClientRects()), m = v.find(function(y) {
7030
+ var p = pn(t.reference.getClientRects()), m = p.find(function(y) {
7035
7031
  return y.left - 2 <= g.clientX && y.right + 2 >= g.clientX && y.top - 2 <= g.clientY && y.bottom + 2 >= g.clientY;
7036
- }), b = v.indexOf(m);
7032
+ }), b = p.indexOf(m);
7037
7033
  o = b > -1 ? b : o;
7038
7034
  }
7039
7035
  },
@@ -7063,20 +7059,20 @@ function zv(e, t, n, r) {
7063
7059
  }
7064
7060
  case "left":
7065
7061
  case "right": {
7066
- var h = Math.min.apply(Math, n.map(function(A) {
7067
- return A.left;
7068
- })), g = Math.max.apply(Math, n.map(function(A) {
7069
- return A.right;
7070
- })), v = n.filter(function(A) {
7071
- return e === "left" ? A.left === h : A.right === g;
7072
- }), m = v[0].top, b = v[v.length - 1].bottom, y = h, C = g, p = C - y, k = b - m;
7062
+ var h = Math.min.apply(Math, n.map(function(k) {
7063
+ return k.left;
7064
+ })), g = Math.max.apply(Math, n.map(function(k) {
7065
+ return k.right;
7066
+ })), p = n.filter(function(k) {
7067
+ return e === "left" ? k.left === h : k.right === g;
7068
+ }), m = p[0].top, b = p[p.length - 1].bottom, y = h, C = g, v = C - y, x = b - m;
7073
7069
  return {
7074
7070
  top: m,
7075
7071
  bottom: b,
7076
7072
  left: y,
7077
7073
  right: C,
7078
- width: p,
7079
- height: k
7074
+ width: v,
7075
+ height: x
7080
7076
  };
7081
7077
  }
7082
7078
  default:
@@ -7131,17 +7127,17 @@ function pl(e, t = {}, n = { mount: !0, appName: "Tippy" }) {
7131
7127
  }), i = Rn();
7132
7128
  let l = null;
7133
7129
  const s = () => l || (l = document.createDocumentFragment(), l), d = (S) => {
7134
- let x, M = gt(S) ? S.value : S;
7130
+ let A, M = gt(S) ? S.value : S;
7135
7131
  return zl(M) ? (i.value || (i.value = Na({
7136
7132
  name: n.appName,
7137
7133
  setup: () => () => gt(S) ? S.value : S
7138
- }), r && Object.assign(i.value._context, r.appContext), i.value.mount(s())), x = () => s()) : typeof M == "object" ? (i.value || (i.value = Na({
7134
+ }), r && Object.assign(i.value._context, r.appContext), i.value.mount(s())), A = () => s()) : typeof M == "object" ? (i.value || (i.value = Na({
7139
7135
  name: n.appName,
7140
7136
  setup: () => () => ue(gt(S) ? S.value : S)
7141
- }), r && Object.assign(i.value._context, r.appContext), i.value.mount(s())), x = () => s()) : x = M, x;
7137
+ }), r && Object.assign(i.value._context, r.appContext), i.value.mount(s())), A = () => s()) : A = M, A;
7142
7138
  }, u = (S) => {
7143
- let x = {};
7144
- return gt(S) ? x = S.value || {} : Va(S) ? x = { ...S } : x = { ...S }, x.content && (x.content = d(x.content)), x.triggerTarget && (x.triggerTarget = gt(x.triggerTarget) ? x.triggerTarget.value : x.triggerTarget), (!x.plugins || !Array.isArray(x.plugins)) && (x.plugins = []), x.plugins = x.plugins.filter((M) => M.name !== "vueTippyReactiveState"), x.plugins.push({
7139
+ let A = {};
7140
+ return gt(S) ? A = S.value || {} : Va(S) ? A = { ...S } : A = { ...S }, A.content && (A.content = d(A.content)), A.triggerTarget && (A.triggerTarget = gt(A.triggerTarget) ? A.triggerTarget.value : A.triggerTarget), (!A.plugins || !Array.isArray(A.plugins)) && (A.plugins = []), A.plugins = A.plugins.filter((M) => M.name !== "vueTippyReactiveState"), A.plugins.push({
7145
7141
  name: "vueTippyReactiveState",
7146
7142
  fn: () => ({
7147
7143
  onCreate() {
@@ -7169,18 +7165,18 @@ function pl(e, t = {}, n = { mount: !0, appName: "Tippy" }) {
7169
7165
  o.value.isDestroyed = !0;
7170
7166
  }
7171
7167
  })
7172
- }), x;
7168
+ }), A;
7173
7169
  }, c = () => {
7174
7170
  a.value && a.value.setProps(u(t));
7175
7171
  }, f = () => {
7176
7172
  !a.value || !t.content || a.value.setContent(d(t.content));
7177
7173
  }, h = (S) => {
7178
- var x;
7179
- (x = a.value) === null || x === void 0 || x.setContent(d(S));
7174
+ var A;
7175
+ (A = a.value) === null || A === void 0 || A.setContent(d(S));
7180
7176
  }, g = (S) => {
7181
- var x;
7182
- (x = a.value) === null || x === void 0 || x.setProps(u(S));
7183
- }, v = () => {
7177
+ var A;
7178
+ (A = a.value) === null || A === void 0 || A.setProps(u(S));
7179
+ }, p = () => {
7184
7180
  var S;
7185
7181
  a.value && (a.value.destroy(), a.value = void 0), l = null, (S = i.value) === null || S === void 0 || S.unmount(), i.value = void 0;
7186
7182
  }, m = () => {
@@ -7195,32 +7191,32 @@ function pl(e, t = {}, n = { mount: !0, appName: "Tippy" }) {
7195
7191
  }, C = () => {
7196
7192
  var S;
7197
7193
  (S = a.value) === null || S === void 0 || S.enable(), o.value.isEnabled = !0;
7198
- }, p = () => {
7194
+ }, v = () => {
7199
7195
  var S;
7200
7196
  (S = a.value) === null || S === void 0 || S.unmount();
7201
- }, k = () => {
7197
+ }, x = () => {
7202
7198
  if (!e)
7203
7199
  return;
7204
7200
  let S = gt(e) ? e.value : e;
7205
- typeof S == "function" && (S = S()), Yv(S) && (S = S.$el), S && (a.value = W(S, u(t)), S.$tippy = A);
7206
- }, A = {
7201
+ typeof S == "function" && (S = S()), Yv(S) && (S = S.$el), S && (a.value = W(S, u(t)), S.$tippy = k);
7202
+ }, k = {
7207
7203
  tippy: a,
7208
7204
  refresh: c,
7209
7205
  refreshContent: f,
7210
7206
  setContent: h,
7211
7207
  setProps: g,
7212
- destroy: v,
7208
+ destroy: p,
7213
7209
  hide: b,
7214
7210
  show: m,
7215
7211
  disable: y,
7216
7212
  enable: C,
7217
- unmount: p,
7218
- mount: k,
7213
+ unmount: v,
7214
+ mount: x,
7219
7215
  state: o
7220
7216
  };
7221
- return n.mount && (r ? r.isMounted ? k() : te(k) : k()), r && De(() => {
7222
- v();
7223
- }), gt(t) || Va(t) ? ne(t, c, { immediate: !1 }) : gt(t.content) && ne(t.content, f, { immediate: !1 }), A;
7217
+ return n.mount && (r ? r.isMounted ? x() : te(x) : x()), r && De(() => {
7218
+ p();
7219
+ }), gt(t) || Va(t) ? ne(t, c, { immediate: !1 }) : gt(t.content) && ne(t.content, f, { immediate: !1 }), k;
7224
7220
  }
7225
7221
  function Xv(e, t) {
7226
7222
  const n = E();
@@ -7239,7 +7235,7 @@ function Gv(e) {
7239
7235
  const r = Qv(e);
7240
7236
  return (n = (t = r) === null || t === void 0 ? void 0 : t.$el) !== null && n !== void 0 ? n : r;
7241
7237
  }
7242
- const vl = $({
7238
+ const vl = R({
7243
7239
  props: {
7244
7240
  to: {
7245
7241
  type: [String, Function]
@@ -7350,16 +7346,16 @@ const vl = $({
7350
7346
  }
7351
7347
  return g && b.push(g), b;
7352
7348
  }
7353
- const v = t.default ? t.default(f) : [];
7349
+ const p = t.default ? t.default(f) : [];
7354
7350
  if (!e.tag) {
7355
- const b = ue(v[0], {
7351
+ const b = ue(p[0], {
7356
7352
  ref: a,
7357
7353
  "data-v-tippy": ""
7358
7354
  });
7359
7355
  return g ? [b, g] : b;
7360
7356
  }
7361
7357
  const m = (typeof e.tag == "string", e.tag);
7362
- return ue(m, { ref: a, "data-v-tippy": "" }, g ? [v, g] : v);
7358
+ return ue(m, { ref: a, "data-v-tippy": "" }, g ? [p, g] : p);
7363
7359
  };
7364
7360
  }
7365
7361
  }), Kv = [
@@ -7391,7 +7387,7 @@ Object.keys(W.defaultProps).forEach((e) => {
7391
7387
  }
7392
7388
  };
7393
7389
  });
7394
- const Jv = $({
7390
+ const Jv = R({
7395
7391
  props: aa,
7396
7392
  setup(e) {
7397
7393
  const t = E([]), { singleton: n } = Xv(t, e);
@@ -7442,7 +7438,7 @@ tm({
7442
7438
  ignoreAttributes: !0,
7443
7439
  plugins: [Uv, qv, Wv, _v]
7444
7440
  });
7445
- const nm = /* @__PURE__ */ $({
7441
+ const nm = /* @__PURE__ */ R({
7446
7442
  __name: "base-tooltip",
7447
7443
  props: {
7448
7444
  content: {},
@@ -7469,7 +7465,7 @@ const nm = /* @__PURE__ */ $({
7469
7465
  }
7470
7466
  ]), 1032, ["content", "z-index"]));
7471
7467
  }
7472
- }), rm = { class: "" }, am = { class: "flex-1 text-left" }, om = /* @__PURE__ */ $({
7468
+ }), rm = { class: "" }, am = { class: "flex-1 text-left" }, om = /* @__PURE__ */ R({
7473
7469
  __name: "base-treeview",
7474
7470
  props: {
7475
7471
  title: { default: "" },
@@ -7529,7 +7525,7 @@ const nm = /* @__PURE__ */ $({
7529
7525
  }, pm = { class: "text-xs text-slate-500" }, vm = {
7530
7526
  key: 1,
7531
7527
  class: "flex flex-col mt-1 gap-1"
7532
- }, mm = { class: "text-xs text-danger" }, hm = /* @__PURE__ */ $({
7528
+ }, mm = { class: "text-xs text-danger" }, hm = /* @__PURE__ */ R({
7533
7529
  __name: "base-form",
7534
7530
  props: {
7535
7531
  id: {},
@@ -7602,7 +7598,7 @@ const nm = /* @__PURE__ */ $({
7602
7598
  ], 2);
7603
7599
  };
7604
7600
  }
7605
- }), gm = /* @__PURE__ */ oe(hm, [["__scopeId", "data-v-f9f52107"]]), bm = { class: "flex gap-2 items-center" }, ym = ["id", "data-testid", "readonly", "disabled", "value", "required", "true-value", "false-value"], Am = ["for"], wm = { key: 0 }, xm = /* @__PURE__ */ $({
7601
+ }), gm = /* @__PURE__ */ oe(hm, [["__scopeId", "data-v-f9f52107"]]), bm = { class: "flex gap-2 items-center" }, ym = ["id", "data-testid", "readonly", "disabled", "value", "required", "true-value", "false-value"], Am = ["for"], wm = { key: 0 }, xm = /* @__PURE__ */ R({
7606
7602
  __name: "base-checkbox",
7607
7603
  props: /* @__PURE__ */ we({
7608
7604
  id: {},
@@ -7694,7 +7690,7 @@ const nm = /* @__PURE__ */ $({
7694
7690
  }, Rm = {
7695
7691
  key: 1,
7696
7692
  class: "relative cursor-default select-none px-6 py-2 text-gray-700"
7697
- }, Lm = ["onClick", "data-testid"], Fm = /* @__PURE__ */ $({
7693
+ }, Lm = ["onClick", "data-testid"], Fm = /* @__PURE__ */ R({
7698
7694
  __name: "base-choosen",
7699
7695
  props: /* @__PURE__ */ we({
7700
7696
  id: {},
@@ -7745,7 +7741,7 @@ const nm = /* @__PURE__ */ $({
7745
7741
  (y) => y.label.toLowerCase().replace(/\s+/g, "").includes(o.value.toLowerCase().replace(/\s+/g, ""))
7746
7742
  )), g = (y) => {
7747
7743
  a.value = y, n.value = y.label, b();
7748
- }, v = () => {
7744
+ }, p = () => {
7749
7745
  n.value = "", a.value = void 0, s.value = "", d.value = "", o.value = "", b();
7750
7746
  };
7751
7747
  ne(
@@ -7761,9 +7757,9 @@ const nm = /* @__PURE__ */ $({
7761
7757
  u.value = !1;
7762
7758
  };
7763
7759
  return (y, C) => {
7764
- const p = K("base-input"), k = K("base-form"), A = K("base-icon"), S = K("base-modal");
7760
+ const v = K("base-input"), x = K("base-form"), k = K("base-icon"), S = K("base-modal");
7765
7761
  return w(), B(fe, null, [
7766
- H(k, {
7762
+ H(x, {
7767
7763
  label: t.label,
7768
7764
  layout: t.layout,
7769
7765
  description: t.description,
@@ -7773,11 +7769,11 @@ const nm = /* @__PURE__ */ $({
7773
7769
  class: "w-full"
7774
7770
  }, {
7775
7771
  default: _(() => [
7776
- e.mode === "input" ? (w(), X(p, {
7772
+ e.mode === "input" ? (w(), X(v, {
7777
7773
  key: 0,
7778
7774
  readonly: "",
7779
7775
  modelValue: n.value,
7780
- "onUpdate:modelValue": C[0] || (C[0] = (x) => n.value = x),
7776
+ "onUpdate:modelValue": C[0] || (C[0] = (A) => n.value = A),
7781
7777
  onClick: m,
7782
7778
  border: e.border,
7783
7779
  placeholder: e.placeholder,
@@ -7804,22 +7800,22 @@ const nm = /* @__PURE__ */ $({
7804
7800
  }, {
7805
7801
  default: _(() => [
7806
7802
  O("div", Pm, [
7807
- H(p, {
7803
+ H(v, {
7808
7804
  placeholder: "Search",
7809
7805
  ref_key: "inputRef",
7810
7806
  ref: c,
7811
7807
  border: "full",
7812
7808
  modelValue: o.value,
7813
- "onUpdate:modelValue": C[1] || (C[1] = (x) => o.value = x),
7809
+ "onUpdate:modelValue": C[1] || (C[1] = (A) => o.value = A),
7814
7810
  "data-testid": `${e.dataTestid}-search`
7815
7811
  }, {
7816
7812
  suffix: _(() => [
7817
7813
  O("button", {
7818
7814
  class: "w-8 h-8",
7819
7815
  "data-testid": `${e.dataTestid}-clear-button`,
7820
- onClick: v
7816
+ onClick: p
7821
7817
  }, [
7822
- H(A, { icon: "i-fa7-solid:xmark" })
7818
+ H(k, { icon: "i-fa7-solid:xmark" })
7823
7819
  ], 8, Dm)
7824
7820
  ]),
7825
7821
  _: 1
@@ -7828,14 +7824,14 @@ const nm = /* @__PURE__ */ $({
7828
7824
  O("div", Mm, [
7829
7825
  r.value ? (w(), B("div", $m, " Loading data... ")) : V("", !0),
7830
7826
  !r.value && h.value.length === 0 ? (w(), B("div", Rm, " Nothing found. ")) : V("", !0),
7831
- (w(!0), B(fe, null, Ie(h.value, (x, M) => (w(), B("div", {
7827
+ (w(!0), B(fe, null, Ie(h.value, (A, M) => (w(), B("div", {
7832
7828
  key: M,
7833
- class: z(["p-2 border-b first:border-t dark:border-b-slate-800 dark:border-t-slate-800 hover:bg-blue-100 dark:hover-bg-slate-800 cursor-pointer", { "bg-blue-200 dark:bg-slate-700": x?.label === a.value?.label }]),
7834
- onClick: (P) => g(x),
7835
- "data-testid": `${e.dataTestid}-option-${x._id}`
7829
+ class: z(["p-2 border-b first:border-t dark:border-b-slate-800 dark:border-t-slate-800 hover:bg-blue-100 dark:hover-bg-slate-800 cursor-pointer", { "bg-blue-200 dark:bg-slate-700": A?.label === a.value?.label }]),
7830
+ onClick: (P) => g(A),
7831
+ "data-testid": `${e.dataTestid}-option-${A._id}`
7836
7832
  }, [
7837
- Q(y.$slots, "default", { option: x }, () => [
7838
- $e(q(x?.label), 1)
7833
+ Q(y.$slots, "default", { option: A }, () => [
7834
+ $e(q(A?.label), 1)
7839
7835
  ])
7840
7836
  ], 10, Lm))), 128))
7841
7837
  ])
@@ -9126,8 +9122,8 @@ function zh(e, t) {
9126
9122
  {
9127
9123
  const l = n.getTimezoneOffset();
9128
9124
  if (l !== 0) {
9129
- const h = Math.abs(l), g = le(Math.trunc(h / 60), 2), v = le(h % 60, 2);
9130
- a = `${l < 0 ? "+" : "-"}${g}:${v}`;
9125
+ const h = Math.abs(l), g = le(Math.trunc(h / 60), 2), p = le(h % 60, 2);
9126
+ a = `${l < 0 ? "+" : "-"}${g}:${p}`;
9131
9127
  } else
9132
9128
  a = "Z";
9133
9129
  const s = le(n.getHours(), 2), d = le(n.getMinutes(), 2), u = le(n.getSeconds(), 2), c = r === "" ? "" : "T", f = [s, d, u].join(i);
@@ -9135,7 +9131,7 @@ function zh(e, t) {
9135
9131
  }
9136
9132
  return r;
9137
9133
  }
9138
- const Uh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Yh = /* @__PURE__ */ $({
9134
+ const Uh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Yh = /* @__PURE__ */ R({
9139
9135
  __name: "base-datepicker",
9140
9136
  props: /* @__PURE__ */ we({
9141
9137
  modelValue: {},
@@ -9193,8 +9189,8 @@ const Uh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Yh
9193
9189
  inputRef: u,
9194
9190
  dateRef: l
9195
9191
  }), (c, f) => {
9196
- const h = K("base-icon"), g = K("base-button"), v = K("base-form"), m = Ho("input-mask");
9197
- return w(), X(v, {
9192
+ const h = K("base-icon"), g = K("base-button"), p = K("base-form"), m = Ho("input-mask");
9193
+ return w(), X(p, {
9198
9194
  label: r.label,
9199
9195
  layout: r.layout,
9200
9196
  description: r.description,
@@ -9257,7 +9253,7 @@ const Uh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Yh
9257
9253
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
9258
9254
  };
9259
9255
  }
9260
- }), Xh = /* @__PURE__ */ oe(Yh, [["__scopeId", "data-v-d83e8038"]]), Qh = ["multiple", "accept", "autofocus", "required", "readonly", "disabled", "data-testid"], Gh = ["multiple", "accept", "required", "disabled", "data-testid"], Kh = /* @__PURE__ */ $({
9256
+ }), Xh = /* @__PURE__ */ oe(Yh, [["__scopeId", "data-v-d83e8038"]]), Qh = ["multiple", "accept", "autofocus", "required", "readonly", "disabled", "data-testid"], Gh = ["multiple", "accept", "required", "disabled", "data-testid"], Kh = /* @__PURE__ */ R({
9261
9257
  __name: "base-file-upload",
9262
9258
  props: /* @__PURE__ */ we({
9263
9259
  id: {},
@@ -9334,7 +9330,7 @@ const Uh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Yh
9334
9330
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
9335
9331
  };
9336
9332
  }
9337
- }), Jh = /* @__PURE__ */ oe(Kh, [["__scopeId", "data-v-f158f8e3"]]), Zh = ["type", "maxlength", "placeholder", "autofocus", "required", "readonly", "disabled", "data-testid"], eg = /* @__PURE__ */ $({
9333
+ }), Jh = /* @__PURE__ */ oe(Kh, [["__scopeId", "data-v-f158f8e3"]]), Zh = ["type", "maxlength", "placeholder", "autofocus", "required", "readonly", "disabled", "data-testid"], eg = /* @__PURE__ */ R({
9338
9334
  __name: "base-input",
9339
9335
  props: /* @__PURE__ */ we({
9340
9336
  modelValue: {},
@@ -9379,8 +9375,8 @@ const Uh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Yh
9379
9375
  return t({
9380
9376
  inputRef: i
9381
9377
  }), (h, g) => {
9382
- const v = K("base-form");
9383
- return w(), X(v, {
9378
+ const p = K("base-form");
9379
+ return w(), X(p, {
9384
9380
  label: r.label,
9385
9381
  layout: r.layout,
9386
9382
  description: r.description,
@@ -9440,7 +9436,7 @@ const Uh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Yh
9440
9436
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
9441
9437
  };
9442
9438
  }
9443
- }), tg = /* @__PURE__ */ oe(eg, [["__scopeId", "data-v-27214726"]]), ng = ["required", "readonly", "disabled", "autofocus", "placeholder", "data-testid"], rg = /* @__PURE__ */ $({
9439
+ }), tg = /* @__PURE__ */ oe(eg, [["__scopeId", "data-v-27214726"]]), ng = ["required", "readonly", "disabled", "autofocus", "placeholder", "data-testid"], rg = /* @__PURE__ */ R({
9444
9440
  __name: "base-input-mask",
9445
9441
  props: /* @__PURE__ */ we({
9446
9442
  modelValue: { type: [String, Number, Boolean, null] },
@@ -9592,8 +9588,8 @@ Al.prototype = {
9592
9588
  },
9593
9589
  getFixedDateString: function(e) {
9594
9590
  var t = this, n = t.datePattern, r = [], a = 0, o = 0, i = 0, l = 0, s = 0, d = 0, u, c, f, h = !1;
9595
- e.length === 4 && n[0].toLowerCase() !== "y" && n[1].toLowerCase() !== "y" && (l = n[0] === "d" ? 0 : 2, s = 2 - l, u = parseInt(e.slice(l, l + 2), 10), c = parseInt(e.slice(s, s + 2), 10), r = this.getFixedDate(u, c, 0)), e.length === 8 && (n.forEach(function(v, m) {
9596
- switch (v) {
9591
+ e.length === 4 && n[0].toLowerCase() !== "y" && n[1].toLowerCase() !== "y" && (l = n[0] === "d" ? 0 : 2, s = 2 - l, u = parseInt(e.slice(l, l + 2), 10), c = parseInt(e.slice(s, s + 2), 10), r = this.getFixedDate(u, c, 0)), e.length === 8 && (n.forEach(function(p, m) {
9592
+ switch (p) {
9597
9593
  case "d":
9598
9594
  a = m;
9599
9595
  break;
@@ -9605,16 +9601,16 @@ Al.prototype = {
9605
9601
  break;
9606
9602
  }
9607
9603
  }), d = i * 2, l = a <= i ? a * 2 : a * 2 + 2, s = o <= i ? o * 2 : o * 2 + 2, u = parseInt(e.slice(l, l + 2), 10), c = parseInt(e.slice(s, s + 2), 10), f = parseInt(e.slice(d, d + 4), 10), h = e.slice(d, d + 4).length === 4, r = this.getFixedDate(u, c, f)), e.length === 4 && (n[0] === "y" || n[1] === "y") && (s = n[0] === "m" ? 0 : 2, d = 2 - s, c = parseInt(e.slice(s, s + 2), 10), f = parseInt(e.slice(d, d + 2), 10), h = e.slice(d, d + 2).length === 2, r = [0, c, f]), e.length === 6 && (n[0] === "Y" || n[1] === "Y") && (s = n[0] === "m" ? 0 : 4, d = 2 - 0.5 * s, c = parseInt(e.slice(s, s + 2), 10), f = parseInt(e.slice(d, d + 4), 10), h = e.slice(d, d + 4).length === 4, r = [0, c, f]), r = t.getRangeFixedDate(r), t.date = r;
9608
- var g = r.length === 0 ? e : n.reduce(function(v, m) {
9604
+ var g = r.length === 0 ? e : n.reduce(function(p, m) {
9609
9605
  switch (m) {
9610
9606
  case "d":
9611
- return v + (r[0] === 0 ? "" : t.addLeadingZero(r[0]));
9607
+ return p + (r[0] === 0 ? "" : t.addLeadingZero(r[0]));
9612
9608
  case "m":
9613
- return v + (r[1] === 0 ? "" : t.addLeadingZero(r[1]));
9609
+ return p + (r[1] === 0 ? "" : t.addLeadingZero(r[1]));
9614
9610
  case "y":
9615
- return v + (h ? t.addLeadingZeroForYear(r[2], !1) : "");
9611
+ return p + (h ? t.addLeadingZeroForYear(r[2], !1) : "");
9616
9612
  case "Y":
9617
- return v + (h ? t.addLeadingZeroForYear(r[2], !0) : "");
9613
+ return p + (h ? t.addLeadingZeroForYear(r[2], !0) : "");
9618
9614
  }
9619
9615
  }, "");
9620
9616
  return g;
@@ -10131,7 +10127,7 @@ ge.Util = cg;
10131
10127
  ge.DefaultProperties = pg;
10132
10128
  (typeof rn == "object" && rn ? rn : window).Cleave = ge;
10133
10129
  var kl = ge;
10134
- const vg = ["placeholder", "autofocus", "required", "readonly", "disabled", "data-testid"], mg = /* @__PURE__ */ $({
10130
+ const vg = ["placeholder", "autofocus", "required", "readonly", "disabled", "data-testid"], mg = /* @__PURE__ */ R({
10135
10131
  // This disables auto-inheriting attrs on the root element
10136
10132
  inheritAttrs: !1,
10137
10133
  __name: "base-input-number",
@@ -10171,14 +10167,14 @@ const vg = ["placeholder", "autofocus", "required", "readonly", "disabled", "dat
10171
10167
  numeral: !0,
10172
10168
  numeralThousandsGroupStyle: "thousand",
10173
10169
  numeralDecimalScale: r.decimalLength,
10174
- onValueChanged: v
10170
+ onValueChanged: p
10175
10171
  }), r.autofocus && o.value?.focus(), c(), setTimeout(() => {
10176
10172
  c();
10177
10173
  }, 1e3);
10178
10174
  });
10179
10175
  const c = () => {
10180
10176
  d.value = l.value?.clientWidth === 0 ? 16 : l.value?.clientWidth, u.value = s.value?.clientWidth === 0 ? 16 : s.value?.clientWidth;
10181
- }, f = de(e, "modelValue"), h = de(e, "errors"), g = n, v = (b) => {
10177
+ }, f = de(e, "modelValue"), h = de(e, "errors"), g = n, p = (b) => {
10182
10178
  g("update:modelValue", Number(b.target.rawValue)), r.resetErrorsOnUpdate === !0 && h.value?.length && (h.value = []);
10183
10179
  }, m = T({
10184
10180
  set: () => {
@@ -10212,7 +10208,7 @@ const vg = ["placeholder", "autofocus", "required", "readonly", "disabled", "dat
10212
10208
  rounded: e.rounded,
10213
10209
  "px-0!": e.paddingless
10214
10210
  }]),
10215
- "onUpdate:modelValue": y[0] || (y[0] = (p) => m.value = p),
10211
+ "onUpdate:modelValue": y[0] || (y[0] = (v) => m.value = v),
10216
10212
  placeholder: r.placeholder,
10217
10213
  autofocus: r.autofocus,
10218
10214
  required: r.required,
@@ -10308,12 +10304,12 @@ function bg() {
10308
10304
  }), r ? o.scrollHeight > parseInt(f.height) && (c.overflowY = "scroll") : c.overflow = "hidden", u.textContent = o.value.substring(0, i), h && (u.textContent = u.textContent.replace(/\s/g, " "));
10309
10305
  var g = document.createElement("span");
10310
10306
  g.textContent = o.value.substring(i) || ".", u.appendChild(g);
10311
- var v = {
10307
+ var p = {
10312
10308
  top: g.offsetTop + parseInt(f.borderTopWidth),
10313
10309
  left: g.offsetLeft + parseInt(f.borderLeftWidth),
10314
10310
  height: parseInt(f.lineHeight)
10315
10311
  };
10316
- return s ? g.style.backgroundColor = "#aaa" : document.body.removeChild(u), v;
10312
+ return s ? g.style.backgroundColor = "#aaa" : document.body.removeChild(u), p;
10317
10313
  }
10318
10314
  e.exports = a;
10319
10315
  })();
@@ -10326,7 +10322,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10326
10322
  }, Sg = {
10327
10323
  key: 1,
10328
10324
  class: "p-1 text-gray-400 italic"
10329
- }, Og = ["onClick"], Cg = /* @__PURE__ */ $({
10325
+ }, Og = ["onClick"], Cg = /* @__PURE__ */ R({
10330
10326
  __name: "base-mention",
10331
10327
  props: /* @__PURE__ */ we({
10332
10328
  modelValue: {},
@@ -10334,6 +10330,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10334
10330
  label: {},
10335
10331
  description: {},
10336
10332
  placeholder: {},
10333
+ debounceTimer: { default: 300 },
10337
10334
  border: { default: "simple" },
10338
10335
  layout: { default: "vertical" },
10339
10336
  maxlength: {},
@@ -10352,62 +10349,71 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10352
10349
  errors: {},
10353
10350
  errorsModifiers: {}
10354
10351
  }),
10355
- emits: /* @__PURE__ */ we(["update:modelValue", "update:mentions", "search"], ["update:errors"]),
10352
+ emits: /* @__PURE__ */ we(["update:modelValue", "update:mentions", "search", "showSuggestions"], ["update:errors"]),
10356
10353
  setup(e, { expose: t, emit: n }) {
10357
- const r = e, a = de(e, "errors"), o = n, i = T({
10354
+ const r = e, a = de(e, "errors"), o = n;
10355
+ let i = null;
10356
+ const l = (A) => {
10357
+ i && clearTimeout(i), i = setTimeout(() => {
10358
+ o("search", A);
10359
+ }, r.debounceTimer);
10360
+ }, s = T({
10358
10361
  get: () => r.modelValue,
10359
10362
  set: (A) => {
10360
- o("update:modelValue", A), a.value?.length && (a.value = []), d();
10363
+ o("update:modelValue", A), a.value?.length && (a.value = []), c();
10361
10364
  }
10362
- }), l = E(0), s = E();
10363
- function d() {
10364
- l.value = 0, ke(() => {
10365
- l.value = s.value?.scrollHeight ?? 0;
10365
+ }), d = E(0), u = E();
10366
+ function c() {
10367
+ d.value = 0, ke(() => {
10368
+ d.value = u.value?.scrollHeight ?? 0;
10366
10369
  });
10367
10370
  }
10368
- ne(i, d), te(() => {
10369
- r.autofocus && s.value?.focus(), d();
10371
+ ne(s, c), te(() => {
10372
+ r.autofocus && u.value?.focus(), c();
10370
10373
  });
10371
- const u = E({ top: 0, left: 0 }), c = E(!1), f = E(0), h = E(null), g = E(-1), v = E(""), m = T(() => h.value ? (r.options[h.value] || []).filter(
10372
- (A) => A.label.toLowerCase().includes(v.value.toLowerCase())
10374
+ const f = E({ top: 0, left: 0 }), h = E(!1), g = E(0), p = E(null), m = E(-1), b = E(""), y = T(() => p.value ? (r.options[p.value] || []).filter(
10375
+ (A) => A.label.toLowerCase().includes(b.value.toLowerCase())
10373
10376
  ) : []);
10374
- function b() {
10375
- if (!s.value || g.value < 0) return;
10376
- const A = Ag(s.value, g.value);
10377
- u.value = {
10378
- top: A.top - s.value.scrollTop + A.height,
10379
- left: A.left - s.value.scrollLeft
10377
+ function C() {
10378
+ if (!u.value || m.value < 0) return;
10379
+ const A = Ag(u.value, m.value);
10380
+ f.value = {
10381
+ top: A.top - u.value.scrollTop + A.height,
10382
+ left: A.left - u.value.scrollLeft
10380
10383
  };
10381
10384
  }
10382
- function y(A) {
10383
- const x = A.target.selectionStart, M = i.value.slice(0, x), P = new RegExp(`([${r.triggers.join("")}])(\\w*)$`), I = M.match(P);
10384
- I ? (h.value = I[1], g.value = x - I[2].length - 1, v.value = I[2], o("search", { trigger: h.value, query: v.value }), c.value = !0, ke(b)) : k();
10385
- }
10386
- function C(A) {
10387
- !c.value || !m.value.length || (["ArrowDown", "ArrowUp", "Enter", "Escape"].includes(A.key) && A.preventDefault(), A.key === "ArrowDown" && (f.value = (f.value + 1) % m.value.length), A.key === "ArrowUp" && (f.value = (f.value - 1 + m.value.length) % m.value.length), A.key === "Enter" && p(m.value[f.value]), A.key === "Escape" && k());
10388
- }
10389
- function p(A) {
10390
- if (!h.value || g.value < 0) return;
10391
- const S = i.value.slice(0, g.value), x = i.value.slice(g.value + v.value.length + 1);
10392
- i.value = `${S}${h.value}${A.label} ${x}`, k(), ke(() => {
10393
- s.value?.focus();
10394
- const M = S.length + A.label.length + 2;
10395
- s.value?.setSelectionRange(M, M);
10385
+ function v(A) {
10386
+ const P = A.target.selectionStart, I = s.value.slice(0, P), L = new RegExp(`([${r.triggers.join("")}])(\\w*)$`), $ = I.match(L);
10387
+ $ ? (p.value = $[1], m.value = P - $[2].length - 1, b.value = $[2], l({
10388
+ trigger: p.value,
10389
+ query: b.value
10390
+ }), h.value = !0, o("showSuggestions", !0), ke(C)) : S();
10391
+ }
10392
+ function x(A) {
10393
+ !h.value || !y.value.length || (["ArrowDown", "ArrowUp", "Enter", "Escape"].includes(A.key) && A.preventDefault(), A.key === "ArrowDown" && (g.value = (g.value + 1) % y.value.length), A.key === "ArrowUp" && (g.value = (g.value - 1 + y.value.length) % y.value.length), A.key === "Enter" && k(y.value[g.value]), A.key === "Escape" && S());
10394
+ }
10395
+ function k(A) {
10396
+ if (!p.value || m.value < 0) return;
10397
+ const M = s.value.slice(0, m.value), P = s.value.slice(m.value + b.value.length + 1);
10398
+ s.value = `${M}${p.value}${A.label} ${P}`, S(), ke(() => {
10399
+ u.value?.focus();
10400
+ const I = M.length + A.label.length + 2;
10401
+ u.value?.setSelectionRange(I, I);
10396
10402
  });
10397
10403
  }
10398
- function k() {
10399
- c.value = !1, g.value = -1, v.value = "", h.value = null, f.value = 0;
10404
+ function S() {
10405
+ i && (clearTimeout(i), i = null), h.value = !1, o("showSuggestions", !1), m.value = -1, b.value = "", p.value = null, g.value = 0;
10400
10406
  }
10401
- return ne(i, () => {
10407
+ return ne(s, () => {
10402
10408
  const A = [];
10403
- for (const S of r.triggers) {
10404
- const x = new RegExp(`\\${S}(\\w+)`, "g"), M = Array.from(i.value.matchAll(x)).map((I) => I[1]?.toLowerCase()), P = r.options[S] || [];
10405
- A.push(...P.filter((I) => M.includes(I.label.toLowerCase())));
10409
+ for (const M of r.triggers) {
10410
+ const P = new RegExp(`\\${M}(\\w+)`, "g"), I = Array.from(s.value.matchAll(P)).map(($) => $[1]?.toLowerCase()), L = r.options[M] || [];
10411
+ A.push(...L.filter(($) => I.includes($.label.toLowerCase())));
10406
10412
  }
10407
10413
  o("update:mentions", A);
10408
- }), t({ textareaRef: s }), (A, S) => {
10409
- const x = K("base-form");
10410
- return w(), X(x, {
10414
+ }), t({ textareaRef: u }), (A, M) => {
10415
+ const P = K("base-form");
10416
+ return w(), X(P, {
10411
10417
  label: r.label,
10412
10418
  layout: r.layout,
10413
10419
  description: r.description,
@@ -10419,8 +10425,8 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10419
10425
  O("div", wg, [
10420
10426
  Xe(O("textarea", {
10421
10427
  ref_key: "textareaRef",
10422
- ref: s,
10423
- "onUpdate:modelValue": S[0] || (S[0] = (M) => i.value = M),
10428
+ ref: u,
10429
+ "onUpdate:modelValue": M[0] || (M[0] = (I) => s.value = I),
10424
10430
  id: e.id,
10425
10431
  placeholder: e.placeholder,
10426
10432
  autofocus: e.autofocus,
@@ -10435,30 +10441,31 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10435
10441
  "overflow-hidden": !e.maxHeight
10436
10442
  }]),
10437
10443
  style: Ye({
10438
- height: l.value + "px",
10444
+ height: d.value + "px",
10439
10445
  minHeight: e.minHeight ? e.minHeight + "px" : "inherit",
10440
10446
  maxHeight: e.maxHeight ? e.maxHeight + "px" : "inherit"
10441
10447
  }),
10442
10448
  "data-testid": e.dataTestid,
10443
- onInput: y,
10444
- onKeydown: C
10449
+ onInput: v,
10450
+ onKeydown: x,
10451
+ onBlur: S
10445
10452
  }, null, 46, xg), [
10446
- [Ut, i.value]
10453
+ [Ut, s.value]
10447
10454
  ]),
10448
- c.value ? (w(), B("ul", {
10455
+ h.value ? (w(), B("ul", {
10449
10456
  key: 0,
10450
10457
  class: "absolute bg-white dark:bg-gray-900 border dark:border-gray-500 rounded shadow p-1 z-10 w-48",
10451
- style: Ye({ top: `${u.value.top}px`, left: `${u.value.left}px` })
10458
+ style: Ye({ top: `${f.value.top}px`, left: `${f.value.left}px` })
10452
10459
  }, [
10453
- e.loading ? (w(), B("li", kg, "Searching...")) : m.value.length ? V("", !0) : (w(), B("li", Sg, "No results")),
10454
- e.loading ? V("", !0) : (w(!0), B(fe, { key: 2 }, Ie(m.value, (M, P) => (w(), B("li", {
10455
- key: M.id,
10460
+ e.loading ? (w(), B("li", kg, "Searching...")) : y.value.length ? V("", !0) : (w(), B("li", Sg, "No results")),
10461
+ e.loading ? V("", !0) : (w(!0), B(fe, { key: 2 }, Ie(y.value, (I, L) => (w(), B("li", {
10462
+ key: I.id,
10456
10463
  class: z([
10457
10464
  "p-1 cursor-pointer",
10458
- P === f.value ? "bg-gray-200 dark:bg-gray-700" : "hover:bg-gray-100 dark:hover:bg-gray-700"
10465
+ L === g.value ? "bg-gray-200 dark:bg-gray-700" : "hover:bg-gray-100 dark:hover:bg-gray-700"
10459
10466
  ]),
10460
- onClick: (I) => p(M)
10461
- }, q(M.label), 11, Og))), 128))
10467
+ onClick: ($) => k(I)
10468
+ }, q(I.label), 11, Og))), 128))
10462
10469
  ], 4)) : V("", !0)
10463
10470
  ])
10464
10471
  ]),
@@ -10466,13 +10473,13 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10466
10473
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
10467
10474
  };
10468
10475
  }
10469
- }), Eg = /* @__PURE__ */ oe(Cg, [["__scopeId", "data-v-66bbbe73"]]), Tg = { class: "cursor-pointer" }, Bg = { class: "flex items-center justify-between gap-1" }, Pg = {
10476
+ }), Eg = /* @__PURE__ */ oe(Cg, [["__scopeId", "data-v-ab610d60"]]), Tg = { class: "cursor-pointer" }, Bg = { class: "flex items-center justify-between gap-1" }, Pg = {
10470
10477
  key: 0,
10471
10478
  class: "flex items-center shrink-0 text-white"
10472
10479
  }, Dg = {
10473
10480
  key: 1,
10474
10481
  class: "flex items-center shrink-0"
10475
- }, Ig = { class: "flex items-center" }, Mg = { class: "text-sm" }, $g = /* @__PURE__ */ $({
10482
+ }, Ig = { class: "flex items-center" }, Mg = { class: "text-sm" }, $g = /* @__PURE__ */ R({
10476
10483
  __name: "base-radio",
10477
10484
  props: /* @__PURE__ */ we({
10478
10485
  modelValue: { type: [Object, null, String, Number, Boolean] },
@@ -10562,7 +10569,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10562
10569
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
10563
10570
  };
10564
10571
  }
10565
- }), Rg = { class: "flex w-full gap-2 mt-0.2" }, Lg = ["disabled", "data-testid"], Fg = { key: 0 }, _g = /* @__PURE__ */ $({
10572
+ }), Rg = { class: "flex w-full gap-2 mt-0.2" }, Lg = ["disabled", "data-testid"], Fg = { key: 0 }, _g = /* @__PURE__ */ R({
10566
10573
  __name: "base-range",
10567
10574
  props: /* @__PURE__ */ we({
10568
10575
  modelValue: {},
@@ -10621,7 +10628,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10621
10628
  }, Wg = {
10622
10629
  key: 1,
10623
10630
  class: "relative cursor-default select-none px-4 py-2 text-gray-700"
10624
- }, Hg = /* @__PURE__ */ $({
10631
+ }, Hg = /* @__PURE__ */ R({
10625
10632
  __name: "base-select",
10626
10633
  props: /* @__PURE__ */ we({
10627
10634
  id: {},
@@ -10673,12 +10680,12 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10673
10680
  ), ne(
10674
10681
  () => r.value,
10675
10682
  (g) => {
10676
- o.value = a.options.find((v) => v.value === g);
10683
+ o.value = a.options.find((p) => p.value === g);
10677
10684
  },
10678
10685
  { immediate: !0 }
10679
10686
  ), t({
10680
10687
  inputRef: h
10681
- }), (g, v) => {
10688
+ }), (g, p) => {
10682
10689
  const m = K("base-icon"), b = K("base-button"), y = K("base-form");
10683
10690
  return w(), X(y, {
10684
10691
  label: a.label,
@@ -10691,7 +10698,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10691
10698
  default: _(() => [
10692
10699
  H(N(pu), {
10693
10700
  modelValue: o.value,
10694
- "onUpdate:modelValue": v[3] || (v[3] = (C) => o.value = C)
10701
+ "onUpdate:modelValue": p[3] || (p[3] = (C) => o.value = C)
10695
10702
  }, {
10696
10703
  default: _(() => [
10697
10704
  O("div", Vg, [
@@ -10713,7 +10720,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10713
10720
  disabled: a.disabled,
10714
10721
  placeholder: e.placeholder,
10715
10722
  displayValue: () => o.value?.label ?? "",
10716
- onChange: v[0] || (v[0] = (C) => l.value = C.target.value),
10723
+ onChange: p[0] || (p[0] = (C) => l.value = C.target.value),
10717
10724
  "data-testid": `${e.dataTestid}-input`
10718
10725
  }, null, 8, ["autofocus", "required", "readonly", "disabled", "placeholder", "class", "displayValue", "data-testid"]),
10719
10726
  N(ml)(o.value) ? (w(), X(N(vu), {
@@ -10732,7 +10739,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10732
10739
  variant: "text",
10733
10740
  type: "button",
10734
10741
  class: "absolute inset-y-0 right-1 flex items-center",
10735
- onClick: v[1] || (v[1] = (C) => u()),
10742
+ onClick: p[1] || (p[1] = (C) => u()),
10736
10743
  "data-testid": `${e.dataTestid}-clear-button`
10737
10744
  }, {
10738
10745
  default: _(() => [
@@ -10745,7 +10752,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10745
10752
  leave: "transition ease-in duration-100",
10746
10753
  leaveFrom: "opacity-100",
10747
10754
  leaveTo: "opacity-0",
10748
- onAfterLeave: v[2] || (v[2] = (C) => l.value = "")
10755
+ onAfterLeave: p[2] || (p[2] = (C) => l.value = "")
10749
10756
  }, {
10750
10757
  default: _(() => [
10751
10758
  H(N(hu), { class: "options" }, {
@@ -10758,15 +10765,15 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10758
10765
  value: C,
10759
10766
  "data-testid": `${e.dataTestid}-option-${C._id}`
10760
10767
  }, {
10761
- default: _(({ selected: p, active: k }) => [
10768
+ default: _(({ selected: v, active: x }) => [
10762
10769
  O("li", {
10763
10770
  class: z(["option", {
10764
- "option-active": k,
10765
- "option-inactive": !k
10771
+ "option-active": x,
10772
+ "option-inactive": !x
10766
10773
  }])
10767
10774
  }, [
10768
10775
  O("span", {
10769
- class: z(["block", { "font-medium": p, "font-normal": !p }])
10776
+ class: z(["block", { "font-medium": v, "font-normal": !v }])
10770
10777
  }, q(C.label), 3)
10771
10778
  ], 2)
10772
10779
  ]),
@@ -10787,7 +10794,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10787
10794
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
10788
10795
  };
10789
10796
  }
10790
- }), qg = /* @__PURE__ */ oe(Hg, [["__scopeId", "data-v-32636d03"]]), zg = ["disabled", "data-testid"], Ug = /* @__PURE__ */ $({
10797
+ }), qg = /* @__PURE__ */ oe(Hg, [["__scopeId", "data-v-32636d03"]]), zg = ["disabled", "data-testid"], Ug = /* @__PURE__ */ R({
10791
10798
  __name: "base-switch",
10792
10799
  props: /* @__PURE__ */ we({
10793
10800
  modelValue: { type: Boolean },
@@ -10858,7 +10865,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10858
10865
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
10859
10866
  };
10860
10867
  }
10861
- }), Yg = ["placeholder", "autofocus", "required", "readonly", "disabled", "maxlength", "data-testid"], Xg = /* @__PURE__ */ $({
10868
+ }), Yg = ["placeholder", "autofocus", "required", "readonly", "disabled", "maxlength", "data-testid"], Xg = /* @__PURE__ */ R({
10862
10869
  __name: "base-textarea",
10863
10870
  props: /* @__PURE__ */ we({
10864
10871
  modelValue: {},
@@ -10942,7 +10949,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10942
10949
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
10943
10950
  };
10944
10951
  }
10945
- }), Qg = /* @__PURE__ */ oe(Xg, [["__scopeId", "data-v-72c6c0e3"]]), Gg = { class: "flex justify-between px-4" }, Kg = { class: "self-end" }, Jg = /* @__PURE__ */ $({
10952
+ }), Qg = /* @__PURE__ */ oe(Xg, [["__scopeId", "data-v-72c6c0e3"]]), Gg = { class: "flex justify-between px-4" }, Kg = { class: "self-end" }, Jg = /* @__PURE__ */ R({
10946
10953
  __name: "app-footer",
10947
10954
  props: {
10948
10955
  version: {},
@@ -10969,7 +10976,7 @@ function rb(e, t) {
10969
10976
  const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e3"]]), ob = { class: "preloader-status" }, ib = {
10970
10977
  status: "",
10971
10978
  class: "preloader-status-text"
10972
- }, lb = { class: "preloader-status-loader" }, sb = /* @__PURE__ */ $({
10979
+ }, lb = { class: "preloader-status-loader" }, sb = /* @__PURE__ */ R({
10973
10980
  __name: "app-preloader",
10974
10981
  setup(e) {
10975
10982
  const t = E(0), n = E(`is loading ${t.value} %`), r = E();
@@ -11009,7 +11016,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11009
11016
  }, Ab = ["href"], wb = {
11010
11017
  key: 2,
11011
11018
  class: "menu-separator"
11012
- }, xb = /* @__PURE__ */ $({
11019
+ }, xb = /* @__PURE__ */ R({
11013
11020
  __name: "app-sidebar-menu",
11014
11021
  props: {
11015
11022
  isMobile: { type: Boolean },
@@ -11044,7 +11051,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11044
11051
  O("p", pb, q(e.title), 1),
11045
11052
  n.value ? (w(), X(ur(N(ia)), {
11046
11053
  key: 0,
11047
- onClick: f[0] || (f[0] = (v) => N(o).closeSidebar()),
11054
+ onClick: f[0] || (f[0] = (p) => N(o).closeSidebar()),
11048
11055
  class: "mr-2",
11049
11056
  "data-testid": "sidebar-button"
11050
11057
  }, {
@@ -11061,47 +11068,47 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11061
11068
  ]),
11062
11069
  O("div", mb, [
11063
11070
  O("ul", hb, [
11064
- (w(!0), B(fe, null, Ie(r.value, (v) => (w(), B("li", {
11065
- key: v.name
11071
+ (w(!0), B(fe, null, Ie(r.value, (p) => (w(), B("li", {
11072
+ key: p.name
11066
11073
  }, [
11067
- v.submenu ? (w(), B(fe, { key: 0 }, [
11068
- v.path ? (w(), X(g, {
11074
+ p.submenu ? (w(), B(fe, { key: 0 }, [
11075
+ p.path ? (w(), X(g, {
11069
11076
  key: 0,
11070
- to: v.path,
11077
+ to: p.path,
11071
11078
  class: "menu-link-button",
11072
- onClick: (m) => l(v.name),
11073
- "data-testid": v.dataTestid
11079
+ onClick: (m) => l(p.name),
11080
+ "data-testid": p.dataTestid
11074
11081
  }, {
11075
11082
  default: _(() => [
11076
- O("p", null, q(v.name), 1),
11077
- v.submenu ? (w(), B("i", {
11083
+ O("p", null, q(p.name), 1),
11084
+ p.submenu ? (w(), B("i", {
11078
11085
  key: 0,
11079
11086
  class: z(["i-fa7-solid:angle-right", {
11080
- "rotate-90 transition transform-gpu": i.value === v.name
11087
+ "rotate-90 transition transform-gpu": i.value === p.name
11081
11088
  }])
11082
11089
  }, null, 2)) : V("", !0)
11083
11090
  ]),
11084
11091
  _: 2
11085
11092
  }, 1032, ["to", "onClick", "data-testid"])) : (w(), B("div", {
11086
11093
  key: 1,
11087
- class: z(["menu-link-button", { "text-slate-50": i.value === v.name }]),
11088
- onClick: (m) => l(v.name),
11089
- "data-testid": v.dataTestid
11094
+ class: z(["menu-link-button", { "text-slate-50": i.value === p.name }]),
11095
+ onClick: (m) => l(p.name),
11096
+ "data-testid": p.dataTestid
11090
11097
  }, [
11091
- O("p", null, q(v.name), 1),
11092
- v.submenu ? (w(), B("i", {
11098
+ O("p", null, q(p.name), 1),
11099
+ p.submenu ? (w(), B("i", {
11093
11100
  key: 0,
11094
11101
  class: z(["i-fa7-solid:angle-right", {
11095
- "rotate-90 transition transform-gpu": i.value === v.name
11102
+ "rotate-90 transition transform-gpu": i.value === p.name
11096
11103
  }])
11097
11104
  }, null, 2)) : V("", !0)
11098
11105
  ], 10, gb)),
11099
11106
  O("ul", {
11100
11107
  class: z(["submenu", {
11101
- "max-h-[1000px]! overflow-auto bg-slate-700 px-2 py-1 w-[var(--sidebar-menu-width)] -mx-4": i.value === v.name
11108
+ "max-h-[1000px]! overflow-auto bg-slate-700 px-2 py-1 w-[var(--sidebar-menu-width)] -mx-4": i.value === p.name
11102
11109
  }])
11103
11110
  }, [
11104
- (w(!0), B(fe, null, Ie(v.submenu, (m) => (w(), B("li", {
11111
+ (w(!0), B(fe, null, Ie(p.submenu, (m) => (w(), B("li", {
11105
11112
  key: m.name,
11106
11113
  class: "overflow-hidden"
11107
11114
  }, [
@@ -11121,30 +11128,30 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11121
11128
  ]))), 128))
11122
11129
  ], 2)
11123
11130
  ], 64)) : (w(), B(fe, { key: 1 }, [
11124
- v.path && u(v.path) === "internal" ? (w(), X(g, {
11131
+ p.path && u(p.path) === "internal" ? (w(), X(g, {
11125
11132
  key: 0,
11126
- to: v.path,
11133
+ to: p.path,
11127
11134
  class: "menu-link-button",
11128
11135
  onClick: f[1] || (f[1] = (m) => s()),
11129
- "data-testid": v.dataTestid
11136
+ "data-testid": p.dataTestid
11130
11137
  }, {
11131
11138
  default: _(() => [
11132
- $e(q(v.name), 1)
11139
+ $e(q(p.name), 1)
11133
11140
  ]),
11134
11141
  _: 2
11135
11142
  }, 1032, ["to", "data-testid"])) : V("", !0),
11136
- v.path && u(v.path) === "external" ? (w(), B("a", {
11143
+ p.path && u(p.path) === "external" ? (w(), B("a", {
11137
11144
  key: 1,
11138
- href: v.path,
11145
+ href: p.path,
11139
11146
  onClick: f[2] || (f[2] = (m) => s()),
11140
11147
  target: "_blank",
11141
11148
  class: "menu-link-button"
11142
11149
  }, [
11143
- $e(q(v.name) + " ", 1),
11150
+ $e(q(p.name) + " ", 1),
11144
11151
  H(h, { icon: "i-fa7-solid:up-right-from-square" })
11145
11152
  ], 8, Ab)) : V("", !0)
11146
11153
  ], 64)),
11147
- v.separator ? (w(), B("div", wb)) : V("", !0)
11154
+ p.separator ? (w(), B("div", wb)) : V("", !0)
11148
11155
  ]))), 128))
11149
11156
  ])
11150
11157
  ])
@@ -11160,7 +11167,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11160
11167
  key: 1,
11161
11168
  src: Ol,
11162
11169
  class: "pt-2 px-1 max-w-12 max-h-12"
11163
- }, $b = { class: "text-center px-1 py-2 text-9px font-semibold line-height-tight break-anywhere" }, Rb = /* @__PURE__ */ $({
11170
+ }, $b = { class: "text-center px-1 py-2 text-9px font-semibold line-height-tight break-anywhere" }, Rb = /* @__PURE__ */ R({
11164
11171
  __name: "app-sidebar-panel",
11165
11172
  props: {
11166
11173
  apps: {}
@@ -11217,7 +11224,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11217
11224
  ]);
11218
11225
  };
11219
11226
  }
11220
- }), Cl = /* @__PURE__ */ oe(Rb, [["__scopeId", "data-v-800d2254"]]), Lb = { class: "sidebar" }, Fb = /* @__PURE__ */ $({
11227
+ }), Cl = /* @__PURE__ */ oe(Rb, [["__scopeId", "data-v-800d2254"]]), Lb = { class: "sidebar" }, Fb = /* @__PURE__ */ R({
11221
11228
  __name: "app-sidebar",
11222
11229
  props: {
11223
11230
  title: {},
@@ -11250,7 +11257,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11250
11257
  })
11251
11258
  ], 64));
11252
11259
  }
11253
- }), _b = /* @__PURE__ */ oe(Fb, [["__scopeId", "data-v-388375c7"]]), Vb = { class: "hidden lg:flex flex-col justify-center items-end" }, Nb = { class: "text-sm truncate font-extrabold" }, jb = { class: "text-sm truncate" }, Wb = { class: "popper-root p-2" }, Hb = /* @__PURE__ */ $({
11260
+ }), _b = /* @__PURE__ */ oe(Fb, [["__scopeId", "data-v-388375c7"]]), Vb = { class: "hidden lg:flex flex-col justify-center items-end" }, Nb = { class: "text-sm truncate font-extrabold" }, jb = { class: "text-sm truncate" }, Wb = { class: "popper-root p-2" }, Hb = /* @__PURE__ */ R({
11254
11261
  __name: "header-menu",
11255
11262
  props: {
11256
11263
  organization: {},
@@ -11293,7 +11300,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11293
11300
  }, 512);
11294
11301
  };
11295
11302
  }
11296
- }), qb = /* @__PURE__ */ oe(Hb, [["__scopeId", "data-v-2912a45d"]]), zb = { class: "text-slate-900 dark:text-slate-50 flex !justify-left" }, Ub = { class: "flex flex-col justify-center items-start text-left text-sm pl-2" }, Yb = { class: "font-extrabold line-clamp-1" }, Xb = { class: "line-clamp-1" }, Qb = /* @__PURE__ */ $({
11303
+ }), qb = /* @__PURE__ */ oe(Hb, [["__scopeId", "data-v-2912a45d"]]), zb = { class: "text-slate-900 dark:text-slate-50 flex !justify-left" }, Ub = { class: "flex flex-col justify-center items-start text-left text-sm pl-2" }, Yb = { class: "font-extrabold line-clamp-1" }, Xb = { class: "line-clamp-1" }, Qb = /* @__PURE__ */ R({
11297
11304
  __name: "header-menu-account",
11298
11305
  props: {
11299
11306
  organization: {},
@@ -11315,7 +11322,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11315
11322
  ])
11316
11323
  ]));
11317
11324
  }
11318
- }), Gb = /* @__PURE__ */ $({
11325
+ }), Gb = /* @__PURE__ */ R({
11319
11326
  __name: "header-menu-dark-mode",
11320
11327
  props: /* @__PURE__ */ we({
11321
11328
  onToggleDarkMode: { type: Function }
@@ -11351,7 +11358,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11351
11358
  });
11352
11359
  };
11353
11360
  }
11354
- }), Kb = /* @__PURE__ */ $({
11361
+ }), Kb = /* @__PURE__ */ R({
11355
11362
  __name: "header-menu-signout",
11356
11363
  props: {
11357
11364
  onSignout: { type: Function }
@@ -11378,7 +11385,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11378
11385
  }, 8, ["onClick"]);
11379
11386
  };
11380
11387
  }
11381
- }), Jb = { class: "text-xs" }, Zb = /* @__PURE__ */ $({
11388
+ }), Jb = { class: "text-xs" }, Zb = /* @__PURE__ */ R({
11382
11389
  __name: "header-menu-switch-organization",
11383
11390
  props: {
11384
11391
  organizations: {}
@@ -11430,7 +11437,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11430
11437
  ], 64);
11431
11438
  };
11432
11439
  }
11433
- }), ey = { class: "popper-root" }, ty = { class: "overflow-y-auto flex flex-col gap-4" }, ny = { class: "flex items-center space-x-3" }, ry = { class: "bg-info/10 dark:bg-info/15 h-10 w-10 flex shrink-0 items-center justify-center rounded-lg" }, ay = { class: "flex items-center space-x-3" }, oy = { class: "bg-info/10 dark:bg-info/15 h-10 w-10 flex shrink-0 items-center justify-center rounded-lg" }, iy = /* @__PURE__ */ $({
11440
+ }), ey = { class: "popper-root" }, ty = { class: "overflow-y-auto flex flex-col gap-4" }, ny = { class: "flex items-center space-x-3" }, ry = { class: "bg-info/10 dark:bg-info/15 h-10 w-10 flex shrink-0 items-center justify-center rounded-lg" }, ay = { class: "flex items-center space-x-3" }, oy = { class: "bg-info/10 dark:bg-info/15 h-10 w-10 flex shrink-0 items-center justify-center rounded-lg" }, iy = /* @__PURE__ */ R({
11434
11441
  __name: "header-notification",
11435
11442
  setup(e) {
11436
11443
  const t = E();
@@ -11564,7 +11571,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11564
11571
  }, uy = {
11565
11572
  key: 1,
11566
11573
  class: "block w-6 h-6 i-lucide-panel-left-close"
11567
- }, dy = /* @__PURE__ */ $({
11574
+ }, dy = /* @__PURE__ */ R({
11568
11575
  __name: "header-sidebar-button",
11569
11576
  props: /* @__PURE__ */ we({
11570
11577
  onToggleSidebar: { type: Function }
@@ -11788,14 +11795,14 @@ const Cy = mr("sidebar-menu", {
11788
11795
  }
11789
11796
  u(i.value), n.value < r.value && setTimeout(d, a.value);
11790
11797
  }, u = (g) => {
11791
- i.value = g, e.value = new WebSocket(i.value), e.value.onmessage = (v) => {
11792
- const m = Tm(v.data);
11798
+ i.value = g, e.value = new WebSocket(i.value), e.value.onmessage = (p) => {
11799
+ const m = Tm(p.data);
11793
11800
  fy.emit(m.event, m);
11794
- }, e.value.onopen = (v) => {
11801
+ }, e.value.onopen = (p) => {
11795
11802
  o.value = 1;
11796
- }, e.value.onclose = (v) => {
11803
+ }, e.value.onclose = (p) => {
11797
11804
  o.value = 0, t.value === !1 && setTimeout(d, a.value);
11798
- }, e.value.onerror = (v) => {
11805
+ }, e.value.onerror = (p) => {
11799
11806
  };
11800
11807
  };
11801
11808
  function c() {