brd-ui-kit 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
1
  import { jsx as x, jsxs as Pe, Fragment as Jn } from "react/jsx-runtime";
2
2
  import * as c from "react";
3
- import St, { forwardRef as uc, createElement as er, useLayoutEffect as Zf, useMemo as Qf, useState as Jf } from "react";
3
+ import St, { forwardRef as uc, createElement as er, useLayoutEffect as Qf, useMemo as Jf, useState as dc } from "react";
4
4
  import * as on from "react-dom";
5
5
  import ep from "react-dom";
6
- function dc(e) {
6
+ function fc(e) {
7
7
  var t, n, r = "";
8
8
  if (typeof e == "string" || typeof e == "number") r += e;
9
9
  else if (typeof e == "object") if (Array.isArray(e)) {
10
10
  var o = e.length;
11
- for (t = 0; t < o; t++) e[t] && (n = dc(e[t])) && (r && (r += " "), r += n);
11
+ for (t = 0; t < o; t++) e[t] && (n = fc(e[t])) && (r && (r += " "), r += n);
12
12
  } else for (n in e) e[n] && (r && (r += " "), r += n);
13
13
  return r;
14
14
  }
15
- function fc() {
16
- for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = dc(e)) && (r && (r += " "), r += t);
15
+ function pc() {
16
+ for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = fc(e)) && (r && (r += " "), r += t);
17
17
  return r;
18
18
  }
19
19
  const tp = (e, t) => {
@@ -26,7 +26,7 @@ const tp = (e, t) => {
26
26
  }, np = (e, t) => ({
27
27
  classGroupId: e,
28
28
  validator: t
29
- }), pc = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
29
+ }), mc = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
30
30
  nextPart: e,
31
31
  validators: t,
32
32
  classGroupId: n
@@ -40,7 +40,7 @@ const tp = (e, t) => {
40
40
  if (i.startsWith("[") && i.endsWith("]"))
41
41
  return sp(i);
42
42
  const a = i.split(Hr), l = a[0] === "" && a.length > 1 ? 1 : 0;
43
- return mc(a, l, t);
43
+ return hc(a, l, t);
44
44
  },
