@datawire-ai/busyfile-design-library 1.29.3 → 1.29.4

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,4 +1,4 @@
1
- import * as u from "react";
1
+ import * as f from "react";
2
2
  import j, { forwardRef as Za, createElement as Fr, useState as De, useLayoutEffect as Qa, useMemo as Rt, useEffect as fo, createContext as dd, useContext as ud, useCallback as Te, useRef as En } from "react";
3
3
  import * as Wn from "react-dom";
4
4
  import fd from "react-dom";
@@ -185,7 +185,7 @@ function hd() {
185
185
  value: R
186
186
  }), Object.freeze && (Object.freeze(O.props), Object.freeze(O)), O;
187
187
  }
188
- function f(O, H, M, P, I, A, J, R) {
188
+ function u(O, H, M, P, I, A, J, R) {
189
189
  var z = H.children;
190
190
  if (z !== void 0)
191
191
  if (P)
@@ -252,7 +252,7 @@ React keys must be passed directly to JSX without using spread:
252
252
  )(), T = Y(r(a)), ee = {};
253
253
  Ut.Fragment = h, Ut.jsx = function(O, H, M, P, I) {
254
254
  var A = 1e4 > D.recentlyCreatedOwnerStacks++;
255
- return f(
255
+ return u(
256
256
  O,
257
257
  H,
258
258
  M,
@@ -264,7 +264,7 @@ React keys must be passed directly to JSX without using spread:
264
264
  );
265
265
  }, Ut.jsxs = function(O, H, M, P, I) {
266
266
  var A = 1e4 > D.recentlyCreatedOwnerStacks++;
267
- return f(
267
+ return u(
268
268
  O,
269
269
  H,
270
270
  M,
@@ -301,15 +301,15 @@ function gt(...e) {
301
301
  };
302
302
  }
303
303
  function ie(...e) {
304
- return u.useCallback(gt(...e), e);
304
+ return f.useCallback(gt(...e), e);
305
305
  }
306
306
  // @__NO_SIDE_EFFECTS__
307
307
  function bt(e) {
308
- const t = /* @__PURE__ */ pd(e), n = u.forwardRef((r, o) => {
309
- const { children: a, ...s } = r, i = u.Children.toArray(a), l = i.find(bd);
308
+ const t = /* @__PURE__ */ pd(e), n = f.forwardRef((r, o) => {
309
+ const { children: a, ...s } = r, i = f.Children.toArray(a), l = i.find(bd);
310
310
  if (l) {
311
- const d = l.props.children, f = i.map((m) => m === l ? u.Children.count(d) > 1 ? u.Children.only(null) : u.isValidElement(d) ? d.props.children : null : m);
312
- return /* @__PURE__ */ c.jsx(t, { ...s, ref: o, children: u.isValidElement(d) ? u.cloneElement(d, void 0, f) : null });
311
+ const d = l.props.children, u = i.map((m) => m === l ? f.Children.count(d) > 1 ? f.Children.only(null) : f.isValidElement(d) ? d.props.children : null : m);
312
+ return /* @__PURE__ */ c.jsx(t, { ...s, ref: o, children: f.isValidElement(d) ? f.cloneElement(d, void 0, u) : null });
313
313
  }
314
314
  return /* @__PURE__ */ c.jsx(t, { ...s, ref: o, children: a });
315
315
  });
@@ -318,13 +318,13 @@ function bt(e) {
318
318
  var Je = /* @__PURE__ */ bt("Slot");
319
319
  // @__NO_SIDE_EFFECTS__
320
320
  function pd(e) {
321
- const t = u.forwardRef((n, r) => {
321
+ const t = f.forwardRef((n, r) => {
322
322
  const { children: o, ...a } = n;
323
- if (u.isValidElement(o)) {
323
+ if (f.isValidElement(o)) {
324
324
  const s = xd(o), i = vd(a, o.props);
325
- return o.type !== u.Fragment && (i.ref = r ? gt(r, s) : s), u.cloneElement(o, i);
325
+ return o.type !== f.Fragment && (i.ref = r ? gt(r, s) : s), f.cloneElement(o, i);
326
326
  }
327
- return u.Children.count(o) > 1 ? u.Children.only(null) : null;
327
+ return f.Children.count(o) > 1 ? f.Children.only(null) : null;
328
328
  });
329
329
  return t.displayName = `${e}.SlotClone`, t;
330
330
  }
@@ -335,7 +335,7 @@ function gd(e) {
335
335
  return t.displayName = `${e}.Slottable`, t.__radixId = Ja, t;
336
336
  }
337
337
  function bd(e) {
338
- return u.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ja;
338
+ return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ja;
339
339
  }
340
340
  function vd(e, t) {
341
341
  const n = { ...t };
@@ -487,7 +487,7 @@ const mo = "-", yd = (e) => {
487
487
  }
488
488
  h === "[" ? s++ : h === "]" ? s-- : h === "(" ? i++ : h === ")" && i--;
489
489
  }
490
- const f = a.length === 0 ? o : o.substring(l), m = _d(f), p = m !== f, g = d && d > l ? d - l : void 0;
490
+ const u = a.length === 0 ? o : o.substring(l), m = _d(u), p = m !== u, g = d && d > l ? d - l : void 0;
491
491
  return {
492
492
  modifiers: a,
493
493
  hasImportantModifier: p,
@@ -538,25 +538,25 @@ const mo = "-", yd = (e) => {
538
538
  } = t, s = [], i = e.trim().split(Td);
539
539
  let l = "";
540
540
  for (let d = i.length - 1; d >= 0; d -= 1) {
541
- const f = i[d], {
541
+ const u = i[d], {
542
542
  isExternal: m,
543
543
  modifiers: p,
544
544
  hasImportantModifier: g,
545
545
  baseClassName: b,
546
546
  maybePostfixModifierPosition: h
547
- } = n(f);
547
+ } = n(u);
548
548
  if (m) {
549
- l = f + (l.length > 0 ? " " + l : l);
549
+ l = u + (l.length > 0 ? " " + l : l);
550
550
  continue;
551
551
  }
552
552
  let v = !!h, x = r(v ? b.substring(0, h) : b);
553
553
  if (!x) {
554
554
  if (!v) {
555
- l = f + (l.length > 0 ? " " + l : l);
555
+ l = u + (l.length > 0 ? " " + l : l);
556
556
  continue;
557
557
  }
558
558
  if (x = r(b), !x) {
559
- l = f + (l.length > 0 ? " " + l : l);
559
+ l = u + (l.length > 0 ? " " + l : l);
560
560
  continue;
561
561
  }
562
562
  v = !1;
@@ -570,7 +570,7 @@ const mo = "-", yd = (e) => {
570
570
  const C = k[_];
571
571
  s.push(w + C);
572
572
  }
573
- l = f + (l.length > 0 ? " " + l : l);
573
+ l = u + (l.length > 0 ? " " + l : l);
574
574
  }
575
575
  return l;
576
576
  };
@@ -591,15 +591,15 @@ const rs = (e) => {
591
591
  function Dd(e, ...t) {
592
592
  let n, r, o, a = s;
593
593
  function s(l) {
594
- const d = t.reduce((f, m) => m(f), e());
594
+ const d = t.reduce((u, m) => m(u), e());
595
595
  return n = Od(d), r = n.cache.get, o = n.cache.set, a = i, i(l);
596
596
  }
597
597
  function i(l) {
598
598
  const d = r(l);
599
599
  if (d)
600
600
  return d;
601
- const f = Rd(l, n);
602
- return o(l, f), f;
601
+ const u = Rd(l, n);
602
+ return o(l, u), u;
603
603
  }
604
604
  return function() {
605
605
  return a(Pd.apply(null, arguments));
@@ -620,7 +620,7 @@ const he = (e) => {
620
620
  const r = as.exec(e);
621
621
  return r ? r[1] ? t(r[1]) : n : !1;
622
622
  }, is = (e) => e === "position" || e === "percentage", ls = (e) => e === "image" || e === "url", cs = (e) => e === "length" || e === "size" || e === "bg-size", ds = (e) => e === "length", Xd = (e) => e === "number", Zd = (e) => e === "family-name", us = (e) => e === "shadow", Qd = () => {
623
- const e = he("color"), t = he("font"), n = he("text"), r = he("font-weight"), o = he("tracking"), a = he("leading"), s = he("breakpoint"), i = he("container"), l = he("spacing"), d = he("radius"), f = he("shadow"), m = he("inset-shadow"), p = he("text-shadow"), g = he("drop-shadow"), b = he("blur"), h = he("perspective"), v = he("aspect"), x = he("ease"), y = he("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
623
+ const e = he("color"), t = he("font"), n = he("text"), r = he("font-weight"), o = he("tracking"), a = he("leading"), s = he("breakpoint"), i = he("container"), l = he("spacing"), d = he("radius"), u = he("shadow"), m = he("inset-shadow"), p = he("text-shadow"), g = he("drop-shadow"), b = he("blur"), h = he("perspective"), v = he("aspect"), x = he("ease"), y = he("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
624
624
  "center",
625
625
  "top",
626
626
  "bottom",
@@ -2010,7 +2010,7 @@ const he = (e) => {
2010
2010
  // Deprecated since Tailwind CSS v4.0.0
2011
2011
  "",
2012
2012
  "none",
2013
- f,
2013
+ u,
2014
2014
  vn,
2015
2015
  bn
2016
2016
  ]
@@ -3097,15 +3097,15 @@ const ta = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, na = ts, b
3097
3097
  var r;
3098
3098
  if ((t == null ? void 0 : t.variants) == null) return na(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
3099
3099
  const { variants: o, defaultVariants: a } = t, s = Object.keys(o).map((d) => {
3100
- const f = n == null ? void 0 : n[d], m = a == null ? void 0 : a[d];
3101
- if (f === null) return null;
3102
- const p = ta(f) || ta(m);
3100
+ const u = n == null ? void 0 : n[d], m = a == null ? void 0 : a[d];
3101
+ if (u === null) return null;
3102
+ const p = ta(u) || ta(m);
3103
3103
  return o[d][p];
3104
- }), i = n && Object.entries(n).reduce((d, f) => {
3105
- let [m, p] = f;
3104
+ }), i = n && Object.entries(n).reduce((d, u) => {
3105
+ let [m, p] = u;
3106
3106
  return p === void 0 || (d[m] = p), d;
3107
- }, {}), l = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((d, f) => {
3108
- let { class: m, className: p, ...g } = f;
3107
+ }, {}), l = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((d, u) => {
3108
+ let { class: m, className: p, ...g } = u;
3109
3109
  return Object.entries(g).every((b) => {
3110
3110
  let [h, v] = b;
3111
3111
  return Array.isArray(v) ? v.includes({
@@ -3170,13 +3170,13 @@ function K(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
3170
3170
  };
3171
3171
  }
3172
3172
  function nu(e, t) {
3173
- const n = u.createContext(t), r = (a) => {
3174
- const { children: s, ...i } = a, l = u.useMemo(() => i, Object.values(i));
3173
+ const n = f.createContext(t), r = (a) => {
3174
+ const { children: s, ...i } = a, l = f.useMemo(() => i, Object.values(i));
3175
3175
  return /* @__PURE__ */ c.jsx(n.Provider, { value: l, children: s });
3176
3176
  };
3177
3177
  r.displayName = e + "Provider";
3178
3178
  function o(a) {
3179
- const s = u.useContext(n);
3179
+ const s = f.useContext(n);
3180
3180
  if (s) return s;
3181
3181
  if (t !== void 0) return t;
3182
3182
  throw new Error(`\`${a}\` must be used within \`${e}\``);
@@ -3186,28 +3186,28 @@ function nu(e, t) {
3186
3186
  function Oe(e, t = []) {
3187
3187
  let n = [];
3188
3188
  function r(a, s) {
3189
- const i = u.createContext(s), l = n.length;
3189
+ const i = f.createContext(s), l = n.length;
3190
3190
  n = [...n, s];
3191
3191
  const d = (m) => {
3192
3192
  var x;
3193
- const { scope: p, children: g, ...b } = m, h = ((x = p == null ? void 0 : p[e]) == null ? void 0 : x[l]) || i, v = u.useMemo(() => b, Object.values(b));
3193
+ const { scope: p, children: g, ...b } = m, h = ((x = p == null ? void 0 : p[e]) == null ? void 0 : x[l]) || i, v = f.useMemo(() => b, Object.values(b));
3194
3194
  return /* @__PURE__ */ c.jsx(h.Provider, { value: v, children: g });
3195
3195
  };
3196
3196
  d.displayName = a + "Provider";
3197
- function f(m, p) {
3197
+ function u(m, p) {
3198
3198
  var h;
3199
- const g = ((h = p == null ? void 0 : p[e]) == null ? void 0 : h[l]) || i, b = u.useContext(g);
3199
+ const g = ((h = p == null ? void 0 : p[e]) == null ? void 0 : h[l]) || i, b = f.useContext(g);
3200
3200
  if (b) return b;
3201
3201
  if (s !== void 0) return s;
3202
3202
  throw new Error(`\`${m}\` must be used within \`${a}\``);
3203
3203
  }
3204
- return [d, f];
3204
+ return [d, u];
3205
3205
  }
3206
3206
  const o = () => {
3207
- const a = n.map((s) => u.createContext(s));
3207
+ const a = n.map((s) => f.createContext(s));
3208
3208
  return function(i) {
3209
3209
  const l = (i == null ? void 0 : i[e]) || a;
3210
- return u.useMemo(
3210
+ return f.useMemo(
3211
3211
  () => ({ [`__scope${e}`]: { ...i, [e]: l } }),
3212
3212
  [i, l]
3213
3213
  );
@@ -3228,13 +3228,13 @@ function ru(...e) {
3228
3228
  const m = l(a)[`__scope${d}`];
3229
3229
  return { ...i, ...m };
3230
3230
  }, {});
3231
- return u.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
3231
+ return f.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
3232
3232
  };
3233
3233
  };
3234
3234
  return n.scopeName = t.scopeName, n;
3235
3235
  }
3236
- var pe = globalThis != null && globalThis.document ? u.useLayoutEffect : () => {
3237
- }, ou = u[" useInsertionEffect ".trim().toString()] || pe;
3236
+ var pe = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
3237
+ }, ou = f[" useInsertionEffect ".trim().toString()] || pe;
3238
3238
  function Ve({
3239
3239
  prop: e,
3240
3240
  defaultProp: t,
@@ -3247,22 +3247,22 @@ function Ve({
3247
3247
  onChange: n
3248
3248
  }), i = e !== void 0, l = i ? e : o;
3249
3249
  {
3250
- const f = u.useRef(e !== void 0);
3251
- u.useEffect(() => {
3252
- const m = f.current;
3250
+ const u = f.useRef(e !== void 0);
3251
+ f.useEffect(() => {
3252
+ const m = u.current;
3253
3253
  m !== i && console.warn(
3254
3254
  `${r} is changing from ${m ? "controlled" : "uncontrolled"} to ${i ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
3255
- ), f.current = i;
3255
+ ), u.current = i;
3256
3256
  }, [i, r]);
3257
3257
  }
3258
- const d = u.useCallback(
3259
- (f) => {
3258
+ const d = f.useCallback(
3259
+ (u) => {
3260
3260
  var m;
3261
3261
  if (i) {
3262
- const p = su(f) ? f(e) : f;
3262
+ const p = su(u) ? u(e) : u;
3263
3263
  p !== e && ((m = s.current) == null || m.call(s, p));
3264
3264
  } else
3265
- a(f);
3265
+ a(u);
3266
3266
  },
3267
3267
  [i, e, a, s]
3268
3268
  );
@@ -3272,10 +3272,10 @@ function au({
3272
3272
  defaultProp: e,
3273
3273
  onChange: t
3274
3274
  }) {
3275
- const [n, r] = u.useState(e), o = u.useRef(n), a = u.useRef(t);
3275
+ const [n, r] = f.useState(e), o = f.useRef(n), a = f.useRef(t);
3276
3276
  return ou(() => {
3277
3277
  a.current = t;
3278
- }, [t]), u.useEffect(() => {
3278
+ }, [t]), f.useEffect(() => {
3279
3279
  var s;
3280
3280
  o.current !== n && ((s = a.current) == null || s.call(a, n), o.current = n);
3281
3281
  }, [n, o]), [n, r, a];
@@ -3284,11 +3284,11 @@ function su(e) {
3284
3284
  return typeof e == "function";
3285
3285
  }
3286
3286
  function Fn(e) {
3287
- const t = u.useRef({ value: e, previous: e });
3288
- return u.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
3287
+ const t = f.useRef({ value: e, previous: e });
3288
+ return f.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
3289
3289
  }
3290
3290
  function Ln(e) {
3291
- const [t, n] = u.useState(void 0);
3291
+ const [t, n] = f.useState(void 0);
3292
3292
  return pe(() => {
3293
3293
  if (e) {
3294
3294
  n({ width: e.offsetWidth, height: e.offsetHeight });
@@ -3328,7 +3328,7 @@ var iu = [
3328
3328
  "svg",
3329
3329
  "ul"
3330
3330
  ], q = iu.reduce((e, t) => {
3331
- const n = /* @__PURE__ */ bt(`Primitive.${t}`), r = u.forwardRef((o, a) => {
3331
+ const n = /* @__PURE__ */ bt(`Primitive.${t}`), r = f.forwardRef((o, a) => {
3332
3332
  const { asChild: s, ...i } = o, l = s ? n : t;
3333
3333
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c.jsx(l, { ...i, ref: a });
3334
3334
  });
@@ -3337,7 +3337,7 @@ var iu = [
3337
3337
  function lu(e, t) {
3338
3338
  e && Wn.flushSync(() => e.dispatchEvent(t));
3339
3339
  }
3340
- var $n = "Switch", [cu, bw] = Oe($n), [du, uu] = cu($n), fs = u.forwardRef(
3340
+ var $n = "Switch", [cu, bw] = Oe($n), [du, uu] = cu($n), fs = f.forwardRef(
3341
3341
  (e, t) => {
3342
3342
  const {
3343
3343
  __scopeSwitch: n,
@@ -3348,9 +3348,9 @@ var $n = "Switch", [cu, bw] = Oe($n), [du, uu] = cu($n), fs = u.forwardRef(
3348
3348
  disabled: i,
3349
3349
  value: l = "on",
3350
3350
  onCheckedChange: d,
3351
- form: f,
3351
+ form: u,
3352
3352
  ...m
3353
- } = e, [p, g] = u.useState(null), b = ie(t, (w) => g(w)), h = u.useRef(!1), v = p ? f || !!p.closest("form") : !0, [x, y] = Ve({
3353
+ } = e, [p, g] = f.useState(null), b = ie(t, (w) => g(w)), h = f.useRef(!1), v = p ? u || !!p.closest("form") : !0, [x, y] = Ve({
3354
3354
  prop: o,
3355
3355
  defaultProp: a ?? !1,
3356
3356
  onChange: d,
@@ -3385,7 +3385,7 @@ var $n = "Switch", [cu, bw] = Oe($n), [du, uu] = cu($n), fs = u.forwardRef(
3385
3385
  checked: x,
3386
3386
  required: s,
3387
3387
  disabled: i,
3388
- form: f,
3388
+ form: u,
3389
3389
  style: { transform: "translateX(-100%)" }
3390
3390
  }
3391
3391
  )
@@ -3393,7 +3393,7 @@ var $n = "Switch", [cu, bw] = Oe($n), [du, uu] = cu($n), fs = u.forwardRef(
3393
3393
  }
3394
3394
  );
3395
3395
  fs.displayName = $n;
3396
- var ms = "SwitchThumb", hs = u.forwardRef(
3396
+ var ms = "SwitchThumb", hs = f.forwardRef(
3397
3397
  (e, t) => {
3398
3398
  const { __scopeSwitch: n, ...r } = e, o = uu(ms, n);
3399
3399
  return /* @__PURE__ */ c.jsx(
@@ -3408,7 +3408,7 @@ var ms = "SwitchThumb", hs = u.forwardRef(
3408
3408
  }
3409
3409
  );
3410
3410
  hs.displayName = ms;
3411
- var fu = "SwitchBubbleInput", ps = u.forwardRef(
3411
+ var fu = "SwitchBubbleInput", ps = f.forwardRef(
3412
3412
  ({
3413
3413
  __scopeSwitch: e,
3414
3414
  control: t,
@@ -3416,17 +3416,17 @@ var fu = "SwitchBubbleInput", ps = u.forwardRef(
3416
3416
  bubbles: r = !0,
3417
3417
  ...o
3418
3418
  }, a) => {
3419
- const s = u.useRef(null), i = ie(s, a), l = Fn(n), d = Ln(t);
3420
- return u.useEffect(() => {
3421
- const f = s.current;
3422
- if (!f) return;
3419
+ const s = f.useRef(null), i = ie(s, a), l = Fn(n), d = Ln(t);
3420
+ return f.useEffect(() => {
3421
+ const u = s.current;
3422
+ if (!u) return;
3423
3423
  const m = window.HTMLInputElement.prototype, g = Object.getOwnPropertyDescriptor(
3424
3424
  m,
3425
3425
  "checked"
3426
3426
  ).set;
3427
3427
  if (l !== n && g) {
3428
3428
  const b = new Event("click", { bubbles: r });
3429
- g.call(f, n), f.dispatchEvent(b);
3429
+ g.call(u, n), u.dispatchEvent(b);
3430
3430
  }
3431
3431
  }, [l, n, r]), /* @__PURE__ */ c.jsx(
3432
3432
  "input",
@@ -3510,13 +3510,13 @@ function bs(e) {
3510
3510
  }
3511
3511
  );
3512
3512
  d.displayName = i;
3513
- const f = e + "CollectionItemSlot", m = "data-radix-collection-item", p = /* @__PURE__ */ bt(f), g = j.forwardRef(
3513
+ const u = e + "CollectionItemSlot", m = "data-radix-collection-item", p = /* @__PURE__ */ bt(u), g = j.forwardRef(
3514
3514
  (h, v) => {
3515
- const { scope: x, children: y, ...w } = h, S = j.useRef(null), k = ie(v, S), _ = a(f, x);
3515
+ const { scope: x, children: y, ...w } = h, S = j.useRef(null), k = ie(v, S), _ = a(u, x);
3516
3516
  return j.useEffect(() => (_.itemMap.set(S, { ref: S, ...w }), () => void _.itemMap.delete(S))), /* @__PURE__ */ c.jsx(p, { [m]: "", ref: k, children: y });
3517
3517
  }
3518
3518
  );
3519
- g.displayName = f;
3519
+ g.displayName = u;
3520
3520
  function b(h) {
3521
3521
  const v = a(e + "CollectionConsumer", h);
3522
3522
  return j.useCallback(() => {
@@ -3534,36 +3534,36 @@ function bs(e) {
3534
3534
  r
3535
3535
  ];
3536
3536
  }
3537
- var bu = u[" useId ".trim().toString()] || (() => {
3537
+ var bu = f[" useId ".trim().toString()] || (() => {
3538
3538
  }), vu = 0;
3539
3539
  function ye(e) {
3540
- const [t, n] = u.useState(bu());
3540
+ const [t, n] = f.useState(bu());
3541
3541
  return pe(() => {
3542
3542
  n((r) => r ?? String(vu++));
3543
3543
  }, [e]), t ? `radix-${t}` : "";
3544
3544
  }
3545
3545
  function Xe(e) {
3546
- const t = u.useRef(e);
3547
- return u.useEffect(() => {
3546
+ const t = f.useRef(e);
3547
+ return f.useEffect(() => {
3548
3548
  t.current = e;
3549
- }), u.useMemo(() => (...n) => {
3549
+ }), f.useMemo(() => (...n) => {
3550
3550
  var r;
3551
3551
  return (r = t.current) == null ? void 0 : r.call(t, ...n);
3552
3552
  }, []);
3553
3553
  }
3554
- var xu = u.createContext(void 0);
3554
+ var xu = f.createContext(void 0);
3555
3555
  function Bn(e) {
3556
- const t = u.useContext(xu);
3556
+ const t = f.useContext(xu);
3557
3557
  return e || t || "ltr";
3558
3558
  }
3559
3559
  var vr = "rovingFocusGroup.onEntryFocus", yu = { bubbles: !1, cancelable: !0 }, an = "RovingFocusGroup", [Yr, vs, wu] = bs(an), [ku, zn] = Oe(
3560
3560
  an,
3561
3561
  [wu]
3562
- ), [Su, Cu] = ku(an), xs = u.forwardRef(
3562
+ ), [Su, Cu] = ku(an), xs = f.forwardRef(
3563
3563
  (e, t) => /* @__PURE__ */ c.jsx(Yr.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c.jsx(Yr.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c.jsx(Eu, { ...e, ref: t }) }) })
3564
3564
  );
3565
3565
  xs.displayName = an;
3566
- var Eu = u.forwardRef((e, t) => {
3566
+ var Eu = f.forwardRef((e, t) => {
3567
3567
  const {
3568
3568
  __scopeRovingFocusGroup: n,
3569
3569
  orientation: r,
@@ -3573,15 +3573,15 @@ var Eu = u.forwardRef((e, t) => {
3573
3573
  defaultCurrentTabStopId: i,
3574
3574
  onCurrentTabStopIdChange: l,
3575
3575
  onEntryFocus: d,
3576
- preventScrollOnEntryFocus: f = !1,
3576
+ preventScrollOnEntryFocus: u = !1,
3577
3577
  ...m
3578
- } = e, p = u.useRef(null), g = ie(t, p), b = Bn(a), [h, v] = Ve({
3578
+ } = e, p = f.useRef(null), g = ie(t, p), b = Bn(a), [h, v] = Ve({
3579
3579
  prop: s,
3580
3580
  defaultProp: i ?? null,
3581
3581
  onChange: l,
3582
3582
  caller: an
3583
- }), [x, y] = u.useState(!1), w = Xe(d), S = vs(n), k = u.useRef(!1), [_, C] = u.useState(0);
3584
- return u.useEffect(() => {
3583
+ }), [x, y] = f.useState(!1), w = Xe(d), S = vs(n), k = f.useRef(!1), [_, C] = f.useState(0);
3584
+ return f.useEffect(() => {
3585
3585
  const N = p.current;
3586
3586
  if (N)
3587
3587
  return N.addEventListener(vr, w), () => N.removeEventListener(vr, w);
@@ -3593,16 +3593,16 @@ var Eu = u.forwardRef((e, t) => {
3593
3593
  dir: b,
3594
3594
  loop: o,
3595
3595
  currentTabStopId: h,
3596
- onItemFocus: u.useCallback(
3596
+ onItemFocus: f.useCallback(
3597
3597
  (N) => v(N),
3598
3598
  [v]
3599
3599
  ),
3600
- onItemShiftTab: u.useCallback(() => y(!0), []),
3601
- onFocusableItemAdd: u.useCallback(
3600
+ onItemShiftTab: f.useCallback(() => y(!0), []),
3601
+ onFocusableItemAdd: f.useCallback(
3602
3602
  () => C((N) => N + 1),
3603
3603
  []
3604
3604
  ),
3605
- onFocusableItemRemove: u.useCallback(
3605
+ onFocusableItemRemove: f.useCallback(
3606
3606
  () => C((N) => N - 1),
3607
3607
  []
3608
3608
  ),
@@ -3625,7 +3625,7 @@ var Eu = u.forwardRef((e, t) => {
3625
3625
  const D = S().filter((F) => F.focusable), B = D.find((F) => F.active), G = D.find((F) => F.id === h), X = [B, G, ...D].filter(
3626
3626
  Boolean
3627
3627
  ).map((F) => F.ref.current);
3628
- ks(X, f);
3628
+ ks(X, u);
3629
3629
  }
3630
3630
  }
3631
3631
  k.current = !1;
@@ -3635,7 +3635,7 @@ var Eu = u.forwardRef((e, t) => {
3635
3635
  )
3636
3636
  }
3637
3637
  );
3638
- }), ys = "RovingFocusGroupItem", ws = u.forwardRef(
3638
+ }), ys = "RovingFocusGroupItem", ws = f.forwardRef(
3639
3639
  (e, t) => {
3640
3640
  const {
3641
3641
  __scopeRovingFocusGroup: n,
@@ -3644,8 +3644,8 @@ var Eu = u.forwardRef((e, t) => {
3644
3644
  tabStopId: a,
3645
3645
  children: s,
3646
3646
  ...i
3647
- } = e, l = ye(), d = a || l, f = Cu(ys, n), m = f.currentTabStopId === d, p = vs(n), { onFocusableItemAdd: g, onFocusableItemRemove: b, currentTabStopId: h } = f;
3648
- return u.useEffect(() => {
3647
+ } = e, l = ye(), d = a || l, u = Cu(ys, n), m = u.currentTabStopId === d, p = vs(n), { onFocusableItemAdd: g, onFocusableItemRemove: b, currentTabStopId: h } = u;
3648
+ return f.useEffect(() => {
3649
3649
  if (r)
3650
3650
  return g(), () => b();
3651
3651
  }, [r, g, b]), /* @__PURE__ */ c.jsx(
@@ -3659,20 +3659,20 @@ var Eu = u.forwardRef((e, t) => {
3659
3659
  q.span,
3660
3660
  {
3661
3661
  tabIndex: m ? 0 : -1,
3662
- "data-orientation": f.orientation,
3662
+ "data-orientation": u.orientation,
3663
3663
  ...i,
3664
3664
  ref: t,
3665
3665
  onMouseDown: K(e.onMouseDown, (v) => {
3666
- r ? f.onItemFocus(d) : v.preventDefault();
3666
+ r ? u.onItemFocus(d) : v.preventDefault();
3667
3667
  }),
3668
- onFocus: K(e.onFocus, () => f.onItemFocus(d)),
3668
+ onFocus: K(e.onFocus, () => u.onItemFocus(d)),
3669
3669
  onKeyDown: K(e.onKeyDown, (v) => {
3670
3670
  if (v.key === "Tab" && v.shiftKey) {
3671
- f.onItemShiftTab();
3671
+ u.onItemShiftTab();
3672
3672
  return;
3673
3673
  }
3674
3674
  if (v.target !== v.currentTarget) return;
3675
- const x = Mu(v, f.orientation, f.dir);
3675
+ const x = Mu(v, u.orientation, u.dir);
3676
3676
  if (x !== void 0) {
3677
3677
  if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
3678
3678
  v.preventDefault();
@@ -3681,7 +3681,7 @@ var Eu = u.forwardRef((e, t) => {
3681
3681
  else if (x === "prev" || x === "next") {
3682
3682
  x === "prev" && w.reverse();
3683
3683
  const S = w.indexOf(v.currentTarget);
3684
- w = f.loop ? Ou(w, S + 1) : w.slice(S + 1);
3684
+ w = u.loop ? Ou(w, S + 1) : w.slice(S + 1);
3685
3685
  }
3686
3686
  setTimeout(() => ks(w));
3687
3687
  }
@@ -3722,15 +3722,15 @@ function Ou(e, t) {
3722
3722
  }
3723
3723
  var Ss = xs, Cs = ws;
3724
3724
  function Tu(e, t) {
3725
- return u.useReducer((n, r) => t[n][r] ?? n, e);
3725
+ return f.useReducer((n, r) => t[n][r] ?? n, e);
3726
3726
  }
3727
3727
  var Ie = (e) => {
3728
- const { present: t, children: n } = e, r = Ru(t), o = typeof n == "function" ? n({ present: r.isPresent }) : u.Children.only(n), a = ie(r.ref, Pu(o));
3729
- return typeof n == "function" || r.isPresent ? u.cloneElement(o, { ref: a }) : null;
3728
+ const { present: t, children: n } = e, r = Ru(t), o = typeof n == "function" ? n({ present: r.isPresent }) : f.Children.only(n), a = ie(r.ref, Pu(o));
3729
+ return typeof n == "function" || r.isPresent ? f.cloneElement(o, { ref: a }) : null;
3730
3730
  };
3731
3731
  Ie.displayName = "Presence";
3732
3732
  function Ru(e) {
3733
- const [t, n] = u.useState(), r = u.useRef(null), o = u.useRef(e), a = u.useRef("none"), s = e ? "mounted" : "unmounted", [i, l] = Tu(s, {
3733
+ const [t, n] = f.useState(), r = f.useRef(null), o = f.useRef(e), a = f.useRef("none"), s = e ? "mounted" : "unmounted", [i, l] = Tu(s, {
3734
3734
  mounted: {
3735
3735
  UNMOUNT: "unmounted",
3736
3736
  ANIMATION_OUT: "unmountSuspended"
@@ -3743,23 +3743,23 @@ function Ru(e) {
3743
3743
  MOUNT: "mounted"
3744
3744
  }
3745
3745
  });
3746
- return u.useEffect(() => {
3746
+ return f.useEffect(() => {
3747
3747
  const d = xn(r.current);
3748
3748
  a.current = i === "mounted" ? d : "none";
3749
3749
  }, [i]), pe(() => {
3750
- const d = r.current, f = o.current;
3751
- if (f !== e) {
3750
+ const d = r.current, u = o.current;
3751
+ if (u !== e) {
3752
3752
  const p = a.current, g = xn(d);
3753
- e ? l("MOUNT") : g === "none" || (d == null ? void 0 : d.display) === "none" ? l("UNMOUNT") : l(f && p !== g ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
3753
+ e ? l("MOUNT") : g === "none" || (d == null ? void 0 : d.display) === "none" ? l("UNMOUNT") : l(u && p !== g ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
3754
3754
  }
3755
3755
  }, [e, l]), pe(() => {
3756
3756
  if (t) {
3757
3757
  let d;
3758
- const f = t.ownerDocument.defaultView ?? window, m = (g) => {
3758
+ const u = t.ownerDocument.defaultView ?? window, m = (g) => {
3759
3759
  const h = xn(r.current).includes(CSS.escape(g.animationName));
3760
3760
  if (g.target === t && h && (l("ANIMATION_END"), !o.current)) {
3761
3761
  const v = t.style.animationFillMode;
3762
- t.style.animationFillMode = "forwards", d = f.setTimeout(() => {
3762
+ t.style.animationFillMode = "forwards", d = u.setTimeout(() => {
3763
3763
  t.style.animationFillMode === "forwards" && (t.style.animationFillMode = v);
3764
3764
  });
3765
3765
  }
@@ -3767,13 +3767,13 @@ function Ru(e) {
3767
3767
  g.target === t && (a.current = xn(r.current));
3768
3768
  };
3769
3769
  return t.addEventListener("animationstart", p), t.addEventListener("animationcancel", m), t.addEventListener("animationend", m), () => {
3770
- f.clearTimeout(d), t.removeEventListener("animationstart", p), t.removeEventListener("animationcancel", m), t.removeEventListener("animationend", m);
3770
+ u.clearTimeout(d), t.removeEventListener("animationstart", p), t.removeEventListener("animationcancel", m), t.removeEventListener("animationend", m);
3771
3771
  };
3772
3772
  } else
3773
3773
  l("ANIMATION_END");
3774
3774
  }, [t, l]), {
3775
3775
  isPresent: ["mounted", "unmountSuspended"].includes(i),
3776
- ref: u.useCallback((d) => {
3776
+ ref: f.useCallback((d) => {
3777
3777
  r.current = d ? getComputedStyle(d) : null, n(d);
3778
3778
  }, [])
3779
3779
  };
@@ -3786,7 +3786,7 @@ function Pu(e) {
3786
3786
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
3787
3787
  return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
3788
3788
  }
3789
- var ho = "Radio", [Du, Es] = Oe(ho), [ju, Au] = Du(ho), Ns = u.forwardRef(
3789
+ var ho = "Radio", [Du, Es] = Oe(ho), [ju, Au] = Du(ho), Ns = f.forwardRef(
3790
3790
  (e, t) => {
3791
3791
  const {
3792
3792
  __scopeRadio: n,
@@ -3797,8 +3797,8 @@ var ho = "Radio", [Du, Es] = Oe(ho), [ju, Au] = Du(ho), Ns = u.forwardRef(
3797
3797
  value: i = "on",
3798
3798
  onCheck: l,
3799
3799
  form: d,
3800
- ...f
3801
- } = e, [m, p] = u.useState(null), g = ie(t, (v) => p(v)), b = u.useRef(!1), h = m ? d || !!m.closest("form") : !0;
3800
+ ...u
3801
+ } = e, [m, p] = f.useState(null), g = ie(t, (v) => p(v)), b = f.useRef(!1), h = m ? d || !!m.closest("form") : !0;
3802
3802
  return /* @__PURE__ */ c.jsxs(ju, { scope: n, checked: o, disabled: s, children: [
3803
3803
  /* @__PURE__ */ c.jsx(
3804
3804
  q.button,
@@ -3810,7 +3810,7 @@ var ho = "Radio", [Du, Es] = Oe(ho), [ju, Au] = Du(ho), Ns = u.forwardRef(
3810
3810
  "data-disabled": s ? "" : void 0,
3811
3811
  disabled: s,
3812
3812
  value: i,
3813
- ...f,
3813
+ ...u,
3814
3814
  ref: g,
3815
3815
  onClick: K(e.onClick, (v) => {
3816
3816
  o || l == null || l(), h && (b.current = v.isPropagationStopped(), b.current || v.stopPropagation());
@@ -3835,7 +3835,7 @@ var ho = "Radio", [Du, Es] = Oe(ho), [ju, Au] = Du(ho), Ns = u.forwardRef(
3835
3835
  }
3836
3836
  );
3837
3837
  Ns.displayName = ho;
3838
- var _s = "RadioIndicator", Ms = u.forwardRef(
3838
+ var _s = "RadioIndicator", Ms = f.forwardRef(
3839
3839
  (e, t) => {
3840
3840
  const { __scopeRadio: n, forceMount: r, ...o } = e, a = Au(_s, n);
3841
3841
  return /* @__PURE__ */ c.jsx(Ie, { present: r || a.checked, children: /* @__PURE__ */ c.jsx(
@@ -3850,7 +3850,7 @@ var _s = "RadioIndicator", Ms = u.forwardRef(
3850
3850
  }
3851
3851
  );
3852
3852
  Ms.displayName = _s;
3853
- var Iu = "RadioBubbleInput", Os = u.forwardRef(
3853
+ var Iu = "RadioBubbleInput", Os = f.forwardRef(
3854
3854
  ({
3855
3855
  __scopeRadio: e,
3856
3856
  control: t,
@@ -3858,17 +3858,17 @@ var Iu = "RadioBubbleInput", Os = u.forwardRef(
3858
3858
  bubbles: r = !0,
3859
3859
  ...o
3860
3860
  }, a) => {
3861
- const s = u.useRef(null), i = ie(s, a), l = Fn(n), d = Ln(t);
3862
- return u.useEffect(() => {
3863
- const f = s.current;
3864
- if (!f) return;
3861
+ const s = f.useRef(null), i = ie(s, a), l = Fn(n), d = Ln(t);
3862
+ return f.useEffect(() => {
3863
+ const u = s.current;
3864
+ if (!u) return;
3865
3865
  const m = window.HTMLInputElement.prototype, g = Object.getOwnPropertyDescriptor(
3866
3866
  m,
3867
3867
  "checked"
3868
3868
  ).set;
3869
3869
  if (l !== n && g) {
3870
3870
  const b = new Event("click", { bubbles: r });
3871
- g.call(f, n), f.dispatchEvent(b);
3871
+ g.call(u, n), u.dispatchEvent(b);
3872
3872
  }
3873
3873
  }, [l, n, r]), /* @__PURE__ */ c.jsx(
3874
3874
  q.input,
@@ -3898,7 +3898,7 @@ function Ts(e) {
3898
3898
  var Wu = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Vn = "RadioGroup", [Fu, xw] = Oe(Vn, [
3899
3899
  zn,
3900
3900
  Es
3901
- ]), Rs = zn(), Ps = Es(), [Lu, $u] = Fu(Vn), Ds = u.forwardRef(
3901
+ ]), Rs = zn(), Ps = Es(), [Lu, $u] = Fu(Vn), Ds = f.forwardRef(
3902
3902
  (e, t) => {
3903
3903
  const {
3904
3904
  __scopeRadioGroup: n,
@@ -3909,7 +3909,7 @@ var Wu = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Vn = "RadioGroup",
3909
3909
  disabled: i = !1,
3910
3910
  orientation: l,
3911
3911
  dir: d,
3912
- loop: f = !0,
3912
+ loop: u = !0,
3913
3913
  onValueChange: m,
3914
3914
  ...p
3915
3915
  } = e, g = Rs(n), b = Bn(d), [h, v] = Ve({
@@ -3934,7 +3934,7 @@ var Wu = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Vn = "RadioGroup",
3934
3934
  ...g,
3935
3935
  orientation: l,
3936
3936
  dir: b,
3937
- loop: f,
3937
+ loop: u,
3938
3938
  children: /* @__PURE__ */ c.jsx(
3939
3939
  q.div,
3940
3940
  {
@@ -3954,10 +3954,10 @@ var Wu = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Vn = "RadioGroup",
3954
3954
  }
3955
3955
  );
3956
3956
  Ds.displayName = Vn;
3957
- var js = "RadioGroupItem", As = u.forwardRef(
3957
+ var js = "RadioGroupItem", As = f.forwardRef(
3958
3958
  (e, t) => {
3959
- const { __scopeRadioGroup: n, disabled: r, ...o } = e, a = $u(js, n), s = a.disabled || r, i = Rs(n), l = Ps(n), d = u.useRef(null), f = ie(t, d), m = a.value === o.value, p = u.useRef(!1);
3960
- return u.useEffect(() => {
3959
+ const { __scopeRadioGroup: n, disabled: r, ...o } = e, a = $u(js, n), s = a.disabled || r, i = Rs(n), l = Ps(n), d = f.useRef(null), u = ie(t, d), m = a.value === o.value, p = f.useRef(!1);
3960
+ return f.useEffect(() => {
3961
3961
  const g = (h) => {
3962
3962
  Wu.includes(h.key) && (p.current = !0);
3963
3963
  }, b = () => p.current = !1;
@@ -3980,7 +3980,7 @@ var js = "RadioGroupItem", As = u.forwardRef(
3980
3980
  ...l,
3981
3981
  ...o,
3982
3982
  name: a.name,
3983
- ref: f,
3983
+ ref: u,
3984
3984
  onCheck: () => a.onValueChange(o.value),
3985
3985
  onKeyDown: K((g) => {
3986
3986
  g.key === "Enter" && g.preventDefault();
@@ -3996,7 +3996,7 @@ var js = "RadioGroupItem", As = u.forwardRef(
3996
3996
  }
3997
3997
  );
3998
3998
  As.displayName = js;
3999
- var Bu = "RadioGroupIndicator", Is = u.forwardRef(
3999
+ var Bu = "RadioGroupIndicator", Is = f.forwardRef(
4000
4000
  (e, t) => {
4001
4001
  const { __scopeRadioGroup: n, ...r } = e, o = Ps(n);
4002
4002
  return /* @__PURE__ */ c.jsx(Ms, { ...o, ...r, ref: t });
@@ -4030,7 +4030,7 @@ const Vu = () => ({
4030
4030
  "ml-2.5 text-md cursor-pointer select-none",
4031
4031
  "data-[disabled]:cursor-not-allowed"
4032
4032
  )
4033
- }), Yu = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
4033
+ }), Yu = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
4034
4034
  Ws,
4035
4035
  {
4036
4036
  className: E("grid gap-2", e),
@@ -4039,7 +4039,7 @@ const Vu = () => ({
4039
4039
  }
4040
4040
  ));
4041
4041
  Yu.displayName = Ws.displayName;
4042
- const Hu = u.forwardRef(({ children: e, disabled: t, ...n }, r) => {
4042
+ const Hu = f.forwardRef(({ children: e, disabled: t, ...n }, r) => {
4043
4043
  const o = Vu();
4044
4044
  return /* @__PURE__ */ c.jsxs("label", { className: o.root, "data-disabled": t, children: [
4045
4045
  /* @__PURE__ */ c.jsx(
@@ -4068,7 +4068,7 @@ function qu(e) {
4068
4068
  name: i,
4069
4069
  onCheckedChange: l,
4070
4070
  required: d,
4071
- value: f = "on",
4071
+ value: u = "on",
4072
4072
  // @ts-expect-error
4073
4073
  internal_do_not_use_render: m
4074
4074
  } = e, [p, g] = Ve({
@@ -4076,7 +4076,7 @@ function qu(e) {
4076
4076
  defaultProp: o ?? !1,
4077
4077
  onChange: l,
4078
4078
  caller: Yn
4079
- }), [b, h] = u.useState(null), [v, x] = u.useState(null), y = u.useRef(!1), w = b ? !!s || !!b.closest("form") : (
4079
+ }), [b, h] = f.useState(null), [v, x] = f.useState(null), y = f.useRef(!1), w = b ? !!s || !!b.closest("form") : (
4080
4080
  // We set this to true by default so that events bubble to forms without JS (SSR)
4081
4081
  !0
4082
4082
  ), S = {
@@ -4087,7 +4087,7 @@ function qu(e) {
4087
4087
  setControl: h,
4088
4088
  name: i,
4089
4089
  form: s,
4090
- value: f,
4090
+ value: u,
4091
4091
  hasConsumerStoppedPropagationRef: y,
4092
4092
  required: d,
4093
4093
  defaultChecked: rt(o) ? !1 : o,
@@ -4104,7 +4104,7 @@ function qu(e) {
4104
4104
  }
4105
4105
  );
4106
4106
  }
4107
- var Ls = "CheckboxTrigger", $s = u.forwardRef(
4107
+ var Ls = "CheckboxTrigger", $s = f.forwardRef(
4108
4108
  ({ __scopeCheckbox: e, onKeyDown: t, onClick: n, ...r }, o) => {
4109
4109
  const {
4110
4110
  control: a,
@@ -4112,13 +4112,13 @@ var Ls = "CheckboxTrigger", $s = u.forwardRef(
4112
4112
  disabled: i,
4113
4113
  checked: l,
4114
4114
  required: d,
4115
- setControl: f,
4115
+ setControl: u,
4116
4116
  setChecked: m,
4117
4117
  hasConsumerStoppedPropagationRef: p,
4118
4118
  isFormControl: g,
4119
4119
  bubbleInput: b
4120
- } = po(Ls, e), h = ie(o, f), v = u.useRef(l);
4121
- return u.useEffect(() => {
4120
+ } = po(Ls, e), h = ie(o, u), v = f.useRef(l);
4121
+ return f.useEffect(() => {
4122
4122
  const x = a == null ? void 0 : a.form;
4123
4123
  if (x) {
4124
4124
  const y = () => m(v.current);
@@ -4148,7 +4148,7 @@ var Ls = "CheckboxTrigger", $s = u.forwardRef(
4148
4148
  }
4149
4149
  );
4150
4150
  $s.displayName = Ls;
4151
- var Bs = u.forwardRef(
4151
+ var Bs = f.forwardRef(
4152
4152
  (e, t) => {
4153
4153
  const {
4154
4154
  __scopeCheckbox: n,
@@ -4159,7 +4159,7 @@ var Bs = u.forwardRef(
4159
4159
  disabled: i,
4160
4160
  value: l,
4161
4161
  onCheckedChange: d,
4162
- form: f,
4162
+ form: u,
4163
4163
  ...m
4164
4164
  } = e;
4165
4165
  return /* @__PURE__ */ c.jsx(
@@ -4172,7 +4172,7 @@ var Bs = u.forwardRef(
4172
4172
  required: s,
4173
4173
  onCheckedChange: d,
4174
4174
  name: r,
4175
- form: f,
4175
+ form: u,
4176
4176
  value: l,
4177
4177
  internal_do_not_use_render: ({ isFormControl: p }) => /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
4178
4178
  /* @__PURE__ */ c.jsx(
@@ -4195,7 +4195,7 @@ var Bs = u.forwardRef(
4195
4195
  }
4196
4196
  );
4197
4197
  Bs.displayName = Yn;
4198
- var zs = "CheckboxIndicator", Vs = u.forwardRef(
4198
+ var zs = "CheckboxIndicator", Vs = f.forwardRef(
4199
4199
  (e, t) => {
4200
4200
  const { __scopeCheckbox: n, forceMount: r, ...o } = e, a = po(zs, n);
4201
4201
  return /* @__PURE__ */ c.jsx(
@@ -4217,7 +4217,7 @@ var zs = "CheckboxIndicator", Vs = u.forwardRef(
4217
4217
  }
4218
4218
  );
4219
4219
  Vs.displayName = zs;
4220
- var Ys = "CheckboxBubbleInput", Hs = u.forwardRef(
4220
+ var Ys = "CheckboxBubbleInput", Hs = f.forwardRef(
4221
4221
  ({ __scopeCheckbox: e, ...t }, n) => {
4222
4222
  const {
4223
4223
  control: r,
@@ -4227,12 +4227,12 @@ var Ys = "CheckboxBubbleInput", Hs = u.forwardRef(
4227
4227
  required: i,
4228
4228
  disabled: l,
4229
4229
  name: d,
4230
- value: f,
4230
+ value: u,
4231
4231
  form: m,
4232
4232
  bubbleInput: p,
4233
4233
  setBubbleInput: g
4234
4234
  } = po(Ys, e), b = ie(n, g), h = Fn(a), v = Ln(r);
4235
- u.useEffect(() => {
4235
+ f.useEffect(() => {
4236
4236
  const y = p;
4237
4237
  if (!y) return;
4238
4238
  const w = window.HTMLInputElement.prototype, k = Object.getOwnPropertyDescriptor(
@@ -4244,7 +4244,7 @@ var Ys = "CheckboxBubbleInput", Hs = u.forwardRef(
4244
4244
  y.indeterminate = rt(a), k.call(y, rt(a) ? !1 : a), y.dispatchEvent(C);
4245
4245
  }
4246
4246
  }, [p, h, a, o]);
4247
- const x = u.useRef(rt(a) ? !1 : a);
4247
+ const x = f.useRef(rt(a) ? !1 : a);
4248
4248
  return /* @__PURE__ */ c.jsx(
4249
4249
  q.input,
4250
4250
  {
@@ -4254,7 +4254,7 @@ var Ys = "CheckboxBubbleInput", Hs = u.forwardRef(
4254
4254
  required: i,
4255
4255
  disabled: l,
4256
4256
  name: d,
4257
- value: f,
4257
+ value: u,
4258
4258
  form: m,
4259
4259
  ...t,
4260
4260
  tabIndex: -1,
@@ -4349,7 +4349,7 @@ const ef = Za(
4349
4349
  ...i
4350
4350
  },
4351
4351
  [
4352
- ...s.map(([d, f]) => Fr(d, f)),
4352
+ ...s.map(([d, u]) => Fr(d, u)),
4353
4353
  ...Array.isArray(a) ? a : [a]
4354
4354
  ]
4355
4355
  )
@@ -4626,18 +4626,18 @@ const Pf = [
4626
4626
  jf.displayName = "Checkbox";
4627
4627
  function Af(e, t = globalThis == null ? void 0 : globalThis.document) {
4628
4628
  const n = Xe(e);
4629
- u.useEffect(() => {
4629
+ f.useEffect(() => {
4630
4630
  const r = (o) => {
4631
4631
  o.key === "Escape" && n(o);
4632
4632
  };
4633
4633
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
4634
4634
  }, [n, t]);
4635
4635
  }
4636
- var If = "DismissableLayer", Gr = "dismissableLayer.update", Wf = "dismissableLayer.pointerDownOutside", Ff = "dismissableLayer.focusOutside", aa, Zs = u.createContext({
4636
+ var If = "DismissableLayer", Gr = "dismissableLayer.update", Wf = "dismissableLayer.pointerDownOutside", Ff = "dismissableLayer.focusOutside", aa, Zs = f.createContext({
4637
4637
  layers: /* @__PURE__ */ new Set(),
4638
4638
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
4639
4639
  branches: /* @__PURE__ */ new Set()
4640
- }), sn = u.forwardRef(
4640
+ }), sn = f.forwardRef(
4641
4641
  (e, t) => {
4642
4642
  const {
4643
4643
  disableOutsidePointerEvents: n = !1,
@@ -4647,7 +4647,7 @@ var If = "DismissableLayer", Gr = "dismissableLayer.update", Wf = "dismissableLa
4647
4647
  onInteractOutside: s,
4648
4648
  onDismiss: i,
4649
4649
  ...l
4650
- } = e, d = u.useContext(Zs), [f, m] = u.useState(null), p = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = u.useState({}), b = ie(t, (C) => m(C)), h = Array.from(d.layers), [v] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), x = h.indexOf(v), y = f ? h.indexOf(f) : -1, w = d.layersWithOutsidePointerEventsDisabled.size > 0, S = y >= x, k = Bf((C) => {
4650
+ } = e, d = f.useContext(Zs), [u, m] = f.useState(null), p = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = f.useState({}), b = ie(t, (C) => m(C)), h = Array.from(d.layers), [v] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), x = h.indexOf(v), y = u ? h.indexOf(u) : -1, w = d.layersWithOutsidePointerEventsDisabled.size > 0, S = y >= x, k = Bf((C) => {
4651
4651
  const N = C.target, W = [...d.branches].some((V) => V.contains(N));
4652
4652
  !S || W || (o == null || o(C), s == null || s(C), C.defaultPrevented || i == null || i());
4653
4653
  }, p), _ = zf((C) => {
@@ -4656,14 +4656,14 @@ var If = "DismissableLayer", Gr = "dismissableLayer.update", Wf = "dismissableLa
4656
4656
  }, p);
4657
4657
  return Af((C) => {
4658
4658
  y === d.layers.size - 1 && (r == null || r(C), !C.defaultPrevented && i && (C.preventDefault(), i()));
4659
- }, p), u.useEffect(() => {
4660
- if (f)
4661
- return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (aa = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), sa(), () => {
4659
+ }, p), f.useEffect(() => {
4660
+ if (u)
4661
+ return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (aa = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(u)), d.layers.add(u), sa(), () => {
4662
4662
  n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = aa);
4663
4663
  };
4664
- }, [f, p, n, d]), u.useEffect(() => () => {
4665
- f && (d.layers.delete(f), d.layersWithOutsidePointerEventsDisabled.delete(f), sa());
4666
- }, [f, d]), u.useEffect(() => {
4664
+ }, [u, p, n, d]), f.useEffect(() => () => {
4665
+ u && (d.layers.delete(u), d.layersWithOutsidePointerEventsDisabled.delete(u), sa());
4666
+ }, [u, d]), f.useEffect(() => {
4667
4667
  const C = () => g({});
4668
4668
  return document.addEventListener(Gr, C), () => document.removeEventListener(Gr, C);
4669
4669
  }, []), /* @__PURE__ */ c.jsx(
@@ -4686,9 +4686,9 @@ var If = "DismissableLayer", Gr = "dismissableLayer.update", Wf = "dismissableLa
4686
4686
  }
4687
4687
  );
4688
4688
  sn.displayName = If;
4689
- var Lf = "DismissableLayerBranch", $f = u.forwardRef((e, t) => {
4690
- const n = u.useContext(Zs), r = u.useRef(null), o = ie(t, r);
4691
- return u.useEffect(() => {
4689
+ var Lf = "DismissableLayerBranch", $f = f.forwardRef((e, t) => {
4690
+ const n = f.useContext(Zs), r = f.useRef(null), o = ie(t, r);
4691
+ return f.useEffect(() => {
4692
4692
  const a = r.current;
4693
4693
  if (a)
4694
4694
  return n.branches.add(a), () => {
@@ -4698,9 +4698,9 @@ var Lf = "DismissableLayerBranch", $f = u.forwardRef((e, t) => {
4698
4698
  });
4699
4699
  $f.displayName = Lf;
4700
4700
  function Bf(e, t = globalThis == null ? void 0 : globalThis.document) {
4701
- const n = Xe(e), r = u.useRef(!1), o = u.useRef(() => {
4701
+ const n = Xe(e), r = f.useRef(!1), o = f.useRef(() => {
4702
4702
  });
4703
- return u.useEffect(() => {
4703
+ return f.useEffect(() => {
4704
4704
  const a = (i) => {
4705
4705
  if (i.target && !r.current) {
4706
4706
  let l = function() {
@@ -4728,8 +4728,8 @@ function Bf(e, t = globalThis == null ? void 0 : globalThis.document) {
4728
4728
  };
4729
4729
  }
4730
4730
  function zf(e, t = globalThis == null ? void 0 : globalThis.document) {
4731
- const n = Xe(e), r = u.useRef(!1);
4732
- return u.useEffect(() => {
4731
+ const n = Xe(e), r = f.useRef(!1);
4732
+ return f.useEffect(() => {
4733
4733
  const o = (a) => {
4734
4734
  a.target && !r.current && Qs(Ff, n, { originalEvent: a }, {
4735
4735
  discrete: !1
@@ -4749,14 +4749,14 @@ function Qs(e, t, n, { discrete: r }) {
4749
4749
  const o = n.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
4750
4750
  t && o.addEventListener(e, t, { once: !0 }), r ? lu(o, a) : o.dispatchEvent(a);
4751
4751
  }
4752
- var xr = "focusScope.autoFocusOnMount", yr = "focusScope.autoFocusOnUnmount", ia = { bubbles: !1, cancelable: !0 }, Vf = "FocusScope", Hn = u.forwardRef((e, t) => {
4752
+ var xr = "focusScope.autoFocusOnMount", yr = "focusScope.autoFocusOnUnmount", ia = { bubbles: !1, cancelable: !0 }, Vf = "FocusScope", Hn = f.forwardRef((e, t) => {
4753
4753
  const {
4754
4754
  loop: n = !1,
4755
4755
  trapped: r = !1,
4756
4756
  onMountAutoFocus: o,
4757
4757
  onUnmountAutoFocus: a,
4758
4758
  ...s
4759
- } = e, [i, l] = u.useState(null), d = Xe(o), f = Xe(a), m = u.useRef(null), p = ie(t, (h) => l(h)), g = u.useRef({
4759
+ } = e, [i, l] = f.useState(null), d = Xe(o), u = Xe(a), m = f.useRef(null), p = ie(t, (h) => l(h)), g = f.useRef({
4760
4760
  paused: !1,
4761
4761
  pause() {
4762
4762
  this.paused = !0;
@@ -4765,7 +4765,7 @@ var xr = "focusScope.autoFocusOnMount", yr = "focusScope.autoFocusOnUnmount", ia
4765
4765
  this.paused = !1;
4766
4766
  }
4767
4767
  }).current;
4768
- u.useEffect(() => {
4768
+ f.useEffect(() => {
4769
4769
  if (r) {
4770
4770
  let h = function(w) {
4771
4771
  if (g.paused || !i) return;
@@ -4786,7 +4786,7 @@ var xr = "focusScope.autoFocusOnMount", yr = "focusScope.autoFocusOnUnmount", ia
4786
4786
  document.removeEventListener("focusin", h), document.removeEventListener("focusout", v), y.disconnect();
4787
4787
  };
4788
4788
  }
4789
- }, [r, i, g.paused]), u.useEffect(() => {
4789
+ }, [r, i, g.paused]), f.useEffect(() => {
4790
4790
  if (i) {
4791
4791
  ca.add(g);
4792
4792
  const h = document.activeElement;
@@ -4797,12 +4797,12 @@ var xr = "focusScope.autoFocusOnMount", yr = "focusScope.autoFocusOnUnmount", ia
4797
4797
  return () => {
4798
4798
  i.removeEventListener(xr, d), setTimeout(() => {
4799
4799
  const x = new CustomEvent(yr, ia);
4800
- i.addEventListener(yr, f), i.dispatchEvent(x), x.defaultPrevented || nt(h ?? document.body, { select: !0 }), i.removeEventListener(yr, f), ca.remove(g);
4800
+ i.addEventListener(yr, u), i.dispatchEvent(x), x.defaultPrevented || nt(h ?? document.body, { select: !0 }), i.removeEventListener(yr, u), ca.remove(g);
4801
4801
  }, 0);
4802
4802
  };
4803
4803
  }
4804
- }, [i, d, f, g]);
4805
- const b = u.useCallback(
4804
+ }, [i, d, u, g]);
4805
+ const b = f.useCallback(
4806
4806
  (h) => {
4807
4807
  if (!n && !r || g.paused) return;
4808
4808
  const v = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, x = document.activeElement;
@@ -4878,9 +4878,9 @@ function da(e, t) {
4878
4878
  function Kf(e) {
4879
4879
  return e.filter((t) => t.tagName !== "A");
4880
4880
  }
4881
- var Xf = "Portal", ln = u.forwardRef((e, t) => {
4881
+ var Xf = "Portal", ln = f.forwardRef((e, t) => {
4882
4882
  var i;
4883
- const { container: n, ...r } = e, [o, a] = u.useState(!1);
4883
+ const { container: n, ...r } = e, [o, a] = f.useState(!1);
4884
4884
  pe(() => a(!0), []);
4885
4885
  const s = n || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
4886
4886
  return s ? fd.createPortal(/* @__PURE__ */ c.jsx(q.div, { ...r, ref: t }), s) : null;
@@ -4888,7 +4888,7 @@ var Xf = "Portal", ln = u.forwardRef((e, t) => {
4888
4888
  ln.displayName = Xf;
4889
4889
  var wr = 0;
4890
4890
  function go() {
4891
- u.useEffect(() => {
4891
+ f.useEffect(() => {
4892
4892
  const e = document.querySelectorAll("[data-radix-focus-guard]");
4893
4893
  return document.body.insertAdjacentElement("afterbegin", e[0] ?? ua()), document.body.insertAdjacentElement("beforeend", e[1] ?? ua()), wr++, () => {
4894
4894
  wr === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), wr--;
@@ -4946,7 +4946,7 @@ function em(e, t) {
4946
4946
  })[0];
4947
4947
  return n.callback = t, n.facade;
4948
4948
  }
4949
- var tm = typeof window < "u" ? u.useLayoutEffect : u.useEffect, fa = /* @__PURE__ */ new WeakMap();
4949
+ var tm = typeof window < "u" ? f.useLayoutEffect : f.useEffect, fa = /* @__PURE__ */ new WeakMap();
4950
4950
  function nm(e, t) {
4951
4951
  var n = em(null, function(r) {
4952
4952
  return e.forEach(function(o) {
@@ -5007,17 +5007,17 @@ function om(e, t) {
5007
5007
  n = [], i.forEach(a), s = n;
5008
5008
  }
5009
5009
  var l = function() {
5010
- var f = s;
5011
- s = [], f.forEach(a);
5010
+ var u = s;
5011
+ s = [], u.forEach(a);
5012
5012
  }, d = function() {
5013
5013
  return Promise.resolve().then(l);
5014
5014
  };
5015
5015
  d(), n = {
5016
- push: function(f) {
5017
- s.push(f), d();
5016
+ push: function(u) {
5017
+ s.push(u), d();
5018
5018
  },
5019
- filter: function(f) {
5020
- return s = s.filter(f), n;
5019
+ filter: function(u) {
5020
+ return s = s.filter(u), n;
5021
5021
  }
5022
5022
  };
5023
5023
  }
@@ -5036,24 +5036,24 @@ var ti = function(e) {
5036
5036
  var r = t.read();
5037
5037
  if (!r)
5038
5038
  throw new Error("Sidecar medium not found");
5039
- return u.createElement(r, Le({}, n));
5039
+ return f.createElement(r, Le({}, n));
5040
5040
  };
5041
5041
  ti.isSideCarExport = !0;
5042
5042
  function sm(e, t) {
5043
5043
  return e.useMedium(t), ti;
5044
5044
  }
5045
5045
  var ni = am(), Sr = function() {
5046
- }, Gn = u.forwardRef(function(e, t) {
5047
- var n = u.useRef(null), r = u.useState({
5046
+ }, Gn = f.forwardRef(function(e, t) {
5047
+ var n = f.useRef(null), r = f.useState({
5048
5048
  onScrollCapture: Sr,
5049
5049
  onWheelCapture: Sr,
5050
5050
  onTouchMoveCapture: Sr
5051
- }), o = r[0], a = r[1], s = e.forwardProps, i = e.children, l = e.className, d = e.removeScrollBar, f = e.enabled, m = e.shards, p = e.sideCar, g = e.noRelative, b = e.noIsolation, h = e.inert, v = e.allowPinchZoom, x = e.as, y = x === void 0 ? "div" : x, w = e.gapMode, S = ei(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = p, _ = nm([n, t]), C = Le(Le({}, S), o);
5052
- return u.createElement(
5053
- u.Fragment,
5051
+ }), o = r[0], a = r[1], s = e.forwardProps, i = e.children, l = e.className, d = e.removeScrollBar, u = e.enabled, m = e.shards, p = e.sideCar, g = e.noRelative, b = e.noIsolation, h = e.inert, v = e.allowPinchZoom, x = e.as, y = x === void 0 ? "div" : x, w = e.gapMode, S = ei(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = p, _ = nm([n, t]), C = Le(Le({}, S), o);
5052
+ return f.createElement(
5053
+ f.Fragment,
5054
5054
  null,
5055
- f && u.createElement(k, { sideCar: ni, removeScrollBar: d, shards: m, noRelative: g, noIsolation: b, inert: h, setCallbacks: a, allowPinchZoom: !!v, lockRef: n, gapMode: w }),
5056
- s ? u.cloneElement(u.Children.only(i), Le(Le({}, C), { ref: _ })) : u.createElement(y, Le({}, C, { className: l, ref: _ }), i)
5055
+ u && f.createElement(k, { sideCar: ni, removeScrollBar: d, shards: m, noRelative: g, noIsolation: b, inert: h, setCallbacks: a, allowPinchZoom: !!v, lockRef: n, gapMode: w }),
5056
+ s ? f.cloneElement(f.Children.only(i), Le(Le({}, C), { ref: _ })) : f.createElement(y, Le({}, C, { className: l, ref: _ }), i)
5057
5057
  );
5058
5058
  });
5059
5059
  Gn.defaultProps = {
@@ -5097,7 +5097,7 @@ var um = function() {
5097
5097
  }, fm = function() {
5098
5098
  var e = um();
5099
5099
  return function(t, n) {
5100
- u.useEffect(function() {
5100
+ f.useEffect(function() {
5101
5101
  return e.add(t), function() {
5102
5102
  e.remove();
5103
5103
  };
@@ -5177,7 +5177,7 @@ var um = function() {
5177
5177
  var e = parseInt(document.body.getAttribute(Pt) || "0", 10);
5178
5178
  return isFinite(e) ? e : 0;
5179
5179
  }, vm = function() {
5180
- u.useEffect(function() {
5180
+ f.useEffect(function() {
5181
5181
  return document.body.setAttribute(Pt, (ma() + 1).toString()), function() {
5182
5182
  var e = ma() - 1;
5183
5183
  e <= 0 ? document.body.removeAttribute(Pt) : document.body.setAttribute(Pt, e.toString());
@@ -5186,10 +5186,10 @@ var um = function() {
5186
5186
  }, xm = function(e) {
5187
5187
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
5188
5188
  vm();
5189
- var a = u.useMemo(function() {
5189
+ var a = f.useMemo(function() {
5190
5190
  return pm(o);
5191
5191
  }, [o]);
5192
- return u.createElement(gm, { styles: bm(a, !t, o, n ? "" : "!important") });
5192
+ return f.createElement(gm, { styles: bm(a, !t, o, n ? "" : "!important") });
5193
5193
  }, Ur = !1;
5194
5194
  if (typeof window < "u")
5195
5195
  try {
@@ -5251,7 +5251,7 @@ var Et = Ur ? { passive: !1 } : !1, ym = function(e) {
5251
5251
  }, Em = function(e, t) {
5252
5252
  return e === "h" && t === "rtl" ? -1 : 1;
5253
5253
  }, Nm = function(e, t, n, r, o) {
5254
- var a = Em(e, window.getComputedStyle(t).direction), s = a * r, i = n.target, l = t.contains(i), d = !1, f = s > 0, m = 0, p = 0;
5254
+ var a = Em(e, window.getComputedStyle(t).direction), s = a * r, i = n.target, l = t.contains(i), d = !1, u = s > 0, m = 0, p = 0;
5255
5255
  do {
5256
5256
  if (!i)
5257
5257
  break;
@@ -5264,7 +5264,7 @@ var Et = Ur ? { passive: !1 } : !1, ym = function(e) {
5264
5264
  !l && i !== document.body || // self content
5265
5265
  l && (t.contains(i) || t === i)
5266
5266
  );
5267
- return (f && Math.abs(m) < 1 || !f && Math.abs(p) < 1) && (d = !0), d;
5267
+ return (u && Math.abs(m) < 1 || !u && Math.abs(p) < 1) && (d = !0), d;
5268
5268
  }, wn = function(e) {
5269
5269
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
5270
5270
  }, pa = function(e) {
@@ -5280,10 +5280,10 @@ var Et = Ur ? { passive: !1 } : !1, ym = function(e) {
5280
5280
  `);
5281
5281
  }, Om = 0, Nt = [];
5282
5282
  function Tm(e) {
5283
- var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), o = u.useState(Om++)[0], a = u.useState(ri)[0], s = u.useRef(e);
5284
- u.useEffect(function() {
5283
+ var t = f.useRef([]), n = f.useRef([0, 0]), r = f.useRef(), o = f.useState(Om++)[0], a = f.useState(ri)[0], s = f.useRef(e);
5284
+ f.useEffect(function() {
5285
5285
  s.current = e;
5286
- }, [e]), u.useEffect(function() {
5286
+ }, [e]), f.useEffect(function() {
5287
5287
  if (e.inert) {
5288
5288
  document.body.classList.add("block-interactivity-".concat(o));
5289
5289
  var h = Zf([e.lockRef.current], (e.shards || []).map(ga), !0).filter(Boolean);
@@ -5296,7 +5296,7 @@ function Tm(e) {
5296
5296
  };
5297
5297
  }
5298
5298
  }, [e.inert, e.lockRef.current, e.shards]);
5299
- var i = u.useCallback(function(h, v) {
5299
+ var i = f.useCallback(function(h, v) {
5300
5300
  if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
5301
5301
  return !s.current.allowPinchZoom;
5302
5302
  var x = wn(h), y = n.current, w = "deltaX" in h ? h.deltaX : y[0] - x[0], S = "deltaY" in h ? h.deltaY : y[1] - x[1], k, _ = h.target, C = Math.abs(w) > Math.abs(S) ? "h" : "v";
@@ -5311,7 +5311,7 @@ function Tm(e) {
5311
5311
  return !0;
5312
5312
  var W = r.current || k;
5313
5313
  return Nm(W, v, h, W === "h" ? w : S);
5314
- }, []), l = u.useCallback(function(h) {
5314
+ }, []), l = f.useCallback(function(h) {
5315
5315
  var v = h;
5316
5316
  if (!(!Nt.length || Nt[Nt.length - 1] !== a)) {
5317
5317
  var x = "deltaY" in v ? pa(v) : wn(v), y = t.current.filter(function(k) {
@@ -5328,37 +5328,37 @@ function Tm(e) {
5328
5328
  S && v.cancelable && v.preventDefault();
5329
5329
  }
5330
5330
  }
5331
- }, []), d = u.useCallback(function(h, v, x, y) {
5331
+ }, []), d = f.useCallback(function(h, v, x, y) {
5332
5332
  var w = { name: h, delta: v, target: x, should: y, shadowParent: Rm(x) };
5333
5333
  t.current.push(w), setTimeout(function() {
5334
5334
  t.current = t.current.filter(function(S) {
5335
5335
  return S !== w;
5336
5336
  });
5337
5337
  }, 1);
5338
- }, []), f = u.useCallback(function(h) {
5338
+ }, []), u = f.useCallback(function(h) {
5339
5339
  n.current = wn(h), r.current = void 0;
5340
- }, []), m = u.useCallback(function(h) {
5340
+ }, []), m = f.useCallback(function(h) {
5341
5341
  d(h.type, pa(h), h.target, i(h, e.lockRef.current));
5342
- }, []), p = u.useCallback(function(h) {
5342
+ }, []), p = f.useCallback(function(h) {
5343
5343
  d(h.type, wn(h), h.target, i(h, e.lockRef.current));
5344
5344
  }, []);
5345
- u.useEffect(function() {
5345
+ f.useEffect(function() {
5346
5346
  return Nt.push(a), e.setCallbacks({
5347
5347
  onScrollCapture: m,
5348
5348
  onWheelCapture: m,
5349
5349
  onTouchMoveCapture: p
5350
- }), document.addEventListener("wheel", l, Et), document.addEventListener("touchmove", l, Et), document.addEventListener("touchstart", f, Et), function() {
5350
+ }), document.addEventListener("wheel", l, Et), document.addEventListener("touchmove", l, Et), document.addEventListener("touchstart", u, Et), function() {
5351
5351
  Nt = Nt.filter(function(h) {
5352
5352
  return h !== a;
5353
- }), document.removeEventListener("wheel", l, Et), document.removeEventListener("touchmove", l, Et), document.removeEventListener("touchstart", f, Et);
5353
+ }), document.removeEventListener("wheel", l, Et), document.removeEventListener("touchmove", l, Et), document.removeEventListener("touchstart", u, Et);
5354
5354
  };
5355
5355
  }, []);
5356
5356
  var g = e.removeScrollBar, b = e.inert;
5357
- return u.createElement(
5358
- u.Fragment,
5357
+ return f.createElement(
5358
+ f.Fragment,
5359
5359
  null,
5360
- b ? u.createElement(a, { styles: Mm(o) }) : null,
5361
- g ? u.createElement(xm, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
5360
+ b ? f.createElement(a, { styles: Mm(o) }) : null,
5361
+ g ? f.createElement(xm, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
5362
5362
  );
5363
5363
  }
5364
5364
  function Rm(e) {
@@ -5367,8 +5367,8 @@ function Rm(e) {
5367
5367
  return t;
5368
5368
  }
5369
5369
  const Pm = sm(ni, Tm);
5370
- var Un = u.forwardRef(function(e, t) {
5371
- return u.createElement(Gn, Le({}, e, { ref: t, sideCar: Pm }));
5370
+ var Un = f.forwardRef(function(e, t) {
5371
+ return f.createElement(Gn, Le({}, e, { ref: t, sideCar: Pm }));
5372
5372
  });
5373
5373
  Un.classNames = Gn.classNames;
5374
5374
  var Dm = function(e) {
@@ -5394,10 +5394,10 @@ var Dm = function(e) {
5394
5394
  !m || i.has(m) || (i.add(m), d(m.parentNode));
5395
5395
  };
5396
5396
  o.forEach(d);
5397
- var f = function(m) {
5397
+ var u = function(m) {
5398
5398
  !m || l.has(m) || Array.prototype.forEach.call(m.children, function(p) {
5399
5399
  if (i.has(p))
5400
- f(p);
5400
+ u(p);
5401
5401
  else
5402
5402
  try {
5403
5403
  var g = p.getAttribute(r), b = g !== null && g !== "false", h = (_t.get(p) || 0) + 1, v = (a.get(p) || 0) + 1;
@@ -5407,7 +5407,7 @@ var Dm = function(e) {
5407
5407
  }
5408
5408
  });
5409
5409
  };
5410
- return f(t), i.clear(), Er++, function() {
5410
+ return u(t), i.clear(), Er++, function() {
5411
5411
  s.forEach(function(m) {
5412
5412
  var p = _t.get(m) - 1, g = a.get(m) - 1;
5413
5413
  _t.set(m, p), a.set(m, g), p || (kn.has(m) || m.removeAttribute(r), kn.delete(m)), g || m.removeAttribute(n);
@@ -5427,7 +5427,7 @@ var Dm = function(e) {
5427
5427
  defaultOpen: o,
5428
5428
  onOpenChange: a,
5429
5429
  modal: s = !0
5430
- } = e, i = u.useRef(null), l = u.useRef(null), [d, f] = Ve({
5430
+ } = e, i = f.useRef(null), l = f.useRef(null), [d, u] = Ve({
5431
5431
  prop: r,
5432
5432
  defaultProp: o ?? !1,
5433
5433
  onChange: a,
@@ -5443,15 +5443,15 @@ var Dm = function(e) {
5443
5443
  titleId: ye(),
5444
5444
  descriptionId: ye(),
5445
5445
  open: d,
5446
- onOpenChange: f,
5447
- onOpenToggle: u.useCallback(() => f((m) => !m), [f]),
5446
+ onOpenChange: u,
5447
+ onOpenToggle: f.useCallback(() => u((m) => !m), [u]),
5448
5448
  modal: s,
5449
5449
  children: n
5450
5450
  }
5451
5451
  );
5452
5452
  };
5453
5453
  ci.displayName = qn;
5454
- var di = "DialogTrigger", ui = u.forwardRef(
5454
+ var di = "DialogTrigger", ui = f.forwardRef(
5455
5455
  (e, t) => {
5456
5456
  const { __scopeDialog: n, ...r } = e, o = We(di, n), a = ie(t, o.triggerRef);
5457
5457
  return /* @__PURE__ */ c.jsx(
@@ -5474,17 +5474,17 @@ var vo = "DialogPortal", [Wm, fi] = li(vo, {
5474
5474
  forceMount: void 0
5475
5475
  }), mi = (e) => {
5476
5476
  const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = We(vo, t);
5477
- return /* @__PURE__ */ c.jsx(Wm, { scope: t, forceMount: n, children: u.Children.map(r, (s) => /* @__PURE__ */ c.jsx(Ie, { present: n || a.open, children: /* @__PURE__ */ c.jsx(ln, { asChild: !0, container: o, children: s }) })) });
5477
+ return /* @__PURE__ */ c.jsx(Wm, { scope: t, forceMount: n, children: f.Children.map(r, (s) => /* @__PURE__ */ c.jsx(Ie, { present: n || a.open, children: /* @__PURE__ */ c.jsx(ln, { asChild: !0, container: o, children: s }) })) });
5478
5478
  };
5479
5479
  mi.displayName = vo;
5480
- var Rn = "DialogOverlay", hi = u.forwardRef(
5480
+ var Rn = "DialogOverlay", hi = f.forwardRef(
5481
5481
  (e, t) => {
5482
5482
  const n = fi(Rn, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = We(Rn, e.__scopeDialog);
5483
5483
  return a.modal ? /* @__PURE__ */ c.jsx(Ie, { present: r || a.open, children: /* @__PURE__ */ c.jsx(Lm, { ...o, ref: t }) }) : null;
5484
5484
  }
5485
5485
  );
5486
5486
  hi.displayName = Rn;
5487
- var Fm = /* @__PURE__ */ bt("DialogOverlay.RemoveScroll"), Lm = u.forwardRef(
5487
+ var Fm = /* @__PURE__ */ bt("DialogOverlay.RemoveScroll"), Lm = f.forwardRef(
5488
5488
  (e, t) => {
5489
5489
  const { __scopeDialog: n, ...r } = e, o = We(Rn, n);
5490
5490
  return (
@@ -5501,17 +5501,17 @@ var Fm = /* @__PURE__ */ bt("DialogOverlay.RemoveScroll"), Lm = u.forwardRef(
5501
5501
  ) })
5502
5502
  );
5503
5503
  }
5504
- ), vt = "DialogContent", pi = u.forwardRef(
5504
+ ), vt = "DialogContent", pi = f.forwardRef(
5505
5505
  (e, t) => {
5506
5506
  const n = fi(vt, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = We(vt, e.__scopeDialog);
5507
5507
  return /* @__PURE__ */ c.jsx(Ie, { present: r || a.open, children: a.modal ? /* @__PURE__ */ c.jsx($m, { ...o, ref: t }) : /* @__PURE__ */ c.jsx(Bm, { ...o, ref: t }) });
5508
5508
  }
5509
5509
  );
5510
5510
  pi.displayName = vt;
5511
- var $m = u.forwardRef(
5511
+ var $m = f.forwardRef(
5512
5512
  (e, t) => {
5513
- const n = We(vt, e.__scopeDialog), r = u.useRef(null), o = ie(t, n.contentRef, r);
5514
- return u.useEffect(() => {
5513
+ const n = We(vt, e.__scopeDialog), r = f.useRef(null), o = ie(t, n.contentRef, r);
5514
+ return f.useEffect(() => {
5515
5515
  const a = r.current;
5516
5516
  if (a) return bo(a);
5517
5517
  }, []), /* @__PURE__ */ c.jsx(
@@ -5536,9 +5536,9 @@ var $m = u.forwardRef(
5536
5536
  }
5537
5537
  );
5538
5538
  }
5539
- ), Bm = u.forwardRef(
5539
+ ), Bm = f.forwardRef(
5540
5540
  (e, t) => {
5541
- const n = We(vt, e.__scopeDialog), r = u.useRef(!1), o = u.useRef(!1);
5541
+ const n = We(vt, e.__scopeDialog), r = f.useRef(!1), o = f.useRef(!1);
5542
5542
  return /* @__PURE__ */ c.jsx(
5543
5543
  gi,
5544
5544
  {
@@ -5559,9 +5559,9 @@ var $m = u.forwardRef(
5559
5559
  }
5560
5560
  );
5561
5561
  }
5562
- ), gi = u.forwardRef(
5562
+ ), gi = f.forwardRef(
5563
5563
  (e, t) => {
5564
- const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...s } = e, i = We(vt, n), l = u.useRef(null), d = ie(t, l);
5564
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...s } = e, i = We(vt, n), l = f.useRef(null), d = ie(t, l);
5565
5565
  return go(), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
5566
5566
  /* @__PURE__ */ c.jsx(
5567
5567
  Hn,
@@ -5592,21 +5592,21 @@ var $m = u.forwardRef(
5592
5592
  ] })
5593
5593
  ] });
5594
5594
  }
5595
- ), xo = "DialogTitle", bi = u.forwardRef(
5595
+ ), xo = "DialogTitle", bi = f.forwardRef(
5596
5596
  (e, t) => {
5597
5597
  const { __scopeDialog: n, ...r } = e, o = We(xo, n);
5598
5598
  return /* @__PURE__ */ c.jsx(q.h2, { id: o.titleId, ...r, ref: t });
5599
5599
  }
5600
5600
  );
5601
5601
  bi.displayName = xo;
5602
- var vi = "DialogDescription", xi = u.forwardRef(
5602
+ var vi = "DialogDescription", xi = f.forwardRef(
5603
5603
  (e, t) => {
5604
5604
  const { __scopeDialog: n, ...r } = e, o = We(vi, n);
5605
5605
  return /* @__PURE__ */ c.jsx(q.p, { id: o.descriptionId, ...r, ref: t });
5606
5606
  }
5607
5607
  );
5608
5608
  xi.displayName = vi;
5609
- var yi = "DialogClose", wi = u.forwardRef(
5609
+ var yi = "DialogClose", wi = f.forwardRef(
5610
5610
  (e, t) => {
5611
5611
  const { __scopeDialog: n, ...r } = e, o = We(yi, n);
5612
5612
  return /* @__PURE__ */ c.jsx(
@@ -5634,12 +5634,12 @@ var ki = "DialogTitleWarning", [kw, Si] = nu(ki, {
5634
5634
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
5635
5635
 
5636
5636
  For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
5637
- return u.useEffect(() => {
5637
+ return f.useEffect(() => {
5638
5638
  e && (document.getElementById(e) || console.error(n));
5639
5639
  }, [n, e]), null;
5640
5640
  }, Vm = "DialogDescriptionWarning", Ym = ({ contentRef: e, descriptionId: t }) => {
5641
5641
  const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Si(Vm).contentName}}.`;
5642
- return u.useEffect(() => {
5642
+ return f.useEffect(() => {
5643
5643
  var a;
5644
5644
  const o = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
5645
5645
  t && o && (document.getElementById(t) || console.warn(r));
@@ -5793,7 +5793,7 @@ const Xm = be(
5793
5793
  size: "md"
5794
5794
  }
5795
5795
  }
5796
- ), Oi = u.forwardRef(
5796
+ ), Oi = f.forwardRef(
5797
5797
  ({
5798
5798
  className: e,
5799
5799
  variant: t,
@@ -5931,18 +5931,18 @@ function xa(e, t, n) {
5931
5931
  reference: r,
5932
5932
  floating: o
5933
5933
  } = e;
5934
- const a = $e(t), s = So(t), i = ko(s), l = Qe(t), d = a === "y", f = r.x + r.width / 2 - o.width / 2, m = r.y + r.height / 2 - o.height / 2, p = r[i] / 2 - o[i] / 2;
5934
+ const a = $e(t), s = So(t), i = ko(s), l = Qe(t), d = a === "y", u = r.x + r.width / 2 - o.width / 2, m = r.y + r.height / 2 - o.height / 2, p = r[i] / 2 - o[i] / 2;
5935
5935
  let g;
5936
5936
  switch (l) {
5937
5937
  case "top":
5938
5938
  g = {
5939
- x: f,
5939
+ x: u,
5940
5940
  y: r.y - o.height
5941
5941
  };
5942
5942
  break;
5943
5943
  case "bottom":
5944
5944
  g = {
5945
- x: f,
5945
+ x: u,
5946
5946
  y: r.y + r.height
5947
5947
  };
5948
5948
  break;
@@ -5986,7 +5986,7 @@ const lh = async (e, t, n) => {
5986
5986
  floating: t,
5987
5987
  strategy: o
5988
5988
  }), {
5989
- x: f,
5989
+ x: u,
5990
5990
  y: m
5991
5991
  } = xa(d, r, l), p = r, g = {}, b = 0;
5992
5992
  for (let h = 0; h < i.length; h++) {
@@ -5999,7 +5999,7 @@ const lh = async (e, t, n) => {
5999
5999
  data: S,
6000
6000
  reset: k
6001
6001
  } = await x({
6002
- x: f,
6002
+ x: u,
6003
6003
  y: m,
6004
6004
  initialPlacement: r,
6005
6005
  placement: p,
@@ -6012,7 +6012,7 @@ const lh = async (e, t, n) => {
6012
6012
  floating: t
6013
6013
  }
6014
6014
  });
6015
- f = y ?? f, m = w ?? m, g = {
6015
+ u = y ?? u, m = w ?? m, g = {
6016
6016
  ...g,
6017
6017
  [v]: {
6018
6018
  ...g[v],
@@ -6023,12 +6023,12 @@ const lh = async (e, t, n) => {
6023
6023
  floating: t,
6024
6024
  strategy: o
6025
6025
  }) : k.rects), {
6026
- x: f,
6026
+ x: u,
6027
6027
  y: m
6028
6028
  } = xa(d, p, l)), h = -1);
6029
6029
  }
6030
6030
  return {
6031
- x: f,
6031
+ x: u,
6032
6032
  y: m,
6033
6033
  placement: p,
6034
6034
  strategy: o,
@@ -6047,14 +6047,14 @@ async function en(e, t) {
6047
6047
  strategy: l
6048
6048
  } = e, {
6049
6049
  boundary: d = "clippingAncestors",
6050
- rootBoundary: f = "viewport",
6050
+ rootBoundary: u = "viewport",
6051
6051
  elementContext: m = "floating",
6052
6052
  altBoundary: p = !1,
6053
6053
  padding: g = 0
6054
6054
  } = Ze(t, e), b = Ti(g), v = i[p ? m === "floating" ? "reference" : "floating" : m], x = jn(await a.getClippingRect({
6055
6055
  element: (n = await (a.isElement == null ? void 0 : a.isElement(v))) == null || n ? v : v.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(i.floating)),
6056
6056
  boundary: d,
6057
- rootBoundary: f,
6057
+ rootBoundary: u,
6058
6058
  strategy: l
6059
6059
  })), y = m === "floating" ? {
6060
6060
  x: r,
@@ -6094,11 +6094,11 @@ const ch = (e) => ({
6094
6094
  middlewareData: l
6095
6095
  } = t, {
6096
6096
  element: d,
6097
- padding: f = 0
6097
+ padding: u = 0
6098
6098
  } = Ze(e, t) || {};
6099
6099
  if (d == null)
6100
6100
  return {};
6101
- const m = Ti(f), p = {
6101
+ const m = Ti(u), p = {
6102
6102
  x: n,
6103
6103
  y: r
6104
6104
  }, g = So(o), b = ko(g), h = await s.getDimensions(d), v = g === "y", x = v ? "top" : "left", y = v ? "bottom" : "right", w = v ? "clientHeight" : "clientWidth", S = a.reference[b] + a.reference[g] - p[g] - a.floating[b], k = p[g] - a.reference[g], _ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
@@ -6131,7 +6131,7 @@ const ch = (e) => ({
6131
6131
  platform: l,
6132
6132
  elements: d
6133
6133
  } = t, {
6134
- mainAxis: f = !0,
6134
+ mainAxis: u = !0,
6135
6135
  crossAxis: m = !0,
6136
6136
  fallbackPlacements: p,
6137
6137
  fallbackStrategy: g = "bestFit",
@@ -6145,7 +6145,7 @@ const ch = (e) => ({
6145
6145
  !p && _ && k.push(...sh(i, h, b, S));
6146
6146
  const C = [i, ...k], N = await en(t, v), W = [];
6147
6147
  let V = ((r = a.flip) == null ? void 0 : r.overflows) || [];
6148
- if (f && W.push(N[x]), m) {
6148
+ if (u && W.push(N[x]), m) {
6149
6149
  const Y = th(o, s, S);
6150
6150
  W.push(N[Y[0]], N[Y[1]]);
6151
6151
  }
@@ -6257,7 +6257,7 @@ async function fh(e, t) {
6257
6257
  placement: n,
6258
6258
  platform: r,
6259
6259
  elements: o
6260
- } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Qe(n), i = Bt(n), l = $e(n) === "y", d = Ri.has(s) ? -1 : 1, f = a && l ? -1 : 1, m = Ze(t, e);
6260
+ } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Qe(n), i = Bt(n), l = $e(n) === "y", d = Ri.has(s) ? -1 : 1, u = a && l ? -1 : 1, m = Ze(t, e);
6261
6261
  let {
6262
6262
  mainAxis: p,
6263
6263
  crossAxis: g,
@@ -6272,11 +6272,11 @@ async function fh(e, t) {
6272
6272
  alignmentAxis: m.alignmentAxis
6273
6273
  };
6274
6274
  return i && typeof b == "number" && (g = i === "end" ? b * -1 : b), l ? {
6275
- x: g * f,
6275
+ x: g * u,
6276
6276
  y: p * d
6277
6277
  } : {
6278
6278
  x: p * d,
6279
- y: g * f
6279
+ y: g * u
6280
6280
  };
6281
6281
  }
6282
6282
  const mh = function(e) {
@@ -6329,14 +6329,14 @@ const mh = function(e) {
6329
6329
  } = Ze(e, t), d = {
6330
6330
  x: n,
6331
6331
  y: r
6332
- }, f = await en(t, l), m = $e(Qe(o)), p = wo(m);
6332
+ }, u = await en(t, l), m = $e(Qe(o)), p = wo(m);
6333
6333
  let g = d[p], b = d[m];
6334
6334
  if (a) {
6335
- const v = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", y = g + f[v], w = g - f[x];
6335
+ const v = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", y = g + u[v], w = g - u[x];
6336
6336
  g = qr(y, g, w);
6337
6337
  }
6338
6338
  if (s) {
6339
- const v = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", y = b + f[v], w = b - f[x];
6339
+ const v = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", y = b + u[v], w = b - u[x];
6340
6340
  b = qr(y, b, w);
6341
6341
  }
6342
6342
  const h = i.fn({
@@ -6371,11 +6371,11 @@ const mh = function(e) {
6371
6371
  offset: i = 0,
6372
6372
  mainAxis: l = !0,
6373
6373
  crossAxis: d = !0
6374
- } = Ze(e, t), f = {
6374
+ } = Ze(e, t), u = {
6375
6375
  x: n,
6376
6376
  y: r
6377
6377
  }, m = $e(o), p = wo(m);
6378
- let g = f[p], b = f[m];
6378
+ let g = u[p], b = u[m];
6379
6379
  const h = Ze(i, t), v = typeof h == "number" ? {
6380
6380
  mainAxis: h,
6381
6381
  crossAxis: 0
@@ -6414,17 +6414,17 @@ const mh = function(e) {
6414
6414
  apply: l = () => {
6415
6415
  },
6416
6416
  ...d
6417
- } = Ze(e, t), f = await en(t, d), m = Qe(o), p = Bt(o), g = $e(o) === "y", {
6417
+ } = Ze(e, t), u = await en(t, d), m = Qe(o), p = Bt(o), g = $e(o) === "y", {
6418
6418
  width: b,
6419
6419
  height: h
6420
6420
  } = a.floating;
6421
6421
  let v, x;
6422
6422
  m === "top" || m === "bottom" ? (v = m, x = p === (await (s.isRTL == null ? void 0 : s.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (x = m, v = p === "end" ? "top" : "bottom");
6423
- const y = h - f.top - f.bottom, w = b - f.left - f.right, S = ot(h - f[v], y), k = ot(b - f[x], w), _ = !t.middlewareData.shift;
6423
+ const y = h - u.top - u.bottom, w = b - u.left - u.right, S = ot(h - u[v], y), k = ot(b - u[x], w), _ = !t.middlewareData.shift;
6424
6424
  let C = S, N = k;
6425
6425
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (N = w), (r = t.middlewareData.shift) != null && r.enabled.y && (C = y), _ && !p) {
6426
- const V = Ne(f.left, 0), D = Ne(f.right, 0), B = Ne(f.top, 0), G = Ne(f.bottom, 0);
6427
- g ? N = b - 2 * (V !== 0 || D !== 0 ? V + D : Ne(f.left, f.right)) : C = h - 2 * (B !== 0 || G !== 0 ? B + G : Ne(f.top, f.bottom));
6426
+ const V = Ne(u.left, 0), D = Ne(u.right, 0), B = Ne(u.top, 0), G = Ne(u.bottom, 0);
6427
+ g ? N = b - 2 * (V !== 0 || D !== 0 ? V + D : Ne(u.left, u.right)) : C = h - 2 * (B !== 0 || G !== 0 ? B + G : Ne(u.top, u.bottom));
6428
6428
  }
6429
6429
  await l({
6430
6430
  ...t,
@@ -6599,17 +6599,17 @@ function xt(e, t, n, r) {
6599
6599
  let s = ze(1);
6600
6600
  t && (r ? je(r) && (s = Dt(r)) : s = Dt(e));
6601
6601
  const i = _h(a, n, r) ? Ai(a) : ze(0);
6602
- let l = (o.left + i.x) / s.x, d = (o.top + i.y) / s.y, f = o.width / s.x, m = o.height / s.y;
6602
+ let l = (o.left + i.x) / s.x, d = (o.top + i.y) / s.y, u = o.width / s.x, m = o.height / s.y;
6603
6603
  if (a) {
6604
6604
  const p = _e(a), g = r && je(r) ? _e(r) : r;
6605
6605
  let b = p, h = Xr(b);
6606
6606
  for (; h && r && g !== b; ) {
6607
6607
  const v = Dt(h), x = h.getBoundingClientRect(), y = Ae(h), w = x.left + (h.clientLeft + parseFloat(y.paddingLeft)) * v.x, S = x.top + (h.clientTop + parseFloat(y.paddingTop)) * v.y;
6608
- l *= v.x, d *= v.y, f *= v.x, m *= v.y, l += w, d += S, b = _e(h), h = Xr(b);
6608
+ l *= v.x, d *= v.y, u *= v.x, m *= v.y, l += w, d += S, b = _e(h), h = Xr(b);
6609
6609
  }
6610
6610
  }
6611
6611
  return jn({
6612
- width: f,
6612
+ width: u,
6613
6613
  height: m,
6614
6614
  x: l,
6615
6615
  y: d
@@ -6640,17 +6640,17 @@ function Mh(e) {
6640
6640
  scrollLeft: 0,
6641
6641
  scrollTop: 0
6642
6642
  }, d = ze(1);
6643
- const f = ze(0), m = Ye(r);
6643
+ const u = ze(0), m = Ye(r);
6644
6644
  if ((m || !m && !a) && ((zt(r) !== "body" || cn(s)) && (l = Zn(r)), Ye(r))) {
6645
6645
  const g = xt(r);
6646
- d = Dt(r), f.x = g.x + r.clientLeft, f.y = g.y + r.clientTop;
6646
+ d = Dt(r), u.x = g.x + r.clientLeft, u.y = g.y + r.clientTop;
6647
6647
  }
6648
6648
  const p = s && !m && !a ? Ii(s, l) : ze(0);
6649
6649
  return {
6650
6650
  width: n.width * d.x,
6651
6651
  height: n.height * d.y,
6652
- x: n.x * d.x - l.scrollLeft * d.x + f.x + p.x,
6653
- y: n.y * d.y - l.scrollTop * d.y + f.y + p.y
6652
+ x: n.x * d.x - l.scrollLeft * d.x + u.x + p.x,
6653
+ y: n.y * d.y - l.scrollTop * d.y + u.y + p.y
6654
6654
  };
6655
6655
  }
6656
6656
  function Oh(e) {
@@ -6673,12 +6673,12 @@ function Rh(e, t) {
6673
6673
  let a = r.clientWidth, s = r.clientHeight, i = 0, l = 0;
6674
6674
  if (o) {
6675
6675
  a = o.width, s = o.height;
6676
- const f = Eo();
6677
- (!f || f && t === "fixed") && (i = o.offsetLeft, l = o.offsetTop);
6676
+ const u = Eo();
6677
+ (!u || u && t === "fixed") && (i = o.offsetLeft, l = o.offsetTop);
6678
6678
  }
6679
6679
  const d = Qn(r);
6680
6680
  if (d <= 0) {
6681
- const f = r.ownerDocument, m = f.body, p = getComputedStyle(m), g = f.compatMode === "CSS1Compat" && parseFloat(p.marginLeft) + parseFloat(p.marginRight) || 0, b = Math.abs(r.clientWidth - m.clientWidth - g);
6681
+ const u = r.ownerDocument, m = u.body, p = getComputedStyle(m), g = u.compatMode === "CSS1Compat" && parseFloat(p.marginLeft) + parseFloat(p.marginRight) || 0, b = Math.abs(r.clientWidth - m.clientWidth - g);
6682
6682
  b <= Sa && (a -= b);
6683
6683
  } else d <= Sa && (a += d);
6684
6684
  return {
@@ -6730,7 +6730,7 @@ function jh(e, t) {
6730
6730
  let s = a ? at(e) : e;
6731
6731
  for (; je(s) && !At(s); ) {
6732
6732
  const i = Ae(s), l = Co(s);
6733
- !l && i.position === "fixed" && (o = null), (a ? !l && !o : !l && i.position === "static" && !!o && Ph.has(o.position) || cn(s) && !l && Wi(e, s)) ? r = r.filter((f) => f !== s) : o = i, s = at(s);
6733
+ !l && i.position === "fixed" && (o = null), (a ? !l && !o : !l && i.position === "static" && !!o && Ph.has(o.position) || cn(s) && !l && Wi(e, s)) ? r = r.filter((u) => u !== s) : o = i, s = at(s);
6734
6734
  }
6735
6735
  return t.set(e, r), r;
6736
6736
  }
@@ -6741,8 +6741,8 @@ function Ah(e) {
6741
6741
  rootBoundary: r,
6742
6742
  strategy: o
6743
6743
  } = e;
6744
- const s = [...n === "clippingAncestors" ? Xn(t) ? [] : jh(t, this._c) : [].concat(n), r], i = s[0], l = s.reduce((d, f) => {
6745
- const m = Ca(t, f, o);
6744
+ const s = [...n === "clippingAncestors" ? Xn(t) ? [] : jh(t, this._c) : [].concat(n), r], i = s[0], l = s.reduce((d, u) => {
6745
+ const m = Ca(t, u, o);
6746
6746
  return d.top = Ne(m.top, d.top), d.right = ot(m.right, d.right), d.bottom = ot(m.bottom, d.bottom), d.left = Ne(m.left, d.left), d;
6747
6747
  }, Ca(t, i, o));
6748
6748
  return {
@@ -6778,7 +6778,7 @@ function Wh(e, t, n) {
6778
6778
  l.x = g.x + t.clientLeft, l.y = g.y + t.clientTop;
6779
6779
  } else o && d();
6780
6780
  a && !r && o && d();
6781
- const f = o && !r && !a ? Ii(o, i) : ze(0), m = s.left + i.scrollLeft - l.x - f.x, p = s.top + i.scrollTop - l.y - f.y;
6781
+ const u = o && !r && !a ? Ii(o, i) : ze(0), m = s.left + i.scrollLeft - l.x - u.x, p = s.top + i.scrollTop - l.y - u.y;
6782
6782
  return {
6783
6783
  x: m,
6784
6784
  y: p,
@@ -6855,14 +6855,14 @@ function Bh(e, t) {
6855
6855
  function s(i, l) {
6856
6856
  i === void 0 && (i = !1), l === void 0 && (l = 1), a();
6857
6857
  const d = e.getBoundingClientRect(), {
6858
- left: f,
6858
+ left: u,
6859
6859
  top: m,
6860
6860
  width: p,
6861
6861
  height: g
6862
6862
  } = d;
6863
6863
  if (i || t(), !p || !g)
6864
6864
  return;
6865
- const b = Cn(m), h = Cn(o.clientWidth - (f + p)), v = Cn(o.clientHeight - (m + g)), x = Cn(f), w = {
6865
+ const b = Cn(m), h = Cn(o.clientWidth - (u + p)), v = Cn(o.clientHeight - (m + g)), x = Cn(u), w = {
6866
6866
  rootMargin: -b + "px " + -h + "px " + -v + "px " + -x + "px",
6867
6867
  threshold: Ne(0, ot(1, l)) || 1
6868
6868
  };
@@ -6899,8 +6899,8 @@ function zh(e, t, n, r) {
6899
6899
  elementResize: s = typeof ResizeObserver == "function",
6900
6900
  layoutShift: i = typeof IntersectionObserver == "function",
6901
6901
  animationFrame: l = !1
6902
- } = r, d = No(e), f = o || a ? [...d ? tn(d) : [], ...tn(t)] : [];
6903
- f.forEach((x) => {
6902
+ } = r, d = No(e), u = o || a ? [...d ? tn(d) : [], ...tn(t)] : [];
6903
+ u.forEach((x) => {
6904
6904
  o && x.addEventListener("scroll", n, {
6905
6905
  passive: !0
6906
6906
  }), a && x.addEventListener("resize", n);
@@ -6922,7 +6922,7 @@ function zh(e, t, n, r) {
6922
6922
  }
6923
6923
  return n(), () => {
6924
6924
  var x;
6925
- f.forEach((y) => {
6925
+ u.forEach((y) => {
6926
6926
  o && y.removeEventListener("scroll", n), a && y.removeEventListener("resize", n);
6927
6927
  }), m == null || m(), (x = g) == null || x.disconnect(), g = null, l && cancelAnimationFrame(b);
6928
6928
  };
@@ -6980,7 +6980,7 @@ function _a(e, t) {
6980
6980
  return Math.round(t * n) / n;
6981
6981
  }
6982
6982
  function _r(e) {
6983
- const t = u.useRef(e);
6983
+ const t = f.useRef(e);
6984
6984
  return Mn(() => {
6985
6985
  t.current = e;
6986
6986
  }), t;
@@ -6999,20 +6999,20 @@ function Qh(e) {
6999
6999
  transform: i = !0,
7000
7000
  whileElementsMounted: l,
7001
7001
  open: d
7002
- } = e, [f, m] = u.useState({
7002
+ } = e, [u, m] = f.useState({
7003
7003
  x: 0,
7004
7004
  y: 0,
7005
7005
  strategy: n,
7006
7006
  placement: t,
7007
7007
  middlewareData: {},
7008
7008
  isPositioned: !1
7009
- }), [p, g] = u.useState(r);
7009
+ }), [p, g] = f.useState(r);
7010
7010
  An(p, r) || g(r);
7011
- const [b, h] = u.useState(null), [v, x] = u.useState(null), y = u.useCallback((T) => {
7011
+ const [b, h] = f.useState(null), [v, x] = f.useState(null), y = f.useCallback((T) => {
7012
7012
  T !== _.current && (_.current = T, h(T));
7013
- }, []), w = u.useCallback((T) => {
7013
+ }, []), w = f.useCallback((T) => {
7014
7014
  T !== C.current && (C.current = T, x(T));
7015
- }, []), S = a || b, k = s || v, _ = u.useRef(null), C = u.useRef(null), N = u.useRef(f), W = l != null, V = _r(l), D = _r(o), B = _r(d), G = u.useCallback(() => {
7015
+ }, []), S = a || b, k = s || v, _ = f.useRef(null), C = f.useRef(null), N = f.useRef(u), W = l != null, V = _r(l), D = _r(o), B = _r(d), G = f.useCallback(() => {
7016
7016
  if (!_.current || !C.current)
7017
7017
  return;
7018
7018
  const T = {
@@ -7040,7 +7040,7 @@ function Qh(e) {
7040
7040
  isPositioned: !1
7041
7041
  })));
7042
7042
  }, [d]);
7043
- const Y = u.useRef(!1);
7043
+ const Y = f.useRef(!1);
7044
7044
  Mn(() => (Y.current = !0, () => {
7045
7045
  Y.current = !1;
7046
7046
  }), []), Mn(() => {
@@ -7050,15 +7050,15 @@ function Qh(e) {
7050
7050
  G();
7051
7051
  }
7052
7052
  }, [S, k, G, V, W]);
7053
- const X = u.useMemo(() => ({
7053
+ const X = f.useMemo(() => ({
7054
7054
  reference: _,
7055
7055
  floating: C,
7056
7056
  setReference: y,
7057
7057
  setFloating: w
7058
- }), [y, w]), F = u.useMemo(() => ({
7058
+ }), [y, w]), F = f.useMemo(() => ({
7059
7059
  reference: S,
7060
7060
  floating: k
7061
- }), [S, k]), Z = u.useMemo(() => {
7061
+ }), [S, k]), Z = f.useMemo(() => {
7062
7062
  const T = {
7063
7063
  position: n,
7064
7064
  left: 0,
@@ -7066,7 +7066,7 @@ function Qh(e) {
7066
7066
  };
7067
7067
  if (!F.floating)
7068
7068
  return T;
7069
- const ee = _a(F.floating, f.x), O = _a(F.floating, f.y);
7069
+ const ee = _a(F.floating, u.x), O = _a(F.floating, u.y);
7070
7070
  return i ? {
7071
7071
  ...T,
7072
7072
  transform: "translate(" + ee + "px, " + O + "px)",
@@ -7078,14 +7078,14 @@ function Qh(e) {
7078
7078
  left: ee,
7079
7079
  top: O
7080
7080
  };
7081
- }, [n, i, F.floating, f.x, f.y]);
7082
- return u.useMemo(() => ({
7083
- ...f,
7081
+ }, [n, i, F.floating, u.x, u.y]);
7082
+ return f.useMemo(() => ({
7083
+ ...u,
7084
7084
  update: G,
7085
7085
  refs: X,
7086
7086
  elements: F,
7087
7087
  floatingStyles: Z
7088
- }), [f, G, X, F, Z]);
7088
+ }), [u, G, X, F, Z]);
7089
7089
  }
7090
7090
  const Jh = (e) => {
7091
7091
  function t(n) {
@@ -7130,7 +7130,7 @@ const Jh = (e) => {
7130
7130
  ...Jh(e),
7131
7131
  options: [e, t]
7132
7132
  });
7133
- var ip = "Arrow", Bi = u.forwardRef((e, t) => {
7133
+ var ip = "Arrow", Bi = f.forwardRef((e, t) => {
7134
7134
  const { children: n, width: r = 10, height: o = 5, ...a } = e;
7135
7135
  return /* @__PURE__ */ c.jsx(
7136
7136
  q.svg,
@@ -7147,21 +7147,21 @@ var ip = "Arrow", Bi = u.forwardRef((e, t) => {
7147
7147
  });
7148
7148
  Bi.displayName = ip;
7149
7149
  var lp = Bi, _o = "Popper", [zi, Vt] = Oe(_o), [cp, Vi] = zi(_o), Yi = (e) => {
7150
- const { __scopePopper: t, children: n } = e, [r, o] = u.useState(null);
7150
+ const { __scopePopper: t, children: n } = e, [r, o] = f.useState(null);
7151
7151
  return /* @__PURE__ */ c.jsx(cp, { scope: t, anchor: r, onAnchorChange: o, children: n });
7152
7152
  };
7153
7153
  Yi.displayName = _o;
7154
- var Hi = "PopperAnchor", Gi = u.forwardRef(
7154
+ var Hi = "PopperAnchor", Gi = f.forwardRef(
7155
7155
  (e, t) => {
7156
- const { __scopePopper: n, virtualRef: r, ...o } = e, a = Vi(Hi, n), s = u.useRef(null), i = ie(t, s), l = u.useRef(null);
7157
- return u.useEffect(() => {
7156
+ const { __scopePopper: n, virtualRef: r, ...o } = e, a = Vi(Hi, n), s = f.useRef(null), i = ie(t, s), l = f.useRef(null);
7157
+ return f.useEffect(() => {
7158
7158
  const d = l.current;
7159
7159
  l.current = (r == null ? void 0 : r.current) || s.current, d !== l.current && a.onAnchorChange(l.current);
7160
7160
  }), r ? null : /* @__PURE__ */ c.jsx(q.div, { ...o, ref: i });
7161
7161
  }
7162
7162
  );
7163
7163
  Gi.displayName = Hi;
7164
- var Mo = "PopperContent", [dp, up] = zi(Mo), Ui = u.forwardRef(
7164
+ var Mo = "PopperContent", [dp, up] = zi(Mo), Ui = f.forwardRef(
7165
7165
  (e, t) => {
7166
7166
  var R, z, Q, te, ae, se;
7167
7167
  const {
@@ -7173,13 +7173,13 @@ var Mo = "PopperContent", [dp, up] = zi(Mo), Ui = u.forwardRef(
7173
7173
  arrowPadding: i = 0,
7174
7174
  avoidCollisions: l = !0,
7175
7175
  collisionBoundary: d = [],
7176
- collisionPadding: f = 0,
7176
+ collisionPadding: u = 0,
7177
7177
  sticky: m = "partial",
7178
7178
  hideWhenDetached: p = !1,
7179
7179
  updatePositionStrategy: g = "optimized",
7180
7180
  onPlaced: b,
7181
7181
  ...h
7182
- } = e, v = Vi(Mo, n), [x, y] = u.useState(null), w = ie(t, (we) => y(we)), [S, k] = u.useState(null), _ = Ln(S), C = (_ == null ? void 0 : _.width) ?? 0, N = (_ == null ? void 0 : _.height) ?? 0, W = r + (a !== "center" ? "-" + a : ""), V = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, D = Array.isArray(d) ? d : [d], B = D.length > 0, G = {
7182
+ } = e, v = Vi(Mo, n), [x, y] = f.useState(null), w = ie(t, (we) => y(we)), [S, k] = f.useState(null), _ = Ln(S), C = (_ == null ? void 0 : _.width) ?? 0, N = (_ == null ? void 0 : _.height) ?? 0, W = r + (a !== "center" ? "-" + a : ""), V = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, D = Array.isArray(d) ? d : [d], B = D.length > 0, G = {
7183
7183
  padding: V,
7184
7184
  boundary: D.filter(mp),
7185
7185
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -7218,7 +7218,7 @@ var Mo = "PopperContent", [dp, up] = zi(Mo), Ui = u.forwardRef(
7218
7218
  pe(() => {
7219
7219
  Z && (H == null || H());
7220
7220
  }, [Z, H]);
7221
- const M = (R = T.arrow) == null ? void 0 : R.x, P = (z = T.arrow) == null ? void 0 : z.y, I = ((Q = T.arrow) == null ? void 0 : Q.centerOffset) !== 0, [A, J] = u.useState();
7221
+ const M = (R = T.arrow) == null ? void 0 : R.x, P = (z = T.arrow) == null ? void 0 : z.y, I = ((Q = T.arrow) == null ? void 0 : Q.centerOffset) !== 0, [A, J] = f.useState();
7222
7222
  return pe(() => {
7223
7223
  x && J(window.getComputedStyle(x).zIndex);
7224
7224
  }, [x]), /* @__PURE__ */ c.jsx(
@@ -7281,7 +7281,7 @@ var qi = "PopperArrow", fp = {
7281
7281
  right: "left",
7282
7282
  bottom: "top",
7283
7283
  left: "right"
7284
- }, Ki = u.forwardRef(function(t, n) {
7284
+ }, Ki = f.forwardRef(function(t, n) {
7285
7285
  const { __scopePopper: r, ...o } = t, a = up(qi, r), s = fp[a.placedSide];
7286
7286
  return (
7287
7287
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
@@ -7335,7 +7335,7 @@ var hp = (e) => ({
7335
7335
  options: e,
7336
7336
  fn(t) {
7337
7337
  var v, x, y;
7338
- const { placement: n, rects: r, middlewareData: o } = t, s = ((v = o.arrow) == null ? void 0 : v.centerOffset) !== 0, i = s ? 0 : e.arrowWidth, l = s ? 0 : e.arrowHeight, [d, f] = Xi(n), m = { start: "0%", center: "50%", end: "100%" }[f], p = (((x = o.arrow) == null ? void 0 : x.x) ?? 0) + i / 2, g = (((y = o.arrow) == null ? void 0 : y.y) ?? 0) + l / 2;
7338
+ const { placement: n, rects: r, middlewareData: o } = t, s = ((v = o.arrow) == null ? void 0 : v.centerOffset) !== 0, i = s ? 0 : e.arrowWidth, l = s ? 0 : e.arrowHeight, [d, u] = Xi(n), m = { start: "0%", center: "50%", end: "100%" }[u], p = (((x = o.arrow) == null ? void 0 : x.x) ?? 0) + i / 2, g = (((y = o.arrow) == null ? void 0 : y.y) ?? 0) + l / 2;
7339
7339
  let b = "", h = "";
7340
7340
  return d === "bottom" ? (b = s ? m : `${p}px`, h = `${-l}px`) : d === "top" ? (b = s ? m : `${p}px`, h = `${r.floating.height + l}px`) : d === "right" ? (b = `${-l}px`, h = s ? m : `${g}px`) : d === "left" && (b = `${r.floating.width + l}px`, h = s ? m : `${g}px`), { data: { x: b, y: h } };
7341
7341
  }
@@ -7356,7 +7356,7 @@ var Oo = Yi, Jn = Gi, To = Ui, Ro = Ki, Zi = Object.freeze({
7356
7356
  clip: "rect(0, 0, 0, 0)",
7357
7357
  whiteSpace: "nowrap",
7358
7358
  wordWrap: "normal"
7359
- }), pp = "VisuallyHidden", Qi = u.forwardRef(
7359
+ }), pp = "VisuallyHidden", Qi = f.forwardRef(
7360
7360
  (e, t) => /* @__PURE__ */ c.jsx(
7361
7361
  q.span,
7362
7362
  {
@@ -7376,8 +7376,8 @@ var gp = Qi, [er, Rw] = Oe("Tooltip", [
7376
7376
  skipDelayDuration: r = 300,
7377
7377
  disableHoverableContent: o = !1,
7378
7378
  children: a
7379
- } = e, s = u.useRef(!0), i = u.useRef(!1), l = u.useRef(0);
7380
- return u.useEffect(() => {
7379
+ } = e, s = f.useRef(!0), i = f.useRef(!1), l = f.useRef(0);
7380
+ return f.useEffect(() => {
7381
7381
  const d = l.current;
7382
7382
  return () => window.clearTimeout(d);
7383
7383
  }, []), /* @__PURE__ */ c.jsx(
@@ -7386,17 +7386,17 @@ var gp = Qi, [er, Rw] = Oe("Tooltip", [
7386
7386
  scope: t,
7387
7387
  isOpenDelayedRef: s,
7388
7388
  delayDuration: n,
7389
- onOpen: u.useCallback(() => {
7389
+ onOpen: f.useCallback(() => {
7390
7390
  window.clearTimeout(l.current), s.current = !1;
7391
7391
  }, []),
7392
- onClose: u.useCallback(() => {
7392
+ onClose: f.useCallback(() => {
7393
7393
  window.clearTimeout(l.current), l.current = window.setTimeout(
7394
7394
  () => s.current = !0,
7395
7395
  r
7396
7396
  );
7397
7397
  }, [r]),
7398
7398
  isPointerInTransitRef: i,
7399
- onPointerInTransitChange: u.useCallback((d) => {
7399
+ onPointerInTransitChange: f.useCallback((d) => {
7400
7400
  i.current = d;
7401
7401
  }, []),
7402
7402
  disableHoverableContent: o,
@@ -7414,23 +7414,23 @@ var nn = "Tooltip", [xp, dn] = er(nn), Do = (e) => {
7414
7414
  onOpenChange: a,
7415
7415
  disableHoverableContent: s,
7416
7416
  delayDuration: i
7417
- } = e, l = Po(nn, e.__scopeTooltip), d = tr(t), [f, m] = u.useState(null), p = ye(), g = u.useRef(0), b = s ?? l.disableHoverableContent, h = i ?? l.delayDuration, v = u.useRef(!1), [x, y] = Ve({
7417
+ } = e, l = Po(nn, e.__scopeTooltip), d = tr(t), [u, m] = f.useState(null), p = ye(), g = f.useRef(0), b = s ?? l.disableHoverableContent, h = i ?? l.delayDuration, v = f.useRef(!1), [x, y] = Ve({
7418
7418
  prop: r,
7419
7419
  defaultProp: o ?? !1,
7420
7420
  onChange: (C) => {
7421
7421
  C ? (l.onOpen(), document.dispatchEvent(new CustomEvent(Zr))) : l.onClose(), a == null || a(C);
7422
7422
  },
7423
7423
  caller: nn
7424
- }), w = u.useMemo(() => x ? v.current ? "delayed-open" : "instant-open" : "closed", [x]), S = u.useCallback(() => {
7424
+ }), w = f.useMemo(() => x ? v.current ? "delayed-open" : "instant-open" : "closed", [x]), S = f.useCallback(() => {
7425
7425
  window.clearTimeout(g.current), g.current = 0, v.current = !1, y(!0);
7426
- }, [y]), k = u.useCallback(() => {
7426
+ }, [y]), k = f.useCallback(() => {
7427
7427
  window.clearTimeout(g.current), g.current = 0, y(!1);
7428
- }, [y]), _ = u.useCallback(() => {
7428
+ }, [y]), _ = f.useCallback(() => {
7429
7429
  window.clearTimeout(g.current), g.current = window.setTimeout(() => {
7430
7430
  v.current = !0, y(!0), g.current = 0;
7431
7431
  }, h);
7432
7432
  }, [h, y]);
7433
- return u.useEffect(() => () => {
7433
+ return f.useEffect(() => () => {
7434
7434
  g.current && (window.clearTimeout(g.current), g.current = 0);
7435
7435
  }, []), /* @__PURE__ */ c.jsx(Oo, { ...d, children: /* @__PURE__ */ c.jsx(
7436
7436
  xp,
@@ -7439,12 +7439,12 @@ var nn = "Tooltip", [xp, dn] = er(nn), Do = (e) => {
7439
7439
  contentId: p,
7440
7440
  open: x,
7441
7441
  stateAttribute: w,
7442
- trigger: f,
7442
+ trigger: u,
7443
7443
  onTriggerChange: m,
7444
- onTriggerEnter: u.useCallback(() => {
7444
+ onTriggerEnter: f.useCallback(() => {
7445
7445
  l.isOpenDelayedRef.current ? _() : S();
7446
7446
  }, [l.isOpenDelayedRef, _, S]),
7447
- onTriggerLeave: u.useCallback(() => {
7447
+ onTriggerLeave: f.useCallback(() => {
7448
7448
  b ? k() : (window.clearTimeout(g.current), g.current = 0);
7449
7449
  }, [k, b]),
7450
7450
  onOpen: S,
@@ -7455,10 +7455,10 @@ var nn = "Tooltip", [xp, dn] = er(nn), Do = (e) => {
7455
7455
  ) });
7456
7456
  };
7457
7457
  Do.displayName = nn;
7458
- var Qr = "TooltipTrigger", jo = u.forwardRef(
7458
+ var Qr = "TooltipTrigger", jo = f.forwardRef(
7459
7459
  (e, t) => {
7460
- const { __scopeTooltip: n, ...r } = e, o = dn(Qr, n), a = Po(Qr, n), s = tr(n), i = u.useRef(null), l = ie(t, i, o.onTriggerChange), d = u.useRef(!1), f = u.useRef(!1), m = u.useCallback(() => d.current = !1, []);
7461
- return u.useEffect(() => () => document.removeEventListener("pointerup", m), [m]), /* @__PURE__ */ c.jsx(Jn, { asChild: !0, ...s, children: /* @__PURE__ */ c.jsx(
7460
+ const { __scopeTooltip: n, ...r } = e, o = dn(Qr, n), a = Po(Qr, n), s = tr(n), i = f.useRef(null), l = ie(t, i, o.onTriggerChange), d = f.useRef(!1), u = f.useRef(!1), m = f.useCallback(() => d.current = !1, []);
7461
+ return f.useEffect(() => () => document.removeEventListener("pointerup", m), [m]), /* @__PURE__ */ c.jsx(Jn, { asChild: !0, ...s, children: /* @__PURE__ */ c.jsx(
7462
7462
  q.button,
7463
7463
  {
7464
7464
  "aria-describedby": o.open ? o.contentId : void 0,
@@ -7466,10 +7466,10 @@ var Qr = "TooltipTrigger", jo = u.forwardRef(
7466
7466
  ...r,
7467
7467
  ref: l,
7468
7468
  onPointerMove: K(e.onPointerMove, (p) => {
7469
- p.pointerType !== "touch" && !f.current && !a.isPointerInTransitRef.current && (o.onTriggerEnter(), f.current = !0);
7469
+ p.pointerType !== "touch" && !u.current && !a.isPointerInTransitRef.current && (o.onTriggerEnter(), u.current = !0);
7470
7470
  }),
7471
7471
  onPointerLeave: K(e.onPointerLeave, () => {
7472
- o.onTriggerLeave(), f.current = !1;
7472
+ o.onTriggerLeave(), u.current = !1;
7473
7473
  }),
7474
7474
  onPointerDown: K(e.onPointerDown, () => {
7475
7475
  o.open && o.onClose(), d.current = !0, document.addEventListener("pointerup", m, { once: !0 });
@@ -7491,38 +7491,38 @@ var Ao = "TooltipPortal", [yp, wp] = er(Ao, {
7491
7491
  return /* @__PURE__ */ c.jsx(yp, { scope: t, forceMount: n, children: /* @__PURE__ */ c.jsx(Ie, { present: n || a.open, children: /* @__PURE__ */ c.jsx(ln, { asChild: !0, container: o, children: r }) }) });
7492
7492
  };
7493
7493
  tl.displayName = Ao;
7494
- var It = "TooltipContent", Io = u.forwardRef(
7494
+ var It = "TooltipContent", Io = f.forwardRef(
7495
7495
  (e, t) => {
7496
7496
  const n = wp(It, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...a } = e, s = dn(It, e.__scopeTooltip);
7497
7497
  return /* @__PURE__ */ c.jsx(Ie, { present: r || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ c.jsx(nl, { side: o, ...a, ref: t }) : /* @__PURE__ */ c.jsx(kp, { side: o, ...a, ref: t }) });
7498
7498
  }
7499
- ), kp = u.forwardRef((e, t) => {
7500
- const n = dn(It, e.__scopeTooltip), r = Po(It, e.__scopeTooltip), o = u.useRef(null), a = ie(t, o), [s, i] = u.useState(null), { trigger: l, onClose: d } = n, f = o.current, { onPointerInTransitChange: m } = r, p = u.useCallback(() => {
7499
+ ), kp = f.forwardRef((e, t) => {
7500
+ const n = dn(It, e.__scopeTooltip), r = Po(It, e.__scopeTooltip), o = f.useRef(null), a = ie(t, o), [s, i] = f.useState(null), { trigger: l, onClose: d } = n, u = o.current, { onPointerInTransitChange: m } = r, p = f.useCallback(() => {
7501
7501
  i(null), m(!1);
7502
- }, [m]), g = u.useCallback(
7502
+ }, [m]), g = f.useCallback(
7503
7503
  (b, h) => {
7504
7504
  const v = b.currentTarget, x = { x: b.clientX, y: b.clientY }, y = Np(x, v.getBoundingClientRect()), w = _p(x, y), S = Mp(h.getBoundingClientRect()), k = Tp([...w, ...S]);
7505
7505
  i(k), m(!0);
7506
7506
  },
7507
7507
  [m]
7508
7508
  );
7509
- return u.useEffect(() => () => p(), [p]), u.useEffect(() => {
7510
- if (l && f) {
7511
- const b = (v) => g(v, f), h = (v) => g(v, l);
7512
- return l.addEventListener("pointerleave", b), f.addEventListener("pointerleave", h), () => {
7513
- l.removeEventListener("pointerleave", b), f.removeEventListener("pointerleave", h);
7509
+ return f.useEffect(() => () => p(), [p]), f.useEffect(() => {
7510
+ if (l && u) {
7511
+ const b = (v) => g(v, u), h = (v) => g(v, l);
7512
+ return l.addEventListener("pointerleave", b), u.addEventListener("pointerleave", h), () => {
7513
+ l.removeEventListener("pointerleave", b), u.removeEventListener("pointerleave", h);
7514
7514
  };
7515
7515
  }
7516
- }, [l, f, g, p]), u.useEffect(() => {
7516
+ }, [l, u, g, p]), f.useEffect(() => {
7517
7517
  if (s) {
7518
7518
  const b = (h) => {
7519
- const v = h.target, x = { x: h.clientX, y: h.clientY }, y = (l == null ? void 0 : l.contains(v)) || (f == null ? void 0 : f.contains(v)), w = !Op(x, s);
7519
+ const v = h.target, x = { x: h.clientX, y: h.clientY }, y = (l == null ? void 0 : l.contains(v)) || (u == null ? void 0 : u.contains(v)), w = !Op(x, s);
7520
7520
  y ? p() : w && (p(), d());
7521
7521
  };
7522
7522
  return document.addEventListener("pointermove", b), () => document.removeEventListener("pointermove", b);
7523
7523
  }
7524
- }, [l, f, s, d, p]), /* @__PURE__ */ c.jsx(nl, { ...e, ref: a });
7525
- }), [Sp, Cp] = er(nn, { isInside: !1 }), Ep = /* @__PURE__ */ gd("TooltipContent"), nl = u.forwardRef(
7524
+ }, [l, u, s, d, p]), /* @__PURE__ */ c.jsx(nl, { ...e, ref: a });
7525
+ }), [Sp, Cp] = er(nn, { isInside: !1 }), Ep = /* @__PURE__ */ gd("TooltipContent"), nl = f.forwardRef(
7526
7526
  (e, t) => {
7527
7527
  const {
7528
7528
  __scopeTooltip: n,
@@ -7531,16 +7531,16 @@ var It = "TooltipContent", Io = u.forwardRef(
7531
7531
  onEscapeKeyDown: a,
7532
7532
  onPointerDownOutside: s,
7533
7533
  ...i
7534
- } = e, l = dn(It, n), d = tr(n), { onClose: f } = l;
7535
- return u.useEffect(() => (document.addEventListener(Zr, f), () => document.removeEventListener(Zr, f)), [f]), u.useEffect(() => {
7534
+ } = e, l = dn(It, n), d = tr(n), { onClose: u } = l;
7535
+ return f.useEffect(() => (document.addEventListener(Zr, u), () => document.removeEventListener(Zr, u)), [u]), f.useEffect(() => {
7536
7536
  if (l.trigger) {
7537
7537
  const m = (p) => {
7538
7538
  const g = p.target;
7539
- g != null && g.contains(l.trigger) && f();
7539
+ g != null && g.contains(l.trigger) && u();
7540
7540
  };
7541
7541
  return window.addEventListener("scroll", m, { capture: !0 }), () => window.removeEventListener("scroll", m, { capture: !0 });
7542
7542
  }
7543
- }, [l.trigger, f]), /* @__PURE__ */ c.jsx(
7543
+ }, [l.trigger, u]), /* @__PURE__ */ c.jsx(
7544
7544
  sn,
7545
7545
  {
7546
7546
  asChild: !0,
@@ -7548,7 +7548,7 @@ var It = "TooltipContent", Io = u.forwardRef(
7548
7548
  onEscapeKeyDown: a,
7549
7549
  onPointerDownOutside: s,
7550
7550
  onFocusOutside: (m) => m.preventDefault(),
7551
- onDismiss: f,
7551
+ onDismiss: u,
7552
7552
  children: /* @__PURE__ */ c.jsxs(
7553
7553
  To,
7554
7554
  {
@@ -7575,7 +7575,7 @@ var It = "TooltipContent", Io = u.forwardRef(
7575
7575
  }
7576
7576
  );
7577
7577
  Io.displayName = It;
7578
- var rl = "TooltipArrow", ol = u.forwardRef(
7578
+ var rl = "TooltipArrow", ol = f.forwardRef(
7579
7579
  (e, t) => {
7580
7580
  const { __scopeTooltip: n, ...r } = e, o = tr(n);
7581
7581
  return Cp(
@@ -7643,8 +7643,8 @@ function Op(e, t) {
7643
7643
  const { x: n, y: r } = e;
7644
7644
  let o = !1;
7645
7645
  for (let a = 0, s = t.length - 1; a < t.length; s = a++) {
7646
- const i = t[a], l = t[s], d = i.x, f = i.y, m = l.x, p = l.y;
7647
- f > r != p > r && n < (m - d) * (r - f) / (p - f) + d && (o = !o);
7646
+ const i = t[a], l = t[s], d = i.x, u = i.y, m = l.x, p = l.y;
7647
+ u > r != p > r && n < (m - d) * (r - u) / (p - u) + d && (o = !o);
7648
7648
  }
7649
7649
  return o;
7650
7650
  }
@@ -7820,42 +7820,43 @@ const Lp = ({
7820
7820
  ] }), Aw = ({
7821
7821
  label: e = "Password",
7822
7822
  showForgot: t = !1,
7823
- onValidityChange: n,
7824
- customValidator: r,
7825
- showPasswordValidation: o = !0,
7826
- labelClassName: a = "",
7827
- ...s
7823
+ forgotPasswordUrl: n = "/forgot-password",
7824
+ onValidityChange: r,
7825
+ customValidator: o,
7826
+ showPasswordValidation: a = !0,
7827
+ labelClassName: s = "",
7828
+ ...i
7828
7829
  }) => {
7829
- const [i, l] = De(!1), [d, f] = De(""), [m, p] = De(!1), g = (v) => [
7830
+ const [l, d] = De(!1), [u, m] = De(""), [p, g] = De(!1), b = (x) => [
7830
7831
  {
7831
7832
  label: "minimum 8 characters",
7832
- isValid: v.length >= 8
7833
+ isValid: x.length >= 8
7833
7834
  },
7834
7835
  {
7835
7836
  label: "one uppercase character",
7836
- isValid: /[A-Z]/.test(v)
7837
+ isValid: /[A-Z]/.test(x)
7837
7838
  },
7838
7839
  {
7839
7840
  label: "one lowercase character",
7840
- isValid: /[a-z]/.test(v)
7841
+ isValid: /[a-z]/.test(x)
7841
7842
  },
7842
7843
  {
7843
7844
  label: "one special character",
7844
- isValid: /[^A-Za-z0-9]/.test(v)
7845
+ isValid: /[^A-Za-z0-9]/.test(x)
7845
7846
  },
7846
7847
  {
7847
7848
  label: "one number",
7848
- isValid: /\d/.test(v)
7849
+ isValid: /\d/.test(x)
7849
7850
  }
7850
- ], b = Rt(() => o ? r ? r(d) : g(d) : [], [o, r, d]), h = b.every((v) => v.isValid);
7851
+ ], h = Rt(() => a ? o ? o(u) : b(u) : [], [a, o, u]), v = h.every((x) => x.isValid);
7851
7852
  return fo(() => {
7852
- o && n && n(h, b);
7853
- }, [d, h, b, n, o]), /* @__PURE__ */ c.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col gap-2 w-full", children: [
7853
+ a && r && r(v, h);
7854
+ }, [u, v, h, r, a]), /* @__PURE__ */ c.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col gap-2 w-full", children: [
7854
7855
  /* @__PURE__ */ c.jsxs("div", { className: "flex justify-between items-center", children: [
7855
7856
  /* @__PURE__ */ c.jsx(
7856
7857
  "label",
7857
7858
  {
7858
- className: E("text-sm font-medium text-neutral-0", a),
7859
+ className: E("text-sm font-medium text-neutral-0", s),
7859
7860
  children: e
7860
7861
  }
7861
7862
  ),
@@ -7864,6 +7865,9 @@ const Lp = ({
7864
7865
  {
7865
7866
  className: "text-xs text-neutral-0 hover:underline bg-transparent p-0 hover:bg-transparent",
7866
7867
  variant: "primary",
7868
+ onClick: () => {
7869
+ window.location.href = n;
7870
+ },
7867
7871
  children: "Forgot Password?"
7868
7872
  }
7869
7873
  )
@@ -7871,30 +7875,31 @@ const Lp = ({
7871
7875
  /* @__PURE__ */ c.jsx(
7872
7876
  nr,
7873
7877
  {
7874
- labelClassName: a,
7875
- type: i ? "text" : "password",
7876
- value: d,
7877
- onChange: (v) => f(v.target.value),
7878
- onFocus: () => p(!0),
7879
- ...s,
7878
+ labelClassName: s,
7879
+ type: l ? "text" : "password",
7880
+ value: u,
7881
+ onChange: (x) => m(x.target.value),
7882
+ onFocus: () => g(!0),
7883
+ ...i,
7880
7884
  endSlot: /* @__PURE__ */ c.jsx(
7881
7885
  Ce,
7882
7886
  {
7887
+ type: "button",
7883
7888
  className: "text-xs text-neutral-0 hover:underline bg-transparent p-0 hover:bg-transparent",
7884
7889
  variant: "primary",
7885
- onClick: () => l(!i),
7886
- children: i ? /* @__PURE__ */ c.jsx(xf, { size: 24, className: "text-neutral-black-2" }) : /* @__PURE__ */ c.jsx(wf, { size: 24, className: "text-neutral-black-2" })
7890
+ onClick: () => d(!l),
7891
+ children: l ? /* @__PURE__ */ c.jsx(xf, { size: 24, className: "text-neutral-black-2" }) : /* @__PURE__ */ c.jsx(wf, { size: 24, className: "text-neutral-black-2" })
7887
7892
  }
7888
7893
  )
7889
7894
  }
7890
7895
  ),
7891
- o && /* @__PURE__ */ c.jsx("div", { className: "grid grid-cols-2 gap-y-1 text-xs mt-3", children: b.map((v, x) => /* @__PURE__ */ c.jsxs("div", { className: "flex items-center gap-1", children: [
7896
+ a && /* @__PURE__ */ c.jsx("div", { className: "grid grid-cols-2 gap-y-1 text-xs mt-3", children: h.map((x, y) => /* @__PURE__ */ c.jsxs("div", { className: "flex items-center gap-1", children: [
7892
7897
  /* @__PURE__ */ c.jsx(
7893
7898
  "div",
7894
7899
  {
7895
7900
  className: E(
7896
7901
  "w-1.5 h-1.5 rounded-full transition-colors",
7897
- v.isValid ? "bg-success-1" : m ? "bg-primary-1" : "bg-neutral-black-2"
7902
+ x.isValid ? "bg-success-1" : p ? "bg-primary-1" : "bg-neutral-black-2"
7898
7903
  )
7899
7904
  }
7900
7905
  ),
@@ -7903,12 +7908,12 @@ const Lp = ({
7903
7908
  {
7904
7909
  className: E(
7905
7910
  "transition-colors",
7906
- v.isValid ? "text-success-1" : m ? "text-primary-1" : "text-neutral-black-2"
7911
+ x.isValid ? "text-success-1" : p ? "text-primary-1" : "text-neutral-black-2"
7907
7912
  ),
7908
- children: v.label
7913
+ children: x.label
7909
7914
  }
7910
7915
  )
7911
- ] }, x)) })
7916
+ ] }, y)) })
7912
7917
  ] }) });
7913
7918
  }, Iw = (e) => /* @__PURE__ */ c.jsx(
7914
7919
  nr,
@@ -7942,12 +7947,12 @@ var Vp = [" ", "Enter", "ArrowUp", "ArrowDown"], Yp = [" ", "Enter"], yt = "Sele
7942
7947
  defaultValue: i,
7943
7948
  onValueChange: l,
7944
7949
  dir: d,
7945
- name: f,
7950
+ name: u,
7946
7951
  autoComplete: m,
7947
7952
  disabled: p,
7948
7953
  required: g,
7949
7954
  form: b
7950
- } = e, h = ar(t), [v, x] = u.useState(null), [y, w] = u.useState(null), [S, k] = u.useState(!1), _ = Bn(d), [C, N] = Ve({
7955
+ } = e, h = ar(t), [v, x] = f.useState(null), [y, w] = f.useState(null), [S, k] = f.useState(!1), _ = Bn(d), [C, N] = Ve({
7951
7956
  prop: r,
7952
7957
  defaultProp: o ?? !1,
7953
7958
  onChange: a,
@@ -7957,7 +7962,7 @@ var Vp = [" ", "Enter", "ArrowUp", "ArrowDown"], Yp = [" ", "Enter"], yt = "Sele
7957
7962
  defaultProp: i,
7958
7963
  onChange: l,
7959
7964
  caller: yt
7960
- }), D = u.useRef(null), B = v ? b || !!v.closest("form") : !0, [G, Y] = u.useState(/* @__PURE__ */ new Set()), X = Array.from(G).map((F) => F.props.value).join(";");
7965
+ }), D = f.useRef(null), B = v ? b || !!v.closest("form") : !0, [G, Y] = f.useState(/* @__PURE__ */ new Set()), X = Array.from(G).map((F) => F.props.value).join(";");
7961
7966
  return /* @__PURE__ */ c.jsx(Oo, { ...h, children: /* @__PURE__ */ c.jsxs(
7962
7967
  Gp,
7963
7968
  {
@@ -7982,10 +7987,10 @@ var Vp = [" ", "Enter", "ArrowUp", "ArrowDown"], Yp = [" ", "Enter"], yt = "Sele
7982
7987
  Up,
7983
7988
  {
7984
7989
  scope: e.__scopeSelect,
7985
- onNativeOptionAdd: u.useCallback((F) => {
7990
+ onNativeOptionAdd: f.useCallback((F) => {
7986
7991
  Y((Z) => new Set(Z).add(F));
7987
7992
  }, []),
7988
- onNativeOptionRemove: u.useCallback((F) => {
7993
+ onNativeOptionRemove: f.useCallback((F) => {
7989
7994
  Y((Z) => {
7990
7995
  const T = new Set(Z);
7991
7996
  return T.delete(F), T;
@@ -8000,7 +8005,7 @@ var Vp = [" ", "Enter", "ArrowUp", "ArrowDown"], Yp = [" ", "Enter"], yt = "Sele
8000
8005
  "aria-hidden": !0,
8001
8006
  required: g,
8002
8007
  tabIndex: -1,
8003
- name: f,
8008
+ name: u,
8004
8009
  autoComplete: m,
8005
8010
  value: W,
8006
8011
  onChange: (F) => V(F.target.value),
@@ -8018,9 +8023,9 @@ var Vp = [" ", "Enter", "ArrowUp", "ArrowDown"], Yp = [" ", "Enter"], yt = "Sele
8018
8023
  ) });
8019
8024
  };
8020
8025
  al.displayName = yt;
8021
- var sl = "SelectTrigger", il = u.forwardRef(
8026
+ var sl = "SelectTrigger", il = f.forwardRef(
8022
8027
  (e, t) => {
8023
- const { __scopeSelect: n, disabled: r = !1, ...o } = e, a = ar(n), s = it(sl, n), i = s.disabled || r, l = ie(t, s.onTriggerChange), d = or(n), f = u.useRef("touch"), [m, p, g] = Rl((h) => {
8028
+ const { __scopeSelect: n, disabled: r = !1, ...o } = e, a = ar(n), s = it(sl, n), i = s.disabled || r, l = ie(t, s.onTriggerChange), d = or(n), u = f.useRef("touch"), [m, p, g] = Rl((h) => {
8024
8029
  const v = d().filter((w) => !w.disabled), x = v.find((w) => w.value === s.value), y = Pl(v, h, x);
8025
8030
  y !== void 0 && s.onValueChange(y.value);
8026
8031
  }), b = (h) => {
@@ -8046,10 +8051,10 @@ var sl = "SelectTrigger", il = u.forwardRef(
8046
8051
  ...o,
8047
8052
  ref: l,
8048
8053
  onClick: K(o.onClick, (h) => {
8049
- h.currentTarget.focus(), f.current !== "mouse" && b(h);
8054
+ h.currentTarget.focus(), u.current !== "mouse" && b(h);
8050
8055
  }),
8051
8056
  onPointerDown: K(o.onPointerDown, (h) => {
8052
- f.current = h.pointerType;
8057
+ u.current = h.pointerType;
8053
8058
  const v = h.target;
8054
8059
  v.hasPointerCapture(h.pointerId) && v.releasePointerCapture(h.pointerId), h.button === 0 && h.ctrlKey === !1 && h.pointerType === "mouse" && (b(h), h.preventDefault());
8055
8060
  }),
@@ -8062,12 +8067,12 @@ var sl = "SelectTrigger", il = u.forwardRef(
8062
8067
  }
8063
8068
  );
8064
8069
  il.displayName = sl;
8065
- var ll = "SelectValue", cl = u.forwardRef(
8070
+ var ll = "SelectValue", cl = f.forwardRef(
8066
8071
  (e, t) => {
8067
- const { __scopeSelect: n, className: r, style: o, children: a, placeholder: s = "", ...i } = e, l = it(ll, n), { onValueNodeHasChildrenChange: d } = l, f = a !== void 0, m = ie(t, l.onValueNodeChange);
8072
+ const { __scopeSelect: n, className: r, style: o, children: a, placeholder: s = "", ...i } = e, l = it(ll, n), { onValueNodeHasChildrenChange: d } = l, u = a !== void 0, m = ie(t, l.onValueNodeChange);
8068
8073
  return pe(() => {
8069
- d(f);
8070
- }, [d, f]), /* @__PURE__ */ c.jsx(
8074
+ d(u);
8075
+ }, [d, u]), /* @__PURE__ */ c.jsx(
8071
8076
  q.span,
8072
8077
  {
8073
8078
  ...i,
@@ -8079,7 +8084,7 @@ var ll = "SelectValue", cl = u.forwardRef(
8079
8084
  }
8080
8085
  );
8081
8086
  cl.displayName = ll;
8082
- var Kp = "SelectIcon", dl = u.forwardRef(
8087
+ var Kp = "SelectIcon", dl = f.forwardRef(
8083
8088
  (e, t) => {
8084
8089
  const { __scopeSelect: n, children: r, ...o } = e;
8085
8090
  return /* @__PURE__ */ c.jsx(q.span, { "aria-hidden": !0, ...o, ref: t, children: r || "▼" });
@@ -8088,9 +8093,9 @@ var Kp = "SelectIcon", dl = u.forwardRef(
8088
8093
  dl.displayName = Kp;
8089
8094
  var Xp = "SelectPortal", ul = (e) => /* @__PURE__ */ c.jsx(ln, { asChild: !0, ...e });
8090
8095
  ul.displayName = Xp;
8091
- var wt = "SelectContent", fl = u.forwardRef(
8096
+ var wt = "SelectContent", fl = f.forwardRef(
8092
8097
  (e, t) => {
8093
- const n = it(wt, e.__scopeSelect), [r, o] = u.useState();
8098
+ const n = it(wt, e.__scopeSelect), [r, o] = f.useState();
8094
8099
  if (pe(() => {
8095
8100
  o(new DocumentFragment());
8096
8101
  }, []), !n.open) {
@@ -8104,7 +8109,7 @@ var wt = "SelectContent", fl = u.forwardRef(
8104
8109
  }
8105
8110
  );
8106
8111
  fl.displayName = wt;
8107
- var Re = 10, [ml, lt] = Yt(wt), Zp = "SelectContentImpl", Qp = /* @__PURE__ */ bt("SelectContent.RemoveScroll"), hl = u.forwardRef(
8112
+ var Re = 10, [ml, lt] = Yt(wt), Zp = "SelectContentImpl", Qp = /* @__PURE__ */ bt("SelectContent.RemoveScroll"), hl = f.forwardRef(
8108
8113
  (e, t) => {
8109
8114
  const {
8110
8115
  __scopeSelect: n,
@@ -8117,7 +8122,7 @@ var Re = 10, [ml, lt] = Yt(wt), Zp = "SelectContentImpl", Qp = /* @__PURE__ */ b
8117
8122
  side: i,
8118
8123
  sideOffset: l,
8119
8124
  align: d,
8120
- alignOffset: f,
8125
+ alignOffset: u,
8121
8126
  arrowPadding: m,
8122
8127
  collisionBoundary: p,
8123
8128
  collisionPadding: g,
@@ -8126,28 +8131,28 @@ var Re = 10, [ml, lt] = Yt(wt), Zp = "SelectContentImpl", Qp = /* @__PURE__ */ b
8126
8131
  avoidCollisions: v,
8127
8132
  //
8128
8133
  ...x
8129
- } = e, y = it(wt, n), [w, S] = u.useState(null), [k, _] = u.useState(null), C = ie(t, (R) => S(R)), [N, W] = u.useState(null), [V, D] = u.useState(
8134
+ } = e, y = it(wt, n), [w, S] = f.useState(null), [k, _] = f.useState(null), C = ie(t, (R) => S(R)), [N, W] = f.useState(null), [V, D] = f.useState(
8130
8135
  null
8131
- ), B = or(n), [G, Y] = u.useState(!1), X = u.useRef(!1);
8132
- u.useEffect(() => {
8136
+ ), B = or(n), [G, Y] = f.useState(!1), X = f.useRef(!1);
8137
+ f.useEffect(() => {
8133
8138
  if (w) return bo(w);
8134
8139
  }, [w]), go();
8135
- const F = u.useCallback(
8140
+ const F = f.useCallback(
8136
8141
  (R) => {
8137
8142
  const [z, ...Q] = B().map((se) => se.ref.current), [te] = Q.slice(-1), ae = document.activeElement;
8138
8143
  for (const se of R)
8139
8144
  if (se === ae || (se == null || se.scrollIntoView({ block: "nearest" }), se === z && k && (k.scrollTop = 0), se === te && k && (k.scrollTop = k.scrollHeight), se == null || se.focus(), document.activeElement !== ae)) return;
8140
8145
  },
8141
8146
  [B, k]
8142
- ), Z = u.useCallback(
8147
+ ), Z = f.useCallback(
8143
8148
  () => F([N, w]),
8144
8149
  [F, N, w]
8145
8150
  );
8146
- u.useEffect(() => {
8151
+ f.useEffect(() => {
8147
8152
  G && Z();
8148
8153
  }, [G, Z]);
8149
8154
  const { onOpenChange: T, triggerPointerDownPosRef: ee } = y;
8150
- u.useEffect(() => {
8155
+ f.useEffect(() => {
8151
8156
  if (w) {
8152
8157
  let R = { x: 0, y: 0 };
8153
8158
  const z = (te) => {
@@ -8163,7 +8168,7 @@ var Re = 10, [ml, lt] = Yt(wt), Zp = "SelectContentImpl", Qp = /* @__PURE__ */ b
8163
8168
  document.removeEventListener("pointermove", z), document.removeEventListener("pointerup", Q, { capture: !0 });
8164
8169
  };
8165
8170
  }
8166
- }, [w, T, ee]), u.useEffect(() => {
8171
+ }, [w, T, ee]), f.useEffect(() => {
8167
8172
  const R = () => T(!1);
8168
8173
  return window.addEventListener("blur", R), window.addEventListener("resize", R), () => {
8169
8174
  window.removeEventListener("blur", R), window.removeEventListener("resize", R);
@@ -8172,13 +8177,13 @@ var Re = 10, [ml, lt] = Yt(wt), Zp = "SelectContentImpl", Qp = /* @__PURE__ */ b
8172
8177
  const [O, H] = Rl((R) => {
8173
8178
  const z = B().filter((ae) => !ae.disabled), Q = z.find((ae) => ae.ref.current === document.activeElement), te = Pl(z, R, Q);
8174
8179
  te && setTimeout(() => te.ref.current.focus());
8175
- }), M = u.useCallback(
8180
+ }), M = f.useCallback(
8176
8181
  (R, z, Q) => {
8177
8182
  const te = !X.current && !Q;
8178
8183
  (y.value !== void 0 && y.value === z || te) && (W(R), te && (X.current = !0));
8179
8184
  },
8180
8185
  [y.value]
8181
- ), P = u.useCallback(() => w == null ? void 0 : w.focus(), [w]), I = u.useCallback(
8186
+ ), P = f.useCallback(() => w == null ? void 0 : w.focus(), [w]), I = f.useCallback(
8182
8187
  (R, z, Q) => {
8183
8188
  const te = !X.current && !Q;
8184
8189
  (y.value !== void 0 && y.value === z || te) && D(R);
@@ -8188,7 +8193,7 @@ var Re = 10, [ml, lt] = Yt(wt), Zp = "SelectContentImpl", Qp = /* @__PURE__ */ b
8188
8193
  side: i,
8189
8194
  sideOffset: l,
8190
8195
  align: d,
8191
- alignOffset: f,
8196
+ alignOffset: u,
8192
8197
  arrowPadding: m,
8193
8198
  collisionBoundary: p,
8194
8199
  collisionPadding: g,
@@ -8275,8 +8280,8 @@ var Re = 10, [ml, lt] = Yt(wt), Zp = "SelectContentImpl", Qp = /* @__PURE__ */ b
8275
8280
  }
8276
8281
  );
8277
8282
  hl.displayName = Zp;
8278
- var Jp = "SelectItemAlignedPosition", pl = u.forwardRef((e, t) => {
8279
- const { __scopeSelect: n, onPlaced: r, ...o } = e, a = it(wt, n), s = lt(wt, n), [i, l] = u.useState(null), [d, f] = u.useState(null), m = ie(t, (C) => f(C)), p = or(n), g = u.useRef(!1), b = u.useRef(!0), { viewport: h, selectedItem: v, selectedItemText: x, focusSelectedItem: y } = s, w = u.useCallback(() => {
8283
+ var Jp = "SelectItemAlignedPosition", pl = f.forwardRef((e, t) => {
8284
+ const { __scopeSelect: n, onPlaced: r, ...o } = e, a = it(wt, n), s = lt(wt, n), [i, l] = f.useState(null), [d, u] = f.useState(null), m = ie(t, (C) => u(C)), p = or(n), g = f.useRef(!1), b = f.useRef(!0), { viewport: h, selectedItem: v, selectedItemText: x, focusSelectedItem: y } = s, w = f.useCallback(() => {
8280
8285
  if (a.trigger && a.valueNode && i && d && h && v && x) {
8281
8286
  const C = a.trigger.getBoundingClientRect(), N = d.getBoundingClientRect(), W = a.valueNode.getBoundingClientRect(), V = x.getBoundingClientRect();
8282
8287
  if (a.dir !== "rtl") {
@@ -8332,11 +8337,11 @@ var Jp = "SelectItemAlignedPosition", pl = u.forwardRef((e, t) => {
8332
8337
  r
8333
8338
  ]);
8334
8339
  pe(() => w(), [w]);
8335
- const [S, k] = u.useState();
8340
+ const [S, k] = f.useState();
8336
8341
  pe(() => {
8337
8342
  d && k(window.getComputedStyle(d).zIndex);
8338
8343
  }, [d]);
8339
- const _ = u.useCallback(
8344
+ const _ = f.useCallback(
8340
8345
  (C) => {
8341
8346
  C && b.current === !0 && (w(), y == null || y(), b.current = !1);
8342
8347
  },
@@ -8380,7 +8385,7 @@ var Jp = "SelectItemAlignedPosition", pl = u.forwardRef((e, t) => {
8380
8385
  );
8381
8386
  });
8382
8387
  pl.displayName = Jp;
8383
- var eg = "SelectPopperPosition", Jr = u.forwardRef((e, t) => {
8388
+ var eg = "SelectPopperPosition", Jr = f.forwardRef((e, t) => {
8384
8389
  const {
8385
8390
  __scopeSelect: n,
8386
8391
  align: r = "start",
@@ -8409,9 +8414,9 @@ var eg = "SelectPopperPosition", Jr = u.forwardRef((e, t) => {
8409
8414
  );
8410
8415
  });
8411
8416
  Jr.displayName = eg;
8412
- var [tg, Wo] = Yt(wt, {}), eo = "SelectViewport", gl = u.forwardRef(
8417
+ var [tg, Wo] = Yt(wt, {}), eo = "SelectViewport", gl = f.forwardRef(
8413
8418
  (e, t) => {
8414
- const { __scopeSelect: n, nonce: r, ...o } = e, a = lt(eo, n), s = Wo(eo, n), i = ie(t, a.onViewportChange), l = u.useRef(0);
8419
+ const { __scopeSelect: n, nonce: r, ...o } = e, a = lt(eo, n), s = Wo(eo, n), i = ie(t, a.onViewportChange), l = f.useRef(0);
8415
8420
  return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
8416
8421
  /* @__PURE__ */ c.jsx(
8417
8422
  "style",
@@ -8443,18 +8448,18 @@ var [tg, Wo] = Yt(wt, {}), eo = "SelectViewport", gl = u.forwardRef(
8443
8448
  ...o.style
8444
8449
  },
8445
8450
  onScroll: K(o.onScroll, (d) => {
8446
- const f = d.currentTarget, { contentWrapper: m, shouldExpandOnScrollRef: p } = s;
8451
+ const u = d.currentTarget, { contentWrapper: m, shouldExpandOnScrollRef: p } = s;
8447
8452
  if (p != null && p.current && m) {
8448
- const g = Math.abs(l.current - f.scrollTop);
8453
+ const g = Math.abs(l.current - u.scrollTop);
8449
8454
  if (g > 0) {
8450
8455
  const b = window.innerHeight - Re * 2, h = parseFloat(m.style.minHeight), v = parseFloat(m.style.height), x = Math.max(h, v);
8451
8456
  if (x < b) {
8452
8457
  const y = x + g, w = Math.min(b, y), S = y - w;
8453
- m.style.height = w + "px", m.style.bottom === "0px" && (f.scrollTop = S > 0 ? S : 0, m.style.justifyContent = "flex-end");
8458
+ m.style.height = w + "px", m.style.bottom === "0px" && (u.scrollTop = S > 0 ? S : 0, m.style.justifyContent = "flex-end");
8454
8459
  }
8455
8460
  }
8456
8461
  }
8457
- l.current = f.scrollTop;
8462
+ l.current = u.scrollTop;
8458
8463
  })
8459
8464
  }
8460
8465
  ) })
@@ -8462,21 +8467,21 @@ var [tg, Wo] = Yt(wt, {}), eo = "SelectViewport", gl = u.forwardRef(
8462
8467
  }
8463
8468
  );
8464
8469
  gl.displayName = eo;
8465
- var bl = "SelectGroup", [ng, rg] = Yt(bl), vl = u.forwardRef(
8470
+ var bl = "SelectGroup", [ng, rg] = Yt(bl), vl = f.forwardRef(
8466
8471
  (e, t) => {
8467
8472
  const { __scopeSelect: n, ...r } = e, o = ye();
8468
8473
  return /* @__PURE__ */ c.jsx(ng, { scope: n, id: o, children: /* @__PURE__ */ c.jsx(q.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
8469
8474
  }
8470
8475
  );
8471
8476
  vl.displayName = bl;
8472
- var xl = "SelectLabel", yl = u.forwardRef(
8477
+ var xl = "SelectLabel", yl = f.forwardRef(
8473
8478
  (e, t) => {
8474
8479
  const { __scopeSelect: n, ...r } = e, o = rg(xl, n);
8475
8480
  return /* @__PURE__ */ c.jsx(q.div, { id: o.id, ...r, ref: t });
8476
8481
  }
8477
8482
  );
8478
8483
  yl.displayName = xl;
8479
- var In = "SelectItem", [og, wl] = Yt(In), kl = u.forwardRef(
8484
+ var In = "SelectItem", [og, wl] = Yt(In), kl = f.forwardRef(
8480
8485
  (e, t) => {
8481
8486
  const {
8482
8487
  __scopeSelect: n,
@@ -8484,13 +8489,13 @@ var In = "SelectItem", [og, wl] = Yt(In), kl = u.forwardRef(
8484
8489
  disabled: o = !1,
8485
8490
  textValue: a,
8486
8491
  ...s
8487
- } = e, i = it(In, n), l = lt(In, n), d = i.value === r, [f, m] = u.useState(a ?? ""), [p, g] = u.useState(!1), b = ie(
8492
+ } = e, i = it(In, n), l = lt(In, n), d = i.value === r, [u, m] = f.useState(a ?? ""), [p, g] = f.useState(!1), b = ie(
8488
8493
  t,
8489
8494
  (y) => {
8490
8495
  var w;
8491
8496
  return (w = l.itemRefCallback) == null ? void 0 : w.call(l, y, r, o);
8492
8497
  }
8493
- ), h = ye(), v = u.useRef("touch"), x = () => {
8498
+ ), h = ye(), v = f.useRef("touch"), x = () => {
8494
8499
  o || (i.onValueChange(r), i.onOpenChange(!1));
8495
8500
  };
8496
8501
  if (r === "")
@@ -8505,7 +8510,7 @@ var In = "SelectItem", [og, wl] = Yt(In), kl = u.forwardRef(
8505
8510
  disabled: o,
8506
8511
  textId: h,
8507
8512
  isSelected: d,
8508
- onItemTextChange: u.useCallback((y) => {
8513
+ onItemTextChange: f.useCallback((y) => {
8509
8514
  m((w) => w || ((y == null ? void 0 : y.textContent) ?? "").trim());
8510
8515
  }, []),
8511
8516
  children: /* @__PURE__ */ c.jsx(
@@ -8514,7 +8519,7 @@ var In = "SelectItem", [og, wl] = Yt(In), kl = u.forwardRef(
8514
8519
  scope: n,
8515
8520
  value: r,
8516
8521
  disabled: o,
8517
- textValue: f,
8522
+ textValue: u,
8518
8523
  children: /* @__PURE__ */ c.jsx(
8519
8524
  q.div,
8520
8525
  {
@@ -8560,9 +8565,9 @@ var In = "SelectItem", [og, wl] = Yt(In), kl = u.forwardRef(
8560
8565
  }
8561
8566
  );
8562
8567
  kl.displayName = In;
8563
- var Qt = "SelectItemText", Sl = u.forwardRef(
8568
+ var Qt = "SelectItemText", Sl = f.forwardRef(
8564
8569
  (e, t) => {
8565
- const { __scopeSelect: n, className: r, style: o, ...a } = e, s = it(Qt, n), i = lt(Qt, n), l = wl(Qt, n), d = qp(Qt, n), [f, m] = u.useState(null), p = ie(
8570
+ const { __scopeSelect: n, className: r, style: o, ...a } = e, s = it(Qt, n), i = lt(Qt, n), l = wl(Qt, n), d = qp(Qt, n), [u, m] = f.useState(null), p = ie(
8566
8571
  t,
8567
8572
  (x) => m(x),
8568
8573
  l.onItemTextChange,
@@ -8570,7 +8575,7 @@ var Qt = "SelectItemText", Sl = u.forwardRef(
8570
8575
  var y;
8571
8576
  return (y = i.itemTextRefCallback) == null ? void 0 : y.call(i, x, l.value, l.disabled);
8572
8577
  }
8573
- ), g = f == null ? void 0 : f.textContent, b = u.useMemo(
8578
+ ), g = u == null ? void 0 : u.textContent, b = f.useMemo(
8574
8579
  () => /* @__PURE__ */ c.jsx("option", { value: l.value, disabled: l.disabled, children: g }, l.value),
8575
8580
  [l.disabled, l.value, g]
8576
8581
  ), { onNativeOptionAdd: h, onNativeOptionRemove: v } = d;
@@ -8581,15 +8586,15 @@ var Qt = "SelectItemText", Sl = u.forwardRef(
8581
8586
  }
8582
8587
  );
8583
8588
  Sl.displayName = Qt;
8584
- var Cl = "SelectItemIndicator", El = u.forwardRef(
8589
+ var Cl = "SelectItemIndicator", El = f.forwardRef(
8585
8590
  (e, t) => {
8586
8591
  const { __scopeSelect: n, ...r } = e;
8587
8592
  return wl(Cl, n).isSelected ? /* @__PURE__ */ c.jsx(q.span, { "aria-hidden": !0, ...r, ref: t }) : null;
8588
8593
  }
8589
8594
  );
8590
8595
  El.displayName = Cl;
8591
- var to = "SelectScrollUpButton", Nl = u.forwardRef((e, t) => {
8592
- const n = lt(to, e.__scopeSelect), r = Wo(to, e.__scopeSelect), [o, a] = u.useState(!1), s = ie(t, r.onScrollButtonChange);
8596
+ var to = "SelectScrollUpButton", Nl = f.forwardRef((e, t) => {
8597
+ const n = lt(to, e.__scopeSelect), r = Wo(to, e.__scopeSelect), [o, a] = f.useState(!1), s = ie(t, r.onScrollButtonChange);
8593
8598
  return pe(() => {
8594
8599
  if (n.viewport && n.isPositioned) {
8595
8600
  let i = function() {
@@ -8612,13 +8617,13 @@ var to = "SelectScrollUpButton", Nl = u.forwardRef((e, t) => {
8612
8617
  ) : null;
8613
8618
  });
8614
8619
  Nl.displayName = to;
8615
- var no = "SelectScrollDownButton", _l = u.forwardRef((e, t) => {
8616
- const n = lt(no, e.__scopeSelect), r = Wo(no, e.__scopeSelect), [o, a] = u.useState(!1), s = ie(t, r.onScrollButtonChange);
8620
+ var no = "SelectScrollDownButton", _l = f.forwardRef((e, t) => {
8621
+ const n = lt(no, e.__scopeSelect), r = Wo(no, e.__scopeSelect), [o, a] = f.useState(!1), s = ie(t, r.onScrollButtonChange);
8617
8622
  return pe(() => {
8618
8623
  if (n.viewport && n.isPositioned) {
8619
8624
  let i = function() {
8620
- const d = l.scrollHeight - l.clientHeight, f = Math.ceil(l.scrollTop) < d;
8621
- a(f);
8625
+ const d = l.scrollHeight - l.clientHeight, u = Math.ceil(l.scrollTop) < d;
8626
+ a(u);
8622
8627
  };
8623
8628
  const l = n.viewport;
8624
8629
  return i(), l.addEventListener("scroll", i), () => l.removeEventListener("scroll", i);
@@ -8636,14 +8641,14 @@ var no = "SelectScrollDownButton", _l = u.forwardRef((e, t) => {
8636
8641
  ) : null;
8637
8642
  });
8638
8643
  _l.displayName = no;
8639
- var Ml = u.forwardRef((e, t) => {
8640
- const { __scopeSelect: n, onAutoScroll: r, ...o } = e, a = lt("SelectScrollButton", n), s = u.useRef(null), i = or(n), l = u.useCallback(() => {
8644
+ var Ml = f.forwardRef((e, t) => {
8645
+ const { __scopeSelect: n, onAutoScroll: r, ...o } = e, a = lt("SelectScrollButton", n), s = f.useRef(null), i = or(n), l = f.useCallback(() => {
8641
8646
  s.current !== null && (window.clearInterval(s.current), s.current = null);
8642
8647
  }, []);
8643
- return u.useEffect(() => () => l(), [l]), pe(() => {
8644
- var f;
8648
+ return f.useEffect(() => () => l(), [l]), pe(() => {
8649
+ var u;
8645
8650
  const d = i().find((m) => m.ref.current === document.activeElement);
8646
- (f = d == null ? void 0 : d.ref.current) == null || f.scrollIntoView({ block: "nearest" });
8651
+ (u = d == null ? void 0 : d.ref.current) == null || u.scrollIntoView({ block: "nearest" });
8647
8652
  }, [i]), /* @__PURE__ */ c.jsx(
8648
8653
  q.div,
8649
8654
  {
@@ -8663,33 +8668,33 @@ var Ml = u.forwardRef((e, t) => {
8663
8668
  })
8664
8669
  }
8665
8670
  );
8666
- }), ag = "SelectSeparator", sg = u.forwardRef(
8671
+ }), ag = "SelectSeparator", sg = f.forwardRef(
8667
8672
  (e, t) => {
8668
8673
  const { __scopeSelect: n, ...r } = e;
8669
8674
  return /* @__PURE__ */ c.jsx(q.div, { "aria-hidden": !0, ...r, ref: t });
8670
8675
  }
8671
8676
  );
8672
8677
  sg.displayName = ag;
8673
- var ro = "SelectArrow", ig = u.forwardRef(
8678
+ var ro = "SelectArrow", ig = f.forwardRef(
8674
8679
  (e, t) => {
8675
8680
  const { __scopeSelect: n, ...r } = e, o = ar(n), a = it(ro, n), s = lt(ro, n);
8676
8681
  return a.open && s.position === "popper" ? /* @__PURE__ */ c.jsx(Ro, { ...o, ...r, ref: t }) : null;
8677
8682
  }
8678
8683
  );
8679
8684
  ig.displayName = ro;
8680
- var lg = "SelectBubbleInput", Ol = u.forwardRef(
8685
+ var lg = "SelectBubbleInput", Ol = f.forwardRef(
8681
8686
  ({ __scopeSelect: e, value: t, ...n }, r) => {
8682
- const o = u.useRef(null), a = ie(r, o), s = Fn(t);
8683
- return u.useEffect(() => {
8687
+ const o = f.useRef(null), a = ie(r, o), s = Fn(t);
8688
+ return f.useEffect(() => {
8684
8689
  const i = o.current;
8685
8690
  if (!i) return;
8686
- const l = window.HTMLSelectElement.prototype, f = Object.getOwnPropertyDescriptor(
8691
+ const l = window.HTMLSelectElement.prototype, u = Object.getOwnPropertyDescriptor(
8687
8692
  l,
8688
8693
  "value"
8689
8694
  ).set;
8690
- if (s !== t && f) {
8695
+ if (s !== t && u) {
8691
8696
  const m = new Event("change", { bubbles: !0 });
8692
- f.call(i, t), i.dispatchEvent(m);
8697
+ u.call(i, t), i.dispatchEvent(m);
8693
8698
  }
8694
8699
  }, [s, t]), /* @__PURE__ */ c.jsx(
8695
8700
  q.select,
@@ -8707,7 +8712,7 @@ function Tl(e) {
8707
8712
  return e === "" || e === void 0;
8708
8713
  }
8709
8714
  function Rl(e) {
8710
- const t = Xe(e), n = u.useRef(""), r = u.useRef(0), o = u.useCallback(
8715
+ const t = Xe(e), n = f.useRef(""), r = f.useRef(0), o = f.useCallback(
8711
8716
  (s) => {
8712
8717
  const i = n.current + s;
8713
8718
  t(i), function l(d) {
@@ -8715,10 +8720,10 @@ function Rl(e) {
8715
8720
  }(i);
8716
8721
  },
8717
8722
  [t]
8718
- ), a = u.useCallback(() => {
8723
+ ), a = f.useCallback(() => {
8719
8724
  n.current = "", window.clearTimeout(r.current);
8720
8725
  }, []);
8721
- return u.useEffect(() => () => window.clearTimeout(r.current), []), [n, o, a];
8726
+ return f.useEffect(() => () => window.clearTimeout(r.current), []), [n, o, a];
8722
8727
  }
8723
8728
  function Pl(e, t, n) {
8724
8729
  const o = t.length > 1 && Array.from(t).every((d) => d === t[0]) ? t[0] : t, a = n ? e.indexOf(n) : -1;
@@ -8884,7 +8889,7 @@ const Fw = ({
8884
8889
  onCountryChange: i,
8885
8890
  countryOptions: l,
8886
8891
  showDialCode: d = !0,
8887
- className: f,
8892
+ className: u,
8888
8893
  onValidityChange: m,
8889
8894
  includeDialCodeInValue: p = !0,
8890
8895
  ...g
@@ -8948,7 +8953,7 @@ const Fw = ({
8948
8953
  disabled: o,
8949
8954
  labelClassName: a,
8950
8955
  startSlot: k,
8951
- className: f,
8956
+ className: u,
8952
8957
  inputMode: "tel",
8953
8958
  type: "tel",
8954
8959
  placeholder: g.placeholder ?? `${_}(234) 567 8900`,
@@ -8983,7 +8988,7 @@ var sr = "Popover", [Il, Lw] = Oe(sr, [
8983
8988
  defaultOpen: o,
8984
8989
  onOpenChange: a,
8985
8990
  modal: s = !1
8986
- } = e, i = un(t), l = u.useRef(null), [d, f] = u.useState(!1), [m, p] = Ve({
8991
+ } = e, i = un(t), l = f.useRef(null), [d, u] = f.useState(!1), [m, p] = Ve({
8987
8992
  prop: r,
8988
8993
  defaultProp: o ?? !1,
8989
8994
  onChange: a,
@@ -8997,24 +9002,24 @@ var sr = "Popover", [Il, Lw] = Oe(sr, [
8997
9002
  triggerRef: l,
8998
9003
  open: m,
8999
9004
  onOpenChange: p,
9000
- onOpenToggle: u.useCallback(() => p((g) => !g), [p]),
9005
+ onOpenToggle: f.useCallback(() => p((g) => !g), [p]),
9001
9006
  hasCustomAnchor: d,
9002
- onCustomAnchorAdd: u.useCallback(() => f(!0), []),
9003
- onCustomAnchorRemove: u.useCallback(() => f(!1), []),
9007
+ onCustomAnchorAdd: f.useCallback(() => u(!0), []),
9008
+ onCustomAnchorRemove: f.useCallback(() => u(!1), []),
9004
9009
  modal: s,
9005
9010
  children: n
9006
9011
  }
9007
9012
  ) });
9008
9013
  };
9009
9014
  Wl.displayName = sr;
9010
- var Fl = "PopoverAnchor", Tg = u.forwardRef(
9015
+ var Fl = "PopoverAnchor", Tg = f.forwardRef(
9011
9016
  (e, t) => {
9012
9017
  const { __scopePopover: n, ...r } = e, o = ct(Fl, n), a = un(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: i } = o;
9013
- return u.useEffect(() => (s(), () => i()), [s, i]), /* @__PURE__ */ c.jsx(Jn, { ...a, ...r, ref: t });
9018
+ return f.useEffect(() => (s(), () => i()), [s, i]), /* @__PURE__ */ c.jsx(Jn, { ...a, ...r, ref: t });
9014
9019
  }
9015
9020
  );
9016
9021
  Tg.displayName = Fl;
9017
- var Ll = "PopoverTrigger", $l = u.forwardRef(
9022
+ var Ll = "PopoverTrigger", $l = f.forwardRef(
9018
9023
  (e, t) => {
9019
9024
  const { __scopePopover: n, ...r } = e, o = ct(Ll, n), a = un(n), s = ie(t, o.triggerRef), i = /* @__PURE__ */ c.jsx(
9020
9025
  q.button,
@@ -9040,17 +9045,17 @@ var Fo = "PopoverPortal", [Rg, Pg] = Il(Fo, {
9040
9045
  return /* @__PURE__ */ c.jsx(Rg, { scope: t, forceMount: n, children: /* @__PURE__ */ c.jsx(Ie, { present: n || a.open, children: /* @__PURE__ */ c.jsx(ln, { asChild: !0, container: o, children: r }) }) });
9041
9046
  };
9042
9047
  Bl.displayName = Fo;
9043
- var Wt = "PopoverContent", zl = u.forwardRef(
9048
+ var Wt = "PopoverContent", zl = f.forwardRef(
9044
9049
  (e, t) => {
9045
9050
  const n = Pg(Wt, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, a = ct(Wt, e.__scopePopover);
9046
9051
  return /* @__PURE__ */ c.jsx(Ie, { present: r || a.open, children: a.modal ? /* @__PURE__ */ c.jsx(jg, { ...o, ref: t }) : /* @__PURE__ */ c.jsx(Ag, { ...o, ref: t }) });
9047
9052
  }
9048
9053
  );
9049
9054
  zl.displayName = Wt;
9050
- var Dg = /* @__PURE__ */ bt("PopoverContent.RemoveScroll"), jg = u.forwardRef(
9055
+ var Dg = /* @__PURE__ */ bt("PopoverContent.RemoveScroll"), jg = f.forwardRef(
9051
9056
  (e, t) => {
9052
- const n = ct(Wt, e.__scopePopover), r = u.useRef(null), o = ie(t, r), a = u.useRef(!1);
9053
- return u.useEffect(() => {
9057
+ const n = ct(Wt, e.__scopePopover), r = f.useRef(null), o = ie(t, r), a = f.useRef(!1);
9058
+ return f.useEffect(() => {
9054
9059
  const s = r.current;
9055
9060
  if (s) return bo(s);
9056
9061
  }, []), /* @__PURE__ */ c.jsx(Un, { as: Dg, allowPinchZoom: !0, children: /* @__PURE__ */ c.jsx(
@@ -9080,9 +9085,9 @@ var Dg = /* @__PURE__ */ bt("PopoverContent.RemoveScroll"), jg = u.forwardRef(
9080
9085
  }
9081
9086
  ) });
9082
9087
  }
9083
- ), Ag = u.forwardRef(
9088
+ ), Ag = f.forwardRef(
9084
9089
  (e, t) => {
9085
- const n = ct(Wt, e.__scopePopover), r = u.useRef(!1), o = u.useRef(!1);
9090
+ const n = ct(Wt, e.__scopePopover), r = f.useRef(!1), o = f.useRef(!1);
9086
9091
  return /* @__PURE__ */ c.jsx(
9087
9092
  Vl,
9088
9093
  {
@@ -9103,7 +9108,7 @@ var Dg = /* @__PURE__ */ bt("PopoverContent.RemoveScroll"), jg = u.forwardRef(
9103
9108
  }
9104
9109
  );
9105
9110
  }
9106
- ), Vl = u.forwardRef(
9111
+ ), Vl = f.forwardRef(
9107
9112
  (e, t) => {
9108
9113
  const {
9109
9114
  __scopePopover: n,
@@ -9114,7 +9119,7 @@ var Dg = /* @__PURE__ */ bt("PopoverContent.RemoveScroll"), jg = u.forwardRef(
9114
9119
  onEscapeKeyDown: i,
9115
9120
  onPointerDownOutside: l,
9116
9121
  onFocusOutside: d,
9117
- onInteractOutside: f,
9122
+ onInteractOutside: u,
9118
9123
  ...m
9119
9124
  } = e, p = ct(Wt, n), g = un(n);
9120
9125
  return go(), /* @__PURE__ */ c.jsx(
@@ -9130,7 +9135,7 @@ var Dg = /* @__PURE__ */ bt("PopoverContent.RemoveScroll"), jg = u.forwardRef(
9130
9135
  {
9131
9136
  asChild: !0,
9132
9137
  disableOutsidePointerEvents: s,
9133
- onInteractOutside: f,
9138
+ onInteractOutside: u,
9134
9139
  onEscapeKeyDown: i,
9135
9140
  onPointerDownOutside: l,
9136
9141
  onFocusOutside: d,
@@ -9159,7 +9164,7 @@ var Dg = /* @__PURE__ */ bt("PopoverContent.RemoveScroll"), jg = u.forwardRef(
9159
9164
  }
9160
9165
  );
9161
9166
  }
9162
- ), Yl = "PopoverClose", Ig = u.forwardRef(
9167
+ ), Yl = "PopoverClose", Ig = f.forwardRef(
9163
9168
  (e, t) => {
9164
9169
  const { __scopePopover: n, ...r } = e, o = ct(Yl, n);
9165
9170
  return /* @__PURE__ */ c.jsx(
@@ -9174,7 +9179,7 @@ var Dg = /* @__PURE__ */ bt("PopoverContent.RemoveScroll"), jg = u.forwardRef(
9174
9179
  }
9175
9180
  );
9176
9181
  Ig.displayName = Yl;
9177
- var Wg = "PopoverArrow", Fg = u.forwardRef(
9182
+ var Wg = "PopoverArrow", Fg = f.forwardRef(
9178
9183
  (e, t) => {
9179
9184
  const { __scopePopover: n, ...r } = e, o = un(n);
9180
9185
  return /* @__PURE__ */ c.jsx(Ro, { ...o, ...r, ref: t });
@@ -9220,8 +9225,8 @@ function so(e, t, n, r, o, a, s) {
9220
9225
  if (a === t.length) return o === e.length ? Oa : Ug;
9221
9226
  var i = `${o},${a}`;
9222
9227
  if (s[i] !== void 0) return s[i];
9223
- for (var l = r.charAt(a), d = n.indexOf(l, o), f = 0, m, p, g, b; d >= 0; ) m = so(e, t, n, r, d + 1, a + 1, s), m > f && (d === o ? m *= Oa : qg.test(e.charAt(d - 1)) ? (m *= Yg, g = e.slice(o, d - 1).match(Kg), g && o > 0 && (m *= Math.pow(Or, g.length))) : Xg.test(e.charAt(d - 1)) ? (m *= Vg, b = e.slice(o, d - 1).match(ql), b && o > 0 && (m *= Math.pow(Or, b.length))) : (m *= Hg, o > 0 && (m *= Math.pow(Or, d - o))), e.charAt(d) !== t.charAt(a) && (m *= Gg)), (m < Mr && n.charAt(d - 1) === r.charAt(a + 1) || r.charAt(a + 1) === r.charAt(a) && n.charAt(d - 1) !== r.charAt(a)) && (p = so(e, t, n, r, d + 1, a + 2, s), p * Mr > m && (m = p * Mr)), m > f && (f = m), d = n.indexOf(l, d + 1);
9224
- return s[i] = f, f;
9228
+ for (var l = r.charAt(a), d = n.indexOf(l, o), u = 0, m, p, g, b; d >= 0; ) m = so(e, t, n, r, d + 1, a + 1, s), m > u && (d === o ? m *= Oa : qg.test(e.charAt(d - 1)) ? (m *= Yg, g = e.slice(o, d - 1).match(Kg), g && o > 0 && (m *= Math.pow(Or, g.length))) : Xg.test(e.charAt(d - 1)) ? (m *= Vg, b = e.slice(o, d - 1).match(ql), b && o > 0 && (m *= Math.pow(Or, b.length))) : (m *= Hg, o > 0 && (m *= Math.pow(Or, d - o))), e.charAt(d) !== t.charAt(a) && (m *= Gg)), (m < Mr && n.charAt(d - 1) === r.charAt(a + 1) || r.charAt(a + 1) === r.charAt(a) && n.charAt(d - 1) !== r.charAt(a)) && (p = so(e, t, n, r, d + 1, a + 2, s), p * Mr > m && (m = p * Mr)), m > u && (u = m), d = n.indexOf(l, d + 1);
9229
+ return s[i] = u, u;
9225
9230
  }
9226
9231
  function Ta(e) {
9227
9232
  return e.toLowerCase().replace(ql, " ");
@@ -9229,20 +9234,20 @@ function Ta(e) {
9229
9234
  function Zg(e, t, n) {
9230
9235
  return e = n && n.length > 0 ? `${e + " " + n.join(" ")}` : e, so(e, t, Ta(e), Ta(t), 0, 0, {});
9231
9236
  }
9232
- var Kt = '[cmdk-group=""]', Tr = '[cmdk-group-items=""]', Qg = '[cmdk-group-heading=""]', Kl = '[cmdk-item=""]', Ra = `${Kl}:not([aria-disabled="true"])`, io = "cmdk-item-select", Ot = "data-value", Jg = (e, t, n) => Zg(e, t, n), Xl = u.createContext(void 0), fn = () => u.useContext(Xl), Zl = u.createContext(void 0), Lo = () => u.useContext(Zl), Ql = u.createContext(void 0), Jl = u.forwardRef((e, t) => {
9237
+ var Kt = '[cmdk-group=""]', Tr = '[cmdk-group-items=""]', Qg = '[cmdk-group-heading=""]', Kl = '[cmdk-item=""]', Ra = `${Kl}:not([aria-disabled="true"])`, io = "cmdk-item-select", Ot = "data-value", Jg = (e, t, n) => Zg(e, t, n), Xl = f.createContext(void 0), fn = () => f.useContext(Xl), Zl = f.createContext(void 0), Lo = () => f.useContext(Zl), Ql = f.createContext(void 0), Jl = f.forwardRef((e, t) => {
9233
9238
  let n = Tt(() => {
9234
9239
  var M, P;
9235
9240
  return { search: "", value: (P = (M = e.value) != null ? M : e.defaultValue) != null ? P : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
9236
- }), r = Tt(() => /* @__PURE__ */ new Set()), o = Tt(() => /* @__PURE__ */ new Map()), a = Tt(() => /* @__PURE__ */ new Map()), s = Tt(() => /* @__PURE__ */ new Set()), i = ec(e), { label: l, children: d, value: f, onValueChange: m, filter: p, shouldFilter: g, loop: b, disablePointerSelection: h = !1, vimBindings: v = !0, ...x } = e, y = ye(), w = ye(), S = ye(), k = u.useRef(null), _ = db();
9241
+ }), r = Tt(() => /* @__PURE__ */ new Set()), o = Tt(() => /* @__PURE__ */ new Map()), a = Tt(() => /* @__PURE__ */ new Map()), s = Tt(() => /* @__PURE__ */ new Set()), i = ec(e), { label: l, children: d, value: u, onValueChange: m, filter: p, shouldFilter: g, loop: b, disablePointerSelection: h = !1, vimBindings: v = !0, ...x } = e, y = ye(), w = ye(), S = ye(), k = f.useRef(null), _ = db();
9237
9242
  kt(() => {
9238
- if (f !== void 0) {
9239
- let M = f.trim();
9243
+ if (u !== void 0) {
9244
+ let M = u.trim();
9240
9245
  n.current.value = M, C.emit();
9241
9246
  }
9242
- }, [f]), kt(() => {
9247
+ }, [u]), kt(() => {
9243
9248
  _(6, G);
9244
9249
  }, []);
9245
- let C = u.useMemo(() => ({ subscribe: (M) => (s.current.add(M), () => s.current.delete(M)), snapshot: () => n.current, setState: (M, P, I) => {
9250
+ let C = f.useMemo(() => ({ subscribe: (M) => (s.current.add(M), () => s.current.delete(M)), snapshot: () => n.current, setState: (M, P, I) => {
9246
9251
  var A, J, R, z;
9247
9252
  if (!Object.is(n.current[M], P)) {
9248
9253
  if (n.current[M] = P, M === "search") B(), V(), _(1, D);
@@ -9264,7 +9269,7 @@ var Kt = '[cmdk-group=""]', Tr = '[cmdk-group-items=""]', Qg = '[cmdk-group-head
9264
9269
  }
9265
9270
  }, emit: () => {
9266
9271
  s.current.forEach((M) => M());
9267
- } }), []), N = u.useMemo(() => ({ value: (M, P, I) => {
9272
+ } }), []), N = f.useMemo(() => ({ value: (M, P, I) => {
9268
9273
  var A;
9269
9274
  P !== ((A = a.current.get(M)) == null ? void 0 : A.value) && (a.current.set(M, { value: P, keywords: I }), n.current.filtered.items.set(M, W(P, I)), _(2, () => {
9270
9275
  V(), C.emit();
@@ -9363,7 +9368,7 @@ var Kt = '[cmdk-group=""]', Tr = '[cmdk-group-items=""]', Qg = '[cmdk-group-head
9363
9368
  }, H = (M) => {
9364
9369
  M.preventDefault(), M.metaKey ? F(0) : M.altKey ? T(-1) : Z(-1);
9365
9370
  };
9366
- return u.createElement(q.div, { ref: t, tabIndex: -1, ...x, "cmdk-root": "", onKeyDown: (M) => {
9371
+ return f.createElement(q.div, { ref: t, tabIndex: -1, ...x, "cmdk-root": "", onKeyDown: (M) => {
9367
9372
  var P;
9368
9373
  (P = x.onKeyDown) == null || P.call(x, M);
9369
9374
  let I = M.nativeEvent.isComposing || M.keyCode === 229;
@@ -9403,64 +9408,64 @@ var Kt = '[cmdk-group=""]', Tr = '[cmdk-group-items=""]', Qg = '[cmdk-group-head
9403
9408
  }
9404
9409
  }
9405
9410
  }
9406
- } }, u.createElement("label", { "cmdk-label": "", htmlFor: N.inputId, id: N.labelId, style: fb }, l), ir(e, (M) => u.createElement(Zl.Provider, { value: C }, u.createElement(Xl.Provider, { value: N }, M))));
9407
- }), eb = u.forwardRef((e, t) => {
9411
+ } }, f.createElement("label", { "cmdk-label": "", htmlFor: N.inputId, id: N.labelId, style: fb }, l), ir(e, (M) => f.createElement(Zl.Provider, { value: C }, f.createElement(Xl.Provider, { value: N }, M))));
9412
+ }), eb = f.forwardRef((e, t) => {
9408
9413
  var n, r;
9409
- let o = ye(), a = u.useRef(null), s = u.useContext(Ql), i = fn(), l = ec(e), d = (r = (n = l.current) == null ? void 0 : n.forceMount) != null ? r : s == null ? void 0 : s.forceMount;
9414
+ let o = ye(), a = f.useRef(null), s = f.useContext(Ql), i = fn(), l = ec(e), d = (r = (n = l.current) == null ? void 0 : n.forceMount) != null ? r : s == null ? void 0 : s.forceMount;
9410
9415
  kt(() => {
9411
9416
  if (!d) return i.item(o, s == null ? void 0 : s.id);
9412
9417
  }, [d]);
9413
- let f = tc(o, a, [e.value, e.children, a], e.keywords), m = Lo(), p = st((_) => _.value && _.value === f.current), g = st((_) => d || i.filter() === !1 ? !0 : _.search ? _.filtered.items.get(o) > 0 : !0);
9414
- u.useEffect(() => {
9418
+ let u = tc(o, a, [e.value, e.children, a], e.keywords), m = Lo(), p = st((_) => _.value && _.value === u.current), g = st((_) => d || i.filter() === !1 ? !0 : _.search ? _.filtered.items.get(o) > 0 : !0);
9419
+ f.useEffect(() => {
9415
9420
  let _ = a.current;
9416
9421
  if (!(!_ || e.disabled)) return _.addEventListener(io, b), () => _.removeEventListener(io, b);
9417
9422
  }, [g, e.onSelect, e.disabled]);
9418
9423
  function b() {
9419
9424
  var _, C;
9420
- h(), (C = (_ = l.current).onSelect) == null || C.call(_, f.current);
9425
+ h(), (C = (_ = l.current).onSelect) == null || C.call(_, u.current);
9421
9426
  }
9422
9427
  function h() {
9423
- m.setState("value", f.current, !0);
9428
+ m.setState("value", u.current, !0);
9424
9429
  }
9425
9430
  if (!g) return null;
9426
9431
  let { disabled: v, value: x, onSelect: y, forceMount: w, keywords: S, ...k } = e;
9427
- return u.createElement(q.div, { ref: gt(a, t), ...k, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!v, "aria-selected": !!p, "data-disabled": !!v, "data-selected": !!p, onPointerMove: v || i.getDisablePointerSelection() ? void 0 : h, onClick: v ? void 0 : b }, e.children);
9428
- }), tb = u.forwardRef((e, t) => {
9429
- let { heading: n, children: r, forceMount: o, ...a } = e, s = ye(), i = u.useRef(null), l = u.useRef(null), d = ye(), f = fn(), m = st((g) => o || f.filter() === !1 ? !0 : g.search ? g.filtered.groups.has(s) : !0);
9430
- kt(() => f.group(s), []), tc(s, i, [e.value, e.heading, l]);
9431
- let p = u.useMemo(() => ({ id: s, forceMount: o }), [o]);
9432
- return u.createElement(q.div, { ref: gt(i, t), ...a, "cmdk-group": "", role: "presentation", hidden: m ? void 0 : !0 }, n && u.createElement("div", { ref: l, "cmdk-group-heading": "", "aria-hidden": !0, id: d }, n), ir(e, (g) => u.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? d : void 0 }, u.createElement(Ql.Provider, { value: p }, g))));
9433
- }), nb = u.forwardRef((e, t) => {
9434
- let { alwaysRender: n, ...r } = e, o = u.useRef(null), a = st((s) => !s.search);
9435
- return !n && !a ? null : u.createElement(q.div, { ref: gt(o, t), ...r, "cmdk-separator": "", role: "separator" });
9436
- }), rb = u.forwardRef((e, t) => {
9432
+ return f.createElement(q.div, { ref: gt(a, t), ...k, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!v, "aria-selected": !!p, "data-disabled": !!v, "data-selected": !!p, onPointerMove: v || i.getDisablePointerSelection() ? void 0 : h, onClick: v ? void 0 : b }, e.children);
9433
+ }), tb = f.forwardRef((e, t) => {
9434
+ let { heading: n, children: r, forceMount: o, ...a } = e, s = ye(), i = f.useRef(null), l = f.useRef(null), d = ye(), u = fn(), m = st((g) => o || u.filter() === !1 ? !0 : g.search ? g.filtered.groups.has(s) : !0);
9435
+ kt(() => u.group(s), []), tc(s, i, [e.value, e.heading, l]);
9436
+ let p = f.useMemo(() => ({ id: s, forceMount: o }), [o]);
9437
+ return f.createElement(q.div, { ref: gt(i, t), ...a, "cmdk-group": "", role: "presentation", hidden: m ? void 0 : !0 }, n && f.createElement("div", { ref: l, "cmdk-group-heading": "", "aria-hidden": !0, id: d }, n), ir(e, (g) => f.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? d : void 0 }, f.createElement(Ql.Provider, { value: p }, g))));
9438
+ }), nb = f.forwardRef((e, t) => {
9439
+ let { alwaysRender: n, ...r } = e, o = f.useRef(null), a = st((s) => !s.search);
9440
+ return !n && !a ? null : f.createElement(q.div, { ref: gt(o, t), ...r, "cmdk-separator": "", role: "separator" });
9441
+ }), rb = f.forwardRef((e, t) => {
9437
9442
  let { onValueChange: n, ...r } = e, o = e.value != null, a = Lo(), s = st((d) => d.search), i = st((d) => d.selectedItemId), l = fn();
9438
- return u.useEffect(() => {
9443
+ return f.useEffect(() => {
9439
9444
  e.value != null && a.setState("search", e.value);
9440
- }, [e.value]), u.createElement(q.input, { ref: t, ...r, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": l.listId, "aria-labelledby": l.labelId, "aria-activedescendant": i, id: l.inputId, type: "text", value: o ? e.value : s, onChange: (d) => {
9445
+ }, [e.value]), f.createElement(q.input, { ref: t, ...r, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": l.listId, "aria-labelledby": l.labelId, "aria-activedescendant": i, id: l.inputId, type: "text", value: o ? e.value : s, onChange: (d) => {
9441
9446
  o || a.setState("search", d.target.value), n == null || n(d.target.value);
9442
9447
  } });
9443
- }), ob = u.forwardRef((e, t) => {
9444
- let { children: n, label: r = "Suggestions", ...o } = e, a = u.useRef(null), s = u.useRef(null), i = st((d) => d.selectedItemId), l = fn();
9445
- return u.useEffect(() => {
9448
+ }), ob = f.forwardRef((e, t) => {
9449
+ let { children: n, label: r = "Suggestions", ...o } = e, a = f.useRef(null), s = f.useRef(null), i = st((d) => d.selectedItemId), l = fn();
9450
+ return f.useEffect(() => {
9446
9451
  if (s.current && a.current) {
9447
- let d = s.current, f = a.current, m, p = new ResizeObserver(() => {
9452
+ let d = s.current, u = a.current, m, p = new ResizeObserver(() => {
9448
9453
  m = requestAnimationFrame(() => {
9449
9454
  let g = d.offsetHeight;
9450
- f.style.setProperty("--cmdk-list-height", g.toFixed(1) + "px");
9455
+ u.style.setProperty("--cmdk-list-height", g.toFixed(1) + "px");
9451
9456
  });
9452
9457
  });
9453
9458
  return p.observe(d), () => {
9454
9459
  cancelAnimationFrame(m), p.unobserve(d);
9455
9460
  };
9456
9461
  }
9457
- }, []), u.createElement(q.div, { ref: gt(a, t), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": i, "aria-label": r, id: l.listId }, ir(e, (d) => u.createElement("div", { ref: gt(s, l.listInnerRef), "cmdk-list-sizer": "" }, d)));
9458
- }), ab = u.forwardRef((e, t) => {
9462
+ }, []), f.createElement(q.div, { ref: gt(a, t), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": i, "aria-label": r, id: l.listId }, ir(e, (d) => f.createElement("div", { ref: gt(s, l.listInnerRef), "cmdk-list-sizer": "" }, d)));
9463
+ }), ab = f.forwardRef((e, t) => {
9459
9464
  let { open: n, onOpenChange: r, overlayClassName: o, contentClassName: a, container: s, ...i } = e;
9460
- return u.createElement(Ci, { open: n, onOpenChange: r }, u.createElement(Ei, { container: s }, u.createElement(Ni, { "cmdk-overlay": "", className: o }), u.createElement(_i, { "aria-label": e.label, "cmdk-dialog": "", className: a }, u.createElement(Jl, { ref: t, ...i }))));
9461
- }), sb = u.forwardRef((e, t) => st((n) => n.filtered.count === 0) ? u.createElement(q.div, { ref: t, ...e, "cmdk-empty": "", role: "presentation" }) : null), ib = u.forwardRef((e, t) => {
9465
+ return f.createElement(Ci, { open: n, onOpenChange: r }, f.createElement(Ei, { container: s }, f.createElement(Ni, { "cmdk-overlay": "", className: o }), f.createElement(_i, { "aria-label": e.label, "cmdk-dialog": "", className: a }, f.createElement(Jl, { ref: t, ...i }))));
9466
+ }), sb = f.forwardRef((e, t) => st((n) => n.filtered.count === 0) ? f.createElement(q.div, { ref: t, ...e, "cmdk-empty": "", role: "presentation" }) : null), ib = f.forwardRef((e, t) => {
9462
9467
  let { progress: n, children: r, label: o = "Loading...", ...a } = e;
9463
- return u.createElement(q.div, { ref: t, ...a, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, ir(e, (s) => u.createElement("div", { "aria-hidden": !0 }, s)));
9468
+ return f.createElement(q.div, { ref: t, ...a, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, ir(e, (s) => f.createElement("div", { "aria-hidden": !0 }, s)));
9464
9469
  }), mn = Object.assign(Jl, { List: ob, Item: eb, Input: rb, Group: tb, Separator: nb, Dialog: ab, Empty: sb, Loading: ib });
9465
9470
  function lb(e, t) {
9466
9471
  let n = e.nextElementSibling;
@@ -9477,36 +9482,36 @@ function cb(e, t) {
9477
9482
  }
9478
9483
  }
9479
9484
  function ec(e) {
9480
- let t = u.useRef(e);
9485
+ let t = f.useRef(e);
9481
9486
  return kt(() => {
9482
9487
  t.current = e;
9483
9488
  }), t;
9484
9489
  }
9485
- var kt = typeof window > "u" ? u.useEffect : u.useLayoutEffect;
9490
+ var kt = typeof window > "u" ? f.useEffect : f.useLayoutEffect;
9486
9491
  function Tt(e) {
9487
- let t = u.useRef();
9492
+ let t = f.useRef();
9488
9493
  return t.current === void 0 && (t.current = e()), t;
9489
9494
  }
9490
9495
  function st(e) {
9491
9496
  let t = Lo(), n = () => e(t.snapshot());
9492
- return u.useSyncExternalStore(t.subscribe, n, n);
9497
+ return f.useSyncExternalStore(t.subscribe, n, n);
9493
9498
  }
9494
9499
  function tc(e, t, n, r = []) {
9495
- let o = u.useRef(), a = fn();
9500
+ let o = f.useRef(), a = fn();
9496
9501
  return kt(() => {
9497
9502
  var s;
9498
9503
  let i = (() => {
9499
9504
  var d;
9500
- for (let f of n) {
9501
- if (typeof f == "string") return f.trim();
9502
- if (typeof f == "object" && "current" in f) return f.current ? (d = f.current.textContent) == null ? void 0 : d.trim() : o.current;
9505
+ for (let u of n) {
9506
+ if (typeof u == "string") return u.trim();
9507
+ if (typeof u == "object" && "current" in u) return u.current ? (d = u.current.textContent) == null ? void 0 : d.trim() : o.current;
9503
9508
  }
9504
9509
  })(), l = r.map((d) => d.trim());
9505
9510
  a.value(e, i, l), (s = t.current) == null || s.setAttribute(Ot, i), o.current = i;
9506
9511
  }), o;
9507
9512
  }
9508
9513
  var db = () => {
9509
- let [e, t] = u.useState(), n = Tt(() => /* @__PURE__ */ new Map());
9514
+ let [e, t] = f.useState(), n = Tt(() => /* @__PURE__ */ new Map());
9510
9515
  return kt(() => {
9511
9516
  n.current.forEach((r) => r()), n.current = /* @__PURE__ */ new Map();
9512
9517
  }, [e]), (r, o) => {
@@ -9518,7 +9523,7 @@ function ub(e) {
9518
9523
  return typeof t == "function" ? t(e.props) : "render" in t ? t.render(e.props) : e;
9519
9524
  }
9520
9525
  function ir({ asChild: e, children: t }, n) {
9521
- return e && u.isValidElement(t) ? u.cloneElement(ub(t), { ref: t.ref }, n(t.props.children)) : n(t);
9526
+ return e && f.isValidElement(t) ? f.cloneElement(ub(t), { ref: t.ref }, n(t.props.children)) : n(t);
9522
9527
  }
9523
9528
  var fb = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
9524
9529
  function mb({
@@ -9622,7 +9627,7 @@ const gb = ({
9622
9627
  value: a,
9623
9628
  onChange: s
9624
9629
  }) => {
9625
- const [i, l] = De(""), d = a ?? i, f = (m) => {
9630
+ const [i, l] = De(""), d = a ?? i, u = (m) => {
9626
9631
  l(m), s == null || s(m);
9627
9632
  };
9628
9633
  return /* @__PURE__ */ c.jsxs("div", { children: [
@@ -9630,7 +9635,7 @@ const gb = ({
9630
9635
  Dl,
9631
9636
  {
9632
9637
  value: d,
9633
- onValueChange: f,
9638
+ onValueChange: u,
9634
9639
  disabled: n,
9635
9640
  children: [
9636
9641
  /* @__PURE__ */ c.jsx(
@@ -9681,9 +9686,9 @@ const gb = ({
9681
9686
  value: a,
9682
9687
  onChange: s
9683
9688
  }) => {
9684
- const [i, l] = De(!1), [d, f] = De([]), m = a ?? d, p = Rt(() => lo(e) ? e.flatMap((b) => b.options) : e, [e]), g = (b) => {
9689
+ const [i, l] = De(!1), [d, u] = De([]), m = a ?? d, p = Rt(() => lo(e) ? e.flatMap((b) => b.options) : e, [e]), g = (b) => {
9685
9690
  const h = m.includes(b) ? m.filter((v) => v !== b) : [...m, b];
9686
- f(h), s == null || s(h);
9691
+ u(h), s == null || s(h);
9687
9692
  };
9688
9693
  return /* @__PURE__ */ c.jsxs("div", { className: "w-94", children: [
9689
9694
  /* @__PURE__ */ c.jsxs(Gl, { open: i, onOpenChange: l, children: [
@@ -9851,8 +9856,8 @@ function xb() {
9851
9856
  function d(m, p) {
9852
9857
  return p();
9853
9858
  }
9854
- var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : i;
9855
- return Rr.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, Rr;
9859
+ var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : i;
9860
+ return Rr.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : u, Rr;
9856
9861
  }
9857
9862
  var Pr = {};
9858
9863
  /**
@@ -9871,7 +9876,7 @@ function yb() {
9871
9876
  return g === b && (g !== 0 || 1 / g === 1 / b) || g !== g && b !== b;
9872
9877
  }
9873
9878
  function t(g, b) {
9874
- f || o.startTransition === void 0 || (f = !0, console.error(
9879
+ u || o.startTransition === void 0 || (u = !0, console.error(
9875
9880
  "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
9876
9881
  ));
9877
9882
  var h = b();
@@ -9913,7 +9918,7 @@ function yb() {
9913
9918
  return b();
9914
9919
  }
9915
9920
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
9916
- var o = j, a = typeof Object.is == "function" ? Object.is : e, s = o.useState, i = o.useEffect, l = o.useLayoutEffect, d = o.useDebugValue, f = !1, m = !1, p = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
9921
+ var o = j, a = typeof Object.is == "function" ? Object.is : e, s = o.useState, i = o.useEffect, l = o.useLayoutEffect, d = o.useDebugValue, u = !1, m = !1, p = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
9917
9922
  Pr.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
9918
9923
  }()), Pr;
9919
9924
  }
@@ -9930,9 +9935,9 @@ function Sb() {
9930
9935
  return () => {
9931
9936
  };
9932
9937
  }
9933
- var $o = "Avatar", [Cb, zw] = Oe($o), [Eb, nc] = Cb($o), rc = u.forwardRef(
9938
+ var $o = "Avatar", [Cb, zw] = Oe($o), [Eb, nc] = Cb($o), rc = f.forwardRef(
9934
9939
  (e, t) => {
9935
- const { __scopeAvatar: n, ...r } = e, [o, a] = u.useState("idle");
9940
+ const { __scopeAvatar: n, ...r } = e, [o, a] = f.useState("idle");
9936
9941
  return /* @__PURE__ */ c.jsx(
9937
9942
  Eb,
9938
9943
  {
@@ -9945,7 +9950,7 @@ var $o = "Avatar", [Cb, zw] = Oe($o), [Eb, nc] = Cb($o), rc = u.forwardRef(
9945
9950
  }
9946
9951
  );
9947
9952
  rc.displayName = $o;
9948
- var oc = "AvatarImage", ac = u.forwardRef(
9953
+ var oc = "AvatarImage", ac = f.forwardRef(
9949
9954
  (e, t) => {
9950
9955
  const { __scopeAvatar: n, src: r, onLoadingStatusChange: o = () => {
9951
9956
  }, ...a } = e, s = nc(oc, n), i = Nb(r, a), l = Xe((d) => {
@@ -9957,10 +9962,10 @@ var oc = "AvatarImage", ac = u.forwardRef(
9957
9962
  }
9958
9963
  );
9959
9964
  ac.displayName = oc;
9960
- var sc = "AvatarFallback", ic = u.forwardRef(
9965
+ var sc = "AvatarFallback", ic = f.forwardRef(
9961
9966
  (e, t) => {
9962
- const { __scopeAvatar: n, delayMs: r, ...o } = e, a = nc(sc, n), [s, i] = u.useState(r === void 0);
9963
- return u.useEffect(() => {
9967
+ const { __scopeAvatar: n, delayMs: r, ...o } = e, a = nc(sc, n), [s, i] = f.useState(r === void 0);
9968
+ return f.useEffect(() => {
9964
9969
  if (r !== void 0) {
9965
9970
  const l = window.setTimeout(() => i(!0), r);
9966
9971
  return () => window.clearTimeout(l);
@@ -9973,7 +9978,7 @@ function Ia(e, t) {
9973
9978
  return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
9974
9979
  }
9975
9980
  function Nb(e, { referrerPolicy: t, crossOrigin: n }) {
9976
- const r = kb(), o = u.useRef(null), a = r ? (o.current || (o.current = new window.Image()), o.current) : null, [s, i] = u.useState(
9981
+ const r = kb(), o = f.useRef(null), a = r ? (o.current || (o.current = new window.Image()), o.current) : null, [s, i] = f.useState(
9977
9982
  () => Ia(a, e)
9978
9983
  );
9979
9984
  return pe(() => {
@@ -9983,9 +9988,9 @@ function Nb(e, { referrerPolicy: t, crossOrigin: n }) {
9983
9988
  i(m);
9984
9989
  };
9985
9990
  if (!a) return;
9986
- const d = l("loaded"), f = l("error");
9987
- return a.addEventListener("load", d), a.addEventListener("error", f), t && (a.referrerPolicy = t), typeof n == "string" && (a.crossOrigin = n), () => {
9988
- a.removeEventListener("load", d), a.removeEventListener("error", f);
9991
+ const d = l("loaded"), u = l("error");
9992
+ return a.addEventListener("load", d), a.addEventListener("error", u), t && (a.referrerPolicy = t), typeof n == "string" && (a.crossOrigin = n), () => {
9993
+ a.removeEventListener("load", d), a.removeEventListener("error", u);
9989
9994
  };
9990
9995
  }, [a, n, t]), s;
9991
9996
  }
@@ -10181,7 +10186,7 @@ function Hw({
10181
10186
  }
10182
10187
  );
10183
10188
  }
10184
- var Pb = "Separator", Wa = "horizontal", Db = ["horizontal", "vertical"], cc = u.forwardRef((e, t) => {
10189
+ var Pb = "Separator", Wa = "horizontal", Db = ["horizontal", "vertical"], cc = f.forwardRef((e, t) => {
10185
10190
  const { decorative: n, orientation: r = Wa, ...o } = e, a = jb(r) ? r : Wa, i = n ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
10186
10191
  return /* @__PURE__ */ c.jsx(
10187
10192
  q.div,
@@ -10308,7 +10313,7 @@ function Gw({
10308
10313
  (a) => a.notVisited === !0
10309
10314
  ), o = e.map((a, s) => r !== -1 && s >= r ? { ...a, notVisited: !0 } : a);
10310
10315
  return /* @__PURE__ */ c.jsx("div", { className: E(Wb(), n), "data-testid": "timeline", children: /* @__PURE__ */ c.jsx("div", { className: "flex flex-col", children: o.map((a, s) => {
10311
- const i = s === o.length - 1, l = !!(a.description || a.content), d = $b(i, l), f = a.notVisited || !1, m = o[s + 1], p = (m == null ? void 0 : m.notVisited) || !1, g = t === "icon" && p;
10316
+ const i = s === o.length - 1, l = !!(a.description || a.content), d = $b(i, l), u = a.notVisited || !1, m = o[s + 1], p = (m == null ? void 0 : m.notVisited) || !1, g = t === "icon" && p;
10312
10317
  return /* @__PURE__ */ c.jsxs(
10313
10318
  "div",
10314
10319
  {
@@ -10321,7 +10326,7 @@ function Gw({
10321
10326
  {
10322
10327
  "data-testid": "timeline-dot",
10323
10328
  className: E(
10324
- Fb({ variant: t, visited: !f })
10329
+ Fb({ variant: t, visited: !u })
10325
10330
  ),
10326
10331
  children: t === "icon" && a.icon && /* @__PURE__ */ c.jsx("div", { className: "flex items-center justify-center w-full h-full", children: a.icon })
10327
10332
  }
@@ -10331,7 +10336,7 @@ function Gw({
10331
10336
  {
10332
10337
  className: E(
10333
10338
  "text-neutral-black-1",
10334
- f && "text-neutral-black-4"
10339
+ u && "text-neutral-black-4"
10335
10340
  ),
10336
10341
  children: a.title
10337
10342
  }
@@ -10355,7 +10360,7 @@ function Gw({
10355
10360
  {
10356
10361
  className: E(
10357
10362
  "text-neutral-black-1 text-sm",
10358
- f && "text-neutral-black-4"
10363
+ u && "text-neutral-black-4"
10359
10364
  ),
10360
10365
  children: a.description
10361
10366
  }
@@ -10404,7 +10409,7 @@ const Uw = ({
10404
10409
  children: s()
10405
10410
  }
10406
10411
  );
10407
- }, Bb = (e) => e === void 0 || isNaN(e) ? 0 : Math.min(100, Math.max(0, e)), zb = u.forwardRef(
10412
+ }, Bb = (e) => e === void 0 || isNaN(e) ? 0 : Math.min(100, Math.max(0, e)), zb = f.forwardRef(
10408
10413
  ({
10409
10414
  variant: e = "linear",
10410
10415
  value: t = 0,
@@ -10414,7 +10419,7 @@ const Uw = ({
10414
10419
  }, a) => {
10415
10420
  const s = Bb(t);
10416
10421
  if (e === "circular") {
10417
- const { size: i = 80, thickness: l = 8 } = o, d = (i - l) / 2, f = 2 * Math.PI * d, m = f - s / 100 * f;
10422
+ const { size: i = 80, thickness: l = 8 } = o, d = (i - l) / 2, u = 2 * Math.PI * d, m = u - s / 100 * u;
10418
10423
  return /* @__PURE__ */ c.jsx(
10419
10424
  "div",
10420
10425
  {
@@ -10446,7 +10451,7 @@ const Uw = ({
10446
10451
  stroke: n,
10447
10452
  strokeWidth: l,
10448
10453
  fill: "transparent",
10449
- strokeDasharray: f,
10454
+ strokeDasharray: u,
10450
10455
  strokeDashoffset: m,
10451
10456
  className: "transition-all duration-700"
10452
10457
  }
@@ -10667,7 +10672,7 @@ function o0({
10667
10672
  }
10668
10673
  var lr = "Tabs", [Hb, a0] = Oe(lr, [
10669
10674
  zn
10670
- ]), dc = zn(), [Gb, Bo] = Hb(lr), uc = u.forwardRef(
10675
+ ]), dc = zn(), [Gb, Bo] = Hb(lr), uc = f.forwardRef(
10671
10676
  (e, t) => {
10672
10677
  const {
10673
10678
  __scopeTabs: n,
@@ -10678,7 +10683,7 @@ var lr = "Tabs", [Hb, a0] = Oe(lr, [
10678
10683
  dir: i,
10679
10684
  activationMode: l = "automatic",
10680
10685
  ...d
10681
- } = e, f = Bn(i), [m, p] = Ve({
10686
+ } = e, u = Bn(i), [m, p] = Ve({
10682
10687
  prop: r,
10683
10688
  onChange: o,
10684
10689
  defaultProp: a ?? "",
@@ -10692,12 +10697,12 @@ var lr = "Tabs", [Hb, a0] = Oe(lr, [
10692
10697
  value: m,
10693
10698
  onValueChange: p,
10694
10699
  orientation: s,
10695
- dir: f,
10700
+ dir: u,
10696
10701
  activationMode: l,
10697
10702
  children: /* @__PURE__ */ c.jsx(
10698
10703
  q.div,
10699
10704
  {
10700
- dir: f,
10705
+ dir: u,
10701
10706
  "data-orientation": s,
10702
10707
  ...d,
10703
10708
  ref: t
@@ -10708,7 +10713,7 @@ var lr = "Tabs", [Hb, a0] = Oe(lr, [
10708
10713
  }
10709
10714
  );
10710
10715
  uc.displayName = lr;
10711
- var fc = "TabsList", mc = u.forwardRef(
10716
+ var fc = "TabsList", mc = f.forwardRef(
10712
10717
  (e, t) => {
10713
10718
  const { __scopeTabs: n, loop: r = !0, ...o } = e, a = Bo(fc, n), s = dc(n);
10714
10719
  return /* @__PURE__ */ c.jsx(
@@ -10733,24 +10738,24 @@ var fc = "TabsList", mc = u.forwardRef(
10733
10738
  }
10734
10739
  );
10735
10740
  mc.displayName = fc;
10736
- var hc = "TabsTrigger", pc = u.forwardRef(
10741
+ var hc = "TabsTrigger", pc = f.forwardRef(
10737
10742
  (e, t) => {
10738
- const { __scopeTabs: n, value: r, disabled: o = !1, ...a } = e, s = Bo(hc, n), i = dc(n), l = vc(s.baseId, r), d = xc(s.baseId, r), f = r === s.value;
10743
+ const { __scopeTabs: n, value: r, disabled: o = !1, ...a } = e, s = Bo(hc, n), i = dc(n), l = vc(s.baseId, r), d = xc(s.baseId, r), u = r === s.value;
10739
10744
  return /* @__PURE__ */ c.jsx(
10740
10745
  Cs,
10741
10746
  {
10742
10747
  asChild: !0,
10743
10748
  ...i,
10744
10749
  focusable: !o,
10745
- active: f,
10750
+ active: u,
10746
10751
  children: /* @__PURE__ */ c.jsx(
10747
10752
  q.button,
10748
10753
  {
10749
10754
  type: "button",
10750
10755
  role: "tab",
10751
- "aria-selected": f,
10756
+ "aria-selected": u,
10752
10757
  "aria-controls": d,
10753
- "data-state": f ? "active" : "inactive",
10758
+ "data-state": u ? "active" : "inactive",
10754
10759
  "data-disabled": o ? "" : void 0,
10755
10760
  disabled: o,
10756
10761
  id: l,
@@ -10764,7 +10769,7 @@ var hc = "TabsTrigger", pc = u.forwardRef(
10764
10769
  }),
10765
10770
  onFocus: K(e.onFocus, () => {
10766
10771
  const m = s.activationMode !== "manual";
10767
- !f && !o && m && s.onValueChange(r);
10772
+ !u && !o && m && s.onValueChange(r);
10768
10773
  })
10769
10774
  }
10770
10775
  )
@@ -10773,16 +10778,16 @@ var hc = "TabsTrigger", pc = u.forwardRef(
10773
10778
  }
10774
10779
  );
10775
10780
  pc.displayName = hc;
10776
- var gc = "TabsContent", bc = u.forwardRef(
10781
+ var gc = "TabsContent", bc = f.forwardRef(
10777
10782
  (e, t) => {
10778
- const { __scopeTabs: n, value: r, forceMount: o, children: a, ...s } = e, i = Bo(gc, n), l = vc(i.baseId, r), d = xc(i.baseId, r), f = r === i.value, m = u.useRef(f);
10779
- return u.useEffect(() => {
10783
+ const { __scopeTabs: n, value: r, forceMount: o, children: a, ...s } = e, i = Bo(gc, n), l = vc(i.baseId, r), d = xc(i.baseId, r), u = r === i.value, m = f.useRef(u);
10784
+ return f.useEffect(() => {
10780
10785
  const p = requestAnimationFrame(() => m.current = !1);
10781
10786
  return () => cancelAnimationFrame(p);
10782
- }, []), /* @__PURE__ */ c.jsx(Ie, { present: o || f, children: ({ present: p }) => /* @__PURE__ */ c.jsx(
10787
+ }, []), /* @__PURE__ */ c.jsx(Ie, { present: o || u, children: ({ present: p }) => /* @__PURE__ */ c.jsx(
10783
10788
  q.div,
10784
10789
  {
10785
- "data-state": f ? "active" : "inactive",
10790
+ "data-state": u ? "active" : "inactive",
10786
10791
  "data-orientation": i.orientation,
10787
10792
  role: "tabpanel",
10788
10793
  "aria-labelledby": l,
@@ -10878,9 +10883,9 @@ function c0({
10878
10883
  }
10879
10884
  );
10880
10885
  }
10881
- const tv = "sidebar_state", nv = 60 * 60 * 24 * 7, rv = "20rem", ov = "4.5rem", av = "b", yc = u.createContext(null);
10886
+ const tv = "sidebar_state", nv = 60 * 60 * 24 * 7, rv = "20rem", ov = "4.5rem", av = "b", yc = f.createContext(null);
10882
10887
  function cr() {
10883
- const e = u.useContext(yc);
10888
+ const e = f.useContext(yc);
10884
10889
  if (!e)
10885
10890
  throw new Error("useSidebar must be used within a SidebarProvider.");
10886
10891
  return e;
@@ -10894,20 +10899,20 @@ const d0 = ({
10894
10899
  children: a,
10895
10900
  ...s
10896
10901
  }) => {
10897
- const [l, d] = u.useState(!1), [f, m] = u.useState(e), p = t ?? f, g = u.useCallback(
10902
+ const [l, d] = f.useState(!1), [u, m] = f.useState(e), p = t ?? u, g = f.useCallback(
10898
10903
  (x) => {
10899
10904
  const y = typeof x == "function" ? x(p) : x;
10900
10905
  n ? n(y) : m(y), document.cookie = `${tv}=${y}; path=/; max-age=${nv}`;
10901
10906
  },
10902
10907
  [n, p]
10903
- ), b = u.useCallback(() => g((x) => !x), [!1, g, d]);
10904
- u.useEffect(() => {
10908
+ ), b = f.useCallback(() => g((x) => !x), [!1, g, d]);
10909
+ f.useEffect(() => {
10905
10910
  const x = (y) => {
10906
10911
  y.key === av && (y.metaKey || y.ctrlKey) && (y.preventDefault(), b());
10907
10912
  };
10908
10913
  return window.addEventListener("keydown", x), () => window.removeEventListener("keydown", x);
10909
10914
  }, [b]);
10910
- const h = p ? "expanded" : "collapsed", v = u.useMemo(
10915
+ const h = p ? "expanded" : "collapsed", v = f.useMemo(
10911
10916
  () => ({
10912
10917
  state: h,
10913
10918
  open: p,
@@ -11228,7 +11233,7 @@ const d0 = ({
11228
11233
  className: a,
11229
11234
  ...s
11230
11235
  }) => {
11231
- const i = e ? Je : "button", { isMobile: l, state: d } = cr(), f = /* @__PURE__ */ c.jsx(
11236
+ const i = e ? Je : "button", { isMobile: l, state: d } = cr(), u = /* @__PURE__ */ c.jsx(
11232
11237
  i,
11233
11238
  {
11234
11239
  "data-slot": "sidebar-menu-button",
@@ -11242,7 +11247,7 @@ const d0 = ({
11242
11247
  return o ? (typeof o == "string" && (o = {
11243
11248
  children: o
11244
11249
  }), /* @__PURE__ */ c.jsxs(Do, { children: [
11245
- /* @__PURE__ */ c.jsx(jo, { asChild: !0, children: f }),
11250
+ /* @__PURE__ */ c.jsx(jo, { asChild: !0, children: u }),
11246
11251
  /* @__PURE__ */ c.jsx(
11247
11252
  Io,
11248
11253
  {
@@ -11252,7 +11257,7 @@ const d0 = ({
11252
11257
  ...o
11253
11258
  }
11254
11259
  )
11255
- ] })) : f;
11260
+ ] })) : u;
11256
11261
  }, N0 = ({
11257
11262
  className: e,
11258
11263
  asChild: t = !1,
@@ -11303,7 +11308,7 @@ const d0 = ({
11303
11308
  showIcon: t = !1,
11304
11309
  ...n
11305
11310
  }) => {
11306
- const r = u.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
11311
+ const r = f.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
11307
11312
  return /* @__PURE__ */ c.jsxs(
11308
11313
  "div",
11309
11314
  {
@@ -11541,8 +11546,8 @@ function wc(e) {
11541
11546
  l && Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + l);
11542
11547
  const d = /* @__PURE__ */ new Date(+e);
11543
11548
  d.setUTCSeconds(0);
11544
- const f = o > 0 ? d.getSeconds() : (d.getSeconds() - 60) % 60, m = Math.round(-(pt(e.timeZone, e) * 60)) % 60;
11545
- (m || f) && (e.internal.setUTCSeconds(e.internal.getUTCSeconds() + m), Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + m + f));
11549
+ const u = o > 0 ? d.getSeconds() : (d.getSeconds() - 60) % 60, m = Math.round(-(pt(e.timeZone, e) * 60)) % 60;
11550
+ (m || u) && (e.internal.setUTCSeconds(e.internal.getUTCSeconds() + m), Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + m + u));
11546
11551
  const p = pt(e.timeZone, e), g = p > 0 ? Math.floor(p) : Math.ceil(p), h = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - g, v = g !== n, x = h - l;
11547
11552
  if (v && x) {
11548
11553
  Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + x);
@@ -11636,8 +11641,8 @@ function hn() {
11636
11641
  return pv;
11637
11642
  }
11638
11643
  function Ft(e, t) {
11639
- var i, l, d, f;
11640
- const n = hn(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.weekStartsOn) ?? 0, o = de(e, t == null ? void 0 : t.in), a = o.getDay(), s = (a < r ? 7 : 0) + a - r;
11644
+ var i, l, d, u;
11645
+ const n = hn(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((u = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : u.weekStartsOn) ?? 0, o = de(e, t == null ? void 0 : t.in), a = o.getDay(), s = (a < r ? 7 : 0) + a - r;
11641
11646
  return o.setDate(o.getDate() - s), o.setHours(0, 0, 0, 0), o;
11642
11647
  }
11643
11648
  function rn(e, t) {
@@ -11764,8 +11769,8 @@ function Mc(e, t) {
11764
11769
  return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
11765
11770
  }
11766
11771
  function Oc(e, t) {
11767
- var i, l, d, f;
11768
- const n = hn(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.weekStartsOn) ?? 0, o = de(e, t == null ? void 0 : t.in), a = o.getDay(), s = (a < r ? -7 : 0) + 6 - (a - r);
11772
+ var i, l, d, u;
11773
+ const n = hn(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((u = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : u.weekStartsOn) ?? 0, o = de(e, t == null ? void 0 : t.in), a = o.getDay(), s = (a < r ? -7 : 0) + 6 - (a - r);
11769
11774
  return o.setDate(o.getDate() + s), o.setHours(23, 59, 59, 999), o;
11770
11775
  }
11771
11776
  function Ov(e, t) {
@@ -12060,8 +12065,8 @@ function Zt(e) {
12060
12065
  // [TODO] -- I challenge you to fix the type
12061
12066
  n.valueCallback(d)
12062
12067
  ) : d;
12063
- const f = t.slice(s.length);
12064
- return { value: d, rest: f };
12068
+ const u = t.slice(s.length);
12069
+ return { value: d, rest: u };
12065
12070
  };
12066
12071
  }
12067
12072
  function Gv(e, t) {
@@ -12211,8 +12216,8 @@ function Tc(e, t) {
12211
12216
  return Math.round(r / kc) + 1;
12212
12217
  }
12213
12218
  function Rc(e, t) {
12214
- var f, m, p, g;
12215
- const n = de(e, t == null ? void 0 : t.in), r = n.getFullYear(), o = hn(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((m = (f = t == null ? void 0 : t.locale) == null ? void 0 : f.options) == null ? void 0 : m.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((g = (p = o.locale) == null ? void 0 : p.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, s = ge((t == null ? void 0 : t.in) || e, 0);
12219
+ var u, m, p, g;
12220
+ const n = de(e, t == null ? void 0 : t.in), r = n.getFullYear(), o = hn(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((m = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : m.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((g = (p = o.locale) == null ? void 0 : p.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, s = ge((t == null ? void 0 : t.in) || e, 0);
12216
12221
  s.setFullYear(r + 1, 0, a), s.setHours(0, 0, 0, 0);
12217
12222
  const i = Ft(s, t), l = ge((t == null ? void 0 : t.in) || e, 0);
12218
12223
  l.setFullYear(r, 0, a), l.setHours(0, 0, 0, 0);
@@ -12220,8 +12225,8 @@ function Rc(e, t) {
12220
12225
  return +n >= +i ? r + 1 : +n >= +d ? r : r - 1;
12221
12226
  }
12222
12227
  function cx(e, t) {
12223
- var i, l, d, f;
12224
- const n = hn(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : l.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, o = Rc(e, t), a = ge((t == null ? void 0 : t.in) || e, 0);
12228
+ var i, l, d, u;
12229
+ const n = hn(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : l.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((u = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, o = Rc(e, t), a = ge((t == null ? void 0 : t.in) || e, 0);
12225
12230
  return a.setFullYear(o, 0, r), a.setHours(0, 0, 0, 0), Ft(a, t);
12226
12231
  }
12227
12232
  function Pc(e, t) {
@@ -12856,8 +12861,8 @@ function vx(e, t, n) {
12856
12861
  }
12857
12862
  const xx = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, yx = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, wx = /^'([^]*?)'?$/, kx = /''/g, Sx = /[a-zA-Z]/;
12858
12863
  function Cx(e, t, n) {
12859
- var f, m, p, g, b, h, v, x;
12860
- const r = hn(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? zo, a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((m = (f = n == null ? void 0 : n.locale) == null ? void 0 : f.options) == null ? void 0 : m.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((g = (p = r.locale) == null ? void 0 : p.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((h = (b = n == null ? void 0 : n.locale) == null ? void 0 : b.options) == null ? void 0 : h.weekStartsOn) ?? r.weekStartsOn ?? ((x = (v = r.locale) == null ? void 0 : v.options) == null ? void 0 : x.weekStartsOn) ?? 0, i = de(e, n == null ? void 0 : n.in);
12864
+ var u, m, p, g, b, h, v, x;
12865
+ const r = hn(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? zo, a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((m = (u = n == null ? void 0 : n.locale) == null ? void 0 : u.options) == null ? void 0 : m.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((g = (p = r.locale) == null ? void 0 : p.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((h = (b = n == null ? void 0 : n.locale) == null ? void 0 : b.options) == null ? void 0 : h.weekStartsOn) ?? r.weekStartsOn ?? ((x = (v = r.locale) == null ? void 0 : v.options) == null ? void 0 : x.weekStartsOn) ?? 0, i = de(e, n == null ? void 0 : n.in);
12861
12866
  if (!kv(i))
12862
12867
  throw new RangeError("Invalid time value");
12863
12868
  let l = t.match(yx).map((y) => {
@@ -13233,7 +13238,7 @@ function Hx(e) {
13233
13238
  return j.createElement(
13234
13239
  "span",
13235
13240
  { "data-disabled": a.disabled, className: o[U.DropdownRoot] },
13236
- j.createElement(r.Select, { className: s, ...a }, t == null ? void 0 : t.map(({ value: l, label: d, disabled: f }) => j.createElement(r.Option, { key: l, value: l, disabled: f }, d))),
13241
+ j.createElement(r.Select, { className: s, ...a }, t == null ? void 0 : t.map(({ value: l, label: d, disabled: u }) => j.createElement(r.Option, { key: l, value: l, disabled: u }, d))),
13237
13242
  j.createElement(
13238
13243
  "span",
13239
13244
  { className: o[U.CaptionLabel], "aria-hidden": !0 },
@@ -13274,7 +13279,7 @@ function Qx(e) {
13274
13279
  return j.createElement(t.Dropdown, { ...e });
13275
13280
  }
13276
13281
  function Jx(e) {
13277
- const { onPreviousClick: t, onNextClick: n, previousMonth: r, nextMonth: o, ...a } = e, { components: s, classNames: i, labels: { labelPrevious: l, labelNext: d } } = pn(), f = Te((p) => {
13282
+ const { onPreviousClick: t, onNextClick: n, previousMonth: r, nextMonth: o, ...a } = e, { components: s, classNames: i, labels: { labelPrevious: l, labelNext: d } } = pn(), u = Te((p) => {
13278
13283
  o && (n == null || n(p));
13279
13284
  }, [o, n]), m = Te((p) => {
13280
13285
  r && (t == null || t(p));
@@ -13289,7 +13294,7 @@ function Jx(e) {
13289
13294
  ),
13290
13295
  j.createElement(
13291
13296
  s.NextMonthButton,
13292
- { type: "button", className: i[U.NextMonthButton], tabIndex: o ? void 0 : -1, "aria-disabled": o ? void 0 : !0, "aria-label": d(o), onClick: f },
13297
+ { type: "button", className: i[U.NextMonthButton], tabIndex: o ? void 0 : -1, "aria-disabled": o ? void 0 : !0, "aria-label": d(o), onClick: u },
13293
13298
  j.createElement(s.Chevron, { disabled: o ? void 0 : !0, orientation: "right", className: i[U.Chevron] })
13294
13299
  )
13295
13300
  );
@@ -13406,14 +13411,14 @@ function Ke(e, t, n = Ge) {
13406
13411
  if ($c(i))
13407
13412
  return Array.isArray(i.dayOfWeek) ? i.dayOfWeek.includes(e.getDay()) : i.dayOfWeek === e.getDay();
13408
13413
  if (Wc(i)) {
13409
- const l = a(i.before, e), d = a(i.after, e), f = l > 0, m = d < 0;
13410
- return s(i.before, i.after) ? m && f : f || m;
13414
+ const l = a(i.before, e), d = a(i.after, e), u = l > 0, m = d < 0;
13415
+ return s(i.before, i.after) ? m && u : u || m;
13411
13416
  }
13412
13417
  return Fc(i) ? a(e, i.after) > 0 : Lc(i) ? a(i.before, e) > 0 : typeof i == "function" ? i(e) : !1;
13413
13418
  });
13414
13419
  }
13415
13420
  function my(e, t, n, r, o) {
13416
- const { disabled: a, hidden: s, modifiers: i, showOutsideDays: l, broadcastCalendar: d, today: f } = t, { isSameDay: m, isSameMonth: p, startOfMonth: g, isBefore: b, endOfMonth: h, isAfter: v } = o, x = n && g(n), y = r && h(r), w = {
13421
+ const { disabled: a, hidden: s, modifiers: i, showOutsideDays: l, broadcastCalendar: d, today: u } = t, { isSameDay: m, isSameMonth: p, startOfMonth: g, isBefore: b, endOfMonth: h, isAfter: v } = o, x = n && g(n), y = r && h(r), w = {
13417
13422
  [me.focused]: [],
13418
13423
  [me.outside]: [],
13419
13424
  [me.disabled]: [],
@@ -13422,7 +13427,7 @@ function my(e, t, n, r, o) {
13422
13427
  }, S = {};
13423
13428
  for (const k of e) {
13424
13429
  const { date: _, displayMonth: C } = k, N = !!(C && !p(_, C)), W = !!(x && b(_, x)), V = !!(y && v(_, y)), D = !!(a && Ke(_, a, o)), B = !!(s && Ke(_, s, o)) || W || V || // Broadcast calendar will show outside days as default
13425
- !d && !l && N || d && l === !1 && N, G = m(_, f ?? o.today());
13430
+ !d && !l && N || d && l === !1 && N, G = m(_, u ?? o.today());
13426
13431
  N && w.outside.push(k), D && w.disabled.push(k), B && w.hidden.push(k), G && w.today.push(k), i && Object.keys(i).forEach((Y) => {
13427
13432
  const X = i == null ? void 0 : i[Y];
13428
13433
  X && Ke(_, X, o) && (S[Y] ? S[Y].push(k) : S[Y] = [k]);
@@ -13553,9 +13558,9 @@ function My(e, t, n) {
13553
13558
  function Oy(e, t, n, r, o = !1) {
13554
13559
  if (!e || !t)
13555
13560
  return;
13556
- const { startOfYear: a, endOfYear: s, addYears: i, getYear: l, isBefore: d, isSameYear: f } = r, m = a(e), p = s(t), g = [];
13561
+ const { startOfYear: a, endOfYear: s, addYears: i, getYear: l, isBefore: d, isSameYear: u } = r, m = a(e), p = s(t), g = [];
13557
13562
  let b = m;
13558
- for (; d(b, p) || f(b, p); )
13563
+ for (; d(b, p) || u(b, p); )
13559
13564
  g.push(b), b = i(b, 1);
13560
13565
  return o && g.reverse(), g.map((h) => {
13561
13566
  const v = n.formatYearDropdown(h, r);
@@ -13629,7 +13634,7 @@ function Hy(e, t, { classNames: n, months: r, focused: o, dateLib: a }) {
13629
13634
  !(e.current instanceof HTMLElement) || // validation required for the animation to work as expected
13630
13635
  r.length === 0 || d.length === 0 || r.length !== d.length)
13631
13636
  return;
13632
- const f = a.isSameMonth(r[0].date, d[0].date), m = a.isAfter(r[0].date, d[0].date), p = m ? n[Ee.caption_after_enter] : n[Ee.caption_before_enter], g = m ? n[Ee.weeks_after_enter] : n[Ee.weeks_before_enter], b = s.current, h = e.current.cloneNode(!0);
13637
+ const u = a.isSameMonth(r[0].date, d[0].date), m = a.isAfter(r[0].date, d[0].date), p = m ? n[Ee.caption_after_enter] : n[Ee.caption_before_enter], g = m ? n[Ee.weeks_after_enter] : n[Ee.weeks_before_enter], b = s.current, h = e.current.cloneNode(!0);
13633
13638
  if (h instanceof HTMLElement ? (Ar(h).forEach((w) => {
13634
13639
  if (!(w instanceof HTMLElement))
13635
13640
  return;
@@ -13639,7 +13644,7 @@ function Hy(e, t, { classNames: n, months: r, focused: o, dateLib: a }) {
13639
13644
  k && k.classList.remove(p);
13640
13645
  const _ = Wr(w);
13641
13646
  _ && _.classList.remove(g);
13642
- }), s.current = h) : s.current = null, l.current || f || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
13647
+ }), s.current = h) : s.current = null, l.current || u || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
13643
13648
  o)
13644
13649
  return;
13645
13650
  const v = b instanceof HTMLElement ? Ar(b) : [], x = Ar(e.current);
@@ -13670,7 +13675,7 @@ function Hy(e, t, { classNames: n, months: r, focused: o, dateLib: a }) {
13670
13675
  });
13671
13676
  }
13672
13677
  function Gy(e, t, n, r) {
13673
- const o = e[0], a = e[e.length - 1], { ISOWeek: s, fixedWeeks: i, broadcastCalendar: l } = n ?? {}, { addDays: d, differenceInCalendarDays: f, differenceInCalendarMonths: m, endOfBroadcastWeek: p, endOfISOWeek: g, endOfMonth: b, endOfWeek: h, isAfter: v, startOfBroadcastWeek: x, startOfISOWeek: y, startOfWeek: w } = r, S = l ? x(o, r) : s ? y(o) : w(o), k = l ? p(a) : s ? g(b(a)) : h(b(a)), _ = f(k, S), C = m(a, o) + 1, N = [];
13678
+ const o = e[0], a = e[e.length - 1], { ISOWeek: s, fixedWeeks: i, broadcastCalendar: l } = n ?? {}, { addDays: d, differenceInCalendarDays: u, differenceInCalendarMonths: m, endOfBroadcastWeek: p, endOfISOWeek: g, endOfMonth: b, endOfWeek: h, isAfter: v, startOfBroadcastWeek: x, startOfISOWeek: y, startOfWeek: w } = r, S = l ? x(o, r) : s ? y(o) : w(o), k = l ? p(a) : s ? g(b(a)) : h(b(a)), _ = u(k, S), C = m(a, o) + 1, N = [];
13674
13679
  for (let D = 0; D <= _; D++) {
13675
13680
  const B = d(S, D);
13676
13681
  if (t && v(B, t))
@@ -13707,15 +13712,15 @@ function qy(e, t, n, r) {
13707
13712
  function qa(e, t, n, r) {
13708
13713
  const { month: o, defaultMonth: a, today: s = r.today(), numberOfMonths: i = 1 } = e;
13709
13714
  let l = o || a || s;
13710
- const { differenceInCalendarMonths: d, addMonths: f, startOfMonth: m } = r;
13715
+ const { differenceInCalendarMonths: d, addMonths: u, startOfMonth: m } = r;
13711
13716
  if (n && d(n, l) < i - 1) {
13712
13717
  const p = -1 * (i - 1);
13713
- l = f(n, p);
13718
+ l = u(n, p);
13714
13719
  }
13715
13720
  return t && d(l, t) < 0 && (l = t), m(l);
13716
13721
  }
13717
13722
  function Ky(e, t, n, r) {
13718
- const { addDays: o, endOfBroadcastWeek: a, endOfISOWeek: s, endOfMonth: i, endOfWeek: l, getISOWeek: d, getWeek: f, startOfBroadcastWeek: m, startOfISOWeek: p, startOfWeek: g } = r, b = e.reduce((h, v) => {
13723
+ const { addDays: o, endOfBroadcastWeek: a, endOfISOWeek: s, endOfMonth: i, endOfWeek: l, getISOWeek: d, getWeek: u, startOfBroadcastWeek: m, startOfISOWeek: p, startOfWeek: g } = r, b = e.reduce((h, v) => {
13719
13724
  const x = n.broadcastCalendar ? m(v, r) : n.ISOWeek ? p(v) : g(v), y = n.broadcastCalendar ? a(v) : n.ISOWeek ? s(i(v)) : l(i(v)), w = t.filter((C) => C >= x && C <= y), S = n.broadcastCalendar ? 35 : 42;
13720
13725
  if (n.fixedWeeks && w.length < S) {
13721
13726
  const C = t.filter((N) => {
@@ -13725,7 +13730,7 @@ function Ky(e, t, n, r) {
13725
13730
  w.push(...C);
13726
13731
  }
13727
13732
  const k = w.reduce((C, N) => {
13728
- const W = n.ISOWeek ? d(N) : f(N), V = C.find((B) => B.weekNumber === W), D = new Ac(N, v, r);
13733
+ const W = n.ISOWeek ? d(N) : u(N), V = C.find((B) => B.weekNumber === W), D = new Ac(N, v, r);
13729
13734
  return V ? V.days.push(D) : C.push(new Lx(W, [D])), C;
13730
13735
  }, []), _ = new Fx(v, k);
13731
13736
  return h.push(_), h;
@@ -13734,10 +13739,10 @@ function Ky(e, t, n, r) {
13734
13739
  }
13735
13740
  function Xy(e, t) {
13736
13741
  let { startMonth: n, endMonth: r } = e;
13737
- const { startOfYear: o, startOfDay: a, startOfMonth: s, endOfMonth: i, addYears: l, endOfYear: d, newDate: f, today: m } = t, { fromYear: p, toYear: g, fromMonth: b, toMonth: h } = e;
13738
- !n && b && (n = b), !n && p && (n = t.newDate(p, 0, 1)), !r && h && (r = h), !r && g && (r = f(g, 11, 31));
13742
+ const { startOfYear: o, startOfDay: a, startOfMonth: s, endOfMonth: i, addYears: l, endOfYear: d, newDate: u, today: m } = t, { fromYear: p, toYear: g, fromMonth: b, toMonth: h } = e;
13743
+ !n && b && (n = b), !n && p && (n = t.newDate(p, 0, 1)), !r && h && (r = h), !r && g && (r = u(g, 11, 31));
13739
13744
  const v = e.captionLayout === "dropdown" || e.captionLayout === "dropdown-years";
13740
- return n ? n = s(n) : p ? n = f(p, 0, 1) : !n && v && (n = o(l(e.today ?? m(), -100))), r ? r = i(r) : g ? r = f(g, 11, 31) : !r && v && (r = d(e.today ?? m())), [
13745
+ return n ? n = s(n) : p ? n = u(p, 0, 1) : !n && v && (n = o(l(e.today ?? m(), -100))), r ? r = i(r) : g ? r = u(g, 11, 31) : !r && v && (r = d(e.today ?? m())), [
13741
13746
  n && a(n),
13742
13747
  r && a(r)
13743
13748
  ];
@@ -13745,20 +13750,20 @@ function Xy(e, t) {
13745
13750
  function Zy(e, t, n, r) {
13746
13751
  if (n.disableNavigation)
13747
13752
  return;
13748
- const { pagedNavigation: o, numberOfMonths: a = 1 } = n, { startOfMonth: s, addMonths: i, differenceInCalendarMonths: l } = r, d = o ? a : 1, f = s(e);
13753
+ const { pagedNavigation: o, numberOfMonths: a = 1 } = n, { startOfMonth: s, addMonths: i, differenceInCalendarMonths: l } = r, d = o ? a : 1, u = s(e);
13749
13754
  if (!t)
13750
- return i(f, d);
13755
+ return i(u, d);
13751
13756
  if (!(l(t, e) < a))
13752
- return i(f, d);
13757
+ return i(u, d);
13753
13758
  }
13754
13759
  function Qy(e, t, n, r) {
13755
13760
  if (n.disableNavigation)
13756
13761
  return;
13757
- const { pagedNavigation: o, numberOfMonths: a } = n, { startOfMonth: s, addMonths: i, differenceInCalendarMonths: l } = r, d = o ? a ?? 1 : 1, f = s(e);
13762
+ const { pagedNavigation: o, numberOfMonths: a } = n, { startOfMonth: s, addMonths: i, differenceInCalendarMonths: l } = r, d = o ? a ?? 1 : 1, u = s(e);
13758
13763
  if (!t)
13759
- return i(f, -d);
13760
- if (!(l(f, t) <= 0))
13761
- return i(f, -d);
13764
+ return i(u, -d);
13765
+ if (!(l(u, t) <= 0))
13766
+ return i(u, -d);
13762
13767
  }
13763
13768
  function Jy(e) {
13764
13769
  const t = [];
@@ -13778,7 +13783,7 @@ function ew(e, t) {
13778
13783
  const _ = qa(e, n, r, t);
13779
13784
  l(_);
13780
13785
  }, [e.timeZone]);
13781
- const d = qy(i, r, e, t), f = Gy(d, e.endMonth ? a(e.endMonth) : void 0, e, t), m = Ky(d, f, e, t), p = Jy(m), g = Uy(m), b = Qy(i, n, e, t), h = Zy(i, r, e, t), { disableNavigation: v, onMonthChange: x } = e, y = (_) => p.some((C) => C.days.some((N) => N.isEqualTo(_))), w = (_) => {
13786
+ const d = qy(i, r, e, t), u = Gy(d, e.endMonth ? a(e.endMonth) : void 0, e, t), m = Ky(d, u, e, t), p = Jy(m), g = Uy(m), b = Qy(i, n, e, t), h = Zy(i, r, e, t), { disableNavigation: v, onMonthChange: x } = e, y = (_) => p.some((C) => C.days.some((N) => N.isEqualTo(_))), w = (_) => {
13782
13787
  if (v)
13783
13788
  return;
13784
13789
  let C = o(_);
@@ -13814,11 +13819,11 @@ function tw(e, t, n, r) {
13814
13819
  return o || (o = e.find((s) => Ka(t(s)))), o;
13815
13820
  }
13816
13821
  function nw(e, t, n, r, o, a, s) {
13817
- const { ISOWeek: i, broadcastCalendar: l } = a, { addDays: d, addMonths: f, addWeeks: m, addYears: p, endOfBroadcastWeek: g, endOfISOWeek: b, endOfWeek: h, max: v, min: x, startOfBroadcastWeek: y, startOfISOWeek: w, startOfWeek: S } = s;
13822
+ const { ISOWeek: i, broadcastCalendar: l } = a, { addDays: d, addMonths: u, addWeeks: m, addYears: p, endOfBroadcastWeek: g, endOfISOWeek: b, endOfWeek: h, max: v, min: x, startOfBroadcastWeek: y, startOfISOWeek: w, startOfWeek: S } = s;
13818
13823
  let _ = {
13819
13824
  day: d,
13820
13825
  week: m,
13821
- month: f,
13826
+ month: u,
13822
13827
  year: p,
13823
13828
  startOfWeek: (C) => l ? y(C, s) : i ? w(C) : S(C),
13824
13829
  endOfWeek: (C) => l ? g(C) : i ? b(C) : h(C)
@@ -13828,34 +13833,34 @@ function nw(e, t, n, r, o, a, s) {
13828
13833
  function Gc(e, t, n, r, o, a, s, i = 0) {
13829
13834
  if (i > 365)
13830
13835
  return;
13831
- const l = nw(e, t, n.date, r, o, a, s), d = !!(a.disabled && Ke(l, a.disabled, s)), f = !!(a.hidden && Ke(l, a.hidden, s)), m = l, p = new Ac(l, m, s);
13832
- return !d && !f ? p : Gc(e, t, p, r, o, a, s, i + 1);
13836
+ const l = nw(e, t, n.date, r, o, a, s), d = !!(a.disabled && Ke(l, a.disabled, s)), u = !!(a.hidden && Ke(l, a.hidden, s)), m = l, p = new Ac(l, m, s);
13837
+ return !d && !u ? p : Gc(e, t, p, r, o, a, s, i + 1);
13833
13838
  }
13834
13839
  function rw(e, t, n, r, o) {
13835
- const { autoFocus: a } = e, [s, i] = De(), l = tw(t.days, n, r || (() => !1), s), [d, f] = De(a ? l : void 0);
13840
+ const { autoFocus: a } = e, [s, i] = De(), l = tw(t.days, n, r || (() => !1), s), [d, u] = De(a ? l : void 0);
13836
13841
  return {
13837
13842
  isFocusTarget: (h) => !!(l != null && l.isEqualTo(h)),
13838
- setFocused: f,
13843
+ setFocused: u,
13839
13844
  focused: d,
13840
13845
  blur: () => {
13841
- i(d), f(void 0);
13846
+ i(d), u(void 0);
13842
13847
  },
13843
13848
  moveFocus: (h, v) => {
13844
13849
  if (!d)
13845
13850
  return;
13846
13851
  const x = Gc(h, v, d, t.navStart, t.navEnd, e, o);
13847
- x && (t.goToDay(x), f(x));
13852
+ x && (t.goToDay(x), u(x));
13848
13853
  }
13849
13854
  };
13850
13855
  }
13851
13856
  function ow(e, t) {
13852
- const { selected: n, required: r, onSelect: o } = e, [a, s] = dr(n, o ? n : void 0), i = o ? n : a, { isSameDay: l } = t, d = (g) => (i == null ? void 0 : i.some((b) => l(b, g))) ?? !1, { min: f, max: m } = e;
13857
+ const { selected: n, required: r, onSelect: o } = e, [a, s] = dr(n, o ? n : void 0), i = o ? n : a, { isSameDay: l } = t, d = (g) => (i == null ? void 0 : i.some((b) => l(b, g))) ?? !1, { min: u, max: m } = e;
13853
13858
  return {
13854
13859
  selected: i,
13855
13860
  select: (g, b, h) => {
13856
13861
  let v = [...i ?? []];
13857
13862
  if (d(g)) {
13858
- if ((i == null ? void 0 : i.length) === f || r && (i == null ? void 0 : i.length) === 1)
13863
+ if ((i == null ? void 0 : i.length) === u || r && (i == null ? void 0 : i.length) === 1)
13859
13864
  return;
13860
13865
  v = i == null ? void 0 : i.filter((x) => !l(x, g));
13861
13866
  } else
@@ -13866,12 +13871,12 @@ function ow(e, t) {
13866
13871
  };
13867
13872
  }
13868
13873
  function aw(e, t, n = 0, r = 0, o = !1, a = Ge) {
13869
- const { from: s, to: i } = t || {}, { isSameDay: l, isAfter: d, isBefore: f } = a;
13874
+ const { from: s, to: i } = t || {}, { isSameDay: l, isAfter: d, isBefore: u } = a;
13870
13875
  let m;
13871
13876
  if (!s && !i)
13872
13877
  m = { from: e, to: n > 0 ? void 0 : e };
13873
13878
  else if (s && !i)
13874
- l(s, e) ? n === 0 ? m = { from: s, to: e } : o ? m = { from: s, to: void 0 } : m = void 0 : f(e, s) ? m = { from: e, to: s } : m = { from: s, to: e };
13879
+ l(s, e) ? n === 0 ? m = { from: s, to: e } : o ? m = { from: s, to: void 0 } : m = void 0 : u(e, s) ? m = { from: e, to: s } : m = { from: s, to: e };
13875
13880
  else if (s && i)
13876
13881
  if (l(s, e) && l(i, e))
13877
13882
  o ? m = { from: s, to: i } : m = void 0;
@@ -13879,7 +13884,7 @@ function aw(e, t, n = 0, r = 0, o = !1, a = Ge) {
13879
13884
  m = { from: s, to: n > 0 ? void 0 : e };
13880
13885
  else if (l(i, e))
13881
13886
  m = { from: e, to: n > 0 ? void 0 : e };
13882
- else if (f(e, s))
13887
+ else if (u(e, s))
13883
13888
  m = { from: e, to: i };
13884
13889
  else if (d(e, s))
13885
13890
  m = { from: s, to: e };
@@ -13919,7 +13924,7 @@ function iw(e, t, n = Ge) {
13919
13924
  let i = e.from;
13920
13925
  const l = n.differenceInCalendarDays(e.to, e.from);
13921
13926
  for (let d = 0; d <= l; d++) {
13922
- if (s.some((f) => f(i)))
13927
+ if (s.some((u) => u(i)))
13923
13928
  return !0;
13924
13929
  i = n.addDays(i, 1);
13925
13930
  }
@@ -14002,7 +14007,7 @@ function uw(e) {
14002
14007
  t.formatters,
14003
14008
  t.labels,
14004
14009
  t.classNames
14005
- ]), { captionLayout: l, mode: d, navLayout: f, numberOfMonths: m = 1, onDayBlur: p, onDayClick: g, onDayFocus: b, onDayKeyDown: h, onDayMouseEnter: v, onDayMouseLeave: x, onNextClick: y, onPrevClick: w, showWeekNumber: S, styles: k } = t, { formatCaption: _, formatDay: C, formatMonthDropdown: N, formatWeekNumber: W, formatWeekNumberHeader: V, formatWeekdayName: D, formatYearDropdown: B } = r, G = ew(t, a), { days: Y, months: X, navStart: F, navEnd: Z, previousMonth: T, nextMonth: ee, goToMonth: O } = G, H = my(Y, t, F, Z, a), { isSelected: M, select: P, selected: I } = dw(t, a) ?? {}, { blur: A, focused: J, isFocusTarget: R, moveFocus: z, setFocused: Q } = rw(t, G, H, M ?? (() => !1), a), { labelDayButton: te, labelGridcell: ae, labelGrid: se, labelMonthDropdown: we, labelNav: ke, labelPrevious: dt, labelNext: ut, labelWeekday: ft, labelWeekNumber: ur, labelWeekNumberHeader: St, labelYearDropdown: Uc } = o, qc = Rt(() => My(a, t.ISOWeek), [a, t.ISOWeek]), Ho = d !== void 0 || g !== void 0, fr = Te(() => {
14010
+ ]), { captionLayout: l, mode: d, navLayout: u, numberOfMonths: m = 1, onDayBlur: p, onDayClick: g, onDayFocus: b, onDayKeyDown: h, onDayMouseEnter: v, onDayMouseLeave: x, onNextClick: y, onPrevClick: w, showWeekNumber: S, styles: k } = t, { formatCaption: _, formatDay: C, formatMonthDropdown: N, formatWeekNumber: W, formatWeekNumberHeader: V, formatWeekdayName: D, formatYearDropdown: B } = r, G = ew(t, a), { days: Y, months: X, navStart: F, navEnd: Z, previousMonth: T, nextMonth: ee, goToMonth: O } = G, H = my(Y, t, F, Z, a), { isSelected: M, select: P, selected: I } = dw(t, a) ?? {}, { blur: A, focused: J, isFocusTarget: R, moveFocus: z, setFocused: Q } = rw(t, G, H, M ?? (() => !1), a), { labelDayButton: te, labelGridcell: ae, labelGrid: se, labelMonthDropdown: we, labelNav: ke, labelPrevious: dt, labelNext: ut, labelWeekday: ft, labelWeekNumber: ur, labelWeekNumberHeader: St, labelYearDropdown: Uc } = o, qc = Rt(() => My(a, t.ISOWeek), [a, t.ISOWeek]), Ho = d !== void 0 || g !== void 0, fr = Te(() => {
14006
14011
  T && (O(T), w == null || w(T));
14007
14012
  }, [T, O, w]), mr = Te(() => {
14008
14013
  ee && (O(ee), y == null || y(ee));
@@ -14080,7 +14085,7 @@ function uw(e) {
14080
14085
  j.createElement(
14081
14086
  n.Months,
14082
14087
  { className: i[U.Months], style: k == null ? void 0 : k[U.Months] },
14083
- !t.hideNavigation && !f && j.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: i[U.Nav], style: k == null ? void 0 : k[U.Nav], "aria-label": ke(), onPreviousClick: fr, onNextClick: mr, previousMonth: T, nextMonth: ee }),
14088
+ !t.hideNavigation && !u && j.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: i[U.Nav], style: k == null ? void 0 : k[U.Nav], "aria-label": ke(), onPreviousClick: fr, onNextClick: mr, previousMonth: T, nextMonth: ee }),
14084
14089
  X.map((oe, fe) => j.createElement(
14085
14090
  n.Month,
14086
14091
  {
@@ -14092,7 +14097,7 @@ function uw(e) {
14092
14097
  displayIndex: fe,
14093
14098
  calendarMonth: oe
14094
14099
  },
14095
- f === "around" && !t.hideNavigation && fe === 0 && j.createElement(
14100
+ u === "around" && !t.hideNavigation && fe === 0 && j.createElement(
14096
14101
  n.PreviousMonthButton,
14097
14102
  { type: "button", className: i[U.PreviousMonthButton], tabIndex: T ? void 0 : -1, "aria-disabled": T ? void 0 : !0, "aria-label": dt(T), onClick: fr, "data-animated-button": t.animate ? "true" : void 0 },
14098
14103
  j.createElement(n.Chevron, { disabled: T ? void 0 : !0, className: i[U.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
@@ -14120,12 +14125,12 @@ function uw(e) {
14120
14125
  // biome-ignore lint/a11y/useSemanticElements: breaking change
14121
14126
  j.createElement(n.CaptionLabel, { className: i[U.CaptionLabel], role: "status", "aria-live": "polite" }, _(oe.date, a.options, a))
14122
14127
  )),
14123
- f === "around" && !t.hideNavigation && fe === m - 1 && j.createElement(
14128
+ u === "around" && !t.hideNavigation && fe === m - 1 && j.createElement(
14124
14129
  n.NextMonthButton,
14125
14130
  { type: "button", className: i[U.NextMonthButton], tabIndex: ee ? void 0 : -1, "aria-disabled": ee ? void 0 : !0, "aria-label": ut(ee), onClick: mr, "data-animated-button": t.animate ? "true" : void 0 },
14126
14131
  j.createElement(n.Chevron, { disabled: ee ? void 0 : !0, className: i[U.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
14127
14132
  ),
14128
- fe === m - 1 && f === "after" && !t.hideNavigation && j.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: i[U.Nav], style: k == null ? void 0 : k[U.Nav], "aria-label": ke(), onPreviousClick: fr, onNextClick: mr, previousMonth: T, nextMonth: ee }),
14133
+ fe === m - 1 && u === "after" && !t.hideNavigation && j.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: i[U.Nav], style: k == null ? void 0 : k[U.Nav], "aria-label": ke(), onPreviousClick: fr, onNextClick: mr, previousMonth: T, nextMonth: ee }),
14129
14134
  j.createElement(
14130
14135
  n.MonthGrid,
14131
14136
  { role: "grid", "aria-multiselectable": d === "multiple" || d === "range", "aria-label": se(oe.date, a.options, a) || void 0, className: i[U.MonthGrid], style: k == null ? void 0 : k[U.MonthGrid] },
@@ -14272,16 +14277,16 @@ function fw({
14272
14277
  ...t
14273
14278
  },
14274
14279
  components: {
14275
- Root: ({ className: d, rootRef: f, ...m }) => /* @__PURE__ */ c.jsx(
14280
+ Root: ({ className: d, rootRef: u, ...m }) => /* @__PURE__ */ c.jsx(
14276
14281
  "div",
14277
14282
  {
14278
14283
  "data-slot": "calendar",
14279
- ref: f,
14284
+ ref: u,
14280
14285
  className: E(d),
14281
14286
  ...m
14282
14287
  }
14283
14288
  ),
14284
- Chevron: ({ className: d, orientation: f, ...m }) => f === "left" ? /* @__PURE__ */ c.jsx(Hr, { className: E("size-4", d), ...m }) : f === "right" ? /* @__PURE__ */ c.jsx(
14289
+ Chevron: ({ className: d, orientation: u, ...m }) => u === "left" ? /* @__PURE__ */ c.jsx(Hr, { className: E("size-4", d), ...m }) : u === "right" ? /* @__PURE__ */ c.jsx(
14285
14290
  Tn,
14286
14291
  {
14287
14292
  className: E("size-4", d),
@@ -14289,7 +14294,7 @@ function fw({
14289
14294
  }
14290
14295
  ) : /* @__PURE__ */ c.jsx(jt, { className: E("size-4", d), ...m }),
14291
14296
  DayButton: mw,
14292
- WeekNumber: ({ children: d, ...f }) => /* @__PURE__ */ c.jsx("td", { ...f, children: /* @__PURE__ */ c.jsx("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children: d }) }),
14297
+ WeekNumber: ({ children: d, ...u }) => /* @__PURE__ */ c.jsx("td", { ...u, children: /* @__PURE__ */ c.jsx("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children: d }) }),
14293
14298
  ...s
14294
14299
  },
14295
14300
  ...i
@@ -14302,8 +14307,8 @@ function mw({
14302
14307
  modifiers: n,
14303
14308
  ...r
14304
14309
  }) {
14305
- const o = Yo(), a = u.useRef(null);
14306
- return u.useEffect(() => {
14310
+ const o = Yo(), a = f.useRef(null);
14311
+ return f.useEffect(() => {
14307
14312
  var s;
14308
14313
  n.focused && ((s = a.current) == null || s.focus());
14309
14314
  }, [n.focused]), /* @__PURE__ */ c.jsx(
@@ -14341,12 +14346,12 @@ const hw = [
14341
14346
  "Dec"
14342
14347
  ];
14343
14348
  function D0(e) {
14344
- const [t, n] = u.useState(!1), o = (() => {
14349
+ const [t, n] = f.useState(!1), o = (() => {
14345
14350
  var b;
14346
14351
  return e.mode === "single" ? e.date || /* @__PURE__ */ new Date() : ((b = e.date) == null ? void 0 : b.from) || /* @__PURE__ */ new Date();
14347
- })(), [a, s] = u.useState(
14352
+ })(), [a, s] = f.useState(
14348
14353
  o.getFullYear()
14349
- ), [i, l] = u.useState(
14354
+ ), [i, l] = f.useState(
14350
14355
  o.getMonth()
14351
14356
  ), d = (b) => {
14352
14357
  if (l(b), n(!1), e.mode === "single") {
@@ -14370,7 +14375,7 @@ function D0(e) {
14370
14375
  });
14371
14376
  }
14372
14377
  }
14373
- }, f = (b) => {
14378
+ }, u = (b) => {
14374
14379
  s((h) => b === "prev" ? h - 1 : h + 1);
14375
14380
  }, m = (b) => {
14376
14381
  const h = new Date(a, i);
@@ -14396,7 +14401,7 @@ function D0(e) {
14396
14401
  {
14397
14402
  variant: "outline",
14398
14403
  size: "icon",
14399
- onClick: () => f("prev"),
14404
+ onClick: () => u("prev"),
14400
14405
  className: "h-8 w-8",
14401
14406
  children: /* @__PURE__ */ c.jsx(Hr, { className: "w-4 h-4" })
14402
14407
  }
@@ -14406,7 +14411,7 @@ function D0(e) {
14406
14411
  {
14407
14412
  variant: "outline",
14408
14413
  size: "icon",
14409
- onClick: () => f("next"),
14414
+ onClick: () => u("next"),
14410
14415
  className: "h-8 w-8",
14411
14416
  children: /* @__PURE__ */ c.jsx(Tn, { className: "w-4 h-4" })
14412
14417
  }