ynotsoft-dynamic-form 1.0.36 → 1.0.38

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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as f, jsxs as T, Fragment as ge } from "react/jsx-runtime";
2
- import * as d from "react";
2
+ import * as u from "react";
3
3
  import Se, { useLayoutEffect as As, useState as ae, forwardRef as Co, createElement as nn, useRef as Os, useEffect as on, useMemo as Is } from "react";
4
4
  import { toast as bt } from "react-hot-toast";
5
5
  import Bn from "dayjs";
@@ -55,26 +55,26 @@ function V(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
55
55
  function De(e, t = []) {
56
56
  let n = [];
57
57
  function o(s, i) {
58
- const a = d.createContext(i), c = n.length;
58
+ const a = u.createContext(i), c = n.length;
59
59
  n = [...n, i];
60
60
  const l = (m) => {
61
- const { scope: g, children: h, ...b } = m, p = g?.[e]?.[c] || a, v = d.useMemo(() => b, Object.values(b));
61
+ const { scope: g, children: h, ...b } = m, p = g?.[e]?.[c] || a, v = u.useMemo(() => b, Object.values(b));
62
62
  return /* @__PURE__ */ f(p.Provider, { value: v, children: h });
63
63
  };
64
64
  l.displayName = s + "Provider";
65
- function u(m, g) {
66
- const h = g?.[e]?.[c] || a, b = d.useContext(h);
65
+ function d(m, g) {
66
+ const h = g?.[e]?.[c] || a, b = u.useContext(h);
67
67
  if (b) return b;
68
68
  if (i !== void 0) return i;
69
69
  throw new Error(`\`${m}\` must be used within \`${s}\``);
70
70
  }
71
- return [l, u];
71
+ return [l, d];
72
72
  }
73
73
  const r = () => {
74
- const s = n.map((i) => d.createContext(i));
74
+ const s = n.map((i) => u.createContext(i));
75
75
  return function(a) {
76
76
  const c = a?.[e] || s;
77
- return d.useMemo(
77
+ return u.useMemo(
78
78
  () => ({ [`__scope${e}`]: { ...a, [e]: c } }),
79
79
  [a, c]
80
80
  );
@@ -95,7 +95,7 @@ function Fs(...e) {
95
95
  const m = c(s)[`__scope${l}`];
96
96
  return { ...a, ...m };
97
97
  }, {});
98
- return d.useMemo(() => ({ [`__scope${t.scopeName}`]: i }), [i]);
98
+ return u.useMemo(() => ({ [`__scope${t.scopeName}`]: i }), [i]);
99
99
  };
100
100
  };
101
101
  return n.scopeName = t.scopeName, n;
@@ -122,15 +122,15 @@ function vn(...e) {
122
122
  };
123
123
  }
124
124
  function q(...e) {
125
- return d.useCallback(vn(...e), e);
125
+ return u.useCallback(vn(...e), e);
126
126
  }
127
127
  // @__NO_SIDE_EFFECTS__
128
128
  function Je(e) {
129
- const t = /* @__PURE__ */ $s(e), n = d.forwardRef((o, r) => {
130
- const { children: s, ...i } = o, a = d.Children.toArray(s), c = a.find(zs);
129
+ const t = /* @__PURE__ */ $s(e), n = u.forwardRef((o, r) => {
130
+ const { children: s, ...i } = o, a = u.Children.toArray(s), c = a.find(zs);
131
131
  if (c) {
132
- const l = c.props.children, u = a.map((m) => m === c ? d.Children.count(l) > 1 ? d.Children.only(null) : d.isValidElement(l) ? l.props.children : null : m);
133
- return /* @__PURE__ */ f(t, { ...i, ref: r, children: d.isValidElement(l) ? d.cloneElement(l, void 0, u) : null });
132
+ const l = c.props.children, d = a.map((m) => m === c ? u.Children.count(l) > 1 ? u.Children.only(null) : u.isValidElement(l) ? l.props.children : null : m);
133
+ return /* @__PURE__ */ f(t, { ...i, ref: r, children: u.isValidElement(l) ? u.cloneElement(l, void 0, d) : null });
134
134
  }
135
135
  return /* @__PURE__ */ f(t, { ...i, ref: r, children: s });
136
136
  });
@@ -138,19 +138,19 @@ function Je(e) {
138
138
  }
139
139
  // @__NO_SIDE_EFFECTS__
140
140
  function $s(e) {
141
- const t = d.forwardRef((n, o) => {
141
+ const t = u.forwardRef((n, o) => {
142
142
  const { children: r, ...s } = n;
143
- if (d.isValidElement(r)) {
143
+ if (u.isValidElement(r)) {
144
144
  const i = Vs(r), a = Ws(s, r.props);
145
- return r.type !== d.Fragment && (a.ref = o ? vn(o, i) : i), d.cloneElement(r, a);
145
+ return r.type !== u.Fragment && (a.ref = o ? vn(o, i) : i), u.cloneElement(r, a);
146
146
  }
147
- return d.Children.count(r) > 1 ? d.Children.only(null) : null;
147
+ return u.Children.count(r) > 1 ? u.Children.only(null) : null;
148
148
  });
149
149
  return t.displayName = `${e}.SlotClone`, t;
150
150
  }
151
151
  var Bs = Symbol("radix.slottable");
152
152
  function zs(e) {
153
- return d.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Bs;
153
+ return u.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Bs;
154
154
  }
155
155
  function Ws(e, t) {
156
156
  const n = { ...t };
@@ -183,13 +183,13 @@ function Eo(e) {
183
183
  }
184
184
  );
185
185
  l.displayName = a;
186
- const u = e + "CollectionItemSlot", m = "data-radix-collection-item", g = /* @__PURE__ */ Je(u), h = Se.forwardRef(
186
+ const d = e + "CollectionItemSlot", m = "data-radix-collection-item", g = /* @__PURE__ */ Je(d), h = Se.forwardRef(
187
187
  (p, v) => {
188
- const { scope: y, children: w, ...x } = p, S = Se.useRef(null), P = q(v, S), k = s(u, y);
188
+ const { scope: y, children: w, ...x } = p, S = Se.useRef(null), P = q(v, S), k = s(d, y);
189
189
  return Se.useEffect(() => (k.itemMap.set(S, { ref: S, ...x }), () => void k.itemMap.delete(S))), /* @__PURE__ */ f(g, { [m]: "", ref: P, children: w });
190
190
  }
191
191
  );
192
- h.displayName = u;
192
+ h.displayName = d;
193
193
  function b(p) {
194
194
  const v = s(e + "CollectionConsumer", p);
195
195
  return Se.useCallback(() => {
@@ -207,9 +207,9 @@ function Eo(e) {
207
207
  o
208
208
  ];
209
209
  }
210
- var Hs = d.createContext(void 0);
210
+ var Hs = u.createContext(void 0);
211
211
  function bn(e) {
212
- const t = d.useContext(Hs);
212
+ const t = u.useContext(Hs);
213
213
  return e || t || "ltr";
214
214
  }
215
215
  var Us = [
@@ -231,7 +231,7 @@ var Us = [
231
231
  "svg",
232
232
  "ul"
233
233
  ], U = Us.reduce((e, t) => {
234
- const n = /* @__PURE__ */ Je(`Primitive.${t}`), o = d.forwardRef((r, s) => {
234
+ const n = /* @__PURE__ */ Je(`Primitive.${t}`), o = u.forwardRef((r, s) => {
235
235
  const { asChild: i, ...a } = r, c = i ? n : t;
236
236
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f(c, { ...a, ref: s });
237
237
  });
@@ -241,25 +241,25 @@ function js(e, t) {
241
241
  e && kt.flushSync(() => e.dispatchEvent(t));
242
242
  }
243
243
  function Re(e) {
244
- const t = d.useRef(e);
245
- return d.useEffect(() => {
244
+ const t = u.useRef(e);
245
+ return u.useEffect(() => {
246
246
  t.current = e;
247
- }), d.useMemo(() => (...n) => t.current?.(...n), []);
247
+ }), u.useMemo(() => (...n) => t.current?.(...n), []);
248
248
  }
249
249
  function Gs(e, t = globalThis?.document) {
250
250
  const n = Re(e);
251
- d.useEffect(() => {
251
+ u.useEffect(() => {
252
252
  const o = (r) => {
253
253
  r.key === "Escape" && n(r);
254
254
  };
255
255
  return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
256
256
  }, [n, t]);
257
257
  }
258
- var Ks = "DismissableLayer", rn = "dismissableLayer.update", Ys = "dismissableLayer.pointerDownOutside", qs = "dismissableLayer.focusOutside", Vn, Ro = d.createContext({
258
+ var Ks = "DismissableLayer", rn = "dismissableLayer.update", Ys = "dismissableLayer.pointerDownOutside", qs = "dismissableLayer.focusOutside", Vn, Ro = u.createContext({
259
259
  layers: /* @__PURE__ */ new Set(),
260
260
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
261
261
  branches: /* @__PURE__ */ new Set()
262
- }), yn = d.forwardRef(
262
+ }), yn = u.forwardRef(
263
263
  (e, t) => {
264
264
  const {
265
265
  disableOutsidePointerEvents: n = !1,
@@ -269,23 +269,23 @@ var Ks = "DismissableLayer", rn = "dismissableLayer.update", Ys = "dismissableLa
269
269
  onInteractOutside: i,
270
270
  onDismiss: a,
271
271
  ...c
272
- } = e, l = d.useContext(Ro), [u, m] = d.useState(null), g = u?.ownerDocument ?? globalThis?.document, [, h] = d.useState({}), b = q(t, (R) => m(R)), p = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = p.indexOf(v), w = u ? p.indexOf(u) : -1, x = l.layersWithOutsidePointerEventsDisabled.size > 0, S = w >= y, P = Qs((R) => {
273
- const C = R.target, D = [...l.branches].some((E) => E.contains(C));
274
- !S || D || (r?.(R), i?.(R), R.defaultPrevented || a?.());
272
+ } = e, l = u.useContext(Ro), [d, m] = u.useState(null), g = d?.ownerDocument ?? globalThis?.document, [, h] = u.useState({}), b = q(t, (R) => m(R)), p = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = p.indexOf(v), w = d ? p.indexOf(d) : -1, x = l.layersWithOutsidePointerEventsDisabled.size > 0, S = w >= y, P = Qs((R) => {
273
+ const C = R.target, F = [...l.branches].some((E) => E.contains(C));
274
+ !S || F || (r?.(R), i?.(R), R.defaultPrevented || a?.());
275
275
  }, g), k = Js((R) => {
276
276
  const C = R.target;
277
277
  [...l.branches].some((E) => E.contains(C)) || (s?.(R), i?.(R), R.defaultPrevented || a?.());
278
278
  }, g);
279
279
  return Gs((R) => {
280
280
  w === l.layers.size - 1 && (o?.(R), !R.defaultPrevented && a && (R.preventDefault(), a()));
281
- }, g), d.useEffect(() => {
282
- if (u)
283
- return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Vn = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(u)), l.layers.add(u), Hn(), () => {
281
+ }, g), u.useEffect(() => {
282
+ if (d)
283
+ return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Vn = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(d)), l.layers.add(d), Hn(), () => {
284
284
  n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (g.body.style.pointerEvents = Vn);
285
285
  };
286
- }, [u, g, n, l]), d.useEffect(() => () => {
287
- u && (l.layers.delete(u), l.layersWithOutsidePointerEventsDisabled.delete(u), Hn());
288
- }, [u, l]), d.useEffect(() => {
286
+ }, [d, g, n, l]), u.useEffect(() => () => {
287
+ d && (l.layers.delete(d), l.layersWithOutsidePointerEventsDisabled.delete(d), Hn());
288
+ }, [d, l]), u.useEffect(() => {
289
289
  const R = () => h({});
290
290
  return document.addEventListener(rn, R), () => document.removeEventListener(rn, R);
291
291
  }, []), /* @__PURE__ */ f(
@@ -308,9 +308,9 @@ var Ks = "DismissableLayer", rn = "dismissableLayer.update", Ys = "dismissableLa
308
308
  }
309
309
  );
310
310
  yn.displayName = Ks;
311
- var Xs = "DismissableLayerBranch", Zs = d.forwardRef((e, t) => {
312
- const n = d.useContext(Ro), o = d.useRef(null), r = q(t, o);
313
- return d.useEffect(() => {
311
+ var Xs = "DismissableLayerBranch", Zs = u.forwardRef((e, t) => {
312
+ const n = u.useContext(Ro), o = u.useRef(null), r = q(t, o);
313
+ return u.useEffect(() => {
314
314
  const s = o.current;
315
315
  if (s)
316
316
  return n.branches.add(s), () => {
@@ -320,9 +320,9 @@ var Xs = "DismissableLayerBranch", Zs = d.forwardRef((e, t) => {
320
320
  });
321
321
  Zs.displayName = Xs;
322
322
  function Qs(e, t = globalThis?.document) {
323
- const n = Re(e), o = d.useRef(!1), r = d.useRef(() => {
323
+ const n = Re(e), o = u.useRef(!1), r = u.useRef(() => {
324
324
  });
325
- return d.useEffect(() => {
325
+ return u.useEffect(() => {
326
326
  const s = (a) => {
327
327
  if (a.target && !o.current) {
328
328
  let c = function() {
@@ -350,8 +350,8 @@ function Qs(e, t = globalThis?.document) {
350
350
  };
351
351
  }
352
352
  function Js(e, t = globalThis?.document) {
353
- const n = Re(e), o = d.useRef(!1);
354
- return d.useEffect(() => {
353
+ const n = Re(e), o = u.useRef(!1);
354
+ return u.useEffect(() => {
355
355
  const r = (s) => {
356
356
  s.target && !o.current && ko(qs, n, { originalEvent: s }, {
357
357
  discrete: !1
@@ -373,7 +373,7 @@ function ko(e, t, n, { discrete: o }) {
373
373
  }
374
374
  var Ht = 0;
375
375
  function Po() {
376
- d.useEffect(() => {
376
+ u.useEffect(() => {
377
377
  const e = document.querySelectorAll("[data-radix-focus-guard]");
378
378
  return document.body.insertAdjacentElement("afterbegin", e[0] ?? Un()), document.body.insertAdjacentElement("beforeend", e[1] ?? Un()), Ht++, () => {
379
379
  Ht === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Ht--;
@@ -384,14 +384,14 @@ function Un() {
384
384
  const e = document.createElement("span");
385
385
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
386
386
  }
387
- var Ut = "focusScope.autoFocusOnMount", jt = "focusScope.autoFocusOnUnmount", jn = { bubbles: !1, cancelable: !0 }, ei = "FocusScope", wn = d.forwardRef((e, t) => {
387
+ var Ut = "focusScope.autoFocusOnMount", jt = "focusScope.autoFocusOnUnmount", jn = { bubbles: !1, cancelable: !0 }, ei = "FocusScope", wn = u.forwardRef((e, t) => {
388
388
  const {
389
389
  loop: n = !1,
390
390
  trapped: o = !1,
391
391
  onMountAutoFocus: r,
392
392
  onUnmountAutoFocus: s,
393
393
  ...i
394
- } = e, [a, c] = d.useState(null), l = Re(r), u = Re(s), m = d.useRef(null), g = q(t, (p) => c(p)), h = d.useRef({
394
+ } = e, [a, c] = u.useState(null), l = Re(r), d = Re(s), m = u.useRef(null), g = q(t, (p) => c(p)), h = u.useRef({
395
395
  paused: !1,
396
396
  pause() {
397
397
  this.paused = !0;
@@ -400,7 +400,7 @@ var Ut = "focusScope.autoFocusOnMount", jt = "focusScope.autoFocusOnUnmount", jn
400
400
  this.paused = !1;
401
401
  }
402
402
  }).current;
403
- d.useEffect(() => {
403
+ u.useEffect(() => {
404
404
  if (o) {
405
405
  let p = function(x) {
406
406
  if (h.paused || !a) return;
@@ -421,7 +421,7 @@ var Ut = "focusScope.autoFocusOnMount", jt = "focusScope.autoFocusOnUnmount", jn
421
421
  document.removeEventListener("focusin", p), document.removeEventListener("focusout", v), w.disconnect();
422
422
  };
423
423
  }
424
- }, [o, a, h.paused]), d.useEffect(() => {
424
+ }, [o, a, h.paused]), u.useEffect(() => {
425
425
  if (a) {
426
426
  Kn.add(h);
427
427
  const p = document.activeElement;
@@ -432,12 +432,12 @@ var Ut = "focusScope.autoFocusOnMount", jt = "focusScope.autoFocusOnUnmount", jn
432
432
  return () => {
433
433
  a.removeEventListener(Ut, l), setTimeout(() => {
434
434
  const y = new CustomEvent(jt, jn);
435
- a.addEventListener(jt, u), a.dispatchEvent(y), y.defaultPrevented || Ee(p ?? document.body, { select: !0 }), a.removeEventListener(jt, u), Kn.remove(h);
435
+ a.addEventListener(jt, d), a.dispatchEvent(y), y.defaultPrevented || Ee(p ?? document.body, { select: !0 }), a.removeEventListener(jt, d), Kn.remove(h);
436
436
  }, 0);
437
437
  };
438
438
  }
439
- }, [a, l, u, h]);
440
- const b = d.useCallback(
439
+ }, [a, l, d, h]);
440
+ const b = u.useCallback(
441
441
  (p) => {
442
442
  if (!n && !o || h.paused) return;
443
443
  const v = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, y = document.activeElement;
@@ -512,11 +512,11 @@ function Yn(e, t) {
512
512
  function ii(e) {
513
513
  return e.filter((t) => t.tagName !== "A");
514
514
  }
515
- var te = globalThis?.document ? d.useLayoutEffect : () => {
516
- }, ai = d[" useId ".trim().toString()] || (() => {
515
+ var te = globalThis?.document ? u.useLayoutEffect : () => {
516
+ }, ai = u[" useId ".trim().toString()] || (() => {
517
517
  }), ci = 0;
518
518
  function ot(e) {
519
- const [t, n] = d.useState(ai());
519
+ const [t, n] = u.useState(ai());
520
520
  return te(() => {
521
521
  n((o) => o ?? String(ci++));
522
522
  }, [e]), e || (t ? `radix-${t}` : "");
@@ -524,12 +524,12 @@ function ot(e) {
524
524
  const li = ["top", "right", "bottom", "left"], ke = Math.min, ne = Math.max, yt = Math.round, at = Math.floor, me = (e) => ({
525
525
  x: e,
526
526
  y: e
527
- }), di = {
527
+ }), ui = {
528
528
  left: "right",
529
529
  right: "left",
530
530
  bottom: "top",
531
531
  top: "bottom"
532
- }, ui = {
532
+ }, di = {
533
533
  start: "end",
534
534
  end: "start"
535
535
  };
@@ -569,7 +569,7 @@ function mi(e) {
569
569
  return [an(e), t, an(t)];
570
570
  }
571
571
  function an(e) {
572
- return e.replace(/start|end/g, (t) => ui[t]);
572
+ return e.replace(/start|end/g, (t) => di[t]);
573
573
  }
574
574
  const qn = ["left", "right"], Xn = ["right", "left"], hi = ["top", "bottom"], gi = ["bottom", "top"];
575
575
  function vi(e, t, n) {
@@ -590,7 +590,7 @@ function bi(e, t, n, o) {
590
590
  return r && (s = s.map((i) => i + "-" + r), t && (s = s.concat(s.map(an)))), s;
591
591
  }
592
592
  function wt(e) {
593
- return e.replace(/left|right|bottom|top/g, (t) => di[t]);
593
+ return e.replace(/left|right|bottom|top/g, (t) => ui[t]);
594
594
  }
595
595
  function yi(e) {
596
596
  return {
@@ -632,18 +632,18 @@ function Zn(e, t, n) {
632
632
  reference: o,
633
633
  floating: r
634
634
  } = e;
635
- const s = pe(t), i = Sn(t), a = Cn(i), c = xe(t), l = s === "y", u = o.x + o.width / 2 - r.width / 2, m = o.y + o.height / 2 - r.height / 2, g = o[a] / 2 - r[a] / 2;
635
+ const s = pe(t), i = Sn(t), a = Cn(i), c = xe(t), l = s === "y", d = o.x + o.width / 2 - r.width / 2, m = o.y + o.height / 2 - r.height / 2, g = o[a] / 2 - r[a] / 2;
636
636
  let h;
637
637
  switch (c) {
638
638
  case "top":
639
639
  h = {
640
- x: u,
640
+ x: d,
641
641
  y: o.y - r.height
642
642
  };
643
643
  break;
644
644
  case "bottom":
645
645
  h = {
646
- x: u,
646
+ x: d,
647
647
  y: o.y + o.height
648
648
  };
649
649
  break;
@@ -687,7 +687,7 @@ const wi = async (e, t, n) => {
687
687
  floating: t,
688
688
  strategy: r
689
689
  }), {
690
- x: u,
690
+ x: d,
691
691
  y: m
692
692
  } = Zn(l, o, c), g = o, h = {}, b = 0;
693
693
  for (let p = 0; p < a.length; p++) {
@@ -700,7 +700,7 @@ const wi = async (e, t, n) => {
700
700
  data: S,
701
701
  reset: P
702
702
  } = await y({
703
- x: u,
703
+ x: d,
704
704
  y: m,
705
705
  initialPlacement: o,
706
706
  placement: g,
@@ -713,7 +713,7 @@ const wi = async (e, t, n) => {
713
713
  floating: t
714
714
  }
715
715
  });
716
- u = w ?? u, m = x ?? m, h = {
716
+ d = w ?? d, m = x ?? m, h = {
717
717
  ...h,
718
718
  [v]: {
719
719
  ...h[v],
@@ -724,12 +724,12 @@ const wi = async (e, t, n) => {
724
724
  floating: t,
725
725
  strategy: r
726
726
  }) : P.rects), {
727
- x: u,
727
+ x: d,
728
728
  y: m
729
729
  } = Zn(l, g, c)), p = -1);
730
730
  }
731
731
  return {
732
- x: u,
732
+ x: d,
733
733
  y: m,
734
734
  placement: g,
735
735
  strategy: r,
@@ -748,14 +748,14 @@ async function et(e, t) {
748
748
  strategy: c
749
749
  } = e, {
750
750
  boundary: l = "clippingAncestors",
751
- rootBoundary: u = "viewport",
751
+ rootBoundary: d = "viewport",
752
752
  elementContext: m = "floating",
753
753
  altBoundary: g = !1,
754
754
  padding: h = 0
755
755
  } = we(t, e), b = Ao(h), v = a[g ? m === "floating" ? "reference" : "floating" : m], y = xt(await s.getClippingRect({
756
756
  element: (n = await (s.isElement == null ? void 0 : s.isElement(v))) == null || n ? v : v.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
757
757
  boundary: l,
758
- rootBoundary: u,
758
+ rootBoundary: d,
759
759
  strategy: c
760
760
  })), w = m === "floating" ? {
761
761
  x: o,
@@ -795,24 +795,24 @@ const xi = (e) => ({
795
795
  middlewareData: c
796
796
  } = t, {
797
797
  element: l,
798
- padding: u = 0
798
+ padding: d = 0
799
799
  } = we(e, t) || {};
800
800
  if (l == null)
801
801
  return {};
802
- const m = Ao(u), g = {
802
+ const m = Ao(d), g = {
803
803
  x: n,
804
804
  y: o
805
805
  }, h = Sn(r), b = Cn(h), p = await i.getDimensions(l), v = h === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", S = s.reference[b] + s.reference[h] - g[h] - s.floating[b], P = g[h] - s.reference[h], k = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
806
806
  let R = k ? k[x] : 0;
807
807
  (!R || !await (i.isElement == null ? void 0 : i.isElement(k))) && (R = a.floating[x] || s.floating[b]);
808
- const C = S / 2 - P / 2, D = R / 2 - p[b] / 2 - 1, E = ke(m[y], D), A = ke(m[w], D), O = E, M = R - p[b] - A, B = R / 2 - p[b] / 2 + C, F = sn(O, B, M), $ = !c.arrow && je(r) != null && B !== F && s.reference[b] / 2 - (B < O ? E : A) - p[b] / 2 < 0, W = $ ? B < O ? B - O : B - M : 0;
808
+ const C = S / 2 - P / 2, F = R / 2 - p[b] / 2 - 1, E = ke(m[y], F), A = ke(m[w], F), O = E, L = R - p[b] - A, B = R / 2 - p[b] / 2 + C, D = sn(O, B, L), $ = !c.arrow && je(r) != null && B !== D && s.reference[b] / 2 - (B < O ? E : A) - p[b] / 2 < 0, z = $ ? B < O ? B - O : B - L : 0;
809
809
  return {
810
- [h]: g[h] + W,
810
+ [h]: g[h] + z,
811
811
  data: {
812
- [h]: F,
813
- centerOffset: B - F - W,
812
+ [h]: D,
813
+ centerOffset: B - D - z,
814
814
  ...$ && {
815
- alignmentOffset: W
815
+ alignmentOffset: z
816
816
  }
817
817
  },
818
818
  reset: $
@@ -832,7 +832,7 @@ const xi = (e) => ({
832
832
  platform: c,
833
833
  elements: l
834
834
  } = t, {
835
- mainAxis: u = !0,
835
+ mainAxis: d = !0,
836
836
  crossAxis: m = !0,
837
837
  fallbackPlacements: g,
838
838
  fallbackStrategy: h = "bestFit",
@@ -844,19 +844,19 @@ const xi = (e) => ({
844
844
  return {};
845
845
  const y = xe(r), w = pe(a), x = xe(a) === a, S = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), P = g || (x || !p ? [wt(a)] : mi(a)), k = b !== "none";
846
846
  !g && k && P.push(...bi(a, p, b, S));
847
- const R = [a, ...P], C = await et(t, v), D = [];
847
+ const R = [a, ...P], C = await et(t, v), F = [];
848
848
  let E = ((o = s.flip) == null ? void 0 : o.overflows) || [];
849
- if (u && D.push(C[y]), m) {
849
+ if (d && F.push(C[y]), m) {
850
850
  const B = pi(r, i, S);
851
- D.push(C[B[0]], C[B[1]]);
851
+ F.push(C[B[0]], C[B[1]]);
852
852
  }
853
853
  if (E = [...E, {
854
854
  placement: r,
855
- overflows: D
856
- }], !D.every((B) => B <= 0)) {
855
+ overflows: F
856
+ }], !F.every((B) => B <= 0)) {
857
857
  var A, O;
858
- const B = (((A = s.flip) == null ? void 0 : A.index) || 0) + 1, F = R[B];
859
- if (F && (!(m === "alignment" ? w !== pe(F) : !1) || // We leave the current main axis only if every placement on that axis
858
+ const B = (((A = s.flip) == null ? void 0 : A.index) || 0) + 1, D = R[B];
859
+ if (D && (!(m === "alignment" ? w !== pe(D) : !1) || // We leave the current main axis only if every placement on that axis
860
860
  // overflows the main axis.
861
861
  E.every((N) => pe(N.placement) === w ? N.overflows[0] > 0 : !0)))
862
862
  return {
@@ -865,15 +865,15 @@ const xi = (e) => ({
865
865
  overflows: E
866
866
  },
867
867
  reset: {
868
- placement: F
868
+ placement: D
869
869
  }
870
870
  };
871
- let $ = (O = E.filter((W) => W.overflows[0] <= 0).sort((W, N) => W.overflows[1] - N.overflows[1])[0]) == null ? void 0 : O.placement;
871
+ let $ = (O = E.filter((z) => z.overflows[0] <= 0).sort((z, N) => z.overflows[1] - N.overflows[1])[0]) == null ? void 0 : O.placement;
872
872
  if (!$)
873
873
  switch (h) {
874
874
  case "bestFit": {
875
- var M;
876
- const W = (M = E.filter((N) => {
875
+ var L;
876
+ const z = (L = E.filter((N) => {
877
877
  if (k) {
878
878
  const j = pe(N.placement);
879
879
  return j === w || // Create a bias to the `y` side axis due to horizontal
@@ -881,8 +881,8 @@ const xi = (e) => ({
881
881
  j === "y";
882
882
  }
883
883
  return !0;
884
- }).map((N) => [N.placement, N.overflows.filter((j) => j > 0).reduce((j, ee) => j + ee, 0)]).sort((N, j) => N[1] - j[1])[0]) == null ? void 0 : M[0];
885
- W && ($ = W);
884
+ }).map((N) => [N.placement, N.overflows.filter((j) => j > 0).reduce((j, ee) => j + ee, 0)]).sort((N, j) => N[1] - j[1])[0]) == null ? void 0 : L[0];
885
+ z && ($ = z);
886
886
  break;
887
887
  }
888
888
  case "initialPlacement":
@@ -958,7 +958,7 @@ async function Ei(e, t) {
958
958
  placement: n,
959
959
  platform: o,
960
960
  elements: r
961
- } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), i = xe(n), a = je(n), c = pe(n) === "y", l = Oo.has(i) ? -1 : 1, u = s && c ? -1 : 1, m = we(t, e);
961
+ } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), i = xe(n), a = je(n), c = pe(n) === "y", l = Oo.has(i) ? -1 : 1, d = s && c ? -1 : 1, m = we(t, e);
962
962
  let {
963
963
  mainAxis: g,
964
964
  crossAxis: h,
@@ -973,11 +973,11 @@ async function Ei(e, t) {
973
973
  alignmentAxis: m.alignmentAxis
974
974
  };
975
975
  return a && typeof b == "number" && (h = a === "end" ? b * -1 : b), c ? {
976
- x: h * u,
976
+ x: h * d,
977
977
  y: g * l
978
978
  } : {
979
979
  x: g * l,
980
- y: h * u
980
+ y: h * d
981
981
  };
982
982
  }
983
983
  const Ri = function(e) {
@@ -1030,14 +1030,14 @@ const Ri = function(e) {
1030
1030
  } = we(e, t), l = {
1031
1031
  x: n,
1032
1032
  y: o
1033
- }, u = await et(t, c), m = pe(xe(r)), g = xn(m);
1033
+ }, d = await et(t, c), m = pe(xe(r)), g = xn(m);
1034
1034
  let h = l[g], b = l[m];
1035
1035
  if (s) {
1036
- const v = g === "y" ? "top" : "left", y = g === "y" ? "bottom" : "right", w = h + u[v], x = h - u[y];
1036
+ const v = g === "y" ? "top" : "left", y = g === "y" ? "bottom" : "right", w = h + d[v], x = h - d[y];
1037
1037
  h = sn(w, h, x);
1038
1038
  }
1039
1039
  if (i) {
1040
- const v = m === "y" ? "top" : "left", y = m === "y" ? "bottom" : "right", w = b + u[v], x = b - u[y];
1040
+ const v = m === "y" ? "top" : "left", y = m === "y" ? "bottom" : "right", w = b + d[v], x = b - d[y];
1041
1041
  b = sn(w, b, x);
1042
1042
  }
1043
1043
  const p = a.fn({
@@ -1072,11 +1072,11 @@ const Ri = function(e) {
1072
1072
  offset: a = 0,
1073
1073
  mainAxis: c = !0,
1074
1074
  crossAxis: l = !0
1075
- } = we(e, t), u = {
1075
+ } = we(e, t), d = {
1076
1076
  x: n,
1077
1077
  y: o
1078
1078
  }, m = pe(r), g = xn(m);
1079
- let h = u[g], b = u[m];
1079
+ let h = d[g], b = d[m];
1080
1080
  const p = we(a, t), v = typeof p == "number" ? {
1081
1081
  mainAxis: p,
1082
1082
  crossAxis: 0
@@ -1115,25 +1115,25 @@ const Ri = function(e) {
1115
1115
  apply: c = () => {
1116
1116
  },
1117
1117
  ...l
1118
- } = we(e, t), u = await et(t, l), m = xe(r), g = je(r), h = pe(r) === "y", {
1118
+ } = we(e, t), d = await et(t, l), m = xe(r), g = je(r), h = pe(r) === "y", {
1119
1119
  width: b,
1120
1120
  height: p
1121
1121
  } = s.floating;
1122
1122
  let v, y;
1123
1123
  m === "top" || m === "bottom" ? (v = m, y = g === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (y = m, v = g === "end" ? "top" : "bottom");
1124
- const w = p - u.top - u.bottom, x = b - u.left - u.right, S = ke(p - u[v], w), P = ke(b - u[y], x), k = !t.middlewareData.shift;
1124
+ const w = p - d.top - d.bottom, x = b - d.left - d.right, S = ke(p - d[v], w), P = ke(b - d[y], x), k = !t.middlewareData.shift;
1125
1125
  let R = S, C = P;
1126
1126
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (C = x), (o = t.middlewareData.shift) != null && o.enabled.y && (R = w), k && !g) {
1127
- const E = ne(u.left, 0), A = ne(u.right, 0), O = ne(u.top, 0), M = ne(u.bottom, 0);
1128
- h ? C = b - 2 * (E !== 0 || A !== 0 ? E + A : ne(u.left, u.right)) : R = p - 2 * (O !== 0 || M !== 0 ? O + M : ne(u.top, u.bottom));
1127
+ const E = ne(d.left, 0), A = ne(d.right, 0), O = ne(d.top, 0), L = ne(d.bottom, 0);
1128
+ h ? C = b - 2 * (E !== 0 || A !== 0 ? E + A : ne(d.left, d.right)) : R = p - 2 * (O !== 0 || L !== 0 ? O + L : ne(d.top, d.bottom));
1129
1129
  }
1130
1130
  await c({
1131
1131
  ...t,
1132
1132
  availableWidth: C,
1133
1133
  availableHeight: R
1134
1134
  });
1135
- const D = await i.getDimensions(a.floating);
1136
- return b !== D.width || p !== D.height ? {
1135
+ const F = await i.getDimensions(a.floating);
1136
+ return b !== F.width || p !== F.height ? {
1137
1137
  reset: {
1138
1138
  rects: !0
1139
1139
  }
@@ -1300,17 +1300,17 @@ function Me(e, t, n, o) {
1300
1300
  let i = me(1);
1301
1301
  t && (o ? ce(o) && (i = We(o)) : i = We(e));
1302
1302
  const a = Bi(s, n, o) ? _o(s) : me(0);
1303
- let c = (r.left + a.x) / i.x, l = (r.top + a.y) / i.y, u = r.width / i.x, m = r.height / i.y;
1303
+ let c = (r.left + a.x) / i.x, l = (r.top + a.y) / i.y, d = r.width / i.x, m = r.height / i.y;
1304
1304
  if (s) {
1305
1305
  const g = oe(s), h = o && ce(o) ? oe(o) : o;
1306
1306
  let b = g, p = cn(b);
1307
1307
  for (; p && o && h !== b; ) {
1308
1308
  const v = We(p), y = p.getBoundingClientRect(), w = le(p), x = y.left + (p.clientLeft + parseFloat(w.paddingLeft)) * v.x, S = y.top + (p.clientTop + parseFloat(w.paddingTop)) * v.y;
1309
- c *= v.x, l *= v.y, u *= v.x, m *= v.y, c += x, l += S, b = oe(p), p = cn(b);
1309
+ c *= v.x, l *= v.y, d *= v.x, m *= v.y, c += x, l += S, b = oe(p), p = cn(b);
1310
1310
  }
1311
1311
  }
1312
1312
  return xt({
1313
- width: u,
1313
+ width: d,
1314
1314
  height: m,
1315
1315
  x: c,
1316
1316
  y: l
@@ -1341,17 +1341,17 @@ function zi(e) {
1341
1341
  scrollLeft: 0,
1342
1342
  scrollTop: 0
1343
1343
  }, l = me(1);
1344
- const u = me(0), m = he(o);
1344
+ const d = me(0), m = he(o);
1345
1345
  if ((m || !m && !s) && ((Ge(o) !== "body" || rt(i)) && (c = At(o)), he(o))) {
1346
1346
  const h = Me(o);
1347
- l = We(o), u.x = h.x + o.clientLeft, u.y = h.y + o.clientTop;
1347
+ l = We(o), d.x = h.x + o.clientLeft, d.y = h.y + o.clientTop;
1348
1348
  }
1349
1349
  const g = i && !m && !s ? Lo(i, c) : me(0);
1350
1350
  return {
1351
1351
  width: n.width * l.x,
1352
1352
  height: n.height * l.y,
1353
- x: n.x * l.x - c.scrollLeft * l.x + u.x + g.x,
1354
- y: n.y * l.y - c.scrollTop * l.y + u.y + g.y
1353
+ x: n.x * l.x - c.scrollLeft * l.x + d.x + g.x,
1354
+ y: n.y * l.y - c.scrollTop * l.y + d.y + g.y
1355
1355
  };
1356
1356
  }
1357
1357
  function Wi(e) {
@@ -1374,12 +1374,12 @@ function Hi(e, t) {
1374
1374
  let s = o.clientWidth, i = o.clientHeight, a = 0, c = 0;
1375
1375
  if (r) {
1376
1376
  s = r.width, i = r.height;
1377
- const u = Rn();
1378
- (!u || u && t === "fixed") && (a = r.offsetLeft, c = r.offsetTop);
1377
+ const d = Rn();
1378
+ (!d || d && t === "fixed") && (a = r.offsetLeft, c = r.offsetTop);
1379
1379
  }
1380
1380
  const l = Ot(o);
1381
1381
  if (l <= 0) {
1382
- const u = o.ownerDocument, m = u.body, g = getComputedStyle(m), h = u.compatMode === "CSS1Compat" && parseFloat(g.marginLeft) + parseFloat(g.marginRight) || 0, b = Math.abs(o.clientWidth - m.clientWidth - h);
1382
+ const d = o.ownerDocument, m = d.body, g = getComputedStyle(m), h = d.compatMode === "CSS1Compat" && parseFloat(g.marginLeft) + parseFloat(g.marginRight) || 0, b = Math.abs(o.clientWidth - m.clientWidth - h);
1383
1383
  b <= to && (s -= b);
1384
1384
  } else l <= to && (s += l);
1385
1385
  return {
@@ -1431,7 +1431,7 @@ function Gi(e, t) {
1431
1431
  let i = s ? Pe(e) : e;
1432
1432
  for (; ce(i) && !He(i); ) {
1433
1433
  const a = le(i), c = En(i);
1434
- !c && a.position === "fixed" && (r = null), (s ? !c && !r : !c && a.position === "static" && !!r && Ui.has(r.position) || rt(i) && !c && Do(e, i)) ? o = o.filter((u) => u !== i) : r = a, i = Pe(i);
1434
+ !c && a.position === "fixed" && (r = null), (s ? !c && !r : !c && a.position === "static" && !!r && Ui.has(r.position) || rt(i) && !c && Do(e, i)) ? o = o.filter((d) => d !== i) : r = a, i = Pe(i);
1435
1435
  }
1436
1436
  return t.set(e, o), o;
1437
1437
  }
@@ -1442,8 +1442,8 @@ function Ki(e) {
1442
1442
  rootBoundary: o,
1443
1443
  strategy: r
1444
1444
  } = e;
1445
- const i = [...n === "clippingAncestors" ? Nt(t) ? [] : Gi(t, this._c) : [].concat(n), o], a = i[0], c = i.reduce((l, u) => {
1446
- const m = no(t, u, r);
1445
+ const i = [...n === "clippingAncestors" ? Nt(t) ? [] : Gi(t, this._c) : [].concat(n), o], a = i[0], c = i.reduce((l, d) => {
1446
+ const m = no(t, d, r);
1447
1447
  return l.top = ne(m.top, l.top), l.right = ke(m.right, l.right), l.bottom = ke(m.bottom, l.bottom), l.left = ne(m.left, l.left), l;
1448
1448
  }, no(t, a, r));
1449
1449
  return {
@@ -1479,7 +1479,7 @@ function qi(e, t, n) {
1479
1479
  c.x = h.x + t.clientLeft, c.y = h.y + t.clientTop;
1480
1480
  } else r && l();
1481
1481
  s && !o && r && l();
1482
- const u = r && !o && !s ? Lo(r, a) : me(0), m = i.left + a.scrollLeft - c.x - u.x, g = i.top + a.scrollTop - c.y - u.y;
1482
+ const d = r && !o && !s ? Lo(r, a) : me(0), m = i.left + a.scrollLeft - c.x - d.x, g = i.top + a.scrollTop - c.y - d.y;
1483
1483
  return {
1484
1484
  x: m,
1485
1485
  y: g,
@@ -1556,14 +1556,14 @@ function Ji(e, t) {
1556
1556
  function i(a, c) {
1557
1557
  a === void 0 && (a = !1), c === void 0 && (c = 1), s();
1558
1558
  const l = e.getBoundingClientRect(), {
1559
- left: u,
1559
+ left: d,
1560
1560
  top: m,
1561
1561
  width: g,
1562
1562
  height: h
1563
1563
  } = l;
1564
1564
  if (a || t(), !g || !h)
1565
1565
  return;
1566
- const b = at(m), p = at(r.clientWidth - (u + g)), v = at(r.clientHeight - (m + h)), y = at(u), x = {
1566
+ const b = at(m), p = at(r.clientWidth - (d + g)), v = at(r.clientHeight - (m + h)), y = at(d), x = {
1567
1567
  rootMargin: -b + "px " + -p + "px " + -v + "px " + -y + "px",
1568
1568
  threshold: ne(0, ke(1, c)) || 1
1569
1569
  };
@@ -1600,8 +1600,8 @@ function ea(e, t, n, o) {
1600
1600
  elementResize: i = typeof ResizeObserver == "function",
1601
1601
  layoutShift: a = typeof IntersectionObserver == "function",
1602
1602
  animationFrame: c = !1
1603
- } = o, l = kn(e), u = r || s ? [...l ? tt(l) : [], ...tt(t)] : [];
1604
- u.forEach((y) => {
1603
+ } = o, l = kn(e), d = r || s ? [...l ? tt(l) : [], ...tt(t)] : [];
1604
+ d.forEach((y) => {
1605
1605
  r && y.addEventListener("scroll", n, {
1606
1606
  passive: !0
1607
1607
  }), s && y.addEventListener("resize", n);
@@ -1623,7 +1623,7 @@ function ea(e, t, n, o) {
1623
1623
  }
1624
1624
  return n(), () => {
1625
1625
  var y;
1626
- u.forEach((w) => {
1626
+ d.forEach((w) => {
1627
1627
  r && w.removeEventListener("scroll", n), s && w.removeEventListener("resize", n);
1628
1628
  }), m?.(), (y = h) == null || y.disconnect(), h = null, c && cancelAnimationFrame(b);
1629
1629
  };
@@ -1681,12 +1681,12 @@ function so(e, t) {
1681
1681
  return Math.round(t * n) / n;
1682
1682
  }
1683
1683
  function Kt(e) {
1684
- const t = d.useRef(e);
1684
+ const t = u.useRef(e);
1685
1685
  return ht(() => {
1686
1686
  t.current = e;
1687
1687
  }), t;
1688
1688
  }
1689
- function da(e) {
1689
+ function ua(e) {
1690
1690
  e === void 0 && (e = {});
1691
1691
  const {
1692
1692
  placement: t = "bottom",
@@ -1700,20 +1700,20 @@ function da(e) {
1700
1700
  transform: a = !0,
1701
1701
  whileElementsMounted: c,
1702
1702
  open: l
1703
- } = e, [u, m] = d.useState({
1703
+ } = e, [d, m] = u.useState({
1704
1704
  x: 0,
1705
1705
  y: 0,
1706
1706
  strategy: n,
1707
1707
  placement: t,
1708
1708
  middlewareData: {},
1709
1709
  isPositioned: !1
1710
- }), [g, h] = d.useState(o);
1710
+ }), [g, h] = u.useState(o);
1711
1711
  Ct(g, o) || h(o);
1712
- const [b, p] = d.useState(null), [v, y] = d.useState(null), w = d.useCallback((N) => {
1712
+ const [b, p] = u.useState(null), [v, y] = u.useState(null), w = u.useCallback((N) => {
1713
1713
  N !== k.current && (k.current = N, p(N));
1714
- }, []), x = d.useCallback((N) => {
1714
+ }, []), x = u.useCallback((N) => {
1715
1715
  N !== R.current && (R.current = N, y(N));
1716
- }, []), S = s || b, P = i || v, k = d.useRef(null), R = d.useRef(null), C = d.useRef(u), D = c != null, E = Kt(c), A = Kt(r), O = Kt(l), M = d.useCallback(() => {
1716
+ }, []), S = s || b, P = i || v, k = u.useRef(null), R = u.useRef(null), C = u.useRef(d), F = c != null, E = Kt(c), A = Kt(r), O = Kt(l), L = u.useCallback(() => {
1717
1717
  if (!k.current || !R.current)
1718
1718
  return;
1719
1719
  const N = {
@@ -1741,25 +1741,25 @@ function da(e) {
1741
1741
  isPositioned: !1
1742
1742
  })));
1743
1743
  }, [l]);
1744
- const B = d.useRef(!1);
1744
+ const B = u.useRef(!1);
1745
1745
  ht(() => (B.current = !0, () => {
1746
1746
  B.current = !1;
1747
1747
  }), []), ht(() => {
1748
1748
  if (S && (k.current = S), P && (R.current = P), S && P) {
1749
1749
  if (E.current)
1750
- return E.current(S, P, M);
1751
- M();
1750
+ return E.current(S, P, L);
1751
+ L();
1752
1752
  }
1753
- }, [S, P, M, E, D]);
1754
- const F = d.useMemo(() => ({
1753
+ }, [S, P, L, E, F]);
1754
+ const D = u.useMemo(() => ({
1755
1755
  reference: k,
1756
1756
  floating: R,
1757
1757
  setReference: w,
1758
1758
  setFloating: x
1759
- }), [w, x]), $ = d.useMemo(() => ({
1759
+ }), [w, x]), $ = u.useMemo(() => ({
1760
1760
  reference: S,
1761
1761
  floating: P
1762
- }), [S, P]), W = d.useMemo(() => {
1762
+ }), [S, P]), z = u.useMemo(() => {
1763
1763
  const N = {
1764
1764
  position: n,
1765
1765
  left: 0,
@@ -1767,7 +1767,7 @@ function da(e) {
1767
1767
  };
1768
1768
  if (!$.floating)
1769
1769
  return N;
1770
- const j = so($.floating, u.x), ee = so($.floating, u.y);
1770
+ const j = so($.floating, d.x), ee = so($.floating, d.y);
1771
1771
  return a ? {
1772
1772
  ...N,
1773
1773
  transform: "translate(" + j + "px, " + ee + "px)",
@@ -1779,16 +1779,16 @@ function da(e) {
1779
1779
  left: j,
1780
1780
  top: ee
1781
1781
  };
1782
- }, [n, a, $.floating, u.x, u.y]);
1783
- return d.useMemo(() => ({
1784
- ...u,
1785
- update: M,
1786
- refs: F,
1782
+ }, [n, a, $.floating, d.x, d.y]);
1783
+ return u.useMemo(() => ({
1784
+ ...d,
1785
+ update: L,
1786
+ refs: D,
1787
1787
  elements: $,
1788
- floatingStyles: W
1789
- }), [u, M, F, $, W]);
1788
+ floatingStyles: z
1789
+ }), [d, L, D, $, z]);
1790
1790
  }
1791
- const ua = (e) => {
1791
+ const da = (e) => {
1792
1792
  function t(n) {
1793
1793
  return {}.hasOwnProperty.call(n, "current");
1794
1794
  }
@@ -1828,10 +1828,10 @@ const ua = (e) => {
1828
1828
  ...sa(e),
1829
1829
  options: [e, t]
1830
1830
  }), ba = (e, t) => ({
1831
- ...ua(e),
1831
+ ...da(e),
1832
1832
  options: [e, t]
1833
1833
  });
1834
- var ya = "Arrow", zo = d.forwardRef((e, t) => {
1834
+ var ya = "Arrow", zo = u.forwardRef((e, t) => {
1835
1835
  const { children: n, width: o = 10, height: r = 5, ...s } = e;
1836
1836
  return /* @__PURE__ */ f(
1837
1837
  U.svg,
@@ -1849,7 +1849,7 @@ var ya = "Arrow", zo = d.forwardRef((e, t) => {
1849
1849
  zo.displayName = ya;
1850
1850
  var wa = zo;
1851
1851
  function Wo(e) {
1852
- const [t, n] = d.useState(void 0);
1852
+ const [t, n] = u.useState(void 0);
1853
1853
  return te(() => {
1854
1854
  if (e) {
1855
1855
  n({ width: e.offsetWidth, height: e.offsetHeight });
@@ -1871,21 +1871,21 @@ function Wo(e) {
1871
1871
  }, [e]), t;
1872
1872
  }
1873
1873
  var Pn = "Popper", [Vo, It] = De(Pn), [xa, Ho] = Vo(Pn), Uo = (e) => {
1874
- const { __scopePopper: t, children: n } = e, [o, r] = d.useState(null);
1874
+ const { __scopePopper: t, children: n } = e, [o, r] = u.useState(null);
1875
1875
  return /* @__PURE__ */ f(xa, { scope: t, anchor: o, onAnchorChange: r, children: n });
1876
1876
  };
1877
1877
  Uo.displayName = Pn;
1878
- var jo = "PopperAnchor", Go = d.forwardRef(
1878
+ var jo = "PopperAnchor", Go = u.forwardRef(
1879
1879
  (e, t) => {
1880
- const { __scopePopper: n, virtualRef: o, ...r } = e, s = Ho(jo, n), i = d.useRef(null), a = q(t, i), c = d.useRef(null);
1881
- return d.useEffect(() => {
1880
+ const { __scopePopper: n, virtualRef: o, ...r } = e, s = Ho(jo, n), i = u.useRef(null), a = q(t, i), c = u.useRef(null);
1881
+ return u.useEffect(() => {
1882
1882
  const l = c.current;
1883
1883
  c.current = o?.current || i.current, l !== c.current && s.onAnchorChange(c.current);
1884
1884
  }), o ? null : /* @__PURE__ */ f(U.div, { ...r, ref: a });
1885
1885
  }
1886
1886
  );
1887
1887
  Go.displayName = jo;
1888
- var Nn = "PopperContent", [Ca, Sa] = Vo(Nn), Ko = d.forwardRef(
1888
+ var Nn = "PopperContent", [Ca, Sa] = Vo(Nn), Ko = u.forwardRef(
1889
1889
  (e, t) => {
1890
1890
  const {
1891
1891
  __scopePopper: n,
@@ -1896,21 +1896,21 @@ var Nn = "PopperContent", [Ca, Sa] = Vo(Nn), Ko = d.forwardRef(
1896
1896
  arrowPadding: a = 0,
1897
1897
  avoidCollisions: c = !0,
1898
1898
  collisionBoundary: l = [],
1899
- collisionPadding: u = 0,
1899
+ collisionPadding: d = 0,
1900
1900
  sticky: m = "partial",
1901
1901
  hideWhenDetached: g = !1,
1902
1902
  updatePositionStrategy: h = "optimized",
1903
1903
  onPlaced: b,
1904
1904
  ...p
1905
- } = e, v = Ho(Nn, n), [y, w] = d.useState(null), x = q(t, (I) => w(I)), [S, P] = d.useState(null), k = Wo(S), R = k?.width ?? 0, C = k?.height ?? 0, D = o + (s !== "center" ? "-" + s : ""), E = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, A = Array.isArray(l) ? l : [l], O = A.length > 0, M = {
1905
+ } = e, v = Ho(Nn, n), [y, w] = u.useState(null), x = q(t, (I) => w(I)), [S, P] = u.useState(null), k = Wo(S), R = k?.width ?? 0, C = k?.height ?? 0, F = o + (s !== "center" ? "-" + s : ""), E = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, A = Array.isArray(l) ? l : [l], O = A.length > 0, L = {
1906
1906
  padding: E,
1907
1907
  boundary: A.filter(Ra),
1908
1908
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
1909
1909
  altBoundary: O
1910
- }, { refs: B, floatingStyles: F, placement: $, isPositioned: W, middlewareData: N } = da({
1910
+ }, { refs: B, floatingStyles: D, placement: $, isPositioned: z, middlewareData: N } = ua({
1911
1911
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
1912
1912
  strategy: "fixed",
1913
- placement: D,
1913
+ placement: F,
1914
1914
  whileElementsMounted: (...I) => ea(...I, {
1915
1915
  animationFrame: h === "always"
1916
1916
  }),
@@ -1923,11 +1923,11 @@ var Nn = "PopperContent", [Ca, Sa] = Vo(Nn), Ko = d.forwardRef(
1923
1923
  mainAxis: !0,
1924
1924
  crossAxis: !1,
1925
1925
  limiter: m === "partial" ? ma() : void 0,
1926
- ...M
1926
+ ...L
1927
1927
  }),
1928
- c && ha({ ...M }),
1928
+ c && ha({ ...L }),
1929
1929
  ga({
1930
- ...M,
1930
+ ...L,
1931
1931
  apply: ({ elements: I, rects: K, availableWidth: Q, availableHeight: H }) => {
1932
1932
  const { width: G, height: Y } = K.reference, re = I.floating.style;
1933
1933
  re.setProperty("--radix-popper-available-width", `${Q}px`), re.setProperty("--radix-popper-available-height", `${H}px`), re.setProperty("--radix-popper-anchor-width", `${G}px`), re.setProperty("--radix-popper-anchor-height", `${Y}px`);
@@ -1935,23 +1935,23 @@ var Nn = "PopperContent", [Ca, Sa] = Vo(Nn), Ko = d.forwardRef(
1935
1935
  }),
1936
1936
  S && ba({ element: S, padding: a }),
1937
1937
  ka({ arrowWidth: R, arrowHeight: C }),
1938
- g && va({ strategy: "referenceHidden", ...M })
1938
+ g && va({ strategy: "referenceHidden", ...L })
1939
1939
  ]
1940
- }), [j, ee] = Xo($), de = Re(b);
1940
+ }), [j, ee] = Xo($), ue = Re(b);
1941
1941
  te(() => {
1942
- W && de?.();
1943
- }, [W, de]);
1944
- const be = N.arrow?.x, Z = N.arrow?.y, X = N.arrow?.centerOffset !== 0, [se, ue] = d.useState();
1942
+ z && ue?.();
1943
+ }, [z, ue]);
1944
+ const be = N.arrow?.x, Z = N.arrow?.y, X = N.arrow?.centerOffset !== 0, [se, de] = u.useState();
1945
1945
  return te(() => {
1946
- y && ue(window.getComputedStyle(y).zIndex);
1946
+ y && de(window.getComputedStyle(y).zIndex);
1947
1947
  }, [y]), /* @__PURE__ */ f(
1948
1948
  "div",
1949
1949
  {
1950
1950
  ref: B.setFloating,
1951
1951
  "data-radix-popper-content-wrapper": "",
1952
1952
  style: {
1953
- ...F,
1954
- transform: W ? F.transform : "translate(0, -200%)",
1953
+ ...D,
1954
+ transform: z ? D.transform : "translate(0, -200%)",
1955
1955
  // keep off the page when measuring
1956
1956
  minWidth: "max-content",
1957
1957
  zIndex: se,
@@ -1988,7 +1988,7 @@ var Nn = "PopperContent", [Ca, Sa] = Vo(Nn), Ko = d.forwardRef(
1988
1988
  ...p.style,
1989
1989
  // if the PopperContent hasn't been placed yet (not all measurements done)
1990
1990
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
1991
- animation: W ? void 0 : "none"
1991
+ animation: z ? void 0 : "none"
1992
1992
  }
1993
1993
  }
1994
1994
  )
@@ -2004,7 +2004,7 @@ var Yo = "PopperArrow", Ea = {
2004
2004
  right: "left",
2005
2005
  bottom: "top",
2006
2006
  left: "right"
2007
- }, qo = d.forwardRef(function(t, n) {
2007
+ }, qo = u.forwardRef(function(t, n) {
2008
2008
  const { __scopePopper: o, ...r } = t, s = Sa(Yo, o), i = Ea[s.placedSide];
2009
2009
  return (
2010
2010
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
@@ -2057,7 +2057,7 @@ var ka = (e) => ({
2057
2057
  name: "transformOrigin",
2058
2058
  options: e,
2059
2059
  fn(t) {
2060
- const { placement: n, rects: o, middlewareData: r } = t, i = r.arrow?.centerOffset !== 0, a = i ? 0 : e.arrowWidth, c = i ? 0 : e.arrowHeight, [l, u] = Xo(n), m = { start: "0%", center: "50%", end: "100%" }[u], g = (r.arrow?.x ?? 0) + a / 2, h = (r.arrow?.y ?? 0) + c / 2;
2060
+ const { placement: n, rects: o, middlewareData: r } = t, i = r.arrow?.centerOffset !== 0, a = i ? 0 : e.arrowWidth, c = i ? 0 : e.arrowHeight, [l, d] = Xo(n), m = { start: "0%", center: "50%", end: "100%" }[d], g = (r.arrow?.x ?? 0) + a / 2, h = (r.arrow?.y ?? 0) + c / 2;
2061
2061
  let b = "", p = "";
2062
2062
  return l === "bottom" ? (b = i ? m : `${g}px`, p = `${-c}px`) : l === "top" ? (b = i ? m : `${g}px`, p = `${o.floating.height + c}px`) : l === "right" ? (b = `${-c}px`, p = i ? m : `${h}px`) : l === "left" && (b = `${o.floating.width + c}px`, p = i ? m : `${h}px`), { data: { x: b, y: p } };
2063
2063
  }
@@ -2066,14 +2066,14 @@ function Xo(e) {
2066
2066
  const [t, n = "center"] = e.split("-");
2067
2067
  return [t, n];
2068
2068
  }
2069
- var Zo = Uo, An = Go, Qo = Ko, Jo = qo, Pa = "Portal", On = d.forwardRef((e, t) => {
2070
- const { container: n, ...o } = e, [r, s] = d.useState(!1);
2069
+ var Zo = Uo, An = Go, Qo = Ko, Jo = qo, Pa = "Portal", On = u.forwardRef((e, t) => {
2070
+ const { container: n, ...o } = e, [r, s] = u.useState(!1);
2071
2071
  te(() => s(!0), []);
2072
2072
  const i = n || r && globalThis?.document?.body;
2073
2073
  return i ? _s.createPortal(/* @__PURE__ */ f(U.div, { ...o, ref: t }), i) : null;
2074
2074
  });
2075
2075
  On.displayName = Pa;
2076
- var Na = d[" useInsertionEffect ".trim().toString()] || te;
2076
+ var Na = u[" useInsertionEffect ".trim().toString()] || te;
2077
2077
  function nt({
2078
2078
  prop: e,
2079
2079
  defaultProp: t,
@@ -2086,21 +2086,21 @@ function nt({
2086
2086
  onChange: n
2087
2087
  }), a = e !== void 0, c = a ? e : r;
2088
2088
  {
2089
- const u = d.useRef(e !== void 0);
2090
- d.useEffect(() => {
2091
- const m = u.current;
2089
+ const d = u.useRef(e !== void 0);
2090
+ u.useEffect(() => {
2091
+ const m = d.current;
2092
2092
  m !== a && console.warn(
2093
2093
  `${o} is changing from ${m ? "controlled" : "uncontrolled"} to ${a ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
2094
- ), u.current = a;
2094
+ ), d.current = a;
2095
2095
  }, [a, o]);
2096
2096
  }
2097
- const l = d.useCallback(
2098
- (u) => {
2097
+ const l = u.useCallback(
2098
+ (d) => {
2099
2099
  if (a) {
2100
- const m = Oa(u) ? u(e) : u;
2100
+ const m = Oa(d) ? d(e) : d;
2101
2101
  m !== e && i.current?.(m);
2102
2102
  } else
2103
- s(u);
2103
+ s(d);
2104
2104
  },
2105
2105
  [a, e, s, i]
2106
2106
  );
@@ -2110,10 +2110,10 @@ function Aa({
2110
2110
  defaultProp: e,
2111
2111
  onChange: t
2112
2112
  }) {
2113
- const [n, o] = d.useState(e), r = d.useRef(n), s = d.useRef(t);
2113
+ const [n, o] = u.useState(e), r = u.useRef(n), s = u.useRef(t);
2114
2114
  return Na(() => {
2115
2115
  s.current = t;
2116
- }, [t]), d.useEffect(() => {
2116
+ }, [t]), u.useEffect(() => {
2117
2117
  r.current !== n && (s.current?.(n), r.current = n);
2118
2118
  }, [n, r]), [n, o, s];
2119
2119
  }
@@ -2121,8 +2121,8 @@ function Oa(e) {
2121
2121
  return typeof e == "function";
2122
2122
  }
2123
2123
  function er(e) {
2124
- const t = d.useRef({ value: e, previous: e });
2125
- return d.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
2124
+ const t = u.useRef({ value: e, previous: e });
2125
+ return u.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
2126
2126
  }
2127
2127
  var tr = Object.freeze({
2128
2128
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
@@ -2136,7 +2136,7 @@ var tr = Object.freeze({
2136
2136
  clip: "rect(0, 0, 0, 0)",
2137
2137
  whiteSpace: "nowrap",
2138
2138
  wordWrap: "normal"
2139
- }), Ia = "VisuallyHidden", Ta = d.forwardRef(
2139
+ }), Ia = "VisuallyHidden", Ta = u.forwardRef(
2140
2140
  (e, t) => /* @__PURE__ */ f(
2141
2141
  U.span,
2142
2142
  {
@@ -2170,10 +2170,10 @@ var Ma = function(e) {
2170
2170
  !m || a.has(m) || (a.add(m), l(m.parentNode));
2171
2171
  };
2172
2172
  r.forEach(l);
2173
- var u = function(m) {
2173
+ var d = function(m) {
2174
2174
  !m || c.has(m) || Array.prototype.forEach.call(m.children, function(g) {
2175
2175
  if (a.has(g))
2176
- u(g);
2176
+ d(g);
2177
2177
  else
2178
2178
  try {
2179
2179
  var h = g.getAttribute(o), b = h !== null && h !== "false", p = (Fe.get(g) || 0) + 1, v = (s.get(g) || 0) + 1;
@@ -2183,7 +2183,7 @@ var Ma = function(e) {
2183
2183
  }
2184
2184
  });
2185
2185
  };
2186
- return u(t), a.clear(), Yt++, function() {
2186
+ return d(t), a.clear(), Yt++, function() {
2187
2187
  i.forEach(function(m) {
2188
2188
  var g = Fe.get(m) - 1, h = s.get(m) - 1;
2189
2189
  Fe.set(m, g), s.set(m, h), g || (ct.has(m) || m.removeAttribute(o), ct.delete(m)), h || m.removeAttribute(n);
@@ -2242,7 +2242,7 @@ function Ba(e, t) {
2242
2242
  })[0];
2243
2243
  return n.callback = t, n.facade;
2244
2244
  }
2245
- var za = typeof window < "u" ? d.useLayoutEffect : d.useEffect, io = /* @__PURE__ */ new WeakMap();
2245
+ var za = typeof window < "u" ? u.useLayoutEffect : u.useEffect, io = /* @__PURE__ */ new WeakMap();
2246
2246
  function Wa(e, t) {
2247
2247
  var n = Ba(null, function(o) {
2248
2248
  return e.forEach(function(r) {
@@ -2303,17 +2303,17 @@ function Ha(e, t) {
2303
2303
  n = [], a.forEach(s), i = n;
2304
2304
  }
2305
2305
  var c = function() {
2306
- var u = i;
2307
- i = [], u.forEach(s);
2306
+ var d = i;
2307
+ i = [], d.forEach(s);
2308
2308
  }, l = function() {
2309
2309
  return Promise.resolve().then(c);
2310
2310
  };
2311
2311
  l(), n = {
2312
- push: function(u) {
2313
- i.push(u), l();
2312
+ push: function(d) {
2313
+ i.push(d), l();
2314
2314
  },
2315
- filter: function(u) {
2316
- return i = i.filter(u), n;
2315
+ filter: function(d) {
2316
+ return i = i.filter(d), n;
2317
2317
  }
2318
2318
  };
2319
2319
  }
@@ -2332,24 +2332,24 @@ var sr = function(e) {
2332
2332
  var o = t.read();
2333
2333
  if (!o)
2334
2334
  throw new Error("Sidecar medium not found");
2335
- return d.createElement(o, fe({}, n));
2335
+ return u.createElement(o, fe({}, n));
2336
2336
  };
2337
2337
  sr.isSideCarExport = !0;
2338
2338
  function ja(e, t) {
2339
2339
  return e.useMedium(t), sr;
2340
2340
  }
2341
2341
  var ir = Ua(), Xt = function() {
2342
- }, Tt = d.forwardRef(function(e, t) {
2343
- var n = d.useRef(null), o = d.useState({
2342
+ }, Tt = u.forwardRef(function(e, t) {
2343
+ var n = u.useRef(null), o = u.useState({
2344
2344
  onScrollCapture: Xt,
2345
2345
  onWheelCapture: Xt,
2346
2346
  onTouchMoveCapture: Xt
2347
- }), r = o[0], s = o[1], i = e.forwardProps, a = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, m = e.shards, g = e.sideCar, h = e.noRelative, b = e.noIsolation, p = e.inert, v = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, x = e.gapMode, S = rr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), P = g, k = Wa([n, t]), R = fe(fe({}, S), r);
2348
- return d.createElement(
2349
- d.Fragment,
2347
+ }), r = o[0], s = o[1], i = e.forwardProps, a = e.children, c = e.className, l = e.removeScrollBar, d = e.enabled, m = e.shards, g = e.sideCar, h = e.noRelative, b = e.noIsolation, p = e.inert, v = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, x = e.gapMode, S = rr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), P = g, k = Wa([n, t]), R = fe(fe({}, S), r);
2348
+ return u.createElement(
2349
+ u.Fragment,
2350
2350
  null,
2351
- u && d.createElement(P, { sideCar: ir, removeScrollBar: l, shards: m, noRelative: h, noIsolation: b, inert: p, setCallbacks: s, allowPinchZoom: !!v, lockRef: n, gapMode: x }),
2352
- i ? d.cloneElement(d.Children.only(a), fe(fe({}, R), { ref: k })) : d.createElement(w, fe({}, R, { className: c, ref: k }), a)
2351
+ d && u.createElement(P, { sideCar: ir, removeScrollBar: l, shards: m, noRelative: h, noIsolation: b, inert: p, setCallbacks: s, allowPinchZoom: !!v, lockRef: n, gapMode: x }),
2352
+ i ? u.cloneElement(u.Children.only(a), fe(fe({}, R), { ref: k })) : u.createElement(w, fe({}, R, { className: c, ref: k }), a)
2353
2353
  );
2354
2354
  });
2355
2355
  Tt.defaultProps = {
@@ -2393,7 +2393,7 @@ var Xa = function() {
2393
2393
  }, Za = function() {
2394
2394
  var e = Xa();
2395
2395
  return function(t, n) {
2396
- d.useEffect(function() {
2396
+ u.useEffect(function() {
2397
2397
  return e.add(t), function() {
2398
2398
  e.remove();
2399
2399
  };
@@ -2473,7 +2473,7 @@ var Xa = function() {
2473
2473
  var e = parseInt(document.body.getAttribute(Ve) || "0", 10);
2474
2474
  return isFinite(e) ? e : 0;
2475
2475
  }, oc = function() {
2476
- d.useEffect(function() {
2476
+ u.useEffect(function() {
2477
2477
  return document.body.setAttribute(Ve, (ao() + 1).toString()), function() {
2478
2478
  var e = ao() - 1;
2479
2479
  e <= 0 ? document.body.removeAttribute(Ve) : document.body.setAttribute(Ve, e.toString());
@@ -2482,19 +2482,19 @@ var Xa = function() {
2482
2482
  }, rc = function(e) {
2483
2483
  var t = e.noRelative, n = e.noImportant, o = e.gapMode, r = o === void 0 ? "margin" : o;
2484
2484
  oc();
2485
- var s = d.useMemo(function() {
2485
+ var s = u.useMemo(function() {
2486
2486
  return ec(r);
2487
2487
  }, [r]);
2488
- return d.createElement(tc, { styles: nc(s, !t, r, n ? "" : "!important") });
2488
+ return u.createElement(tc, { styles: nc(s, !t, r, n ? "" : "!important") });
2489
2489
  }, ln = !1;
2490
2490
  if (typeof window < "u")
2491
2491
  try {
2492
- var dt = Object.defineProperty({}, "passive", {
2492
+ var ut = Object.defineProperty({}, "passive", {
2493
2493
  get: function() {
2494
2494
  return ln = !0, !0;
2495
2495
  }
2496
2496
  });
2497
- window.addEventListener("test", dt, dt), window.removeEventListener("test", dt, dt);
2497
+ window.addEventListener("test", ut, ut), window.removeEventListener("test", ut, ut);
2498
2498
  } catch {
2499
2499
  ln = !1;
2500
2500
  }
@@ -2519,7 +2519,7 @@ var $e = ln ? { passive: !1 } : !1, sc = function(e) {
2519
2519
  typeof ShadowRoot < "u" && o instanceof ShadowRoot && (o = o.host);
2520
2520
  var r = lr(e, o);
2521
2521
  if (r) {
2522
- var s = dr(e, o), i = s[1], a = s[2];
2522
+ var s = ur(e, o), i = s[1], a = s[2];
2523
2523
  if (i > a)
2524
2524
  return !0;
2525
2525
  }
@@ -2542,16 +2542,16 @@ var $e = ln ? { passive: !1 } : !1, sc = function(e) {
2542
2542
  ];
2543
2543
  }, lr = function(e, t) {
2544
2544
  return e === "v" ? ic(t) : ac(t);
2545
- }, dr = function(e, t) {
2545
+ }, ur = function(e, t) {
2546
2546
  return e === "v" ? cc(t) : lc(t);
2547
- }, dc = function(e, t) {
2547
+ }, uc = function(e, t) {
2548
2548
  return e === "h" && t === "rtl" ? -1 : 1;
2549
- }, uc = function(e, t, n, o, r) {
2550
- var s = dc(e, window.getComputedStyle(t).direction), i = s * o, a = n.target, c = t.contains(a), l = !1, u = i > 0, m = 0, g = 0;
2549
+ }, dc = function(e, t, n, o, r) {
2550
+ var s = uc(e, window.getComputedStyle(t).direction), i = s * o, a = n.target, c = t.contains(a), l = !1, d = i > 0, m = 0, g = 0;
2551
2551
  do {
2552
2552
  if (!a)
2553
2553
  break;
2554
- var h = dr(e, a), b = h[0], p = h[1], v = h[2], y = p - v - s * b;
2554
+ var h = ur(e, a), b = h[0], p = h[1], v = h[2], y = p - v - s * b;
2555
2555
  (b || y) && lr(e, a) && (m += y, g += b);
2556
2556
  var w = a.parentNode;
2557
2557
  a = w && w.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? w.host : w;
@@ -2560,8 +2560,8 @@ var $e = ln ? { passive: !1 } : !1, sc = function(e) {
2560
2560
  !c && a !== document.body || // self content
2561
2561
  c && (t.contains(a) || t === a)
2562
2562
  );
2563
- return (u && Math.abs(m) < 1 || !u && Math.abs(g) < 1) && (l = !0), l;
2564
- }, ut = function(e) {
2563
+ return (d && Math.abs(m) < 1 || !d && Math.abs(g) < 1) && (l = !0), l;
2564
+ }, dt = function(e) {
2565
2565
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
2566
2566
  }, lo = function(e) {
2567
2567
  return [e.deltaX, e.deltaY];
@@ -2576,10 +2576,10 @@ var $e = ln ? { passive: !1 } : !1, sc = function(e) {
2576
2576
  `);
2577
2577
  }, mc = 0, Be = [];
2578
2578
  function hc(e) {
2579
- var t = d.useRef([]), n = d.useRef([0, 0]), o = d.useRef(), r = d.useState(mc++)[0], s = d.useState(ar)[0], i = d.useRef(e);
2580
- d.useEffect(function() {
2579
+ var t = u.useRef([]), n = u.useRef([0, 0]), o = u.useRef(), r = u.useState(mc++)[0], s = u.useState(ar)[0], i = u.useRef(e);
2580
+ u.useEffect(function() {
2581
2581
  i.current = e;
2582
- }, [e]), d.useEffect(function() {
2582
+ }, [e]), u.useEffect(function() {
2583
2583
  if (e.inert) {
2584
2584
  document.body.classList.add("block-interactivity-".concat(r));
2585
2585
  var p = Da([e.lockRef.current], (e.shards || []).map(uo), !0).filter(Boolean);
@@ -2592,10 +2592,10 @@ function hc(e) {
2592
2592
  };
2593
2593
  }
2594
2594
  }, [e.inert, e.lockRef.current, e.shards]);
2595
- var a = d.useCallback(function(p, v) {
2595
+ var a = u.useCallback(function(p, v) {
2596
2596
  if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
2597
2597
  return !i.current.allowPinchZoom;
2598
- var y = ut(p), w = n.current, x = "deltaX" in p ? p.deltaX : w[0] - y[0], S = "deltaY" in p ? p.deltaY : w[1] - y[1], P, k = p.target, R = Math.abs(x) > Math.abs(S) ? "h" : "v";
2598
+ var y = dt(p), w = n.current, x = "deltaX" in p ? p.deltaX : w[0] - y[0], S = "deltaY" in p ? p.deltaY : w[1] - y[1], P, k = p.target, R = Math.abs(x) > Math.abs(S) ? "h" : "v";
2599
2599
  if ("touches" in p && R === "h" && k.type === "range")
2600
2600
  return !1;
2601
2601
  var C = co(R, k);
@@ -2605,12 +2605,12 @@ function hc(e) {
2605
2605
  return !1;
2606
2606
  if (!o.current && "changedTouches" in p && (x || S) && (o.current = P), !P)
2607
2607
  return !0;
2608
- var D = o.current || P;
2609
- return uc(D, v, p, D === "h" ? x : S);
2610
- }, []), c = d.useCallback(function(p) {
2608
+ var F = o.current || P;
2609
+ return dc(F, v, p, F === "h" ? x : S);
2610
+ }, []), c = u.useCallback(function(p) {
2611
2611
  var v = p;
2612
2612
  if (!(!Be.length || Be[Be.length - 1] !== s)) {
2613
- var y = "deltaY" in v ? lo(v) : ut(v), w = t.current.filter(function(P) {
2613
+ var y = "deltaY" in v ? lo(v) : dt(v), w = t.current.filter(function(P) {
2614
2614
  return P.name === v.type && (P.target === v.target || v.target === P.shadowParent) && fc(P.delta, y);
2615
2615
  })[0];
2616
2616
  if (w && w.should) {
@@ -2624,37 +2624,37 @@ function hc(e) {
2624
2624
  S && v.cancelable && v.preventDefault();
2625
2625
  }
2626
2626
  }
2627
- }, []), l = d.useCallback(function(p, v, y, w) {
2627
+ }, []), l = u.useCallback(function(p, v, y, w) {
2628
2628
  var x = { name: p, delta: v, target: y, should: w, shadowParent: gc(y) };
2629
2629
  t.current.push(x), setTimeout(function() {
2630
2630
  t.current = t.current.filter(function(S) {
2631
2631
  return S !== x;
2632
2632
  });
2633
2633
  }, 1);
2634
- }, []), u = d.useCallback(function(p) {
2635
- n.current = ut(p), o.current = void 0;
2636
- }, []), m = d.useCallback(function(p) {
2634
+ }, []), d = u.useCallback(function(p) {
2635
+ n.current = dt(p), o.current = void 0;
2636
+ }, []), m = u.useCallback(function(p) {
2637
2637
  l(p.type, lo(p), p.target, a(p, e.lockRef.current));
2638
- }, []), g = d.useCallback(function(p) {
2639
- l(p.type, ut(p), p.target, a(p, e.lockRef.current));
2638
+ }, []), g = u.useCallback(function(p) {
2639
+ l(p.type, dt(p), p.target, a(p, e.lockRef.current));
2640
2640
  }, []);
2641
- d.useEffect(function() {
2641
+ u.useEffect(function() {
2642
2642
  return Be.push(s), e.setCallbacks({
2643
2643
  onScrollCapture: m,
2644
2644
  onWheelCapture: m,
2645
2645
  onTouchMoveCapture: g
2646
- }), document.addEventListener("wheel", c, $e), document.addEventListener("touchmove", c, $e), document.addEventListener("touchstart", u, $e), function() {
2646
+ }), document.addEventListener("wheel", c, $e), document.addEventListener("touchmove", c, $e), document.addEventListener("touchstart", d, $e), function() {
2647
2647
  Be = Be.filter(function(p) {
2648
2648
  return p !== s;
2649
- }), document.removeEventListener("wheel", c, $e), document.removeEventListener("touchmove", c, $e), document.removeEventListener("touchstart", u, $e);
2649
+ }), document.removeEventListener("wheel", c, $e), document.removeEventListener("touchmove", c, $e), document.removeEventListener("touchstart", d, $e);
2650
2650
  };
2651
2651
  }, []);
2652
2652
  var h = e.removeScrollBar, b = e.inert;
2653
- return d.createElement(
2654
- d.Fragment,
2653
+ return u.createElement(
2654
+ u.Fragment,
2655
2655
  null,
2656
- b ? d.createElement(s, { styles: pc(r) }) : null,
2657
- h ? d.createElement(rc, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
2656
+ b ? u.createElement(s, { styles: pc(r) }) : null,
2657
+ h ? u.createElement(rc, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
2658
2658
  );
2659
2659
  }
2660
2660
  function gc(e) {
@@ -2663,14 +2663,14 @@ function gc(e) {
2663
2663
  return t;
2664
2664
  }
2665
2665
  const vc = ja(ir, hc);
2666
- var In = d.forwardRef(function(e, t) {
2667
- return d.createElement(Tt, fe({}, e, { ref: t, sideCar: vc }));
2666
+ var In = u.forwardRef(function(e, t) {
2667
+ return u.createElement(Tt, fe({}, e, { ref: t, sideCar: vc }));
2668
2668
  });
2669
2669
  In.classNames = Tt.classNames;
2670
2670
  var bc = [" ", "Enter", "ArrowUp", "ArrowDown"], yc = [" ", "Enter"], _e = "Select", [Mt, _t, wc] = Eo(_e), [Ke] = De(_e, [
2671
2671
  wc,
2672
2672
  It
2673
- ]), Lt = It(), [xc, Ne] = Ke(_e), [Cc, Sc] = Ke(_e), ur = (e) => {
2673
+ ]), Lt = It(), [xc, Ne] = Ke(_e), [Cc, Sc] = Ke(_e), dr = (e) => {
2674
2674
  const {
2675
2675
  __scopeSelect: t,
2676
2676
  children: n,
@@ -2681,22 +2681,22 @@ var bc = [" ", "Enter", "ArrowUp", "ArrowDown"], yc = [" ", "Enter"], _e = "Sele
2681
2681
  defaultValue: a,
2682
2682
  onValueChange: c,
2683
2683
  dir: l,
2684
- name: u,
2684
+ name: d,
2685
2685
  autoComplete: m,
2686
2686
  disabled: g,
2687
2687
  required: h,
2688
2688
  form: b
2689
- } = e, p = Lt(t), [v, y] = d.useState(null), [w, x] = d.useState(null), [S, P] = d.useState(!1), k = bn(l), [R, C] = nt({
2689
+ } = e, p = Lt(t), [v, y] = u.useState(null), [w, x] = u.useState(null), [S, P] = u.useState(!1), k = bn(l), [R, C] = nt({
2690
2690
  prop: o,
2691
2691
  defaultProp: r ?? !1,
2692
2692
  onChange: s,
2693
2693
  caller: _e
2694
- }), [D, E] = nt({
2694
+ }), [F, E] = nt({
2695
2695
  prop: i,
2696
2696
  defaultProp: a,
2697
2697
  onChange: c,
2698
2698
  caller: _e
2699
- }), A = d.useRef(null), O = v ? b || !!v.closest("form") : !0, [M, B] = d.useState(/* @__PURE__ */ new Set()), F = Array.from(M).map(($) => $.props.value).join(";");
2699
+ }), A = u.useRef(null), O = v ? b || !!v.closest("form") : !0, [L, B] = u.useState(/* @__PURE__ */ new Set()), D = Array.from(L).map(($) => $.props.value).join(";");
2700
2700
  return /* @__PURE__ */ f(Zo, { ...p, children: /* @__PURE__ */ T(
2701
2701
  xc,
2702
2702
  {
@@ -2709,7 +2709,7 @@ var bc = [" ", "Enter", "ArrowUp", "ArrowDown"], yc = [" ", "Enter"], _e = "Sele
2709
2709
  valueNodeHasChildren: S,
2710
2710
  onValueNodeHasChildrenChange: P,
2711
2711
  contentId: ot(),
2712
- value: D,
2712
+ value: F,
2713
2713
  onValueChange: E,
2714
2714
  open: R,
2715
2715
  onOpenChange: C,
@@ -2721,12 +2721,12 @@ var bc = [" ", "Enter", "ArrowUp", "ArrowDown"], yc = [" ", "Enter"], _e = "Sele
2721
2721
  Cc,
2722
2722
  {
2723
2723
  scope: e.__scopeSelect,
2724
- onNativeOptionAdd: d.useCallback(($) => {
2725
- B((W) => new Set(W).add($));
2724
+ onNativeOptionAdd: u.useCallback(($) => {
2725
+ B((z) => new Set(z).add($));
2726
2726
  }, []),
2727
- onNativeOptionRemove: d.useCallback(($) => {
2728
- B((W) => {
2729
- const N = new Set(W);
2727
+ onNativeOptionRemove: u.useCallback(($) => {
2728
+ B((z) => {
2729
+ const N = new Set(z);
2730
2730
  return N.delete($), N;
2731
2731
  });
2732
2732
  }, []),
@@ -2739,27 +2739,27 @@ var bc = [" ", "Enter", "ArrowUp", "ArrowDown"], yc = [" ", "Enter"], _e = "Sele
2739
2739
  "aria-hidden": !0,
2740
2740
  required: h,
2741
2741
  tabIndex: -1,
2742
- name: u,
2742
+ name: d,
2743
2743
  autoComplete: m,
2744
- value: D,
2744
+ value: F,
2745
2745
  onChange: ($) => E($.target.value),
2746
2746
  disabled: g,
2747
2747
  form: b,
2748
2748
  children: [
2749
- D === void 0 ? /* @__PURE__ */ f("option", { value: "" }) : null,
2750
- Array.from(M)
2749
+ F === void 0 ? /* @__PURE__ */ f("option", { value: "" }) : null,
2750
+ Array.from(L)
2751
2751
  ]
2752
2752
  },
2753
- F
2753
+ D
2754
2754
  ) : null
2755
2755
  ]
2756
2756
  }
2757
2757
  ) });
2758
2758
  };
2759
- ur.displayName = _e;
2760
- var fr = "SelectTrigger", pr = d.forwardRef(
2759
+ dr.displayName = _e;
2760
+ var fr = "SelectTrigger", pr = u.forwardRef(
2761
2761
  (e, t) => {
2762
- const { __scopeSelect: n, disabled: o = !1, ...r } = e, s = Lt(n), i = Ne(fr, n), a = i.disabled || o, c = q(t, i.onTriggerChange), l = _t(n), u = d.useRef("touch"), [m, g, h] = Fr((p) => {
2762
+ const { __scopeSelect: n, disabled: o = !1, ...r } = e, s = Lt(n), i = Ne(fr, n), a = i.disabled || o, c = q(t, i.onTriggerChange), l = _t(n), d = u.useRef("touch"), [m, g, h] = Fr((p) => {
2763
2763
  const v = l().filter((x) => !x.disabled), y = v.find((x) => x.value === i.value), w = $r(v, p, y);
2764
2764
  w !== void 0 && i.onValueChange(w.value);
2765
2765
  }), b = (p) => {
@@ -2785,10 +2785,10 @@ var fr = "SelectTrigger", pr = d.forwardRef(
2785
2785
  ...r,
2786
2786
  ref: c,
2787
2787
  onClick: V(r.onClick, (p) => {
2788
- p.currentTarget.focus(), u.current !== "mouse" && b(p);
2788
+ p.currentTarget.focus(), d.current !== "mouse" && b(p);
2789
2789
  }),
2790
2790
  onPointerDown: V(r.onPointerDown, (p) => {
2791
- u.current = p.pointerType;
2791
+ d.current = p.pointerType;
2792
2792
  const v = p.target;
2793
2793
  v.hasPointerCapture(p.pointerId) && v.releasePointerCapture(p.pointerId), p.button === 0 && p.ctrlKey === !1 && p.pointerType === "mouse" && (b(p), p.preventDefault());
2794
2794
  }),
@@ -2801,12 +2801,12 @@ var fr = "SelectTrigger", pr = d.forwardRef(
2801
2801
  }
2802
2802
  );
2803
2803
  pr.displayName = fr;
2804
- var mr = "SelectValue", hr = d.forwardRef(
2804
+ var mr = "SelectValue", hr = u.forwardRef(
2805
2805
  (e, t) => {
2806
- const { __scopeSelect: n, className: o, style: r, children: s, placeholder: i = "", ...a } = e, c = Ne(mr, n), { onValueNodeHasChildrenChange: l } = c, u = s !== void 0, m = q(t, c.onValueNodeChange);
2806
+ const { __scopeSelect: n, className: o, style: r, children: s, placeholder: i = "", ...a } = e, c = Ne(mr, n), { onValueNodeHasChildrenChange: l } = c, d = s !== void 0, m = q(t, c.onValueNodeChange);
2807
2807
  return te(() => {
2808
- l(u);
2809
- }, [l, u]), /* @__PURE__ */ f(
2808
+ l(d);
2809
+ }, [l, d]), /* @__PURE__ */ f(
2810
2810
  U.span,
2811
2811
  {
2812
2812
  ...a,
@@ -2818,7 +2818,7 @@ var mr = "SelectValue", hr = d.forwardRef(
2818
2818
  }
2819
2819
  );
2820
2820
  hr.displayName = mr;
2821
- var Ec = "SelectIcon", gr = d.forwardRef(
2821
+ var Ec = "SelectIcon", gr = u.forwardRef(
2822
2822
  (e, t) => {
2823
2823
  const { __scopeSelect: n, children: o, ...r } = e;
2824
2824
  return /* @__PURE__ */ f(U.span, { "aria-hidden": !0, ...r, ref: t, children: o || "▼" });
@@ -2827,9 +2827,9 @@ var Ec = "SelectIcon", gr = d.forwardRef(
2827
2827
  gr.displayName = Ec;
2828
2828
  var Rc = "SelectPortal", vr = (e) => /* @__PURE__ */ f(On, { asChild: !0, ...e });
2829
2829
  vr.displayName = Rc;
2830
- var Le = "SelectContent", br = d.forwardRef(
2830
+ var Le = "SelectContent", br = u.forwardRef(
2831
2831
  (e, t) => {
2832
- const n = Ne(Le, e.__scopeSelect), [o, r] = d.useState();
2832
+ const n = Ne(Le, e.__scopeSelect), [o, r] = u.useState();
2833
2833
  if (te(() => {
2834
2834
  r(new DocumentFragment());
2835
2835
  }, []), !n.open) {
@@ -2843,7 +2843,7 @@ var Le = "SelectContent", br = d.forwardRef(
2843
2843
  }
2844
2844
  );
2845
2845
  br.displayName = Le;
2846
- var ie = 10, [yr, Ae] = Ke(Le), kc = "SelectContentImpl", Pc = /* @__PURE__ */ Je("SelectContent.RemoveScroll"), wr = d.forwardRef(
2846
+ var ie = 10, [yr, Ae] = Ke(Le), kc = "SelectContentImpl", Pc = /* @__PURE__ */ Je("SelectContent.RemoveScroll"), wr = u.forwardRef(
2847
2847
  (e, t) => {
2848
2848
  const {
2849
2849
  __scopeSelect: n,
@@ -2856,7 +2856,7 @@ var ie = 10, [yr, Ae] = Ke(Le), kc = "SelectContentImpl", Pc = /* @__PURE__ */ J
2856
2856
  side: a,
2857
2857
  sideOffset: c,
2858
2858
  align: l,
2859
- alignOffset: u,
2859
+ alignOffset: d,
2860
2860
  arrowPadding: m,
2861
2861
  collisionBoundary: g,
2862
2862
  collisionPadding: h,
@@ -2865,28 +2865,28 @@ var ie = 10, [yr, Ae] = Ke(Le), kc = "SelectContentImpl", Pc = /* @__PURE__ */ J
2865
2865
  avoidCollisions: v,
2866
2866
  //
2867
2867
  ...y
2868
- } = e, w = Ne(Le, n), [x, S] = d.useState(null), [P, k] = d.useState(null), R = q(t, (I) => S(I)), [C, D] = d.useState(null), [E, A] = d.useState(
2868
+ } = e, w = Ne(Le, n), [x, S] = u.useState(null), [P, k] = u.useState(null), R = q(t, (I) => S(I)), [C, F] = u.useState(null), [E, A] = u.useState(
2869
2869
  null
2870
- ), O = _t(n), [M, B] = d.useState(!1), F = d.useRef(!1);
2871
- d.useEffect(() => {
2870
+ ), O = _t(n), [L, B] = u.useState(!1), D = u.useRef(!1);
2871
+ u.useEffect(() => {
2872
2872
  if (x) return or(x);
2873
2873
  }, [x]), Po();
2874
- const $ = d.useCallback(
2874
+ const $ = u.useCallback(
2875
2875
  (I) => {
2876
2876
  const [K, ...Q] = O().map((Y) => Y.ref.current), [H] = Q.slice(-1), G = document.activeElement;
2877
2877
  for (const Y of I)
2878
2878
  if (Y === G || (Y?.scrollIntoView({ block: "nearest" }), Y === K && P && (P.scrollTop = 0), Y === H && P && (P.scrollTop = P.scrollHeight), Y?.focus(), document.activeElement !== G)) return;
2879
2879
  },
2880
2880
  [O, P]
2881
- ), W = d.useCallback(
2881
+ ), z = u.useCallback(
2882
2882
  () => $([C, x]),
2883
2883
  [$, C, x]
2884
2884
  );
2885
- d.useEffect(() => {
2886
- M && W();
2887
- }, [M, W]);
2885
+ u.useEffect(() => {
2886
+ L && z();
2887
+ }, [L, z]);
2888
2888
  const { onOpenChange: N, triggerPointerDownPosRef: j } = w;
2889
- d.useEffect(() => {
2889
+ u.useEffect(() => {
2890
2890
  if (x) {
2891
2891
  let I = { x: 0, y: 0 };
2892
2892
  const K = (H) => {
@@ -2901,32 +2901,32 @@ var ie = 10, [yr, Ae] = Ke(Le), kc = "SelectContentImpl", Pc = /* @__PURE__ */ J
2901
2901
  document.removeEventListener("pointermove", K), document.removeEventListener("pointerup", Q, { capture: !0 });
2902
2902
  };
2903
2903
  }
2904
- }, [x, N, j]), d.useEffect(() => {
2904
+ }, [x, N, j]), u.useEffect(() => {
2905
2905
  const I = () => N(!1);
2906
2906
  return window.addEventListener("blur", I), window.addEventListener("resize", I), () => {
2907
2907
  window.removeEventListener("blur", I), window.removeEventListener("resize", I);
2908
2908
  };
2909
2909
  }, [N]);
2910
- const [ee, de] = Fr((I) => {
2910
+ const [ee, ue] = Fr((I) => {
2911
2911
  const K = O().filter((G) => !G.disabled), Q = K.find((G) => G.ref.current === document.activeElement), H = $r(K, I, Q);
2912
2912
  H && setTimeout(() => H.ref.current.focus());
2913
- }), be = d.useCallback(
2913
+ }), be = u.useCallback(
2914
2914
  (I, K, Q) => {
2915
- const H = !F.current && !Q;
2916
- (w.value !== void 0 && w.value === K || H) && (D(I), H && (F.current = !0));
2915
+ const H = !D.current && !Q;
2916
+ (w.value !== void 0 && w.value === K || H) && (F(I), H && (D.current = !0));
2917
2917
  },
2918
2918
  [w.value]
2919
- ), Z = d.useCallback(() => x?.focus(), [x]), X = d.useCallback(
2919
+ ), Z = u.useCallback(() => x?.focus(), [x]), X = u.useCallback(
2920
2920
  (I, K, Q) => {
2921
- const H = !F.current && !Q;
2921
+ const H = !D.current && !Q;
2922
2922
  (w.value !== void 0 && w.value === K || H) && A(I);
2923
2923
  },
2924
2924
  [w.value]
2925
- ), se = o === "popper" ? dn : xr, ue = se === dn ? {
2925
+ ), se = o === "popper" ? un : xr, de = se === un ? {
2926
2926
  side: a,
2927
2927
  sideOffset: c,
2928
2928
  align: l,
2929
- alignOffset: u,
2929
+ alignOffset: d,
2930
2930
  arrowPadding: m,
2931
2931
  collisionBoundary: g,
2932
2932
  collisionPadding: h,
@@ -2945,10 +2945,10 @@ var ie = 10, [yr, Ae] = Ke(Le), kc = "SelectContentImpl", Pc = /* @__PURE__ */ J
2945
2945
  selectedItem: C,
2946
2946
  onItemLeave: Z,
2947
2947
  itemTextRefCallback: X,
2948
- focusSelectedItem: W,
2948
+ focusSelectedItem: z,
2949
2949
  selectedItemText: E,
2950
2950
  position: o,
2951
- isPositioned: M,
2951
+ isPositioned: L,
2952
2952
  searchRef: ee,
2953
2953
  children: /* @__PURE__ */ f(In, { as: Pc, allowPinchZoom: !0, children: /* @__PURE__ */ f(
2954
2954
  wn,
@@ -2979,7 +2979,7 @@ var ie = 10, [yr, Ae] = Ke(Le), kc = "SelectContentImpl", Pc = /* @__PURE__ */ J
2979
2979
  dir: w.dir,
2980
2980
  onContextMenu: (I) => I.preventDefault(),
2981
2981
  ...y,
2982
- ...ue,
2982
+ ...de,
2983
2983
  onPlaced: () => B(!0),
2984
2984
  ref: R,
2985
2985
  style: {
@@ -2992,7 +2992,7 @@ var ie = 10, [yr, Ae] = Ke(Le), kc = "SelectContentImpl", Pc = /* @__PURE__ */ J
2992
2992
  },
2993
2993
  onKeyDown: V(y.onKeyDown, (I) => {
2994
2994
  const K = I.ctrlKey || I.altKey || I.metaKey;
2995
- if (I.key === "Tab" && I.preventDefault(), !K && I.key.length === 1 && de(I.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(I.key)) {
2995
+ if (I.key === "Tab" && I.preventDefault(), !K && I.key.length === 1 && ue(I.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(I.key)) {
2996
2996
  let H = O().filter((G) => !G.disabled).map((G) => G.ref.current);
2997
2997
  if (["ArrowUp", "End"].includes(I.key) && (H = H.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(I.key)) {
2998
2998
  const G = I.target, Y = H.indexOf(G);
@@ -3012,12 +3012,12 @@ var ie = 10, [yr, Ae] = Ke(Le), kc = "SelectContentImpl", Pc = /* @__PURE__ */ J
3012
3012
  }
3013
3013
  );
3014
3014
  wr.displayName = kc;
3015
- var Nc = "SelectItemAlignedPosition", xr = d.forwardRef((e, t) => {
3016
- const { __scopeSelect: n, onPlaced: o, ...r } = e, s = Ne(Le, n), i = Ae(Le, n), [a, c] = d.useState(null), [l, u] = d.useState(null), m = q(t, (R) => u(R)), g = _t(n), h = d.useRef(!1), b = d.useRef(!0), { viewport: p, selectedItem: v, selectedItemText: y, focusSelectedItem: w } = i, x = d.useCallback(() => {
3015
+ var Nc = "SelectItemAlignedPosition", xr = u.forwardRef((e, t) => {
3016
+ const { __scopeSelect: n, onPlaced: o, ...r } = e, s = Ne(Le, n), i = Ae(Le, n), [a, c] = u.useState(null), [l, d] = u.useState(null), m = q(t, (R) => d(R)), g = _t(n), h = u.useRef(!1), b = u.useRef(!0), { viewport: p, selectedItem: v, selectedItemText: y, focusSelectedItem: w } = i, x = u.useCallback(() => {
3017
3017
  if (s.trigger && s.valueNode && a && l && p && v && y) {
3018
- const R = s.trigger.getBoundingClientRect(), C = l.getBoundingClientRect(), D = s.valueNode.getBoundingClientRect(), E = y.getBoundingClientRect();
3018
+ const R = s.trigger.getBoundingClientRect(), C = l.getBoundingClientRect(), F = s.valueNode.getBoundingClientRect(), E = y.getBoundingClientRect();
3019
3019
  if (s.dir !== "rtl") {
3020
- const G = E.left - C.left, Y = D.left - G, re = R.left - Y, Ie = R.width + re, zt = Math.max(Ie, C.width), Wt = window.innerWidth - ie, Vt = zn(Y, [
3020
+ const G = E.left - C.left, Y = F.left - G, re = R.left - Y, Ie = R.width + re, zt = Math.max(Ie, C.width), Wt = window.innerWidth - ie, Vt = zn(Y, [
3021
3021
  ie,
3022
3022
  // Prevents the content from going off the starting edge of the
3023
3023
  // viewport. It may still go off the ending edge, but this can be
@@ -3028,20 +3028,20 @@ var Nc = "SelectItemAlignedPosition", xr = d.forwardRef((e, t) => {
3028
3028
  ]);
3029
3029
  a.style.minWidth = Ie + "px", a.style.left = Vt + "px";
3030
3030
  } else {
3031
- const G = C.right - E.right, Y = window.innerWidth - D.right - G, re = window.innerWidth - R.right - Y, Ie = R.width + re, zt = Math.max(Ie, C.width), Wt = window.innerWidth - ie, Vt = zn(Y, [
3031
+ const G = C.right - E.right, Y = window.innerWidth - F.right - G, re = window.innerWidth - R.right - Y, Ie = R.width + re, zt = Math.max(Ie, C.width), Wt = window.innerWidth - ie, Vt = zn(Y, [
3032
3032
  ie,
3033
3033
  Math.max(ie, Wt - zt)
3034
3034
  ]);
3035
3035
  a.style.minWidth = Ie + "px", a.style.right = Vt + "px";
3036
3036
  }
3037
- const A = g(), O = window.innerHeight - ie * 2, M = p.scrollHeight, B = window.getComputedStyle(l), F = parseInt(B.borderTopWidth, 10), $ = parseInt(B.paddingTop, 10), W = parseInt(B.borderBottomWidth, 10), N = parseInt(B.paddingBottom, 10), j = F + $ + M + N + W, ee = Math.min(v.offsetHeight * 5, j), de = window.getComputedStyle(p), be = parseInt(de.paddingTop, 10), Z = parseInt(de.paddingBottom, 10), X = R.top + R.height / 2 - ie, se = O - X, ue = v.offsetHeight / 2, I = v.offsetTop + ue, K = F + $ + I, Q = j - K;
3037
+ const A = g(), O = window.innerHeight - ie * 2, L = p.scrollHeight, B = window.getComputedStyle(l), D = parseInt(B.borderTopWidth, 10), $ = parseInt(B.paddingTop, 10), z = parseInt(B.borderBottomWidth, 10), N = parseInt(B.paddingBottom, 10), j = D + $ + L + N + z, ee = Math.min(v.offsetHeight * 5, j), ue = window.getComputedStyle(p), be = parseInt(ue.paddingTop, 10), Z = parseInt(ue.paddingBottom, 10), X = R.top + R.height / 2 - ie, se = O - X, de = v.offsetHeight / 2, I = v.offsetTop + de, K = D + $ + I, Q = j - K;
3038
3038
  if (K <= X) {
3039
3039
  const G = A.length > 0 && v === A[A.length - 1].ref.current;
3040
3040
  a.style.bottom = "0px";
3041
3041
  const Y = l.clientHeight - p.offsetTop - p.offsetHeight, re = Math.max(
3042
3042
  se,
3043
- ue + // viewport might have padding bottom, include it to avoid a scrollable viewport
3044
- (G ? Z : 0) + Y + W
3043
+ de + // viewport might have padding bottom, include it to avoid a scrollable viewport
3044
+ (G ? Z : 0) + Y + z
3045
3045
  ), Ie = K + re;
3046
3046
  a.style.height = Ie + "px";
3047
3047
  } else {
@@ -3049,8 +3049,8 @@ var Nc = "SelectItemAlignedPosition", xr = d.forwardRef((e, t) => {
3049
3049
  a.style.top = "0px";
3050
3050
  const re = Math.max(
3051
3051
  X,
3052
- F + p.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
3053
- (G ? be : 0) + ue
3052
+ D + p.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
3053
+ (G ? be : 0) + de
3054
3054
  ) + Q;
3055
3055
  a.style.height = re + "px", p.scrollTop = K - X + p.offsetTop;
3056
3056
  }
@@ -3069,11 +3069,11 @@ var Nc = "SelectItemAlignedPosition", xr = d.forwardRef((e, t) => {
3069
3069
  o
3070
3070
  ]);
3071
3071
  te(() => x(), [x]);
3072
- const [S, P] = d.useState();
3072
+ const [S, P] = u.useState();
3073
3073
  te(() => {
3074
3074
  l && P(window.getComputedStyle(l).zIndex);
3075
3075
  }, [l]);
3076
- const k = d.useCallback(
3076
+ const k = u.useCallback(
3077
3077
  (R) => {
3078
3078
  R && b.current === !0 && (x(), w?.(), b.current = !1);
3079
3079
  },
@@ -3117,7 +3117,7 @@ var Nc = "SelectItemAlignedPosition", xr = d.forwardRef((e, t) => {
3117
3117
  );
3118
3118
  });
3119
3119
  xr.displayName = Nc;
3120
- var Ac = "SelectPopperPosition", dn = d.forwardRef((e, t) => {
3120
+ var Ac = "SelectPopperPosition", un = u.forwardRef((e, t) => {
3121
3121
  const {
3122
3122
  __scopeSelect: n,
3123
3123
  align: o = "start",
@@ -3145,10 +3145,10 @@ var Ac = "SelectPopperPosition", dn = d.forwardRef((e, t) => {
3145
3145
  }
3146
3146
  );
3147
3147
  });
3148
- dn.displayName = Ac;
3149
- var [Oc, Tn] = Ke(Le, {}), un = "SelectViewport", Cr = d.forwardRef(
3148
+ un.displayName = Ac;
3149
+ var [Oc, Tn] = Ke(Le, {}), dn = "SelectViewport", Cr = u.forwardRef(
3150
3150
  (e, t) => {
3151
- const { __scopeSelect: n, nonce: o, ...r } = e, s = Ae(un, n), i = Tn(un, n), a = q(t, s.onViewportChange), c = d.useRef(0);
3151
+ const { __scopeSelect: n, nonce: o, ...r } = e, s = Ae(dn, n), i = Tn(dn, n), a = q(t, s.onViewportChange), c = u.useRef(0);
3152
3152
  return /* @__PURE__ */ T(ge, { children: [
3153
3153
  /* @__PURE__ */ f(
3154
3154
  "style",
@@ -3180,40 +3180,40 @@ var [Oc, Tn] = Ke(Le, {}), un = "SelectViewport", Cr = d.forwardRef(
3180
3180
  ...r.style
3181
3181
  },
3182
3182
  onScroll: V(r.onScroll, (l) => {
3183
- const u = l.currentTarget, { contentWrapper: m, shouldExpandOnScrollRef: g } = i;
3183
+ const d = l.currentTarget, { contentWrapper: m, shouldExpandOnScrollRef: g } = i;
3184
3184
  if (g?.current && m) {
3185
- const h = Math.abs(c.current - u.scrollTop);
3185
+ const h = Math.abs(c.current - d.scrollTop);
3186
3186
  if (h > 0) {
3187
3187
  const b = window.innerHeight - ie * 2, p = parseFloat(m.style.minHeight), v = parseFloat(m.style.height), y = Math.max(p, v);
3188
3188
  if (y < b) {
3189
3189
  const w = y + h, x = Math.min(b, w), S = w - x;
3190
- m.style.height = x + "px", m.style.bottom === "0px" && (u.scrollTop = S > 0 ? S : 0, m.style.justifyContent = "flex-end");
3190
+ m.style.height = x + "px", m.style.bottom === "0px" && (d.scrollTop = S > 0 ? S : 0, m.style.justifyContent = "flex-end");
3191
3191
  }
3192
3192
  }
3193
3193
  }
3194
- c.current = u.scrollTop;
3194
+ c.current = d.scrollTop;
3195
3195
  })
3196
3196
  }
3197
3197
  ) })
3198
3198
  ] });
3199
3199
  }
3200
3200
  );
3201
- Cr.displayName = un;
3202
- var Sr = "SelectGroup", [Ic, Tc] = Ke(Sr), Er = d.forwardRef(
3201
+ Cr.displayName = dn;
3202
+ var Sr = "SelectGroup", [Ic, Tc] = Ke(Sr), Er = u.forwardRef(
3203
3203
  (e, t) => {
3204
3204
  const { __scopeSelect: n, ...o } = e, r = ot();
3205
3205
  return /* @__PURE__ */ f(Ic, { scope: n, id: r, children: /* @__PURE__ */ f(U.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
3206
3206
  }
3207
3207
  );
3208
3208
  Er.displayName = Sr;
3209
- var Rr = "SelectLabel", kr = d.forwardRef(
3209
+ var Rr = "SelectLabel", kr = u.forwardRef(
3210
3210
  (e, t) => {
3211
3211
  const { __scopeSelect: n, ...o } = e, r = Tc(Rr, n);
3212
3212
  return /* @__PURE__ */ f(U.div, { id: r.id, ...o, ref: t });
3213
3213
  }
3214
3214
  );
3215
3215
  kr.displayName = Rr;
3216
- var St = "SelectItem", [Mc, Pr] = Ke(St), Nr = d.forwardRef(
3216
+ var St = "SelectItem", [Mc, Pr] = Ke(St), Nr = u.forwardRef(
3217
3217
  (e, t) => {
3218
3218
  const {
3219
3219
  __scopeSelect: n,
@@ -3221,10 +3221,10 @@ var St = "SelectItem", [Mc, Pr] = Ke(St), Nr = d.forwardRef(
3221
3221
  disabled: r = !1,
3222
3222
  textValue: s,
3223
3223
  ...i
3224
- } = e, a = Ne(St, n), c = Ae(St, n), l = a.value === o, [u, m] = d.useState(s ?? ""), [g, h] = d.useState(!1), b = q(
3224
+ } = e, a = Ne(St, n), c = Ae(St, n), l = a.value === o, [d, m] = u.useState(s ?? ""), [g, h] = u.useState(!1), b = q(
3225
3225
  t,
3226
3226
  (w) => c.itemRefCallback?.(w, o, r)
3227
- ), p = ot(), v = d.useRef("touch"), y = () => {
3227
+ ), p = ot(), v = u.useRef("touch"), y = () => {
3228
3228
  r || (a.onValueChange(o), a.onOpenChange(!1));
3229
3229
  };
3230
3230
  if (o === "")
@@ -3239,7 +3239,7 @@ var St = "SelectItem", [Mc, Pr] = Ke(St), Nr = d.forwardRef(
3239
3239
  disabled: r,
3240
3240
  textId: p,
3241
3241
  isSelected: l,
3242
- onItemTextChange: d.useCallback((w) => {
3242
+ onItemTextChange: u.useCallback((w) => {
3243
3243
  m((x) => x || (w?.textContent ?? "").trim());
3244
3244
  }, []),
3245
3245
  children: /* @__PURE__ */ f(
@@ -3248,7 +3248,7 @@ var St = "SelectItem", [Mc, Pr] = Ke(St), Nr = d.forwardRef(
3248
3248
  scope: n,
3249
3249
  value: o,
3250
3250
  disabled: r,
3251
- textValue: u,
3251
+ textValue: d,
3252
3252
  children: /* @__PURE__ */ f(
3253
3253
  U.div,
3254
3254
  {
@@ -3291,14 +3291,14 @@ var St = "SelectItem", [Mc, Pr] = Ke(St), Nr = d.forwardRef(
3291
3291
  }
3292
3292
  );
3293
3293
  Nr.displayName = St;
3294
- var Qe = "SelectItemText", Ar = d.forwardRef(
3294
+ var Qe = "SelectItemText", Ar = u.forwardRef(
3295
3295
  (e, t) => {
3296
- const { __scopeSelect: n, className: o, style: r, ...s } = e, i = Ne(Qe, n), a = Ae(Qe, n), c = Pr(Qe, n), l = Sc(Qe, n), [u, m] = d.useState(null), g = q(
3296
+ const { __scopeSelect: n, className: o, style: r, ...s } = e, i = Ne(Qe, n), a = Ae(Qe, n), c = Pr(Qe, n), l = Sc(Qe, n), [d, m] = u.useState(null), g = q(
3297
3297
  t,
3298
3298
  (y) => m(y),
3299
3299
  c.onItemTextChange,
3300
3300
  (y) => a.itemTextRefCallback?.(y, c.value, c.disabled)
3301
- ), h = u?.textContent, b = d.useMemo(
3301
+ ), h = d?.textContent, b = u.useMemo(
3302
3302
  () => /* @__PURE__ */ f("option", { value: c.value, disabled: c.disabled, children: h }, c.value),
3303
3303
  [c.disabled, c.value, h]
3304
3304
  ), { onNativeOptionAdd: p, onNativeOptionRemove: v } = l;
@@ -3309,15 +3309,15 @@ var Qe = "SelectItemText", Ar = d.forwardRef(
3309
3309
  }
3310
3310
  );
3311
3311
  Ar.displayName = Qe;
3312
- var Or = "SelectItemIndicator", _c = d.forwardRef(
3312
+ var Or = "SelectItemIndicator", _c = u.forwardRef(
3313
3313
  (e, t) => {
3314
3314
  const { __scopeSelect: n, ...o } = e;
3315
3315
  return Pr(Or, n).isSelected ? /* @__PURE__ */ f(U.span, { "aria-hidden": !0, ...o, ref: t }) : null;
3316
3316
  }
3317
3317
  );
3318
3318
  _c.displayName = Or;
3319
- var fn = "SelectScrollUpButton", Ir = d.forwardRef((e, t) => {
3320
- const n = Ae(fn, e.__scopeSelect), o = Tn(fn, e.__scopeSelect), [r, s] = d.useState(!1), i = q(t, o.onScrollButtonChange);
3319
+ var fn = "SelectScrollUpButton", Ir = u.forwardRef((e, t) => {
3320
+ const n = Ae(fn, e.__scopeSelect), o = Tn(fn, e.__scopeSelect), [r, s] = u.useState(!1), i = q(t, o.onScrollButtonChange);
3321
3321
  return te(() => {
3322
3322
  if (n.viewport && n.isPositioned) {
3323
3323
  let a = function() {
@@ -3340,13 +3340,13 @@ var fn = "SelectScrollUpButton", Ir = d.forwardRef((e, t) => {
3340
3340
  ) : null;
3341
3341
  });
3342
3342
  Ir.displayName = fn;
3343
- var pn = "SelectScrollDownButton", Lc = d.forwardRef((e, t) => {
3344
- const n = Ae(pn, e.__scopeSelect), o = Tn(pn, e.__scopeSelect), [r, s] = d.useState(!1), i = q(t, o.onScrollButtonChange);
3343
+ var pn = "SelectScrollDownButton", Lc = u.forwardRef((e, t) => {
3344
+ const n = Ae(pn, e.__scopeSelect), o = Tn(pn, e.__scopeSelect), [r, s] = u.useState(!1), i = q(t, o.onScrollButtonChange);
3345
3345
  return te(() => {
3346
3346
  if (n.viewport && n.isPositioned) {
3347
3347
  let a = function() {
3348
- const l = c.scrollHeight - c.clientHeight, u = Math.ceil(c.scrollTop) < l;
3349
- s(u);
3348
+ const l = c.scrollHeight - c.clientHeight, d = Math.ceil(c.scrollTop) < l;
3349
+ s(d);
3350
3350
  };
3351
3351
  const c = n.viewport;
3352
3352
  return a(), c.addEventListener("scroll", a), () => c.removeEventListener("scroll", a);
@@ -3364,12 +3364,12 @@ var pn = "SelectScrollDownButton", Lc = d.forwardRef((e, t) => {
3364
3364
  ) : null;
3365
3365
  });
3366
3366
  Lc.displayName = pn;
3367
- var Tr = d.forwardRef((e, t) => {
3368
- const { __scopeSelect: n, onAutoScroll: o, ...r } = e, s = Ae("SelectScrollButton", n), i = d.useRef(null), a = _t(n), c = d.useCallback(() => {
3367
+ var Tr = u.forwardRef((e, t) => {
3368
+ const { __scopeSelect: n, onAutoScroll: o, ...r } = e, s = Ae("SelectScrollButton", n), i = u.useRef(null), a = _t(n), c = u.useCallback(() => {
3369
3369
  i.current !== null && (window.clearInterval(i.current), i.current = null);
3370
3370
  }, []);
3371
- return d.useEffect(() => () => c(), [c]), te(() => {
3372
- a().find((u) => u.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
3371
+ return u.useEffect(() => () => c(), [c]), te(() => {
3372
+ a().find((d) => d.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
3373
3373
  }, [a]), /* @__PURE__ */ f(
3374
3374
  U.div,
3375
3375
  {
@@ -3388,33 +3388,33 @@ var Tr = d.forwardRef((e, t) => {
3388
3388
  })
3389
3389
  }
3390
3390
  );
3391
- }), Dc = "SelectSeparator", Mr = d.forwardRef(
3391
+ }), Dc = "SelectSeparator", Mr = u.forwardRef(
3392
3392
  (e, t) => {
3393
3393
  const { __scopeSelect: n, ...o } = e;
3394
3394
  return /* @__PURE__ */ f(U.div, { "aria-hidden": !0, ...o, ref: t });
3395
3395
  }
3396
3396
  );
3397
3397
  Mr.displayName = Dc;
3398
- var mn = "SelectArrow", _r = d.forwardRef(
3398
+ var mn = "SelectArrow", _r = u.forwardRef(
3399
3399
  (e, t) => {
3400
3400
  const { __scopeSelect: n, ...o } = e, r = Lt(n), s = Ne(mn, n), i = Ae(mn, n);
3401
3401
  return s.open && i.position === "popper" ? /* @__PURE__ */ f(Jo, { ...r, ...o, ref: t }) : null;
3402
3402
  }
3403
3403
  );
3404
3404
  _r.displayName = mn;
3405
- var Fc = "SelectBubbleInput", Lr = d.forwardRef(
3405
+ var Fc = "SelectBubbleInput", Lr = u.forwardRef(
3406
3406
  ({ __scopeSelect: e, value: t, ...n }, o) => {
3407
- const r = d.useRef(null), s = q(o, r), i = er(t);
3408
- return d.useEffect(() => {
3407
+ const r = u.useRef(null), s = q(o, r), i = er(t);
3408
+ return u.useEffect(() => {
3409
3409
  const a = r.current;
3410
3410
  if (!a) return;
3411
- const c = window.HTMLSelectElement.prototype, u = Object.getOwnPropertyDescriptor(
3411
+ const c = window.HTMLSelectElement.prototype, d = Object.getOwnPropertyDescriptor(
3412
3412
  c,
3413
3413
  "value"
3414
3414
  ).set;
3415
- if (i !== t && u) {
3415
+ if (i !== t && d) {
3416
3416
  const m = new Event("change", { bubbles: !0 });
3417
- u.call(a, t), a.dispatchEvent(m);
3417
+ d.call(a, t), a.dispatchEvent(m);
3418
3418
  }
3419
3419
  }, [i, t]), /* @__PURE__ */ f(
3420
3420
  U.select,
@@ -3432,7 +3432,7 @@ function Dr(e) {
3432
3432
  return e === "" || e === void 0;
3433
3433
  }
3434
3434
  function Fr(e) {
3435
- const t = Re(e), n = d.useRef(""), o = d.useRef(0), r = d.useCallback(
3435
+ const t = Re(e), n = u.useRef(""), o = u.useRef(0), r = u.useCallback(
3436
3436
  (i) => {
3437
3437
  const a = n.current + i;
3438
3438
  t(a), (function c(l) {
@@ -3440,10 +3440,10 @@ function Fr(e) {
3440
3440
  })(a);
3441
3441
  },
3442
3442
  [t]
3443
- ), s = d.useCallback(() => {
3443
+ ), s = u.useCallback(() => {
3444
3444
  n.current = "", window.clearTimeout(o.current);
3445
3445
  }, []);
3446
- return d.useEffect(() => () => window.clearTimeout(o.current), []), [n, r, s];
3446
+ return u.useEffect(() => () => window.clearTimeout(o.current), []), [n, r, s];
3447
3447
  }
3448
3448
  function $r(e, t, n) {
3449
3449
  const r = t.length > 1 && Array.from(t).every((l) => l === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
@@ -3457,7 +3457,7 @@ function $r(e, t, n) {
3457
3457
  function $c(e, t) {
3458
3458
  return e.map((n, o) => e[(t + o) % e.length]);
3459
3459
  }
3460
- var Bc = ur, zc = pr, Wc = hr, Vc = gr, Hc = vr, Uc = br, jc = Cr, Gc = Er, Kc = kr, Yc = Nr, qc = Ar, Xc = Ir, Zc = Mr, fo = _r;
3460
+ var Bc = dr, zc = pr, Wc = hr, Vc = gr, Hc = vr, Uc = br, jc = Cr, Gc = Er, Kc = kr, Yc = Nr, qc = Ar, Xc = Ir, Zc = Mr, fo = _r;
3461
3461
  const Qc = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Jc = (e) => e.replace(
3462
3462
  /^([A-Z])|[\s-_]+(\w)/g,
3463
3463
  (t, n, o) => o ? o.toUpperCase() : n.toLowerCase()
@@ -3504,7 +3504,7 @@ const nl = Co(
3504
3504
  ...a
3505
3505
  },
3506
3506
  [
3507
- ...i.map(([l, u]) => nn(l, u)),
3507
+ ...i.map(([l, d]) => nn(l, d)),
3508
3508
  ...Array.isArray(s) ? s : [s]
3509
3509
  ]
3510
3510
  )
@@ -3538,8 +3538,8 @@ const ll = [
3538
3538
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
3539
3539
  ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
3540
3540
  ["path", { d: "m9 9 6 6", key: "z0biqf" }]
3541
- ], dl = Ye("circle-x", ll);
3542
- const ul = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], fl = Ye("circle", ul);
3541
+ ], ul = Ye("circle-x", ll);
3542
+ const dl = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], fl = Ye("circle", dl);
3543
3543
  const pl = [
3544
3544
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
3545
3545
  ["path", { d: "M12 16v-4", key: "1dtifu" }],
@@ -3688,15 +3688,15 @@ function bl({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
3688
3688
  ] });
3689
3689
  }
3690
3690
  function yl(e, t) {
3691
- return d.useReducer((n, o) => t[n][o] ?? n, e);
3691
+ return u.useReducer((n, o) => t[n][o] ?? n, e);
3692
3692
  }
3693
3693
  var Dt = (e) => {
3694
- const { present: t, children: n } = e, o = wl(t), r = typeof n == "function" ? n({ present: o.isPresent }) : d.Children.only(n), s = q(o.ref, xl(r));
3695
- return typeof n == "function" || o.isPresent ? d.cloneElement(r, { ref: s }) : null;
3694
+ const { present: t, children: n } = e, o = wl(t), r = typeof n == "function" ? n({ present: o.isPresent }) : u.Children.only(n), s = q(o.ref, xl(r));
3695
+ return typeof n == "function" || o.isPresent ? u.cloneElement(r, { ref: s }) : null;
3696
3696
  };
3697
3697
  Dt.displayName = "Presence";
3698
3698
  function wl(e) {
3699
- const [t, n] = d.useState(), o = d.useRef(null), r = d.useRef(e), s = d.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] = yl(i, {
3699
+ const [t, n] = u.useState(), o = u.useRef(null), r = u.useRef(e), s = u.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] = yl(i, {
3700
3700
  mounted: {
3701
3701
  UNMOUNT: "unmounted",
3702
3702
  ANIMATION_OUT: "unmountSuspended"
@@ -3709,23 +3709,23 @@ function wl(e) {
3709
3709
  MOUNT: "mounted"
3710
3710
  }
3711
3711
  });
3712
- return d.useEffect(() => {
3712
+ return u.useEffect(() => {
3713
3713
  const l = ft(o.current);
3714
3714
  s.current = a === "mounted" ? l : "none";
3715
3715
  }, [a]), te(() => {
3716
- const l = o.current, u = r.current;
3717
- if (u !== e) {
3716
+ const l = o.current, d = r.current;
3717
+ if (d !== e) {
3718
3718
  const g = s.current, h = ft(l);
3719
- e ? c("MOUNT") : h === "none" || l?.display === "none" ? c("UNMOUNT") : c(u && g !== h ? "ANIMATION_OUT" : "UNMOUNT"), r.current = e;
3719
+ e ? c("MOUNT") : h === "none" || l?.display === "none" ? c("UNMOUNT") : c(d && g !== h ? "ANIMATION_OUT" : "UNMOUNT"), r.current = e;
3720
3720
  }
3721
3721
  }, [e, c]), te(() => {
3722
3722
  if (t) {
3723
3723
  let l;
3724
- const u = t.ownerDocument.defaultView ?? window, m = (h) => {
3724
+ const d = t.ownerDocument.defaultView ?? window, m = (h) => {
3725
3725
  const p = ft(o.current).includes(CSS.escape(h.animationName));
3726
3726
  if (h.target === t && p && (c("ANIMATION_END"), !r.current)) {
3727
3727
  const v = t.style.animationFillMode;
3728
- t.style.animationFillMode = "forwards", l = u.setTimeout(() => {
3728
+ t.style.animationFillMode = "forwards", l = d.setTimeout(() => {
3729
3729
  t.style.animationFillMode === "forwards" && (t.style.animationFillMode = v);
3730
3730
  });
3731
3731
  }
@@ -3733,13 +3733,13 @@ function wl(e) {
3733
3733
  h.target === t && (s.current = ft(o.current));
3734
3734
  };
3735
3735
  return t.addEventListener("animationstart", g), t.addEventListener("animationcancel", m), t.addEventListener("animationend", m), () => {
3736
- u.clearTimeout(l), t.removeEventListener("animationstart", g), t.removeEventListener("animationcancel", m), t.removeEventListener("animationend", m);
3736
+ d.clearTimeout(l), t.removeEventListener("animationstart", g), t.removeEventListener("animationcancel", m), t.removeEventListener("animationend", m);
3737
3737
  };
3738
3738
  } else
3739
3739
  c("ANIMATION_END");
3740
3740
  }, [t, c]), {
3741
3741
  isPresent: ["mounted", "unmountSuspended"].includes(a),
3742
- ref: d.useCallback((l) => {
3742
+ ref: u.useCallback((l) => {
3743
3743
  o.current = l ? getComputedStyle(l) : null, n(l);
3744
3744
  }, [])
3745
3745
  };
@@ -3761,7 +3761,7 @@ var Ft = "Popover", [zr] = De(Ft, [
3761
3761
  defaultOpen: r,
3762
3762
  onOpenChange: s,
3763
3763
  modal: i = !1
3764
- } = e, a = st(t), c = d.useRef(null), [l, u] = d.useState(!1), [m, g] = nt({
3764
+ } = e, a = st(t), c = u.useRef(null), [l, d] = u.useState(!1), [m, g] = nt({
3765
3765
  prop: o,
3766
3766
  defaultProp: r ?? !1,
3767
3767
  onChange: s,
@@ -3775,24 +3775,24 @@ var Ft = "Popover", [zr] = De(Ft, [
3775
3775
  triggerRef: c,
3776
3776
  open: m,
3777
3777
  onOpenChange: g,
3778
- onOpenToggle: d.useCallback(() => g((h) => !h), [g]),
3778
+ onOpenToggle: u.useCallback(() => g((h) => !h), [g]),
3779
3779
  hasCustomAnchor: l,
3780
- onCustomAnchorAdd: d.useCallback(() => u(!0), []),
3781
- onCustomAnchorRemove: d.useCallback(() => u(!1), []),
3780
+ onCustomAnchorAdd: u.useCallback(() => d(!0), []),
3781
+ onCustomAnchorRemove: u.useCallback(() => d(!1), []),
3782
3782
  modal: i,
3783
3783
  children: n
3784
3784
  }
3785
3785
  ) });
3786
3786
  };
3787
3787
  Wr.displayName = Ft;
3788
- var Vr = "PopoverAnchor", Sl = d.forwardRef(
3788
+ var Vr = "PopoverAnchor", Sl = u.forwardRef(
3789
3789
  (e, t) => {
3790
3790
  const { __scopePopover: n, ...o } = e, r = Oe(Vr, n), s = st(n), { onCustomAnchorAdd: i, onCustomAnchorRemove: a } = r;
3791
- return d.useEffect(() => (i(), () => a()), [i, a]), /* @__PURE__ */ f(An, { ...s, ...o, ref: t });
3791
+ return u.useEffect(() => (i(), () => a()), [i, a]), /* @__PURE__ */ f(An, { ...s, ...o, ref: t });
3792
3792
  }
3793
3793
  );
3794
3794
  Sl.displayName = Vr;
3795
- var Hr = "PopoverTrigger", Ur = d.forwardRef(
3795
+ var Hr = "PopoverTrigger", Ur = u.forwardRef(
3796
3796
  (e, t) => {
3797
3797
  const { __scopePopover: n, ...o } = e, r = Oe(Hr, n), s = st(n), i = q(t, r.triggerRef), a = /* @__PURE__ */ f(
3798
3798
  U.button,
@@ -3818,17 +3818,17 @@ var Mn = "PopoverPortal", [El, Rl] = zr(Mn, {
3818
3818
  return /* @__PURE__ */ f(El, { scope: t, forceMount: n, children: /* @__PURE__ */ f(Dt, { present: n || s.open, children: /* @__PURE__ */ f(On, { asChild: !0, container: r, children: o }) }) });
3819
3819
  };
3820
3820
  jr.displayName = Mn;
3821
- var Ue = "PopoverContent", Gr = d.forwardRef(
3821
+ var Ue = "PopoverContent", Gr = u.forwardRef(
3822
3822
  (e, t) => {
3823
3823
  const n = Rl(Ue, e.__scopePopover), { forceMount: o = n.forceMount, ...r } = e, s = Oe(Ue, e.__scopePopover);
3824
3824
  return /* @__PURE__ */ f(Dt, { present: o || s.open, children: s.modal ? /* @__PURE__ */ f(Pl, { ...r, ref: t }) : /* @__PURE__ */ f(Nl, { ...r, ref: t }) });
3825
3825
  }
3826
3826
  );
3827
3827
  Gr.displayName = Ue;
3828
- var kl = /* @__PURE__ */ Je("PopoverContent.RemoveScroll"), Pl = d.forwardRef(
3828
+ var kl = /* @__PURE__ */ Je("PopoverContent.RemoveScroll"), Pl = u.forwardRef(
3829
3829
  (e, t) => {
3830
- const n = Oe(Ue, e.__scopePopover), o = d.useRef(null), r = q(t, o), s = d.useRef(!1);
3831
- return d.useEffect(() => {
3830
+ const n = Oe(Ue, e.__scopePopover), o = u.useRef(null), r = q(t, o), s = u.useRef(!1);
3831
+ return u.useEffect(() => {
3832
3832
  const i = o.current;
3833
3833
  if (i) return or(i);
3834
3834
  }, []), /* @__PURE__ */ f(In, { as: kl, allowPinchZoom: !0, children: /* @__PURE__ */ f(
@@ -3857,9 +3857,9 @@ var kl = /* @__PURE__ */ Je("PopoverContent.RemoveScroll"), Pl = d.forwardRef(
3857
3857
  }
3858
3858
  ) });
3859
3859
  }
3860
- ), Nl = d.forwardRef(
3860
+ ), Nl = u.forwardRef(
3861
3861
  (e, t) => {
3862
- const n = Oe(Ue, e.__scopePopover), o = d.useRef(!1), r = d.useRef(!1);
3862
+ const n = Oe(Ue, e.__scopePopover), o = u.useRef(!1), r = u.useRef(!1);
3863
3863
  return /* @__PURE__ */ f(
3864
3864
  Kr,
3865
3865
  {
@@ -3878,7 +3878,7 @@ var kl = /* @__PURE__ */ Je("PopoverContent.RemoveScroll"), Pl = d.forwardRef(
3878
3878
  }
3879
3879
  );
3880
3880
  }
3881
- ), Kr = d.forwardRef(
3881
+ ), Kr = u.forwardRef(
3882
3882
  (e, t) => {
3883
3883
  const {
3884
3884
  __scopePopover: n,
@@ -3889,7 +3889,7 @@ var kl = /* @__PURE__ */ Je("PopoverContent.RemoveScroll"), Pl = d.forwardRef(
3889
3889
  onEscapeKeyDown: a,
3890
3890
  onPointerDownOutside: c,
3891
3891
  onFocusOutside: l,
3892
- onInteractOutside: u,
3892
+ onInteractOutside: d,
3893
3893
  ...m
3894
3894
  } = e, g = Oe(Ue, n), h = st(n);
3895
3895
  return Po(), /* @__PURE__ */ f(
@@ -3905,7 +3905,7 @@ var kl = /* @__PURE__ */ Je("PopoverContent.RemoveScroll"), Pl = d.forwardRef(
3905
3905
  {
3906
3906
  asChild: !0,
3907
3907
  disableOutsidePointerEvents: i,
3908
- onInteractOutside: u,
3908
+ onInteractOutside: d,
3909
3909
  onEscapeKeyDown: a,
3910
3910
  onPointerDownOutside: c,
3911
3911
  onFocusOutside: l,
@@ -3934,7 +3934,7 @@ var kl = /* @__PURE__ */ Je("PopoverContent.RemoveScroll"), Pl = d.forwardRef(
3934
3934
  }
3935
3935
  );
3936
3936
  }
3937
- ), Yr = "PopoverClose", Al = d.forwardRef(
3937
+ ), Yr = "PopoverClose", Al = u.forwardRef(
3938
3938
  (e, t) => {
3939
3939
  const { __scopePopover: n, ...o } = e, r = Oe(Yr, n);
3940
3940
  return /* @__PURE__ */ f(
@@ -3949,7 +3949,7 @@ var kl = /* @__PURE__ */ Je("PopoverContent.RemoveScroll"), Pl = d.forwardRef(
3949
3949
  }
3950
3950
  );
3951
3951
  Al.displayName = Yr;
3952
- var Ol = "PopoverArrow", Il = d.forwardRef(
3952
+ var Ol = "PopoverArrow", Il = u.forwardRef(
3953
3953
  (e, t) => {
3954
3954
  const { __scopePopover: n, ...o } = e, r = st(n);
3955
3955
  return /* @__PURE__ */ f(Jo, { ...r, ...o, ref: t });
@@ -4020,9 +4020,9 @@ const Fl = (e, t) => {
4020
4020
  return;
4021
4021
  const a = t === 0 ? e.join(Et) : e.slice(t).join(Et), c = i.length;
4022
4022
  for (let l = 0; l < c; l++) {
4023
- const u = i[l];
4024
- if (u.validator(a))
4025
- return u.classGroupId;
4023
+ const d = i[l];
4024
+ if (d.validator(a))
4025
+ return d.classGroupId;
4026
4026
  }
4027
4027
  }, Wl = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
4028
4028
  const t = e.slice(1, -1), n = t.indexOf(":"), o = t.slice(0, n);
@@ -4118,8 +4118,8 @@ const Fl = (e, t) => {
4118
4118
  let o = (r) => {
4119
4119
  const s = [];
4120
4120
  let i = 0, a = 0, c = 0, l;
4121
- const u = r.length;
4122
- for (let p = 0; p < u; p++) {
4121
+ const d = r.length;
4122
+ for (let p = 0; p < d; p++) {
4123
4123
  const v = r[p];
4124
4124
  if (i === 0 && a === 0) {
4125
4125
  if (v === go) {
@@ -4175,34 +4175,34 @@ const Fl = (e, t) => {
4175
4175
  parseClassName: Zl(e),
4176
4176
  sortModifiers: Ql(e),
4177
4177
  ...zl(e)
4178
- }), ed = /\s+/, td = (e, t) => {
4178
+ }), eu = /\s+/, tu = (e, t) => {
4179
4179
  const {
4180
4180
  parseClassName: n,
4181
4181
  getClassGroupId: o,
4182
4182
  getConflictingClassGroupIds: r,
4183
4183
  sortModifiers: s
4184
- } = t, i = [], a = e.trim().split(ed);
4184
+ } = t, i = [], a = e.trim().split(eu);
4185
4185
  let c = "";
4186
4186
  for (let l = a.length - 1; l >= 0; l -= 1) {
4187
- const u = a[l], {
4187
+ const d = a[l], {
4188
4188
  isExternal: m,
4189
4189
  modifiers: g,
4190
4190
  hasImportantModifier: h,
4191
4191
  baseClassName: b,
4192
4192
  maybePostfixModifierPosition: p
4193
- } = n(u);
4193
+ } = n(d);
4194
4194
  if (m) {
4195
- c = u + (c.length > 0 ? " " + c : c);
4195
+ c = d + (c.length > 0 ? " " + c : c);
4196
4196
  continue;
4197
4197
  }
4198
4198
  let v = !!p, y = o(v ? b.substring(0, p) : b);
4199
4199
  if (!y) {
4200
4200
  if (!v) {
4201
- c = u + (c.length > 0 ? " " + c : c);
4201
+ c = d + (c.length > 0 ? " " + c : c);
4202
4202
  continue;
4203
4203
  }
4204
4204
  if (y = o(b), !y) {
4205
- c = u + (c.length > 0 ? " " + c : c);
4205
+ c = d + (c.length > 0 ? " " + c : c);
4206
4206
  continue;
4207
4207
  }
4208
4208
  v = !1;
@@ -4216,10 +4216,10 @@ const Fl = (e, t) => {
4216
4216
  const R = P[k];
4217
4217
  i.push(x + R);
4218
4218
  }
4219
- c = u + (c.length > 0 ? " " + c : c);
4219
+ c = d + (c.length > 0 ? " " + c : c);
4220
4220
  }
4221
4221
  return c;
4222
- }, nd = (...e) => {
4222
+ }, nu = (...e) => {
4223
4223
  let t = 0, n, o, r = "";
4224
4224
  for (; t < e.length; )
4225
4225
  (n = e[t++]) && (o = es(n)) && (r && (r += " "), r += o);
@@ -4231,35 +4231,35 @@ const Fl = (e, t) => {
4231
4231
  for (let o = 0; o < e.length; o++)
4232
4232
  e[o] && (t = es(e[o])) && (n && (n += " "), n += t);
4233
4233
  return n;
4234
- }, od = (e, ...t) => {
4234
+ }, ou = (e, ...t) => {
4235
4235
  let n, o, r, s;
4236
4236
  const i = (c) => {
4237
- const l = t.reduce((u, m) => m(u), e());
4237
+ const l = t.reduce((d, m) => m(d), e());
4238
4238
  return n = Jl(l), o = n.cache.get, r = n.cache.set, s = a, a(c);
4239
4239
  }, a = (c) => {
4240
4240
  const l = o(c);
4241
4241
  if (l)
4242
4242
  return l;
4243
- const u = td(c, n);
4244
- return r(c, u), u;
4243
+ const d = tu(c, n);
4244
+ return r(c, d), d;
4245
4245
  };
4246
- return s = i, (...c) => s(nd(...c));
4247
- }, rd = [], J = (e) => {
4248
- const t = (n) => n[e] || rd;
4246
+ return s = i, (...c) => s(nu(...c));
4247
+ }, ru = [], J = (e) => {
4248
+ const t = (n) => n[e] || ru;
4249
4249
  return t.isThemeGetter = !0, t;
4250
- }, ts = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ns = /^\((?:(\w[\w-]*):)?(.+)\)$/i, sd = /^\d+\/\d+$/, id = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ad = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, cd = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, ld = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, dd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ze = (e) => sd.test(e), z = (e) => !!e && !Number.isNaN(Number(e)), Ce = (e) => !!e && Number.isInteger(Number(e)), Qt = (e) => e.endsWith("%") && z(e.slice(0, -1)), ye = (e) => id.test(e), ud = () => !0, fd = (e) => (
4250
+ }, ts = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ns = /^\((?:(\w[\w-]*):)?(.+)\)$/i, su = /^\d+\/\d+$/, iu = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, au = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, cu = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, lu = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, uu = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ze = (e) => su.test(e), W = (e) => !!e && !Number.isNaN(Number(e)), Ce = (e) => !!e && Number.isInteger(Number(e)), Qt = (e) => e.endsWith("%") && W(e.slice(0, -1)), ye = (e) => iu.test(e), du = () => !0, fu = (e) => (
4251
4251
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
4252
4252
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
4253
4253
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
4254
- ad.test(e) && !cd.test(e)
4255
- ), os = () => !1, pd = (e) => ld.test(e), md = (e) => dd.test(e), hd = (e) => !_(e) && !L(e), gd = (e) => qe(e, is, os), _ = (e) => ts.test(e), Te = (e) => qe(e, as, fd), Jt = (e) => qe(e, xd, z), bo = (e) => qe(e, rs, os), vd = (e) => qe(e, ss, md), pt = (e) => qe(e, cs, pd), L = (e) => ns.test(e), Ze = (e) => Xe(e, as), bd = (e) => Xe(e, Cd), yo = (e) => Xe(e, rs), yd = (e) => Xe(e, is), wd = (e) => Xe(e, ss), mt = (e) => Xe(e, cs, !0), qe = (e, t, n) => {
4254
+ au.test(e) && !cu.test(e)
4255
+ ), os = () => !1, pu = (e) => lu.test(e), mu = (e) => uu.test(e), hu = (e) => !M(e) && !_(e), gu = (e) => qe(e, is, os), M = (e) => ts.test(e), Te = (e) => qe(e, as, fu), Jt = (e) => qe(e, xu, W), bo = (e) => qe(e, rs, os), vu = (e) => qe(e, ss, mu), pt = (e) => qe(e, cs, pu), _ = (e) => ns.test(e), Ze = (e) => Xe(e, as), bu = (e) => Xe(e, Cu), yo = (e) => Xe(e, rs), yu = (e) => Xe(e, is), wu = (e) => Xe(e, ss), mt = (e) => Xe(e, cs, !0), qe = (e, t, n) => {
4256
4256
  const o = ts.exec(e);
4257
4257
  return o ? o[1] ? t(o[1]) : n(o[2]) : !1;
4258
4258
  }, Xe = (e, t, n = !1) => {
4259
4259
  const o = ns.exec(e);
4260
4260
  return o ? o[1] ? t(o[1]) : n : !1;
4261
- }, rs = (e) => e === "position" || e === "percentage", ss = (e) => e === "image" || e === "url", is = (e) => e === "length" || e === "size" || e === "bg-size", as = (e) => e === "length", xd = (e) => e === "number", Cd = (e) => e === "family-name", cs = (e) => e === "shadow", Sd = () => {
4262
- const e = J("color"), t = J("font"), n = J("text"), o = J("font-weight"), r = J("tracking"), s = J("leading"), i = J("breakpoint"), a = J("container"), c = J("spacing"), l = J("radius"), u = J("shadow"), m = J("inset-shadow"), g = J("text-shadow"), h = J("drop-shadow"), b = J("blur"), p = J("perspective"), v = J("aspect"), y = J("ease"), w = J("animate"), x = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
4261
+ }, rs = (e) => e === "position" || e === "percentage", ss = (e) => e === "image" || e === "url", is = (e) => e === "length" || e === "size" || e === "bg-size", as = (e) => e === "length", xu = (e) => e === "number", Cu = (e) => e === "family-name", cs = (e) => e === "shadow", Su = () => {
4262
+ const e = J("color"), t = J("font"), n = J("text"), o = J("font-weight"), r = J("tracking"), s = J("leading"), i = J("breakpoint"), a = J("container"), c = J("spacing"), l = J("radius"), d = J("shadow"), m = J("inset-shadow"), g = J("text-shadow"), h = J("drop-shadow"), b = J("blur"), p = J("perspective"), v = J("aspect"), y = J("ease"), w = J("animate"), x = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
4263
4263
  "center",
4264
4264
  "top",
4265
4265
  "bottom",
@@ -4277,30 +4277,30 @@ const Fl = (e, t) => {
4277
4277
  "bottom-left",
4278
4278
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
4279
4279
  "left-bottom"
4280
- ], P = () => [...S(), L, _], k = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", "contain", "none"], C = () => [L, _, c], D = () => [ze, "full", "auto", ...C()], E = () => [Ce, "none", "subgrid", L, _], A = () => ["auto", {
4281
- span: ["full", Ce, L, _]
4282
- }, Ce, L, _], O = () => [Ce, "auto", L, _], M = () => ["auto", "min", "max", "fr", L, _], B = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], F = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], $ = () => ["auto", ...C()], W = () => [ze, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], N = () => [e, L, _], j = () => [...S(), yo, bo, {
4283
- position: [L, _]
4280
+ ], P = () => [...S(), _, M], k = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", "contain", "none"], C = () => [_, M, c], F = () => [ze, "full", "auto", ...C()], E = () => [Ce, "none", "subgrid", _, M], A = () => ["auto", {
4281
+ span: ["full", Ce, _, M]
4282
+ }, Ce, _, M], O = () => [Ce, "auto", _, M], L = () => ["auto", "min", "max", "fr", _, M], B = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], D = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], $ = () => ["auto", ...C()], z = () => [ze, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], N = () => [e, _, M], j = () => [...S(), yo, bo, {
4283
+ position: [_, M]
4284
4284
  }], ee = () => ["no-repeat", {
4285
4285
  repeat: ["", "x", "y", "space", "round"]
4286
- }], de = () => ["auto", "cover", "contain", yd, gd, {
4287
- size: [L, _]
4286
+ }], ue = () => ["auto", "cover", "contain", yu, gu, {
4287
+ size: [_, M]
4288
4288
  }], be = () => [Qt, Ze, Te], Z = () => [
4289
4289
  // Deprecated since Tailwind CSS v4.0.0
4290
4290
  "",
4291
4291
  "none",
4292
4292
  "full",
4293
4293
  l,
4294
- L,
4295
- _
4296
- ], X = () => ["", z, Ze, Te], se = () => ["solid", "dashed", "dotted", "double"], ue = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], I = () => [z, Qt, yo, bo], K = () => [
4294
+ _,
4295
+ M
4296
+ ], X = () => ["", W, Ze, Te], se = () => ["solid", "dashed", "dotted", "double"], de = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], I = () => [W, Qt, yo, bo], K = () => [
4297
4297
  // Deprecated since Tailwind CSS v4.0.0
4298
4298
  "",
4299
4299
  "none",
4300
4300
  b,
4301
- L,
4302
- _
4303
- ], Q = () => ["none", z, L, _], H = () => ["none", z, L, _], G = () => [z, L, _], Y = () => [ze, "full", ...C()];
4301
+ _,
4302
+ M
4303
+ ], Q = () => ["none", W, _, M], H = () => ["none", W, _, M], G = () => [W, _, M], Y = () => [ze, "full", ...C()];
4304
4304
  return {
4305
4305
  cacheSize: 500,
4306
4306
  theme: {
@@ -4308,18 +4308,18 @@ const Fl = (e, t) => {
4308
4308
  aspect: ["video"],
4309
4309
  blur: [ye],
4310
4310
  breakpoint: [ye],
4311
- color: [ud],
4311
+ color: [du],
4312
4312
  container: [ye],
4313
4313
  "drop-shadow": [ye],
4314
4314
  ease: ["in", "out", "in-out"],
4315
- font: [hd],
4315
+ font: [hu],
4316
4316
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
4317
4317
  "inset-shadow": [ye],
4318
4318
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
4319
4319
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
4320
4320
  radius: [ye],
4321
4321
  shadow: [ye],
4322
- spacing: ["px", z],
4322
+ spacing: ["px", W],
4323
4323
  text: [ye],
4324
4324
  "text-shadow": [ye],
4325
4325
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
@@ -4333,7 +4333,7 @@ const Fl = (e, t) => {
4333
4333
  * @see https://tailwindcss.com/docs/aspect-ratio
4334
4334
  */
4335
4335
  aspect: [{
4336
- aspect: ["auto", "square", ze, _, L, v]
4336
+ aspect: ["auto", "square", ze, M, _, v]
4337
4337
  }],
4338
4338
  /**
4339
4339
  * Container
@@ -4346,7 +4346,7 @@ const Fl = (e, t) => {
4346
4346
  * @see https://tailwindcss.com/docs/columns
4347
4347
  */
4348
4348
  columns: [{
4349
- columns: [z, _, L, a]
4349
+ columns: [W, M, _, a]
4350
4350
  }],
4351
4351
  /**
4352
4352
  * Break After
@@ -4478,63 +4478,63 @@ const Fl = (e, t) => {
4478
4478
  * @see https://tailwindcss.com/docs/top-right-bottom-left
4479
4479
  */
4480
4480
  inset: [{
4481
- inset: D()
4481
+ inset: F()
4482
4482
  }],
4483
4483
  /**
4484
4484
  * Right / Left
4485
4485
  * @see https://tailwindcss.com/docs/top-right-bottom-left
4486
4486
  */
4487
4487
  "inset-x": [{
4488
- "inset-x": D()
4488
+ "inset-x": F()
4489
4489
  }],
4490
4490
  /**
4491
4491
  * Top / Bottom
4492
4492
  * @see https://tailwindcss.com/docs/top-right-bottom-left
4493
4493
  */
4494
4494
  "inset-y": [{
4495
- "inset-y": D()
4495
+ "inset-y": F()
4496
4496
  }],
4497
4497
  /**
4498
4498
  * Start
4499
4499
  * @see https://tailwindcss.com/docs/top-right-bottom-left
4500
4500
  */
4501
4501
  start: [{
4502
- start: D()
4502
+ start: F()
4503
4503
  }],
4504
4504
  /**
4505
4505
  * End
4506
4506
  * @see https://tailwindcss.com/docs/top-right-bottom-left
4507
4507
  */
4508
4508
  end: [{
4509
- end: D()
4509
+ end: F()
4510
4510
  }],
4511
4511
  /**
4512
4512
  * Top
4513
4513
  * @see https://tailwindcss.com/docs/top-right-bottom-left
4514
4514
  */
4515
4515
  top: [{
4516
- top: D()
4516
+ top: F()
4517
4517
  }],
4518
4518
  /**
4519
4519
  * Right
4520
4520
  * @see https://tailwindcss.com/docs/top-right-bottom-left
4521
4521
  */
4522
4522
  right: [{
4523
- right: D()
4523
+ right: F()
4524
4524
  }],
4525
4525
  /**
4526
4526
  * Bottom
4527
4527
  * @see https://tailwindcss.com/docs/top-right-bottom-left
4528
4528
  */
4529
4529
  bottom: [{
4530
- bottom: D()
4530
+ bottom: F()
4531
4531
  }],
4532
4532
  /**
4533
4533
  * Left
4534
4534
  * @see https://tailwindcss.com/docs/top-right-bottom-left
4535
4535
  */
4536
4536
  left: [{
4537
- left: D()
4537
+ left: F()
4538
4538
  }],
4539
4539
  /**
4540
4540
  * Visibility
@@ -4546,7 +4546,7 @@ const Fl = (e, t) => {
4546
4546
  * @see https://tailwindcss.com/docs/z-index
4547
4547
  */
4548
4548
  z: [{
4549
- z: [Ce, "auto", L, _]
4549
+ z: [Ce, "auto", _, M]
4550
4550
  }],
4551
4551
  // ------------------------
4552
4552
  // --- Flexbox and Grid ---
@@ -4577,28 +4577,28 @@ const Fl = (e, t) => {
4577
4577
  * @see https://tailwindcss.com/docs/flex
4578
4578
  */
4579
4579
  flex: [{
4580
- flex: [z, ze, "auto", "initial", "none", _]
4580
+ flex: [W, ze, "auto", "initial", "none", M]
4581
4581
  }],
4582
4582
  /**
4583
4583
  * Flex Grow
4584
4584
  * @see https://tailwindcss.com/docs/flex-grow
4585
4585
  */
4586
4586
  grow: [{
4587
- grow: ["", z, L, _]
4587
+ grow: ["", W, _, M]
4588
4588
  }],
4589
4589
  /**
4590
4590
  * Flex Shrink
4591
4591
  * @see https://tailwindcss.com/docs/flex-shrink
4592
4592
  */
4593
4593
  shrink: [{
4594
- shrink: ["", z, L, _]
4594
+ shrink: ["", W, _, M]
4595
4595
  }],
4596
4596
  /**
4597
4597
  * Order
4598
4598
  * @see https://tailwindcss.com/docs/order
4599
4599
  */
4600
4600
  order: [{
4601
- order: [Ce, "first", "last", "none", L, _]
4601
+ order: [Ce, "first", "last", "none", _, M]
4602
4602
  }],
4603
4603
  /**
4604
4604
  * Grid Template Columns
@@ -4668,14 +4668,14 @@ const Fl = (e, t) => {
4668
4668
  * @see https://tailwindcss.com/docs/grid-auto-columns
4669
4669
  */
4670
4670
  "auto-cols": [{
4671
- "auto-cols": M()
4671
+ "auto-cols": L()
4672
4672
  }],
4673
4673
  /**
4674
4674
  * Grid Auto Rows
4675
4675
  * @see https://tailwindcss.com/docs/grid-auto-rows
4676
4676
  */
4677
4677
  "auto-rows": [{
4678
- "auto-rows": M()
4678
+ "auto-rows": L()
4679
4679
  }],
4680
4680
  /**
4681
4681
  * Gap
@@ -4710,14 +4710,14 @@ const Fl = (e, t) => {
4710
4710
  * @see https://tailwindcss.com/docs/justify-items
4711
4711
  */
4712
4712
  "justify-items": [{
4713
- "justify-items": [...F(), "normal"]
4713
+ "justify-items": [...D(), "normal"]
4714
4714
  }],
4715
4715
  /**
4716
4716
  * Justify Self
4717
4717
  * @see https://tailwindcss.com/docs/justify-self
4718
4718
  */
4719
4719
  "justify-self": [{
4720
- "justify-self": ["auto", ...F()]
4720
+ "justify-self": ["auto", ...D()]
4721
4721
  }],
4722
4722
  /**
4723
4723
  * Align Content
@@ -4731,7 +4731,7 @@ const Fl = (e, t) => {
4731
4731
  * @see https://tailwindcss.com/docs/align-items
4732
4732
  */
4733
4733
  "align-items": [{
4734
- items: [...F(), {
4734
+ items: [...D(), {
4735
4735
  baseline: ["", "last"]
4736
4736
  }]
4737
4737
  }],
@@ -4740,7 +4740,7 @@ const Fl = (e, t) => {
4740
4740
  * @see https://tailwindcss.com/docs/align-self
4741
4741
  */
4742
4742
  "align-self": [{
4743
- self: ["auto", ...F(), {
4743
+ self: ["auto", ...D(), {
4744
4744
  baseline: ["", "last"]
4745
4745
  }]
4746
4746
  }],
@@ -4756,14 +4756,14 @@ const Fl = (e, t) => {
4756
4756
  * @see https://tailwindcss.com/docs/place-items
4757
4757
  */
4758
4758
  "place-items": [{
4759
- "place-items": [...F(), "baseline"]
4759
+ "place-items": [...D(), "baseline"]
4760
4760
  }],
4761
4761
  /**
4762
4762
  * Place Self
4763
4763
  * @see https://tailwindcss.com/docs/place-self
4764
4764
  */
4765
4765
  "place-self": [{
4766
- "place-self": ["auto", ...F()]
4766
+ "place-self": ["auto", ...D()]
4767
4767
  }],
4768
4768
  // Spacing
4769
4769
  /**
@@ -4924,14 +4924,14 @@ const Fl = (e, t) => {
4924
4924
  * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
4925
4925
  */
4926
4926
  size: [{
4927
- size: W()
4927
+ size: z()
4928
4928
  }],
4929
4929
  /**
4930
4930
  * Width
4931
4931
  * @see https://tailwindcss.com/docs/width
4932
4932
  */
4933
4933
  w: [{
4934
- w: [a, "screen", ...W()]
4934
+ w: [a, "screen", ...z()]
4935
4935
  }],
4936
4936
  /**
4937
4937
  * Min-Width
@@ -4943,7 +4943,7 @@ const Fl = (e, t) => {
4943
4943
  "screen",
4944
4944
  /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
4945
4945
  "none",
4946
- ...W()
4946
+ ...z()
4947
4947
  ]
4948
4948
  }],
4949
4949
  /**
@@ -4961,7 +4961,7 @@ const Fl = (e, t) => {
4961
4961
  {
4962
4962
  screen: [i]
4963
4963
  },
4964
- ...W()
4964
+ ...z()
4965
4965
  ]
4966
4966
  }],
4967
4967
  /**
@@ -4969,21 +4969,21 @@ const Fl = (e, t) => {
4969
4969
  * @see https://tailwindcss.com/docs/height
4970
4970
  */
4971
4971
  h: [{
4972
- h: ["screen", "lh", ...W()]
4972
+ h: ["screen", "lh", ...z()]
4973
4973
  }],
4974
4974
  /**
4975
4975
  * Min-Height
4976
4976
  * @see https://tailwindcss.com/docs/min-height
4977
4977
  */
4978
4978
  "min-h": [{
4979
- "min-h": ["screen", "lh", "none", ...W()]
4979
+ "min-h": ["screen", "lh", "none", ...z()]
4980
4980
  }],
4981
4981
  /**
4982
4982
  * Max-Height
4983
4983
  * @see https://tailwindcss.com/docs/max-height
4984
4984
  */
4985
4985
  "max-h": [{
4986
- "max-h": ["screen", "lh", ...W()]
4986
+ "max-h": ["screen", "lh", ...z()]
4987
4987
  }],
4988
4988
  // ------------------
4989
4989
  // --- Typography ---
@@ -5010,21 +5010,21 @@ const Fl = (e, t) => {
5010
5010
  * @see https://tailwindcss.com/docs/font-weight
5011
5011
  */
5012
5012
  "font-weight": [{
5013
- font: [o, L, Jt]
5013
+ font: [o, _, Jt]
5014
5014
  }],
5015
5015
  /**
5016
5016
  * Font Stretch
5017
5017
  * @see https://tailwindcss.com/docs/font-stretch
5018
5018
  */
5019
5019
  "font-stretch": [{
5020
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Qt, _]
5020
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Qt, M]
5021
5021
  }],
5022
5022
  /**
5023
5023
  * Font Family
5024
5024
  * @see https://tailwindcss.com/docs/font-family
5025
5025
  */
5026
5026
  "font-family": [{
5027
- font: [bd, _, t]
5027
+ font: [bu, M, t]
5028
5028
  }],
5029
5029
  /**
5030
5030
  * Font Variant Numeric
@@ -5061,14 +5061,14 @@ const Fl = (e, t) => {
5061
5061
  * @see https://tailwindcss.com/docs/letter-spacing
5062
5062
  */
5063
5063
  tracking: [{
5064
- tracking: [r, L, _]
5064
+ tracking: [r, _, M]
5065
5065
  }],
5066
5066
  /**
5067
5067
  * Line Clamp
5068
5068
  * @see https://tailwindcss.com/docs/line-clamp
5069
5069
  */
5070
5070
  "line-clamp": [{
5071
- "line-clamp": [z, "none", L, Jt]
5071
+ "line-clamp": [W, "none", _, Jt]
5072
5072
  }],
5073
5073
  /**
5074
5074
  * Line Height
@@ -5086,7 +5086,7 @@ const Fl = (e, t) => {
5086
5086
  * @see https://tailwindcss.com/docs/list-style-image
5087
5087
  */
5088
5088
  "list-image": [{
5089
- "list-image": ["none", L, _]
5089
+ "list-image": ["none", _, M]
5090
5090
  }],
5091
5091
  /**
5092
5092
  * List Style Position
@@ -5100,7 +5100,7 @@ const Fl = (e, t) => {
5100
5100
  * @see https://tailwindcss.com/docs/list-style-type
5101
5101
  */
5102
5102
  "list-style-type": [{
5103
- list: ["disc", "decimal", "none", L, _]
5103
+ list: ["disc", "decimal", "none", _, M]
5104
5104
  }],
5105
5105
  /**
5106
5106
  * Text Alignment
@@ -5141,7 +5141,7 @@ const Fl = (e, t) => {
5141
5141
  * @see https://tailwindcss.com/docs/text-decoration-thickness
5142
5142
  */
5143
5143
  "text-decoration-thickness": [{
5144
- decoration: [z, "from-font", "auto", L, Te]
5144
+ decoration: [W, "from-font", "auto", _, Te]
5145
5145
  }],
5146
5146
  /**
5147
5147
  * Text Decoration Color
@@ -5155,7 +5155,7 @@ const Fl = (e, t) => {
5155
5155
  * @see https://tailwindcss.com/docs/text-underline-offset
5156
5156
  */
5157
5157
  "underline-offset": [{
5158
- "underline-offset": [z, "auto", L, _]
5158
+ "underline-offset": [W, "auto", _, M]
5159
5159
  }],
5160
5160
  /**
5161
5161
  * Text Transform
@@ -5186,7 +5186,7 @@ const Fl = (e, t) => {
5186
5186
  * @see https://tailwindcss.com/docs/vertical-align
5187
5187
  */
5188
5188
  "vertical-align": [{
5189
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", L, _]
5189
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", _, M]
5190
5190
  }],
5191
5191
  /**
5192
5192
  * Whitespace
@@ -5221,7 +5221,7 @@ const Fl = (e, t) => {
5221
5221
  * @see https://tailwindcss.com/docs/content
5222
5222
  */
5223
5223
  content: [{
5224
- content: ["none", L, _]
5224
+ content: ["none", _, M]
5225
5225
  }],
5226
5226
  // -------------------
5227
5227
  // --- Backgrounds ---
@@ -5266,7 +5266,7 @@ const Fl = (e, t) => {
5266
5266
  * @see https://tailwindcss.com/docs/background-size
5267
5267
  */
5268
5268
  "bg-size": [{
5269
- bg: de()
5269
+ bg: ue()
5270
5270
  }],
5271
5271
  /**
5272
5272
  * Background Image
@@ -5276,10 +5276,10 @@ const Fl = (e, t) => {
5276
5276
  bg: ["none", {
5277
5277
  linear: [{
5278
5278
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
5279
- }, Ce, L, _],
5280
- radial: ["", L, _],
5281
- conic: [Ce, L, _]
5282
- }, wd, vd]
5279
+ }, Ce, _, M],
5280
+ radial: ["", _, M],
5281
+ conic: [Ce, _, M]
5282
+ }, wu, vu]
5283
5283
  }],
5284
5284
  /**
5285
5285
  * Background Color
@@ -5621,14 +5621,14 @@ const Fl = (e, t) => {
5621
5621
  * @see https://tailwindcss.com/docs/outline-offset
5622
5622
  */
5623
5623
  "outline-offset": [{
5624
- "outline-offset": [z, L, _]
5624
+ "outline-offset": [W, _, M]
5625
5625
  }],
5626
5626
  /**
5627
5627
  * Outline Width
5628
5628
  * @see https://tailwindcss.com/docs/outline-width
5629
5629
  */
5630
5630
  "outline-w": [{
5631
- outline: ["", z, Ze, Te]
5631
+ outline: ["", W, Ze, Te]
5632
5632
  }],
5633
5633
  /**
5634
5634
  * Outline Color
@@ -5649,7 +5649,7 @@ const Fl = (e, t) => {
5649
5649
  // Deprecated since Tailwind CSS v4.0.0
5650
5650
  "",
5651
5651
  "none",
5652
- u,
5652
+ d,
5653
5653
  mt,
5654
5654
  pt
5655
5655
  ]
@@ -5703,7 +5703,7 @@ const Fl = (e, t) => {
5703
5703
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
5704
5704
  */
5705
5705
  "ring-offset-w": [{
5706
- "ring-offset": [z, Te]
5706
+ "ring-offset": [W, Te]
5707
5707
  }],
5708
5708
  /**
5709
5709
  * Ring Offset Color
@@ -5747,21 +5747,21 @@ const Fl = (e, t) => {
5747
5747
  * @see https://tailwindcss.com/docs/opacity
5748
5748
  */
5749
5749
  opacity: [{
5750
- opacity: [z, L, _]
5750
+ opacity: [W, _, M]
5751
5751
  }],
5752
5752
  /**
5753
5753
  * Mix Blend Mode
5754
5754
  * @see https://tailwindcss.com/docs/mix-blend-mode
5755
5755
  */
5756
5756
  "mix-blend": [{
5757
- "mix-blend": [...ue(), "plus-darker", "plus-lighter"]
5757
+ "mix-blend": [...de(), "plus-darker", "plus-lighter"]
5758
5758
  }],
5759
5759
  /**
5760
5760
  * Background Blend Mode
5761
5761
  * @see https://tailwindcss.com/docs/background-blend-mode
5762
5762
  */
5763
5763
  "bg-blend": [{
5764
- "bg-blend": ue()
5764
+ "bg-blend": de()
5765
5765
  }],
5766
5766
  /**
5767
5767
  * Mask Clip
@@ -5782,7 +5782,7 @@ const Fl = (e, t) => {
5782
5782
  * @see https://tailwindcss.com/docs/mask-image
5783
5783
  */
5784
5784
  "mask-image-linear-pos": [{
5785
- "mask-linear": [z]
5785
+ "mask-linear": [W]
5786
5786
  }],
5787
5787
  "mask-image-linear-from-pos": [{
5788
5788
  "mask-linear-from": I()
@@ -5869,7 +5869,7 @@ const Fl = (e, t) => {
5869
5869
  "mask-y-to": N()
5870
5870
  }],
5871
5871
  "mask-image-radial": [{
5872
- "mask-radial": [L, _]
5872
+ "mask-radial": [_, M]
5873
5873
  }],
5874
5874
  "mask-image-radial-from-pos": [{
5875
5875
  "mask-radial-from": I()
@@ -5896,7 +5896,7 @@ const Fl = (e, t) => {
5896
5896
  "mask-radial-at": S()
5897
5897
  }],
5898
5898
  "mask-image-conic-pos": [{
5899
- "mask-conic": [z]
5899
+ "mask-conic": [W]
5900
5900
  }],
5901
5901
  "mask-image-conic-from-pos": [{
5902
5902
  "mask-conic-from": I()
@@ -5943,7 +5943,7 @@ const Fl = (e, t) => {
5943
5943
  * @see https://tailwindcss.com/docs/mask-size
5944
5944
  */
5945
5945
  "mask-size": [{
5946
- mask: de()
5946
+ mask: ue()
5947
5947
  }],
5948
5948
  /**
5949
5949
  * Mask Type
@@ -5957,7 +5957,7 @@ const Fl = (e, t) => {
5957
5957
  * @see https://tailwindcss.com/docs/mask-image
5958
5958
  */
5959
5959
  "mask-image": [{
5960
- mask: ["none", L, _]
5960
+ mask: ["none", _, M]
5961
5961
  }],
5962
5962
  // ---------------
5963
5963
  // --- Filters ---
@@ -5971,8 +5971,8 @@ const Fl = (e, t) => {
5971
5971
  // Deprecated since Tailwind CSS v3.0.0
5972
5972
  "",
5973
5973
  "none",
5974
- L,
5975
- _
5974
+ _,
5975
+ M
5976
5976
  ]
5977
5977
  }],
5978
5978
  /**
@@ -5987,14 +5987,14 @@ const Fl = (e, t) => {
5987
5987
  * @see https://tailwindcss.com/docs/brightness
5988
5988
  */
5989
5989
  brightness: [{
5990
- brightness: [z, L, _]
5990
+ brightness: [W, _, M]
5991
5991
  }],
5992
5992
  /**
5993
5993
  * Contrast
5994
5994
  * @see https://tailwindcss.com/docs/contrast
5995
5995
  */
5996
5996
  contrast: [{
5997
- contrast: [z, L, _]
5997
+ contrast: [W, _, M]
5998
5998
  }],
5999
5999
  /**
6000
6000
  * Drop Shadow
@@ -6022,35 +6022,35 @@ const Fl = (e, t) => {
6022
6022
  * @see https://tailwindcss.com/docs/grayscale
6023
6023
  */
6024
6024
  grayscale: [{
6025
- grayscale: ["", z, L, _]
6025
+ grayscale: ["", W, _, M]
6026
6026
  }],
6027
6027
  /**
6028
6028
  * Hue Rotate
6029
6029
  * @see https://tailwindcss.com/docs/hue-rotate
6030
6030
  */
6031
6031
  "hue-rotate": [{
6032
- "hue-rotate": [z, L, _]
6032
+ "hue-rotate": [W, _, M]
6033
6033
  }],
6034
6034
  /**
6035
6035
  * Invert
6036
6036
  * @see https://tailwindcss.com/docs/invert
6037
6037
  */
6038
6038
  invert: [{
6039
- invert: ["", z, L, _]
6039
+ invert: ["", W, _, M]
6040
6040
  }],
6041
6041
  /**
6042
6042
  * Saturate
6043
6043
  * @see https://tailwindcss.com/docs/saturate
6044
6044
  */
6045
6045
  saturate: [{
6046
- saturate: [z, L, _]
6046
+ saturate: [W, _, M]
6047
6047
  }],
6048
6048
  /**
6049
6049
  * Sepia
6050
6050
  * @see https://tailwindcss.com/docs/sepia
6051
6051
  */
6052
6052
  sepia: [{
6053
- sepia: ["", z, L, _]
6053
+ sepia: ["", W, _, M]
6054
6054
  }],
6055
6055
  /**
6056
6056
  * Backdrop Filter
@@ -6061,8 +6061,8 @@ const Fl = (e, t) => {
6061
6061
  // Deprecated since Tailwind CSS v3.0.0
6062
6062
  "",
6063
6063
  "none",
6064
- L,
6065
- _
6064
+ _,
6065
+ M
6066
6066
  ]
6067
6067
  }],
6068
6068
  /**
@@ -6077,56 +6077,56 @@ const Fl = (e, t) => {
6077
6077
  * @see https://tailwindcss.com/docs/backdrop-brightness
6078
6078
  */
6079
6079
  "backdrop-brightness": [{
6080
- "backdrop-brightness": [z, L, _]
6080
+ "backdrop-brightness": [W, _, M]
6081
6081
  }],
6082
6082
  /**
6083
6083
  * Backdrop Contrast
6084
6084
  * @see https://tailwindcss.com/docs/backdrop-contrast
6085
6085
  */
6086
6086
  "backdrop-contrast": [{
6087
- "backdrop-contrast": [z, L, _]
6087
+ "backdrop-contrast": [W, _, M]
6088
6088
  }],
6089
6089
  /**
6090
6090
  * Backdrop Grayscale
6091
6091
  * @see https://tailwindcss.com/docs/backdrop-grayscale
6092
6092
  */
6093
6093
  "backdrop-grayscale": [{
6094
- "backdrop-grayscale": ["", z, L, _]
6094
+ "backdrop-grayscale": ["", W, _, M]
6095
6095
  }],
6096
6096
  /**
6097
6097
  * Backdrop Hue Rotate
6098
6098
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
6099
6099
  */
6100
6100
  "backdrop-hue-rotate": [{
6101
- "backdrop-hue-rotate": [z, L, _]
6101
+ "backdrop-hue-rotate": [W, _, M]
6102
6102
  }],
6103
6103
  /**
6104
6104
  * Backdrop Invert
6105
6105
  * @see https://tailwindcss.com/docs/backdrop-invert
6106
6106
  */
6107
6107
  "backdrop-invert": [{
6108
- "backdrop-invert": ["", z, L, _]
6108
+ "backdrop-invert": ["", W, _, M]
6109
6109
  }],
6110
6110
  /**
6111
6111
  * Backdrop Opacity
6112
6112
  * @see https://tailwindcss.com/docs/backdrop-opacity
6113
6113
  */
6114
6114
  "backdrop-opacity": [{
6115
- "backdrop-opacity": [z, L, _]
6115
+ "backdrop-opacity": [W, _, M]
6116
6116
  }],
6117
6117
  /**
6118
6118
  * Backdrop Saturate
6119
6119
  * @see https://tailwindcss.com/docs/backdrop-saturate
6120
6120
  */
6121
6121
  "backdrop-saturate": [{
6122
- "backdrop-saturate": [z, L, _]
6122
+ "backdrop-saturate": [W, _, M]
6123
6123
  }],
6124
6124
  /**
6125
6125
  * Backdrop Sepia
6126
6126
  * @see https://tailwindcss.com/docs/backdrop-sepia
6127
6127
  */
6128
6128
  "backdrop-sepia": [{
6129
- "backdrop-sepia": ["", z, L, _]
6129
+ "backdrop-sepia": ["", W, _, M]
6130
6130
  }],
6131
6131
  // --------------
6132
6132
  // --- Tables ---
@@ -6181,7 +6181,7 @@ const Fl = (e, t) => {
6181
6181
  * @see https://tailwindcss.com/docs/transition-property
6182
6182
  */
6183
6183
  transition: [{
6184
- transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", L, _]
6184
+ transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", _, M]
6185
6185
  }],
6186
6186
  /**
6187
6187
  * Transition Behavior
@@ -6195,28 +6195,28 @@ const Fl = (e, t) => {
6195
6195
  * @see https://tailwindcss.com/docs/transition-duration
6196
6196
  */
6197
6197
  duration: [{
6198
- duration: [z, "initial", L, _]
6198
+ duration: [W, "initial", _, M]
6199
6199
  }],
6200
6200
  /**
6201
6201
  * Transition Timing Function
6202
6202
  * @see https://tailwindcss.com/docs/transition-timing-function
6203
6203
  */
6204
6204
  ease: [{
6205
- ease: ["linear", "initial", y, L, _]
6205
+ ease: ["linear", "initial", y, _, M]
6206
6206
  }],
6207
6207
  /**
6208
6208
  * Transition Delay
6209
6209
  * @see https://tailwindcss.com/docs/transition-delay
6210
6210
  */
6211
6211
  delay: [{
6212
- delay: [z, L, _]
6212
+ delay: [W, _, M]
6213
6213
  }],
6214
6214
  /**
6215
6215
  * Animation
6216
6216
  * @see https://tailwindcss.com/docs/animation
6217
6217
  */
6218
6218
  animate: [{
6219
- animate: ["none", w, L, _]
6219
+ animate: ["none", w, _, M]
6220
6220
  }],
6221
6221
  // ------------------
6222
6222
  // --- Transforms ---
@@ -6233,7 +6233,7 @@ const Fl = (e, t) => {
6233
6233
  * @see https://tailwindcss.com/docs/perspective
6234
6234
  */
6235
6235
  perspective: [{
6236
- perspective: [p, L, _]
6236
+ perspective: [p, _, M]
6237
6237
  }],
6238
6238
  /**
6239
6239
  * Perspective Origin
@@ -6329,7 +6329,7 @@ const Fl = (e, t) => {
6329
6329
  * @see https://tailwindcss.com/docs/transform
6330
6330
  */
6331
6331
  transform: [{
6332
- transform: [L, _, "", "none", "gpu", "cpu"]
6332
+ transform: [_, M, "", "none", "gpu", "cpu"]
6333
6333
  }],
6334
6334
  /**
6335
6335
  * Transform Origin
@@ -6414,7 +6414,7 @@ const Fl = (e, t) => {
6414
6414
  * @see https://tailwindcss.com/docs/cursor
6415
6415
  */
6416
6416
  cursor: [{
6417
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", L, _]
6417
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", _, M]
6418
6418
  }],
6419
6419
  /**
6420
6420
  * Field Sizing
@@ -6636,7 +6636,7 @@ const Fl = (e, t) => {
6636
6636
  * @see https://tailwindcss.com/docs/will-change
6637
6637
  */
6638
6638
  "will-change": [{
6639
- "will-change": ["auto", "scroll", "contents", "transform", L, _]
6639
+ "will-change": ["auto", "scroll", "contents", "transform", _, M]
6640
6640
  }],
6641
6641
  // -----------
6642
6642
  // --- SVG ---
@@ -6653,7 +6653,7 @@ const Fl = (e, t) => {
6653
6653
  * @see https://tailwindcss.com/docs/stroke-width
6654
6654
  */
6655
6655
  "stroke-w": [{
6656
- stroke: [z, Ze, Te, Jt]
6656
+ stroke: [W, Ze, Te, Jt]
6657
6657
  }],
6658
6658
  /**
6659
6659
  * Stroke
@@ -6728,9 +6728,9 @@ const Fl = (e, t) => {
6728
6728
  },
6729
6729
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
6730
6730
  };
6731
- }, Ed = /* @__PURE__ */ od(Sd);
6731
+ }, Eu = /* @__PURE__ */ ou(Su);
6732
6732
  function $t(...e) {
6733
- return Ed(Dl(e));
6733
+ return Eu(Dl(e));
6734
6734
  }
6735
6735
  function Ln({
6736
6736
  ...e
@@ -6762,14 +6762,14 @@ function Fn({
6762
6762
  }
6763
6763
  ) });
6764
6764
  }
6765
- function Rd({
6765
+ function Ru({
6766
6766
  field: e,
6767
6767
  formValues: t,
6768
6768
  handleChange: n,
6769
6769
  handleBlur: o,
6770
6770
  error: r
6771
6771
  }) {
6772
- const [s, i] = ae(!1), a = t[e.name] ?? { from: null, to: null }, c = (u) => n(e.name, u), l = () => n(e.name, { from: null, to: null });
6772
+ const [s, i] = ae(!1), a = t[e.name] ?? { from: null, to: null }, c = (d) => n(e.name, d), l = () => n(e.name, { from: null, to: null });
6773
6773
  return /* @__PURE__ */ T("div", { children: [
6774
6774
  /* @__PURE__ */ T(Ln, { open: s, onOpenChange: i, children: [
6775
6775
  /* @__PURE__ */ f(Dn, { asChild: !0, children: /* @__PURE__ */ T(
@@ -6780,7 +6780,7 @@ function Rd({
6780
6780
  "aria-haspopup": "dialog",
6781
6781
  "aria-expanded": s,
6782
6782
  onClick: () => i(!0),
6783
- onKeyDown: (u) => u.key === "Enter" && i(!0),
6783
+ onKeyDown: (d) => d.key === "Enter" && i(!0),
6784
6784
  className: `
6785
6785
  inline-flex items-center justify-between gap-2
6786
6786
  w-full h-9 rounded-md border bg-white
@@ -6871,30 +6871,30 @@ function wo({
6871
6871
  onFieldsChange: a,
6872
6872
  api_URL: c
6873
6873
  }) {
6874
- const l = e.type === "multifile", u = o[e.name] || {}, m = t[e.name], g = l ? m || [] : [m].filter(Boolean), h = e.disabled && e.disabled(t), b = `px-4 py-2 bg-gray-100 border rounded hover:bg-gray-200 ${h ? "cursor-not-allowed" : ""}`, p = c ? `${c}uploads` : null;
6874
+ const l = e.type === "multifile", d = o[e.name] || {}, m = t[e.name], g = l ? m || [] : [m].filter(Boolean), h = e.disabled && e.disabled(t), b = `px-4 py-2 bg-gray-100 border rounded hover:bg-gray-200 ${h ? "cursor-not-allowed" : ""}`, p = c ? `${c}uploads` : null;
6875
6875
  !p && e.uploadEndpoint && console.error(`api_URL prop is required when using FileField with upload functionality for field "${e.name}"`);
6876
6876
  const v = (k) => {
6877
6877
  if (k === 0) return "0 Bytes";
6878
- const R = 1024, C = ["Bytes", "KB", "MB", "GB"], D = Math.floor(Math.log(k) / Math.log(R));
6879
- return parseFloat((k / Math.pow(R, D)).toFixed(2)) + " " + C[D];
6878
+ const R = 1024, C = ["Bytes", "KB", "MB", "GB"], F = Math.floor(Math.log(k) / Math.log(R));
6879
+ return parseFloat((k / Math.pow(R, F)).toFixed(2)) + " " + C[F];
6880
6880
  }, y = async (k, R) => {
6881
6881
  const C = new FormData();
6882
6882
  C.append("file", k);
6883
- const D = await fetch(`${p}`, {
6883
+ const F = await fetch(`${p}`, {
6884
6884
  method: "POST",
6885
6885
  body: C
6886
6886
  });
6887
- if (!D.ok)
6887
+ if (!F.ok)
6888
6888
  throw bt.error("Upload failed"), new Error("Upload failed");
6889
- return await D.json();
6889
+ return await F.json();
6890
6890
  }, w = async (k, R) => {
6891
6891
  if (!R) return;
6892
6892
  if (k.maxSize && R.size > k.maxSize)
6893
6893
  throw new Error(
6894
6894
  `File size must not exceed ${v(k.maxSize)}`
6895
6895
  );
6896
- const C = await y(R, k.name), D = { ...t, [k.name]: C };
6897
- i(k.name, C), a(D);
6896
+ const C = await y(R, k.name), F = { ...t, [k.name]: C };
6897
+ i(k.name, C), a(F);
6898
6898
  }, x = async (k, R) => {
6899
6899
  const C = t[k.name] || [];
6900
6900
  if (C.length + R.length > k.maxFiles)
@@ -6905,16 +6905,16 @@ function wo({
6905
6905
  `Each file must not exceed ${v(k.maxSize)}`
6906
6906
  );
6907
6907
  });
6908
- const D = await Promise.all(
6908
+ const F = await Promise.all(
6909
6909
  R.map((A) => y(A, k.name))
6910
- ), E = [...C, ...D];
6910
+ ), E = [...C, ...F];
6911
6911
  i(k.name, E), a({ ...t, [k.name]: E });
6912
6912
  }, S = async (k, R) => {
6913
6913
  const C = Array.from(R);
6914
6914
  try {
6915
6915
  e.type === "file" ? await w(e, C[0]) : e.type === "multifile" && await x(e, C), s.current[k] && (s.current[k].value = "");
6916
- } catch (D) {
6917
- bt.error(`Upload failed: ${D.message}`);
6916
+ } catch (F) {
6917
+ bt.error(`Upload failed: ${F.message}`);
6918
6918
  }
6919
6919
  }, P = async (k, R) => {
6920
6920
  let C;
@@ -6959,8 +6959,8 @@ function wo({
6959
6959
  }
6960
6960
  ),
6961
6961
  /* @__PURE__ */ f("div", { className: "space-y-2", children: g.map((k, R) => {
6962
- const C = Object.values(u).find(
6963
- (D) => D.file === k
6962
+ const C = Object.values(d).find(
6963
+ (F) => F.file === k
6964
6964
  );
6965
6965
  return /* @__PURE__ */ T(
6966
6966
  "div",
@@ -6992,7 +6992,7 @@ function wo({
6992
6992
  k
6993
6993
  );
6994
6994
  }) }),
6995
- Object.entries(u).map(([k, R]) => R.status === "uploading" ? /* @__PURE__ */ T("div", { className: "relative pt-1", children: [
6995
+ Object.entries(d).map(([k, R]) => R.status === "uploading" ? /* @__PURE__ */ T("div", { className: "relative pt-1", children: [
6996
6996
  /* @__PURE__ */ T("div", { className: "flex items-center justify-between", children: [
6997
6997
  /* @__PURE__ */ T("span", { className: "text-xs font-semibold inline-block text-blue-600", children: [
6998
6998
  "Uploading ",
@@ -7015,7 +7015,7 @@ function wo({
7015
7015
  n && /* @__PURE__ */ f("p", { className: "mt-1 text-sm text-red-500", children: n })
7016
7016
  ] }, e.name);
7017
7017
  }
7018
- function kd({
7018
+ function ku({
7019
7019
  field: e,
7020
7020
  formValues: t,
7021
7021
  handleChange: n,
@@ -7024,15 +7024,15 @@ function kd({
7024
7024
  charCount: s,
7025
7025
  setCharCounts: i
7026
7026
  }) {
7027
- const a = Os(null), c = t[e.name] || "", l = typeof e.disabled == "function" ? e.disabled(t) : e.disabled || e.readOnly, u = () => {
7027
+ const a = Os(null), c = t[e.name] || "", l = typeof e.disabled == "function" ? e.disabled(t) : e.disabled || e.readOnly, d = () => {
7028
7028
  const g = a.current;
7029
7029
  g && (g.style.height = "auto", g.style.height = `${g.scrollHeight + 2}px`);
7030
7030
  };
7031
7031
  on(() => {
7032
- u();
7032
+ d();
7033
7033
  }, [c]);
7034
7034
  const m = (g) => {
7035
- n(e.name, g.target.value), u(), i && i((h) => ({
7035
+ n(e.name, g.target.value), d(), i && i((h) => ({
7036
7036
  ...h,
7037
7037
  [e.name]: g.target.value.length
7038
7038
  }));
@@ -7068,7 +7068,7 @@ function kd({
7068
7068
  r && /* @__PURE__ */ f("p", { className: "mt-1 text-sm text-red-500", children: r })
7069
7069
  ] });
7070
7070
  }
7071
- function Pd({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r }) {
7071
+ function Pu({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r }) {
7072
7072
  return /* @__PURE__ */ T("div", { children: [
7073
7073
  /* @__PURE__ */ f(
7074
7074
  "input",
@@ -7085,44 +7085,44 @@ function Pd({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
7085
7085
  /* @__PURE__ */ f("p", { className: "text-sm text-gray-500 mt-1", children: "Note: Install @mui/x-date-pickers for enhanced date picker functionality" })
7086
7086
  ] });
7087
7087
  }
7088
- var Nd = Symbol.for("react.lazy"), Rt = d[" use ".trim().toString()];
7089
- function Ad(e) {
7088
+ var Nu = Symbol.for("react.lazy"), Rt = u[" use ".trim().toString()];
7089
+ function Au(e) {
7090
7090
  return typeof e == "object" && e !== null && "then" in e;
7091
7091
  }
7092
7092
  function ls(e) {
7093
- return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Nd && "_payload" in e && Ad(e._payload);
7093
+ return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Nu && "_payload" in e && Au(e._payload);
7094
7094
  }
7095
7095
  // @__NO_SIDE_EFFECTS__
7096
- function Od(e) {
7097
- const t = /* @__PURE__ */ Id(e), n = d.forwardRef((o, r) => {
7096
+ function Ou(e) {
7097
+ const t = /* @__PURE__ */ Iu(e), n = u.forwardRef((o, r) => {
7098
7098
  let { children: s, ...i } = o;
7099
7099
  ls(s) && typeof Rt == "function" && (s = Rt(s._payload));
7100
- const a = d.Children.toArray(s), c = a.find(Md);
7100
+ const a = u.Children.toArray(s), c = a.find(Mu);
7101
7101
  if (c) {
7102
- const l = c.props.children, u = a.map((m) => m === c ? d.Children.count(l) > 1 ? d.Children.only(null) : d.isValidElement(l) ? l.props.children : null : m);
7103
- return /* @__PURE__ */ f(t, { ...i, ref: r, children: d.isValidElement(l) ? d.cloneElement(l, void 0, u) : null });
7102
+ const l = c.props.children, d = a.map((m) => m === c ? u.Children.count(l) > 1 ? u.Children.only(null) : u.isValidElement(l) ? l.props.children : null : m);
7103
+ return /* @__PURE__ */ f(t, { ...i, ref: r, children: u.isValidElement(l) ? u.cloneElement(l, void 0, d) : null });
7104
7104
  }
7105
7105
  return /* @__PURE__ */ f(t, { ...i, ref: r, children: s });
7106
7106
  });
7107
7107
  return n.displayName = `${e}.Slot`, n;
7108
7108
  }
7109
7109
  // @__NO_SIDE_EFFECTS__
7110
- function Id(e) {
7111
- const t = d.forwardRef((n, o) => {
7110
+ function Iu(e) {
7111
+ const t = u.forwardRef((n, o) => {
7112
7112
  let { children: r, ...s } = n;
7113
- if (ls(r) && typeof Rt == "function" && (r = Rt(r._payload)), d.isValidElement(r)) {
7114
- const i = Ld(r), a = _d(s, r.props);
7115
- return r.type !== d.Fragment && (a.ref = o ? vn(o, i) : i), d.cloneElement(r, a);
7113
+ if (ls(r) && typeof Rt == "function" && (r = Rt(r._payload)), u.isValidElement(r)) {
7114
+ const i = Lu(r), a = _u(s, r.props);
7115
+ return r.type !== u.Fragment && (a.ref = o ? vn(o, i) : i), u.cloneElement(r, a);
7116
7116
  }
7117
- return d.Children.count(r) > 1 ? d.Children.only(null) : null;
7117
+ return u.Children.count(r) > 1 ? u.Children.only(null) : null;
7118
7118
  });
7119
7119
  return t.displayName = `${e}.SlotClone`, t;
7120
7120
  }
7121
- var Td = Symbol("radix.slottable");
7122
- function Md(e) {
7123
- return d.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Td;
7121
+ var Tu = Symbol("radix.slottable");
7122
+ function Mu(e) {
7123
+ return u.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Tu;
7124
7124
  }
7125
- function _d(e, t) {
7125
+ function _u(e, t) {
7126
7126
  const n = { ...t };
7127
7127
  for (const o in t) {
7128
7128
  const r = e[o], s = t[o];
@@ -7133,11 +7133,11 @@ function _d(e, t) {
7133
7133
  }
7134
7134
  return { ...e, ...n };
7135
7135
  }
7136
- function Ld(e) {
7136
+ function Lu(e) {
7137
7137
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
7138
7138
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
7139
7139
  }
7140
- var Dd = [
7140
+ var Du = [
7141
7141
  "a",
7142
7142
  "button",
7143
7143
  "div",
@@ -7155,16 +7155,16 @@ var Dd = [
7155
7155
  "span",
7156
7156
  "svg",
7157
7157
  "ul"
7158
- ], Fd = Dd.reduce((e, t) => {
7159
- const n = /* @__PURE__ */ Od(`Primitive.${t}`), o = d.forwardRef((r, s) => {
7158
+ ], Fu = Du.reduce((e, t) => {
7159
+ const n = /* @__PURE__ */ Ou(`Primitive.${t}`), o = u.forwardRef((r, s) => {
7160
7160
  const { asChild: i, ...a } = r, c = i ? n : t;
7161
7161
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f(c, { ...a, ref: s });
7162
7162
  });
7163
7163
  return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
7164
- }, {}), $d = "Separator", xo = "horizontal", Bd = ["horizontal", "vertical"], ds = d.forwardRef((e, t) => {
7165
- const { decorative: n, orientation: o = xo, ...r } = e, s = zd(o) ? o : xo, a = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
7164
+ }, {}), $u = "Separator", xo = "horizontal", Bu = ["horizontal", "vertical"], us = u.forwardRef((e, t) => {
7165
+ const { decorative: n, orientation: o = xo, ...r } = e, s = zu(o) ? o : xo, a = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
7166
7166
  return /* @__PURE__ */ f(
7167
- Fd.div,
7167
+ Fu.div,
7168
7168
  {
7169
7169
  "data-orientation": s,
7170
7170
  ...a,
@@ -7173,11 +7173,11 @@ var Dd = [
7173
7173
  }
7174
7174
  );
7175
7175
  });
7176
- ds.displayName = $d;
7177
- function zd(e) {
7178
- return Bd.includes(e);
7176
+ us.displayName = $u;
7177
+ function zu(e) {
7178
+ return Bu.includes(e);
7179
7179
  }
7180
- var Wd = ds;
7180
+ var Wu = us;
7181
7181
  function en({
7182
7182
  className: e,
7183
7183
  orientation: t = "horizontal",
@@ -7185,7 +7185,7 @@ function en({
7185
7185
  ...o
7186
7186
  }) {
7187
7187
  return /* @__PURE__ */ f(
7188
- Wd,
7188
+ Wu,
7189
7189
  {
7190
7190
  "data-slot": "separator",
7191
7191
  decorative: n,
@@ -7198,21 +7198,21 @@ function en({
7198
7198
  }
7199
7199
  );
7200
7200
  }
7201
- function Vd({ field: e }) {
7201
+ function Vu({ field: e }) {
7202
7202
  return e?.label ? /* @__PURE__ */ T("div", { className: "relative flex items-center py-4", children: [
7203
7203
  /* @__PURE__ */ f(en, { className: "flex-1 h-px bg-gray-300" }),
7204
7204
  /* @__PURE__ */ f("span", { className: "px-3 font-medium text-gray-600 bg-white", children: e.label }),
7205
7205
  /* @__PURE__ */ f(en, { className: "flex-1 h-px bg-gray-300" })
7206
7206
  ] }) : /* @__PURE__ */ f(en, { className: "my-4 h-px bg-gray-300" });
7207
7207
  }
7208
- var tn = "rovingFocusGroup.onEntryFocus", Hd = { bubbles: !1, cancelable: !0 }, it = "RovingFocusGroup", [gn, us, Ud] = Eo(it), [jd, fs] = De(
7208
+ var tn = "rovingFocusGroup.onEntryFocus", Hu = { bubbles: !1, cancelable: !0 }, it = "RovingFocusGroup", [gn, ds, Uu] = Eo(it), [ju, fs] = De(
7209
7209
  it,
7210
- [Ud]
7211
- ), [Gd, Kd] = jd(it), ps = d.forwardRef(
7212
- (e, t) => /* @__PURE__ */ f(gn.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ f(gn.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ f(Yd, { ...e, ref: t }) }) })
7210
+ [Uu]
7211
+ ), [Gu, Ku] = ju(it), ps = u.forwardRef(
7212
+ (e, t) => /* @__PURE__ */ f(gn.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ f(gn.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ f(Yu, { ...e, ref: t }) }) })
7213
7213
  );
7214
7214
  ps.displayName = it;
7215
- var Yd = d.forwardRef((e, t) => {
7215
+ var Yu = u.forwardRef((e, t) => {
7216
7216
  const {
7217
7217
  __scopeRovingFocusGroup: n,
7218
7218
  orientation: o,
@@ -7222,36 +7222,36 @@ var Yd = d.forwardRef((e, t) => {
7222
7222
  defaultCurrentTabStopId: a,
7223
7223
  onCurrentTabStopIdChange: c,
7224
7224
  onEntryFocus: l,
7225
- preventScrollOnEntryFocus: u = !1,
7225
+ preventScrollOnEntryFocus: d = !1,
7226
7226
  ...m
7227
- } = e, g = d.useRef(null), h = q(t, g), b = bn(s), [p, v] = nt({
7227
+ } = e, g = u.useRef(null), h = q(t, g), b = bn(s), [p, v] = nt({
7228
7228
  prop: i,
7229
7229
  defaultProp: a ?? null,
7230
7230
  onChange: c,
7231
7231
  caller: it
7232
- }), [y, w] = d.useState(!1), x = Re(l), S = us(n), P = d.useRef(!1), [k, R] = d.useState(0);
7233
- return d.useEffect(() => {
7232
+ }), [y, w] = u.useState(!1), x = Re(l), S = ds(n), P = u.useRef(!1), [k, R] = u.useState(0);
7233
+ return u.useEffect(() => {
7234
7234
  const C = g.current;
7235
7235
  if (C)
7236
7236
  return C.addEventListener(tn, x), () => C.removeEventListener(tn, x);
7237
7237
  }, [x]), /* @__PURE__ */ f(
7238
- Gd,
7238
+ Gu,
7239
7239
  {
7240
7240
  scope: n,
7241
7241
  orientation: o,
7242
7242
  dir: b,
7243
7243
  loop: r,
7244
7244
  currentTabStopId: p,
7245
- onItemFocus: d.useCallback(
7245
+ onItemFocus: u.useCallback(
7246
7246
  (C) => v(C),
7247
7247
  [v]
7248
7248
  ),
7249
- onItemShiftTab: d.useCallback(() => w(!0), []),
7250
- onFocusableItemAdd: d.useCallback(
7249
+ onItemShiftTab: u.useCallback(() => w(!0), []),
7250
+ onFocusableItemAdd: u.useCallback(
7251
7251
  () => R((C) => C + 1),
7252
7252
  []
7253
7253
  ),
7254
- onFocusableItemRemove: d.useCallback(
7254
+ onFocusableItemRemove: u.useCallback(
7255
7255
  () => R((C) => C - 1),
7256
7256
  []
7257
7257
  ),
@@ -7267,14 +7267,14 @@ var Yd = d.forwardRef((e, t) => {
7267
7267
  P.current = !0;
7268
7268
  }),
7269
7269
  onFocus: V(e.onFocus, (C) => {
7270
- const D = !P.current;
7271
- if (C.target === C.currentTarget && D && !y) {
7272
- const E = new CustomEvent(tn, Hd);
7270
+ const F = !P.current;
7271
+ if (C.target === C.currentTarget && F && !y) {
7272
+ const E = new CustomEvent(tn, Hu);
7273
7273
  if (C.currentTarget.dispatchEvent(E), !E.defaultPrevented) {
7274
- const A = S().filter(($) => $.focusable), O = A.find(($) => $.active), M = A.find(($) => $.id === p), F = [O, M, ...A].filter(
7274
+ const A = S().filter(($) => $.focusable), O = A.find(($) => $.active), L = A.find(($) => $.id === p), D = [O, L, ...A].filter(
7275
7275
  Boolean
7276
7276
  ).map(($) => $.ref.current);
7277
- gs(F, u);
7277
+ gs(D, d);
7278
7278
  }
7279
7279
  }
7280
7280
  P.current = !1;
@@ -7284,7 +7284,7 @@ var Yd = d.forwardRef((e, t) => {
7284
7284
  )
7285
7285
  }
7286
7286
  );
7287
- }), ms = "RovingFocusGroupItem", hs = d.forwardRef(
7287
+ }), ms = "RovingFocusGroupItem", hs = u.forwardRef(
7288
7288
  (e, t) => {
7289
7289
  const {
7290
7290
  __scopeRovingFocusGroup: n,
@@ -7293,8 +7293,8 @@ var Yd = d.forwardRef((e, t) => {
7293
7293
  tabStopId: s,
7294
7294
  children: i,
7295
7295
  ...a
7296
- } = e, c = ot(), l = s || c, u = Kd(ms, n), m = u.currentTabStopId === l, g = us(n), { onFocusableItemAdd: h, onFocusableItemRemove: b, currentTabStopId: p } = u;
7297
- return d.useEffect(() => {
7296
+ } = e, c = ot(), l = s || c, d = Ku(ms, n), m = d.currentTabStopId === l, g = ds(n), { onFocusableItemAdd: h, onFocusableItemRemove: b, currentTabStopId: p } = d;
7297
+ return u.useEffect(() => {
7298
7298
  if (o)
7299
7299
  return h(), () => b();
7300
7300
  }, [o, h, b]), /* @__PURE__ */ f(
@@ -7308,20 +7308,20 @@ var Yd = d.forwardRef((e, t) => {
7308
7308
  U.span,
7309
7309
  {
7310
7310
  tabIndex: m ? 0 : -1,
7311
- "data-orientation": u.orientation,
7311
+ "data-orientation": d.orientation,
7312
7312
  ...a,
7313
7313
  ref: t,
7314
7314
  onMouseDown: V(e.onMouseDown, (v) => {
7315
- o ? u.onItemFocus(l) : v.preventDefault();
7315
+ o ? d.onItemFocus(l) : v.preventDefault();
7316
7316
  }),
7317
- onFocus: V(e.onFocus, () => u.onItemFocus(l)),
7317
+ onFocus: V(e.onFocus, () => d.onItemFocus(l)),
7318
7318
  onKeyDown: V(e.onKeyDown, (v) => {
7319
7319
  if (v.key === "Tab" && v.shiftKey) {
7320
- u.onItemShiftTab();
7320
+ d.onItemShiftTab();
7321
7321
  return;
7322
7322
  }
7323
7323
  if (v.target !== v.currentTarget) return;
7324
- const y = Zd(v, u.orientation, u.dir);
7324
+ const y = Zu(v, d.orientation, d.dir);
7325
7325
  if (y !== void 0) {
7326
7326
  if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
7327
7327
  v.preventDefault();
@@ -7330,7 +7330,7 @@ var Yd = d.forwardRef((e, t) => {
7330
7330
  else if (y === "prev" || y === "next") {
7331
7331
  y === "prev" && x.reverse();
7332
7332
  const S = x.indexOf(v.currentTarget);
7333
- x = u.loop ? Qd(x, S + 1) : x.slice(S + 1);
7333
+ x = d.loop ? Qu(x, S + 1) : x.slice(S + 1);
7334
7334
  }
7335
7335
  setTimeout(() => gs(x));
7336
7336
  }
@@ -7343,7 +7343,7 @@ var Yd = d.forwardRef((e, t) => {
7343
7343
  }
7344
7344
  );
7345
7345
  hs.displayName = ms;
7346
- var qd = {
7346
+ var qu = {
7347
7347
  ArrowLeft: "prev",
7348
7348
  ArrowUp: "prev",
7349
7349
  ArrowRight: "next",
@@ -7353,23 +7353,23 @@ var qd = {
7353
7353
  PageDown: "last",
7354
7354
  End: "last"
7355
7355
  };
7356
- function Xd(e, t) {
7356
+ function Xu(e, t) {
7357
7357
  return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
7358
7358
  }
7359
- function Zd(e, t, n) {
7360
- const o = Xd(e.key, n);
7359
+ function Zu(e, t, n) {
7360
+ const o = Xu(e.key, n);
7361
7361
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
7362
- return qd[o];
7362
+ return qu[o];
7363
7363
  }
7364
7364
  function gs(e, t = !1) {
7365
7365
  const n = document.activeElement;
7366
7366
  for (const o of e)
7367
7367
  if (o === n || (o.focus({ preventScroll: t }), document.activeElement !== n)) return;
7368
7368
  }
7369
- function Qd(e, t) {
7369
+ function Qu(e, t) {
7370
7370
  return e.map((n, o) => e[(t + o) % e.length]);
7371
7371
  }
7372
- var Jd = ps, eu = hs, $n = "Radio", [tu, vs] = De($n), [nu, ou] = tu($n), bs = d.forwardRef(
7372
+ var Ju = ps, ed = hs, $n = "Radio", [td, vs] = De($n), [nd, od] = td($n), bs = u.forwardRef(
7373
7373
  (e, t) => {
7374
7374
  const {
7375
7375
  __scopeRadio: n,
@@ -7380,9 +7380,9 @@ var Jd = ps, eu = hs, $n = "Radio", [tu, vs] = De($n), [nu, ou] = tu($n), bs = d
7380
7380
  value: a = "on",
7381
7381
  onCheck: c,
7382
7382
  form: l,
7383
- ...u
7384
- } = e, [m, g] = d.useState(null), h = q(t, (v) => g(v)), b = d.useRef(!1), p = m ? l || !!m.closest("form") : !0;
7385
- return /* @__PURE__ */ T(nu, { scope: n, checked: r, disabled: i, children: [
7383
+ ...d
7384
+ } = e, [m, g] = u.useState(null), h = q(t, (v) => g(v)), b = u.useRef(!1), p = m ? l || !!m.closest("form") : !0;
7385
+ return /* @__PURE__ */ T(nd, { scope: n, checked: r, disabled: i, children: [
7386
7386
  /* @__PURE__ */ f(
7387
7387
  U.button,
7388
7388
  {
@@ -7393,7 +7393,7 @@ var Jd = ps, eu = hs, $n = "Radio", [tu, vs] = De($n), [nu, ou] = tu($n), bs = d
7393
7393
  "data-disabled": i ? "" : void 0,
7394
7394
  disabled: i,
7395
7395
  value: a,
7396
- ...u,
7396
+ ...d,
7397
7397
  ref: h,
7398
7398
  onClick: V(e.onClick, (v) => {
7399
7399
  r || c?.(), p && (b.current = v.isPropagationStopped(), b.current || v.stopPropagation());
@@ -7418,9 +7418,9 @@ var Jd = ps, eu = hs, $n = "Radio", [tu, vs] = De($n), [nu, ou] = tu($n), bs = d
7418
7418
  }
7419
7419
  );
7420
7420
  bs.displayName = $n;
7421
- var ys = "RadioIndicator", ws = d.forwardRef(
7421
+ var ys = "RadioIndicator", ws = u.forwardRef(
7422
7422
  (e, t) => {
7423
- const { __scopeRadio: n, forceMount: o, ...r } = e, s = ou(ys, n);
7423
+ const { __scopeRadio: n, forceMount: o, ...r } = e, s = od(ys, n);
7424
7424
  return /* @__PURE__ */ f(Dt, { present: o || s.checked, children: /* @__PURE__ */ f(
7425
7425
  U.span,
7426
7426
  {
@@ -7433,7 +7433,7 @@ var ys = "RadioIndicator", ws = d.forwardRef(
7433
7433
  }
7434
7434
  );
7435
7435
  ws.displayName = ys;
7436
- var ru = "RadioBubbleInput", xs = d.forwardRef(
7436
+ var rd = "RadioBubbleInput", xs = u.forwardRef(
7437
7437
  ({
7438
7438
  __scopeRadio: e,
7439
7439
  control: t,
@@ -7441,17 +7441,17 @@ var ru = "RadioBubbleInput", xs = d.forwardRef(
7441
7441
  bubbles: o = !0,
7442
7442
  ...r
7443
7443
  }, s) => {
7444
- const i = d.useRef(null), a = q(i, s), c = er(n), l = Wo(t);
7445
- return d.useEffect(() => {
7446
- const u = i.current;
7447
- if (!u) return;
7444
+ const i = u.useRef(null), a = q(i, s), c = er(n), l = Wo(t);
7445
+ return u.useEffect(() => {
7446
+ const d = i.current;
7447
+ if (!d) return;
7448
7448
  const m = window.HTMLInputElement.prototype, h = Object.getOwnPropertyDescriptor(
7449
7449
  m,
7450
7450
  "checked"
7451
7451
  ).set;
7452
7452
  if (c !== n && h) {
7453
7453
  const b = new Event("click", { bubbles: o });
7454
- h.call(u, n), u.dispatchEvent(b);
7454
+ h.call(d, n), d.dispatchEvent(b);
7455
7455
  }
7456
7456
  }, [c, n, o]), /* @__PURE__ */ f(
7457
7457
  U.input,
@@ -7474,14 +7474,14 @@ var ru = "RadioBubbleInput", xs = d.forwardRef(
7474
7474
  );
7475
7475
  }
7476
7476
  );
7477
- xs.displayName = ru;
7477
+ xs.displayName = rd;
7478
7478
  function Cs(e) {
7479
7479
  return e ? "checked" : "unchecked";
7480
7480
  }
7481
- var su = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Bt = "RadioGroup", [iu] = De(Bt, [
7481
+ var sd = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Bt = "RadioGroup", [id] = De(Bt, [
7482
7482
  fs,
7483
7483
  vs
7484
- ]), Ss = fs(), Es = vs(), [au, cu] = iu(Bt), Rs = d.forwardRef(
7484
+ ]), Ss = fs(), Es = vs(), [ad, cd] = id(Bt), Rs = u.forwardRef(
7485
7485
  (e, t) => {
7486
7486
  const {
7487
7487
  __scopeRadioGroup: n,
@@ -7492,7 +7492,7 @@ var su = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Bt = "RadioGroup",
7492
7492
  disabled: a = !1,
7493
7493
  orientation: c,
7494
7494
  dir: l,
7495
- loop: u = !0,
7495
+ loop: d = !0,
7496
7496
  onValueChange: m,
7497
7497
  ...g
7498
7498
  } = e, h = Ss(n), b = bn(l), [p, v] = nt({
@@ -7502,7 +7502,7 @@ var su = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Bt = "RadioGroup",
7502
7502
  caller: Bt
7503
7503
  });
7504
7504
  return /* @__PURE__ */ f(
7505
- au,
7505
+ ad,
7506
7506
  {
7507
7507
  scope: n,
7508
7508
  name: o,
@@ -7511,13 +7511,13 @@ var su = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Bt = "RadioGroup",
7511
7511
  value: p,
7512
7512
  onValueChange: v,
7513
7513
  children: /* @__PURE__ */ f(
7514
- Jd,
7514
+ Ju,
7515
7515
  {
7516
7516
  asChild: !0,
7517
7517
  ...h,
7518
7518
  orientation: c,
7519
7519
  dir: b,
7520
- loop: u,
7520
+ loop: d,
7521
7521
  children: /* @__PURE__ */ f(
7522
7522
  U.div,
7523
7523
  {
@@ -7537,18 +7537,18 @@ var su = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Bt = "RadioGroup",
7537
7537
  }
7538
7538
  );
7539
7539
  Rs.displayName = Bt;
7540
- var ks = "RadioGroupItem", Ps = d.forwardRef(
7540
+ var ks = "RadioGroupItem", Ps = u.forwardRef(
7541
7541
  (e, t) => {
7542
- const { __scopeRadioGroup: n, disabled: o, ...r } = e, s = cu(ks, n), i = s.disabled || o, a = Ss(n), c = Es(n), l = d.useRef(null), u = q(t, l), m = s.value === r.value, g = d.useRef(!1);
7543
- return d.useEffect(() => {
7542
+ const { __scopeRadioGroup: n, disabled: o, ...r } = e, s = cd(ks, n), i = s.disabled || o, a = Ss(n), c = Es(n), l = u.useRef(null), d = q(t, l), m = s.value === r.value, g = u.useRef(!1);
7543
+ return u.useEffect(() => {
7544
7544
  const h = (p) => {
7545
- su.includes(p.key) && (g.current = !0);
7545
+ sd.includes(p.key) && (g.current = !0);
7546
7546
  }, b = () => g.current = !1;
7547
7547
  return document.addEventListener("keydown", h), document.addEventListener("keyup", b), () => {
7548
7548
  document.removeEventListener("keydown", h), document.removeEventListener("keyup", b);
7549
7549
  };
7550
7550
  }, []), /* @__PURE__ */ f(
7551
- eu,
7551
+ ed,
7552
7552
  {
7553
7553
  asChild: !0,
7554
7554
  ...a,
@@ -7563,7 +7563,7 @@ var ks = "RadioGroupItem", Ps = d.forwardRef(
7563
7563
  ...c,
7564
7564
  ...r,
7565
7565
  name: s.name,
7566
- ref: u,
7566
+ ref: d,
7567
7567
  onCheck: () => s.onValueChange(r.value),
7568
7568
  onKeyDown: V((h) => {
7569
7569
  h.key === "Enter" && h.preventDefault();
@@ -7578,20 +7578,20 @@ var ks = "RadioGroupItem", Ps = d.forwardRef(
7578
7578
  }
7579
7579
  );
7580
7580
  Ps.displayName = ks;
7581
- var lu = "RadioGroupIndicator", Ns = d.forwardRef(
7581
+ var ld = "RadioGroupIndicator", Ns = u.forwardRef(
7582
7582
  (e, t) => {
7583
7583
  const { __scopeRadioGroup: n, ...o } = e, r = Es(n);
7584
7584
  return /* @__PURE__ */ f(ws, { ...r, ...o, ref: t });
7585
7585
  }
7586
7586
  );
7587
- Ns.displayName = lu;
7588
- var du = Rs, uu = Ps, fu = Ns;
7589
- function pu({
7587
+ Ns.displayName = ld;
7588
+ var ud = Rs, dd = Ps, fd = Ns;
7589
+ function pd({
7590
7590
  className: e,
7591
7591
  ...t
7592
7592
  }) {
7593
7593
  return /* @__PURE__ */ f(
7594
- du,
7594
+ ud,
7595
7595
  {
7596
7596
  "data-slot": "radio-group",
7597
7597
  className: $t("grid gap-3", e),
@@ -7599,12 +7599,12 @@ function pu({
7599
7599
  }
7600
7600
  );
7601
7601
  }
7602
- function mu({
7602
+ function md({
7603
7603
  className: e,
7604
7604
  ...t
7605
7605
  }) {
7606
7606
  return /* @__PURE__ */ f(
7607
- uu,
7607
+ dd,
7608
7608
  {
7609
7609
  "data-slot": "radio-group-item",
7610
7610
  className: $t(
@@ -7613,7 +7613,7 @@ function mu({
7613
7613
  ),
7614
7614
  ...t,
7615
7615
  children: /* @__PURE__ */ f(
7616
- fu,
7616
+ fd,
7617
7617
  {
7618
7618
  "data-slot": "radio-group-indicator",
7619
7619
  className: "relative flex items-center justify-center",
@@ -7628,7 +7628,7 @@ function mu({
7628
7628
  }
7629
7629
  );
7630
7630
  }
7631
- function hu({
7631
+ function hd({
7632
7632
  field: e,
7633
7633
  formValues: t,
7634
7634
  handleChange: n,
@@ -7638,7 +7638,7 @@ function hu({
7638
7638
  const s = t[e.name] || "", i = typeof e.disabled == "function" ? e.disabled(t) : e.disabled, a = e.options || [], c = e.inline || !1;
7639
7639
  return /* @__PURE__ */ T(ge, { children: [
7640
7640
  /* @__PURE__ */ f(
7641
- pu,
7641
+ pd,
7642
7642
  {
7643
7643
  value: s,
7644
7644
  onValueChange: (l) => n(e.name, l),
@@ -7647,12 +7647,12 @@ function hu({
7647
7647
  className: c ? "flex flex-wrap gap-4" : "space-y-3",
7648
7648
  "aria-label": e.label || e.name,
7649
7649
  children: a.map((l) => {
7650
- const u = typeof l == "object" ? l.value : l, m = typeof l == "object" ? l.label : l, g = typeof l == "object" ? l.description : null, h = `${e.name}-${u}`;
7650
+ const d = typeof l == "object" ? l.value : l, m = typeof l == "object" ? l.label : l, g = typeof l == "object" ? l.description : null, h = `${e.name}-${d}`;
7651
7651
  return /* @__PURE__ */ T("div", { className: "relative flex items-start", children: [
7652
7652
  /* @__PURE__ */ f("div", { className: "flex h-6 items-center", children: /* @__PURE__ */ f(
7653
- mu,
7653
+ md,
7654
7654
  {
7655
- value: u,
7655
+ value: d,
7656
7656
  id: h,
7657
7657
  disabled: i,
7658
7658
  className: `
@@ -7679,14 +7679,14 @@ function hu({
7679
7679
  }
7680
7680
  )
7681
7681
  ] })
7682
- ] }, u);
7682
+ ] }, d);
7683
7683
  })
7684
7684
  }
7685
7685
  ),
7686
7686
  r && /* @__PURE__ */ f("p", { className: "mt-1 text-sm text-red-500", children: r })
7687
7687
  ] });
7688
7688
  }
7689
- function gu({ field: e }) {
7689
+ function gd({ field: e }) {
7690
7690
  const t = e.text || e.label || "", n = e.description || "", o = e.size || "lg", r = e.underline || !1, s = e.align || "left", i = e.className || "", a = {
7691
7691
  sm: "text-base font-semibold",
7692
7692
  md: "text-lg font-semibold",
@@ -7705,23 +7705,23 @@ function gu({ field: e }) {
7705
7705
  ${r ? "border-b-2 border-gray-300 pb-2" : ""}
7706
7706
  ${i}
7707
7707
  text-gray-900
7708
- `.trim(), u = `
7708
+ `.trim(), d = `
7709
7709
  mt-1 text-sm text-gray-600
7710
7710
  ${c[s] || c.left}
7711
7711
  `.trim();
7712
7712
  return /* @__PURE__ */ T("div", { className: "my-4", children: [
7713
7713
  /* @__PURE__ */ f("h2", { className: l, children: t }),
7714
- n && /* @__PURE__ */ f("p", { className: u, children: n })
7714
+ n && /* @__PURE__ */ f("p", { className: d, children: n })
7715
7715
  ] });
7716
7716
  }
7717
- function vu({
7717
+ function vd({
7718
7718
  field: e,
7719
7719
  formValues: t,
7720
7720
  handleChange: n,
7721
7721
  handleBlur: o,
7722
7722
  error: r
7723
7723
  }) {
7724
- const [s, i] = ae(!1), a = t[e.name] ?? null, c = (u) => n(e.name, u), l = () => n(e.name, null);
7724
+ const [s, i] = ae(!1), a = t[e.name] ?? null, c = (d) => n(e.name, d), l = () => n(e.name, null);
7725
7725
  return /* @__PURE__ */ T("div", { children: [
7726
7726
  /* @__PURE__ */ T(Ln, { open: s, onOpenChange: i, children: [
7727
7727
  /* @__PURE__ */ f(Dn, { asChild: !0, children: /* @__PURE__ */ T(
@@ -7732,7 +7732,7 @@ function vu({
7732
7732
  "aria-haspopup": "dialog",
7733
7733
  "aria-expanded": s,
7734
7734
  onClick: () => i(!0),
7735
- onKeyDown: (u) => u.key === "Enter" && i(!0),
7735
+ onKeyDown: (d) => d.key === "Enter" && i(!0),
7736
7736
  className: `
7737
7737
  inline-flex items-center justify-between gap-2
7738
7738
  w-full h-9 rounded-md border bg-white
@@ -7807,19 +7807,19 @@ function vu({
7807
7807
  r && /* @__PURE__ */ f("p", { className: "mt-1 text-sm text-red-500", children: r })
7808
7808
  ] });
7809
7809
  }
7810
- function bu({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r }) {
7811
- const [s, i] = ae(!1), [a, c] = ae("12"), [l, u] = ae("00"), [m, g] = ae("PM"), h = t[e.name] || "";
7810
+ function bd({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r }) {
7811
+ const [s, i] = ae(!1), [a, c] = ae("12"), [l, d] = ae("00"), [m, g] = ae("PM"), h = t[e.name] || "";
7812
7812
  Se.useEffect(() => {
7813
7813
  if (h) {
7814
7814
  const S = h.match(/(\d{1,2}):(\d{2})\s*(AM|PM)/i);
7815
- S && (c(S[1].padStart(2, "0")), u(S[2]), g(S[3].toUpperCase()));
7815
+ S && (c(S[1].padStart(2, "0")), d(S[2]), g(S[3].toUpperCase()));
7816
7816
  }
7817
7817
  }, [h]);
7818
7818
  const b = () => {
7819
7819
  const S = `${a}:${l} ${m}`;
7820
7820
  n(e.name, S), i(!1);
7821
7821
  }, p = () => {
7822
- n(e.name, ""), c("12"), u("00"), g("PM");
7822
+ n(e.name, ""), c("12"), d("00"), g("PM");
7823
7823
  }, v = () => {
7824
7824
  const S = parseInt(a);
7825
7825
  c((S % 12 + 1).toString().padStart(2, "0"));
@@ -7828,10 +7828,10 @@ function bu({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
7828
7828
  c((S === 1 ? 12 : S - 1).toString().padStart(2, "0"));
7829
7829
  }, w = () => {
7830
7830
  const S = parseInt(l);
7831
- u(((S + 5) % 60).toString().padStart(2, "0"));
7831
+ d(((S + 5) % 60).toString().padStart(2, "0"));
7832
7832
  }, x = () => {
7833
7833
  const S = parseInt(l);
7834
- u((S === 0 ? 55 : S - 5).toString().padStart(2, "0"));
7834
+ d((S === 0 ? 55 : S - 5).toString().padStart(2, "0"));
7835
7835
  };
7836
7836
  return /* @__PURE__ */ T("div", { children: [
7837
7837
  /* @__PURE__ */ T(Ln, { open: s, onOpenChange: i, children: [
@@ -7971,7 +7971,7 @@ function bu({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
7971
7971
  value: l,
7972
7972
  onChange: (S) => {
7973
7973
  const P = S.target.value.replace(/\D/g, "");
7974
- (P === "" || parseInt(P) >= 0 && parseInt(P) <= 59) && u(P.padStart(2, "0"));
7974
+ (P === "" || parseInt(P) >= 0 && parseInt(P) <= 59) && d(P.padStart(2, "0"));
7975
7975
  },
7976
7976
  className: "w-14 text-center text-2xl font-semibold border-0 focus:outline-none focus:ring-2 focus:ring-blue-500 rounded py-2",
7977
7977
  maxLength: "2"
@@ -8053,13 +8053,13 @@ function bu({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
8053
8053
  r && /* @__PURE__ */ f("p", { className: "mt-1 text-sm text-red-500", children: r })
8054
8054
  ] });
8055
8055
  }
8056
- function yu({ message: e }) {
8056
+ function yd({ message: e }) {
8057
8057
  return /* @__PURE__ */ f("div", { className: "rounded-lg bg-red-50 border border-red-100 p-4 shadow-sm", children: /* @__PURE__ */ T("div", { className: "flex items-center gap-3", children: [
8058
- /* @__PURE__ */ f(dl, { "aria-hidden": "true", className: "size-5 text-red-500 shrink-0" }),
8058
+ /* @__PURE__ */ f(ul, { "aria-hidden": "true", className: "size-5 text-red-500 shrink-0" }),
8059
8059
  /* @__PURE__ */ f("span", { className: "text-sm font-medium text-red-900", children: e })
8060
8060
  ] }) });
8061
8061
  }
8062
- function wu({ message: e }) {
8062
+ function wd({ message: e }) {
8063
8063
  return /* @__PURE__ */ f("div", { className: "rounded-lg bg-amber-50 border border-amber-100 p-4 shadow-sm", children: /* @__PURE__ */ T("div", { className: "flex items-center gap-3", children: [
8064
8064
  /* @__PURE__ */ f(
8065
8065
  il,
@@ -8071,7 +8071,7 @@ function wu({ message: e }) {
8071
8071
  /* @__PURE__ */ f("span", { className: "text-sm font-medium text-amber-900", children: e })
8072
8072
  ] }) });
8073
8073
  }
8074
- function xu({ message: e }) {
8074
+ function xd({ message: e }) {
8075
8075
  return /* @__PURE__ */ f("div", { className: "rounded-lg bg-green-50 border border-green-100 p-4 shadow-sm", children: /* @__PURE__ */ T("div", { className: "flex items-center gap-3", children: [
8076
8076
  /* @__PURE__ */ f(
8077
8077
  cl,
@@ -8083,30 +8083,30 @@ function xu({ message: e }) {
8083
8083
  /* @__PURE__ */ f("span", { className: "text-sm font-medium text-green-900", children: e })
8084
8084
  ] }) });
8085
8085
  }
8086
- function Cu({ message: e }) {
8086
+ function Cd({ message: e }) {
8087
8087
  return /* @__PURE__ */ f("div", { className: "rounded-lg bg-blue-50 border border-blue-100 p-4 shadow-sm", children: /* @__PURE__ */ T("div", { className: "flex items-center gap-3", children: [
8088
8088
  /* @__PURE__ */ f(ml, { "aria-hidden": "true", className: "size-5 text-blue-600 shrink-0" }),
8089
8089
  /* @__PURE__ */ f("span", { className: "text-sm font-medium text-blue-900", children: e })
8090
8090
  ] }) });
8091
8091
  }
8092
- function Su({ field: e }) {
8092
+ function Sd({ field: e }) {
8093
8093
  const { variant: t = "info", message: n, content: o } = e, r = n || o || "";
8094
8094
  switch (t.toLowerCase()) {
8095
8095
  case "error":
8096
8096
  case "danger":
8097
- return /* @__PURE__ */ f(yu, { message: r });
8097
+ return /* @__PURE__ */ f(yd, { message: r });
8098
8098
  case "success":
8099
- return /* @__PURE__ */ f(xu, { message: r });
8099
+ return /* @__PURE__ */ f(xd, { message: r });
8100
8100
  case "warning":
8101
8101
  case "warn":
8102
- return /* @__PURE__ */ f(wu, { message: r });
8102
+ return /* @__PURE__ */ f(wd, { message: r });
8103
8103
  case "info":
8104
8104
  case "information":
8105
8105
  default:
8106
- return /* @__PURE__ */ f(Cu, { message: r });
8106
+ return /* @__PURE__ */ f(Cd, { message: r });
8107
8107
  }
8108
8108
  }
8109
- const Mu = ({
8109
+ const Md = ({
8110
8110
  apiClient: e,
8111
8111
  api_URL: t,
8112
8112
  footerMode: n = "normal",
@@ -8117,7 +8117,7 @@ const Mu = ({
8117
8117
  onFieldsChange: a = () => {
8118
8118
  }
8119
8119
  }) => {
8120
- const [c, l] = ae({ ...i }), [u, m] = ae({}), [g, h] = ae({}), [b, p] = ae({}), v = [
8120
+ const [c, l] = ae({ ...i }), [d, m] = ae({}), [g, h] = ae({}), [b, p] = ae({}), v = [
8121
8121
  "hidden",
8122
8122
  "html",
8123
8123
  "linebreak",
@@ -8127,22 +8127,22 @@ const Mu = ({
8127
8127
  () => ({
8128
8128
  file: wo,
8129
8129
  multifile: wo,
8130
- dateRange: Rd,
8131
- date: vu,
8132
- dayTimePicker: Pd,
8133
- time: bu,
8130
+ dateRange: Ru,
8131
+ date: vd,
8132
+ dayTimePicker: Pu,
8133
+ time: bd,
8134
8134
  hidden: Ls,
8135
8135
  multiselect: Ds,
8136
8136
  select: hl,
8137
8137
  email: gl,
8138
8138
  litertext: vl,
8139
8139
  checkbox: bl,
8140
- radiogroup: hu,
8140
+ radiogroup: hd,
8141
8141
  input: mo,
8142
- textarea: kd,
8143
- header: gu,
8144
- alert: Su,
8145
- linebreak: Vd
8142
+ textarea: ku,
8143
+ header: gd,
8144
+ alert: Sd,
8145
+ linebreak: Vu
8146
8146
  }),
8147
8147
  []
8148
8148
  ), w = async (E, A = null) => {
@@ -8153,17 +8153,17 @@ const Mu = ({
8153
8153
  }
8154
8154
  try {
8155
8155
  const O = await e(`/${E.optionsUrl}`);
8156
- let M = [];
8157
- E.type === "select" ? M = [
8156
+ let L = [];
8157
+ E.type === "select" ? L = [
8158
8158
  { value: "", label: `Select ${E.label.toLowerCase()}` },
8159
8159
  ...O.data
8160
- ] : M = [
8160
+ ] : L = [
8161
8161
  ...O.data.map((B) => ({
8162
8162
  value: B.value,
8163
8163
  label: B.label
8164
8164
  }))
8165
8165
  ], o.fields.forEach((B) => {
8166
- B.name === E.name && (B.options = M);
8166
+ B.name === E.name && (B.options = L);
8167
8167
  });
8168
8168
  } catch (O) {
8169
8169
  console.error(`Failed to load options for ${E.name}:`, O);
@@ -8183,16 +8183,16 @@ const Mu = ({
8183
8183
  }
8184
8184
  }, [o]);
8185
8185
  const x = (E, A, O) => {
8186
- if (E.disabled && E.disabled(O))
8186
+ if (typeof E.disabled == "function" && E.disabled(O) || E.disabled === !0)
8187
8187
  return null;
8188
- const M = typeof A == "object" && A !== null && !Array.isArray(A) && !(A instanceof Date), B = A == null || typeof A == "string" && A.trim() === "" || Array.isArray(A) && A.length === 0 || E.type === "checkbox" && A === !1 || M && Object.keys(A).length === 0;
8188
+ const L = typeof A == "object" && A !== null && !Array.isArray(A) && !(A instanceof Date), B = A == null || typeof A == "string" && A.trim() === "" || Array.isArray(A) && A.length === 0 || E.type === "checkbox" && A === !1 || L && Object.keys(A).length === 0;
8189
8189
  if (E.required && B)
8190
8190
  return `${E.label} is required`;
8191
8191
  if (B && !E.required)
8192
8192
  return null;
8193
8193
  if (E.validate) {
8194
- const F = E.validate(A, O);
8195
- if (F) return F;
8194
+ const D = E.validate(A, O);
8195
+ if (D) return D;
8196
8196
  }
8197
8197
  if (E.type === "email" && A && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(A))
8198
8198
  return "Please enter a valid email address";
@@ -8204,27 +8204,29 @@ const Mu = ({
8204
8204
  }
8205
8205
  return E.type === "date" && A && !Bn(A).isValid() ? `${E.label} must be a valid date` : E.maxLength && A && A.length > E.maxLength ? `${E.label} must not exceed ${E.maxLength} characters` : null;
8206
8206
  }, S = (E, A) => {
8207
- const O = o.fields.find((F) => F.name === E);
8207
+ const O = o.fields.find((D) => D.name === E);
8208
8208
  if (!O) return;
8209
- const M = { ...c };
8210
- O.type === "multiselect" ? M[E] = Array.isArray(A) ? A : Array.from(A.target.selectedOptions).map(
8211
- (F) => F.value
8212
- ) : O.type === "dateRange" ? M[E] = [
8209
+ const L = { ...c };
8210
+ O.type === "multiselect" ? L[E] = Array.isArray(A) ? A : Array.from(A.target.selectedOptions).map(
8211
+ (D) => D.value
8212
+ ) : O.type === "dateRange" ? L[E] = [
8213
8213
  {
8214
8214
  startDate: A[0].from,
8215
8215
  endDate: A[0].to,
8216
8216
  key: "selection"
8217
8217
  }
8218
- ] : O.type === "dayTimePicker" ? M[E] = A ? Bn(A).format("YYYY-MM-DD HH:mm:ss") : "" : M[E] = A, O.type === "select" && o.fields.forEach((F) => {
8219
- F.showIf && !F.showIf(M) && (M[F.name] = F.type === "multiselect" ? [] : "");
8220
- }), o.fields.forEach((F) => {
8221
- F.disabled && F.disabled(M) && (M[F.name] = F.type === "multiselect" ? [] : "");
8222
- }), l(M);
8218
+ ] : O.type === "dayTimePicker" ? L[E] = A ? Bn(A).format("YYYY-MM-DD HH:mm:ss") : "" : L[E] = A, O.type === "select" && o.fields.forEach((D) => {
8219
+ D.showIf && !D.showIf(L) && (L[D.name] = D.type === "multiselect" ? [] : "");
8220
+ }), o.fields.forEach((D) => {
8221
+ typeof D.disabled == "function" && D.disabled(L) && (L[D.name] = D.type === "multiselect" ? [] : "");
8222
+ }), l(L);
8223
8223
  const B = {};
8224
- o.fields.forEach((F) => {
8225
- if (!F.showIf || F.showIf(M)) {
8226
- const $ = x(F, M[F.name], M);
8227
- $ && (B[F.name] = $);
8224
+ o.fields.forEach((D) => {
8225
+ const $ = typeof D.disabled == "function" ? D.disabled(c) : !!D.disabled;
8226
+ if ((!D.showIf || D.showIf(c)) && // 2. Use the safely calculated state
8227
+ !$) {
8228
+ const z = x(D, c[D.name], c);
8229
+ z && (B[D.name] = z);
8228
8230
  }
8229
8231
  }), m(B);
8230
8232
  }, P = (E) => {
@@ -8232,14 +8234,14 @@ const Mu = ({
8232
8234
  }, k = (E) => {
8233
8235
  E.preventDefault();
8234
8236
  const A = {};
8235
- o.fields.forEach((M) => {
8236
- A[M.name] = !0;
8237
+ o.fields.forEach((L) => {
8238
+ A[L.name] = !0;
8237
8239
  }), h(A);
8238
8240
  const O = {};
8239
- o.fields.forEach((M) => {
8240
- if ((!M.showIf || M.showIf(c)) && (!M.disabled || !M.disabled(c))) {
8241
- const B = x(M, c[M.name], c);
8242
- B && (O[M.name] = B);
8241
+ o.fields.forEach((L) => {
8242
+ if ((!L.showIf || L.showIf(c)) && (!L.disabled || !L.disabled(c))) {
8243
+ const B = x(L, c[L.name], c);
8244
+ B && (O[L.name] = B);
8243
8245
  }
8244
8246
  }), m(O), Object.keys(O).length === 0 ? r(c) : bt.error("Please correct the errors in the form");
8245
8247
  };
@@ -8260,7 +8262,7 @@ const Mu = ({
8260
8262
  function C(E, A, O) {
8261
8263
  if (v.includes(A.type))
8262
8264
  return /* @__PURE__ */ f("div", { className: A.fieldClass || "col-span-full", children: E });
8263
- const M = A.containerStyle, B = A.color || "blue", F = M === "card" ? `rounded-lg border text-card-foreground shadow-sm p-4 ${A.containerClassName || R[B] || R.blue}` : "", $ = /* @__PURE__ */ T(ge, { children: [
8265
+ const L = A.containerStyle, B = A.color || "blue", D = L === "card" ? `rounded-lg border text-card-foreground shadow-sm p-4 ${A.containerClassName || R[B] || R.blue}` : "", $ = /* @__PURE__ */ T(ge, { children: [
8264
8266
  A.label && /* @__PURE__ */ T(
8265
8267
  "label",
8266
8268
  {
@@ -8274,13 +8276,13 @@ const Mu = ({
8274
8276
  ),
8275
8277
  /* @__PURE__ */ f("div", { children: E })
8276
8278
  ] });
8277
- return /* @__PURE__ */ f("div", { className: `mb-4 ${A.fieldClass || "col-span-8"}`, children: M === "card" ? /* @__PURE__ */ f("div", { className: F, children: $ }) : $ });
8279
+ return /* @__PURE__ */ f("div", { className: `mb-4 ${A.fieldClass || "col-span-8"}`, children: L === "card" ? /* @__PURE__ */ f("div", { className: D, children: $ }) : $ });
8278
8280
  }
8279
- const D = (E) => {
8281
+ const F = (E) => {
8280
8282
  if (E.showIf && !E.showIf(c)) return null;
8281
8283
  const A = y[E.type] || mo;
8282
8284
  c[E.name] === void 0 && (c[E.name] = E.value !== void 0 ? E.value : E.type === "multiselect" ? [] : "");
8283
- const O = g[E.name] && u[E.name] ? u[E.name] : null;
8285
+ const O = g[E.name] && d[E.name] ? d[E.name] : null;
8284
8286
  return C(
8285
8287
  /* @__PURE__ */ f(
8286
8288
  A,
@@ -8304,7 +8306,7 @@ const Mu = ({
8304
8306
  onSubmit: k,
8305
8307
  className: "grid grid-cols-12 gap-x-4 mx-auto w-full ",
8306
8308
  children: [
8307
- o ? o.fields.map((E) => /* @__PURE__ */ f("div", { className: "col-span-full", children: D(E) }, E.name)) : /* @__PURE__ */ f("div", { children: "Loading..." }),
8309
+ o ? o.fields.map((E) => /* @__PURE__ */ f("div", { className: "col-span-full", children: F(E) }, E.name)) : /* @__PURE__ */ f("div", { children: "Loading..." }),
8308
8310
  /* @__PURE__ */ f(
8309
8311
  "div",
8310
8312
  {
@@ -8317,6 +8319,6 @@ const Mu = ({
8317
8319
  );
8318
8320
  };
8319
8321
  export {
8320
- Mu as DynamicForm,
8321
- Mu as default
8322
+ Md as DynamicForm,
8323
+ Md as default
8322
8324
  };