45
45
  getConflictingClassGroupIds: (i, a) => {
46
46
  if (a) {
@@ -50,12 +50,12 @@ const tp = (e, t) => {
50
50
  return n[i] || Ki;
51
51
  }
52
52
  };
53
- }, mc = (e, t, n) => {
53
+ }, hc = (e, t, n) => {
54
54
  if (e.length - t === 0)
55
55
  return n.classGroupId;
56
56
  const o = e[t], s = n.nextPart.get(o);
57
57
  if (s) {
58
- const u = mc(e, t + 1, s);
58
+ const u = hc(e, t + 1, s);
59
59
  if (u) return u;
60
60
  }
61
61
  const i = n.validators;
@@ -77,7 +77,7 @@ const tp = (e, t) => {
77
77
  } = e;
78
78
  return ap(n, t);
79
79
  }, ap = (e, t) => {
80
- const n = pc();
80
+ const n = mc();
81
81
  for (const r in e) {
82
82
  const o = e[r];
83
83
  $s(o, n, r, t);
@@ -100,7 +100,7 @@ const tp = (e, t) => {
100
100
  }
101
101
  dp(e, t, n, r);
102
102
  }, lp = (e, t, n) => {
103
- const r = e === "" ? t : hc(t, e);
103
+ const r = e === "" ? t : gc(t, e);
104
104
  r.classGroupId = n;
105
105
  }, up = (e, t, n, r) => {
106
106
  if (fp(e)) {
@@ -112,15 +112,15 @@ const tp = (e, t) => {
112
112
  const o = Object.entries(e), s = o.length;
113
113
  for (let i = 0; i < s; i++) {
114
114
  const [a, l] = o[i];
115
- $s(l, hc(t, a), n, r);
115
+ $s(l, gc(t, a), n, r);
116
116
  }
117
- }, hc = (e, t) => {
117
+ }, gc = (e, t) => {
118
118
  let n = e;
119
119
  const r = t.split(Hr), o = r.length;
120
120
  for (let s = 0; s < o; s++) {
121
121
  const i = r[s];
122
122
  let a = n.nextPart.get(i);
123
- a || (a = pc(), n.nextPart.set(i, a)), n = a;
123
+ a || (a = mc(), n.nextPart.set(i, a)), n = a;
124
124
  }
125
125
  return n;
126
126
  }, fp = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, pp = (e) => {
@@ -265,14 +265,14 @@ const tp = (e, t) => {
265
265
  }, xp = (...e) => {
266
266
  let t = 0, n, r, o = "";
267
267
  for (; t < e.length; )
268
- (n = e[t++]) && (r = gc(n)) && (o && (o += " "), o += r);
268
+ (n = e[t++]) && (r = bc(n)) && (o && (o += " "), o += r);
269
269
  return o;
270
- }, gc = (e) => {
270
+ }, bc = (e) => {
271
271
  if (typeof e == "string")
272
272
  return e;
273
273
  let t, n = "";
274
274
  for (let r = 0; r < e.length; r++)
275
- e[r] && (t = gc(e[r])) && (n && (n += " "), n += t);
275
+ e[r] && (t = bc(e[r])) && (n && (n += " "), n += t);
276
276
  return n;
277
277
  }, Xi = (e, ...t) => {
278
278
  let n, r, o, s;
@@ -290,18 +290,18 @@ const tp = (e, t) => {
290
290
  }, wp = [], We = (e) => {
291
291
  const t = (n) => n[e] || wp;
292
292
  return t.isThemeGetter = !0, t;
293
- }, bc = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, vc = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Cp = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Ep = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Rp = /\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$/, Sp = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, kp = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ip = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Kt = (e) => Cp.test(e), me = (e) => !!e && !Number.isNaN(Number(e)), qt = (e) => !!e && Number.isInteger(Number(e)), Ko = (e) => e.endsWith("%") && me(e.slice(0, -1)), Lt = (e) => Ep.test(e), yc = () => !0, Np = (e) => (
293
+ }, vc = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, yc = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Cp = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Ep = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Rp = /\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$/, Sp = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, kp = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ip = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Kt = (e) => Cp.test(e), me = (e) => !!e && !Number.isNaN(Number(e)), qt = (e) => !!e && Number.isInteger(Number(e)), Ko = (e) => e.endsWith("%") && me(e.slice(0, -1)), Lt = (e) => Ep.test(e), xc = () => !0, Np = (e) => (
294
294
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
295
295
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
296
296
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
297
297
  Rp.test(e) && !Sp.test(e)
298
- ), zs = () => !1, Op = (e) => kp.test(e), Pp = (e) => Ip.test(e), Tp = (e) => !J(e) && !ee(e), Ap = (e) => sn(e, Cc, zs), J = (e) => bc.test(e), pn = (e) => sn(e, Ec, Np), Zi = (e) => sn(e, zp, me), Mp = (e) => sn(e, Sc, yc), _p = (e) => sn(e, Rc, zs), Qi = (e) => sn(e, xc, zs), Dp = (e) => sn(e, wc, Pp), br = (e) => sn(e, kc, Op), ee = (e) => vc.test(e), Gn = (e) => wn(e, Ec), Lp = (e) => wn(e, Rc), Ji = (e) => wn(e, xc), Vp = (e) => wn(e, Cc), Fp = (e) => wn(e, wc), vr = (e) => wn(e, kc, !0), $p = (e) => wn(e, Sc, !0), sn = (e, t, n) => {
299
- const r = bc.exec(e);
298
+ ), zs = () => !1, Op = (e) => kp.test(e), Pp = (e) => Ip.test(e), Tp = (e) => !J(e) && !ee(e), Ap = (e) => sn(e, Ec, zs), J = (e) => vc.test(e), pn = (e) => sn(e, Rc, Np), Zi = (e) => sn(e, zp, me), Mp = (e) => sn(e, kc, xc), _p = (e) => sn(e, Sc, zs), Qi = (e) => sn(e, wc, zs), Dp = (e) => sn(e, Cc, Pp), br = (e) => sn(e, Ic, Op), ee = (e) => yc.test(e), Gn = (e) => wn(e, Rc), Lp = (e) => wn(e, Sc), Ji = (e) => wn(e, wc), Vp = (e) => wn(e, Ec), Fp = (e) => wn(e, Cc), vr = (e) => wn(e, Ic, !0), $p = (e) => wn(e, kc, !0), sn = (e, t, n) => {
299
+ const r = vc.exec(e);
300
300
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
301
301
  }, wn = (e, t, n = !1) => {
302
- const r = vc.exec(e);
302
+ const r = yc.exec(e);
303
303
  return r ? r[1] ? t(r[1]) : n : !1;
304
- }, xc = (e) => e === "position" || e === "percentage", wc = (e) => e === "image" || e === "url", Cc = (e) => e === "length" || e === "size" || e === "bg-size", Ec = (e) => e === "length", zp = (e) => e === "number", Rc = (e) => e === "family-name", Sc = (e) => e === "number" || e === "weight", kc = (e) => e === "shadow", ea = () => {
304
+ }, wc = (e) => e === "position" || e === "percentage", Cc = (e) => e === "image" || e === "url", Ec = (e) => e === "length" || e === "size" || e === "bg-size", Rc = (e) => e === "length", zp = (e) => e === "number", Sc = (e) => e === "family-name", kc = (e) => e === "number" || e === "weight", Ic = (e) => e === "shadow", ea = () => {
305
305
  const e = We("color"), t = We("font"), n = We("text"), r = We("font-weight"), o = We("tracking"), s = We("leading"), i = We("breakpoint"), a = We("container"), l = We("spacing"), u = We("radius"), d = We("shadow"), f = We("inset-shadow"), h = We("text-shadow"), p = We("drop-shadow"), b = We("blur"), g = We("perspective"), m = We("aspect"), y = We("ease"), v = We("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], w = () => [
306
306
  "center",
307
307
  "top",
@@ -351,7 +351,7 @@ const tp = (e, t) => {
351
351
  aspect: ["video"],
352
352
  blur: [Lt],
353
353
  breakpoint: [Lt],
354
- color: [yc],
354
+ color: [xc],
355
355
  container: [Lt],
356
356
  "drop-shadow": [Lt],
357
357
  ease: ["in", "out", "in-out"],
@@ -2936,7 +2936,7 @@ const tp = (e, t) => {
2936
2936
  experimentalParseClassName: r,
2937
2937
  extend: o = {},
2938
2938
  override: s = {}
2939
- }) => (Un(e, "cacheSize", t), Un(e, "prefix", n), Un(e, "experimentalParseClassName", r), yr(e.theme, s.theme), yr(e.classGroups, s.classGroups), yr(e.conflictingClassGroups, s.conflictingClassGroups), yr(e.conflictingClassGroupModifiers, s.conflictingClassGroupModifiers), Un(e, "orderSensitiveModifiers", s.orderSensitiveModifiers), xr(e.theme, o.theme), xr(e.classGroups, o.classGroups), xr(e.conflictingClassGroups, o.conflictingClassGroups), xr(e.conflictingClassGroupModifiers, o.conflictingClassGroupModifiers), Ic(e, o, "orderSensitiveModifiers"), e), Un = (e, t, n) => {
2939
+ }) => (Un(e, "cacheSize", t), Un(e, "prefix", n), Un(e, "experimentalParseClassName", r), yr(e.theme, s.theme), yr(e.classGroups, s.classGroups), yr(e.conflictingClassGroups, s.conflictingClassGroups), yr(e.conflictingClassGroupModifiers, s.conflictingClassGroupModifiers), Un(e, "orderSensitiveModifiers", s.orderSensitiveModifiers), xr(e.theme, o.theme), xr(e.classGroups, o.classGroups), xr(e.conflictingClassGroups, o.conflictingClassGroups), xr(e.conflictingClassGroupModifiers, o.conflictingClassGroupModifiers), Nc(e, o, "orderSensitiveModifiers"), e), Un = (e, t, n) => {
2940
2940
  n !== void 0 && (e[t] = n);
2941
2941
  }, yr = (e, t) => {
2942
2942
  if (t)
@@ -2945,8 +2945,8 @@ const tp = (e, t) => {
2945
2945
  }, xr = (e, t) => {
2946
2946
  if (t)
2947
2947
  for (const n in t)
2948
- Ic(e, t, n);
2949
- }, Ic = (e, t, n) => {
2948
+ Nc(e, t, n);
2949
+ }, Nc = (e, t, n) => {
2950
2950
  const r = t[n];
2951
2951
  r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
2952
2952
  }, Gp = (e, ...t) => typeof e == "function" ? Xi(ea, e, ...t) : Xi(() => Bp(ea(), e), ...t), Hp = Gp({
@@ -2957,9 +2957,9 @@ const tp = (e, t) => {
2957
2957
  }
2958
2958
  });
2959
2959
  function B(...e) {
2960
- return Hp(fc(e));
2960
+ return Hp(pc(e));
2961
2961
  }
2962
- const ta = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, na = fc, Ve = (e, t) => (n) => {
2962
+ const ta = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, na = pc, Ve = (e, t) => (n) => {
2963
2963
  var r;
2964
2964
  if (t?.variants == null) return na(e, n?.class, n?.className);
2965
2965
  const { variants: o, defaultVariants: s } = t, i = Object.keys(o).map((u) => {
@@ -3002,7 +3002,7 @@ const ta = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, na = fc, V
3002
3002
  "body-sm-medium",
3003
3003
  "body-xs-regular",
3004
3004
  "body-xs-medium"
3005
- ], Nc = Ve("tracking-normal", {
3005
+ ], Oc = Ve("tracking-normal", {
3006
3006
  variants: {
3007
3007
  variant: {
3008
3008
  h1: "text-h1 font-medium",
@@ -3023,7 +3023,7 @@ const ta = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, na = fc, V
3023
3023
  defaultVariants: {
3024
3024
  variant: "body-md-regular"
3025
3025
  }
3026
- }), Qe = (e = "body-md-regular") => Nc({
3026
+ }), Qe = (e = "body-md-regular") => Oc({
3027
3027
  variant: e
3028
3028
  }), Wp = {
3029
3029
  h1: "h1",
@@ -3045,7 +3045,7 @@ const ta = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, na = fc, V
3045
3045
  s,
3046
3046
  {
3047
3047
  className: B(
3048
- Nc({
3048
+ Oc({
3049
3049
  variant: o
3050
3050
  }),
3051
3051
  t
@@ -3163,14 +3163,14 @@ var Kp = /* @__PURE__ */ Symbol.for("react.lazy"), Wr = c[" use ".trim().toStrin
3163
3163
  function qp(e) {
3164
3164
  return typeof e == "object" && e !== null && "then" in e;
3165
3165
  }
3166
- function Oc(e) {
3166
+ function Pc(e) {
3167
3167
  return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Kp && "_payload" in e && qp(e._payload);
3168
3168
  }
3169
3169
  // @__NO_SIDE_EFFECTS__
3170
- function Pc(e) {
3170
+ function Tc(e) {
3171
3171
  const t = /* @__PURE__ */ Xp(e), n = c.forwardRef((r, o) => {
3172
3172
  let { children: s, ...i } = r;
3173
- Oc(s) && typeof Wr == "function" && (s = Wr(s._payload));
3173
+ Pc(s) && typeof Wr == "function" && (s = Wr(s._payload));
3174
3174
  const a = c.Children.toArray(s), l = a.find(Qp);
3175
3175
  if (l) {
3176
3176
  const u = l.props.children, d = a.map((f) => f === l ? c.Children.count(u) > 1 ? c.Children.only(null) : c.isValidElement(u) ? u.props.children : null : f);
@@ -3180,12 +3180,12 @@ function Pc(e) {
3180
3180
  });
3181
3181
  return n.displayName = `${e}.Slot`, n;
3182
3182
  }
3183
- var Yp = /* @__PURE__ */ Pc("Slot");
3183
+ var Yp = /* @__PURE__ */ Tc("Slot");
3184
3184
  // @__NO_SIDE_EFFECTS__
3185
3185
  function Xp(e) {
3186
3186
  const t = c.forwardRef((n, r) => {
3187
3187
  let { children: o, ...s } = n;
3188
- if (Oc(o) && typeof Wr == "function" && (o = Wr(o._payload)), c.isValidElement(o)) {
3188
+ if (Pc(o) && typeof Wr == "function" && (o = Wr(o._payload)), c.isValidElement(o)) {
3189
3189
  const i = em(o), a = Jp(s, o.props);
3190
3190
  return o.type !== c.Fragment && (a.ref = r ? Bs(r, i) : i), c.cloneElement(o, a);
3191
3191
  }
@@ -3212,7 +3212,7 @@ function em(e) {
3212
3212
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
3213
3213
  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);
3214
3214
  }
3215
- const Tc = Ve(
3215
+ const Ac = Ve(
3216
3216
  [
3217
3217
  "inline-flex cursor-pointer items-center justify-center rounded-xl font-medium tracking-normal whitespace-nowrap transition-colors",
3218
3218
  "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:origin-center",
@@ -3264,7 +3264,7 @@ const Tc = Ve(
3264
3264
  }) => /* @__PURE__ */ x(
3265
3265
  r ? Yp : "button",
3266
3266
  {
3267
- className: B(Tc({ variant: t, size: n, className: e })),
3267
+ className: B(Ac({ variant: t, size: n, className: e })),
3268
3268
  ref: o,
3269
3269
  ...s
3270
3270
  }
@@ -3623,14 +3623,14 @@ function wm(e) {
3623
3623
  });
3624
3624
  return t.displayName = `${e}.SlotClone`, t;
3625
3625
  }
3626
- var Ac = /* @__PURE__ */ Symbol("radix.slottable");
3626
+ var Mc = /* @__PURE__ */ Symbol("radix.slottable");
3627
3627
  // @__NO_SIDE_EFFECTS__
3628
3628
  function Cm(e) {
3629
3629
  const t = ({ children: n }) => /* @__PURE__ */ x(Jn, { children: n });
3630
- return t.displayName = `${e}.Slottable`, t.__radixId = Ac, t;
3630
+ return t.displayName = `${e}.Slottable`, t.__radixId = Mc, t;
3631
3631
  }
3632
3632
  function Em(e) {
3633
- return c.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ac;
3633
+ return c.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Mc;
3634
3634
  }
3635
3635
  function Rm(e, t) {
3636
3636
  const n = { ...t };
@@ -3723,7 +3723,7 @@ function Pm(e) {
3723
3723
  }
3724
3724
  );
3725
3725
  }
3726
- var Mc = "CheckboxTrigger", _c = c.forwardRef(
3726
+ var _c = "CheckboxTrigger", Dc = c.forwardRef(
3727
3727
  ({ __scopeCheckbox: e, onKeyDown: t, onClick: n, ...r }, o) => {
3728
3728
  const {
3729
3729
  control: s,
@@ -3736,7 +3736,7 @@ var Mc = "CheckboxTrigger", _c = c.forwardRef(
3736
3736
  hasConsumerStoppedPropagationRef: h,
3737
3737
  isFormControl: p,
3738
3738
  bubbleInput: b
3739
- } = Ws(Mc, e), g = Be(o, d), m = c.useRef(l);
3739
+ } = Ws(_c, e), g = Be(o, d), m = c.useRef(l);
3740
3740
  return c.useEffect(() => {
3741
3741
  const y = s?.form;
3742
3742
  if (y) {
@@ -3750,7 +3750,7 @@ var Mc = "CheckboxTrigger", _c = c.forwardRef(
3750
3750
  role: "checkbox",
3751
3751
  "aria-checked": Qt(l) ? "mixed" : l,
3752
3752
  "aria-required": u,
3753
- "data-state": $c(l),
3753
+ "data-state": zc(l),
3754
3754
  "data-disabled": a ? "" : void 0,
3755
3755
  disabled: a,
3756
3756
  value: i,
@@ -3766,7 +3766,7 @@ var Mc = "CheckboxTrigger", _c = c.forwardRef(
3766
3766
  );
3767
3767
  }
3768
3768
  );
3769
- _c.displayName = Mc;
3769
+ Dc.displayName = _c;
3770
3770
  var js = c.forwardRef(
3771
3771
  (e, t) => {
3772
3772
  const {
@@ -3795,7 +3795,7 @@ var js = c.forwardRef(
3795
3795
  value: l,
3796
3796
  internal_do_not_use_render: ({ isFormControl: h }) => /* @__PURE__ */ Pe(Jn, { children: [
3797
3797
  /* @__PURE__ */ x(
3798
- _c,
3798
+ Dc,
3799
3799
  {
3800
3800
  ...f,
3801
3801
  ref: t,
@@ -3803,7 +3803,7 @@ var js = c.forwardRef(
3803
3803
  }
3804
3804
  ),
3805
3805
  h && /* @__PURE__ */ x(
3806
- Fc,
3806
+ $c,
3807
3807
  {
3808
3808
  __scopeCheckbox: n
3809
3809
  }
@@ -3814,9 +3814,9 @@ var js = c.forwardRef(
3814
3814
  }
3815
3815
  );
3816
3816
  js.displayName = co;
3817
- var Dc = "CheckboxIndicator", Lc = c.forwardRef(
3817
+ var Lc = "CheckboxIndicator", Vc = c.forwardRef(
3818
3818
  (e, t) => {
3819
- const { __scopeCheckbox: n, forceMount: r, ...o } = e, s = Ws(Dc, n);
3819
+ const { __scopeCheckbox: n, forceMount: r, ...o } = e, s = Ws(Lc, n);
3820
3820
  return /* @__PURE__ */ x(
3821
3821
  Bt,
3822
3822
  {
@@ -3824,7 +3824,7 @@ var Dc = "CheckboxIndicator", Lc = c.forwardRef(
3824
3824
  children: /* @__PURE__ */ x(
3825
3825
  Oe.span,
3826
3826
  {
3827
- "data-state": $c(s.checked),
3827
+ "data-state": zc(s.checked),
3828
3828
  "data-disabled": s.disabled ? "" : void 0,
3829
3829
  ...o,
3830
3830
  ref: t,
@@ -3835,8 +3835,8 @@ var Dc = "CheckboxIndicator", Lc = c.forwardRef(
3835
3835
  );
3836
3836
  }
3837
3837
  );
3838
- Lc.displayName = Dc;
3839
- var Vc = "CheckboxBubbleInput", Fc = c.forwardRef(
3838
+ Vc.displayName = Lc;
3839
+ var Fc = "CheckboxBubbleInput", $c = c.forwardRef(
3840
3840
  ({ __scopeCheckbox: e, ...t }, n) => {
3841
3841
  const {
3842
3842
  control: r,
@@ -3850,7 +3850,7 @@ var Vc = "CheckboxBubbleInput", Fc = c.forwardRef(
3850
3850
  form: f,
3851
3851
  bubbleInput: h,
3852
3852
  setBubbleInput: p
3853
- } = Ws(Vc, e), b = Be(n, p), g = Hs(s), m = ao(r);
3853
+ } = Ws(Fc, e), b = Be(n, p), g = Hs(s), m = ao(r);
3854
3854
  c.useEffect(() => {
3855
3855
  const v = h;
3856
3856
  if (!v) return;
@@ -3894,17 +3894,17 @@ var Vc = "CheckboxBubbleInput", Fc = c.forwardRef(
3894
3894
  );
3895
3895
  }
3896
3896
  );
3897
- Fc.displayName = Vc;
3897
+ $c.displayName = Fc;
3898
3898
  function Tm(e) {
3899
3899
  return typeof e == "function";
3900
3900
  }
3901
3901
  function Qt(e) {
3902
3902
  return e === "indeterminate";
3903
3903
  }
3904
- function $c(e) {
3904
+ function zc(e) {
3905
3905
  return Qt(e) ? "indeterminate" : e ? "checked" : "unchecked";
3906
3906
  }
3907
- function zc({
3907
+ function Bc({
3908
3908
  ref: e,
3909
3909
  className: t,
3910
3910
  color: n = "currentColor",
@@ -3933,7 +3933,7 @@ function zc({
3933
3933
  )
3934
3934
  );
3935
3935
  }
3936
- function Bc({
3936
+ function Gc({
3937
3937
  ref: e,
3938
3938
  className: t,
3939
3939
  color: n = "currentColor",
@@ -3961,9 +3961,9 @@ function Bc({
3961
3961
  }
3962
3962
  );
3963
3963
  }
3964
- zc.displayName = "Check";
3965
- Bc.displayName = "CircleCheck";
3966
- const Gc = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
3964
+ Bc.displayName = "Check";
3965
+ Gc.displayName = "CircleCheck";
3966
+ const Hc = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
3967
3967
  const Am = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
3968
3968
  const Mm = (e) => e.replace(
3969
3969
  /^([A-Z])|[\s-_]+(\w)/g,
@@ -4009,7 +4009,7 @@ const Lm = uc(
4009
4009
  height: t,
4010
4010
  stroke: e,
4011
4011
  strokeWidth: r ? Number(n) * 24 / Number(t) : n,
4012
- className: Gc("lucide", o),
4012
+ className: Hc("lucide", o),
4013
4013
  ...!s && !Dm(a) && { "aria-hidden": "true" },
4014
4014
  ...a
4015
4015
  },
@@ -4024,7 +4024,7 @@ const Re = (e, t) => {
4024
4024
  ({ className: r, ...o }, s) => er(Lm, {
4025
4025
  ref: s,
4026
4026
  iconNode: t,
4027
- className: Gc(
4027
+ className: Hc(
4028
4028
  `lucide-${Am(oa(e))}`,
4029
4029
  `lucide-${e}`,
4030
4030
  r
@@ -4107,7 +4107,7 @@ const ah = [
4107
4107
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
4108
4108
  ["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
4109
4109
  ["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
4110
- ], Hc = Re("ellipsis", ah);
4110
+ ], Wc = Re("ellipsis", ah);
4111
4111
  const ch = [
4112
4112
  [
4113
4113
  "path",
@@ -4246,8 +4246,8 @@ const zh = [
4246
4246
  palette: wh,
4247
4247
  building: Wm,
4248
4248
  close: Us,
4249
- done: zc,
4250
- check: Bc,
4249
+ done: Bc,
4250
+ check: Gc,
4251
4251
  users: Vh,
4252
4252
  "layout-grid": ph,
4253
4253
  bell: Fm,
@@ -4261,7 +4261,7 @@ const zh = [
4261
4261
  search: Oh,
4262
4262
  "list-filter": hh,
4263
4263
  funnel: dh,
4264
- dots: Hc,
4264
+ dots: Wc,
4265
4265
  "check-list": bh,
4266
4266
  tag: Mh,
4267
4267
  chevron: Xm,
@@ -4311,7 +4311,7 @@ const zh = [
4311
4311
  ref: t,
4312
4312
  className: B(Hh, e),
4313
4313
  ...n,
4314
- children: /* @__PURE__ */ x(Lc, { className: B(Wh), children: /* @__PURE__ */ x(
4314
+ children: /* @__PURE__ */ x(Vc, { className: B(Wh), children: /* @__PURE__ */ x(
4315
4315
  Ks,
4316
4316
  {
4317
4317
  type: "done",
@@ -4399,7 +4399,7 @@ process.env.NODE_ENV !== "production" && (qs.displayName = "CompositeListContext
4399
4399
  function Xh() {
4400
4400
  return c.useContext(qs);
4401
4401
  }
4402
- function Wc(e) {
4402
+ function jc(e) {
4403
4403
  const {
4404
4404
  children: t,
4405
4405
  elementsRef: n,
@@ -4471,24 +4471,24 @@ function Jh(e, t) {
4471
4471
  const n = e.compareDocumentPosition(t);
4472
4472
  return n & Node.DOCUMENT_POSITION_FOLLOWING || n & Node.DOCUMENT_POSITION_CONTAINED_BY ? -1 : n & Node.DOCUMENT_POSITION_PRECEDING || n & Node.DOCUMENT_POSITION_CONTAINS ? 1 : 0;
4473
4473
  }
4474
- const jc = /* @__PURE__ */ c.createContext(void 0);
4475
- process.env.NODE_ENV !== "production" && (jc.displayName = "DirectionContext");
4476
- function Uc() {
4477
- return c.useContext(jc)?.direction ?? "ltr";
4474
+ const Uc = /* @__PURE__ */ c.createContext(void 0);
4475
+ process.env.NODE_ENV !== "production" && (Uc.displayName = "DirectionContext");
4476
+ function Kc() {
4477
+ return c.useContext(Uc)?.direction ?? "ltr";
4478
4478
  }
4479
4479
  function kt(e, ...t) {
4480
4480
  const n = new URL("https://base-ui.com/production-error");
4481
4481
  return n.searchParams.set("code", e.toString()), t.forEach((r) => n.searchParams.append("args[]", r)), `Base UI error #${e}; visit ${n} for the full message.`;
4482
4482
  }
4483
4483
  function tr(e, t, n, r) {
4484
- const o = vt(Kc).current;
4485
- return tg(o, e, t, n, r) && qc(o, [e, t, n, r]), o.callback;
4484
+ const o = vt(qc).current;
4485
+ return tg(o, e, t, n, r) && Yc(o, [e, t, n, r]), o.callback;
4486
4486
  }
4487
4487
  function eg(e) {
4488
- const t = vt(Kc).current;
4489
- return ng(t, e) && qc(t, e), t.callback;
4488
+ const t = vt(qc).current;
4489
+ return ng(t, e) && Yc(t, e), t.callback;
4490
4490
  }
4491
- function Kc() {
4491
+ function qc() {
4492
4492
  return {
4493
4493
  callback: null,
4494
4494
  cleanup: null,
@@ -4501,7 +4501,7 @@ function tg(e, t, n, r, o) {
4501
4501
  function ng(e, t) {
4502
4502
  return e.refs.length !== t.length || e.refs.some((n, r) => n !== t[r]);
4503
4503
  }
4504
- function qc(e, t) {
4504
+ function Yc(e, t) {
4505
4505
  if (e.refs = t, t.every((n) => n == null)) {
4506
4506
  e.callback = null;
4507
4507
  return;
@@ -4585,7 +4585,7 @@ function ig(e, t) {
4585
4585
  return typeof e == "function" ? e(t) : e;
4586
4586
  }
4587
4587
  const Kn = {};
4588
- function Yc(e, t, n, r, o) {
4588
+ function Xc(e, t, n, r, o) {
4589
4589
  let s = {
4590
4590
  ...vs(e, Kn)
4591
4591
  };
@@ -4604,7 +4604,7 @@ function ag(e) {
4604
4604
  return t;
4605
4605
  }
4606
4606
  function $r(e, t) {
4607
- return Xc(t) ? t(e) : cg(e, t);
4607
+ return Zc(t) ? t(e) : cg(e, t);
4608
4608
  }
4609
4609
  function cg(e, t) {
4610
4610
  if (!t)
@@ -4617,7 +4617,7 @@ function cg(e, t) {
4617
4617
  break;
4618
4618
  }
4619
4619
  case "className": {
4620
- e[n] = Zc(e.className, r);
4620
+ e[n] = Qc(e.className, r);
4621
4621
  break;
4622
4622
  }
4623
4623
  default:
@@ -4630,11 +4630,11 @@ function lg(e, t) {
4630
4630
  const n = e.charCodeAt(0), r = e.charCodeAt(1), o = e.charCodeAt(2);
4631
4631
  return n === 111 && r === 110 && o >= 65 && o <= 90 && (typeof t == "function" || typeof t > "u");
4632
4632
  }
4633
- function Xc(e) {
4633
+ function Zc(e) {
4634
4634
  return typeof e == "function";
4635
4635
  }
4636
4636
  function vs(e, t) {
4637
- return Xc(e) ? e(t) : e ?? Kn;
4637
+ return Zc(e) ? e(t) : e ?? Kn;
4638
4638
  }
4639
4639
  function ug(e, t) {
4640
4640
  return t ? e ? (n) => {
@@ -4653,7 +4653,7 @@ function ys(e) {
4653
4653
  e.baseUIHandlerPrevented = !0;
4654
4654
  }, e;
4655
4655
  }
4656
- function Zc(e, t) {
4656
+ function Qc(e, t) {
4657
4657
  return t ? e ? t + " " + e : t : e;
4658
4658
  }
4659
4659
  function dg(e) {
@@ -4692,14 +4692,14 @@ function gg(e, t = {}) {
4692
4692
  stateAttributesMapping: l,
4693
4693
  enabled: u = !0
4694
4694
  } = t, d = u ? sg(n, s) : void 0, f = u ? ig(r, s) : void 0, h = u ? og(s, l) : et, p = u ? bs(h, Array.isArray(a) ? ag(a) : a) ?? et : et;
4695
- return typeof document < "u" && (u ? Array.isArray(i) ? p.ref = eg([p.ref, ia(o), ...i]) : p.ref = tr(p.ref, ia(o), i) : tr(null, null)), u ? (d !== void 0 && (p.className = Zc(p.className, d)), f !== void 0 && (p.style = bs(p.style, f)), p) : et;
4695
+ return typeof document < "u" && (u ? Array.isArray(i) ? p.ref = eg([p.ref, ia(o), ...i]) : p.ref = tr(p.ref, ia(o), i) : tr(null, null)), u ? (d !== void 0 && (p.className = Qc(p.className, d)), f !== void 0 && (p.style = bs(p.style, f)), p) : et;
4696
4696
  }
4697
4697
  const bg = /* @__PURE__ */ Symbol.for("react.lazy");
4698
4698
  function vg(e, t, n, r) {
4699
4699
  if (t) {
4700
4700
  if (typeof t == "function")
4701
4701
  return t(n, r);
4702
- const o = Yc(n, t.props);
4702
+ const o = Xc(n, t.props);
4703
4703
  o.ref = n.ref;
4704
4704
  let s = t;
4705
4705
  if (s?.$$typeof === bg && (s = c.Children.toArray(t)[0]), process.env.NODE_ENV !== "production" && !/* @__PURE__ */ c.isValidElement(s))
@@ -4722,7 +4722,7 @@ function yg(e, t) {
4722
4722
  key: t.key
4723
4723
  }) : /* @__PURE__ */ c.createElement(e, t);
4724
4724
  }
4725
- const ht = "none", xs = "trigger-press", xg = "trigger-hover", Xs = "outside-press", wg = "item-press", aa = "clear-press", Cg = "chip-remove-press", Nn = "input-change", Xt = "input-clear", Eg = "input-press", lo = "focus-out", Qc = "escape-key", qn = "list-navigation";
4725
+ const ht = "none", xs = "trigger-press", xg = "trigger-hover", Xs = "outside-press", wg = "item-press", aa = "clear-press", Cg = "chip-remove-press", Nn = "input-change", Xt = "input-clear", Eg = "input-press", lo = "focus-out", Jc = "escape-key", qn = "list-navigation";
4726
4726
  function de(e, t, n, r) {
4727
4727
  let o = !1, s = !1;
4728
4728
  const i = et;
@@ -4775,7 +4775,7 @@ function Qs(e) {
4775
4775
  return Zs(e, "base-ui");
4776
4776
  }
4777
4777
  const Sg = [];
4778
- function Jc(e) {
4778
+ function el(e) {
4779
4779
  c.useEffect(e, Sg);
4780
4780
  }
4781
4781
  const Er = null;
@@ -4838,7 +4838,7 @@ class Ot {
4838
4838
  }
4839
4839
  function Js() {
4840
4840
  const e = vt(Ot.create).current;
4841
- return Jc(e.disposeEffect), e;
4841
+ return el(e.disposeEffect), e;
4842
4842
  }
4843
4843
  function Vt(e) {
4844
4844
  return e == null ? e : "current" in e ? e.current : e;
@@ -4850,7 +4850,7 @@ const Ig = {
4850
4850
  [nr.startingStyle]: ""
4851
4851
  }, Ng = {
4852
4852
  [nr.endingStyle]: ""
4853
- }, el = {
4853
+ }, tl = {
4854
4854
  transitionStatus(e) {
4855
4855
  return e === "starting" ? Ig : e === "ending" ? Ng : null;
4856
4856
  }
@@ -4904,7 +4904,7 @@ function Og(e, t = !1, n = !0) {
4904
4904
  }
4905
4905
  });
4906
4906
  }
4907
- function tl(e, t = !1, n = !1) {
4907
+ function nl(e, t = !1, n = !1) {
4908
4908
  const [r, o] = c.useState(e && t ? "idle" : void 0), [s, i] = c.useState(e);
4909
4909
  return e && !s && (i(!0), o("starting")), !e && s && r !== "ending" && !n && o("ending"), !e && !s && r === "ending" && o(void 0), oe(() => {
4910
4910
  if (!e && s && r !== "ending" && n) {
@@ -4940,10 +4940,10 @@ function tl(e, t = !1, n = !1) {
4940
4940
  transitionStatus: r
4941
4941
  }), [s, r]);
4942
4942
  }
4943
- let nl = /* @__PURE__ */ (function(e) {
4943
+ let rl = /* @__PURE__ */ (function(e) {
4944
4944
  return e[e.None = 0] = "None", e[e.GuessFromOrder = 1] = "GuessFromOrder", e;
4945
4945
  })({});
4946
- function rl(e = {}) {
4946
+ function ol(e = {}) {
4947
4947
  const {
4948
4948
  label: t,
4949
4949
  metadata: n,
@@ -4957,7 +4957,7 @@ function rl(e = {}) {
4957
4957
  elementsRef: u,
4958
4958
  labelsRef: d,
4959
4959
  nextIndexRef: f
4960
- } = Xh(), h = c.useRef(-1), [p, b] = c.useState(s ?? (o === nl.GuessFromOrder ? () => {
4960
+ } = Xh(), h = c.useRef(-1), [p, b] = c.useState(s ?? (o === rl.GuessFromOrder ? () => {
4961
4961
  if (h.current === -1) {
4962
4962
  const y = f.current;
4963
4963
  f.current += 1, h.current = y;
@@ -5085,14 +5085,14 @@ function zt(e) {
5085
5085
  );
5086
5086
  return Cs(t) ? t.host : t;
5087
5087
  }
5088
- function ol(e) {
5088
+ function sl(e) {
5089
5089
  const t = zt(e);
5090
- return $t(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ge(t) && cn(t) ? t : ol(t);
5090
+ return $t(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ge(t) && cn(t) ? t : sl(t);
5091
5091
  }
5092
5092
  function Jt(e, t, n) {
5093
5093
  var r;
5094
5094
  t === void 0 && (t = []), n === void 0 && (n = !0);
5095
- const o = ol(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = qe(o);
5095
+ const o = sl(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = qe(o);
5096
5096
  if (s) {
5097
5097
  const a = Es(i);
5098
5098
  return t.concat(i, i.visualViewport || [], cn(o) ? o : [], a && n ? Jt(a) : []);
@@ -5110,10 +5110,10 @@ function da(...e) {
5110
5110
  Rs.has(t) || (Rs.add(t), console.error(`Base UI: ${t}`));
5111
5111
  }
5112
5112
  }
5113
- const sl = /* @__PURE__ */ c.createContext(void 0);
5114
- process.env.NODE_ENV !== "production" && (sl.displayName = "CompositeRootContext");
5113
+ const il = /* @__PURE__ */ c.createContext(void 0);
5114
+ process.env.NODE_ENV !== "production" && (il.displayName = "CompositeRootContext");
5115
5115
  function _g(e = !1) {
5116
- const t = c.useContext(sl);
5116
+ const t = c.useContext(il);
5117
5117
  if (t === void 0 && !e)
5118
5118
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>." : kt(16));
5119
5119
  return t;
@@ -5184,7 +5184,7 @@ function ho(e = {}) {
5184
5184
  onPointerDown: y,
5185
5185
  ...v
5186
5186
  } = h;
5187
- return Yc({
5187
+ return Xc({
5188
5188
  type: o ? "button" : void 0,
5189
5189
  onClick(w) {
5190
5190
  if (t) {
@@ -5226,11 +5226,11 @@ function ho(e = {}) {
5226
5226
  function Lg(e) {
5227
5227
  return Ge(e) && e.tagName === "BUTTON";
5228
5228
  }
5229
- const En = typeof navigator < "u", Zo = $g(), il = Bg(), ni = zg(), al = typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter:none"), cl = (
5229
+ const En = typeof navigator < "u", Zo = $g(), al = Bg(), ni = zg(), cl = typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter:none"), ll = (
5230
5230
  // iPads can claim to be MacIntel
5231
5231
  Zo.platform === "MacIntel" && Zo.maxTouchPoints > 1 ? !0 : /iP(hone|ad|od)|iOS/.test(Zo.platform)
5232
- ), fa = En && /firefox/i.test(ni), Vg = En && /apple/i.test(navigator.vendor), Ur = En && /android/i.test(il) || /android/i.test(ni);
5233
- En && il.toLowerCase().startsWith("mac") && navigator.maxTouchPoints;
5232
+ ), fa = En && /firefox/i.test(ni), Vg = En && /apple/i.test(navigator.vendor), Ur = En && /android/i.test(al) || /android/i.test(ni);
5233
+ En && al.toLowerCase().startsWith("mac") && navigator.maxTouchPoints;
5234
5234
  const Fg = ni.includes("jsdom/");
5235
5235
  function $g() {
5236
5236
  if (!En)
@@ -5262,7 +5262,7 @@ function Bg() {
5262
5262
  const e = navigator.userAgentData;
5263
5263
  return e?.platform ? e.platform : navigator.platform ?? "";
5264
5264
  }
5265
- const Ss = "data-base-ui-focusable", ll = "active", ul = "selected", Gg = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", en = "ArrowLeft", tn = "ArrowRight", ri = "ArrowUp", sr = "ArrowDown";
5265
+ const Ss = "data-base-ui-focusable", ul = "active", dl = "selected", Gg = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", en = "ArrowLeft", tn = "ArrowRight", ri = "ArrowUp", sr = "ArrowDown";
5266
5266
  function Ft(e) {
5267
5267
  let t = e.activeElement;
5268
5268
  for (; t?.shadowRoot?.activeElement != null; )
@@ -5325,17 +5325,17 @@ function Ae(e) {
5325
5325
  function Wg(e) {
5326
5326
  return "nativeEvent" in e;
5327
5327
  }
5328
- function dl(e) {
5328
+ function fl(e) {
5329
5329
  return e.pointerType === "" && e.isTrusted ? !0 : Ur && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
5330
5330
  }
5331
- function fl(e) {
5331
+ function pl(e) {
5332
5332
  return Fg ? !1 : !Ur && e.width === 0 && e.height === 0 || Ur && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
5333
5333
  e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
5334
5334
  }
5335
5335
  function ma(e, t) {
5336
5336
  return ["mouse", "pen"].includes(e);
5337
5337
  }
5338
- function pl(e) {
5338
+ function ml(e) {
5339
5339
  const t = e.type;
5340
5340
  return t === "click" || t === "mousedown" || t === "keydown" || t === "keyup";
5341
5341
  }
@@ -5636,8 +5636,8 @@ function Xn(e, t, n) {
5636
5636
  const r = e.current[t];
5637
5637
  return r ? r.hasAttribute("disabled") || r.getAttribute("aria-disabled") === "true" : !1;
5638
5638
  }
5639
- var ob = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], Zr = /* @__PURE__ */ ob.join(","), ml = typeof Element > "u", Dn = ml ? function() {
5640
- } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Qr = !ml && Element.prototype.getRootNode ? function(e) {
5639
+ var ob = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], Zr = /* @__PURE__ */ ob.join(","), hl = typeof Element > "u", Dn = hl ? function() {
5640
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Qr = !hl && Element.prototype.getRootNode ? function(e) {
5641
5641
  var t;
5642
5642
  return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
5643
5643
  } : function(e) {
@@ -5652,7 +5652,7 @@ var ob = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
5652
5652
  }, sb = function(t) {
5653
5653
  var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
5654
5654
  return r === "" || r === "true";
5655
- }, hl = function(t, n, r) {
5655
+ }, gl = function(t, n, r) {
5656
5656
  if (Jr(t))
5657
5657
  return [];
5658
5658
  var o = Array.prototype.slice.apply(t.querySelectorAll(Zr));
@@ -5683,21 +5683,21 @@ var ob = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
5683
5683
  }
5684
5684
  }
5685
5685
  return o;
5686
- }, gl = function(t) {
5687
- return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
5688
5686
  }, bl = function(t) {
5687
+ return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
5688
+ }, vl = function(t) {
5689
5689
  if (!t)
5690
5690
  throw new Error("No node provided");
5691
- return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || sb(t)) && !gl(t) ? 0 : t.tabIndex;
5691
+ return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || sb(t)) && !bl(t) ? 0 : t.tabIndex;
5692
5692
  }, ib = function(t, n) {
5693
- var r = bl(t);
5694
- return r < 0 && n && !gl(t) ? 0 : r;
5693
+ var r = vl(t);
5694
+ return r < 0 && n && !bl(t) ? 0 : r;
5695
5695
  }, ab = function(t, n) {
5696
5696
  return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
5697
- }, vl = function(t) {
5697
+ }, yl = function(t) {
5698
5698
  return t.tagName === "INPUT";
5699
5699
  }, cb = function(t) {
5700
- return vl(t) && t.type === "hidden";
5700
+ return yl(t) && t.type === "hidden";
5701
5701
  }, lb = function(t) {
5702
5702
  var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
5703
5703
  return r.tagName === "SUMMARY";
@@ -5724,7 +5724,7 @@ var ob = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
5724
5724
  var s = ub(o, t.form);
5725
5725
  return !s || s === t;
5726
5726
  }, fb = function(t) {
5727
- return vl(t) && t.type === "radio";
5727
+ return yl(t) && t.type === "radio";
5728
5728
  }, pb = function(t) {
5729
5729
  return fb(t) && !db(t);
5730
5730
  }, mb = function(t) {
@@ -5800,14 +5800,14 @@ var ob = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
5800
5800
  return !(n.disabled || cb(n) || hb(n, t) || // For a details element with a summary, the summary element gets the focus
5801
5801
  lb(n) || gb(n));
5802
5802
  }, Ps = function(t, n) {
5803
- return !(pb(n) || bl(n) < 0 || !Os(t, n));
5803
+ return !(pb(n) || vl(n) < 0 || !Os(t, n));
5804
5804
  }, bb = function(t) {
5805
5805
  var n = parseInt(t.getAttribute("tabindex"), 10);
5806
5806
  return !!(isNaN(n) || n >= 0);
5807
- }, yl = function(t) {
5807
+ }, xl = function(t) {
5808
5808
  var n = [], r = [];
5809
5809
  return t.forEach(function(o, s) {
5810
- var i = !!o.scopeParent, a = i ? o.scopeParent : o, l = ib(a, i), u = i ? yl(o.candidates) : a;
5810
+ var i = !!o.scopeParent, a = i ? o.scopeParent : o, l = ib(a, i), u = i ? xl(o.candidates) : a;
5811
5811
  l === 0 ? i ? n.push.apply(n, u) : n.push(a) : r.push({
5812
5812
  documentOrder: s,
5813
5813
  tabIndex: l,
@@ -5826,7 +5826,7 @@ var ob = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
5826
5826
  flatten: !1,
5827
5827
  getShadowRoot: n.getShadowRoot,
5828
5828
  shadowRootFilter: bb
5829
- }) : r = hl(t, n.includeContainer, Ps.bind(null, n)), yl(r);
5829
+ }) : r = gl(t, n.includeContainer, Ps.bind(null, n)), xl(r);
5830
5830
  }, vb = function(t, n) {
5831
5831
  n = n || {};
5832
5832
  var r;
@@ -5834,8 +5834,8 @@ var ob = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
5834
5834
  filter: Os.bind(null, n),
5835
5835
  flatten: !0,
5836
5836
  getShadowRoot: n.getShadowRoot
5837
- }) : r = hl(t, n.includeContainer, Os.bind(null, n)), r;
5838
- }, xl = function(t, n) {
5837
+ }) : r = gl(t, n.includeContainer, Os.bind(null, n)), r;
5838
+ }, wl = function(t, n) {
5839
5839
  if (n = n || {}, !t)
5840
5840
  throw new Error("No node provided");
5841
5841
  return Dn.call(t, Zr) === !1 ? !1 : Ps(n, t);
@@ -5852,18 +5852,18 @@ const ir = () => ({
5852
5852
  typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
5853
5853
  )
5854
5854
  });
5855
- function wl(e, t) {
5855
+ function Cl(e, t) {
5856
5856
  const n = vo(e, ir()), r = n.length;
5857
5857
  if (r === 0)
5858
5858
  return;
5859
5859
  const o = Ft(ze(e)), s = n.indexOf(o), i = s === -1 ? t === 1 ? 0 : r - 1 : s + t;
5860
5860
  return n[i];
5861
5861
  }
5862
- function Cl(e) {
5863
- return wl(ze(e).body, 1) || e;
5864
- }
5865
5862
  function El(e) {
5866
- return wl(ze(e).body, -1) || e;
5863
+ return Cl(ze(e).body, 1) || e;
5864
+ }
5865
+ function Rl(e) {
5866
+ return Cl(ze(e).body, -1) || e;
5867
5867
  }
5868
5868
  function Zn(e, t) {
5869
5869
  const n = t || e.currentTarget, r = e.relatedTarget;
@@ -5920,7 +5920,7 @@ class Ln {
5920
5920
  }
5921
5921
  function gn() {
5922
5922
  const e = vt(Ln.create).current;
5923
- return Jc(e.disposeEffect), e;
5923
+ return el(e.disposeEffect), e;
5924
5924
  }
5925
5925
  let xa = {}, wa = {}, Ca = "";
5926
5926
  function xb(e) {
@@ -5955,7 +5955,7 @@ function Eb(e) {
5955
5955
  const t = ze(e), n = t.documentElement, r = t.body, o = qe(n);
5956
5956
  let s = 0, i = 0, a = !1;
5957
5957
  const l = Ot.create();
5958
- if (al && (o.visualViewport?.scale ?? 1) !== 1)
5958
+ if (cl && (o.visualViewport?.scale ?? 1) !== 1)
5959
5959
  return () => {
5960
5960
  };
5961
5961
  function u() {
@@ -6023,7 +6023,7 @@ class Rb {
6023
6023
  this.restore = _e;
6024
6024
  return;
6025
6025
  }
6026
- const s = cl || !xb(t);
6026
+ const s = ll || !xb(t);
6027
6027
  this.restore = s ? Cb(t) : Eb(t);
6028
6028
  }
6029
6029
  }
@@ -6062,18 +6062,18 @@ function Nb() {
6062
6062
  }
6063
6063
  };
6064
6064
  }
6065
- const Rl = /* @__PURE__ */ c.createContext(null);
6066
- process.env.NODE_ENV !== "production" && (Rl.displayName = "FloatingNodeContext");
6067
6065
  const Sl = /* @__PURE__ */ c.createContext(null);
6068
- process.env.NODE_ENV !== "production" && (Sl.displayName = "FloatingTreeContext");
6069
- const kl = () => c.useContext(Rl)?.id || null, yo = (e) => {
6070
- const t = c.useContext(Sl);
6066
+ process.env.NODE_ENV !== "production" && (Sl.displayName = "FloatingNodeContext");
6067
+ const kl = /* @__PURE__ */ c.createContext(null);
6068
+ process.env.NODE_ENV !== "production" && (kl.displayName = "FloatingTreeContext");
6069
+ const Il = () => c.useContext(Sl)?.id || null, yo = (e) => {
6070
+ const t = c.useContext(kl);
6071
6071
  return e ?? t;
6072
6072
  };
6073
6073
  function to(e) {
6074
6074
  return `data-base-ui-${e}`;
6075
6075
  }
6076
- const Il = {
6076
+ const Nl = {
6077
6077
  clipPath: "inset(50%)",
6078
6078
  overflow: "hidden",
6079
6079
  whiteSpace: "nowrap",
@@ -6083,12 +6083,12 @@ const Il = {
6083
6083
  height: 1,
6084
6084
  margin: -1
6085
6085
  }, ci = {
6086
- ...Il,
6086
+ ...Nl,
6087
6087
  position: "fixed",
6088
6088
  top: 0,
6089
6089
  left: 0
6090
6090
  }, Ob = {
6091
- ...Il,
6091
+ ...Nl,
6092
6092
  position: "absolute"
6093
6093
  }, rr = /* @__PURE__ */ c.forwardRef(function(t, n) {
6094
6094
  const [r, o] = c.useState();
@@ -6130,10 +6130,10 @@ function Ra(e) {
6130
6130
  return e === "inert" ? Tn.inert : e === "aria-hidden" ? Tn["aria-hidden"] : Tn.none;
6131
6131
  }
6132
6132
  let kr = /* @__PURE__ */ new WeakSet(), Ir = {}, Jo = 0;
6133
- const Nl = (e) => e && (e.host || Nl(e.parentNode)), Pb = (e, t) => t.map((n) => {
6133
+ const Ol = (e) => e && (e.host || Ol(e.parentNode)), Pb = (e, t) => t.map((n) => {
6134
6134
  if (e.contains(n))
6135
6135
  return n;
6136
- const r = Nl(n);
6136
+ const r = Ol(n);
6137
6137
  return e.contains(r) ? r : null;
6138
6138
  }).filter((n) => n != null);
6139
6139
  function Tb(e, t, n, r) {
@@ -6168,14 +6168,14 @@ function Ab(e, t = !1, n = !1) {
6168
6168
  }
6169
6169
  const li = /* @__PURE__ */ c.createContext(null);
6170
6170
  process.env.NODE_ENV !== "production" && (li.displayName = "PortalContext");
6171
- const Ol = () => c.useContext(li), Mb = to("portal");
6171
+ const Pl = () => c.useContext(li), Mb = to("portal");
6172
6172
  function _b(e = {}) {
6173
6173
  const {
6174
6174
  ref: t,
6175
6175
  container: n,
6176
6176
  componentProps: r = et,
6177
6177
  elementProps: o
6178
- } = e, s = Zs(), a = Ol()?.portalNode, [l, u] = c.useState(null), [d, f] = c.useState(null), h = re((m) => {
6178
+ } = e, s = Zs(), a = Pl()?.portalNode, [l, u] = c.useState(null), [d, f] = c.useState(null), h = re((m) => {
6179
6179
  m !== null && f(m);
6180
6180
  }), p = c.useRef(null);
6181
6181
  oe(() => {
@@ -6204,7 +6204,7 @@ function _b(e = {}) {
6204
6204
  portalSubtree: l && b ? /* @__PURE__ */ on.createPortal(b, l) : null
6205
6205
  };
6206
6206
  }
6207
- const Pl = /* @__PURE__ */ c.forwardRef(function(t, n) {
6207
+ const Tl = /* @__PURE__ */ c.forwardRef(function(t, n) {
6208
6208
  const {
6209
6209
  children: r,
6210
6210
  container: o,
@@ -6252,7 +6252,7 @@ const Pl = /* @__PURE__ */ c.forwardRef(function(t, n) {
6252
6252
  p.current?.focus();
6253
6253
  else {
6254
6254
  const k = g ? g.domReference : null;
6255
- El(k)?.focus();
6255
+ Rl(k)?.focus();
6256
6256
  }
6257
6257
  }
6258
6258
  }), C && u && /* @__PURE__ */ x("span", {
@@ -6266,14 +6266,14 @@ const Pl = /* @__PURE__ */ c.forwardRef(function(t, n) {
6266
6266
  b.current?.focus();
6267
6267
  else {
6268
6268
  const k = g ? g.domReference : null;
6269
- Cl(k)?.focus(), g?.closeOnFocusOut && g?.onOpenChange(!1, de(lo, R.nativeEvent));
6269
+ El(k)?.focus(), g?.closeOnFocusOut && g?.onOpenChange(!1, de(lo, R.nativeEvent));
6270
6270
  }
6271
6271
  }
6272
6272
  })]
6273
6273
  })]
6274
6274
  });
6275
6275
  });
6276
- process.env.NODE_ENV !== "production" && (Pl.displayName = "FloatingPortal");
6276
+ process.env.NODE_ENV !== "production" && (Tl.displayName = "FloatingPortal");
6277
6277
  function Db(e, t) {
6278
6278
  const n = qe(e.target);
6279
6279
  return e instanceof n.KeyboardEvent ? "keyboard" : e instanceof n.FocusEvent ? t || "keyboard" : "pointerType" in e ? e.pointerType || "keyboard" : "touches" in e ? "touch" : e instanceof n.MouseEvent ? t || (e.detail === 0 ? "keyboard" : "mouse") : "";
@@ -6293,7 +6293,7 @@ function Vb(e) {
6293
6293
  if (!e)
6294
6294
  return null;
6295
6295
  const t = ir();
6296
- return xl(e, t) ? e : vo(e, t)[0] || e;
6296
+ return wl(e, t) ? e : vo(e, t)[0] || e;
6297
6297
  }
6298
6298
  function Fb(e) {
6299
6299
  return !e || !e.isConnected ? !1 : typeof e.checkVisibility == "function" ? e.checkVisibility() : pt(e).display !== "none";
@@ -6303,7 +6303,7 @@ function ka(e, t) {
6303
6303
  return;
6304
6304
  const n = ir(), o = vb(e, n).filter((i) => {
6305
6305
  const a = i.getAttribute("data-tabindex") || "";
6306
- return xl(i, n) || i.hasAttribute("data-tabindex") && !a.startsWith("-");
6306
+ return wl(i, n) || i.hasAttribute("data-tabindex") && !a.startsWith("-");
6307
6307
  }), s = e.getAttribute("tabindex");
6308
6308
  t.current.includes("floating") || o.length === 0 ? s !== "0" && e.setAttribute("tabindex", "0") : (s !== "-1" || e.hasAttribute("data-tabindex") && e.getAttribute("data-tabindex") !== "-1") && (e.setAttribute("tabindex", "-1"), e.setAttribute("data-tabindex", "-1"));
6309
6309
  }
@@ -6325,7 +6325,7 @@ function $b(e) {
6325
6325
  } = e, b = "rootStore" in t ? t.rootStore : t, g = b.useState("open"), m = b.useState("domReferenceElement"), y = b.useState("floatingElement"), {
6326
6326
  events: v,
6327
6327
  dataRef: C
6328
- } = b.context, w = re(() => C.current.floatingContext?.nodeId), R = o === !1, k = ks(m) && R, S = c.useRef(["content"]), E = gt(o), F = gt(s), j = gt(u), W = yo(p), P = Ol(), q = c.useRef(null), Y = c.useRef(null), z = c.useRef(!1), N = c.useRef(!1), G = c.useRef(!1), V = c.useRef(-1), te = c.useRef(""), T = c.useRef(""), we = c.useRef(null), fe = c.useRef(null), ye = tr(we, h, P?.beforeInsideRef), ae = tr(fe, P?.afterInsideRef), ce = gn(), ge = gn(), Ce = Js(), Se = P != null, X = Is(y), pe = re((A = X) => A ? vo(A, ir()) : []), xe = re((A) => {
6328
+ } = b.context, w = re(() => C.current.floatingContext?.nodeId), R = o === !1, k = ks(m) && R, S = c.useRef(["content"]), E = gt(o), F = gt(s), j = gt(u), W = yo(p), P = Pl(), q = c.useRef(null), Y = c.useRef(null), z = c.useRef(!1), N = c.useRef(!1), G = c.useRef(!1), V = c.useRef(-1), te = c.useRef(""), T = c.useRef(""), we = c.useRef(null), fe = c.useRef(null), ye = tr(we, h, P?.beforeInsideRef), ae = tr(fe, P?.afterInsideRef), ce = gn(), ge = gn(), Ce = Js(), Se = P != null, X = Is(y), pe = re((A = X) => A ? vo(A, ir()) : []), xe = re((A) => {
6329
6329
  const $ = pe(A);
6330
6330
  return S.current.map(() => $).filter(Boolean).flat();
6331
6331
  });
@@ -6442,7 +6442,7 @@ function $b(e) {
6442
6442
  if (U.open || (te.current = Db(U.nativeEvent, T.current)), U.reason === xg && U.nativeEvent.type === "mouseleave" && (z.current = !0), U.reason === Xs)
6443
6443
  if (U.nested)
6444
6444
  z.current = !1;
6445
- else if (dl(U.nativeEvent) || fl(U.nativeEvent))
6445
+ else if (fl(U.nativeEvent) || pl(U.nativeEvent))
6446
6446
  z.current = !1;
6447
6447
  else {
6448
6448
  let M = !1;
@@ -6483,7 +6483,7 @@ function $b(e) {
6483
6483
  });
6484
6484
  };
6485
6485
  }, [r, y, X, F, C, v, W, Se, m, w]), oe(() => {
6486
- if (!al || g || !y)
6486
+ if (!cl || g || !y)
6487
6487
  return;
6488
6488
  const A = Ft(ze(y));
6489
6489
  !Ge(A) || !oi(A) || Ee(y, A) && A.blur();
@@ -6513,18 +6513,18 @@ function $b(e) {
6513
6513
  if (a) {
6514
6514
  const $ = xe();
6515
6515
  Qn($[$.length - 1]);
6516
- } else P?.portalNode && (z.current = !1, Zn(A, P.portalNode) ? Cl(m)?.focus() : Vt(f ?? P.beforeOutsideRef)?.focus());
6516
+ } else P?.portalNode && (z.current = !1, Zn(A, P.portalNode) ? El(m)?.focus() : Vt(f ?? P.beforeOutsideRef)?.focus());
6517
6517
  }
6518
6518
  }), n, O && /* @__PURE__ */ x(rr, {
6519
6519
  "data-type": "inside",
6520
6520
  ref: ae,
6521
6521
  onFocus: (A) => {
6522
- a ? Qn(xe()[0]) : P?.portalNode && (l && (z.current = !0), Zn(A, P.portalNode) ? El(m)?.focus() : Vt(d ?? P.afterOutsideRef)?.focus());
6522
+ a ? Qn(xe()[0]) : P?.portalNode && (l && (z.current = !0), Zn(A, P.portalNode) ? Rl(m)?.focus() : Vt(d ?? P.afterOutsideRef)?.focus());
6523
6523
  }
6524
6524
  })]
6525
6525
  });
6526
6526
  }
6527
- function Tl(e, t = {}) {
6527
+ function Al(e, t = {}) {
6528
6528
  const n = "rootStore" in e ? e.rootStore : e, r = n.context.dataRef, {
6529
6529
  enabled: o = !0,
6530
6530
  event: s = "click",
@@ -6567,7 +6567,7 @@ function Tl(e, t = {}) {
6567
6567
  }
6568
6568
  if (ma(m) && a)
6569
6569
  return;
6570
- const y = n.select("open"), v = r.current.openEvent, C = n.select("domReferenceElement") !== g.currentTarget, w = y && C || !(y && i && (!(v && l) || pl(v))), R = de(d, g.nativeEvent, g.currentTarget);
6570
+ const y = n.select("open"), v = r.current.openEvent, C = n.select("domReferenceElement") !== g.currentTarget, w = y && C || !(y && i && (!(v && l) || ml(v))), R = de(d, g.nativeEvent, g.currentTarget);
6571
6571
  w && m === "touch" && u > 0 ? p.start(u, () => {
6572
6572
  n.setOpen(!0, R);
6573
6573
  }) : n.setOpen(w, R);
@@ -6909,13 +6909,13 @@ const jb = function(e) {
6909
6909
  }
6910
6910
  }
6911
6911
  };
6912
- }, Al = /* @__PURE__ */ new Set(["left", "top"]);
6912
+ }, Ml = /* @__PURE__ */ new Set(["left", "top"]);
6913
6913
  async function Ub(e, t) {
6914
6914
  const {
6915
6915
  placement: n,
6916
6916
  platform: r,
6917
6917
  elements: o
6918
- } = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = ft(n), a = Gt(n), l = bt(n) === "y", u = Al.has(i) ? -1 : 1, d = s && l ? -1 : 1, f = At(t, e);
6918
+ } = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = ft(n), a = Gt(n), l = bt(n) === "y", u = Ml.has(i) ? -1 : 1, d = s && l ? -1 : 1, f = At(t, e);
6919
6919
  let {
6920
6920
  mainAxis: h,
6921
6921
  crossAxis: p,
@@ -7049,7 +7049,7 @@ const Kb = function(e) {
7049
7049
  }
7050
7050
  if (u) {
7051
7051
  var y, v;
7052
- const C = h === "y" ? "width" : "height", w = Al.has(ft(o)), R = s.reference[f] - s.floating[C] + (w && ((y = i.offset) == null ? void 0 : y[f]) || 0) + (w ? 0 : m.crossAxis), k = s.reference[f] + s.reference[C] + (w ? 0 : ((v = i.offset) == null ? void 0 : v[f]) || 0) - (w ? m.crossAxis : 0);
7052
+ const C = h === "y" ? "width" : "height", w = Ml.has(ft(o)), R = s.reference[f] - s.floating[C] + (w && ((y = i.offset) == null ? void 0 : y[f]) || 0) + (w ? 0 : m.crossAxis), k = s.reference[f] + s.reference[C] + (w ? 0 : ((v = i.offset) == null ? void 0 : v[f]) || 0) - (w ? m.crossAxis : 0);
7053
7053
  b < R ? b = R : b > k && (b = k);
7054
7054
  }
7055
7055
  return {
@@ -7099,7 +7099,7 @@ const Kb = function(e) {
7099
7099
  }
7100
7100
  };
7101
7101
  };
7102
- function Ml(e) {
7102
+ function _l(e) {
7103
7103
  const t = pt(e);
7104
7104
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
7105
7105
  const o = Ge(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, a = Kr(n) !== s || Kr(r) !== i;
@@ -7120,7 +7120,7 @@ function An(e) {
7120
7120
  width: r,
7121
7121
  height: o,
7122
7122
  $: s
7123
- } = Ml(t);
7123
+ } = _l(t);
7124
7124
  let i = (s ? Kr(n.width) : n.width) / r, a = (s ? Kr(n.height) : n.height) / o;
7125
7125
  return (!i || !Number.isFinite(i)) && (i = 1), (!a || !Number.isFinite(a)) && (a = 1), {
7126
7126
  x: i,
@@ -7128,7 +7128,7 @@ function An(e) {
7128
7128
  };
7129
7129
  }
7130
7130
  const Zb = /* @__PURE__ */ Tt(0);
7131
- function _l(e) {
7131
+ function Dl(e) {
7132
7132
  const t = qe(e);
7133
7133
  return !po() || !t.visualViewport ? Zb : {
7134
7134
  x: t.visualViewport.offsetLeft,
@@ -7143,7 +7143,7 @@ function bn(e, t, n, r) {
7143
7143
  const o = e.getBoundingClientRect(), s = di(e);
7144
7144
  let i = Tt(1);
7145
7145
  t && (r ? Me(r) && (i = An(r)) : i = An(e));
7146
- const a = Qb(s, n, r) ? _l(s) : Tt(0);
7146
+ const a = Qb(s, n, r) ? Dl(s) : Tt(0);
7147
7147
  let l = (o.left + a.x) / i.x, u = (o.top + a.y) / i.y, d = o.width / i.x, f = o.height / i.y;
7148
7148
  if (s) {
7149
7149
  const h = qe(s), p = r && Me(r) ? qe(r) : r;
@@ -7164,7 +7164,7 @@ function xo(e, t) {
7164
7164
  const n = mo(e).scrollLeft;
7165
7165
  return t ? t.left + n : bn(_t(e)).left + n;
7166
7166
  }
7167
- function Dl(e, t) {
7167
+ function Ll(e, t) {
7168
7168
  const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - xo(e, n), o = n.top + t.scrollTop;
7169
7169
  return {
7170
7170
  x: r,
@@ -7190,7 +7190,7 @@ function Jb(e) {
7190
7190
  const p = bn(r);
7191
7191
  u = An(r), d.x = p.x + r.clientLeft, d.y = p.y + r.clientTop;
7192
7192
  }
7193
- const h = i && !f && !s ? Dl(i, l) : Tt(0);
7193
+ const h = i && !f && !s ? Ll(i, l) : Tt(0);
7194
7194
  return {
7195
7195
  width: n.width * u.x,
7196
7196
  height: n.height * u.y,
@@ -7251,7 +7251,7 @@ function Ta(e, t, n) {
7251
7251
  else if (Me(t))
7252
7252
  r = rv(t, n);
7253
7253
  else {
7254
- const o = _l(e);
7254
+ const o = Dl(e);
7255
7255
  r = {
7256
7256
  x: t.x - o.x,
7257
7257
  y: t.y - o.y,
@@ -7261,9 +7261,9 @@ function Ta(e, t, n) {
7261
7261
  }
7262
7262
  return Xr(r);
7263
7263
  }
7264
- function Ll(e, t) {
7264
+ function Vl(e, t) {
7265
7265
  const n = zt(e);
7266
- return n === t || !Me(n) || $t(n) ? !1 : pt(n).position === "fixed" || Ll(n, t);
7266
+ return n === t || !Me(n) || $t(n) ? !1 : pt(n).position === "fixed" || Vl(n, t);
7267
7267
  }
7268
7268
  function ov(e, t) {
7269
7269
  const n = t.get(e);
@@ -7274,7 +7274,7 @@ function ov(e, t) {
7274
7274
  let i = s ? zt(e) : e;
7275
7275
  for (; Me(i) && !$t(i); ) {
7276
7276
  const a = pt(i), l = ti(i);
7277
- !l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || cn(i) && !l && Ll(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = zt(i);
7277
+ !l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || cn(i) && !l && Vl(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = zt(i);
7278
7278
  }
7279
7279
  return t.set(e, r), r;
7280
7280
  }
@@ -7302,7 +7302,7 @@ function iv(e) {
7302
7302
  const {
7303
7303
  width: t,
7304
7304
  height: n
7305
- } = Ml(e);
7305
+ } = _l(e);
7306
7306
  return {
7307
7307
  width: t,
7308
7308
  height: n
@@ -7324,7 +7324,7 @@ function av(e, t, n) {
7324
7324
  l.x = p.x + t.clientLeft, l.y = p.y + t.clientTop;
7325
7325
  } else o && u();
7326
7326
  s && !r && o && u();
7327
- const d = o && !r && !s ? Dl(o, a) : Tt(0), f = i.left + a.scrollLeft - l.x - d.x, h = i.top + a.scrollTop - l.y - d.y;
7327
+ const d = o && !r && !s ? Ll(o, a) : Tt(0), f = i.left + a.scrollLeft - l.x - d.x, h = i.top + a.scrollTop - l.y - d.y;
7328
7328
  return {
7329
7329
  x: f,
7330
7330
  y: h,
@@ -7343,7 +7343,7 @@ function Aa(e, t) {
7343
7343
  let n = e.offsetParent;
7344
7344
  return _t(e) === n && (n = n.ownerDocument.body), n;
7345
7345
  }
7346
- function Vl(e, t) {
7346
+ function Fl(e, t) {
7347
7347
  const n = qe(e);
7348
7348
  if (fo(e))
7349
7349
  return n;
@@ -7362,7 +7362,7 @@ function Vl(e, t) {
7362
7362
  return r && $t(r) && ts(r) && !ti(r) ? n : r || Mg(e) || n;
7363
7363
  }
7364
7364
  const cv = async function(e) {
7365
- const t = this.getOffsetParent || Vl, n = this.getDimensions, r = await n(e.floating);
7365
+ const t = this.getOffsetParent || Fl, n = this.getDimensions, r = await n(e.floating);
7366
7366
  return {
7367
7367
  reference: av(e.reference, await t(e.floating), e.strategy),
7368
7368
  floating: {
@@ -7380,7 +7380,7 @@ const uv = {
7380
7380
  convertOffsetParentRelativeRectToViewportRelativeRect: Jb,
7381
7381
  getDocumentElement: _t,
7382
7382
  getClippingRect: sv,
7383
- getOffsetParent: Vl,
7383
+ getOffsetParent: Fl,
7384
7384
  getElementRects: cv,
7385
7385
  getClientRects: ev,
7386
7386
  getDimensions: iv,
@@ -7388,7 +7388,7 @@ const uv = {
7388
7388
  isElement: Me,
7389
7389
  isRTL: lv
7390
7390
  };
7391
- function Fl(e, t) {
7391
+ function $l(e, t) {
7392
7392
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
7393
7393
  }
7394
7394
  function dv(e, t) {
@@ -7422,7 +7422,7 @@ function dv(e, t) {
7422
7422
  i(!1, 1e-7);
7423
7423
  }, 1e3);
7424
7424
  }
7425
- S === 1 && !Fl(u, e.getBoundingClientRect()) && i(), w = !1;
7425
+ S === 1 && !$l(u, e.getBoundingClientRect()) && i(), w = !1;
7426
7426
  }
7427
7427
  try {
7428
7428
  n = new IntersectionObserver(R, {
@@ -7464,7 +7464,7 @@ function Ts(e, t, n, r) {
7464
7464
  l && m();
7465
7465
  function m() {
7466
7466
  const y = bn(e);
7467
- g && !Fl(g, y) && n(), g = y, b = requestAnimationFrame(m);
7467
+ g && !$l(g, y) && n(), g = y, b = requestAnimationFrame(m);
7468
7468
  }
7469
7469
  return n(), () => {
7470
7470
  var y;
@@ -7487,7 +7487,7 @@ const fv = Kb, pv = qb, mv = Wb, hv = Xb, gv = jb, Ma = Hb, bv = Yb, vv = (e, t,
7487
7487
  });
7488
7488
  };
7489
7489
  var yv = typeof document < "u", xv = function() {
7490
- }, zr = yv ? Zf : xv;
7490
+ }, zr = yv ? Qf : xv;
7491
7491
  function no(e, t) {
7492
7492
  if (e === t)
7493
7493
  return !0;
@@ -7518,11 +7518,11 @@ function no(e, t) {
7518
7518
  }
7519
7519
  return e !== e && t !== t;
7520
7520
  }
7521
- function $l(e) {
7521
+ function zl(e) {
7522
7522
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
7523
7523
  }
7524
7524
  function _a(e, t) {
7525
- const n = $l(e);
7525
+ const n = zl(e);
7526
7526
  return Math.round(t * n) / n;
7527
7527
  }
7528
7528
  function ns(e) {
@@ -7531,7 +7531,7 @@ function ns(e) {
7531
7531
  t.current = e;
7532
7532
  }), t;
7533
7533
  }
7534
- function zl(e) {
7534
+ function Bl(e) {
7535
7535
  e === void 0 && (e = {});
7536
7536
  const {
7537
7537
  placement: t = "bottom",
@@ -7616,7 +7616,7 @@ function zl(e) {
7616
7616
  return a ? {
7617
7617
  ...V,
7618
7618
  transform: "translate(" + te + "px, " + T + "px)",
7619
- ...$l(N.floating) >= 1.5 && {
7619
+ ...zl(N.floating) >= 1.5 && {
7620
7620
  willChange: "transform"
7621
7621
  }
7622
7622
  } : {
@@ -7654,38 +7654,38 @@ const wv = (e) => {
7654
7654
  }).fn(n) : {};
7655
7655
  }
7656
7656
  };
7657
- }, Bl = (e, t) => {
7657
+ }, Gl = (e, t) => {
7658
7658
  const n = fv(e);
7659
7659
  return {
7660
7660
  name: n.name,
7661
7661
  fn: n.fn,
7662
7662
  options: [e, t]
7663
7663
  };
7664
- }, Gl = (e, t) => {
7664
+ }, Hl = (e, t) => {
7665
7665
  const n = pv(e);
7666
7666
  return {
7667
7667
  name: n.name,
7668
7668
  fn: n.fn,
7669
7669
  options: [e, t]
7670
7670
  };
7671
- }, Hl = (e, t) => ({
7671
+ }, Wl = (e, t) => ({
7672
7672
  fn: bv(e).fn,
7673
7673
  options: [e, t]
7674
- }), Wl = (e, t) => {
7674
+ }), jl = (e, t) => {
7675
7675
  const n = mv(e);
7676
7676
  return {
7677
7677
  name: n.name,
7678
7678
  fn: n.fn,
7679
7679
  options: [e, t]
7680
7680
  };
7681
- }, jl = (e, t) => {
7681
+ }, Ul = (e, t) => {
7682
7682
  const n = hv(e);
7683
7683
  return {
7684
7684
  name: n.name,
7685
7685
  fn: n.fn,
7686
7686
  options: [e, t]
7687
7687
  };
7688
- }, Ul = (e, t) => {
7688
+ }, Kl = (e, t) => {
7689
7689
  const n = gv(e);
7690
7690
  return {
7691
7691
  name: n.name,
@@ -7744,7 +7744,7 @@ function Sv(e, t = {}) {
7744
7744
  }), !H)
7745
7745
  return;
7746
7746
  }
7747
- const ue = Wg(O) ? O.nativeEvent : O, I = de(Qc, ue);
7747
+ const ue = Wg(O) ? O.nativeEvent : O, I = de(Jc, ue);
7748
7748
  n.setOpen(!1, I), !k && !I.isPropagationAllowed && O.stopPropagation();
7749
7749
  }), G = re((O) => {
7750
7750
  const A = z();
@@ -8112,7 +8112,7 @@ function Nr() {
8112
8112
  p: null
8113
8113
  };
8114
8114
  }
8115
- function Kl(e, t = {}) {
8115
+ function ql(e, t = {}) {
8116
8116
  let n = Nr();
8117
8117
  const { resultEqualityCheck: r } = t;
8118
8118
  let o, s = 0;
@@ -8149,7 +8149,7 @@ function Kl(e, t = {}) {
8149
8149
  s = 0;
8150
8150
  }, i;
8151
8151
  }
8152
- function ql(e, ...t) {
8152
+ function Yl(e, ...t) {
8153
8153
  const n = typeof e == "function" ? {
8154
8154
  memoize: e,
8155
8155
  memoizeOptions: t
@@ -8165,7 +8165,7 @@ function ql(e, ...t) {
8165
8165
  }, {
8166
8166
  memoize: f,
8167
8167
  memoizeOptions: h = [],
8168
- argsMemoize: p = Kl,
8168
+ argsMemoize: p = ql,
8169
8169
  argsMemoizeOptions: b = [],
8170
8170
  devModeChecks: g = {}
8171
8171
  } = d, m = Da(h), y = Da(b), v = Av(o), C = f(function() {
@@ -8223,7 +8223,7 @@ function ql(e, ...t) {
8223
8223
  withTypes: () => r
8224
8224
  }), r;
8225
8225
  }
8226
- var Gv = /* @__PURE__ */ ql(Kl), Hv = Object.assign(
8226
+ var Gv = /* @__PURE__ */ Yl(ql), Hv = Object.assign(
8227
8227
  (e, t = Gv) => {
8228
8228
  Pv(
8229
8229
  e,
@@ -8239,7 +8239,7 @@ var Gv = /* @__PURE__ */ ql(Kl), Hv = Object.assign(
8239
8239
  },
8240
8240
  { withTypes: () => Hv }
8241
8241
  );
8242
- ql({
8242
+ Yl({
8243
8243
  memoize: Fv,
8244
8244
  memoizeOptions: {
8245
8245
  maxSize: 1,
@@ -8483,7 +8483,7 @@ function ey(e, t, n, r, o) {
8483
8483
  function ty(e, t, n, r, o) {
8484
8484
  return Xv.useSyncExternalStoreWithSelector(e.subscribe, e.getSnapshot, e.getSnapshot, (s) => t(s, n, r, o));
8485
8485
  }
8486
- class Yl {
8486
+ class Xl {
8487
8487
  /**
8488
8488
  * The current state of the store.
8489
8489
  * This property is updated immediately when the state changes as a result of calling {@link setState}, {@link update}, or {@link set}.
@@ -8565,7 +8565,7 @@ class Yl {
8565
8565
  return _(this, t, n, r, o);
8566
8566
  }
8567
8567
  }
8568
- class ny extends Yl {
8568
+ class ny extends Xl {
8569
8569
  /**
8570
8570
  * Creates a new ReactStore instance.
8571
8571
  *
@@ -8741,7 +8741,7 @@ class oy extends ny {
8741
8741
  setOpen = (t, n) => {
8742
8742
  if ((!t || !this.state.open || // Prevent a pending hover-open from overwriting a click-open event, while allowing
8743
8743
  // click events to upgrade a hover-open.
8744
- pl(n.event)) && (this.context.dataRef.current.openEvent = t ? n.event : void 0), !this.context.noEmit) {
8744
+ ml(n.event)) && (this.context.dataRef.current.openEvent = t ? n.event : void 0), !this.context.noEmit) {
8745
8745
  const r = {
8746
8746
  open: t,
8747
8747
  reason: n.reason,
@@ -8815,12 +8815,12 @@ class sy {
8815
8815
  return this.idMap.size;
8816
8816
  }
8817
8817
  }
8818
- function Xl(e) {
8818
+ function Zl(e) {
8819
8819
  const {
8820
8820
  open: t = !1,
8821
8821
  onOpenChange: n,
8822
8822
  elements: r = {}
8823
- } = e, o = Zs(), s = kl() != null;
8823
+ } = e, o = Zs(), s = Il() != null;
8824
8824
  if (process.env.NODE_ENV !== "production") {
8825
8825
  const a = r.reference;
8826
8826
  a && !Me(a) && console.error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `context.setPositionReference()`", "instead.");
@@ -8847,7 +8847,7 @@ function iy(e = {}) {
8847
8847
  const {
8848
8848
  nodeId: t,
8849
8849
  externalTree: n
8850
- } = e, r = Xl(e), o = e.rootContext || r, s = {
8850
+ } = e, r = Zl(e), o = e.rootContext || r, s = {
8851
8851
  reference: o.useState("referenceElement"),
8852
8852
  floating: o.useState("floatingElement"),
8853
8853
  domReference: o.useState("domReferenceElement")
@@ -8855,7 +8855,7 @@ function iy(e = {}) {
8855
8855
  oe(() => {
8856
8856
  s.domReference && (l.current = s.domReference);
8857
8857
  }, [s.domReference]);
8858
- const d = zl({
8858
+ const d = Bl({
8859
8859
  ...e,
8860
8860
  elements: {
8861
8861
  ...s,
@@ -8941,7 +8941,7 @@ function Tr(e, t, n) {
8941
8941
  const r = /* @__PURE__ */ new Map(), o = n === "item", s = {};
8942
8942
  n === "floating" && (s.tabIndex = -1, s[Ss] = "");
8943
8943
  for (const i in e)
8944
- o && e && (i === ll || i === ul) || (s[i] = e[i]);
8944
+ o && e && (i === ul || i === dl) || (s[i] = e[i]);
8945
8945
  for (let i = 0; i < t.length; i += 1) {
8946
8946
  let a;
8947
8947
  const l = t[i]?.[n];
@@ -8952,7 +8952,7 @@ function Tr(e, t, n) {
8952
8952
  function Wa(e, t, n, r) {
8953
8953
  for (const o in t) {
8954
8954
  const s = t[o];
8955
- n && (o === ll || o === ul) || (o.startsWith("on") ? (r.has(o) || r.set(o, []), typeof s == "function" && (r.get(o)?.push(s), e[o] = (...i) => r.get(o)?.map((a) => a(...i)).find((a) => a !== void 0))) : e[o] = s);
8955
+ n && (o === ul || o === dl) || (o.startsWith("on") ? (r.has(o) || r.set(o, []), typeof s == "function" && (r.get(o)?.push(s), e[o] = (...i) => r.get(o)?.map((a) => a(...i)).find((a) => a !== void 0))) : e[o] = s);
8956
8956
  }
8957
8957
  }
8958
8958
  const cy = "Escape";
@@ -9004,7 +9004,7 @@ function dy(e, t) {
9004
9004
  externalTree: j
9005
9005
  } = t;
9006
9006
  process.env.NODE_ENV !== "production" && (h && (p || console.warn("`useListNavigation` looping must be enabled to allow escaping."), m || console.warn("`useListNavigation` must be virtual to allow escaping.")), R === "vertical" && S > 1 && console.warn("In grid list navigation mode (`cols` > 1), the `orientation` should", 'be either "horizontal" or "both".'));
9007
- const W = Is(o), P = gt(W), q = kl(), Y = yo(j);
9007
+ const W = Is(o), P = gt(W), q = Il(), Y = yo(j);
9008
9008
  oe(() => {
9009
9009
  i.current.orientation = R;
9010
9010
  }, [i, R]);
@@ -9178,10 +9178,10 @@ function dy(e, t) {
9178
9178
  }
9179
9179
  }), [ue, $, P, R, z, n, r, m, s]), H = c.useMemo(() => {
9180
9180
  function M(D) {
9181
- y === "auto" && dl(D.nativeEvent) && (N.current = !m);
9181
+ y === "auto" && fl(D.nativeEvent) && (N.current = !m);
9182
9182
  }
9183
9183
  function K(D) {
9184
- N.current = y, y === "auto" && fl(D.nativeEvent) && (N.current = !0);
9184
+ N.current = y, y === "auto" && pl(D.nativeEvent) && (N.current = !0);
9185
9185
  }
9186
9186
  return {
9187
9187
  onKeyDown(D) {
@@ -9293,7 +9293,7 @@ function my(e) {
9293
9293
  e || n(l || // On iOS Safari, the hitslop around touch targets means tapping outside an element's
9294
9294
  // bounds does not fire `pointerdown` but does fire `mousedown`. The `interactionType`
9295
9295
  // will be "" in that case.
9296
- (cl ? "touch" : ""));
9296
+ (ll ? "touch" : ""));
9297
9297
  }), o = c.useCallback(() => {
9298
9298
  n(null);
9299
9299
  }, []), {
@@ -9333,7 +9333,7 @@ const hy = {
9333
9333
  open(e) {
9334
9334
  return e ? gy : null;
9335
9335
  }
9336
- }, Zl = {
9336
+ }, Ql = {
9337
9337
  open(e) {
9338
9338
  return e ? by : vy;
9339
9339
  },
@@ -9344,7 +9344,7 @@ const hy = {
9344
9344
  function Cy(e) {
9345
9345
  return Ys(19) ? e : e ? "true" : void 0;
9346
9346
  }
9347
- const Ql = /* @__PURE__ */ c.forwardRef(function(t, n) {
9347
+ const Jl = /* @__PURE__ */ c.forwardRef(function(t, n) {
9348
9348
  const {
9349
9349
  cutout: r,
9350
9350
  ...o
@@ -9379,7 +9379,7 @@ const Ql = /* @__PURE__ */ c.forwardRef(function(t, n) {
9379
9379
  }
9380
9380
  });
9381
9381
  });
9382
- process.env.NODE_ENV !== "production" && (Ql.displayName = "InternalBackdrop");
9382
+ process.env.NODE_ENV !== "production" && (Jl.displayName = "InternalBackdrop");
9383
9383
  function Ey(e) {
9384
9384
  const t = c.useRef(!0);
9385
9385
  t.current && (t.current = !1, e());
@@ -9469,7 +9469,7 @@ function at(e, t) {
9469
9469
  function jn(e, t) {
9470
9470
  return t && e != null ? t(e) ?? "" : e && typeof e == "object" && "value" in e && "label" in e ? Ms(e.value) : Ms(e);
9471
9471
  }
9472
- function Jl(e, t, n) {
9472
+ function eu(e, t, n) {
9473
9473
  function r() {
9474
9474
  return at(e, n);
9475
9475
  }
@@ -9495,7 +9495,7 @@ function Jl(e, t, n) {
9495
9495
  }
9496
9496
  function Ny(e, t, n) {
9497
9497
  return e.reduce((r, o, s) => (s > 0 && r.push(", "), r.push(/* @__PURE__ */ x(c.Fragment, {
9498
- children: Jl(o, t, n)
9498
+ children: eu(o, t, n)
9499
9499
  }, s)), r), []);
9500
9500
  }
9501
9501
  const L = {
@@ -9587,7 +9587,7 @@ const Oy = {
9587
9587
  [ja.invalid]: ""
9588
9588
  };
9589
9589
  }
9590
- }, eu = /* @__PURE__ */ c.createContext({
9590
+ }, tu = /* @__PURE__ */ c.createContext({
9591
9591
  invalid: void 0,
9592
9592
  name: void 0,
9593
9593
  validityData: {
@@ -9632,9 +9632,9 @@ const Oy = {
9632
9632
  }
9633
9633
  }
9634
9634
  });
9635
- process.env.NODE_ENV !== "production" && (eu.displayName = "FieldRootContext");
9635
+ process.env.NODE_ENV !== "production" && (tu.displayName = "FieldRootContext");
9636
9636
  function ar(e = !0) {
9637
- const t = c.useContext(eu);
9637
+ const t = c.useContext(tu);
9638
9638
  if (t.setValidityData === _e && !e)
9639
9639
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>." : kt(28));
9640
9640
  return t;
@@ -9648,7 +9648,7 @@ function Ty(e, t) {
9648
9648
  }
9649
9649
  };
9650
9650
  }
9651
- const tu = /* @__PURE__ */ c.createContext({
9651
+ const nu = /* @__PURE__ */ c.createContext({
9652
9652
  formRef: {
9653
9653
  current: {
9654
9654
  fields: /* @__PURE__ */ new Map()
@@ -9661,9 +9661,9 @@ const tu = /* @__PURE__ */ c.createContext({
9661
9661
  current: !1
9662
9662
  }
9663
9663
  });
9664
- process.env.NODE_ENV !== "production" && (tu.displayName = "FormContext");
9665
- function nu() {
9666
- return c.useContext(tu);
9664
+ process.env.NODE_ENV !== "production" && (nu.displayName = "FormContext");
9665
+ function ru() {
9666
+ return c.useContext(nu);
9667
9667
  }
9668
9668
  function Ay(e) {
9669
9669
  const {
@@ -9675,7 +9675,7 @@ function Ay(e) {
9675
9675
  commit: i
9676
9676
  } = e, {
9677
9677
  formRef: a
9678
- } = nu(), {
9678
+ } = ru(), {
9679
9679
  invalid: l,
9680
9680
  markedDirtyRef: u,
9681
9681
  validityData: d,
@@ -9707,7 +9707,7 @@ function Ay(e) {
9707
9707
  };
9708
9708
  }, [a, r]);
9709
9709
  }
9710
- const ru = /* @__PURE__ */ c.createContext({
9710
+ const ou = /* @__PURE__ */ c.createContext({
9711
9711
  controlId: void 0,
9712
9712
  registerControlId: _e,
9713
9713
  labelId: void 0,
@@ -9716,11 +9716,11 @@ const ru = /* @__PURE__ */ c.createContext({
9716
9716
  setMessageIds: _e,
9717
9717
  getDescriptionProps: (e) => e
9718
9718
  });
9719
- process.env.NODE_ENV !== "production" && (ru.displayName = "LabelableContext");
9719
+ process.env.NODE_ENV !== "production" && (ou.displayName = "LabelableContext");
9720
9720
  function xi() {
9721
- return c.useContext(ru);
9721
+ return c.useContext(ou);
9722
9722
  }
9723
- function ou(e = {}) {
9723
+ function su(e = {}) {
9724
9724
  const {
9725
9725
  id: t,
9726
9726
  implicit: n = !1,
@@ -9772,8 +9772,8 @@ function _y(e, t, n) {
9772
9772
  };
9773
9773
  }
9774
9774
  const Ua = /* @__PURE__ */ new Map();
9775
- function su(e) {
9776
- return Array.isArray(e) ? e.map((t) => su(t)).join(",") : e == null ? "" : String(e);
9775
+ function iu(e) {
9776
+ return Array.isArray(e) ? e.map((t) => iu(t)).join(",") : e == null ? "" : String(e);
9777
9777
  }
9778
9778
  function Dy(e = {}) {
9779
9779
  const t = {
@@ -9781,7 +9781,7 @@ function Dy(e = {}) {
9781
9781
  sensitivity: "base",
9782
9782
  ignorePunctuation: !0,
9783
9783
  ...e
9784
- }, n = `${su(e.locale)}|${JSON.stringify(t)}`, r = Ua.get(n);
9784
+ }, n = `${iu(e.locale)}|${JSON.stringify(t)}`, r = Ua.get(n);
9785
9785
  if (r)
9786
9786
  return r;
9787
9787
  const o = new Intl.Collator(e.locale, t), s = {
@@ -9818,8 +9818,8 @@ function Mr(e, t) {
9818
9818
  n.current = e;
9819
9819
  }, [e]);
9820
9820
  }
9821
- const iu = /* @__PURE__ */ Symbol("none"), hn = {
9822
- value: iu,
9821
+ const au = /* @__PURE__ */ Symbol("none"), hn = {
9822
+ value: au,
9823
9823
  index: -1
9824
9824
  };
9825
9825
  function Vy(e) {
@@ -9861,7 +9861,7 @@ function Vy(e) {
9861
9861
  submitOnItemClick: te = !1
9862
9862
  } = e, {
9863
9863
  clearErrors: T
9864
- } = nu(), {
9864
+ } = ru(), {
9865
9865
  setDirty: we,
9866
9866
  validityData: fe,
9867
9867
  shouldValidateOnChange: ye,
@@ -9872,7 +9872,7 @@ function Vy(e) {
9872
9872
  setFocused: Se,
9873
9873
  validationMode: X,
9874
9874
  validation: pe
9875
- } = ar(), xe = ou({
9875
+ } = ar(), xe = su({
9876
9876
  id: t
9877
9877
  }), O = Ly({
9878
9878
  locale: V
@@ -9936,7 +9936,7 @@ function Vy(e) {
9936
9936
  it(se, Ht, E) && Z.push(se);
9937
9937
  }
9938
9938
  return Z;
9939
- }, [y, ur, m, xt, Ht, z, it, E, Wt]), ut = c.useMemo(() => xt ? wt.flatMap((se) => se.items) : wt, [wt, xt]), ve = vt(() => new Yl({
9939
+ }, [y, ur, m, xt, Ht, z, it, E, Wt]), ut = c.useMemo(() => xt ? wt.flatMap((se) => se.items) : wt, [wt, xt]), ve = vt(() => new Xl({
9940
9940
  id: xe,
9941
9941
  selectedValue: le,
9942
9942
  open: Le,
@@ -9996,28 +9996,28 @@ function Vy(e) {
9996
9996
  getItemProps: () => et,
9997
9997
  forceMount: _e,
9998
9998
  requestSubmit: _e
9999
- })).current, jt = l === "none" ? je : le, Af = c.useMemo(() => l === "none" ? jt : Array.isArray(le) ? le.map((Z) => jn(Z, F)) : jn(le, F), [jt, F, l, le]), _o = re(u), Do = re(n), dr = _(ve, L.activeIndex), Mf = _(ve, L.selectedIndex), fr = _(ve, L.positionerElement), Wi = _(ve, L.listElement), zn = _(ve, L.triggerElement), Lo = _(ve, L.inputElement), Ct = _(ve, L.inline), Ut = _(ve, L.inputInsidePopup), _f = gt(zn), {
9999
+ })).current, jt = l === "none" ? je : le, Mf = c.useMemo(() => l === "none" ? jt : Array.isArray(le) ? le.map((Z) => jn(Z, F)) : jn(le, F), [jt, F, l, le]), _o = re(u), Do = re(n), dr = _(ve, L.activeIndex), _f = _(ve, L.selectedIndex), fr = _(ve, L.positionerElement), Wi = _(ve, L.listElement), zn = _(ve, L.triggerElement), Lo = _(ve, L.inputElement), Ct = _(ve, L.inline), Ut = _(ve, L.inputInsidePopup), Df = gt(zn), {
10000
10000
  mounted: ji,
10001
- setMounted: Df,
10001
+ setMounted: Lf,
10002
10002
  transitionStatus: Vo
10003
- } = tl(Le), {
10003
+ } = nl(Le), {
10004
10004
  openMethod: Ui,
10005
10005
  triggerProps: Fo,
10006
- reset: Lf
10006
+ reset: Vf
10007
10007
  } = my(Le);
10008
10008
  Ay({
10009
10009
  id: xe,
10010
10010
  name: lt,
10011
10011
  commit: pe.commit,
10012
10012
  value: jt,
10013
- controlRef: Ut ? _f : K,
10014
- getValue: () => Af
10013
+ controlRef: Ut ? Df : K,
10014
+ getValue: () => Mf
10015
10015
  });
10016
10016
  const pr = re(() => {
10017
10017
  m ? U.current = ut.map((Z) => at(Z, E)) : ve.set("forceMounted", !0);
10018
- }), Vf = c.useRef(le);
10018
+ }), Ff = c.useRef(le);
10019
10019
  oe(() => {
10020
- le !== Vf.current && pr();
10020
+ le !== Ff.current && pr();
10021
10021
  }, [pr, le]);
10022
10022
  const Et = re((Z) => {
10023
10023
  ve.update(Z);
@@ -10060,7 +10060,7 @@ function Vy(e) {
10060
10060
  if (s?.(Z, se), se.isCanceled)
10061
10061
  return;
10062
10062
  st(Z), (l === "none" && M.current && q || ot && !ve.state.inputInsidePopup) && Nt(at(Z, E), de(se.reason, se.event)), ot && Z != null && se.reason !== Nn && A && !Ct && I(Xe);
10063
- }), Ff = re((Z, se) => {
10063
+ }), $f = re((Z, se) => {
10064
10064
  let he = se;
10065
10065
  if (he === void 0) {
10066
10066
  if (dr === null)
@@ -10075,8 +10075,8 @@ function Vy(e) {
10075
10075
  return;
10076
10076
  }
10077
10077
  if (Ye) {
10078
- const fn = Array.isArray(le) ? le : [], Xf = Sy(fn, he, ve.state.isItemEqualToValue) ? ky(fn, he, ve.state.isItemEqualToValue) : [...fn, he];
10079
- if (mr(Xf, Ke), !(K.current ? K.current.value.trim() !== "" : !1))
10078
+ const fn = Array.isArray(le) ? le : [], Zf = Sy(fn, he, ve.state.isItemEqualToValue) ? ky(fn, he, ve.state.isItemEqualToValue) : [...fn, he];
10079
+ if (mr(Zf, Ke), !(K.current ? K.current.value.trim() !== "" : !1))
10080
10080
  return;
10081
10081
  ve.state.inputInsidePopup ? Nt("", de(Xt, Ke.event)) : Bn(!1, Ke);
10082
10082
  } else
@@ -10087,7 +10087,7 @@ function Vy(e) {
10087
10087
  const Z = ve.state.inputElement?.form;
10088
10088
  Z && typeof Z.requestSubmit == "function" && Z.requestSubmit();
10089
10089
  }), zo = re(() => {
10090
- if (Df(!1), Do?.(!1), $(!1), Lf(), I(null), Et(l === "none" ? {
10090
+ if (Lf(!1), Do?.(!1), $(!1), Vf(), I(null), Et(l === "none" ? {
10091
10091
  activeIndex: null,
10092
10092
  selectedIndex: null
10093
10093
  } : {
@@ -10099,13 +10099,13 @@ function Vy(e) {
10099
10099
  const Z = at(le, E);
10100
10100
  K.current && K.current.value !== Z && Nt(Z, de(Z === "" ? Xt : ht));
10101
10101
  }
10102
- }), $f = c.useMemo(() => Ct && fr ? {
10102
+ }), zf = c.useMemo(() => Ct && fr ? {
10103
10103
  current: fr.closest('[role="dialog"]')
10104
10104
  } : M, [Ct, fr]);
10105
10105
  ai({
10106
10106
  enabled: !e.actionsRef,
10107
10107
  open: Le,
10108
- ref: $f,
10108
+ ref: zf,
10109
10109
  onComplete() {
10110
10110
  Le || zo();
10111
10111
  }
@@ -10149,7 +10149,7 @@ function Vy(e) {
10149
10149
  }))), ve.set("activeIndex", null);
10150
10150
  return;
10151
10151
  }
10152
- const Ue = he[$e], Ke = De.current.value, dn = Ke !== iu && vn(Ue, Ke, ve.state.isItemEqualToValue);
10152
+ const Ue = he[$e], Ke = De.current.value, dn = Ke !== au && vn(Ue, Ke, ve.state.isItemEqualToValue);
10153
10153
  (De.current.index !== $e || !dn) && (De.current = {
10154
10154
  value: Ue,
10155
10155
  index: $e
@@ -10181,7 +10181,7 @@ function Vy(e) {
10181
10181
  const Z = at(le, E);
10182
10182
  je !== Z && Nt(Z, de(ht));
10183
10183
  });
10184
- const hr = Xl({
10184
+ const hr = Zl({
10185
10185
  open: Ct ? !0 : Le,
10186
10186
  onOpenChange: Bn,
10187
10187
  elements: {
@@ -10191,7 +10191,7 @@ function Vy(e) {
10191
10191
  });
10192
10192
  let Bo, Go;
10193
10193
  Ct || (Bo = g ? "grid" : "listbox", Go = Le ? "true" : "false");
10194
- const zf = c.useMemo(() => {
10194
+ const Bf = c.useMemo(() => {
10195
10195
  const Z = Lo?.tagName === "INPUT", se = Z || Le, he = Z ? {
10196
10196
  autoComplete: "off",
10197
10197
  spellCheck: "false",
@@ -10204,7 +10204,7 @@ function Vy(e) {
10204
10204
  role: "presentation"
10205
10205
  }
10206
10206
  };
10207
- }, [Lo, Le, Go, Bo, Wi?.id, N]), Bf = Tl(hr, {
10207
+ }, [Lo, Le, Go, Bo, Wi?.id, N]), Gf = Al(hr, {
10208
10208
  enabled: !h && !Je && C,
10209
10209
  event: "mousedown-only",
10210
10210
  toggle: !1,
@@ -10212,7 +10212,7 @@ function Vy(e) {
10212
10212
  // This avoids top-bottom flip flickers if the preferred position is "top" when first tapping.
10213
10213
  touchOpenDelay: Ut ? 0 : 50,
10214
10214
  reason: Eg
10215
- }), Gf = Sv(hr, {
10215
+ }), Hf = Sv(hr, {
10216
10216
  enabled: !h && !Je && !Ct,
10217
10217
  outsidePressEvent: {
10218
10218
  mouse: "sloppy",
@@ -10227,12 +10227,12 @@ function Vy(e) {
10227
10227
  const se = ct(Z);
10228
10228
  return !Ee(zn, se) && !Ee(He.current, se) && !Ee(be.current, se);
10229
10229
  }
10230
- }), Hf = dy(hr, {
10230
+ }), Wf = dy(hr, {
10231
10231
  enabled: !h && !Je,
10232
10232
  id: xe,
10233
10233
  listRef: H,
10234
10234
  activeIndex: dr,
10235
- selectedIndex: Mf,
10235
+ selectedIndex: _f,
10236
10236
  virtual: !0,
10237
10237
  loopFocus: S,
10238
10238
  allowEscape: S && !Ie,
@@ -10258,7 +10258,7 @@ function Vy(e) {
10258
10258
  getReferenceProps: Ho,
10259
10259
  getFloatingProps: Wo,
10260
10260
  getItemProps: jo
10261
- } = ay([zf, Bf, Gf, Hf]);
10261
+ } = ay([Bf, Gf, Hf, Wf]);
10262
10262
  Ey(() => {
10263
10263
  ve.update({
10264
10264
  inline: P,
@@ -10271,7 +10271,7 @@ function Vy(e) {
10271
10271
  setSelectedValue: mr,
10272
10272
  setIndices: Et,
10273
10273
  onItemHighlighted: _o,
10274
- handleSelection: Ff,
10274
+ handleSelection: $f,
10275
10275
  forceMount: pr,
10276
10276
  requestSubmit: $o
10277
10277
  });
@@ -10308,19 +10308,19 @@ function Vy(e) {
10308
10308
  requestSubmit: $o
10309
10309
  });
10310
10310
  }, [ve, xe, le, Le, ji, Vo, m, Wo, Ho, jo, Ui, Fo, l, lt, Je, h, p, pe, g, xt, W, Do, C, E, Y, j, te, Dt, P, $o, Ie]);
10311
- const Wf = tr(b, pe.inputRef), jf = c.useMemo(() => ({
10311
+ const jf = tr(b, pe.inputRef), Uf = c.useMemo(() => ({
10312
10312
  query: Xe,
10313
10313
  hasItems: yt,
10314
10314
  filteredItems: wt,
10315
10315
  flatFilteredItems: ut
10316
- }), [Xe, yt, wt, ut]), Uf = c.useMemo(() => Array.isArray(jt) ? "" : jn(jt, F), [jt, F]), Kf = Ye && Array.isArray(le) && le.length > 0, Uo = Ye || l === "none" ? void 0 : lt, qf = c.useMemo(() => !Ye || !Array.isArray(le) || !lt ? null : le.map((Z) => {
10316
+ }), [Xe, yt, wt, ut]), Kf = c.useMemo(() => Array.isArray(jt) ? "" : jn(jt, F), [jt, F]), qf = Ye && Array.isArray(le) && le.length > 0, Uo = Ye || l === "none" ? void 0 : lt, Yf = c.useMemo(() => !Ye || !Array.isArray(le) || !lt ? null : le.map((Z) => {
10317
10317
  const se = jn(Z, F);
10318
10318
  return /* @__PURE__ */ x("input", {
10319
10319
  type: "hidden",
10320
10320
  name: lt,
10321
10321
  value: se
10322
10322
  }, se);
10323
- }), [Ye, le, lt, F]), Yf = /* @__PURE__ */ Pe(c.Fragment, {
10323
+ }), [Ye, le, lt, F]), Xf = /* @__PURE__ */ Pe(c.Fragment, {
10324
10324
  children: [e.children, /* @__PURE__ */ x("input", {
10325
10325
  ...pe.getInputValidationProps({
10326
10326
  // Move focus when the hidden input is focused.
@@ -10353,30 +10353,30 @@ function Vy(e) {
10353
10353
  name: Uo,
10354
10354
  autoComplete: G,
10355
10355
  disabled: Je,
10356
- required: p && !Kf,
10356
+ required: p && !qf,
10357
10357
  readOnly: h,
10358
- value: Uf,
10359
- ref: Wf,
10358
+ value: Kf,
10359
+ ref: jf,
10360
10360
  style: Uo ? Ob : ci,
10361
10361
  tabIndex: -1,
10362
10362
  "aria-hidden": !0
10363
- }), qf]
10363
+ }), Yf]
10364
10364
  });
10365
10365
  return /* @__PURE__ */ x(mi.Provider, {
10366
10366
  value: ve,
10367
10367
  children: /* @__PURE__ */ x(hi.Provider, {
10368
10368
  value: hr,
10369
10369
  children: /* @__PURE__ */ x(gi.Provider, {
10370
- value: jf,
10370
+ value: Uf,
10371
10371
  children: /* @__PURE__ */ x(bi.Provider, {
10372
10372
  value: je,
10373
- children: Yf
10373
+ children: Xf
10374
10374
  })
10375
10375
  })
10376
10376
  })
10377
10377
  });
10378
10378
  }
10379
- const au = {
10379
+ const cu = {
10380
10380
  ...wy,
10381
10381
  ...Py,
10382
10382
  popupSide: (e) => e ? {
@@ -10401,7 +10401,7 @@ function Fy(e) {
10401
10401
  bottom: t.bottom + h / 2
10402
10402
  };
10403
10403
  }
10404
- const _r = 2, cu = /* @__PURE__ */ c.forwardRef(function(t, n) {
10404
+ const _r = 2, lu = /* @__PURE__ */ c.forwardRef(function(t, n) {
10405
10405
  const {
10406
10406
  render: r,
10407
10407
  className: o,
@@ -10421,7 +10421,7 @@ const _r = 2, cu = /* @__PURE__ */ c.forwardRef(function(t, n) {
10421
10421
  } = xi(), m = mt(), {
10422
10422
  filteredItems: y
10423
10423
  } = ln(), v = _(m, L.selectionMode), C = _(m, L.disabled), w = _(m, L.readOnly), R = _(m, L.required), k = _(m, L.mounted), S = _(m, L.popupSide), E = _(m, L.positionerElement), F = _(m, L.listElement), j = _(m, L.triggerProps), W = _(m, L.triggerElement), P = _(m, L.inputInsidePopup), q = _(m, L.id), Y = _(m, L.open), z = _(m, L.selectedValue), N = _(m, L.activeIndex), G = _(m, L.selectedIndex), V = _(m, L.hasSelectedValue), te = Co(), T = vi(), we = gn(), fe = d || C || i, ye = y.length === 0, ae = k && E ? S : null;
10424
- ou({
10424
+ su({
10425
10425
  id: P ? a : void 0
10426
10426
  });
10427
10427
  const ce = P ? a ?? q : a, ge = c.useRef("");
@@ -10445,7 +10445,7 @@ const _r = 2, cu = /* @__PURE__ */ c.forwardRef(function(t, n) {
10445
10445
  }
10446
10446
  }), {
10447
10447
  reference: pe
10448
- } = Tl(te, {
10448
+ } = Al(te, {
10449
10449
  enabled: !w && !C,
10450
10450
  event: "mousedown"
10451
10451
  }), {
@@ -10508,13 +10508,13 @@ const _r = 2, cu = /* @__PURE__ */ c.forwardRef(function(t, n) {
10508
10508
  fe || w || (I.key === "ArrowDown" || I.key === "ArrowUp") && (Ae(I), m.state.setOpen(!0, de(qn, I.nativeEvent)), m.state.inputRef.current?.focus());
10509
10509
  }
10510
10510
  }, b ? b.getValidationProps(l) : l, O],
10511
- stateAttributesMapping: au
10511
+ stateAttributesMapping: cu
10512
10512
  });
10513
10513
  });
10514
- process.env.NODE_ENV !== "production" && (cu.displayName = "ComboboxTrigger");
10514
+ process.env.NODE_ENV !== "production" && (lu.displayName = "ComboboxTrigger");
10515
10515
  const wi = /* @__PURE__ */ c.createContext(void 0);
10516
10516
  process.env.NODE_ENV !== "production" && (wi.displayName = "ComboboxChipsContext");
10517
- function lu() {
10517
+ function uu() {
10518
10518
  return c.useContext(wi);
10519
10519
  }
10520
10520
  const Ci = /* @__PURE__ */ c.createContext(void 0);
@@ -10541,9 +10541,9 @@ const Ri = /* @__PURE__ */ c.forwardRef(function(t, n) {
10541
10541
  validation: p
10542
10542
  } = ar(), {
10543
10543
  labelId: b
10544
- } = xi(), g = lu(), y = !!Ei(!0), v = mt(), {
10544
+ } = xi(), g = uu(), y = !!Ei(!0), v = mt(), {
10545
10545
  filteredItems: C
10546
- } = ln(), w = vi(), R = Uc(), k = _(v, L.required), S = _(v, L.disabled), E = _(v, L.readOnly), F = _(v, L.name), j = _(v, L.selectionMode), W = _(v, L.autoHighlight), P = _(v, L.inputProps), q = _(v, L.triggerProps), Y = _(v, L.open), z = _(v, L.mounted), N = _(v, L.selectedValue), G = _(v, L.popupSide), V = _(v, L.positionerElement), te = _(v, L.id), T = _(v, L.inline), we = !!W, fe = z && V ? G : null, ye = u || S || s, ae = C.length === 0, ge = Qs(i ?? (y || T ? void 0 : te)), [Ce, Se] = c.useState(null), X = c.useRef(!1), pe = c.useRef(null), xe = c.useRef(!1), O = re((I) => {
10546
+ } = ln(), w = vi(), R = Kc(), k = _(v, L.required), S = _(v, L.disabled), E = _(v, L.readOnly), F = _(v, L.name), j = _(v, L.selectionMode), W = _(v, L.autoHighlight), P = _(v, L.inputProps), q = _(v, L.triggerProps), Y = _(v, L.open), z = _(v, L.mounted), N = _(v, L.selectedValue), G = _(v, L.popupSide), V = _(v, L.positionerElement), te = _(v, L.id), T = _(v, L.inline), we = !!W, fe = z && V ? G : null, ye = u || S || s, ae = C.length === 0, ge = Qs(i ?? (y || T ? void 0 : te)), [Ce, Se] = c.useState(null), X = c.useRef(!1), pe = c.useRef(null), xe = c.useRef(!1), O = re((I) => {
10547
10547
  const H = y || v.state.inline;
10548
10548
  H && !v.state.hasInputValue && v.state.setInputValue("", de(ht)), v.update({
10549
10549
  inputElement: I,
@@ -10679,7 +10679,7 @@ const Ri = /* @__PURE__ */ c.forwardRef(function(t, n) {
10679
10679
  return;
10680
10680
  }
10681
10681
  if (!z && I.key === "Escape") {
10682
- const Q = j === "multiple" && Array.isArray(N) ? N.length === 0 : N === null, ie = de(Qc, I.nativeEvent), be = j === "multiple" ? [] : null;
10682
+ const Q = j === "multiple" && Array.isArray(N) ? N.length === 0 : N === null, ie = de(Jc, I.nativeEvent), be = j === "multiple" ? [] : null;
10683
10683
  v.state.setInputValue("", ie), v.state.setSelectedValue(be, ie), !Q && !v.state.inline && !ie.isPropagationAllowed && I.stopPropagation();
10684
10684
  return;
10685
10685
  }
@@ -10711,14 +10711,14 @@ const Ri = /* @__PURE__ */ c.forwardRef(function(t, n) {
10711
10711
  v.state.keyboardActiveRef.current = !1;
10712
10712
  }
10713
10713
  }, p ? p.getValidationProps(a) : a],
10714
- stateAttributesMapping: au
10714
+ stateAttributesMapping: cu
10715
10715
  });
10716
10716
  });
10717
10717
  process.env.NODE_ENV !== "production" && (Ri.displayName = "ComboboxInput");
10718
10718
  const $y = {
10719
- ...el,
10719
+ ...tl,
10720
10720
  ...xy
10721
- }, uu = /* @__PURE__ */ c.forwardRef(function(t, n) {
10721
+ }, du = /* @__PURE__ */ c.forwardRef(function(t, n) {
10722
10722
  const {
10723
10723
  render: r,
10724
10724
  className: o,
@@ -10741,7 +10741,7 @@ const $y = {
10741
10741
  mounted: k,
10742
10742
  transitionStatus: S,
10743
10743
  setMounted: E
10744
- } = tl(v), F = {
10744
+ } = nl(v), F = {
10745
10745
  disabled: C,
10746
10746
  open: b,
10747
10747
  transitionStatus: S
@@ -10781,7 +10781,7 @@ const $y = {
10781
10781
  });
10782
10782
  return a || k ? j : null;
10783
10783
  });
10784
- process.env.NODE_ENV !== "production" && (uu.displayName = "ComboboxClear");
10784
+ process.env.NODE_ENV !== "production" && (du.displayName = "ComboboxClear");
10785
10785
  const Si = /* @__PURE__ */ c.createContext(null);
10786
10786
  process.env.NODE_ENV !== "production" && (Si.displayName = "GroupCollectionContext");
10787
10787
  function zy() {
@@ -10799,7 +10799,7 @@ function By(e) {
10799
10799
  children: t
10800
10800
  });
10801
10801
  }
10802
- function du(e) {
10802
+ function fu(e) {
10803
10803
  const {
10804
10804
  children: t
10805
10805
  } = e, {
@@ -10809,7 +10809,7 @@ function du(e) {
10809
10809
  children: o.map(t)
10810
10810
  }) : null;
10811
10811
  }
10812
- const fu = /* @__PURE__ */ c.forwardRef(function(t, n) {
10812
+ const pu = /* @__PURE__ */ c.forwardRef(function(t, n) {
10813
10813
  var r;
10814
10814
  const {
10815
10815
  render: o,
@@ -10822,7 +10822,7 @@ const fu = /* @__PURE__ */ c.forwardRef(function(t, n) {
10822
10822
  l.set("positionerElement", q);
10823
10823
  }), E = re((q) => {
10824
10824
  l.set("listElement", q);
10825
- }), F = c.useMemo(() => typeof i == "function" ? r || (r = /* @__PURE__ */ x(du, {
10825
+ }), F = c.useMemo(() => typeof i == "function" ? r || (r = /* @__PURE__ */ x(fu, {
10826
10826
  children: i
10827
10827
  })) : i, [i]), j = {
10828
10828
  empty: k
@@ -10853,13 +10853,13 @@ const fu = /* @__PURE__ */ c.forwardRef(function(t, n) {
10853
10853
  }
10854
10854
  }, a]
10855
10855
  });
10856
- return w ? P : /* @__PURE__ */ x(Wc, {
10856
+ return w ? P : /* @__PURE__ */ x(jc, {
10857
10857
  elementsRef: b,
10858
10858
  labelsRef: h ? void 0 : p,
10859
10859
  children: P
10860
10860
  });
10861
10861
  });
10862
- process.env.NODE_ENV !== "production" && (fu.displayName = "ComboboxList");
10862
+ process.env.NODE_ENV !== "production" && (pu.displayName = "ComboboxList");
10863
10863
  const ki = /* @__PURE__ */ c.createContext(void 0);
10864
10864
  process.env.NODE_ENV !== "production" && (ki.displayName = "ComboboxPortalContext");
10865
10865
  function Gy() {
@@ -10868,20 +10868,20 @@ function Gy() {
10868
10868
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Combobox.Portal> is missing." : kt(20));
10869
10869
  return e;
10870
10870
  }
10871
- const pu = /* @__PURE__ */ c.forwardRef(function(t, n) {
10871
+ const mu = /* @__PURE__ */ c.forwardRef(function(t, n) {
10872
10872
  const {
10873
10873
  keepMounted: r = !1,
10874
10874
  ...o
10875
10875
  } = t, s = mt(), i = _(s, L.mounted), a = _(s, L.forceMounted);
10876
10876
  return i || r || a ? /* @__PURE__ */ x(ki.Provider, {
10877
10877
  value: r,
10878
- children: /* @__PURE__ */ x(Pl, {
10878
+ children: /* @__PURE__ */ x(Tl, {
10879
10879
  ref: n,
10880
10880
  ...o
10881
10881
  })
10882
10882
  }) : null;
10883
10883
  });
10884
- process.env.NODE_ENV !== "production" && (pu.displayName = "ComboboxPortal");
10884
+ process.env.NODE_ENV !== "production" && (mu.displayName = "ComboboxPortal");
10885
10885
  const Hy = (e) => ({
10886
10886
  name: "arrow",
10887
10887
  options: e,
@@ -10934,7 +10934,7 @@ const Hy = (e) => ({
10934
10934
  } = e.rects.reference, s = t === 0 && n === 0 && r === 0 && o === 0;
10935
10935
  return {
10936
10936
  data: {
10937
- referenceHidden: (await Ul().fn(e)).data?.referenceHidden || s
10937
+ referenceHidden: (await Kl().fn(e)).data?.referenceHidden || s
10938
10938
  }
10939
10939
  };
10940
10940
  }
@@ -10942,7 +10942,7 @@ const Hy = (e) => ({
10942
10942
  sideX: "left",
10943
10943
  sideY: "top"
10944
10944
  };
10945
- function mu(e, t, n) {
10945
+ function hu(e, t, n) {
10946
10946
  const r = e === "inline-start" || e === "inline-end";
10947
10947
  return {
10948
10948
  top: "top",
@@ -10957,7 +10957,7 @@ function Ka(e, t, n) {
10957
10957
  placement: o
10958
10958
  } = e;
10959
10959
  return {
10960
- side: mu(t, ft(o), n),
10960
+ side: hu(t, ft(o), n),
10961
10961
  align: Gt(o) || "center",
10962
10962
  anchor: {
10963
10963
  width: r.reference.width,
@@ -10995,7 +10995,7 @@ function Ky(e) {
10995
10995
  externalTree: w
10996
10996
  } = e, [R, k] = c.useState(null);
10997
10997
  !b && R !== null && k(null);
10998
- const S = g.side || "flip", E = g.align || "flip", F = g.fallbackAxisSide || "end", j = typeof t == "function" ? t : void 0, W = re(j), P = j ? W : t, q = gt(t), z = Uc() === "rtl", N = R || {
10998
+ const S = g.side || "flip", E = g.align || "flip", F = g.fallbackAxisSide || "end", j = typeof t == "function" ? t : void 0, W = re(j), P = j ? W : t, q = gt(t), z = Kc() === "rtl", N = R || {
10999
10999
  top: "top",
11000
11000
  right: "right",
11001
11001
  bottom: "bottom",
@@ -11019,14 +11019,14 @@ function Ky(e) {
11019
11019
  const ae = {
11020
11020
  boundary: a === "clipping-ancestors" ? "clippingAncestors" : a,
11021
11021
  padding: V
11022
- }, ce = c.useRef(null), ge = gt(o), Ce = gt(i), pe = [Bl((Te) => {
11022
+ }, ce = c.useRef(null), ge = gt(o), Ce = gt(i), pe = [Gl((Te) => {
11023
11023
  const Ie = Ka(Te, r, z), le = typeof ge.current == "function" ? ge.current(Ie) : ge.current, st = typeof Ce.current == "function" ? Ce.current(Ie) : Ce.current;
11024
11024
  return {
11025
11025
  mainAxis: le,
11026
11026
  crossAxis: st,
11027
11027
  alignmentAxis: st
11028
11028
  };
11029
- }, [typeof o != "function" ? o : 0, typeof i != "function" ? i : 0, z, r])], xe = E === "none" && S !== "shift", O = !xe && (u || m || S === "shift"), A = S === "none" ? null : Wl({
11029
+ }, [typeof o != "function" ? o : 0, typeof i != "function" ? i : 0, z, r])], xe = E === "none" && S !== "shift", O = !xe && (u || m || S === "shift"), A = S === "none" ? null : jl({
11030
11030
  ...ae,
11031
11031
  // Ensure the popup flips if it's been limited by its --available-height and it resizes.
11032
11032
  // Since the size() padding is smaller than the flip() padding, flip() will take precedence.
@@ -11039,7 +11039,7 @@ function Ky(e) {
11039
11039
  mainAxis: !m && S === "flip",
11040
11040
  crossAxis: E === "flip" ? "alignment" : !1,
11041
11041
  fallbackAxisSideDirection: F
11042
- }), $ = xe ? null : Gl((Te) => {
11042
+ }), $ = xe ? null : Hl((Te) => {
11043
11043
  const Ie = ze(Te.elements.floating).documentElement;
11044
11044
  return {
11045
11045
  ...ae,
@@ -11053,7 +11053,7 @@ function Ky(e) {
11053
11053
  } : void 0,
11054
11054
  mainAxis: E !== "none",
11055
11055
  crossAxis: O,
11056
- limiter: u || m ? void 0 : Hl((le) => {
11056
+ limiter: u || m ? void 0 : Wl((le) => {
11057
11057
  if (!ce.current)
11058
11058
  return {};
11059
11059
  const {
@@ -11066,7 +11066,7 @@ function Ky(e) {
11066
11066
  })
11067
11067
  };
11068
11068
  }, [ae, u, m, V, E]);
11069
- S === "shift" || E === "shift" || s === "center" ? pe.push($, A) : pe.push(A, $), pe.push(jl({
11069
+ S === "shift" || E === "shift" || s === "center" ? pe.push($, A) : pe.push(A, $), pe.push(Ul({
11070
11070
  ...ae,
11071
11071
  apply({
11072
11072
  elements: {
@@ -11161,7 +11161,7 @@ function Ky(e) {
11161
11161
  if (h && b && H.domReference && H.floating)
11162
11162
  return Ts(H.domReference, H.floating, D, ue);
11163
11163
  }, [h, b, H, D, ue]);
11164
- const Je = ft(Q), lt = mu(r, Je, z), Ye = Gt(Q) || "center", ot = !!K.hide?.referenceHidden;
11164
+ const Je = ft(Q), lt = hu(r, Je, z), Ye = Gt(Q) || "center", ot = !!K.hide?.referenceHidden;
11165
11165
  oe(() => {
11166
11166
  C && b && be && k(Je);
11167
11167
  }, [C, b, be, Je]);
@@ -11188,10 +11188,10 @@ function Ky(e) {
11188
11188
  function qa(e) {
11189
11189
  return e != null && "current" in e;
11190
11190
  }
11191
- function hu(e) {
11191
+ function gu(e) {
11192
11192
  return e === "starting" ? fg : et;
11193
11193
  }
11194
- const gu = /* @__PURE__ */ c.forwardRef(function(t, n) {
11194
+ const bu = /* @__PURE__ */ c.forwardRef(function(t, n) {
11195
11195
  const {
11196
11196
  render: r,
11197
11197
  className: o,
@@ -11261,22 +11261,22 @@ const gu = /* @__PURE__ */ c.forwardRef(function(t, n) {
11261
11261
  }), we = tt("div", t, {
11262
11262
  state: V,
11263
11263
  ref: [n, T],
11264
- props: [G, hu(q), y],
11265
- stateAttributesMapping: Zl
11264
+ props: [G, gu(q), y],
11265
+ stateAttributesMapping: Ql
11266
11266
  });
11267
11267
  return /* @__PURE__ */ Pe(Ci.Provider, {
11268
11268
  value: te,
11269
- children: [E && k && /* @__PURE__ */ x(Ql, {
11269
+ children: [E && k && /* @__PURE__ */ x(Jl, {
11270
11270
  inert: Cy(!S),
11271
11271
  cutout: W ?? j
11272
11272
  }), we]
11273
11273
  });
11274
11274
  });
11275
- process.env.NODE_ENV !== "production" && (gu.displayName = "ComboboxPositioner");
11275
+ process.env.NODE_ENV !== "production" && (bu.displayName = "ComboboxPositioner");
11276
11276
  const qy = {
11277
- ...Zl,
11278
- ...el
11279
- }, bu = /* @__PURE__ */ c.forwardRef(function(t, n) {
11277
+ ...Ql,
11278
+ ...tl
11279
+ }, vu = /* @__PURE__ */ c.forwardRef(function(t, n) {
11280
11280
  const {
11281
11281
  render: r,
11282
11282
  className: o,
@@ -11310,7 +11310,7 @@ const qy = {
11310
11310
  const F = ct(E.nativeEvent);
11311
11311
  b !== "touch" && (Ee(l.state.listElement, F) || F === E.currentTarget) && l.state.inputRef.current?.focus();
11312
11312
  }
11313
- }, hu(g), a],
11313
+ }, gu(g), a],
11314
11314
  stateAttributesMapping: qy
11315
11315
  }), k = s === void 0 ? m ? (E) => E === "touch" ? l.state.popupRef.current : y : !1 : s;
11316
11316
  let S;
@@ -11324,7 +11324,7 @@ const qy = {
11324
11324
  children: w
11325
11325
  });
11326
11326
  });
11327
- process.env.NODE_ENV !== "production" && (bu.displayName = "ComboboxPopup");
11327
+ process.env.NODE_ENV !== "production" && (vu.displayName = "ComboboxPopup");
11328
11328
  const Ii = /* @__PURE__ */ c.createContext(void 0);
11329
11329
  process.env.NODE_ENV !== "production" && (Ii.displayName = "ComboboxGroupContext");
11330
11330
  function Yy() {
@@ -11333,7 +11333,7 @@ function Yy() {
11333
11333
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxGroupContext is missing. ComboboxGroup parts must be placed within <Combobox.Group>." : kt(18));
11334
11334
  return e;
11335
11335
  }
11336
- const vu = /* @__PURE__ */ c.forwardRef(function(t, n) {
11336
+ const yu = /* @__PURE__ */ c.forwardRef(function(t, n) {
11337
11337
  const {
11338
11338
  render: r,
11339
11339
  className: o,
@@ -11358,8 +11358,8 @@ const vu = /* @__PURE__ */ c.forwardRef(function(t, n) {
11358
11358
  children: f
11359
11359
  }) : f;
11360
11360
  });
11361
- process.env.NODE_ENV !== "production" && (vu.displayName = "ComboboxGroup");
11362
- const yu = /* @__PURE__ */ c.forwardRef(function(t, n) {
11361
+ process.env.NODE_ENV !== "production" && (yu.displayName = "ComboboxGroup");
11362
+ const xu = /* @__PURE__ */ c.forwardRef(function(t, n) {
11363
11363
  const {
11364
11364
  render: r,
11365
11365
  className: o,
@@ -11377,15 +11377,15 @@ const yu = /* @__PURE__ */ c.forwardRef(function(t, n) {
11377
11377
  }, i]
11378
11378
  });
11379
11379
  });
11380
- process.env.NODE_ENV !== "production" && (yu.displayName = "ComboboxGroupLabel");
11381
- const xu = /* @__PURE__ */ c.createContext(void 0);
11382
- process.env.NODE_ENV !== "production" && (xu.displayName = "ComboboxItemContext");
11383
- const wu = /* @__PURE__ */ c.createContext(!1);
11384
- process.env.NODE_ENV !== "production" && (wu.displayName = "ComboboxRowContext");
11380
+ process.env.NODE_ENV !== "production" && (xu.displayName = "ComboboxGroupLabel");
11381
+ const wu = /* @__PURE__ */ c.createContext(void 0);
11382
+ process.env.NODE_ENV !== "production" && (wu.displayName = "ComboboxItemContext");
11383
+ const Cu = /* @__PURE__ */ c.createContext(!1);
11384
+ process.env.NODE_ENV !== "production" && (Cu.displayName = "ComboboxRowContext");
11385
11385
  function Xy() {
11386
- return c.useContext(wu);
11386
+ return c.useContext(Cu);
11387
11387
  }
11388
- const Cu = /* @__PURE__ */ c.memo(/* @__PURE__ */ c.forwardRef(function(t, n) {
11388
+ const Eu = /* @__PURE__ */ c.memo(/* @__PURE__ */ c.forwardRef(function(t, n) {
11389
11389
  const {
11390
11390
  render: r,
11391
11391
  className: o,
@@ -11394,10 +11394,10 @@ const Cu = /* @__PURE__ */ c.memo(/* @__PURE__ */ c.forwardRef(function(t, n) {
11394
11394
  disabled: a = !1,
11395
11395
  nativeButton: l = !1,
11396
11396
  ...u
11397
- } = t, d = c.useRef(!1), f = c.useRef(null), h = rl({
11397
+ } = t, d = c.useRef(!1), f = c.useRef(null), h = ol({
11398
11398
  index: i,
11399
11399
  textRef: f,
11400
- indexGuessBehavior: nl.GuessFromOrder
11400
+ indexGuessBehavior: rl.GuessFromOrder
11401
11401
  }), p = mt(), b = Xy(), {
11402
11402
  flatFilteredItems: g,
11403
11403
  hasItems: m
@@ -11475,13 +11475,13 @@ const Cu = /* @__PURE__ */ c.memo(/* @__PURE__ */ c.forwardRef(function(t, n) {
11475
11475
  selected: z,
11476
11476
  textRef: f
11477
11477
  }), [z, f]);
11478
- return /* @__PURE__ */ x(xu.Provider, {
11478
+ return /* @__PURE__ */ x(wu.Provider, {
11479
11479
  value: ye,
11480
11480
  children: fe
11481
11481
  });
11482
11482
  }));
11483
- process.env.NODE_ENV !== "production" && (Cu.displayName = "ComboboxItem");
11484
- const Eu = /* @__PURE__ */ c.forwardRef(function(t, n) {
11483
+ process.env.NODE_ENV !== "production" && (Eu.displayName = "ComboboxItem");
11484
+ const Ru = /* @__PURE__ */ c.forwardRef(function(t, n) {
11485
11485
  const {
11486
11486
  render: r,
11487
11487
  className: o,
@@ -11500,8 +11500,8 @@ const Eu = /* @__PURE__ */ c.forwardRef(function(t, n) {
11500
11500
  }, i]
11501
11501
  });
11502
11502
  });
11503
- process.env.NODE_ENV !== "production" && (Eu.displayName = "ComboboxEmpty");
11504
- const Ru = /* @__PURE__ */ c.forwardRef(function(t, n) {
11503
+ process.env.NODE_ENV !== "production" && (Ru.displayName = "ComboboxEmpty");
11504
+ const Su = /* @__PURE__ */ c.forwardRef(function(t, n) {
11505
11505
  const {
11506
11506
  className: r,
11507
11507
  render: o,
@@ -11519,7 +11519,7 @@ const Ru = /* @__PURE__ */ c.forwardRef(function(t, n) {
11519
11519
  }, i]
11520
11520
  });
11521
11521
  });
11522
- process.env.NODE_ENV !== "production" && (Ru.displayName = "Separator");
11522
+ process.env.NODE_ENV !== "production" && (Su.displayName = "Separator");
11523
11523
  function Zy(e) {
11524
11524
  const {
11525
11525
  multiple: t = !1,
@@ -11544,11 +11544,11 @@ function Qy(e) {
11544
11544
  placeholder: n
11545
11545
  } = e, r = mt(), o = _(r, L.itemToStringLabel), s = _(r, L.selectedValue), i = _(r, L.items), a = _(r, L.selectionMode) === "multiple", l = _(r, L.hasSelectedValue), u = !l && n != null && t == null, d = _(r, L.hasNullItemLabel, u);
11546
11546
  let f = null;
11547
- return typeof t == "function" ? f = t(s) : t != null ? f = t : !l && n != null && !d ? f = n : a && Array.isArray(s) ? f = Ny(s, i, o) : f = Jl(s, i, o), /* @__PURE__ */ x(c.Fragment, {
11547
+ return typeof t == "function" ? f = t(s) : t != null ? f = t : !l && n != null && !d ? f = n : a && Array.isArray(s) ? f = Ny(s, i, o) : f = eu(s, i, o), /* @__PURE__ */ x(c.Fragment, {
11548
11548
  children: f
11549
11549
  });
11550
11550
  }
11551
- const Su = /* @__PURE__ */ c.forwardRef(function(t, n) {
11551
+ const ku = /* @__PURE__ */ c.forwardRef(function(t, n) {
11552
11552
  const {
11553
11553
  render: r,
11554
11554
  className: o,
@@ -11569,13 +11569,13 @@ const Su = /* @__PURE__ */ c.forwardRef(function(t, n) {
11569
11569
  }), [u, d, f]);
11570
11570
  return /* @__PURE__ */ x(wi.Provider, {
11571
11571
  value: p,
11572
- children: /* @__PURE__ */ x(Wc, {
11572
+ children: /* @__PURE__ */ x(jc, {
11573
11573
  elementsRef: f,
11574
11574
  children: h
11575
11575
  })
11576
11576
  });
11577
11577
  });
11578
- process.env.NODE_ENV !== "production" && (Su.displayName = "ComboboxChips");
11578
+ process.env.NODE_ENV !== "production" && (ku.displayName = "ComboboxChips");
11579
11579
  const Ni = /* @__PURE__ */ c.createContext(void 0);
11580
11580
  process.env.NODE_ENV !== "production" && (Ni.displayName = "ComboboxChipContext");
11581
11581
  function Jy() {
@@ -11584,7 +11584,7 @@ function Jy() {
11584
11584
  throw new Error(process.env.NODE_ENV !== "production" ? "useComboboxChipContext must be used within a ComboboxChip" : kt(17));
11585
11585
  return e;
11586
11586
  }
11587
- const ku = /* @__PURE__ */ c.forwardRef(function(t, n) {
11587
+ const Iu = /* @__PURE__ */ c.forwardRef(function(t, n) {
11588
11588
  const {
11589
11589
  render: r,
11590
11590
  className: o,
@@ -11592,10 +11592,10 @@ const ku = /* @__PURE__ */ c.forwardRef(function(t, n) {
11592
11592
  } = t, i = mt(), {
11593
11593
  setHighlightedChipIndex: a,
11594
11594
  chipsRef: l
11595
- } = lu(), u = _(i, L.disabled), d = _(i, L.readOnly), f = _(i, L.selectedValue), {
11595
+ } = uu(), u = _(i, L.disabled), d = _(i, L.readOnly), f = _(i, L.selectedValue), {
11596
11596
  ref: h,
11597
11597
  index: p
11598
- } = rl();
11598
+ } = ol();
11599
11599
  function b(v) {
11600
11600
  let C = p;
11601
11601
  if (v.key === "ArrowLeft")
@@ -11644,8 +11644,8 @@ const ku = /* @__PURE__ */ c.forwardRef(function(t, n) {
11644
11644
  children: m
11645
11645
  });
11646
11646
  });
11647
- process.env.NODE_ENV !== "production" && (ku.displayName = "ComboboxChip");
11648
- const Iu = /* @__PURE__ */ c.forwardRef(function(t, n) {
11647
+ process.env.NODE_ENV !== "production" && (Iu.displayName = "ComboboxChip");
11648
+ const Nu = /* @__PURE__ */ c.forwardRef(function(t, n) {
11649
11649
  const {
11650
11650
  render: r,
11651
11651
  className: o,
@@ -11694,7 +11694,7 @@ const Iu = /* @__PURE__ */ c.forwardRef(function(t, n) {
11694
11694
  }, a, m]
11695
11695
  });
11696
11696
  });
11697
- process.env.NODE_ENV !== "production" && (Iu.displayName = "ComboboxChipRemove");
11697
+ process.env.NODE_ENV !== "production" && (Nu.displayName = "ComboboxChipRemove");
11698
11698
  var ex = [
11699
11699
  "a",
11700
11700
  "button",
@@ -11714,12 +11714,12 @@ var ex = [
11714
11714
  "svg",
11715
11715
  "ul"
11716
11716
  ], Eo = ex.reduce((e, t) => {
11717
- const n = /* @__PURE__ */ Pc(`Primitive.${t}`), r = c.forwardRef((o, s) => {
11717
+ const n = /* @__PURE__ */ Tc(`Primitive.${t}`), r = c.forwardRef((o, s) => {
11718
11718
  const { asChild: i, ...a } = o, l = i ? n : t;
11719
11719
  return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ x(l, { ...a, ref: s });
11720
11720
  });
11721
11721
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
11722
- }, {}), tx = "Label", Nu = c.forwardRef((e, t) => /* @__PURE__ */ x(
11722
+ }, {}), tx = "Label", Ou = c.forwardRef((e, t) => /* @__PURE__ */ x(
11723
11723
  Eo.label,
11724
11724
  {
11725
11725
  ...e,
@@ -11729,18 +11729,18 @@ var ex = [
11729
11729
  }
11730
11730
  }
11731
11731
  ));
11732
- Nu.displayName = tx;
11733
- var Ou = Nu;
11734
- const nx = Ve(Qe("body-sm-regular")), Pu = ({ className: e, ref: t, ...n }) => /* @__PURE__ */ x(
11735
- Ou,
11732
+ Ou.displayName = tx;
11733
+ var Pu = Ou;
11734
+ const nx = Ve(Qe("body-sm-regular")), Tu = ({ className: e, ref: t, ...n }) => /* @__PURE__ */ x(
11735
+ Pu,
11736
11736
  {
11737
11737
  ref: t,
11738
11738
  className: B(nx(), e),
11739
11739
  ...n
11740
11740
  }
11741
11741
  );
11742
- Pu.displayName = Ou.displayName;
11743
- var rx = "Separator", Ya = "horizontal", ox = ["horizontal", "vertical"], Tu = c.forwardRef((e, t) => {
11742
+ Tu.displayName = Pu.displayName;
11743
+ var rx = "Separator", Ya = "horizontal", ox = ["horizontal", "vertical"], Au = c.forwardRef((e, t) => {
11744
11744
  const { decorative: n, orientation: r = Ya, ...o } = e, s = sx(r) ? r : Ya, a = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
11745
11745
  return /* @__PURE__ */ x(
11746
11746
  Eo.div,
@@ -11752,19 +11752,19 @@ var rx = "Separator", Ya = "horizontal", ox = ["horizontal", "vertical"], Tu = c
11752
11752
  }
11753
11753
  );
11754
11754
  });
11755
- Tu.displayName = rx;
11755
+ Au.displayName = rx;
11756
11756
  function sx(e) {
11757
11757
  return ox.includes(e);
11758
11758
  }
11759
- var Au = Tu;
11760
- const Mu = ({
11759
+ var Mu = Au;
11760
+ const _u = ({
11761
11761
  className: e,
11762
11762
  orientation: t = "horizontal",
11763
11763
  decorative: n = !0,
11764
11764
  ref: r,
11765
11765
  ...o
11766
11766
  }) => /* @__PURE__ */ x(
11767
- Au,
11767
+ Mu,
11768
11768
  {
11769
11769
  ref: r,
11770
11770
  decorative: n,
@@ -11777,7 +11777,7 @@ const Mu = ({
11777
11777
  ...o
11778
11778
  }
11779
11779
  );
11780
- Mu.displayName = Au.displayName;
11780
+ _u.displayName = Mu.displayName;
11781
11781
  const ix = Ve(
11782
11782
  "group/field data-[invalid=true]:text-error-text flex h-full w-full gap-2",
11783
11783
  {
@@ -11878,7 +11878,7 @@ function D0({ className: e, ...t }) {
11878
11878
  }
11879
11879
  function xx({ className: e, ...t }) {
11880
11880
  return /* @__PURE__ */ x(
11881
- Pu,
11881
+ Tu,
11882
11882
  {
11883
11883
  "data-slot": "field-label",
11884
11884
  className: B(dx, e),
@@ -11919,7 +11919,7 @@ function V0({
11919
11919
  className: B(mx, t),
11920
11920
  ...n,
11921
11921
  children: [
11922
- /* @__PURE__ */ x(Mu, { className: hx }),
11922
+ /* @__PURE__ */ x(_u, { className: hx }),
11923
11923
  e && /* @__PURE__ */ x("span", { className: gx, "data-slot": "field-separator-content", children: e })
11924
11924
  ]
11925
11925
  }
@@ -11931,7 +11931,7 @@ function Cx({
11931
11931
  errors: n,
11932
11932
  ...r
11933
11933
  }) {
11934
- const o = Qf(() => t || (n ? n.length === 1 && n[0]?.message ? n[0].message : /* @__PURE__ */ x("ul", { className: bx, children: n.map((s) => s?.message ? /* @__PURE__ */ x("li", { children: s.message }, s.message) : null) }) : null), [t, n]);
11934
+ const o = Jf(() => t || (n ? n.length === 1 && n[0]?.message ? n[0].message : /* @__PURE__ */ x("ul", { className: bx, children: n.map((s) => s?.message ? /* @__PURE__ */ x("li", { children: s.message }, s.message) : null) }) : null), [t, n]);
11935
11935
  return o ? /* @__PURE__ */ x(
11936
11936
  "div",
11937
11937
  {
@@ -11991,7 +11991,7 @@ const Ex = Ve(
11991
11991
  "placeholder:text-placeholder-text placeholder:text-sm",
11992
11992
  `disabled:border-inp-disabled-border disabled:bg-disabled-bg
11993
11993
  disabled:text-disabled-text disabled:placeholder:text-disabled-text`
11994
- ].join(" "), _u = ({ className: e, ref: t, ...n }) => /* @__PURE__ */ x(
11994
+ ].join(" "), Du = ({ className: e, ref: t, ...n }) => /* @__PURE__ */ x(
11995
11995
  "textarea",
11996
11996
  {
11997
11997
  className: B(Sx, e),
@@ -11999,7 +11999,7 @@ const Ex = Ve(
11999
11999
  ...n
12000
12000
  }
12001
12001
  );
12002
- _u.displayName = "Textarea";
12002
+ Du.displayName = "Textarea";
12003
12003
  const kx = Ve(
12004
12004
  `text-secondary-text group-data-[disabled=true]/input-group:text-disabled-text flex
12005
12005
  h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium
@@ -12134,7 +12134,7 @@ function Tx({ className: e, ...t }) {
12134
12134
  }
12135
12135
  function $0({ className: e, ...t }) {
12136
12136
  return /* @__PURE__ */ x(
12137
- _u,
12137
+ Du,
12138
12138
  {
12139
12139
  "data-slot": "input-group-control",
12140
12140
  className: B(
@@ -12161,7 +12161,7 @@ cursor-pointer focus-visible:border-0 focus-visible:ring-0 focus-visible:outline
12161
12161
  disabled: !1
12162
12162
  }
12163
12163
  }
12164
- ), Du = `h-full rounded-none border-0 bg-transparent p-0
12164
+ ), Lu = `h-full rounded-none border-0 bg-transparent p-0
12165
12165
  pr-1.5 shadow-none hover:bg-transparent hover:shadow-none focus:bg-transparent
12166
12166
  focus:shadow-none`, _x = "pointer-events-none", Dx = `has-[[data-slot=input-group-control]:focus-visible]:border-inp-focus-border
12167
12167
  has-[[data-slot=combobox-trigger]:focus-visible]:border-inp-focus-border px-0
@@ -12273,7 +12273,7 @@ function Ux({
12273
12273
  ...n
12274
12274
  }) {
12275
12275
  return /* @__PURE__ */ Pe(
12276
- cu,
12276
+ lu,
12277
12277
  {
12278
12278
  "data-slot": "combobox-trigger",
12279
12279
  className: B(Ax, e),
@@ -12294,7 +12294,7 @@ function Ux({
12294
12294
  }
12295
12295
  function Kx({ className: e, ...t }) {
12296
12296
  return /* @__PURE__ */ x(
12297
- uu,
12297
+ du,
12298
12298
  {
12299
12299
  "data-slot": "combobox-clear",
12300
12300
  className: B(e),
@@ -12304,7 +12304,7 @@ function Kx({ className: e, ...t }) {
12304
12304
  {
12305
12305
  variant: "link",
12306
12306
  size: "icon-xs",
12307
- className: Du,
12307
+ className: Lu,
12308
12308
  children: /* @__PURE__ */ x(Us, { className: _x })
12309
12309
  }
12310
12310
  )
@@ -12371,8 +12371,8 @@ function W0({
12371
12371
  const u = document.activeElement;
12372
12372
  return u ? u.closest('[data-slot="combobox-chips"]') ?? u.closest('[data-slot="input-group"]') : null;
12373
12373
  }, []);
12374
- return /* @__PURE__ */ x(pu, { children: /* @__PURE__ */ x(
12375
- gu,
12374
+ return /* @__PURE__ */ x(mu, { children: /* @__PURE__ */ x(
12375
+ bu,
12376
12376
  {
12377
12377
  side: t,
12378
12378
  sideOffset: n,
@@ -12381,7 +12381,7 @@ function W0({
12381
12381
  anchor: s ?? a?.anchorElement ?? l,
12382
12382
  className: Vx,
12383
12383
  children: /* @__PURE__ */ x(
12384
- bu,
12384
+ vu,
12385
12385
  {
12386
12386
  "data-slot": "combobox-content",
12387
12387
  "data-chips": !!s,
@@ -12394,7 +12394,7 @@ function W0({
12394
12394
  }
12395
12395
  function j0({ className: e, ...t }) {
12396
12396
  return /* @__PURE__ */ x(
12397
- fu,
12397
+ pu,
12398
12398
  {
12399
12399
  "data-slot": "combobox-list",
12400
12400
  className: B(e),
@@ -12404,7 +12404,7 @@ function j0({ className: e, ...t }) {
12404
12404
  }
12405
12405
  function U0({ className: e, children: t, ...n }) {
12406
12406
  return /* @__PURE__ */ x(
12407
- Cu,
12407
+ Eu,
12408
12408
  {
12409
12409
  "data-slot": "combobox-item",
12410
12410
  className: B($x, e),
@@ -12415,7 +12415,7 @@ function U0({ className: e, children: t, ...n }) {
12415
12415
  }
12416
12416
  function K0({ className: e, ...t }) {
12417
12417
  return /* @__PURE__ */ x(
12418
- vu,
12418
+ yu,
12419
12419
  {
12420
12420
  "data-slot": "combobox-group",
12421
12421
  className: B(e),
@@ -12425,7 +12425,7 @@ function K0({ className: e, ...t }) {
12425
12425
  }
12426
12426
  function q0({ className: e, ...t }) {
12427
12427
  return /* @__PURE__ */ x(
12428
- yu,
12428
+ xu,
12429
12429
  {
12430
12430
  "data-slot": "combobox-label",
12431
12431
  className: B(zx, e),
@@ -12435,7 +12435,7 @@ function q0({ className: e, ...t }) {
12435
12435
  }
12436
12436
  function Y0({ ...e }) {
12437
12437
  return /* @__PURE__ */ x(
12438
- du,
12438
+ fu,
12439
12439
  {
12440
12440
  "data-slot": "combobox-collection",
12441
12441
  ...e
@@ -12444,7 +12444,7 @@ function Y0({ ...e }) {
12444
12444
  }
12445
12445
  function X0({ className: e, ...t }) {
12446
12446
  return /* @__PURE__ */ x(
12447
- Eu,
12447
+ Ru,
12448
12448
  {
12449
12449
  "data-slot": "combobox-empty",
12450
12450
  className: B(Bx, e),
@@ -12454,7 +12454,7 @@ function X0({ className: e, ...t }) {
12454
12454
  }
12455
12455
  function Z0({ className: e, ...t }) {
12456
12456
  return /* @__PURE__ */ x(
12457
- Ru,
12457
+ Su,
12458
12458
  {
12459
12459
  "data-slot": "combobox-separator",
12460
12460
  className: B(Gx, e),
@@ -12476,7 +12476,7 @@ function Q0({
12476
12476
  [r]
12477
12477
  );
12478
12478
  return /* @__PURE__ */ x(
12479
- Su,
12479
+ ku,
12480
12480
  {
12481
12481
  ref: o,
12482
12482
  "data-slot": "combobox-chips",
@@ -12492,7 +12492,7 @@ function J0({
12492
12492
  ...r
12493
12493
  }) {
12494
12494
  return /* @__PURE__ */ Pe(
12495
- ku,
12495
+ Iu,
12496
12496
  {
12497
12497
  "data-slot": "combobox-chip",
12498
12498
  className: B(Wx, e),
@@ -12500,12 +12500,12 @@ function J0({
12500
12500
  children: [
12501
12501
  t,
12502
12502
  n && /* @__PURE__ */ x(
12503
- Iu,
12503
+ Nu,
12504
12504
  {
12505
12505
  render: /* @__PURE__ */ x(
12506
12506
  Gs,
12507
12507
  {
12508
- className: Du,
12508
+ className: Lu,
12509
12509
  variant: "ghost",
12510
12510
  children: /* @__PURE__ */ x(Us, { className: "text-secondary-text" })
12511
12511
  }
@@ -12549,7 +12549,7 @@ function Xx(e, t = globalThis?.document) {
12549
12549
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
12550
12550
  }, [n, t]);
12551
12551
  }
12552
- var Zx = "DismissableLayer", _s = "dismissableLayer.update", Qx = "dismissableLayer.pointerDownOutside", Jx = "dismissableLayer.focusOutside", Xa, Lu = c.createContext({
12552
+ var Zx = "DismissableLayer", _s = "dismissableLayer.update", Qx = "dismissableLayer.pointerDownOutside", Jx = "dismissableLayer.focusOutside", Xa, Vu = c.createContext({
12553
12553
  layers: /* @__PURE__ */ new Set(),
12554
12554
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
12555
12555
  branches: /* @__PURE__ */ new Set()
@@ -12563,7 +12563,7 @@ var Zx = "DismissableLayer", _s = "dismissableLayer.update", Qx = "dismissableLa
12563
12563
  onInteractOutside: i,
12564
12564
  onDismiss: a,
12565
12565
  ...l
12566
- } = e, u = c.useContext(Lu), [d, f] = c.useState(null), h = d?.ownerDocument ?? globalThis?.document, [, p] = c.useState({}), b = Be(t, (S) => f(S)), g = Array.from(u.layers), [m] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = g.indexOf(m), v = d ? g.indexOf(d) : -1, C = u.layersWithOutsidePointerEventsDisabled.size > 0, w = v >= y, R = nw((S) => {
12566
+ } = e, u = c.useContext(Vu), [d, f] = c.useState(null), h = d?.ownerDocument ?? globalThis?.document, [, p] = c.useState({}), b = Be(t, (S) => f(S)), g = Array.from(u.layers), [m] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = g.indexOf(m), v = d ? g.indexOf(d) : -1, C = u.layersWithOutsidePointerEventsDisabled.size > 0, w = v >= y, R = nw((S) => {
12567
12567
  const E = S.target, F = [...u.branches].some((j) => j.contains(E));
12568
12568
  !w || F || (o?.(S), i?.(S), S.defaultPrevented || a?.());
12569
12569
  }, h), k = rw((S) => {
@@ -12603,7 +12603,7 @@ var Zx = "DismissableLayer", _s = "dismissableLayer.update", Qx = "dismissableLa
12603
12603
  );
12604
12604
  Oi.displayName = Zx;
12605
12605
  var ew = "DismissableLayerBranch", tw = c.forwardRef((e, t) => {
12606
- const n = c.useContext(Lu), r = c.useRef(null), o = Be(t, r);
12606
+ const n = c.useContext(Vu), r = c.useRef(null), o = Be(t, r);
12607
12607
  return c.useEffect(() => {
12608
12608
  const s = r.current;
12609
12609
  if (s)
@@ -12620,7 +12620,7 @@ function nw(e, t = globalThis?.document) {
12620
12620
  const s = (a) => {
12621
12621
  if (a.target && !r.current) {
12622
12622
  let l = function() {
12623
- Vu(
12623
+ Fu(
12624
12624
  Qx,
12625
12625
  n,
12626
12626
  u,
@@ -12647,7 +12647,7 @@ function rw(e, t = globalThis?.document) {
12647
12647
  const n = yn(e), r = c.useRef(!1);
12648
12648
  return c.useEffect(() => {
12649
12649
  const o = (s) => {
12650
- s.target && !r.current && Vu(Jx, n, { originalEvent: s }, {
12650
+ s.target && !r.current && Fu(Jx, n, { originalEvent: s }, {
12651
12651
  discrete: !1
12652
12652
  });
12653
12653
  };
@@ -12661,11 +12661,11 @@ function Za() {
12661
12661
  const e = new CustomEvent(_s);
12662
12662
  document.dispatchEvent(e);
12663
12663
  }
12664
- function Vu(e, t, n, { discrete: r }) {
12664
+ function Fu(e, t, n, { discrete: r }) {
12665
12665
  const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
12666
12666
  t && o.addEventListener(e, t, { once: !0 }), r ? Im(o, s) : o.dispatchEvent(s);
12667
12667
  }
12668
- var cs = "focusScope.autoFocusOnMount", ls = "focusScope.autoFocusOnUnmount", Qa = { bubbles: !1, cancelable: !0 }, ow = "FocusScope", Fu = c.forwardRef((e, t) => {
12668
+ var cs = "focusScope.autoFocusOnMount", ls = "focusScope.autoFocusOnUnmount", Qa = { bubbles: !1, cancelable: !0 }, ow = "FocusScope", $u = c.forwardRef((e, t) => {
12669
12669
  const {
12670
12670
  loop: n = !1,
12671
12671
  trapped: r = !1,
@@ -12708,7 +12708,7 @@ var cs = "focusScope.autoFocusOnMount", ls = "focusScope.autoFocusOnUnmount", Qa
12708
12708
  const g = document.activeElement;
12709
12709
  if (!a.contains(g)) {
12710
12710
  const y = new CustomEvent(cs, Qa);
12711
- a.addEventListener(cs, u), a.dispatchEvent(y), y.defaultPrevented || (sw(uw($u(a)), { select: !0 }), document.activeElement === g && Yt(a));
12711
+ a.addEventListener(cs, u), a.dispatchEvent(y), y.defaultPrevented || (sw(uw(zu(a)), { select: !0 }), document.activeElement === g && Yt(a));
12712
12712
  }
12713
12713
  return () => {
12714
12714
  a.removeEventListener(cs, u), setTimeout(() => {
@@ -12731,17 +12731,17 @@ var cs = "focusScope.autoFocusOnMount", ls = "focusScope.autoFocusOnUnmount", Qa
12731
12731
  );
12732
12732
  return /* @__PURE__ */ x(Oe.div, { tabIndex: -1, ...i, ref: h, onKeyDown: b });
12733
12733
  });
12734
- Fu.displayName = ow;
12734
+ $u.displayName = ow;
12735
12735
  function sw(e, { select: t = !1 } = {}) {
12736
12736
  const n = document.activeElement;
12737
12737
  for (const r of e)
12738
12738
  if (Yt(r, { select: t }), document.activeElement !== n) return;
12739
12739
  }
12740
12740
  function iw(e) {
12741
- const t = $u(e), n = Ja(t, e), r = Ja(t.reverse(), e);
12741
+ const t = zu(e), n = Ja(t, e), r = Ja(t.reverse(), e);
12742
12742
  return [n, r];
12743
12743
  }
12744
- function $u(e) {
12744
+ function zu(e) {
12745
12745
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
12746
12746
  acceptNode: (r) => {
12747
12747
  const o = r.tagName === "INPUT" && r.type === "hidden";
@@ -12822,7 +12822,7 @@ var Pt = function() {
12822
12822
  return t;
12823
12823
  }, Pt.apply(this, arguments);
12824
12824
  };
12825
- function zu(e, t) {
12825
+ function Bu(e, t) {
12826
12826
  var n = {};
12827
12827
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
12828
12828
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -12840,7 +12840,7 @@ function ds(e, t) {
12840
12840
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
12841
12841
  }
12842
12842
  function gw(e, t) {
12843
- var n = Jf(function() {
12843
+ var n = dc(function() {
12844
12844
  return {
12845
12845
  // value
12846
12846
  value: e,
@@ -12943,8 +12943,8 @@ function ww(e) {
12943
12943
  var t = xw(null);
12944
12944
  return t.options = Pt({ async: !0, ssr: !1 }, e), t;
12945
12945
  }
12946
- var Bu = function(e) {
12947
- var t = e.sideCar, n = zu(e, ["sideCar"]);
12946
+ var Gu = function(e) {
12947
+ var t = e.sideCar, n = Bu(e, ["sideCar"]);
12948
12948
  if (!t)
12949
12949
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
12950
12950
  var r = t.read();
@@ -12952,21 +12952,21 @@ var Bu = function(e) {
12952
12952
  throw new Error("Sidecar medium not found");
12953
12953
  return c.createElement(r, Pt({}, n));
12954
12954
  };
12955
- Bu.isSideCarExport = !0;
12955
+ Gu.isSideCarExport = !0;
12956
12956
  function Cw(e, t) {
12957
- return e.useMedium(t), Bu;
12957
+ return e.useMedium(t), Gu;
12958
12958
  }
12959
- var Gu = ww(), fs = function() {
12959
+ var Hu = ww(), fs = function() {
12960
12960
  }, So = c.forwardRef(function(e, t) {
12961
12961
  var n = c.useRef(null), r = c.useState({
12962
12962
  onScrollCapture: fs,
12963
12963
  onWheelCapture: fs,
12964
12964
  onTouchMoveCapture: fs
12965
- }), o = r[0], s = r[1], i = e.forwardProps, a = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, h = e.sideCar, p = e.noRelative, b = e.noIsolation, g = e.inert, m = e.allowPinchZoom, y = e.as, v = y === void 0 ? "div" : y, C = e.gapMode, w = zu(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = h, k = vw([n, t]), S = Pt(Pt({}, w), o);
12965
+ }), o = r[0], s = r[1], i = e.forwardProps, a = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, h = e.sideCar, p = e.noRelative, b = e.noIsolation, g = e.inert, m = e.allowPinchZoom, y = e.as, v = y === void 0 ? "div" : y, C = e.gapMode, w = Bu(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = h, k = vw([n, t]), S = Pt(Pt({}, w), o);
12966
12966
  return c.createElement(
12967
12967
  c.Fragment,
12968
12968
  null,
12969
- d && c.createElement(R, { sideCar: Gu, removeScrollBar: u, shards: f, noRelative: p, noIsolation: b, inert: g, setCallbacks: s, allowPinchZoom: !!m, lockRef: n, gapMode: C }),
12969
+ d && c.createElement(R, { sideCar: Hu, removeScrollBar: u, shards: f, noRelative: p, noIsolation: b, inert: g, setCallbacks: s, allowPinchZoom: !!m, lockRef: n, gapMode: C }),
12970
12970
  i ? c.cloneElement(c.Children.only(a), Pt(Pt({}, S), { ref: k })) : c.createElement(v, Pt({}, S, { className: l, ref: k }), a)
12971
12971
  );
12972
12972
  });
@@ -13017,7 +13017,7 @@ var Iw = function() {
13017
13017
  };
13018
13018
  }, [t && n]);
13019
13019
  };
13020
- }, Hu = function() {
13020
+ }, Wu = function() {
13021
13021
  var e = Nw(), t = function(n) {
13022
13022
  var r = n.styles, o = n.dynamic;
13023
13023
  return e(r, o), null;
@@ -13043,7 +13043,7 @@ var Iw = function() {
13043
13043
  right: t[2],
13044
13044
  gap: Math.max(0, r - n + t[2] - t[0])
13045
13045
  };
13046
- }, Aw = Hu(), _n = "data-scroll-locked", Mw = function(e, t, n, r) {
13046
+ }, Aw = Wu(), _n = "data-scroll-locked", Mw = function(e, t, n, r) {
13047
13047
  var o = e.left, s = e.top, i = e.right, a = e.gap;
13048
13048
  return n === void 0 && (n = "margin"), `
13049
13049
  .`.concat(mw, ` {
@@ -13118,7 +13118,7 @@ if (typeof window < "u")
13118
13118
  }
13119
13119
  var Sn = Ds ? { passive: !1 } : !1, Lw = function(e) {
13120
13120
  return e.tagName === "TEXTAREA";
13121
- }, Wu = function(e, t) {
13121
+ }, ju = function(e, t) {
13122
13122
  if (!(e instanceof Element))
13123
13123
  return !1;
13124
13124
  var n = window.getComputedStyle(e);
@@ -13128,16 +13128,16 @@ var Sn = Ds ? { passive: !1 } : !1, Lw = function(e) {
13128
13128
  !(n.overflowY === n.overflowX && !Lw(e) && n[t] === "visible")
13129
13129
  );
13130
13130
  }, Vw = function(e) {
13131
- return Wu(e, "overflowY");
13131
+ return ju(e, "overflowY");
13132
13132
  }, Fw = function(e) {
13133
- return Wu(e, "overflowX");
13133
+ return ju(e, "overflowX");
13134
13134
  }, sc = function(e, t) {
13135
13135
  var n = t.ownerDocument, r = t;
13136
13136
  do {
13137
13137
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
13138
- var o = ju(e, r);
13138
+ var o = Uu(e, r);
13139
13139
  if (o) {
13140
- var s = Uu(e, r), i = s[1], a = s[2];
13140
+ var s = Ku(e, r), i = s[1], a = s[2];
13141
13141
  if (i > a)
13142
13142
  return !0;
13143
13143
  }
@@ -13158,9 +13158,9 @@ var Sn = Ds ? { passive: !1 } : !1, Lw = function(e) {
13158
13158
  n,
13159
13159
  r
13160
13160
  ];
13161
- }, ju = function(e, t) {
13162
- return e === "v" ? Vw(t) : Fw(t);
13163
13161
  }, Uu = function(e, t) {
13162
+ return e === "v" ? Vw(t) : Fw(t);
13163
+ }, Ku = function(e, t) {
13164
13164
  return e === "v" ? $w(t) : zw(t);
13165
13165
  }, Bw = function(e, t) {
13166
13166
  return e === "h" && t === "rtl" ? -1 : 1;
@@ -13169,8 +13169,8 @@ var Sn = Ds ? { passive: !1 } : !1, Lw = function(e) {
13169
13169
  do {
13170
13170
  if (!a)
13171
13171
  break;
13172
- var p = Uu(e, a), b = p[0], g = p[1], m = p[2], y = g - m - s * b;
13173
- (b || y) && ju(e, a) && (f += y, h += b);
13172
+ var p = Ku(e, a), b = p[0], g = p[1], m = p[2], y = g - m - s * b;
13173
+ (b || y) && Uu(e, a) && (f += y, h += b);
13174
13174
  var v = a.parentNode;
13175
13175
  a = v && v.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? v.host : v;
13176
13176
  } while (
@@ -13194,7 +13194,7 @@ var Sn = Ds ? { passive: !1 } : !1, Lw = function(e) {
13194
13194
  `);
13195
13195
  }, jw = 0, kn = [];
13196
13196
  function Uw(e) {
13197
- var t = c.useRef([]), n = c.useRef([0, 0]), r = c.useRef(), o = c.useState(jw++)[0], s = c.useState(Hu)[0], i = c.useRef(e);
13197
+ var t = c.useRef([]), n = c.useRef([0, 0]), r = c.useRef(), o = c.useState(jw++)[0], s = c.useState(Wu)[0], i = c.useRef(e);
13198
13198
  c.useEffect(function() {
13199
13199
  i.current = e;
13200
13200
  }, [e]), c.useEffect(function() {
@@ -13283,23 +13283,23 @@ function Kw(e) {
13283
13283
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
13284
13284
  return t;
13285
13285
  }
13286
- const qw = Cw(Gu, Uw);
13287
- var Ku = c.forwardRef(function(e, t) {
13286
+ const qw = Cw(Hu, Uw);
13287
+ var qu = c.forwardRef(function(e, t) {
13288
13288
  return c.createElement(So, Pt({}, e, { ref: t, sideCar: qw }));
13289
13289
  });
13290
- Ku.classNames = So.classNames;
13290
+ qu.classNames = So.classNames;
13291
13291
  var Yw = function(e) {
13292
13292
  if (typeof document > "u")
13293
13293
  return null;
13294
13294
  var t = Array.isArray(e) ? e[0] : e;
13295
13295
  return t.ownerDocument.body;
13296
- }, In = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), Fr = {}, ms = 0, qu = function(e) {
13297
- return e && (e.host || qu(e.parentNode));
13296
+ }, In = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), Fr = {}, ms = 0, Yu = function(e) {
13297
+ return e && (e.host || Yu(e.parentNode));
13298
13298
  }, Xw = function(e, t) {
13299
13299
  return t.map(function(n) {
13300
13300
  if (e.contains(n))
13301
13301
  return n;
13302
- var r = qu(n);
13302
+ var r = Yu(n);
13303
13303
  return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
13304
13304
  }).filter(function(n) {
13305
13305
  return !!n;
@@ -13336,7 +13336,7 @@ var Yw = function(e) {
13336
13336
  return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Zw(r, o, n, "aria-hidden")) : function() {
13337
13337
  return null;
13338
13338
  };
13339
- }, ko = "Dialog", [Yu] = Mt(ko), [Jw, It] = Yu(ko), Xu = (e) => {
13339
+ }, ko = "Dialog", [Xu] = Mt(ko), [Jw, It] = Xu(ko), Zu = (e) => {
13340
13340
  const {
13341
13341
  __scopeDialog: t,
13342
13342
  children: n,
@@ -13367,10 +13367,10 @@ var Yw = function(e) {
13367
13367
  }
13368
13368
  );
13369
13369
  };
13370
- Xu.displayName = ko;
13371
- var Zu = "DialogTrigger", Qu = c.forwardRef(
13370
+ Zu.displayName = ko;
13371
+ var Qu = "DialogTrigger", Ju = c.forwardRef(
13372
13372
  (e, t) => {
13373
- const { __scopeDialog: n, ...r } = e, o = It(Zu, n), s = Be(t, o.triggerRef);
13373
+ const { __scopeDialog: n, ...r } = e, o = It(Qu, n), s = Be(t, o.triggerRef);
13374
13374
  return /* @__PURE__ */ x(
13375
13375
  Oe.button,
13376
13376
  {
@@ -13386,28 +13386,28 @@ var Zu = "DialogTrigger", Qu = c.forwardRef(
13386
13386
  );
13387
13387
  }
13388
13388
  );
13389
- Qu.displayName = Zu;
13390
- var Ti = "DialogPortal", [eC, Ju] = Yu(Ti, {
13389
+ Ju.displayName = Qu;
13390
+ var Ti = "DialogPortal", [eC, ed] = Xu(Ti, {
13391
13391
  forceMount: void 0
13392
- }), ed = (e) => {
13392
+ }), td = (e) => {
13393
13393
  const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = It(Ti, t);
13394
13394
  return /* @__PURE__ */ x(eC, { scope: t, forceMount: n, children: c.Children.map(r, (i) => /* @__PURE__ */ x(Bt, { present: n || s.open, children: /* @__PURE__ */ x(Pi, { asChild: !0, container: o, children: i }) })) });
13395
13395
  };
13396
- ed.displayName = Ti;
13397
- var so = "DialogOverlay", td = c.forwardRef(
13396
+ td.displayName = Ti;
13397
+ var so = "DialogOverlay", nd = c.forwardRef(
13398
13398
  (e, t) => {
13399
- const n = Ju(so, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = It(so, e.__scopeDialog);
13399
+ const n = ed(so, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = It(so, e.__scopeDialog);
13400
13400
  return s.modal ? /* @__PURE__ */ x(Bt, { present: r || s.open, children: /* @__PURE__ */ x(nC, { ...o, ref: t }) }) : null;
13401
13401
  }
13402
13402
  );
13403
- td.displayName = so;
13403
+ nd.displayName = so;
13404
13404
  var tC = /* @__PURE__ */ jr("DialogOverlay.RemoveScroll"), nC = c.forwardRef(
13405
13405
  (e, t) => {
13406
13406
  const { __scopeDialog: n, ...r } = e, o = It(so, n);
13407
13407
  return (
13408
13408
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
13409
13409
  // ie. when `Overlay` and `Content` are siblings
13410
- /* @__PURE__ */ x(Ku, { as: tC, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ x(
13410
+ /* @__PURE__ */ x(qu, { as: tC, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ x(
13411
13411
  Oe.div,
13412
13412
  {
13413
13413
  "data-state": Mi(o.open),
@@ -13418,13 +13418,13 @@ var tC = /* @__PURE__ */ jr("DialogOverlay.RemoveScroll"), nC = c.forwardRef(
13418
13418
  ) })
13419
13419
  );
13420
13420
  }
13421
- ), xn = "DialogContent", nd = c.forwardRef(
13421
+ ), xn = "DialogContent", rd = c.forwardRef(
13422
13422
  (e, t) => {
13423
- const n = Ju(xn, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = It(xn, e.__scopeDialog);
13423
+ const n = ed(xn, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = It(xn, e.__scopeDialog);
13424
13424
  return /* @__PURE__ */ x(Bt, { present: r || s.open, children: s.modal ? /* @__PURE__ */ x(rC, { ...o, ref: t }) : /* @__PURE__ */ x(oC, { ...o, ref: t }) });
13425
13425
  }
13426
13426
  );
13427
- nd.displayName = xn;
13427
+ rd.displayName = xn;
13428
13428
  var rC = c.forwardRef(
13429
13429
  (e, t) => {
13430
13430
  const n = It(xn, e.__scopeDialog), r = c.useRef(null), o = Be(t, n.contentRef, r);
@@ -13432,7 +13432,7 @@ var rC = c.forwardRef(
13432
13432
  const s = r.current;
13433
13433
  if (s) return Qw(s);
13434
13434
  }, []), /* @__PURE__ */ x(
13435
- rd,
13435
+ od,
13436
13436
  {
13437
13437
  ...e,
13438
13438
  ref: o,
@@ -13456,7 +13456,7 @@ var rC = c.forwardRef(
13456
13456
  (e, t) => {
13457
13457
  const n = It(xn, e.__scopeDialog), r = c.useRef(!1), o = c.useRef(!1);
13458
13458
  return /* @__PURE__ */ x(
13459
- rd,
13459
+ od,
13460
13460
  {
13461
13461
  ...e,
13462
13462
  ref: t,
@@ -13473,12 +13473,12 @@ var rC = c.forwardRef(
13473
13473
  }
13474
13474
  );
13475
13475
  }
13476
- ), rd = c.forwardRef(
13476
+ ), od = c.forwardRef(
13477
13477
  (e, t) => {
13478
13478
  const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...i } = e, a = It(xn, n), l = c.useRef(null), u = Be(t, l);
13479
13479
  return fw(), /* @__PURE__ */ Pe(Jn, { children: [
13480
13480
  /* @__PURE__ */ x(
13481
- Fu,
13481
+ $u,
13482
13482
  {
13483
13483
  asChild: !0,
13484
13484
  loop: !0,
@@ -13506,23 +13506,23 @@ var rC = c.forwardRef(
13506
13506
  ] })
13507
13507
  ] });
13508
13508
  }
13509
- ), Ai = "DialogTitle", od = c.forwardRef(
13509
+ ), Ai = "DialogTitle", sd = c.forwardRef(
13510
13510
  (e, t) => {
13511
13511
  const { __scopeDialog: n, ...r } = e, o = It(Ai, n);
13512
13512
  return /* @__PURE__ */ x(Oe.h2, { id: o.titleId, ...r, ref: t });
13513
13513
  }
13514
13514
  );
13515
- od.displayName = Ai;
13516
- var sd = "DialogDescription", id = c.forwardRef(
13515
+ sd.displayName = Ai;
13516
+ var id = "DialogDescription", ad = c.forwardRef(
13517
13517
  (e, t) => {
13518
- const { __scopeDialog: n, ...r } = e, o = It(sd, n);
13518
+ const { __scopeDialog: n, ...r } = e, o = It(id, n);
13519
13519
  return /* @__PURE__ */ x(Oe.p, { id: o.descriptionId, ...r, ref: t });
13520
13520
  }
13521
13521
  );
13522
- id.displayName = sd;
13523
- var ad = "DialogClose", cd = c.forwardRef(
13522
+ ad.displayName = id;
13523
+ var cd = "DialogClose", ld = c.forwardRef(
13524
13524
  (e, t) => {
13525
- const { __scopeDialog: n, ...r } = e, o = It(ad, n);
13525
+ const { __scopeDialog: n, ...r } = e, o = It(cd, n);
13526
13526
  return /* @__PURE__ */ x(
13527
13527
  Oe.button,
13528
13528
  {
@@ -13534,16 +13534,16 @@ var ad = "DialogClose", cd = c.forwardRef(
13534
13534
  );
13535
13535
  }
13536
13536
  );
13537
- cd.displayName = ad;
13537
+ ld.displayName = cd;
13538
13538
  function Mi(e) {
13539
13539
  return e ? "open" : "closed";
13540
13540
  }
13541
- var ld = "DialogTitleWarning", [tR, ud] = pm(ld, {
13541
+ var ud = "DialogTitleWarning", [tR, dd] = pm(ud, {
13542
13542
  contentName: xn,
13543
13543
  titleName: Ai,
13544
13544
  docsSlug: "dialog"
13545
13545
  }), sC = ({ titleId: e }) => {
13546
- const t = ud(ld), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
13546
+ const t = dd(ud), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
13547
13547
 
13548
13548
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
13549
13549
 
@@ -13552,12 +13552,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
13552
13552
  e && (document.getElementById(e) || console.error(n));
13553
13553
  }, [n, e]), null;
13554
13554
  }, iC = "DialogDescriptionWarning", aC = ({ contentRef: e, descriptionId: t }) => {
13555
- const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ud(iC).contentName}}.`;
13555
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${dd(iC).contentName}}.`;
13556
13556
  return c.useEffect(() => {
13557
13557
  const o = e.current?.getAttribute("aria-describedby");
13558
13558
  t && o && (document.getElementById(t) || console.warn(r));
13559
13559
  }, [r, e, t]), null;
13560
- }, cC = Xu, lC = Qu, uC = ed, dd = td, fd = nd, pd = od, md = id, hd = cd;
13560
+ }, cC = Zu, lC = Ju, uC = td, fd = nd, pd = rd, md = sd, hd = ad, gd = ld;
13561
13561
  const dC = [
13562
13562
  "data-open:animate-in data-closed:animate-out data-closed:fade-out-0",
13563
13563
  "data-open:fade-in-0 bg-primary-inverse-bg/20 duration-100",
@@ -13580,29 +13580,29 @@ const dC = [
13580
13580
  "after:pointer-events-none after:absolute after:bottom-0 after:h-px after:-left-6 after:-right-16 after:bg-delicate-border"
13581
13581
  ], bC = [
13582
13582
  "tracking-normal text-sm font-normal text-secondary-text"
13583
- ], nR = cC, rR = lC, vC = uC, oR = hd, gd = ({ className: e, ...t }) => /* @__PURE__ */ x(
13584
- dd,
13583
+ ], nR = cC, rR = lC, vC = uC, oR = gd, bd = ({ className: e, ...t }) => /* @__PURE__ */ x(
13584
+ fd,
13585
13585
  {
13586
13586
  className: B(...dC, e),
13587
13587
  ...t
13588
13588
  }
13589
13589
  );
13590
- gd.displayName = dd.displayName;
13590
+ bd.displayName = fd.displayName;
13591
13591
  const yC = ({
13592
13592
  className: e,
13593
13593
  children: t,
13594
13594
  showCloseButton: n = !0,
13595
13595
  ...r
13596
13596
  }) => /* @__PURE__ */ Pe(vC, { children: [
13597
- /* @__PURE__ */ x(gd, {}),
13597
+ /* @__PURE__ */ x(bd, {}),
13598
13598
  /* @__PURE__ */ Pe(
13599
- fd,
13599
+ pd,
13600
13600
  {
13601
13601
  className: B(...fC, e),
13602
13602
  ...r,
13603
13603
  children: [
13604
13604
  t,
13605
- n && /* @__PURE__ */ Pe(hd, { className: B(...pC), children: [
13605
+ n && /* @__PURE__ */ Pe(gd, { className: B(...pC), children: [
13606
13606
  /* @__PURE__ */ x(
13607
13607
  Ks,
13608
13608
  {
@@ -13616,7 +13616,7 @@ const yC = ({
13616
13616
  }
13617
13617
  )
13618
13618
  ] });
13619
- yC.displayName = fd.displayName;
13619
+ yC.displayName = pd.displayName;
13620
13620
  const xC = ({ className: e, ...t }) => /* @__PURE__ */ x(
13621
13621
  "div",
13622
13622
  {
@@ -13634,21 +13634,21 @@ const wC = ({ className: e, ...t }) => /* @__PURE__ */ x(
13634
13634
  );
13635
13635
  wC.displayName = "DialogFooter";
13636
13636
  const CC = ({ className: e, ...t }) => /* @__PURE__ */ x(
13637
- pd,
13637
+ md,
13638
13638
  {
13639
13639
  className: B(...gC, e),
13640
13640
  ...t
13641
13641
  }
13642
13642
  );
13643
- CC.displayName = pd.displayName;
13643
+ CC.displayName = md.displayName;
13644
13644
  const EC = ({ className: e, ...t }) => /* @__PURE__ */ x(
13645
- md,
13645
+ hd,
13646
13646
  {
13647
13647
  className: B(...bC, e),
13648
13648
  ...t
13649
13649
  }
13650
13650
  );
13651
- EC.displayName = md.displayName;
13651
+ EC.displayName = hd.displayName;
13652
13652
  const RC = Ve(
13653
13653
  [
13654
13654
  "flex h-9 w-full cursor-pointer items-center rounded-xl transition-colors",
@@ -13797,7 +13797,7 @@ const _i = ({
13797
13797
  {
13798
13798
  "aria-current": t ? "page" : void 0,
13799
13799
  className: B(
13800
- Tc({
13800
+ Ac({
13801
13801
  size: n
13802
13802
  }),
13803
13803
  e
@@ -13847,7 +13847,7 @@ const MC = ({ className: e, ...t }) => /* @__PURE__ */ Pe(
13847
13847
  className: B("flex h-9 w-9 items-center justify-center", e),
13848
13848
  ...t,
13849
13849
  children: [
13850
- /* @__PURE__ */ x(Hc, { className: "h-4 w-4" }),
13850
+ /* @__PURE__ */ x(Wc, { className: "h-4 w-4" }),
13851
13851
  /* @__PURE__ */ x("span", { className: "sr-only", children: "More pages" })
13852
13852
  ]
13853
13853
  }
@@ -13903,7 +13903,7 @@ function DC(...e) {
13903
13903
  };
13904
13904
  return n.scopeName = t.scopeName, n;
13905
13905
  }
13906
- var Di = "Progress", Li = 100, [LC] = _C(Di), [VC, FC] = LC(Di), bd = c.forwardRef(
13906
+ var Di = "Progress", Li = 100, [LC] = _C(Di), [VC, FC] = LC(Di), vd = c.forwardRef(
13907
13907
  (e, t) => {
13908
13908
  const {
13909
13909
  __scopeProgress: n,
@@ -13924,7 +13924,7 @@ var Di = "Progress", Li = 100, [LC] = _C(Di), [VC, FC] = LC(Di), bd = c.forwardR
13924
13924
  "aria-valuenow": io(l) ? l : void 0,
13925
13925
  "aria-valuetext": u,
13926
13926
  role: "progressbar",
13927
- "data-state": xd(l, a),
13927
+ "data-state": wd(l, a),
13928
13928
  "data-value": l ?? void 0,
13929
13929
  "data-max": a,
13930
13930
  ...i,
@@ -13933,14 +13933,14 @@ var Di = "Progress", Li = 100, [LC] = _C(Di), [VC, FC] = LC(Di), bd = c.forwardR
13933
13933
  ) });
13934
13934
  }
13935
13935
  );
13936
- bd.displayName = Di;
13937
- var vd = "ProgressIndicator", yd = c.forwardRef(
13936
+ vd.displayName = Di;
13937
+ var yd = "ProgressIndicator", xd = c.forwardRef(
13938
13938
  (e, t) => {
13939
- const { __scopeProgress: n, ...r } = e, o = FC(vd, n);
13939
+ const { __scopeProgress: n, ...r } = e, o = FC(yd, n);
13940
13940
  return /* @__PURE__ */ x(
13941
13941
  Eo.div,
13942
13942
  {
13943
- "data-state": xd(o.value, o.max),
13943
+ "data-state": wd(o.value, o.max),
13944
13944
  "data-value": o.value ?? void 0,
13945
13945
  "data-max": o.max,
13946
13946
  ...r,
@@ -13949,11 +13949,11 @@ var vd = "ProgressIndicator", yd = c.forwardRef(
13949
13949
  );
13950
13950
  }
13951
13951
  );
13952
- yd.displayName = vd;
13952
+ xd.displayName = yd;
13953
13953
  function $C(e, t) {
13954
13954
  return `${Math.round(e / t * 100)}%`;
13955
13955
  }
13956
- function xd(e, t) {
13956
+ function wd(e, t) {
13957
13957
  return e == null ? "indeterminate" : e === t ? "complete" : "loading";
13958
13958
  }
13959
13959
  function io(e) {
@@ -13976,12 +13976,12 @@ function BC(e, t) {
13976
13976
 
13977
13977
  Defaulting to \`null\`.`;
13978
13978
  }
13979
- var wd = bd, GC = yd;
13979
+ var Cd = vd, GC = xd;
13980
13980
  const HC = ({ className: e, value: t = 0, max: n = 100, ref: r, ...o }) => {
13981
13981
  const s = Math.min(n, Math.max(0, Number(t))), i = s / n * 100, a = i >= 100, l = `${Math.round(i)}%`;
13982
13982
  return /* @__PURE__ */ Pe("div", { className: "flex items-center gap-1", children: [
13983
13983
  /* @__PURE__ */ x(
13984
- wd,
13984
+ Cd,
13985
13985
  {
13986
13986
  ref: r,
13987
13987
  value: s,
@@ -14016,7 +14016,7 @@ const HC = ({ className: e, value: t = 0, max: n = 100, ref: r, ...o }) => {
14016
14016
  )
14017
14017
  ] });
14018
14018
  };
14019
- HC.displayName = wd.displayName;
14019
+ HC.displayName = Cd.displayName;
14020
14020
  function WC(e) {
14021
14021
  const t = e + "CollectionProvider", [n, r] = Mt(t), [o, s] = n(
14022
14022
  t,
@@ -14064,13 +14064,13 @@ function Vi(e) {
14064
14064
  const t = c.useContext(jC);
14065
14065
  return e || t || "ltr";
14066
14066
  }
14067
- var hs = "rovingFocusGroup.onEntryFocus", UC = { bubbles: !1, cancelable: !0 }, cr = "RovingFocusGroup", [Ls, Cd, KC] = WC(cr), [qC, Io] = Mt(
14067
+ var hs = "rovingFocusGroup.onEntryFocus", UC = { bubbles: !1, cancelable: !0 }, cr = "RovingFocusGroup", [Ls, Ed, KC] = WC(cr), [qC, Io] = Mt(
14068
14068
  cr,
14069
14069
  [KC]
14070
- ), [YC, XC] = qC(cr), Ed = c.forwardRef(
14070
+ ), [YC, XC] = qC(cr), Rd = c.forwardRef(
14071
14071
  (e, t) => /* @__PURE__ */ x(Ls.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ x(Ls.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ x(ZC, { ...e, ref: t }) }) })
14072
14072
  );
14073
- Ed.displayName = cr;
14073
+ Rd.displayName = cr;
14074
14074
  var ZC = c.forwardRef((e, t) => {
14075
14075
  const {
14076
14076
  __scopeRovingFocusGroup: n,
@@ -14088,7 +14088,7 @@ var ZC = c.forwardRef((e, t) => {
14088
14088
  defaultProp: a ?? null,
14089
14089
  onChange: l,
14090
14090
  caller: cr
14091
- }), [y, v] = c.useState(!1), C = yn(u), w = Cd(n), R = c.useRef(!1), [k, S] = c.useState(0);
14091
+ }), [y, v] = c.useState(!1), C = yn(u), w = Ed(n), R = c.useRef(!1), [k, S] = c.useState(0);
14092
14092
  return c.useEffect(() => {
14093
14093
  const E = h.current;
14094
14094
  if (E)
@@ -14133,7 +14133,7 @@ var ZC = c.forwardRef((e, t) => {
14133
14133
  const W = w().filter((N) => N.focusable), P = W.find((N) => N.active), q = W.find((N) => N.id === g), z = [P, q, ...W].filter(
14134
14134
  Boolean
14135
14135
  ).map((N) => N.ref.current);
14136
- kd(z, d);
14136
+ Id(z, d);
14137
14137
  }
14138
14138
  }
14139
14139
  R.current = !1;
@@ -14143,7 +14143,7 @@ var ZC = c.forwardRef((e, t) => {
14143
14143
  )
14144
14144
  }
14145
14145
  );
14146
- }), Rd = "RovingFocusGroupItem", Sd = c.forwardRef(
14146
+ }), Sd = "RovingFocusGroupItem", kd = c.forwardRef(
14147
14147
  (e, t) => {
14148
14148
  const {
14149
14149
  __scopeRovingFocusGroup: n,
@@ -14152,7 +14152,7 @@ var ZC = c.forwardRef((e, t) => {
14152
14152
  tabStopId: s,
14153
14153
  children: i,
14154
14154
  ...a
14155
- } = e, l = Mn(), u = s || l, d = XC(Rd, n), f = d.currentTabStopId === u, h = Cd(n), { onFocusableItemAdd: p, onFocusableItemRemove: b, currentTabStopId: g } = d;
14155
+ } = e, l = Mn(), u = s || l, d = XC(Sd, n), f = d.currentTabStopId === u, h = Ed(n), { onFocusableItemAdd: p, onFocusableItemRemove: b, currentTabStopId: g } = d;
14156
14156
  return c.useEffect(() => {
14157
14157
  if (r)
14158
14158
  return p(), () => b();
@@ -14191,7 +14191,7 @@ var ZC = c.forwardRef((e, t) => {
14191
14191
  const w = C.indexOf(m.currentTarget);
14192
14192
  C = d.loop ? tE(C, w + 1) : C.slice(w + 1);
14193
14193
  }
14194
- setTimeout(() => kd(C));
14194
+ setTimeout(() => Id(C));
14195
14195
  }
14196
14196
  }),
14197
14197
  children: typeof i == "function" ? i({ isCurrentTabStop: f, hasTabStop: g != null }) : i
@@ -14201,7 +14201,7 @@ var ZC = c.forwardRef((e, t) => {
14201
14201
  );
14202
14202
  }
14203
14203
  );
14204
- Sd.displayName = Rd;
14204
+ kd.displayName = Sd;
14205
14205
  var QC = {
14206
14206
  ArrowLeft: "prev",
14207
14207
  ArrowUp: "prev",
@@ -14220,7 +14220,7 @@ function eE(e, t, n) {
14220
14220
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
14221
14221
  return QC[r];
14222
14222
  }
14223
- function kd(e, t = !1) {
14223
+ function Id(e, t = !1) {
14224
14224
  const n = document.activeElement;
14225
14225
  for (const r of e)
14226
14226
  if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
@@ -14228,7 +14228,7 @@ function kd(e, t = !1) {
14228
14228
  function tE(e, t) {
14229
14229
  return e.map((n, r) => e[(t + r) % e.length]);
14230
14230
  }
14231
- var Id = Ed, Nd = Sd, Fi = "Radio", [nE, Od] = Mt(Fi), [rE, oE] = nE(Fi), Pd = c.forwardRef(
14231
+ var Nd = Rd, Od = kd, Fi = "Radio", [nE, Pd] = Mt(Fi), [rE, oE] = nE(Fi), Td = c.forwardRef(
14232
14232
  (e, t) => {
14233
14233
  const {
14234
14234
  __scopeRadio: n,
@@ -14248,7 +14248,7 @@ var Id = Ed, Nd = Sd, Fi = "Radio", [nE, Od] = Mt(Fi), [rE, oE] = nE(Fi), Pd = c
14248
14248
  type: "button",
14249
14249
  role: "radio",
14250
14250
  "aria-checked": o,
14251
- "data-state": _d(o),
14251
+ "data-state": Dd(o),
14252
14252
  "data-disabled": i ? "" : void 0,
14253
14253
  disabled: i,
14254
14254
  value: a,
@@ -14260,7 +14260,7 @@ var Id = Ed, Nd = Sd, Fi = "Radio", [nE, Od] = Mt(Fi), [rE, oE] = nE(Fi), Pd = c
14260
14260
  }
14261
14261
  ),
14262
14262
  g && /* @__PURE__ */ x(
14263
- Md,
14263
+ _d,
14264
14264
  {
14265
14265
  control: f,
14266
14266
  bubbles: !b.current,
@@ -14276,14 +14276,14 @@ var Id = Ed, Nd = Sd, Fi = "Radio", [nE, Od] = Mt(Fi), [rE, oE] = nE(Fi), Pd = c
14276
14276
  ] });
14277
14277
  }
14278
14278
  );
14279
- Pd.displayName = Fi;
14280
- var Td = "RadioIndicator", Ad = c.forwardRef(
14279
+ Td.displayName = Fi;
14280
+ var Ad = "RadioIndicator", Md = c.forwardRef(
14281
14281
  (e, t) => {
14282
- const { __scopeRadio: n, forceMount: r, ...o } = e, s = oE(Td, n);
14282
+ const { __scopeRadio: n, forceMount: r, ...o } = e, s = oE(Ad, n);
14283
14283
  return /* @__PURE__ */ x(Bt, { present: r || s.checked, children: /* @__PURE__ */ x(
14284
14284
  Oe.span,
14285
14285
  {
14286
- "data-state": _d(s.checked),
14286
+ "data-state": Dd(s.checked),
14287
14287
  "data-disabled": s.disabled ? "" : void 0,
14288
14288
  ...o,
14289
14289
  ref: t
@@ -14291,8 +14291,8 @@ var Td = "RadioIndicator", Ad = c.forwardRef(
14291
14291
  ) });
14292
14292
  }
14293
14293
  );
14294
- Ad.displayName = Td;
14295
- var sE = "RadioBubbleInput", Md = c.forwardRef(
14294
+ Md.displayName = Ad;
14295
+ var sE = "RadioBubbleInput", _d = c.forwardRef(
14296
14296
  ({
14297
14297
  __scopeRadio: e,
14298
14298
  control: t,
@@ -14333,14 +14333,14 @@ var sE = "RadioBubbleInput", Md = c.forwardRef(
14333
14333
  );
14334
14334
  }
14335
14335
  );
14336
- Md.displayName = sE;
14337
- function _d(e) {
14336
+ _d.displayName = sE;
14337
+ function Dd(e) {
14338
14338
  return e ? "checked" : "unchecked";
14339
14339
  }
14340
14340
  var iE = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], No = "RadioGroup", [aE] = Mt(No, [
14341
14341
  Io,
14342
- Od
14343
- ]), Dd = Io(), Ld = Od(), [cE, lE] = aE(No), Vd = c.forwardRef(
14342
+ Pd
14343
+ ]), Ld = Io(), Vd = Pd(), [cE, lE] = aE(No), Fd = c.forwardRef(
14344
14344
  (e, t) => {
14345
14345
  const {
14346
14346
  __scopeRadioGroup: n,
@@ -14354,7 +14354,7 @@ var iE = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], No = "RadioGroup",
14354
14354
  loop: d = !0,
14355
14355
  onValueChange: f,
14356
14356
  ...h
14357
- } = e, p = Dd(n), b = Vi(u), [g, m] = Cn({
14357
+ } = e, p = Ld(n), b = Vi(u), [g, m] = Cn({
14358
14358
  prop: s,
14359
14359
  defaultProp: o ?? null,
14360
14360
  onChange: f,
@@ -14370,7 +14370,7 @@ var iE = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], No = "RadioGroup",
14370
14370
  value: g,
14371
14371
  onValueChange: m,
14372
14372
  children: /* @__PURE__ */ x(
14373
- Id,
14373
+ Nd,
14374
14374
  {
14375
14375
  asChild: !0,
14376
14376
  ...p,
@@ -14395,10 +14395,10 @@ var iE = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], No = "RadioGroup",
14395
14395
  );
14396
14396
  }
14397
14397
  );
14398
- Vd.displayName = No;
14399
- var Fd = "RadioGroupItem", $d = c.forwardRef(
14398
+ Fd.displayName = No;
14399
+ var $d = "RadioGroupItem", zd = c.forwardRef(
14400
14400
  (e, t) => {
14401
- const { __scopeRadioGroup: n, disabled: r, ...o } = e, s = lE(Fd, n), i = s.disabled || r, a = Dd(n), l = Ld(n), u = c.useRef(null), d = Be(t, u), f = s.value === o.value, h = c.useRef(!1);
14401
+ const { __scopeRadioGroup: n, disabled: r, ...o } = e, s = lE($d, n), i = s.disabled || r, a = Ld(n), l = Vd(n), u = c.useRef(null), d = Be(t, u), f = s.value === o.value, h = c.useRef(!1);
14402
14402
  return c.useEffect(() => {
14403
14403
  const p = (g) => {
14404
14404
  iE.includes(g.key) && (h.current = !0);
@@ -14407,14 +14407,14 @@ var Fd = "RadioGroupItem", $d = c.forwardRef(
14407
14407
  document.removeEventListener("keydown", p), document.removeEventListener("keyup", b);
14408
14408
  };
14409
14409
  }, []), /* @__PURE__ */ x(
14410
- Nd,
14410
+ Od,
14411
14411
  {
14412
14412
  asChild: !0,
14413
14413
  ...a,
14414
14414
  focusable: !i,
14415
14415
  active: f,
14416
14416
  children: /* @__PURE__ */ x(
14417
- Pd,
14417
+ Td,
14418
14418
  {
14419
14419
  disabled: i,
14420
14420
  required: s.required,
@@ -14436,15 +14436,15 @@ var Fd = "RadioGroupItem", $d = c.forwardRef(
14436
14436
  );
14437
14437
  }
14438
14438
  );
14439
- $d.displayName = Fd;
14440
- var uE = "RadioGroupIndicator", zd = c.forwardRef(
14439
+ zd.displayName = $d;
14440
+ var uE = "RadioGroupIndicator", Bd = c.forwardRef(
14441
14441
  (e, t) => {
14442
- const { __scopeRadioGroup: n, ...r } = e, o = Ld(n);
14443
- return /* @__PURE__ */ x(Ad, { ...o, ...r, ref: t });
14442
+ const { __scopeRadioGroup: n, ...r } = e, o = Vd(n);
14443
+ return /* @__PURE__ */ x(Md, { ...o, ...r, ref: t });
14444
14444
  }
14445
14445
  );
14446
- zd.displayName = uE;
14447
- var Bd = Vd, Gd = $d, dE = zd;
14446
+ Bd.displayName = uE;
14447
+ var Gd = Fd, Hd = zd, dE = Bd;
14448
14448
  const fE = ["grid gap-2"], pE = [
14449
14449
  "group size-5 cursor-pointer place-content-center rounded-full border transition-colors duration-200",
14450
14450
  "border-inp-hover-border bg-primary-bg",
@@ -14461,16 +14461,16 @@ const fE = ["grid gap-2"], pE = [
14461
14461
  "group-hover:bg-secondary-text",
14462
14462
  "group-disabled:bg-disabled-text"
14463
14463
  ], gE = ({ className: e, ref: t, ...n }) => /* @__PURE__ */ x(
14464
- Bd,
14464
+ Gd,
14465
14465
  {
14466
14466
  className: B(fE, e),
14467
14467
  ...n,
14468
14468
  ref: t
14469
14469
  }
14470
14470
  );
14471
- gE.displayName = Bd.displayName;
14471
+ gE.displayName = Gd.displayName;
14472
14472
  const bE = ({ className: e, ref: t, ...n }) => /* @__PURE__ */ x(
14473
- Gd,
14473
+ Hd,
14474
14474
  {
14475
14475
  ref: t,
14476
14476
  className: B(pE, e),
@@ -14478,8 +14478,8 @@ const bE = ({ className: e, ref: t, ...n }) => /* @__PURE__ */ x(
14478
14478
  children: /* @__PURE__ */ x(dE, { className: B(mE), children: /* @__PURE__ */ x("span", { className: B(hE) }) })
14479
14479
  }
14480
14480
  );
14481
- bE.displayName = Gd.displayName;
14482
- var Oo = "Switch", [vE] = Mt(Oo), [yE, xE] = vE(Oo), Hd = c.forwardRef(
14481
+ bE.displayName = Hd.displayName;
14482
+ var Oo = "Switch", [vE] = Mt(Oo), [yE, xE] = vE(Oo), Wd = c.forwardRef(
14483
14483
  (e, t) => {
14484
14484
  const {
14485
14485
  __scopeSwitch: n,
@@ -14506,7 +14506,7 @@ var Oo = "Switch", [vE] = Mt(Oo), [yE, xE] = vE(Oo), Hd = c.forwardRef(
14506
14506
  role: "switch",
14507
14507
  "aria-checked": y,
14508
14508
  "aria-required": i,
14509
- "data-state": Kd(y),
14509
+ "data-state": qd(y),
14510
14510
  "data-disabled": a ? "" : void 0,
14511
14511
  disabled: a,
14512
14512
  value: l,
@@ -14518,7 +14518,7 @@ var Oo = "Switch", [vE] = Mt(Oo), [yE, xE] = vE(Oo), Hd = c.forwardRef(
14518
14518
  }
14519
14519
  ),
14520
14520
  m && /* @__PURE__ */ x(
14521
- Ud,
14521
+ Kd,
14522
14522
  {
14523
14523
  control: h,
14524
14524
  bubbles: !g.current,
@@ -14534,14 +14534,14 @@ var Oo = "Switch", [vE] = Mt(Oo), [yE, xE] = vE(Oo), Hd = c.forwardRef(
14534
14534
  ] });
14535
14535
  }
14536
14536
  );
14537
- Hd.displayName = Oo;
14538
- var Wd = "SwitchThumb", jd = c.forwardRef(
14537
+ Wd.displayName = Oo;
14538
+ var jd = "SwitchThumb", Ud = c.forwardRef(
14539
14539
  (e, t) => {
14540
- const { __scopeSwitch: n, ...r } = e, o = xE(Wd, n);
14540
+ const { __scopeSwitch: n, ...r } = e, o = xE(jd, n);
14541
14541
  return /* @__PURE__ */ x(
14542
14542
  Oe.span,
14543
14543
  {
14544
- "data-state": Kd(o.checked),
14544
+ "data-state": qd(o.checked),
14545
14545
  "data-disabled": o.disabled ? "" : void 0,
14546
14546
  ...r,
14547
14547
  ref: t
@@ -14549,8 +14549,8 @@ var Wd = "SwitchThumb", jd = c.forwardRef(
14549
14549
  );
14550
14550
  }
14551
14551
  );
14552
- jd.displayName = Wd;
14553
- var wE = "SwitchBubbleInput", Ud = c.forwardRef(
14552
+ Ud.displayName = jd;
14553
+ var wE = "SwitchBubbleInput", Kd = c.forwardRef(
14554
14554
  ({
14555
14555
  __scopeSwitch: e,
14556
14556
  control: t,
@@ -14591,11 +14591,11 @@ var wE = "SwitchBubbleInput", Ud = c.forwardRef(
14591
14591
  );
14592
14592
  }
14593
14593
  );
14594
- Ud.displayName = wE;
14595
- function Kd(e) {
14594
+ Kd.displayName = wE;
14595
+ function qd(e) {
14596
14596
  return e ? "checked" : "unchecked";
14597
14597
  }
14598
- var qd = Hd, CE = jd;
14598
+ var Yd = Wd, CE = Ud;
14599
14599
  const EE = [
14600
14600
  "peer group relative inline-flex h-6 w-12 shrink-0 cursor-pointer items-center rounded-full border p-1 transition-colors",
14601
14601
  // Normal state
@@ -14613,7 +14613,7 @@ const EE = [
14613
14613
  "bg-primary-inverse-bg data-[state=checked]:translate-x-6 data-[state=checked]:bg-primary-bg",
14614
14614
  "group-disabled:bg-disabled-text group-disabled:data-[state=checked]:bg-disabled-text"
14615
14615
  ], SE = ({ className: e, ref: t, ...n }) => /* @__PURE__ */ x(
14616
- qd,
14616
+ Yd,
14617
14617
  {
14618
14618
  className: B(EE, e),
14619
14619
  ...n,
@@ -14621,7 +14621,7 @@ const EE = [
14621
14621
  children: /* @__PURE__ */ x(CE, { className: B(RE) })
14622
14622
  }
14623
14623
  );
14624
- SE.displayName = qd.displayName;
14624
+ SE.displayName = Yd.displayName;
14625
14625
  const kE = ({ ref: e, className: t, ...n }) => /* @__PURE__ */ x("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ x(
14626
14626
  "table",
14627
14627
  {
@@ -14708,7 +14708,7 @@ const ME = ({ ref: e, className: t, ...n }) => /* @__PURE__ */ x(
14708
14708
  ME.displayName = "TableCaption";
14709
14709
  var Po = "Tabs", [_E] = Mt(Po, [
14710
14710
  Io
14711
- ]), Yd = Io(), [DE, $i] = _E(Po), Xd = c.forwardRef(
14711
+ ]), Xd = Io(), [DE, $i] = _E(Po), Zd = c.forwardRef(
14712
14712
  (e, t) => {
14713
14713
  const {
14714
14714
  __scopeTabs: n,
@@ -14748,12 +14748,12 @@ var Po = "Tabs", [_E] = Mt(Po, [
14748
14748
  );
14749
14749
  }
14750
14750
  );
14751
- Xd.displayName = Po;
14752
- var Zd = "TabsList", Qd = c.forwardRef(
14751
+ Zd.displayName = Po;
14752
+ var Qd = "TabsList", Jd = c.forwardRef(
14753
14753
  (e, t) => {
14754
- const { __scopeTabs: n, loop: r = !0, ...o } = e, s = $i(Zd, n), i = Yd(n);
14754
+ const { __scopeTabs: n, loop: r = !0, ...o } = e, s = $i(Qd, n), i = Xd(n);
14755
14755
  return /* @__PURE__ */ x(
14756
- Id,
14756
+ Nd,
14757
14757
  {
14758
14758
  asChild: !0,
14759
14759
  ...i,
@@ -14773,12 +14773,12 @@ var Zd = "TabsList", Qd = c.forwardRef(
14773
14773
  );
14774
14774
  }
14775
14775
  );
14776
- Qd.displayName = Zd;
14777
- var Jd = "TabsTrigger", ef = c.forwardRef(
14776
+ Jd.displayName = Qd;
14777
+ var ef = "TabsTrigger", tf = c.forwardRef(
14778
14778
  (e, t) => {
14779
- const { __scopeTabs: n, value: r, disabled: o = !1, ...s } = e, i = $i(Jd, n), a = Yd(n), l = rf(i.baseId, r), u = of(i.baseId, r), d = r === i.value;
14779
+ const { __scopeTabs: n, value: r, disabled: o = !1, ...s } = e, i = $i(ef, n), a = Xd(n), l = of(i.baseId, r), u = sf(i.baseId, r), d = r === i.value;
14780
14780
  return /* @__PURE__ */ x(
14781
- Nd,
14781
+ Od,
14782
14782
  {
14783
14783
  asChild: !0,
14784
14784
  ...a,
@@ -14813,10 +14813,10 @@ var Jd = "TabsTrigger", ef = c.forwardRef(
14813
14813
  );
14814
14814
  }
14815
14815
  );
14816
- ef.displayName = Jd;
14817
- var tf = "TabsContent", nf = c.forwardRef(
14816
+ tf.displayName = ef;
14817
+ var nf = "TabsContent", rf = c.forwardRef(
14818
14818
  (e, t) => {
14819
- const { __scopeTabs: n, value: r, forceMount: o, children: s, ...i } = e, a = $i(tf, n), l = rf(a.baseId, r), u = of(a.baseId, r), d = r === a.value, f = c.useRef(d);
14819
+ const { __scopeTabs: n, value: r, forceMount: o, children: s, ...i } = e, a = $i(nf, n), l = of(a.baseId, r), u = sf(a.baseId, r), d = r === a.value, f = c.useRef(d);
14820
14820
  return c.useEffect(() => {
14821
14821
  const h = requestAnimationFrame(() => f.current = !1);
14822
14822
  return () => cancelAnimationFrame(h);
@@ -14841,14 +14841,14 @@ var tf = "TabsContent", nf = c.forwardRef(
14841
14841
  ) });
14842
14842
  }
14843
14843
  );
14844
- nf.displayName = tf;
14845
- function rf(e, t) {
14844
+ rf.displayName = nf;
14845
+ function of(e, t) {
14846
14846
  return `${e}-trigger-${t}`;
14847
14847
  }
14848
- function of(e, t) {
14848
+ function sf(e, t) {
14849
14849
  return `${e}-content-${t}`;
14850
14850
  }
14851
- var LE = Xd, sf = Qd, af = ef, cf = nf;
14851
+ var LE = Zd, af = Jd, cf = tf, lf = rf;
14852
14852
  const VE = Ve(
14853
14853
  [
14854
14854
  "text-primary-text inline-flex items-stretch",
@@ -14903,29 +14903,29 @@ const VE = Ve(
14903
14903
  variant: "default"
14904
14904
  }
14905
14905
  }
14906
- ), lf = c.createContext("default"), aR = LE, $E = ({
14906
+ ), uf = c.createContext("default"), aR = LE, $E = ({
14907
14907
  ref: e,
14908
14908
  className: t,
14909
14909
  variant: n = "default",
14910
14910
  ...r
14911
- }) => /* @__PURE__ */ x(lf, { value: n, children: /* @__PURE__ */ x(
14912
- sf,
14911
+ }) => /* @__PURE__ */ x(uf, { value: n, children: /* @__PURE__ */ x(
14912
+ af,
14913
14913
  {
14914
14914
  ref: e,
14915
14915
  className: B(VE({ variant: n }), t),
14916
14916
  ...r
14917
14917
  }
14918
14918
  ) });
14919
- $E.displayName = sf.displayName;
14919
+ $E.displayName = af.displayName;
14920
14920
  const zE = ({
14921
14921
  ref: e,
14922
14922
  className: t,
14923
14923
  variant: n,
14924
14924
  ...r
14925
14925
  }) => {
14926
- const o = c.use(lf);
14926
+ const o = c.use(uf);
14927
14927
  return /* @__PURE__ */ x(
14928
- af,
14928
+ cf,
14929
14929
  {
14930
14930
  ref: e,
14931
14931
  className: B(FE({ variant: n ?? o }), t),
@@ -14933,13 +14933,13 @@ const zE = ({
14933
14933
  }
14934
14934
  );
14935
14935
  };
14936
- zE.displayName = af.displayName;
14936
+ zE.displayName = cf.displayName;
14937
14937
  const BE = ({
14938
14938
  ref: e,
14939
14939
  className: t,
14940
14940
  ...n
14941
14941
  }) => /* @__PURE__ */ x(
14942
- cf,
14942
+ lf,
14943
14943
  {
14944
14944
  ref: e,
14945
14945
  className: B(
@@ -14951,8 +14951,8 @@ const BE = ({
14951
14951
  ...n
14952
14952
  }
14953
14953
  );
14954
- BE.displayName = cf.displayName;
14955
- var GE = "Arrow", uf = c.forwardRef((e, t) => {
14954
+ BE.displayName = lf.displayName;
14955
+ var GE = "Arrow", df = c.forwardRef((e, t) => {
14956
14956
  const { children: n, width: r = 10, height: o = 5, ...s } = e;
14957
14957
  return /* @__PURE__ */ x(
14958
14958
  Oe.svg,
@@ -14967,23 +14967,23 @@ var GE = "Arrow", uf = c.forwardRef((e, t) => {
14967
14967
  }
14968
14968
  );
14969
14969
  });
14970
- uf.displayName = GE;
14971
- var HE = uf, zi = "Popper", [df, ff] = Mt(zi), [WE, pf] = df(zi), mf = (e) => {
14970
+ df.displayName = GE;
14971
+ var HE = df, zi = "Popper", [ff, pf] = Mt(zi), [WE, mf] = ff(zi), hf = (e) => {
14972
14972
  const { __scopePopper: t, children: n } = e, [r, o] = c.useState(null);
14973
14973
  return /* @__PURE__ */ x(WE, { scope: t, anchor: r, onAnchorChange: o, children: n });
14974
14974
  };
14975
- mf.displayName = zi;
14976
- var hf = "PopperAnchor", gf = c.forwardRef(
14975
+ hf.displayName = zi;
14976
+ var gf = "PopperAnchor", bf = c.forwardRef(
14977
14977
  (e, t) => {
14978
- const { __scopePopper: n, virtualRef: r, ...o } = e, s = pf(hf, n), i = c.useRef(null), a = Be(t, i), l = c.useRef(null);
14978
+ const { __scopePopper: n, virtualRef: r, ...o } = e, s = mf(gf, n), i = c.useRef(null), a = Be(t, i), l = c.useRef(null);
14979
14979
  return c.useEffect(() => {
14980
14980
  const u = l.current;
14981
14981
  l.current = r?.current || i.current, u !== l.current && s.onAnchorChange(l.current);
14982
14982
  }), r ? null : /* @__PURE__ */ x(Oe.div, { ...o, ref: a });
14983
14983
  }
14984
14984
  );
14985
- gf.displayName = hf;
14986
- var Bi = "PopperContent", [jE, UE] = df(Bi), bf = c.forwardRef(
14985
+ bf.displayName = gf;
14986
+ var Bi = "PopperContent", [jE, UE] = ff(Bi), vf = c.forwardRef(
14987
14987
  (e, t) => {
14988
14988
  const {
14989
14989
  __scopePopper: n,
@@ -15000,12 +15000,12 @@ var Bi = "PopperContent", [jE, UE] = df(Bi), bf = c.forwardRef(
15000
15000
  updatePositionStrategy: p = "optimized",
15001
15001
  onPlaced: b,
15002
15002
  ...g
15003
- } = e, m = pf(Bi, n), [y, v] = c.useState(null), C = Be(t, (Ce) => v(Ce)), [w, R] = c.useState(null), k = ao(w), S = k?.width ?? 0, E = k?.height ?? 0, F = r + (s !== "center" ? "-" + s : ""), j = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, W = Array.isArray(u) ? u : [u], P = W.length > 0, q = {
15003
+ } = e, m = mf(Bi, n), [y, v] = c.useState(null), C = Be(t, (Ce) => v(Ce)), [w, R] = c.useState(null), k = ao(w), S = k?.width ?? 0, E = k?.height ?? 0, F = r + (s !== "center" ? "-" + s : ""), j = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, W = Array.isArray(u) ? u : [u], P = W.length > 0, q = {
15004
15004
  padding: j,
15005
15005
  boundary: W.filter(qE),
15006
15006
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
15007
15007
  altBoundary: P
15008
- }, { refs: Y, floatingStyles: z, placement: N, isPositioned: G, middlewareData: V } = zl({
15008
+ }, { refs: Y, floatingStyles: z, placement: N, isPositioned: G, middlewareData: V } = Bl({
15009
15009
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
15010
15010
  strategy: "fixed",
15011
15011
  placement: F,
@@ -15016,15 +15016,15 @@ var Bi = "PopperContent", [jE, UE] = df(Bi), bf = c.forwardRef(
15016
15016
  reference: m.anchor
15017
15017
  },
15018
15018
  middleware: [
15019
- Bl({ mainAxis: o + E, alignmentAxis: i }),
15020
- l && Gl({
15019
+ Gl({ mainAxis: o + E, alignmentAxis: i }),
15020
+ l && Hl({
15021
15021
  mainAxis: !0,
15022
15022
  crossAxis: !1,
15023
- limiter: f === "partial" ? Hl() : void 0,
15023
+ limiter: f === "partial" ? Wl() : void 0,
15024
15024
  ...q
15025
15025
  }),
15026
- l && Wl({ ...q }),
15027
- jl({
15026
+ l && jl({ ...q }),
15027
+ Ul({
15028
15028
  ...q,
15029
15029
  apply: ({ elements: Ce, rects: Se, availableWidth: X, availableHeight: pe }) => {
15030
15030
  const { width: xe, height: O } = Se.reference, A = Ce.floating.style;
@@ -15033,9 +15033,9 @@ var Bi = "PopperContent", [jE, UE] = df(Bi), bf = c.forwardRef(
15033
15033
  }),
15034
15034
  w && Cv({ element: w, padding: a }),
15035
15035
  YE({ arrowWidth: S, arrowHeight: E }),
15036
- h && Ul({ strategy: "referenceHidden", ...q })
15036
+ h && Kl({ strategy: "referenceHidden", ...q })
15037
15037
  ]
15038
- }), [te, T] = xf(N), we = yn(b);
15038
+ }), [te, T] = wf(N), we = yn(b);
15039
15039
  nn(() => {
15040
15040
  G && we?.();
15041
15041
  }, [G, we]);
@@ -15096,14 +15096,14 @@ var Bi = "PopperContent", [jE, UE] = df(Bi), bf = c.forwardRef(
15096
15096
  );
15097
15097
  }
15098
15098
  );
15099
- bf.displayName = Bi;
15100
- var vf = "PopperArrow", KE = {
15099
+ vf.displayName = Bi;
15100
+ var yf = "PopperArrow", KE = {
15101
15101
  top: "bottom",
15102
15102
  right: "left",
15103
15103
  bottom: "top",
15104
15104
  left: "right"
15105
- }, yf = c.forwardRef(function(t, n) {
15106
- const { __scopePopper: r, ...o } = t, s = UE(vf, r), i = KE[s.placedSide];
15105
+ }, xf = c.forwardRef(function(t, n) {
15106
+ const { __scopePopper: r, ...o } = t, s = UE(yf, r), i = KE[s.placedSide];
15107
15107
  return (
15108
15108
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
15109
15109
  // doesn't report size as we'd expect on SVG elements.
@@ -15147,7 +15147,7 @@ var vf = "PopperArrow", KE = {
15147
15147
  )
15148
15148
  );
15149
15149
  });
15150
- yf.displayName = vf;
15150
+ xf.displayName = yf;
15151
15151
  function qE(e) {
15152
15152
  return e !== null;
15153
15153
  }
@@ -15155,16 +15155,16 @@ var YE = (e) => ({
15155
15155
  name: "transformOrigin",
15156
15156
  options: e,
15157
15157
  fn(t) {
15158
- const { placement: n, rects: r, middlewareData: o } = t, i = o.arrow?.centerOffset !== 0, a = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [u, d] = xf(n), f = { start: "0%", center: "50%", end: "100%" }[d], h = (o.arrow?.x ?? 0) + a / 2, p = (o.arrow?.y ?? 0) + l / 2;
15158
+ const { placement: n, rects: r, middlewareData: o } = t, i = o.arrow?.centerOffset !== 0, a = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [u, d] = wf(n), f = { start: "0%", center: "50%", end: "100%" }[d], h = (o.arrow?.x ?? 0) + a / 2, p = (o.arrow?.y ?? 0) + l / 2;
15159
15159
  let b = "", g = "";
15160
15160
  return u === "bottom" ? (b = i ? f : `${h}px`, g = `${-l}px`) : u === "top" ? (b = i ? f : `${h}px`, g = `${r.floating.height + l}px`) : u === "right" ? (b = `${-l}px`, g = i ? f : `${p}px`) : u === "left" && (b = `${r.floating.width + l}px`, g = i ? f : `${p}px`), { data: { x: b, y: g } };
15161
15161
  }
15162
15162
  });
15163
- function xf(e) {
15163
+ function wf(e) {
15164
15164
  const [t, n = "center"] = e.split("-");
15165
15165
  return [t, n];
15166
15166
  }
15167
- var XE = mf, ZE = gf, QE = bf, JE = yf, e0 = Object.freeze({
15167
+ var XE = hf, ZE = bf, QE = vf, JE = xf, e0 = Object.freeze({
15168
15168
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
15169
15169
  position: "absolute",
15170
15170
  border: 0,
@@ -15176,7 +15176,7 @@ var XE = mf, ZE = gf, QE = bf, JE = yf, e0 = Object.freeze({
15176
15176
  clip: "rect(0, 0, 0, 0)",
15177
15177
  whiteSpace: "nowrap",
15178
15178
  wordWrap: "normal"
15179
- }), t0 = "VisuallyHidden", wf = c.forwardRef(
15179
+ }), t0 = "VisuallyHidden", Cf = c.forwardRef(
15180
15180
  (e, t) => /* @__PURE__ */ x(
15181
15181
  Oe.span,
15182
15182
  {
@@ -15186,10 +15186,10 @@ var XE = mf, ZE = gf, QE = bf, JE = yf, e0 = Object.freeze({
15186
15186
  }
15187
15187
  )
15188
15188
  );
15189
- wf.displayName = t0;
15190
- var n0 = wf, [To] = Mt("Tooltip", [
15191
- ff
15192
- ]), Ao = ff(), Cf = "TooltipProvider", r0 = 700, Vs = "tooltip.open", [o0, Gi] = To(Cf), Ef = (e) => {
15189
+ Cf.displayName = t0;
15190
+ var n0 = Cf, [To] = Mt("Tooltip", [
15191
+ pf
15192
+ ]), Ao = pf(), Ef = "TooltipProvider", r0 = 700, Vs = "tooltip.open", [o0, Gi] = To(Ef), Rf = (e) => {
15193
15193
  const {
15194
15194
  __scopeTooltip: t,
15195
15195
  delayDuration: n = r0,
@@ -15224,8 +15224,8 @@ var n0 = wf, [To] = Mt("Tooltip", [
15224
15224
  }
15225
15225
  );
15226
15226
  };
15227
- Ef.displayName = Cf;
15228
- var or = "Tooltip", [s0, lr] = To(or), Rf = (e) => {
15227
+ Rf.displayName = Ef;
15228
+ var or = "Tooltip", [s0, lr] = To(or), Sf = (e) => {
15229
15229
  const {
15230
15230
  __scopeTooltip: t,
15231
15231
  children: n,
@@ -15274,8 +15274,8 @@ var or = "Tooltip", [s0, lr] = To(or), Rf = (e) => {
15274
15274
  }
15275
15275
  ) });
15276
15276
  };
15277
- Rf.displayName = or;
15278
- var Fs = "TooltipTrigger", Sf = c.forwardRef(
15277
+ Sf.displayName = or;
15278
+ var Fs = "TooltipTrigger", kf = c.forwardRef(
15279
15279
  (e, t) => {
15280
15280
  const { __scopeTooltip: n, ...r } = e, o = lr(Fs, n), s = Gi(Fs, n), i = Ao(n), a = c.useRef(null), l = Be(t, a, o.onTriggerChange), u = c.useRef(!1), d = c.useRef(!1), f = c.useCallback(() => u.current = !1, []);
15281
15281
  return c.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ x(ZE, { asChild: !0, ...i, children: /* @__PURE__ */ x(
@@ -15303,18 +15303,18 @@ var Fs = "TooltipTrigger", Sf = c.forwardRef(
15303
15303
  ) });
15304
15304
  }
15305
15305
  );
15306
- Sf.displayName = Fs;
15306
+ kf.displayName = Fs;
15307
15307
  var Hi = "TooltipPortal", [i0, a0] = To(Hi, {
15308
15308
  forceMount: void 0
15309
- }), kf = (e) => {
15309
+ }), If = (e) => {
15310
15310
  const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, s = lr(Hi, t);
15311
15311
  return /* @__PURE__ */ x(i0, { scope: t, forceMount: n, children: /* @__PURE__ */ x(Bt, { present: n || s.open, children: /* @__PURE__ */ x(Pi, { asChild: !0, container: o, children: r }) }) });
15312
15312
  };
15313
- kf.displayName = Hi;
15314
- var Vn = "TooltipContent", If = c.forwardRef(
15313
+ If.displayName = Hi;
15314
+ var Vn = "TooltipContent", Nf = c.forwardRef(
15315
15315
  (e, t) => {
15316
15316
  const n = a0(Vn, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, i = lr(Vn, e.__scopeTooltip);
15317
- return /* @__PURE__ */ x(Bt, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ x(Nf, { side: o, ...s, ref: t }) : /* @__PURE__ */ x(c0, { side: o, ...s, ref: t }) });
15317
+ return /* @__PURE__ */ x(Bt, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ x(Of, { side: o, ...s, ref: t }) : /* @__PURE__ */ x(c0, { side: o, ...s, ref: t }) });
15318
15318
  }
15319
15319
  ), c0 = c.forwardRef((e, t) => {
15320
15320
  const n = lr(Vn, e.__scopeTooltip), r = Gi(Vn, e.__scopeTooltip), o = c.useRef(null), s = Be(t, o), [i, a] = c.useState(null), { trigger: l, onClose: u } = n, d = o.current, { onPointerInTransitChange: f } = r, h = c.useCallback(() => {
@@ -15341,8 +15341,8 @@ var Vn = "TooltipContent", If = c.forwardRef(
15341
15341
  };
15342
15342
  return document.addEventListener("pointermove", b), () => document.removeEventListener("pointermove", b);
15343
15343
  }
15344
- }, [l, d, i, u, h]), /* @__PURE__ */ x(Nf, { ...e, ref: s });
15345
- }), [l0, u0] = To(or, { isInside: !1 }), d0 = /* @__PURE__ */ Cm("TooltipContent"), Nf = c.forwardRef(
15344
+ }, [l, d, i, u, h]), /* @__PURE__ */ x(Of, { ...e, ref: s });
15345
+ }), [l0, u0] = To(or, { isInside: !1 }), d0 = /* @__PURE__ */ Cm("TooltipContent"), Of = c.forwardRef(
15346
15346
  (e, t) => {
15347
15347
  const {
15348
15348
  __scopeTooltip: n,
@@ -15393,17 +15393,17 @@ var Vn = "TooltipContent", If = c.forwardRef(
15393
15393
  );
15394
15394
  }
15395
15395
  );
15396
- If.displayName = Vn;
15397
- var Of = "TooltipArrow", Pf = c.forwardRef(
15396
+ Nf.displayName = Vn;
15397
+ var Pf = "TooltipArrow", Tf = c.forwardRef(
15398
15398
  (e, t) => {
15399
15399
  const { __scopeTooltip: n, ...r } = e, o = Ao(n);
15400
15400
  return u0(
15401
- Of,
15401
+ Pf,
15402
15402
  n
15403
15403
  ).isInside ? null : /* @__PURE__ */ x(JE, { ...o, ...r, ref: t });
15404
15404
  }
15405
15405
  );
15406
- Pf.displayName = Of;
15406
+ Tf.displayName = Pf;
15407
15407
  function f0(e, t) {
15408
15408
  const n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), o = Math.abs(t.right - e.x), s = Math.abs(t.left - e.x);
15409
15409
  switch (Math.min(n, r, o, s)) {
@@ -15496,7 +15496,7 @@ function b0(e) {
15496
15496
  }
15497
15497
  return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
15498
15498
  }
15499
- var v0 = Ef, y0 = Rf, x0 = Sf, w0 = kf, Tf = If, C0 = Pf;
15499
+ var v0 = Rf, y0 = Sf, x0 = kf, w0 = If, Af = Nf, C0 = Tf;
15500
15500
  const E0 = `bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95
15501
15501
  data-[state=closed]:animate-out data-[state=closed]:fade-out-0
15502
15502
  data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2
@@ -15509,7 +15509,7 @@ py-1.5 text-xs`, cR = v0, lR = y0, uR = x0, dR = C0, R0 = ({
15509
15509
  ref: n,
15510
15510
  ...r
15511
15511
  }) => /* @__PURE__ */ x(w0, { children: /* @__PURE__ */ x(
15512
- Tf,
15512
+ Af,
15513
15513
  {
15514
15514
  ref: n,
15515
15515
  sideOffset: t,
@@ -15517,7 +15517,16 @@ py-1.5 text-xs`, cR = v0, lR = y0, uR = x0, dR = C0, R0 = ({
15517
15517
  ...r
15518
15518
  }
15519
15519
  ) });
15520
- R0.displayName = Tf.displayName;
15520
+ R0.displayName = Af.displayName;
15521
+ const fR = (e = !1) => {
15522
+ const [t, n] = dc(e);
15523
+ return {
15524
+ isOpened: t,
15525
+ openPopup: () => n(!0),
15526
+ closePopup: () => n(!1),
15527
+ togglePopup: () => n((i) => !i)
15528
+ };
15529
+ };
15521
15530
  export {
15522
15531
  T0 as Badge,
15523
15532
  Gs as Button,
@@ -15550,7 +15559,7 @@ export {
15550
15559
  EC as DialogDescription,
15551
15560
  wC as DialogFooter,
15552
15561
  xC as DialogHeader,
15553
- gd as DialogOverlay,
15562
+ bd as DialogOverlay,
15554
15563
  vC as DialogPortal,
15555
15564
  CC as DialogTitle,
15556
15565
  rR as DialogTrigger,
@@ -15572,7 +15581,7 @@ export {
15572
15581
  Tx as InputGroupInput,
15573
15582
  F0 as InputGroupText,
15574
15583
  $0 as InputGroupTextarea,
15575
- Pu as Label,
15584
+ Tu as Label,
15576
15585
  sR as NavigationItem,
15577
15586
  iR as NavigationMenu,
15578
15587
  NC as Pagination,
@@ -15585,7 +15594,7 @@ export {
15585
15594
  HC as Progress,
15586
15595
  gE as RadioGroup,
15587
15596
  bE as RadioGroupItem,
15588
- Mu as Separator,
15597
+ _u as Separator,
15589
15598
  SE as Switch,
15590
15599
  kE as Table,
15591
15600
  NE as TableBody,
@@ -15599,7 +15608,7 @@ export {
15599
15608
  BE as TabsContent,
15600
15609
  $E as TabsList,
15601
15610
  zE as TabsTrigger,
15602
- _u as Textarea,
15611
+ Du as Textarea,
15603
15612
  lR as Tooltip,
15604
15613
  dR as TooltipArrow,
15605
15614
  R0 as TooltipContent,
@@ -15607,10 +15616,11 @@ export {
15607
15616
  uR as TooltipTrigger,
15608
15617
  P0 as Typography,
15609
15618
  jp as badgeVariants,
15610
- Tc as buttonVariants,
15619
+ Ac as buttonVariants,
15611
15620
  B as cn,
15612
15621
  Qe as getTypographyClassName,
15613
- Nc as typographyClassNames,
15614
- O0 as typographyVariantOptions
15622
+ Oc as typographyClassNames,
15623
+ O0 as typographyVariantOptions,
15624
+ fR as usePopupControls
15615
15625
  };
15616
15626
  //# sourceMappingURL=index.js.map