@point-hub/papp 0.1.7 → 0.1.8

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
@@ -388,13 +388,13 @@ function tn(e, t, n) {
388
388
  r = f;
389
389
  let h;
390
390
  if (n.key && ((l = n.debug) != null && l.call(n)) && (h = Date.now()), a = t(...f), n.key && ((d = n.debug) != null && d.call(n))) {
391
- const g = Math.round((Date.now() - u) * 100) / 100, v = Math.round((Date.now() - h) * 100) / 100, m = v / 16, b = (y, C) => {
392
- for (y = String(y); y.length < C; )
393
- y = " " + y;
394
- return y;
391
+ const g = Math.round((Date.now() - u) * 100) / 100, v = Math.round((Date.now() - h) * 100) / 100, m = v / 16, y = (b, C) => {
392
+ for (b = String(b); b.length < C; )
393
+ b = " " + b;
394
+ return b;
395
395
  };
396
396
  console.info(
397
- `%c⏱ ${b(v, 5)} /${b(g, 5)} ms`,
397
+ `%c⏱ ${y(v, 5)} /${y(g, 5)} ms`,
398
398
  `
399
399
  font-size: .6rem;
400
400
  font-weight: bold;
@@ -674,11 +674,11 @@ class jl {
674
674
  const p = this.options.lanes === 1 ? u[c - 1] : this.getFurthestMeasurement(u, c);
675
675
  m = p ? p.end + this.options.gap : r + a, v = p ? p.lane : c % this.options.lanes, this.options.lanes > 1 && this.laneAssignments.set(c, v);
676
676
  }
677
- const b = l.get(h), y = typeof b == "number" ? b : this.options.estimateSize(c), C = m + y;
677
+ const y = l.get(h), b = typeof y == "number" ? y : this.options.estimateSize(c), C = m + b;
678
678
  u[c] = {
679
679
  index: c,
680
680
  start: m,
681
- size: y,
681
+ size: b,
682
682
  end: C,
683
683
  key: h,
684
684
  lane: v
@@ -1271,7 +1271,7 @@ function Or({ props: e, attrs: t, slots: n, slot: r, name: a }) {
1271
1271
  if (s === "template") {
1272
1272
  if (d = ei(d ?? []), Object.keys(l).length > 0 || Object.keys(t).length > 0) {
1273
1273
  let [f, ...c] = d ?? [];
1274
- if (!au(f) || c.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(l).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(`
1274
+ if (!au(f) || c.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(l).concat(Object.keys(t)).map((v) => v.trim()).filter((v, m, y) => y.indexOf(v) === m).sort((v, m) => v.localeCompare(m)).map((v) => ` - ${v}`).join(`
1275
1275
  `), "", "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(`
1276
1276
  `)].join(`
1277
1277
  `));
@@ -1445,13 +1445,13 @@ let li = /* @__PURE__ */ Symbol("VirtualContext"), pu = R({ name: "VirtualProvid
1445
1445
  let I = f.value !== null ? u.value[f.value] : null, L = P(u.value.slice()), $ = L.length > 0 && L[0].dataRef.order.value !== null ? L.sort((X, K) => X.dataRef.order.value - K.dataRef.order.value) : bt(L, (X) => F(X.dataRef.domRef)), Y = I ? $.indexOf(I) : null;
1446
1446
  return Y === -1 && (Y = null), { options: $, activeOptionIndex: Y };
1447
1447
  }
1448
- 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, x = null;
1448
+ let v = T(() => e.multiple ? 1 : 0), m = T(() => e.nullable), [y, b] = Yo(T(() => e.modelValue), (P) => r("update:modelValue", P), T(() => e.defaultValue)), C = T(() => y.value === void 0 ? Ce(v.value, { 1: [], 0: void 0 }) : y.value), p = null, x = null;
1449
1449
  function S(P) {
1450
1450
  return Ce(v.value, { 0() {
1451
- return y?.(P);
1451
+ return b?.(P);
1452
1452
  }, 1: () => {
1453
1453
  let I = Le(A.value.value).slice(), L = Le(P), $ = I.findIndex((Y) => A.compare(L, Le(Y)));
1454
- return $ === -1 ? I.push(L) : I.splice($, 1), y?.(I);
1454
+ return $ === -1 ? I.push(L) : I.splice($, 1), b?.(I);
1455
1455
  } });
1456
1456
  }
1457
1457
  let O = T(() => {
@@ -1471,7 +1471,7 @@ let li = /* @__PURE__ */ Symbol("VirtualContext"), pu = R({ name: "VirtualProvid
1471
1471
  }, calculateIndex(P) {
1472
1472
  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));
1473
1473
  }, defaultValue: T(() => e.defaultValue), nullable: m, immediate: T(() => !1), virtual: T(() => null), inputRef: i, labelRef: o, buttonRef: s, optionsRef: l, disabled: T(() => e.disabled), options: u, change(P) {
1474
- y(P);
1474
+ b(P);
1475
1475
  }, activeOptionIndex: T(() => {
1476
1476
  if (h.value && f.value === null && (A.virtual.value ? A.virtual.value.options.length > 0 : u.value.length > 0)) {
1477
1477
  if (A.virtual.value) {
@@ -1720,10 +1720,10 @@ let mu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
1720
1720
  break;
1721
1721
  }
1722
1722
  }
1723
- function b(x) {
1723
+ function y(x) {
1724
1724
  t("change", x), s.nullable.value && s.mode.value === 0 && x.target.value === "" && u(), s.openCombobox();
1725
1725
  }
1726
- function y(x) {
1726
+ function b(x) {
1727
1727
  var S, O, A;
1728
1728
  let M = (S = x.relatedTarget) != null ? S : yt.find((P) => P !== x.currentTarget);
1729
1729
  if (d.value = !1, !((O = F(s.optionsRef)) != null && O.contains(M)) && !((A = F(s.buttonRef)) != null && A.contains(M)) && s.comboboxState.value === 0) return x.preventDefault(), s.mode.value === 0 && (s.nullable.value && s.value.value === null ? u() : s.activationTrigger.value !== 1 && s.selectActiveOption()), s.closeCombobox();
@@ -1741,7 +1741,7 @@ let mu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
1741
1741
  });
1742
1742
  return () => {
1743
1743
  var x, S, O, A, M, P, I;
1744
- let L = { open: s.comboboxState.value === 0 }, { displayValue: $, onChange: Y, ...X } = e, K = { "aria-controls": (x = s.optionsRef.value) == null ? void 0 : x.id, "aria-expanded": s.comboboxState.value === 0, "aria-activedescendant": s.activeOptionIndex.value === null ? void 0 : s.virtual.value ? (S = s.options.value.find((ae) => !s.virtual.value.disabled(ae.dataRef.value) && s.compare(ae.dataRef.value, s.virtual.value.options[s.activeOptionIndex.value]))) == null ? void 0 : S.id : (O = s.options.value[s.activeOptionIndex.value]) == null ? void 0 : O.id, "aria-labelledby": (P = (A = F(s.labelRef)) == null ? void 0 : A.id) != null ? P : (M = F(s.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: s.inputRef, defaultValue: p.value, disabled: s.disabled.value === !0 ? !0 : void 0 };
1744
+ let L = { open: s.comboboxState.value === 0 }, { displayValue: $, onChange: Y, ...X } = e, K = { "aria-controls": (x = s.optionsRef.value) == null ? void 0 : x.id, "aria-expanded": s.comboboxState.value === 0, "aria-activedescendant": s.activeOptionIndex.value === null ? void 0 : s.virtual.value ? (S = s.options.value.find((ae) => !s.virtual.value.disabled(ae.dataRef.value) && s.compare(ae.dataRef.value, s.virtual.value.options[s.activeOptionIndex.value]))) == null ? void 0 : S.id : (O = s.options.value[s.activeOptionIndex.value]) == null ? void 0 : O.id, "aria-labelledby": (P = (A = F(s.labelRef)) == null ? void 0 : A.id) != null ? P : (M = F(s.buttonRef)) == null ? void 0 : M.id, "aria-autocomplete": "list", id: i, onCompositionstart: h, onCompositionend: g, onKeydown: m, onInput: y, onFocus: C, onBlur: b, role: "combobox", type: (I = n.type) != null ? I : "text", tabIndex: 0, ref: s.inputRef, defaultValue: p.value, disabled: s.disabled.value === !0 ? !0 : void 0 };
1745
1745
  return pe({ ourProps: K, theirProps: X, slot: L, attrs: n, slots: r, features: Qe.RenderStrategy | Qe.Static, name: "ComboboxInput" });
1746
1746
  };
1747
1747
  } }), gu = 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 }) {
@@ -1769,46 +1769,46 @@ let mu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
1769
1769
  let a = Gt("ComboboxOption"), o = `headlessui-combobox-option-${Te()}`, i = E(null), s = T(() => e.disabled);
1770
1770
  r({ el: i, $el: i });
1771
1771
  let l = T(() => {
1772
- var y;
1773
- 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;
1772
+ var b;
1773
+ return a.virtual.value ? a.activeOptionIndex.value === a.calculateIndex(e.value) : a.activeOptionIndex.value === null ? !1 : ((b = a.options.value[a.activeOptionIndex.value]) == null ? void 0 : b.id) === o;
1774
1774
  }), d = T(() => a.isSelected(e.value)), u = ke(li, null), f = T(() => ({ disabled: e.disabled, value: e.value, domRef: i, order: T(() => e.order) }));
1775
1775
  ne(() => a.registerOption(o, f)), De(() => a.unregisterOption(o, l.value)), Ee(() => {
1776
- let y = F(i);
1777
- y && u?.value.measureElement(y);
1776
+ let b = F(i);
1777
+ b && u?.value.measureElement(b);
1778
1778
  }), Ee(() => {
1779
1779
  a.comboboxState.value === 0 && l.value && (a.virtual.value || a.activationTrigger.value !== 0 && Se(() => {
1780
- var y, C;
1781
- return (C = (y = F(i)) == null ? void 0 : y.scrollIntoView) == null ? void 0 : C.call(y, { block: "nearest" });
1780
+ var b, C;
1781
+ return (C = (b = F(i)) == null ? void 0 : b.scrollIntoView) == null ? void 0 : C.call(b, { block: "nearest" });
1782
1782
  }));
1783
1783
  });
1784
- function c(y) {
1785
- y.preventDefault(), y.button === ai.Left && (s.value || (a.selectOption(o), Ko() || requestAnimationFrame(() => {
1784
+ function c(b) {
1785
+ b.preventDefault(), b.button === ai.Left && (s.value || (a.selectOption(o), Ko() || requestAnimationFrame(() => {
1786
1786
  var C;
1787
1787
  return (C = F(a.inputRef)) == null ? void 0 : C.focus({ preventScroll: !0 });
1788
1788
  }), a.mode.value === 0 && a.closeCombobox()));
1789
1789
  }
1790
1790
  function h() {
1791
- var y;
1792
- if (e.disabled || (y = a.virtual.value) != null && y.disabled(e.value)) return a.goToOption(be.Nothing);
1791
+ var b;
1792
+ if (e.disabled || (b = a.virtual.value) != null && b.disabled(e.value)) return a.goToOption(be.Nothing);
1793
1793
  let C = a.calculateIndex(e.value);
1794
1794
  a.goToOption(be.Specific, C);
1795
1795
  }
1796
1796
  let g = Zo();
1797
- function v(y) {
1798
- g.update(y);
1797
+ function v(b) {
1798
+ g.update(b);
1799
1799
  }
1800
- function m(y) {
1800
+ function m(b) {
1801
1801
  var C;
1802
- if (!g.wasMoved(y) || e.disabled || (C = a.virtual.value) != null && C.disabled(e.value) || l.value) return;
1802
+ if (!g.wasMoved(b) || e.disabled || (C = a.virtual.value) != null && C.disabled(e.value) || l.value) return;
1803
1803
  let p = a.calculateIndex(e.value);
1804
1804
  a.goToOption(be.Specific, p, 0);
1805
1805
  }
1806
- function b(y) {
1806
+ function y(b) {
1807
1807
  var C;
1808
- g.wasMoved(y) && (e.disabled || (C = a.virtual.value) != null && C.disabled(e.value) || l.value && (a.optionsPropsRef.value.hold || a.goToOption(be.Nothing)));
1808
+ g.wasMoved(b) && (e.disabled || (C = a.virtual.value) != null && C.disabled(e.value) || l.value && (a.optionsPropsRef.value.hold || a.goToOption(be.Nothing)));
1809
1809
  }
1810
1810
  return () => {
1811
- let { disabled: y } = e, C = { active: l.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: c, onFocus: h, onPointerenter: v, onMouseenter: v, onPointermove: m, onMousemove: m, onPointerleave: b, onMouseleave: b }, x = Qt(e, ["order", "value"]);
1811
+ let { disabled: b } = e, C = { active: l.value, selected: d.value, disabled: b }, p = { id: o, ref: i, role: "option", tabIndex: b === !0 ? void 0 : -1, "aria-disabled": b === !0 ? !0 : void 0, "aria-selected": d.value, disabled: void 0, onMousedown: c, onFocus: h, onPointerenter: v, onMouseenter: v, onPointermove: m, onMousemove: m, onPointerleave: y, onMouseleave: y }, x = Qt(e, ["order", "value"]);
1812
1812
  return pe({ ourProps: p, theirProps: x, slot: C, attrs: n, slots: t, name: "ComboboxOption" });
1813
1813
  };
1814
1814
  } });
@@ -1867,8 +1867,8 @@ let hn = Object.assign(R({ name: "FocusTrap", props: { as: { type: [Object, Stri
1867
1867
  v instanceof HTMLElement && v.dataset.headlessuiFocusGuard !== "true" && (fi(g, v) || (u.value ? Ne(F(a), Ce(l.value, { [xn.Forwards]: () => xe.Next, [xn.Backwards]: () => xe.Previous }) | xe.WrapAround, { relativeTo: h.target }) : h.target instanceof HTMLElement && Et(h.target)));
1868
1868
  }
1869
1869
  return () => {
1870
- let h = {}, g = { ref: a, onKeydown: f, onFocusout: c }, { features: v, initialFocus: m, containers: b, ...y } = e;
1871
- return de(fe, [!!(v & 4) && de(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) && de(Xt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Yt.Focusable })]);
1870
+ let h = {}, g = { ref: a, onKeydown: f, onFocusout: c }, { features: v, initialFocus: m, containers: y, ...b } = e;
1871
+ return de(fe, [!!(v & 4) && de(Xt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Yt.Focusable }), pe({ ourProps: g, theirProps: { ...t, ...b }, slot: h, attrs: t, slots: n, name: "FocusTrap" }), !!(v & 4) && de(Xt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Yt.Focusable })]);
1872
1872
  };
1873
1873
  } }), { features: ci });
1874
1874
  function Au(e) {
@@ -2227,15 +2227,15 @@ let Kn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", ju = R({ name: "Dialog", inheri
2227
2227
  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")), f = E(0), c = Fn(), h = T(() => e.open === Kn && c !== null ? (c.value & Oe.Open) === Oe.Open : e.open), g = E(null), v = T(() => je(g));
2228
2228
  if (a({ el: g, $el: g }), !(e.open !== Kn || c !== null)) throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
2229
2229
  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}`);
2230
- let m = T(() => l.value && h.value ? 0 : 1), b = T(() => m.value === 0), y = T(() => f.value > 1), C = ke(Xr, null) !== null, [p, x] = _u(), { resolveContainers: S, mainTreeNodeRef: O, MainTreeNode: A } = Du({ portals: p, defaultContainers: [T(() => {
2230
+ let m = T(() => l.value && h.value ? 0 : 1), y = T(() => m.value === 0), b = T(() => f.value > 1), C = ke(Xr, null) !== null, [p, x] = _u(), { resolveContainers: S, mainTreeNodeRef: O, MainTreeNode: A } = Du({ portals: p, defaultContainers: [T(() => {
2231
2231
  var te;
2232
2232
  return (te = ae.panelRef.value) != null ? te : g.value;
2233
- })] }), M = T(() => y.value ? "parent" : "leaf"), P = T(() => c !== null ? (c.value & Oe.Closing) === Oe.Closing : !1), I = T(() => C || P.value ? !1 : b.value), L = T(() => {
2233
+ })] }), M = T(() => b.value ? "parent" : "leaf"), P = T(() => c !== null ? (c.value & Oe.Closing) === Oe.Closing : !1), I = T(() => C || P.value ? !1 : y.value), L = T(() => {
2234
2234
  var te, ie, we;
2235
2235
  return (we = Array.from((ie = (te = v.value) == null ? void 0 : te.querySelectorAll("body > *")) != null ? ie : []).find((me) => me.id === "headlessui-portal-root" ? !1 : me.contains(F(O)) && me instanceof HTMLElement)) != null ? we : null;
2236
2236
  });
2237
2237
  Qa(L, I);
2238
- let $ = T(() => y.value ? !0 : b.value), Y = T(() => {
2238
+ let $ = T(() => b.value ? !0 : y.value), Y = T(() => {
2239
2239
  var te, ie, we;
2240
2240
  return (we = Array.from((ie = (te = v.value) == null ? void 0 : te.querySelectorAll("[data-headlessui-portal]")) != null ? ie : []).find((me) => me.contains(F(O)) && me instanceof HTMLElement)) != null ? we : null;
2241
2241
  });
@@ -2248,11 +2248,11 @@ let Kn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", ju = R({ name: "Dialog", inheri
2248
2248
  t("close", !1);
2249
2249
  } };
2250
2250
  Pe(Xr, ae);
2251
- let re = T(() => !(!b.value || y.value));
2251
+ let re = T(() => !(!y.value || b.value));
2252
2252
  ua(S, (te, ie) => {
2253
2253
  te.preventDefault(), ae.close(), Se(() => ie?.focus());
2254
2254
  }, re);
2255
- let ce = T(() => !(y.value || m.value !== 0));
2255
+ let ce = T(() => !(b.value || m.value !== 0));
2256
2256
  ui((i = v.value) == null ? void 0 : i.defaultView, "keydown", (te) => {
2257
2257
  ce.value && (te.defaultPrevented || te.key === Z.Escape && (te.preventDefault(), te.stopPropagation(), ae.close()));
2258
2258
  });
@@ -2273,7 +2273,7 @@ let Kn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", ju = R({ name: "Dialog", inheri
2273
2273
  we.observe(ie), te(() => we.disconnect());
2274
2274
  }), () => {
2275
2275
  let { open: te, initialFocus: ie, ...we } = e, me = { ...n, ref: g, id: s, role: u.value, "aria-modal": m.value === 0 ? !0 : void 0, "aria-labelledby": K.value, "aria-describedby": X.value }, Ae = { open: m.value === 0 };
2276
- return de(qr, { force: !0 }, () => [de(hi, () => de(Vu, { target: g.value }, () => de(qr, { force: !1 }, () => de(hn, { initialFocus: ie, containers: S, features: b.value ? Ce(M.value, { parent: hn.features.RestoreFocus, leaf: hn.features.All & ~hn.features.FocusLock }) : hn.features.None }, () => de(x, {}, () => pe({ ourProps: me, theirProps: { ...we, ...n }, slot: Ae, attrs: n, slots: r, visible: m.value === 0, features: Qe.RenderStrategy | Qe.Static, name: "Dialog" })))))), de(A)]);
2276
+ return de(qr, { force: !0 }, () => [de(hi, () => de(Vu, { target: g.value }, () => de(qr, { force: !1 }, () => de(hn, { initialFocus: ie, containers: S, features: y.value ? Ce(M.value, { parent: hn.features.RestoreFocus, leaf: hn.features.All & ~hn.features.FocusLock }) : hn.features.None }, () => de(x, {}, () => pe({ ourProps: me, theirProps: { ...we, ...n }, slot: Ae, attrs: n, slots: r, visible: m.value === 0, features: Qe.RenderStrategy | Qe.Static, name: "Dialog" })))))), de(A)]);
2277
2277
  };
2278
2278
  } });
2279
2279
  R({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
@@ -2379,7 +2379,7 @@ let Xu = R({ name: "Menu", props: { as: { type: [Object, String], default: "temp
2379
2379
  let f = { menuState: r, buttonRef: a, itemsRef: o, items: i, searchQuery: s, activeItemIndex: l, activationTrigger: d, closeMenu: () => {
2380
2380
  r.value = 1, l.value = null;
2381
2381
  }, openMenu: () => r.value = 0, goToItem(c, h, g) {
2382
- let v = u(), m = Hr(c === be.Specific ? { focus: be.Specific, id: h } : { focus: c }, { resolveItems: () => v.items, resolveActiveIndex: () => v.activeItemIndex, resolveId: (b) => b.id, resolveDisabled: (b) => b.dataRef.disabled });
2382
+ let v = u(), m = Hr(c === be.Specific ? { focus: be.Specific, id: h } : { focus: c }, { resolveItems: () => v.items, resolveActiveIndex: () => v.activeItemIndex, resolveId: (y) => y.id, resolveDisabled: (y) => y.dataRef.disabled });
2383
2383
  s.value = "", l.value = m, d.value = g ?? 1, i.value = v.items;
2384
2384
  }, search(c) {
2385
2385
  let h = s.value !== "" ? 0 : 1;
@@ -2507,12 +2507,12 @@ let Xu = R({ name: "Menu", props: { as: { type: [Object, String], default: "temp
2507
2507
  }, domRef: s }));
2508
2508
  ne(() => i.registerItem(o, u)), De(() => i.unregisterItem(o)), Ee(() => {
2509
2509
  i.menuState.value === 0 && l.value && i.activationTrigger.value !== 0 && Se(() => {
2510
- var b, y;
2511
- return (y = (b = F(s)) == null ? void 0 : b.scrollIntoView) == null ? void 0 : y.call(b, { block: "nearest" });
2510
+ var y, b;
2511
+ return (b = (y = F(s)) == null ? void 0 : y.scrollIntoView) == null ? void 0 : b.call(y, { block: "nearest" });
2512
2512
  });
2513
2513
  });
2514
- function f(b) {
2515
- if (e.disabled) return b.preventDefault();
2514
+ function f(y) {
2515
+ if (e.disabled) return y.preventDefault();
2516
2516
  i.closeMenu(), Qo(F(i.buttonRef));
2517
2517
  }
2518
2518
  function c() {
@@ -2520,18 +2520,18 @@ let Xu = R({ name: "Menu", props: { as: { type: [Object, String], default: "temp
2520
2520
  i.goToItem(be.Specific, o);
2521
2521
  }
2522
2522
  let h = Zo();
2523
- function g(b) {
2524
- h.update(b);
2523
+ function g(y) {
2524
+ h.update(y);
2525
2525
  }
2526
- function v(b) {
2527
- h.wasMoved(b) && (e.disabled || l.value || i.goToItem(be.Specific, o, 0));
2526
+ function v(y) {
2527
+ h.wasMoved(y) && (e.disabled || l.value || i.goToItem(be.Specific, o, 0));
2528
2528
  }
2529
- function m(b) {
2530
- h.wasMoved(b) && (e.disabled || l.value && i.goToItem(be.Nothing));
2529
+ function m(y) {
2530
+ h.wasMoved(y) && (e.disabled || l.value && i.goToItem(be.Nothing));
2531
2531
  }
2532
2532
  return () => {
2533
- let { disabled: b, ...y } = e, C = { active: l.value, disabled: b, close: i.closeMenu };
2534
- return pe({ ourProps: { id: o, ref: s, role: "menuitem", tabIndex: b === !0 ? void 0 : -1, "aria-disabled": b === !0 ? !0 : void 0, onClick: f, onFocus: c, onPointerenter: g, onMouseenter: g, onPointermove: v, onMousemove: v, onPointerleave: m, onMouseleave: m }, theirProps: { ...n, ...y }, slot: C, attrs: n, slots: t, name: "MenuItem" });
2533
+ let { disabled: y, ...b } = e, C = { active: l.value, disabled: y, close: i.closeMenu };
2534
+ return pe({ ourProps: { id: o, ref: s, role: "menuitem", tabIndex: y === !0 ? void 0 : -1, "aria-disabled": y === !0 ? !0 : void 0, onClick: f, onFocus: c, onPointerenter: g, onMouseenter: g, onPointermove: v, onMousemove: v, onPointerleave: m, onMouseleave: m }, theirProps: { ...n, ...b }, slot: C, attrs: n, slots: t, name: "MenuItem" });
2535
2535
  };
2536
2536
  } }), yi = /* @__PURE__ */ Symbol("LabelContext");
2537
2537
  function Ai() {
@@ -2576,22 +2576,22 @@ let Zu = R({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, prop
2576
2576
  var o;
2577
2577
  let i = (o = e.id) != null ? o : `headlessui-radiogroup-${Te()}`, s = E(null), l = E([]), d = wi({ name: "RadioGroupLabel" }), u = va({ name: "RadioGroupDescription" });
2578
2578
  a({ el: s, $el: s });
2579
- let [f, c] = Yo(T(() => e.modelValue), (m) => t("update:modelValue", m), T(() => e.defaultValue)), h = { options: l, value: f, disabled: T(() => e.disabled), firstOption: T(() => l.value.find((m) => !m.propsRef.disabled)), containsCheckedOption: T(() => l.value.some((m) => h.compare(Le(m.propsRef.value), Le(e.modelValue)))), compare(m, b) {
2579
+ let [f, c] = Yo(T(() => e.modelValue), (m) => t("update:modelValue", m), T(() => e.defaultValue)), h = { options: l, value: f, disabled: T(() => e.disabled), firstOption: T(() => l.value.find((m) => !m.propsRef.disabled)), containsCheckedOption: T(() => l.value.some((m) => h.compare(Le(m.propsRef.value), Le(e.modelValue)))), compare(m, y) {
2580
2580
  if (typeof e.by == "string") {
2581
- let y = e.by;
2582
- return m?.[y] === b?.[y];
2581
+ let b = e.by;
2582
+ return m?.[b] === y?.[b];
2583
2583
  }
2584
- return e.by(m, b);
2584
+ return e.by(m, y);
2585
2585
  }, change(m) {
2586
- var b;
2586
+ var y;
2587
2587
  if (e.disabled || h.compare(Le(f.value), Le(m))) return !1;
2588
- let y = (b = l.value.find((C) => h.compare(Le(C.propsRef.value), Le(m)))) == null ? void 0 : b.propsRef;
2589
- return y != null && y.disabled ? !1 : (c(m), !0);
2588
+ let b = (y = l.value.find((C) => h.compare(Le(C.propsRef.value), Le(m)))) == null ? void 0 : y.propsRef;
2589
+ return b != null && b.disabled ? !1 : (c(m), !0);
2590
2590
  }, registerOption(m) {
2591
- l.value.push(m), l.value = bt(l.value, (b) => b.element);
2591
+ l.value.push(m), l.value = bt(l.value, (y) => y.element);
2592
2592
  }, unregisterOption(m) {
2593
- let b = l.value.findIndex((y) => y.id === m);
2594
- b !== -1 && l.value.splice(b, 1);
2593
+ let y = l.value.findIndex((b) => b.id === m);
2594
+ y !== -1 && l.value.splice(y, 1);
2595
2595
  } };
2596
2596
  Pe(xi, h), ca({ container: T(() => F(s)), accept(m) {
2597
2597
  return m.getAttribute("role") === "radio" ? NodeFilter.FILTER_REJECT : m.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
@@ -2600,39 +2600,39 @@ let Zu = R({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, prop
2600
2600
  } });
2601
2601
  function g(m) {
2602
2602
  if (!s.value || !s.value.contains(m.target)) return;
2603
- let b = l.value.filter((y) => y.propsRef.disabled === !1).map((y) => y.element);
2603
+ let y = l.value.filter((b) => b.propsRef.disabled === !1).map((b) => b.element);
2604
2604
  switch (m.key) {
2605
2605
  case Z.Enter:
2606
2606
  lu(m.currentTarget);
2607
2607
  break;
2608
2608
  case Z.ArrowLeft:
2609
2609
  case Z.ArrowUp:
2610
- if (m.preventDefault(), m.stopPropagation(), Ne(b, xe.Previous | xe.WrapAround) === Ot.Success) {
2611
- let y = l.value.find((C) => {
2610
+ if (m.preventDefault(), m.stopPropagation(), Ne(y, xe.Previous | xe.WrapAround) === Ot.Success) {
2611
+ let b = l.value.find((C) => {
2612
2612
  var p;
2613
2613
  return C.element === ((p = je(s)) == null ? void 0 : p.activeElement);
2614
2614
  });
2615
- y && h.change(y.propsRef.value);
2615
+ b && h.change(b.propsRef.value);
2616
2616
  }
2617
2617
  break;
2618
2618
  case Z.ArrowRight:
2619
2619
  case Z.ArrowDown:
2620
- if (m.preventDefault(), m.stopPropagation(), Ne(b, xe.Next | xe.WrapAround) === Ot.Success) {
2621
- let y = l.value.find((C) => {
2620
+ if (m.preventDefault(), m.stopPropagation(), Ne(y, xe.Next | xe.WrapAround) === Ot.Success) {
2621
+ let b = l.value.find((C) => {
2622
2622
  var p;
2623
2623
  return C.element === ((p = je(C.element)) == null ? void 0 : p.activeElement);
2624
2624
  });
2625
- y && h.change(y.propsRef.value);
2625
+ b && h.change(b.propsRef.value);
2626
2626
  }
2627
2627
  break;
2628
2628
  case Z.Space:
2629
2629
  {
2630
2630
  m.preventDefault(), m.stopPropagation();
2631
- let y = l.value.find((C) => {
2631
+ let b = l.value.find((C) => {
2632
2632
  var p;
2633
2633
  return C.element === ((p = je(C.element)) == null ? void 0 : p.activeElement);
2634
2634
  });
2635
- y && h.change(y.propsRef.value);
2635
+ b && h.change(b.propsRef.value);
2636
2636
  }
2637
2637
  break;
2638
2638
  }
@@ -2648,13 +2648,13 @@ let Zu = R({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, prop
2648
2648
  h.change(e.defaultValue);
2649
2649
  }
2650
2650
  return v.value.addEventListener("reset", m), () => {
2651
- var b;
2652
- (b = v.value) == null || b.removeEventListener("reset", m);
2651
+ var y;
2652
+ (y = v.value) == null || y.removeEventListener("reset", m);
2653
2653
  };
2654
2654
  }, { immediate: !0 });
2655
2655
  }), () => {
2656
- let { disabled: m, name: b, form: y, ...C } = e, p = { ref: s, id: i, role: "radiogroup", "aria-labelledby": d.value, "aria-describedby": u.value, onKeydown: g };
2657
- return de(fe, [...b != null && f.value != null ? pa({ [b]: f.value }).map(([x, S]) => de(Xt, ni({ features: Yt.Hidden, key: x, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: y, disabled: m, name: x, value: S }))) : [], pe({ ourProps: p, theirProps: { ...n, ...Qt(C, ["modelValue", "defaultValue", "by"]) }, slot: {}, attrs: n, slots: r, name: "RadioGroup" })]);
2656
+ let { disabled: m, name: y, form: b, ...C } = e, p = { ref: s, id: i, role: "radiogroup", "aria-labelledby": d.value, "aria-describedby": u.value, onKeydown: g };
2657
+ return de(fe, [...y != null && f.value != null ? pa({ [y]: f.value }).map(([x, S]) => de(Xt, ni({ features: Yt.Hidden, key: x, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: b, disabled: m, name: x, value: S }))) : [], pe({ ourProps: p, theirProps: { ...n, ...Qt(C, ["modelValue", "defaultValue", "by"]) }, slot: {}, attrs: n, slots: r, name: "RadioGroup" })]);
2658
2658
  };
2659
2659
  } });
2660
2660
  var ed = ((e) => (e[e.Empty = 1] = "Empty", e[e.Active = 2] = "Active", e))(ed || {});
@@ -2668,18 +2668,18 @@ let td = R({ name: "RadioGroupOption", props: { as: { type: [Object, String], de
2668
2668
  var p;
2669
2669
  return ((p = i.firstOption.value) == null ? void 0 : p.id) === o;
2670
2670
  }), 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);
2671
- function b() {
2671
+ function y() {
2672
2672
  var p;
2673
2673
  i.change(e.value) && (f.value |= 2, (p = F(d)) == null || p.focus());
2674
2674
  }
2675
- function y() {
2675
+ function b() {
2676
2676
  f.value |= 2;
2677
2677
  }
2678
2678
  function C() {
2679
2679
  f.value &= -3;
2680
2680
  }
2681
2681
  return () => {
2682
- let { value: p, disabled: x, ...S } = e, O = { checked: v.value, disabled: g.value, active: !!(f.value & 2) }, A = { id: o, ref: d, role: "radio", "aria-checked": v.value ? "true" : "false", "aria-labelledby": s.value, "aria-describedby": l.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 };
2682
+ let { value: p, disabled: x, ...S } = e, O = { checked: v.value, disabled: g.value, active: !!(f.value & 2) }, A = { id: o, ref: d, role: "radio", "aria-checked": v.value ? "true" : "false", "aria-labelledby": s.value, "aria-describedby": l.value, "aria-disabled": g.value ? !0 : void 0, tabIndex: m.value, onClick: g.value ? void 0 : y, onFocus: g.value ? void 0 : b, onBlur: g.value ? void 0 : C };
2683
2683
  return pe({ ourProps: A, theirProps: S, slot: O, attrs: t, slots: n, name: "RadioGroupOption" });
2684
2684
  };
2685
2685
  } }), nd = R({ props: { onFocus: { type: Function, required: !0 } }, setup(e) {
@@ -2717,18 +2717,18 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), od = R({ name: "TabGroup", em
2717
2717
  let o = E((a = e.selectedIndex) != null ? a : e.defaultIndex), i = E([]), s = E([]), l = T(() => e.selectedIndex !== null), d = T(() => l.value ? e.selectedIndex : o.value);
2718
2718
  function u(v) {
2719
2719
  var m;
2720
- let b = bt(f.tabs.value, F), y = bt(f.panels.value, F), C = b.filter((p) => {
2720
+ let y = bt(f.tabs.value, F), b = bt(f.panels.value, F), C = y.filter((p) => {
2721
2721
  var x;
2722
2722
  return !((x = F(p)) != null && x.hasAttribute("disabled"));
2723
2723
  });
2724
- if (v < 0 || v > b.length - 1) {
2725
- 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 }), x = Ce(p, { 0: () => b.indexOf(C[0]), 1: () => b.indexOf(C[C.length - 1]) });
2726
- x !== -1 && (o.value = x), f.tabs.value = b, f.panels.value = y;
2724
+ if (v < 0 || v > y.length - 1) {
2725
+ 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 }), x = Ce(p, { 0: () => y.indexOf(C[0]), 1: () => y.indexOf(C[C.length - 1]) });
2726
+ x !== -1 && (o.value = x), f.tabs.value = y, f.panels.value = b;
2727
2727
  } else {
2728
- let p = b.slice(0, v), x = [...b.slice(v), ...p].find((O) => C.includes(O));
2728
+ let p = y.slice(0, v), x = [...y.slice(v), ...p].find((O) => C.includes(O));
2729
2729
  if (!x) return;
2730
- let S = (m = b.indexOf(x)) != null ? m : f.selectedIndex.value;
2731
- S === -1 && (S = f.selectedIndex.value), o.value = S, f.tabs.value = b, f.panels.value = y;
2730
+ let S = (m = y.indexOf(x)) != null ? m : f.selectedIndex.value;
2731
+ S === -1 && (S = f.selectedIndex.value), o.value = S, f.tabs.value = y, f.panels.value = b;
2732
2732
  }
2733
2733
  }
2734
2734
  let f = { selectedIndex: T(() => {
@@ -2739,10 +2739,10 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), od = R({ name: "TabGroup", em
2739
2739
  }, registerTab(v) {
2740
2740
  var m;
2741
2741
  if (i.value.includes(v)) return;
2742
- let b = i.value[o.value];
2742
+ let y = i.value[o.value];
2743
2743
  if (i.value.push(v), i.value = bt(i.value, F), !l.value) {
2744
- let y = (m = i.value.indexOf(b)) != null ? m : o.value;
2745
- y !== -1 && (o.value = y);
2744
+ let b = (m = i.value.indexOf(y)) != null ? m : o.value;
2745
+ b !== -1 && (o.value = b);
2746
2746
  }
2747
2747
  }, unregisterTab(v) {
2748
2748
  let m = i.value.indexOf(v);
@@ -2767,13 +2767,13 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), od = R({ name: "TabGroup", em
2767
2767
  }), Ee(() => {
2768
2768
  if (!l.value || d.value == null || f.tabs.value.length <= 0) return;
2769
2769
  let v = bt(f.tabs.value, F);
2770
- v.some((m, b) => F(f.tabs.value[b]) !== F(m)) && f.setSelectedIndex(v.findIndex((m) => F(m) === F(f.tabs.value[d.value])));
2770
+ v.some((m, y) => F(f.tabs.value[y]) !== F(m)) && f.setSelectedIndex(v.findIndex((m) => F(m) === F(f.tabs.value[d.value])));
2771
2771
  }), () => {
2772
2772
  let v = { selectedIndex: o.value };
2773
2773
  return de(fe, [i.value.length <= 0 && de(nd, { onFocus: () => {
2774
2774
  for (let m of i.value) {
2775
- let b = F(m);
2776
- if (b?.tabIndex === 0) return b.focus(), !0;
2775
+ let y = F(m);
2776
+ if (y?.tabIndex === 0) return y.focus(), !0;
2777
2777
  }
2778
2778
  return !1;
2779
2779
  } }), pe({ theirProps: { ...n, ...Qt(e, ["selectedIndex", "defaultIndex", "manual", "vertical", "onChange"]) }, ourProps: {}, slot: v, slots: t, attrs: n, name: "TabGroup" })]);
@@ -2790,57 +2790,57 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), od = R({ name: "TabGroup", em
2790
2790
  r({ el: s, $el: s }), ne(() => i.registerTab(s)), De(() => i.unregisterTab(s));
2791
2791
  let l = ke(ma), d = T(() => {
2792
2792
  if (l.value) {
2793
- let y = l.value.tabs.indexOf(o);
2794
- return y === -1 ? l.value.tabs.push(o) - 1 : y;
2793
+ let b = l.value.tabs.indexOf(o);
2794
+ return b === -1 ? l.value.tabs.push(o) - 1 : b;
2795
2795
  }
2796
2796
  return -1;
2797
2797
  }), u = T(() => {
2798
- let y = i.tabs.value.indexOf(s);
2799
- return y === -1 ? d.value : y;
2798
+ let b = i.tabs.value.indexOf(s);
2799
+ return b === -1 ? d.value : b;
2800
2800
  }), f = T(() => u.value === i.selectedIndex.value);
2801
- function c(y) {
2801
+ function c(b) {
2802
2802
  var C;
2803
- let p = y();
2803
+ let p = b();
2804
2804
  if (p === Ot.Success && i.activation.value === "auto") {
2805
2805
  let x = (C = je(s)) == null ? void 0 : C.activeElement, S = i.tabs.value.findIndex((O) => F(O) === x);
2806
2806
  S !== -1 && i.setSelectedIndex(S);
2807
2807
  }
2808
2808
  return p;
2809
2809
  }
2810
- function h(y) {
2810
+ function h(b) {
2811
2811
  let C = i.tabs.value.map((p) => F(p)).filter(Boolean);
2812
- if (y.key === Z.Space || y.key === Z.Enter) {
2813
- y.preventDefault(), y.stopPropagation(), i.setSelectedIndex(u.value);
2812
+ if (b.key === Z.Space || b.key === Z.Enter) {
2813
+ b.preventDefault(), b.stopPropagation(), i.setSelectedIndex(u.value);
2814
2814
  return;
2815
2815
  }
2816
- switch (y.key) {
2816
+ switch (b.key) {
2817
2817
  case Z.Home:
2818
2818
  case Z.PageUp:
2819
- return y.preventDefault(), y.stopPropagation(), c(() => Ne(C, xe.First));
2819
+ return b.preventDefault(), b.stopPropagation(), c(() => Ne(C, xe.First));
2820
2820
  case Z.End:
2821
2821
  case Z.PageDown:
2822
- return y.preventDefault(), y.stopPropagation(), c(() => Ne(C, xe.Last));
2822
+ return b.preventDefault(), b.stopPropagation(), c(() => Ne(C, xe.Last));
2823
2823
  }
2824
2824
  if (c(() => Ce(i.orientation.value, { vertical() {
2825
- return y.key === Z.ArrowUp ? Ne(C, xe.Previous | xe.WrapAround) : y.key === Z.ArrowDown ? Ne(C, xe.Next | xe.WrapAround) : Ot.Error;
2825
+ return b.key === Z.ArrowUp ? Ne(C, xe.Previous | xe.WrapAround) : b.key === Z.ArrowDown ? Ne(C, xe.Next | xe.WrapAround) : Ot.Error;
2826
2826
  }, horizontal() {
2827
- return y.key === Z.ArrowLeft ? Ne(C, xe.Previous | xe.WrapAround) : y.key === Z.ArrowRight ? Ne(C, xe.Next | xe.WrapAround) : Ot.Error;
2828
- } })) === Ot.Success) return y.preventDefault();
2827
+ return b.key === Z.ArrowLeft ? Ne(C, xe.Previous | xe.WrapAround) : b.key === Z.ArrowRight ? Ne(C, xe.Next | xe.WrapAround) : Ot.Error;
2828
+ } })) === Ot.Success) return b.preventDefault();
2829
2829
  }
2830
2830
  let g = E(!1);
2831
2831
  function v() {
2832
- var y;
2833
- g.value || (g.value = !0, !e.disabled && ((y = F(s)) == null || y.focus({ preventScroll: !0 }), i.setSelectedIndex(u.value), hr(() => {
2832
+ var b;
2833
+ g.value || (g.value = !0, !e.disabled && ((b = F(s)) == null || b.focus({ preventScroll: !0 }), i.setSelectedIndex(u.value), hr(() => {
2834
2834
  g.value = !1;
2835
2835
  })));
2836
2836
  }
2837
- function m(y) {
2838
- y.preventDefault();
2837
+ function m(b) {
2838
+ b.preventDefault();
2839
2839
  }
2840
- let b = da(T(() => ({ as: e.as, type: t.type })), s);
2840
+ let y = da(T(() => ({ as: e.as, type: t.type })), s);
2841
2841
  return () => {
2842
- var y, C;
2843
- let p = { selected: f.value, disabled: (y = e.disabled) != null ? y : !1 }, { ...x } = e, S = { ref: s, onKeydown: h, onMousedown: m, onClick: v, id: o, role: "tab", type: b.value, "aria-controls": (C = F(i.panels.value[u.value])) == null ? void 0 : C.id, "aria-selected": f.value, tabIndex: f.value ? 0 : -1, disabled: e.disabled ? !0 : void 0 };
2842
+ var b, C;
2843
+ let p = { selected: f.value, disabled: (b = e.disabled) != null ? b : !1 }, { ...x } = e, S = { ref: s, onKeydown: h, onMousedown: m, onClick: v, id: o, role: "tab", type: y.value, "aria-controls": (C = F(i.panels.value[u.value])) == null ? void 0 : C.id, "aria-selected": f.value, tabIndex: f.value ? 0 : -1, disabled: e.disabled ? !0 : void 0 };
2844
2844
  return pe({ ourProps: S, theirProps: x, slot: p, attrs: t, slots: n, name: "Tab" });
2845
2845
  };
2846
2846
  } }), ld = R({ name: "TabPanels", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
@@ -2954,19 +2954,19 @@ let Ci = Qe.RenderStrategy, Gr = R({ props: { as: { type: [Object, String], defa
2954
2954
  if (!pd() && ou()) return () => de(ba, { ...e, onBeforeEnter: i, onAfterEnter: s, onBeforeLeave: l, onAfterLeave: d }, r);
2955
2955
  let u = E(null), f = T(() => e.unmount ? Ct.Unmount : Ct.Hidden);
2956
2956
  a({ el: u, $el: u });
2957
- let { show: c, appear: h } = vd(), { register: g, unregister: v } = md(), m = E(c.value ? "visible" : "hidden"), b = { value: !0 }, y = Te(), C = { value: !1 }, p = Oi(() => {
2958
- !C.value && m.value !== "hidden" && (m.value = "hidden", v(y), d());
2957
+ let { show: c, appear: h } = vd(), { register: g, unregister: v } = md(), m = E(c.value ? "visible" : "hidden"), y = { value: !0 }, b = Te(), C = { value: !1 }, p = Oi(() => {
2958
+ !C.value && m.value !== "hidden" && (m.value = "hidden", v(b), d());
2959
2959
  });
2960
2960
  ne(() => {
2961
- let $ = g(y);
2961
+ let $ = g(b);
2962
2962
  De($);
2963
2963
  }), Ee(() => {
2964
- if (f.value === Ct.Hidden && y) {
2964
+ if (f.value === Ct.Hidden && b) {
2965
2965
  if (c.value && m.value !== "visible") {
2966
2966
  m.value = "visible";
2967
2967
  return;
2968
2968
  }
2969
- Ce(m.value, { hidden: () => v(y), visible: () => g(y) });
2969
+ Ce(m.value, { hidden: () => v(b), visible: () => g(b) });
2970
2970
  }
2971
2971
  });
2972
2972
  let x = _t(e.enter), S = _t(e.enterFrom), O = _t(e.enterTo), A = _t(e.entered), M = _t(e.leave), P = _t(e.leaveFrom), I = _t(e.leaveTo);
@@ -2979,16 +2979,16 @@ let Ci = Qe.RenderStrategy, Gr = R({ props: { as: { type: [Object, String], defa
2979
2979
  });
2980
2980
  });
2981
2981
  function L($) {
2982
- let Y = b.value && !h.value, X = F(u);
2982
+ let Y = y.value && !h.value, X = F(u);
2983
2983
  !X || !(X instanceof HTMLElement) || Y || (C.value = !0, c.value && i(), c.value || l(), $(c.value ? Za(X, x, S, O, A, (K) => {
2984
2984
  C.value = !1, K === Qr.Finished && s();
2985
2985
  }) : Za(X, M, P, I, A, (K) => {
2986
- C.value = !1, K === Qr.Finished && (br(p) || (m.value = "hidden", v(y), d()));
2986
+ C.value = !1, K === Qr.Finished && (br(p) || (m.value = "hidden", v(b), d()));
2987
2987
  })));
2988
2988
  }
2989
2989
  return ne(() => {
2990
2990
  ee([c], ($, Y, X) => {
2991
- L(X), b.value = !1;
2991
+ L(X), y.value = !1;
2992
2992
  }, { immediate: !0 });
2993
2993
  }), Pe(ga, p), fa(T(() => Ce(m.value, { visible: Oe.Open, hidden: Oe.Closed }) | o.value)), () => {
2994
2994
  let { appear: $, show: Y, enter: X, enterFrom: K, enterTo: ae, entered: re, leave: ce, leaveFrom: ve, leaveTo: te, ...ie } = e, we = { ref: u }, me = { ...ie, ...h.value && c.value && Ln.isServer ? { class: z([n.class, ie.class, ...x, ...S]) } : {} };
@@ -3319,7 +3319,7 @@ const gd = { class: "dropdown-trigger-button" }, bd = /* @__PURE__ */ R({
3319
3319
  size: "sm",
3320
3320
  variant: "text",
3321
3321
  shape: "rounded",
3322
- onClick: (b) => i(m),
3322
+ onClick: (y) => i(m),
3323
3323
  class: z({
3324
3324
  "bg-primary text-white! px-2!": m === a.value
3325
3325
  })
@@ -3421,24 +3421,24 @@ function eo(e, t, n = {}) {
3421
3421
  trigger: Sn
3422
3422
  } : Sn;
3423
3423
  let l = !0;
3424
- const d = (m) => ut(a).some((b) => {
3425
- if (typeof b == "string") return Array.from(r.document.querySelectorAll(b)).some((y) => y === m.target || m.composedPath().includes(y));
3424
+ const d = (m) => ut(a).some((y) => {
3425
+ if (typeof y == "string") return Array.from(r.document.querySelectorAll(y)).some((b) => b === m.target || m.composedPath().includes(b));
3426
3426
  {
3427
- const y = kn(b);
3428
- return y && (m.target === y || m.composedPath().includes(y));
3427
+ const b = kn(y);
3428
+ return b && (m.target === b || m.composedPath().includes(b));
3429
3429
  }
3430
3430
  });
3431
3431
  function u(m) {
3432
- const b = ut(m);
3433
- return b && b.$.subTree.shapeFlag === 16;
3432
+ const y = ut(m);
3433
+ return y && y.$.subTree.shapeFlag === 16;
3434
3434
  }
3435
- function f(m, b) {
3436
- const y = ut(m), C = y.$.subTree && y.$.subTree.children;
3437
- return C == null || !Array.isArray(C) ? !1 : C.some((p) => p.el === b.target || b.composedPath().includes(p.el));
3435
+ function f(m, y) {
3436
+ const b = ut(m), C = b.$.subTree && b.$.subTree.children;
3437
+ return C == null || !Array.isArray(C) ? !1 : C.some((p) => p.el === y.target || y.composedPath().includes(p.el));
3438
3438
  }
3439
3439
  const c = (m) => {
3440
- const b = kn(e);
3441
- if (m.target != null && !(!(b instanceof Element) && u(e) && f(e, m)) && !(!b || b === m.target || m.composedPath().includes(b))) {
3440
+ const y = kn(e);
3441
+ if (m.target != null && !(!(y instanceof Element) && u(e) && f(e, m)) && !(!y || y === m.target || m.composedPath().includes(y))) {
3442
3442
  if ("detail" in m && m.detail === 0 && (l = !d(m)), !l) {
3443
3443
  l = !0;
3444
3444
  return;
@@ -3457,14 +3457,14 @@ function eo(e, t, n = {}) {
3457
3457
  capture: o
3458
3458
  }),
3459
3459
  Br(r, "pointerdown", (m) => {
3460
- const b = kn(e);
3461
- l = !d(m) && !!(b && !m.composedPath().includes(b));
3460
+ const y = kn(e);
3461
+ l = !d(m) && !!(y && !m.composedPath().includes(y));
3462
3462
  }, { passive: !0 }),
3463
3463
  i && Br(r, "blur", (m) => {
3464
3464
  setTimeout(() => {
3465
- var b;
3466
- const y = kn(e);
3467
- ((b = r.document.activeElement) === null || b === void 0 ? void 0 : b.tagName) === "IFRAME" && !y?.contains(r.document.activeElement) && t(m);
3465
+ var y;
3466
+ const b = kn(e);
3467
+ ((y = r.document.activeElement) === null || y === void 0 ? void 0 : y.tagName) === "IFRAME" && !b?.contains(r.document.activeElement) && t(m);
3468
3468
  }, 0);
3469
3469
  }, { passive: !0 })
3470
3470
  ].filter(Boolean), v = () => g.forEach((m) => m());
@@ -3934,11 +3934,11 @@ function _i(e, t) {
3934
3934
  }
3935
3935
  function Oa(e, t) {
3936
3936
  t === void 0 && (t = {});
3937
- var n = t, r = n.placement, a = r === void 0 ? e.placement : r, o = n.boundary, i = o === void 0 ? ac : o, s = n.rootBoundary, l = s === void 0 ? Ii : s, d = n.elementContext, u = d === void 0 ? bn : d, f = n.altBoundary, c = f === void 0 ? !1 : f, h = n.padding, g = h === void 0 ? 0 : h, v = Fi(typeof g != "number" ? g : _i(g, jn)), m = u === bn ? oc : bn, b = e.rects.popper, y = e.elements[c ? m : u], C = kc(Tn(y) ? y : y.contextElement || Dt(e.elements.popper), i, l), p = an(e.elements.reference), x = Ri({
3937
+ var n = t, r = n.placement, a = r === void 0 ? e.placement : r, o = n.boundary, i = o === void 0 ? ac : o, s = n.rootBoundary, l = s === void 0 ? Ii : s, d = n.elementContext, u = d === void 0 ? bn : d, f = n.altBoundary, c = f === void 0 ? !1 : f, h = n.padding, g = h === void 0 ? 0 : h, v = Fi(typeof g != "number" ? g : _i(g, jn)), m = u === bn ? oc : bn, y = e.rects.popper, b = e.elements[c ? m : u], C = kc(Tn(b) ? b : b.contextElement || Dt(e.elements.popper), i, l), p = an(e.elements.reference), x = Ri({
3938
3938
  reference: p,
3939
- element: b,
3939
+ element: y,
3940
3940
  placement: a
3941
- }), S = Jr(Object.assign({}, b, x)), O = u === bn ? S : p, A = {
3941
+ }), S = Jr(Object.assign({}, y, x)), O = u === bn ? S : p, A = {
3942
3942
  top: C.top - O.top + v.top,
3943
3943
  bottom: O.bottom - C.bottom + v.bottom,
3944
3944
  left: C.left - O.left + v.left,
@@ -3983,9 +3983,9 @@ function Oc(e) {
3983
3983
  styles: {}
3984
3984
  }, f = [], c = !1, h = {
3985
3985
  state: u,
3986
- setOptions: function(b) {
3987
- var y = typeof b == "function" ? b(u.options) : b;
3988
- v(), u.options = Object.assign({}, o, u.options, y), u.scrollParents = {
3986
+ setOptions: function(y) {
3987
+ var b = typeof y == "function" ? y(u.options) : y;
3988
+ v(), u.options = Object.assign({}, o, u.options, b), u.scrollParents = {
3989
3989
  reference: Tn(s) ? On(s) : s.contextElement ? On(s.contextElement) : [],
3990
3990
  popper: On(l)
3991
3991
  };
@@ -4001,10 +4001,10 @@ function Oc(e) {
4001
4001
  // prefer the async Popper#update method
4002
4002
  forceUpdate: function() {
4003
4003
  if (!c) {
4004
- var b = u.elements, y = b.reference, C = b.popper;
4005
- if (oo(y, C)) {
4004
+ var y = u.elements, b = y.reference, C = y.popper;
4005
+ if (oo(b, C)) {
4006
4006
  u.rects = {
4007
- reference: tc(y, Nn(C), u.options.strategy === "fixed"),
4007
+ reference: tc(b, Nn(C), u.options.strategy === "fixed"),
4008
4008
  popper: xa(C)
4009
4009
  }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(P) {
4010
4010
  return u.modifiersData[P.name] = Object.assign({}, P.data);
@@ -4043,11 +4043,11 @@ function Oc(e) {
4043
4043
  });
4044
4044
  function g() {
4045
4045
  u.orderedModifiers.forEach(function(m) {
4046
- var b = m.name, y = m.options, C = y === void 0 ? {} : y, p = m.effect;
4046
+ var y = m.name, b = m.options, C = b === void 0 ? {} : b, p = m.effect;
4047
4047
  if (typeof p == "function") {
4048
4048
  var x = p({
4049
4049
  state: u,
4050
- name: b,
4050
+ name: y,
4051
4051
  instance: h,
4052
4052
  options: C
4053
4053
  }), S = function() {
@@ -4114,19 +4114,19 @@ function Dc(e) {
4114
4114
  };
4115
4115
  }
4116
4116
  function io(e) {
4117
- var t, n = e.popper, r = e.popperRect, a = e.placement, o = e.variation, i = e.offsets, s = e.position, l = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets, f = u === !0 ? Dc(i) : typeof u == "function" ? u(i) : i, c = f.x, h = c === void 0 ? 0 : c, g = f.y, v = g === void 0 ? 0 : g, m = i.hasOwnProperty("x"), b = i.hasOwnProperty("y"), y = ze, C = qe, p = window;
4117
+ var t, n = e.popper, r = e.popperRect, a = e.placement, o = e.variation, i = e.offsets, s = e.position, l = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets, f = u === !0 ? Dc(i) : typeof u == "function" ? u(i) : i, c = f.x, h = c === void 0 ? 0 : c, g = f.y, v = g === void 0 ? 0 : g, m = i.hasOwnProperty("x"), y = i.hasOwnProperty("y"), b = ze, C = qe, p = window;
4118
4118
  if (d) {
4119
4119
  var x = Nn(n), S = "clientHeight", O = "clientWidth";
4120
- x === rt(n) && (x = Dt(n), At(x).position !== "static" && s === "absolute" && (S = "scrollHeight", O = "scrollWidth")), x = x, (a === qe || (a === ze || a === nt) && o === Bn) && (C = tt, v -= x[S] - r.height, v *= l ? 1 : -1), (a === ze || (a === qe || a === tt) && o === Bn) && (y = nt, h -= x[O] - r.width, h *= l ? 1 : -1);
4120
+ x === rt(n) && (x = Dt(n), At(x).position !== "static" && s === "absolute" && (S = "scrollHeight", O = "scrollWidth")), x = x, (a === qe || (a === ze || a === nt) && o === Bn) && (C = tt, v -= x[S] - r.height, v *= l ? 1 : -1), (a === ze || (a === qe || a === tt) && o === Bn) && (b = nt, h -= x[O] - r.width, h *= l ? 1 : -1);
4121
4121
  }
4122
4122
  var A = Object.assign({
4123
4123
  position: s
4124
4124
  }, d && Pc);
4125
4125
  if (l) {
4126
4126
  var M;
4127
- return Object.assign({}, A, (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));
4127
+ return Object.assign({}, A, (M = {}, M[C] = y ? "0" : "", M[b] = m ? "0" : "", M.transform = (p.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + v + "px)" : "translate3d(" + h + "px, " + v + "px, 0)", M));
4128
4128
  }
4129
- return Object.assign({}, A, (t = {}, t[C] = b ? v + "px" : "", t[y] = m ? h + "px" : "", t.transform = "", t));
4129
+ return Object.assign({}, A, (t = {}, t[C] = y ? v + "px" : "", t[b] = m ? h + "px" : "", t.transform = "", t));
4130
4130
  }
4131
4131
  function Ic(e) {
4132
4132
  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, s = n.roundOffsets, l = s === void 0 ? !0 : s, d = {
@@ -4213,7 +4213,7 @@ function Nc(e) {
4213
4213
  rootBoundary: d,
4214
4214
  padding: f,
4215
4215
  altBoundary: u
4216
- }), b = dt(t.placement), y = sn(t.placement), C = !y, p = ka(b), x = Vc(p), S = t.modifiersData.popperOffsets, O = t.rects.reference, A = t.rects.popper, M = typeof v == "function" ? v(Object.assign({}, t.rects, {
4216
+ }), y = dt(t.placement), b = sn(t.placement), C = !b, p = ka(y), x = Vc(p), S = t.modifiersData.popperOffsets, O = t.rects.reference, A = t.rects.popper, M = typeof v == "function" ? v(Object.assign({}, t.rects, {
4217
4217
  placement: t.placement
4218
4218
  })) : v, P = {
4219
4219
  x: 0,
@@ -4221,7 +4221,7 @@ function Nc(e) {
4221
4221
  };
4222
4222
  if (S) {
4223
4223
  if (o || s) {
4224
- var I = p === "y" ? qe : ze, L = p === "y" ? tt : nt, $ = p === "y" ? "height" : "width", Y = S[p], X = S[p] + m[I], K = S[p] - m[L], ae = h ? -A[$] / 2 : 0, re = y === on ? O[$] : A[$], ce = y === on ? -A[$] : -O[$], ve = t.elements.arrow, te = h && ve ? xa(ve) : {
4224
+ var I = p === "y" ? qe : ze, L = p === "y" ? tt : nt, $ = p === "y" ? "height" : "width", Y = S[p], X = S[p] + m[I], K = S[p] - m[L], ae = h ? -A[$] / 2 : 0, re = b === on ? O[$] : A[$], ce = b === on ? -A[$] : -O[$], ve = t.elements.arrow, te = h && ve ? xa(ve) : {
4225
4225
  width: 0,
4226
4226
  height: 0
4227
4227
  }, ie = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Li(), we = ie[I], me = ie[L], Ae = ir(0, O[$], te[$]), Be = C ? O[$] / 2 - ae - Ae - we - M : re - Ae - we - M, ot = C ? -O[$] / 2 + ae + Ae + me + M : ce + Ae + 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 = S[p] + Be - Ze - it, Mt = S[p] + ot - Ze;
@@ -4292,7 +4292,7 @@ function zc(e) {
4292
4292
  function Uc(e) {
4293
4293
  var t = e.state, n = e.options, r = e.name;
4294
4294
  if (!t.modifiersData[r]._skip) {
4295
- for (var a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, s = i === void 0 ? !0 : i, l = n.fallbackPlacements, d = n.padding, u = n.boundary, f = n.rootBoundary, c = 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 = l || (y || !g ? [sr(m)] : zc(m)), p = [m].concat(C).reduce(function(me, Ae) {
4295
+ for (var a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, s = i === void 0 ? !0 : i, l = n.fallbackPlacements, d = n.padding, u = n.boundary, f = n.rootBoundary, c = n.altBoundary, h = n.flipVariations, g = h === void 0 ? !0 : h, v = n.allowedAutoPlacements, m = t.options.placement, y = dt(m), b = y === m, C = l || (b || !g ? [sr(m)] : zc(m)), p = [m].concat(C).reduce(function(me, Ae) {
4296
4296
  return me.concat(dt(Ae) === Sa ? qc(t, {
4297
4297
  placement: Ae,
4298
4298
  boundary: u,
@@ -4379,7 +4379,7 @@ var Gc = {
4379
4379
  function Jc(e) {
4380
4380
  var t, n = e.state, r = e.name, a = e.options, o = n.elements.arrow, i = n.modifiersData.popperOffsets, s = dt(n.placement), l = ka(s), d = [ze, nt].indexOf(s) >= 0, u = d ? "height" : "width";
4381
4381
  if (!(!o || !i)) {
4382
- var f = Kc(a.padding, n), c = xa(o), h = l === "y" ? qe : ze, g = l === "y" ? tt : nt, v = n.rects.reference[u] + n.rects.reference[l] - i[l] - n.rects.popper[u], m = i[l] - n.rects.reference[l], b = Nn(o), y = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = v / 2 - m / 2, p = f[h], x = y - c[u] - f[g], S = y / 2 - c[u] / 2 + C, O = ir(p, S, x), A = l;
4382
+ var f = Kc(a.padding, n), c = xa(o), h = l === "y" ? qe : ze, g = l === "y" ? tt : nt, v = n.rects.reference[u] + n.rects.reference[l] - i[l] - n.rects.popper[u], m = i[l] - n.rects.reference[l], y = Nn(o), b = y ? l === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, C = v / 2 - m / 2, p = f[h], x = b - c[u] - f[g], S = b / 2 - c[u] / 2 + C, O = ir(p, S, x), A = l;
4383
4383
  n.modifiersData[r] = (t = {}, t[A] = O, t.centerOffset = O - S, t);
4384
4384
  }
4385
4385
  }
@@ -4412,9 +4412,9 @@ function tf({
4412
4412
  popperInstance: null
4413
4413
  }), d = (v) => {
4414
4414
  var m;
4415
- (m = l.popperInstance) === null || m === void 0 || m.setOptions((b) => ({
4416
- ...b,
4417
- modifiers: [...b.modifiers, {
4415
+ (m = l.popperInstance) === null || m === void 0 || m.setOptions((y) => ({
4416
+ ...y,
4417
+ modifiers: [...y.modifiers, {
4418
4418
  name: "eventListeners",
4419
4419
  enabled: v
4420
4420
  }]
@@ -4668,8 +4668,8 @@ var Ni = {
4668
4668
  locked: g,
4669
4669
  offsetDistance: v,
4670
4670
  offsetSkid: m,
4671
- openDelay: b,
4672
- placement: y,
4671
+ openDelay: y,
4672
+ placement: b,
4673
4673
  show: C
4674
4674
  } = jo(n), {
4675
4675
  isOpen: p,
@@ -4681,12 +4681,12 @@ var Ni = {
4681
4681
  locked: g,
4682
4682
  offsetDistance: v,
4683
4683
  offsetSkid: m,
4684
- placement: y,
4684
+ placement: b,
4685
4685
  popperNode: o,
4686
4686
  triggerNode: i
4687
4687
  }), {
4688
4688
  hasContent: O
4689
- } = Kd(r, o, u), A = T(() => C.value !== null), M = T(() => c.value || !O.value), P = T(() => p.value && !M.value), I = T(() => !f.value && !A.value), L = T(() => h.value ? `border: ${v.value}px solid transparent; margin: -${v.value}px;` : null), $ = Mr.debounce(x, b.value), Y = Mr.debounce(S, d.value), X = async () => {
4689
+ } = Kd(r, o, u), A = T(() => C.value !== null), M = T(() => c.value || !O.value), P = T(() => p.value && !M.value), I = T(() => !f.value && !A.value), L = T(() => h.value ? `border: ${v.value}px solid transparent; margin: -${v.value}px;` : null), $ = Mr.debounce(x, y.value), Y = Mr.debounce(S, d.value), X = async () => {
4690
4690
  M.value || A.value || (Y.clear(), $());
4691
4691
  }, K = async () => {
4692
4692
  A.value || ($.clear(), Y());
@@ -5386,7 +5386,7 @@ var Ep = function(t, n) {
5386
5386
  function Tp(e) {
5387
5387
  var t, n = e.state, r = e.name, a = e.options, o = n.elements.arrow, i = n.modifiersData.popperOffsets, s = ct(n.placement), l = Ba(s), d = [Ve, Ke].indexOf(s) >= 0, u = d ? "height" : "width";
5388
5388
  if (!(!o || !i)) {
5389
- var f = Ep(a.padding, n), c = Ta(o), h = l === "y" ? _e : Ve, g = l === "y" ? Ge : Ke, v = n.rects.reference[u] + n.rects.reference[l] - i[l] - n.rects.popper[u], m = i[l] - n.rects.reference[l], b = Hn(o), y = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = v / 2 - m / 2, p = f[h], x = y - c[u] - f[g], S = y / 2 - c[u] / 2 + C, O = Cn(p, S, x), A = l;
5389
+ var f = Ep(a.padding, n), c = Ta(o), h = l === "y" ? _e : Ve, g = l === "y" ? Ge : Ke, v = n.rects.reference[u] + n.rects.reference[l] - i[l] - n.rects.popper[u], m = i[l] - n.rects.reference[l], y = Hn(o), b = y ? l === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, C = v / 2 - m / 2, p = f[h], x = b - c[u] - f[g], S = b / 2 - c[u] / 2 + C, O = Cn(p, S, x), A = l;
5390
5390
  n.modifiersData[r] = (t = {}, t[A] = O, t.centerOffset = O - S, t);
5391
5391
  }
5392
5392
  }
@@ -5420,7 +5420,7 @@ function Ip(e) {
5420
5420
  };
5421
5421
  }
5422
5422
  function fo(e) {
5423
- var t, n = e.popper, r = e.popperRect, a = e.placement, o = e.variation, i = e.offsets, s = e.position, l = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets, f = e.isFixed, c = u === !0 ? Ip(i) : typeof u == "function" ? u(i) : i, h = c.x, g = h === void 0 ? 0 : h, v = c.y, m = v === void 0 ? 0 : v, b = i.hasOwnProperty("x"), y = i.hasOwnProperty("y"), C = Ve, p = _e, x = window;
5423
+ var t, n = e.popper, r = e.popperRect, a = e.placement, o = e.variation, i = e.offsets, s = e.position, l = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets, f = e.isFixed, c = u === !0 ? Ip(i) : typeof u == "function" ? u(i) : i, h = c.x, g = h === void 0 ? 0 : h, v = c.y, m = v === void 0 ? 0 : v, y = i.hasOwnProperty("x"), b = i.hasOwnProperty("y"), C = Ve, p = _e, x = window;
5424
5424
  if (d) {
5425
5425
  var S = Hn(n), O = "clientHeight", A = "clientWidth";
5426
5426
  if (S === at(n) && (S = It(n), vt(S).position !== "static" && s === "absolute" && (O = "scrollHeight", A = "scrollWidth")), S = S, a === _e || (a === Ve || a === Ke) && o === Dn) {
@@ -5445,9 +5445,9 @@ function fo(e) {
5445
5445
  }, d && Dp);
5446
5446
  if (l) {
5447
5447
  var L;
5448
- return Object.assign({}, I, (L = {}, L[p] = y ? "0" : "", L[C] = b ? "0" : "", L.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + g + "px, " + m + "px)" : "translate3d(" + g + "px, " + m + "px, 0)", L));
5448
+ return Object.assign({}, I, (L = {}, L[p] = b ? "0" : "", L[C] = y ? "0" : "", L.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + g + "px, " + m + "px)" : "translate3d(" + g + "px, " + m + "px, 0)", L));
5449
5449
  }
5450
- return Object.assign({}, I, (t = {}, t[p] = y ? m + "px" : "", t[C] = b ? g + "px" : "", t.transform = "", t));
5450
+ return Object.assign({}, I, (t = {}, t[p] = b ? m + "px" : "", t[C] = y ? g + "px" : "", t.transform = "", t));
5451
5451
  }
5452
5452
  function Mp(e) {
5453
5453
  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, s = n.roundOffsets, l = s === void 0 ? !0 : s, d = {
@@ -5640,11 +5640,11 @@ function ts(e) {
5640
5640
  }
5641
5641
  function In(e, t) {
5642
5642
  t === void 0 && (t = {});
5643
- var n = t, r = n.placement, a = r === void 0 ? e.placement : r, o = n.boundary, i = o === void 0 ? dp : o, s = n.rootBoundary, l = s === void 0 ? Ui : s, d = n.elementContext, u = d === void 0 ? yn : d, f = n.altBoundary, c = f === void 0 ? !1 : f, h = n.padding, g = h === void 0 ? 0 : h, v = Ji(typeof g != "number" ? g : Zi(g, Wn)), m = u === yn ? cp : yn, b = e.rects.popper, y = e.elements[c ? m : u], C = Hp(un(y) ? y : y.contextElement || It(e.elements.popper), i, l), p = cn(e.elements.reference), x = ts({
5643
+ var n = t, r = n.placement, a = r === void 0 ? e.placement : r, o = n.boundary, i = o === void 0 ? dp : o, s = n.rootBoundary, l = s === void 0 ? Ui : s, d = n.elementContext, u = d === void 0 ? yn : d, f = n.altBoundary, c = f === void 0 ? !1 : f, h = n.padding, g = h === void 0 ? 0 : h, v = Ji(typeof g != "number" ? g : Zi(g, Wn)), m = u === yn ? cp : yn, y = e.rects.popper, b = e.elements[c ? m : u], C = Hp(un(b) ? b : b.contextElement || It(e.elements.popper), i, l), p = cn(e.elements.reference), x = ts({
5644
5644
  reference: p,
5645
- element: b,
5645
+ element: y,
5646
5646
  placement: a
5647
- }), S = ta(Object.assign({}, b, x)), O = u === yn ? S : p, A = {
5647
+ }), S = ta(Object.assign({}, y, x)), O = u === yn ? S : p, A = {
5648
5648
  top: C.top - O.top + v.top,
5649
5649
  bottom: O.bottom - C.bottom + v.bottom,
5650
5650
  left: C.left - O.left + v.left,
@@ -5688,7 +5688,7 @@ function zp(e) {
5688
5688
  function Up(e) {
5689
5689
  var t = e.state, n = e.options, r = e.name;
5690
5690
  if (!t.modifiersData[r]._skip) {
5691
- for (var a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, s = i === void 0 ? !0 : i, l = n.fallbackPlacements, d = n.padding, u = n.boundary, f = n.rootBoundary, c = 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 = l || (y || !g ? [lr(m)] : zp(m)), p = [m].concat(C).reduce(function(me, Ae) {
5691
+ for (var a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, s = i === void 0 ? !0 : i, l = n.fallbackPlacements, d = n.padding, u = n.boundary, f = n.rootBoundary, c = n.altBoundary, h = n.flipVariations, g = h === void 0 ? !0 : h, v = n.allowedAutoPlacements, m = t.options.placement, y = ct(m), b = y === m, C = l || (b || !g ? [lr(m)] : zp(m)), p = [m].concat(C).reduce(function(me, Ae) {
5692
5692
  return me.concat(ct(Ae) === Ea ? qp(t, {
5693
5693
  placement: Ae,
5694
5694
  boundary: u,
@@ -5831,7 +5831,7 @@ function nv(e) {
5831
5831
  rootBoundary: d,
5832
5832
  padding: f,
5833
5833
  altBoundary: u
5834
- }), b = ct(t.placement), y = fn(t.placement), C = !y, p = Ba(b), x = tv(p), S = t.modifiersData.popperOffsets, O = t.rects.reference, A = t.rects.popper, M = typeof v == "function" ? v(Object.assign({}, t.rects, {
5834
+ }), y = ct(t.placement), b = fn(t.placement), C = !b, p = Ba(y), x = tv(p), S = t.modifiersData.popperOffsets, O = t.rects.reference, A = t.rects.popper, M = typeof v == "function" ? v(Object.assign({}, t.rects, {
5835
5835
  placement: t.placement
5836
5836
  })) : v, P = typeof M == "number" ? {
5837
5837
  mainAxis: M,
@@ -5845,14 +5845,14 @@ function nv(e) {
5845
5845
  };
5846
5846
  if (S) {
5847
5847
  if (o) {
5848
- var $, Y = p === "y" ? _e : Ve, X = p === "y" ? Ge : Ke, K = p === "y" ? "height" : "width", ae = S[p], re = ae + m[Y], ce = ae - m[X], ve = h ? -A[K] / 2 : 0, te = y === ln ? O[K] : A[K], ie = y === ln ? -A[K] : -O[K], we = t.elements.arrow, me = h && we ? Ta(we) : {
5848
+ var $, Y = p === "y" ? _e : Ve, X = p === "y" ? Ge : Ke, K = p === "y" ? "height" : "width", ae = S[p], re = ae + m[Y], ce = ae - m[X], ve = h ? -A[K] / 2 : 0, te = b === ln ? O[K] : A[K], ie = b === ln ? -A[K] : -O[K], we = t.elements.arrow, me = h && we ? Ta(we) : {
5849
5849
  width: 0,
5850
5850
  height: 0
5851
5851
  }, Ae = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ki(), Be = Ae[Y], ot = Ae[X], Re = Cn(0, O[K], me[K]), it = C ? O[K] / 2 - ve - Re - Be - P.mainAxis : te - Re - Be - P.mainAxis, Ze = C ? -O[K] / 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 = ($ = I?.[p]) != null ? $ : 0, Kt = ae + it - wt - Mt, Jt = ae + Ze - wt, st = Cn(h ? dr(re, Kt) : re, ae, h ? qt(ce, Jt) : ce);
5852
5852
  S[p] = st, L[p] = st - ae;
5853
5853
  }
5854
5854
  if (s) {
5855
- var xt, $t = p === "x" ? _e : Ve, Rt = p === "x" ? Ge : Ke, ht = S[x], St = 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 - O[St] - A[St] - qn + P.altAxis, Un = mn ? ht + O[St] + A[St] - qn - P.altAxis : Lt, Yn = h && mn ? Cp(zn, ht, Un) : Cn(h ? zn : vn, ht, h ? Un : Lt);
5855
+ var xt, $t = p === "x" ? _e : Ve, Rt = p === "x" ? Ge : Ke, ht = S[x], St = x === "y" ? "height" : "width", vn = ht + m[$t], Lt = ht - m[Rt], mn = [_e, Ve].indexOf(y) !== -1, qn = (xt = I?.[x]) != null ? xt : 0, zn = mn ? vn : ht - O[St] - A[St] - qn + P.altAxis, Un = mn ? ht + O[St] + A[St] - qn - P.altAxis : Lt, Yn = h && mn ? Cp(zn, ht, Un) : Cn(h ? zn : vn, ht, h ? Un : Lt);
5856
5856
  S[x] = Yn, L[x] = Yn - ht;
5857
5857
  }
5858
5858
  t.modifiersData[r] = L;
@@ -5974,9 +5974,9 @@ function fv(e) {
5974
5974
  styles: {}
5975
5975
  }, f = [], c = !1, h = {
5976
5976
  state: u,
5977
- setOptions: function(b) {
5978
- var y = typeof b == "function" ? b(u.options) : b;
5979
- v(), u.options = Object.assign({}, o, u.options, y), u.scrollParents = {
5977
+ setOptions: function(y) {
5978
+ var b = typeof y == "function" ? y(u.options) : y;
5979
+ v(), u.options = Object.assign({}, o, u.options, b), u.scrollParents = {
5980
5980
  reference: un(s) ? En(s) : s.contextElement ? En(s.contextElement) : [],
5981
5981
  popper: En(l)
5982
5982
  };
@@ -5992,10 +5992,10 @@ function fv(e) {
5992
5992
  // prefer the async Popper#update method
5993
5993
  forceUpdate: function() {
5994
5994
  if (!c) {
5995
- var b = u.elements, y = b.reference, C = b.popper;
5996
- if (bo(y, C)) {
5995
+ var y = u.elements, b = y.reference, C = y.popper;
5996
+ if (bo(b, C)) {
5997
5997
  u.rects = {
5998
- reference: sv(y, Hn(C), u.options.strategy === "fixed"),
5998
+ reference: sv(b, Hn(C), u.options.strategy === "fixed"),
5999
5999
  popper: Ta(C)
6000
6000
  }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(P) {
6001
6001
  return u.modifiersData[P.name] = Object.assign({}, P.data);
@@ -6034,11 +6034,11 @@ function fv(e) {
6034
6034
  });
6035
6035
  function g() {
6036
6036
  u.orderedModifiers.forEach(function(m) {
6037
- var b = m.name, y = m.options, C = y === void 0 ? {} : y, p = m.effect;
6037
+ var y = m.name, b = m.options, C = b === void 0 ? {} : b, p = m.effect;
6038
6038
  if (typeof p == "function") {
6039
6039
  var x = p({
6040
6040
  state: u,
6041
- name: b,
6041
+ name: y,
6042
6042
  instance: h,
6043
6043
  options: C
6044
6044
  }), S = function() {
@@ -6158,8 +6158,8 @@ function xv(e, t) {
6158
6158
  var o = a.popperRect, i = a.popperState, s = a.props, l = s.interactiveBorder, d = ls(i.placement), u = i.modifiersData.offset;
6159
6159
  if (!u)
6160
6160
  return !0;
6161
- var f = d === "bottom" ? u.top.y : 0, c = d === "top" ? u.bottom.y : 0, h = d === "right" ? u.left.x : 0, g = d === "left" ? u.right.x : 0, v = o.top - r + f > l, m = r - o.bottom - c > l, b = o.left - n + h > l, y = n - o.right - g > l;
6162
- return v || m || b || y;
6161
+ var f = d === "bottom" ? u.top.y : 0, c = d === "top" ? u.bottom.y : 0, h = d === "right" ? u.left.x : 0, g = d === "left" ? u.right.x : 0, v = o.top - r + f > l, m = r - o.bottom - c > l, y = o.left - n + h > l, b = n - o.right - g > l;
6162
+ return v || m || y || b;
6163
6163
  });
6164
6164
  }
6165
6165
  function _r(e, t, n) {
@@ -6353,7 +6353,7 @@ function fs(e) {
6353
6353
  fs.$$tippy = !0;
6354
6354
  var $v = 1, nr = [], Vr = [];
6355
6355
  function Rv(e, t) {
6356
- var n = ko(e, Object.assign({}, et, cs(wo(t)))), r, a, o, i = !1, s = !1, l = !1, d = !1, u, f, c, h = [], g = yo(Kt, n.interactiveDebounce), v, m = $v++, b = null, y = bv(n.plugins), C = {
6356
+ var n = ko(e, Object.assign({}, et, cs(wo(t)))), r, a, o, i = !1, s = !1, l = !1, d = !1, u, f, c, h = [], g = yo(Kt, n.interactiveDebounce), v, m = $v++, y = null, b = bv(n.plugins), C = {
6357
6357
  // Is the instance currently enabled?
6358
6358
  isEnabled: !0,
6359
6359
  // Is the tippy currently showing and not transitioning out?
@@ -6369,10 +6369,10 @@ function Rv(e, t) {
6369
6369
  id: m,
6370
6370
  reference: e,
6371
6371
  popper: zt(),
6372
- popperInstance: b,
6372
+ popperInstance: y,
6373
6373
  props: n,
6374
6374
  state: C,
6375
- plugins: y,
6375
+ plugins: b,
6376
6376
  // methods
6377
6377
  clearDelayTimeouts: zn,
6378
6378
  setProps: Un,
@@ -6389,7 +6389,7 @@ function Rv(e, t) {
6389
6389
  return p;
6390
6390
  var x = n.render(p), S = x.popper, O = x.onUpdate;
6391
6391
  S.setAttribute("data-tippy-root", ""), S.id = "tippy-" + p.id, p.popper = S, e._tippy = p, S._tippy = p;
6392
- var A = y.map(function(D) {
6392
+ var A = b.map(function(D) {
6393
6393
  return D.fn(p);
6394
6394
  }), M = e.hasAttribute("aria-expanded");
6395
6395
  return mt(), ve(), ae(), re("onCreate", [p]), n.showOnCreate && vn(), S.addEventListener("mouseenter", function() {
@@ -6843,49 +6843,49 @@ var Lv = Object.assign({}, Qi, {
6843
6843
  }
6844
6844
  };
6845
6845
  }
6846
- }, b = q(zt(), Object.assign({}, hv(n, ["overrides"]), {
6846
+ }, y = q(zt(), Object.assign({}, hv(n, ["overrides"]), {
6847
6847
  plugins: [m].concat(n.plugins || []),
6848
6848
  triggerTarget: i,
6849
6849
  popperOptions: Object.assign({}, n.popperOptions, {
6850
6850
  modifiers: [].concat(((r = n.popperOptions) == null ? void 0 : r.modifiers) || [], [Lv])
6851
6851
  })
6852
- })), y = b.show;
6853
- b.show = function(p) {
6854
- if (y(), !s && p == null)
6855
- return v(b, o[0]);
6852
+ })), b = y.show;
6853
+ y.show = function(p) {
6854
+ if (b(), !s && p == null)
6855
+ return v(y, o[0]);
6856
6856
  if (!(s && p == null)) {
6857
6857
  if (typeof p == "number")
6858
- return o[p] && v(b, o[p]);
6858
+ return o[p] && v(y, o[p]);
6859
6859
  if (a.indexOf(p) >= 0) {
6860
6860
  var x = p.reference;
6861
- return v(b, x);
6861
+ return v(y, x);
6862
6862
  }
6863
6863
  if (o.indexOf(p) >= 0)
6864
- return v(b, p);
6864
+ return v(y, p);
6865
6865
  }
6866
- }, b.showNext = function() {
6866
+ }, y.showNext = function() {
6867
6867
  var p = o[0];
6868
6868
  if (!s)
6869
- return b.show(0);
6869
+ return y.show(0);
6870
6870
  var x = o.indexOf(s);
6871
- b.show(o[x + 1] || p);
6872
- }, b.showPrevious = function() {
6871
+ y.show(o[x + 1] || p);
6872
+ }, y.showPrevious = function() {
6873
6873
  var p = o[o.length - 1];
6874
6874
  if (!s)
6875
- return b.show(p);
6875
+ return y.show(p);
6876
6876
  var x = o.indexOf(s), S = o[x - 1] || p;
6877
- b.show(S);
6877
+ y.show(S);
6878
6878
  };
6879
- var C = b.setProps;
6880
- return b.setProps = function(p) {
6879
+ var C = y.setProps;
6880
+ return y.setProps = function(p) {
6881
6881
  l = p.overrides || l, C(p);
6882
- }, b.setInstances = function(p) {
6882
+ }, y.setInstances = function(p) {
6883
6883
  h(!0), d.forEach(function(x) {
6884
6884
  return x();
6885
- }), a = p, h(!1), c(), f(), d = g(b), b.setProps({
6885
+ }), a = p, h(!1), c(), f(), d = g(y), y.setProps({
6886
6886
  triggerTarget: i
6887
6887
  });
6888
- }, d = g(b), b;
6888
+ }, d = g(y), y;
6889
6889
  }, _v = {
6890
6890
  name: "animateFill",
6891
6891
  defaultValue: !1,
@@ -6957,13 +6957,13 @@ var Wv = {
6957
6957
  }), a = !1;
6958
6958
  }
6959
6959
  function c(v) {
6960
- var m = v.target ? n.contains(v.target) : !0, b = t.props.followCursor, y = v.clientX, C = v.clientY, p = n.getBoundingClientRect(), x = y - p.left, S = C - p.top;
6960
+ var m = v.target ? n.contains(v.target) : !0, y = t.props.followCursor, b = v.clientX, C = v.clientY, p = n.getBoundingClientRect(), x = b - p.left, S = C - p.top;
6961
6961
  (m || !t.props.interactive) && t.setProps({
6962
6962
  // @ts-ignore - unneeded DOMRect properties
6963
6963
  getReferenceClientRect: function() {
6964
- var A = n.getBoundingClientRect(), M = y, P = C;
6965
- b === "initial" && (M = A.left + x, P = A.top + S);
6966
- var I = b === "horizontal" ? A.top : P, L = b === "vertical" ? A.right : M, $ = b === "horizontal" ? A.bottom : P, Y = b === "vertical" ? A.left : M;
6964
+ var A = n.getBoundingClientRect(), M = b, P = C;
6965
+ y === "initial" && (M = A.left + x, P = A.top + S);
6966
+ var I = y === "horizontal" ? A.top : P, L = y === "vertical" ? A.right : M, $ = y === "horizontal" ? A.bottom : P, Y = y === "vertical" ? A.left : M;
6967
6967
  return {
6968
6968
  width: L - Y,
6969
6969
  height: $ - I,
@@ -6994,18 +6994,18 @@ var Wv = {
6994
6994
  onBeforeUpdate: function() {
6995
6995
  s = t.props;
6996
6996
  },
6997
- onAfterUpdate: function(m, b) {
6998
- var y = b.followCursor;
6999
- a || y !== void 0 && s.followCursor !== y && (g(), y ? (h(), t.state.isMounted && !o && !l() && d()) : (u(), f()));
6997
+ onAfterUpdate: function(m, y) {
6998
+ var b = y.followCursor;
6999
+ a || b !== void 0 && s.followCursor !== b && (g(), b ? (h(), t.state.isMounted && !o && !l() && d()) : (u(), f()));
7000
7000
  },
7001
7001
  onMount: function() {
7002
7002
  t.props.followCursor && !o && (i && (c(ra), i = !1), l() || d());
7003
7003
  },
7004
- onTrigger: function(m, b) {
7005
- $a(b) && (ra = {
7006
- clientX: b.clientX,
7007
- clientY: b.clientY
7008
- }), o = b.type === "focus";
7004
+ onTrigger: function(m, y) {
7005
+ $a(y) && (ra = {
7006
+ clientX: y.clientX,
7007
+ clientY: y.clientY
7008
+ }), o = y.type === "focus";
7009
7009
  },
7010
7010
  onHidden: function() {
7011
7011
  t.props.followCursor && (f(), u(), i = !0);
@@ -7060,10 +7060,10 @@ var qv = {
7060
7060
  onAfterUpdate: f,
7061
7061
  onTrigger: function(h, g) {
7062
7062
  if ($a(g)) {
7063
- var v = pn(t.reference.getClientRects()), m = v.find(function(y) {
7064
- return y.left - 2 <= g.clientX && y.right + 2 >= g.clientX && y.top - 2 <= g.clientY && y.bottom + 2 >= g.clientY;
7065
- }), b = v.indexOf(m);
7066
- o = b > -1 ? b : o;
7063
+ var v = pn(t.reference.getClientRects()), m = v.find(function(b) {
7064
+ return b.left - 2 <= g.clientX && b.right + 2 >= g.clientX && b.top - 2 <= g.clientY && b.bottom + 2 >= g.clientY;
7065
+ }), y = v.indexOf(m);
7066
+ o = y > -1 ? y : o;
7067
7067
  }
7068
7068
  },
7069
7069
  onHidden: function() {
@@ -7098,11 +7098,11 @@ function zv(e, t, n, r) {
7098
7098
  return S.right;
7099
7099
  })), v = n.filter(function(S) {
7100
7100
  return e === "left" ? S.left === h : S.right === g;
7101
- }), m = v[0].top, b = v[v.length - 1].bottom, y = h, C = g, p = C - y, x = b - m;
7101
+ }), m = v[0].top, y = v[v.length - 1].bottom, b = h, C = g, p = C - b, x = y - m;
7102
7102
  return {
7103
7103
  top: m,
7104
- bottom: b,
7105
- left: y,
7104
+ bottom: y,
7105
+ left: b,
7106
7106
  right: C,
7107
7107
  width: p,
7108
7108
  height: x
@@ -7215,10 +7215,10 @@ function vs(e, t = {}, n = { mount: !0, appName: "Tippy" }) {
7215
7215
  }, m = () => {
7216
7216
  var O;
7217
7217
  (O = a.value) === null || O === void 0 || O.show();
7218
- }, b = () => {
7218
+ }, y = () => {
7219
7219
  var O;
7220
7220
  (O = a.value) === null || O === void 0 || O.hide();
7221
- }, y = () => {
7221
+ }, b = () => {
7222
7222
  var O;
7223
7223
  (O = a.value) === null || O === void 0 || O.disable(), o.value.isEnabled = !1;
7224
7224
  }, C = () => {
@@ -7239,9 +7239,9 @@ function vs(e, t = {}, n = { mount: !0, appName: "Tippy" }) {
7239
7239
  setContent: h,
7240
7240
  setProps: g,
7241
7241
  destroy: v,
7242
- hide: b,
7242
+ hide: y,
7243
7243
  show: m,
7244
- disable: y,
7244
+ disable: b,
7245
7245
  enable: C,
7246
7246
  unmount: p,
7247
7247
  mount: x,
@@ -7368,24 +7368,24 @@ const ms = R({
7368
7368
  class: e.contentClass
7369
7369
  }, f(c)) : null;
7370
7370
  if (e.to === "parent") {
7371
- const b = [];
7371
+ const y = [];
7372
7372
  if (!a.value) {
7373
- const y = de("span", {
7373
+ const b = de("span", {
7374
7374
  ref: o,
7375
7375
  "data-v-tippy": "",
7376
7376
  style: { display: "none" }
7377
7377
  });
7378
- b.push(y);
7378
+ y.push(b);
7379
7379
  }
7380
- return g && b.push(g), b;
7380
+ return g && y.push(g), y;
7381
7381
  }
7382
7382
  const v = t.default ? t.default(c) : [];
7383
7383
  if (!e.tag) {
7384
- const b = de(v[0], {
7384
+ const y = de(v[0], {
7385
7385
  ref: a,
7386
7386
  "data-v-tippy": ""
7387
7387
  });
7388
- return g ? [b, g] : b;
7388
+ return g ? [y, g] : y;
7389
7389
  }
7390
7390
  const m = (typeof e.tag == "string", e.tag);
7391
7391
  return de(m, { ref: a, "data-v-tippy": "" }, g ? [v, g] : v);
@@ -7771,11 +7771,11 @@ const nm = /* @__PURE__ */ R({
7771
7771
  }
7772
7772
  );
7773
7773
  const h = T(() => !o.value || o.value === "" ? i.value : i.value?.filter(
7774
- (y) => y.label.toLowerCase().replace(/\s+/g, "").includes(o.value.toLowerCase().replace(/\s+/g, ""))
7775
- )), g = (y) => {
7776
- a.value = y, n.value = y.label, b();
7774
+ (b) => b.label.toLowerCase().replace(/\s+/g, "").includes(o.value.toLowerCase().replace(/\s+/g, ""))
7775
+ )), g = (b) => {
7776
+ a.value = b, n.value = b.label, y();
7777
7777
  }, v = () => {
7778
- n.value = "", a.value = void 0, l.value = "", d.value = "", o.value = "", b();
7778
+ n.value = "", a.value = void 0, l.value = "", d.value = "", o.value = "", y();
7779
7779
  };
7780
7780
  ee(
7781
7781
  a,
@@ -7783,13 +7783,19 @@ const nm = /* @__PURE__ */ R({
7783
7783
  n.value = a.value?.label ?? "", l.value = a.value?.label ?? "", d.value = a.value?.value ?? "", s.value?.length && (s.value = []);
7784
7784
  },
7785
7785
  { immediate: !0 }
7786
+ ), ee(
7787
+ () => d.value,
7788
+ (b) => {
7789
+ a.value = i.value?.find((C) => C.value === b);
7790
+ },
7791
+ { immediate: !0 }
7786
7792
  );
7787
7793
  const m = () => {
7788
7794
  t.readonly || t.disabled || (u.value = !0);
7789
- }, b = () => {
7795
+ }, y = () => {
7790
7796
  u.value = !1;
7791
7797
  };
7792
- return (y, C) => {
7798
+ return (b, C) => {
7793
7799
  const p = Q("base-input"), x = Q("base-form"), S = Q("base-icon"), O = Q("base-modal");
7794
7800
  return w(), B(fe, null, [
7795
7801
  W(x, {
@@ -7828,7 +7834,7 @@ const nm = /* @__PURE__ */ R({
7828
7834
  ref: c,
7829
7835
  size: "lg",
7830
7836
  "is-open": u.value,
7831
- onOnClose: b,
7837
+ onOnClose: y,
7832
7838
  title: t.title
7833
7839
  }, {
7834
7840
  default: _(() => [
@@ -7863,7 +7869,7 @@ const nm = /* @__PURE__ */ R({
7863
7869
  onClick: (P) => g(A),
7864
7870
  "data-testid": `${e.dataTestid}-option-${A._id}`
7865
7871
  }, [
7866
- G(y.$slots, "default", { option: A }, () => [
7872
+ G(b.$slots, "default", { option: A }, () => [
7867
7873
  Ie(H(A?.label), 1)
7868
7874
  ])
7869
7875
  ], 10, Fm))), 128))
@@ -9196,7 +9202,7 @@ const Yh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Xh
9196
9202
  Xe(k("input", {
9197
9203
  ref_key: "dateRef",
9198
9204
  ref: s,
9199
- "onUpdate:modelValue": c[0] || (c[0] = (b) => d.value = b),
9205
+ "onUpdate:modelValue": c[0] || (c[0] = (y) => d.value = y),
9200
9206
  type: "date",
9201
9207
  class: z(["form-input absolute! -z-50 text-transparent bg-transparent", {
9202
9208
  "pl-0!": e.border === "simple" || e.border === "none"
@@ -9209,7 +9215,7 @@ const Yh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Xh
9209
9215
  Xe(k("input", {
9210
9216
  ref_key: "inputRef",
9211
9217
  ref: u,
9212
- "onUpdate:modelValue": c[1] || (c[1] = (b) => i.value = b),
9218
+ "onUpdate:modelValue": c[1] || (c[1] = (y) => i.value = y),
9213
9219
  type: "text",
9214
9220
  class: z(["form-input pl-8! bg-inherit", {
9215
9221
  "border-simple": e.border === "simple",
@@ -9237,7 +9243,7 @@ const Yh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Xh
9237
9243
  variant: "text",
9238
9244
  type: "button",
9239
9245
  class: "absolute h-full flex px-1 items-center justify-center text-slate-400 dark:text-slate-300",
9240
- onClick: c[2] || (c[2] = (b) => l())
9246
+ onClick: c[2] || (c[2] = (y) => l())
9241
9247
  }, {
9242
9248
  default: _(() => [
9243
9249
  W(h, { icon: "i-fa7-regular:calendar" })
@@ -10170,8 +10176,8 @@ const mg = ["placeholder", "autofocus", "required", "readonly", "disabled", "dat
10170
10176
  });
10171
10177
  const f = () => {
10172
10178
  d.value = s.value?.clientWidth === 0 ? 16 : s.value?.clientWidth, u.value = l.value?.clientWidth === 0 ? 16 : l.value?.clientWidth;
10173
- }, c = le(e, "modelValue"), h = le(e, "errors"), g = n, v = (b) => {
10174
- g("update:modelValue", Number(b.target.rawValue)), r.resetErrorsOnUpdate === !0 && h.value?.length && (h.value = []);
10179
+ }, c = le(e, "modelValue"), h = le(e, "errors"), g = n, v = (y) => {
10180
+ g("update:modelValue", Number(y.target.rawValue)), r.resetErrorsOnUpdate === !0 && h.value?.length && (h.value = []);
10175
10181
  }, m = T({
10176
10182
  set: () => {
10177
10183
  },
@@ -10181,7 +10187,7 @@ const mg = ["placeholder", "autofocus", "required", "readonly", "disabled", "dat
10181
10187
  });
10182
10188
  return t({
10183
10189
  inputRef: o
10184
- }), (b, y) => {
10190
+ }), (y, b) => {
10185
10191
  const C = Q("base-form");
10186
10192
  return w(), U(C, {
10187
10193
  label: r.label,
@@ -10204,7 +10210,7 @@ const mg = ["placeholder", "autofocus", "required", "readonly", "disabled", "dat
10204
10210
  rounded: e.rounded,
10205
10211
  "px-0!": e.paddingless
10206
10212
  }]),
10207
- "onUpdate:modelValue": y[0] || (y[0] = (p) => m.value = p),
10213
+ "onUpdate:modelValue": b[0] || (b[0] = (p) => m.value = p),
10208
10214
  placeholder: r.placeholder,
10209
10215
  autofocus: r.autofocus,
10210
10216
  required: r.required,
@@ -10224,14 +10230,14 @@ const mg = ["placeholder", "autofocus", "required", "readonly", "disabled", "dat
10224
10230
  ref: l,
10225
10231
  class: "absolute right-0 h-full flex items-center justify-center text-slate-400 dark:text-slate-300"
10226
10232
  }, [
10227
- G(b.$slots, "suffix", {}, void 0, !0)
10233
+ G(y.$slots, "suffix", {}, void 0, !0)
10228
10234
  ], 512),
10229
10235
  k("div", {
10230
10236
  ref_key: "prefixRef",
10231
10237
  ref: s,
10232
10238
  class: "absolute h-full flex items-center justify-center text-slate-400 dark:text-slate-300"
10233
10239
  }, [
10234
- G(b.$slots, "prefix", {}, void 0, !0)
10240
+ G(y.$slots, "prefix", {}, void 0, !0)
10235
10241
  ], 512)
10236
10242
  ]),
10237
10243
  _: 3
@@ -10368,12 +10374,12 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
10368
10374
  ee(l, f), ne(() => {
10369
10375
  r.autofocus && u.value?.focus(), f();
10370
10376
  });
10371
- const c = E({ top: 0, left: 0 }), h = E(!1), g = E(0), v = E(null), m = E(-1), b = E("");
10377
+ const c = E({ top: 0, left: 0 }), h = E(!1), g = E(0), v = E(null), m = E(-1), y = E("");
10372
10378
  ee(() => h.value, (A) => {
10373
10379
  o("showSuggestions", A);
10374
10380
  });
10375
- const y = T(() => v.value ? (r.options[v.value] || []).filter(
10376
- (A) => A.label.toLowerCase().includes(b.value.toLowerCase())
10381
+ const b = T(() => v.value ? (r.options[v.value] || []).filter(
10382
+ (A) => A.label.toLowerCase().includes(y.value.toLowerCase())
10377
10383
  ) : []);
10378
10384
  function C() {
10379
10385
  if (!u.value || m.value < 0) return;
@@ -10385,15 +10391,15 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
10385
10391
  }
10386
10392
  function p(A) {
10387
10393
  const P = A.target.selectionStart, I = l.value.slice(0, P), L = new RegExp(`([${r.triggers.join("")}])(\\w*)$`), $ = I.match(L);
10388
- $ ? (v.value = $[1], m.value = P - $[2].length - 1, b.value = $[2], s({
10394
+ $ ? (v.value = $[1], m.value = P - $[2].length - 1, y.value = $[2], s({
10389
10395
  trigger: v.value,
10390
- query: b.value
10396
+ query: y.value
10391
10397
  }), h.value = !0, Se(C)) : O();
10392
10398
  }
10393
10399
  function x(A) {
10394
- if (!(!h.value || !y.value.length)) {
10395
- if (["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), h.value && A.key === "Enter") {
10396
- A.preventDefault(), A.stopPropagation(), S(y.value[g.value]);
10400
+ if (!(!h.value || !b.value.length)) {
10401
+ if (["ArrowDown", "ArrowUp", "Enter", "Escape"].includes(A.key) && A.preventDefault(), A.key === "ArrowDown" && (g.value = (g.value + 1) % b.value.length), A.key === "ArrowUp" && (g.value = (g.value - 1 + b.value.length) % b.value.length), h.value && A.key === "Enter") {
10402
+ A.preventDefault(), A.stopPropagation(), S(b.value[g.value]);
10397
10403
  return;
10398
10404
  }
10399
10405
  A.key === "Escape" && O();
@@ -10401,7 +10407,7 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
10401
10407
  }
10402
10408
  function S(A) {
10403
10409
  if (!v.value || m.value < 0) return;
10404
- const M = l.value.slice(0, m.value), P = l.value.slice(m.value + b.value.length + 1);
10410
+ const M = l.value.slice(0, m.value), P = l.value.slice(m.value + y.value.length + 1);
10405
10411
  l.value = `${M}${v.value}${A.label} ${P}`, O(), Se(() => {
10406
10412
  u.value?.focus();
10407
10413
  const I = M.length + A.label.length + 2;
@@ -10409,7 +10415,7 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
10409
10415
  });
10410
10416
  }
10411
10417
  function O() {
10412
- i && (clearTimeout(i), i = null), h.value = !1, m.value = -1, b.value = "", v.value = null, g.value = 0;
10418
+ i && (clearTimeout(i), i = null), h.value = !1, m.value = -1, y.value = "", v.value = null, g.value = 0;
10413
10419
  }
10414
10420
  return ee(l, () => {
10415
10421
  const A = [];
@@ -10464,8 +10470,8 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
10464
10470
  class: "absolute bg-white dark:bg-gray-900 border dark:border-gray-500 rounded shadow p-1 z-10 w-48",
10465
10471
  style: Ye({ top: `${c.value.top}px`, left: `${c.value.left}px` })
10466
10472
  }, [
10467
- e.loading ? (w(), B("li", kg, "Searching...")) : y.value.length ? V("", !0) : (w(), B("li", Og, "No results")),
10468
- e.loading ? V("", !0) : (w(!0), B(fe, { key: 2 }, Me(y.value, (L, $) => (w(), B("li", {
10473
+ e.loading ? (w(), B("li", kg, "Searching...")) : b.value.length ? V("", !0) : (w(), B("li", Og, "No results")),
10474
+ e.loading ? V("", !0) : (w(!0), B(fe, { key: 2 }, Me(b.value, (L, $) => (w(), B("li", {
10469
10475
  key: L.id,
10470
10476
  class: z([
10471
10477
  "p-1 cursor-pointer flex items-center gap-1",
@@ -10700,8 +10706,8 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
10700
10706
  ), t({
10701
10707
  inputRef: h
10702
10708
  }), (g, v) => {
10703
- const m = Q("base-icon"), b = Q("base-button"), y = Q("base-form");
10704
- return w(), U(y, {
10709
+ const m = Q("base-icon"), y = Q("base-button"), b = Q("base-form");
10710
+ return w(), U(b, {
10705
10711
  label: a.label,
10706
10712
  layout: a.layout,
10707
10713
  description: a.description,
@@ -10747,7 +10753,7 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
10747
10753
  W(m, { icon: "i-fa7-regular:angle-down" })
10748
10754
  ]),
10749
10755
  _: 1
10750
- }, 512)) : (w(), U(b, {
10756
+ }, 512)) : (w(), U(y, {
10751
10757
  key: 1,
10752
10758
  size: "none",
10753
10759
  variant: "text",