@agenticindiedev/ui 0.2.0 → 0.2.2

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
@@ -176,7 +176,7 @@ const Nr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ar = xi, U
176
176
  i in n ? n[i] = s : r(i, s);
177
177
  }
178
178
  };
179
- }, So = "!", Dr = ":", Tu = [], Or = (e, t, n, o, r) => ({
179
+ }, So = "!", Dr = ":", Tu = [], kr = (e, t, n, o, r) => ({
180
180
  modifiers: e,
181
181
  hasImportantModifier: t,
182
182
  baseClassName: n,
@@ -215,11 +215,11 @@ const Nr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ar = xi, U
215
215
  d.startsWith(So) && (g = d.slice(1), p = !0)
216
216
  );
217
217
  const v = u && u > l ? u - l : void 0;
218
- return Or(i, p, g, v);
218
+ return kr(i, p, g, v);
219
219
  };
220
220
  if (t) {
221
221
  const r = t + Dr, i = o;
222
- o = (s) => s.startsWith(r) ? i(s.slice(r.length)) : Or(Tu, !1, s, void 0, !0);
222
+ o = (s) => s.startsWith(r) ? i(s.slice(r.length)) : kr(Tu, !1, s, void 0, !0);
223
223
  }
224
224
  if (n) {
225
225
  const r = o;
@@ -229,7 +229,7 @@ const Nr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ar = xi, U
229
229
  });
230
230
  }
231
231
  return o;
232
- }, Ou = (e) => {
232
+ }, ku = (e) => {
233
233
  const t = /* @__PURE__ */ new Map();
234
234
  return e.orderSensitiveModifiers.forEach((n, o) => {
235
235
  t.set(n, 1e6 + o);
@@ -242,10 +242,10 @@ const Nr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ar = xi, U
242
242
  }
243
243
  return r.length > 0 && (r.sort(), o.push(...r)), o;
244
244
  };
245
- }, ku = (e) => ({
245
+ }, Ou = (e) => ({
246
246
  cache: Au(e.cacheSize),
247
247
  parseClassName: Du(e),
248
- sortModifiers: Ou(e),
248
+ sortModifiers: ku(e),
249
249
  ...bu(e)
250
250
  }), $u = /\s+/, Fu = (e, t) => {
251
251
  const {
@@ -307,7 +307,7 @@ const Nr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ar = xi, U
307
307
  let n, o, r, i;
308
308
  const s = (l) => {
309
309
  const u = t.reduce((f, d) => d(f), e());
310
- return n = ku(u), o = n.cache.get, r = n.cache.set, i = a, a(l);
310
+ return n = Ou(u), o = n.cache.get, r = n.cache.set, i = a, a(l);
311
311
  }, a = (l) => {
312
312
  const u = o(l);
313
313
  if (u)
@@ -324,13 +324,13 @@ const Nr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ar = xi, U
324
324
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
325
325
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
326
326
  zu.test(e) && !Wu.test(e)
327
- ), Ni = () => !1, Yu = (e) => Uu.test(e), Xu = (e) => ju.test(e), Zu = (e) => !A(e) && !T(e), Qu = (e) => pt(e, Di, Ni), A = (e) => Ii.test(e), Qe = (e) => pt(e, Oi, qu), Jn = (e) => pt(e, od, j), kr = (e) => pt(e, Ai, Ni), Ju = (e) => pt(e, Ti, Xu), Kt = (e) => pt(e, ki, Yu), T = (e) => Mi.test(e), xt = (e) => gt(e, Oi), ed = (e) => gt(e, rd), $r = (e) => gt(e, Ai), td = (e) => gt(e, Di), nd = (e) => gt(e, Ti), qt = (e) => gt(e, ki, !0), pt = (e, t, n) => {
327
+ ), Ni = () => !1, Yu = (e) => Uu.test(e), Xu = (e) => ju.test(e), Zu = (e) => !A(e) && !T(e), Qu = (e) => pt(e, Di, Ni), A = (e) => Ii.test(e), Qe = (e) => pt(e, ki, qu), Jn = (e) => pt(e, od, j), Or = (e) => pt(e, Ai, Ni), Ju = (e) => pt(e, Ti, Xu), Kt = (e) => pt(e, Oi, Yu), T = (e) => Mi.test(e), xt = (e) => gt(e, ki), ed = (e) => gt(e, rd), $r = (e) => gt(e, Ai), td = (e) => gt(e, Di), nd = (e) => gt(e, Ti), qt = (e) => gt(e, Oi, !0), pt = (e, t, n) => {
328
328
  const o = Ii.exec(e);
329
329
  return o ? o[1] ? t(o[1]) : n(o[2]) : !1;
330
330
  }, gt = (e, t, n = !1) => {
331
331
  const o = Mi.exec(e);
332
332
  return o ? o[1] ? t(o[1]) : n : !1;
333
- }, Ai = (e) => e === "position" || e === "percentage", Ti = (e) => e === "image" || e === "url", Di = (e) => e === "length" || e === "size" || e === "bg-size", Oi = (e) => e === "length", od = (e) => e === "number", rd = (e) => e === "family-name", ki = (e) => e === "shadow", id = () => {
333
+ }, Ai = (e) => e === "position" || e === "percentage", Ti = (e) => e === "image" || e === "url", Di = (e) => e === "length" || e === "size" || e === "bg-size", ki = (e) => e === "length", od = (e) => e === "number", rd = (e) => e === "family-name", Oi = (e) => e === "shadow", id = () => {
334
334
  const e = oe("color"), t = oe("font"), n = oe("text"), o = oe("font-weight"), r = oe("tracking"), i = oe("leading"), s = oe("breakpoint"), a = oe("container"), l = oe("spacing"), u = oe("radius"), f = oe("shadow"), d = oe("inset-shadow"), g = oe("text-shadow"), p = oe("drop-shadow"), v = oe("blur"), h = oe("perspective"), w = oe("aspect"), y = oe("ease"), C = oe("animate"), S = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], b = () => [
335
335
  "center",
336
336
  "top",
@@ -349,9 +349,9 @@ const Nr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ar = xi, U
349
349
  "bottom-left",
350
350
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
351
351
  "left-bottom"
352
- ], x = () => [...b(), T, A], M = () => ["auto", "hidden", "clip", "visible", "scroll"], _ = () => ["auto", "contain", "none"], E = () => [T, A, l], F = () => [rt, "full", "auto", ...E()], L = () => [Fe, "none", "subgrid", T, A], O = () => ["auto", {
352
+ ], x = () => [...b(), T, A], M = () => ["auto", "hidden", "clip", "visible", "scroll"], _ = () => ["auto", "contain", "none"], E = () => [T, A, l], F = () => [rt, "full", "auto", ...E()], L = () => [Fe, "none", "subgrid", T, A], k = () => ["auto", {
353
353
  span: ["full", Fe, T, A]
354
- }, Fe, T, A], B = () => [Fe, "auto", T, A], U = () => ["auto", "min", "max", "fr", T, A], W = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], D = () => ["auto", ...E()], G = () => [rt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], R = () => [e, T, A], N = () => [...b(), $r, kr, {
354
+ }, Fe, T, A], B = () => [Fe, "auto", T, A], U = () => ["auto", "min", "max", "fr", T, A], W = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], D = () => ["auto", ...E()], G = () => [rt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], R = () => [e, T, A], N = () => [...b(), $r, Or, {
355
355
  position: [T, A]
356
356
  }], te = () => ["no-repeat", {
357
357
  repeat: ["", "x", "y", "space", "round"]
@@ -365,7 +365,7 @@ const Nr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ar = xi, U
365
365
  u,
366
366
  T,
367
367
  A
368
- ], Q = () => ["", j, xt, Qe], de = () => ["solid", "dashed", "dotted", "double"], se = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], I = () => [j, Qn, $r, kr], X = () => [
368
+ ], Q = () => ["", j, xt, Qe], de = () => ["solid", "dashed", "dotted", "double"], se = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], I = () => [j, Qn, $r, Or], X = () => [
369
369
  // Deprecated since Tailwind CSS v4.0.0
370
370
  "",
371
371
  "none",
@@ -684,7 +684,7 @@ const Nr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ar = xi, U
684
684
  * @see https://tailwindcss.com/docs/grid-column
685
685
  */
686
686
  "col-start-end": [{
687
- col: O()
687
+ col: k()
688
688
  }],
689
689
  /**
690
690
  * Grid Column Start
@@ -712,7 +712,7 @@ const Nr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ar = xi, U
712
712
  * @see https://tailwindcss.com/docs/grid-row
713
713
  */
714
714
  "row-start-end": [{
715
- row: O()
715
+ row: k()
716
716
  }],
717
717
  /**
718
718
  * Grid Row Start
@@ -2801,7 +2801,7 @@ const Nr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ar = xi, U
2801
2801
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
2802
2802
  };
2803
2803
  }, sd = /* @__PURE__ */ Vu(id);
2804
- function k(...e) {
2804
+ function O(...e) {
2805
2805
  return sd(xi(e));
2806
2806
  }
2807
2807
  const ad = Ue(
@@ -2832,7 +2832,7 @@ const ad = Ue(
2832
2832
  "span",
2833
2833
  {
2834
2834
  ref: i,
2835
- className: k(ad({ variant: t, size: n }), e),
2835
+ className: O(ad({ variant: t, size: n }), e),
2836
2836
  ...r,
2837
2837
  children: o
2838
2838
  }
@@ -2921,12 +2921,17 @@ const vd = Ue(
2921
2921
  {
2922
2922
  variants: {
2923
2923
  variant: {
2924
- primary: "bg-primary-500 text-white hover:bg-primary-600 dark:bg-primary-600 dark:hover:bg-primary-700",
2925
- secondary: "bg-gray-100 text-gray-900 hover:bg-gray-200 dark:bg-gray-800 dark:text-gray-100 dark:hover:bg-gray-700",
2926
- ghost: "text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-800",
2927
- outline: "border border-gray-300 text-gray-700 hover:bg-gray-50 dark:border-gray-600 dark:text-gray-300 dark:hover:bg-gray-800",
2928
- destructive: "bg-red-500 text-white hover:bg-red-600 dark:bg-red-600 dark:hover:bg-red-700",
2929
- link: "text-primary-600 underline-offset-4 hover:underline dark:text-primary-400"
2924
+ primary: "bg-primary-500 text-white hover:bg-primary-600 active:bg-primary-700 dark:bg-primary-600 dark:hover:bg-primary-700 dark:active:bg-primary-800",
2925
+ secondary: "bg-gray-100 text-gray-900 hover:bg-gray-200 active:bg-gray-300 dark:bg-gray-800 dark:text-gray-100 dark:hover:bg-gray-700 dark:active:bg-gray-600",
2926
+ ghost: "bg-transparent text-gray-700 hover:bg-gray-100 active:bg-gray-200 dark:text-gray-300 dark:hover:bg-gray-800 dark:active:bg-gray-700",
2927
+ outline: "bg-transparent border border-gray-300 text-gray-700 hover:bg-gray-50 active:bg-gray-100 dark:border-gray-600 dark:text-gray-300 dark:hover:bg-gray-800 dark:active:bg-gray-700",
2928
+ destructive: "bg-red-500 text-white hover:bg-red-600 active:bg-red-700 dark:bg-red-600 dark:hover:bg-red-700 dark:active:bg-red-800",
2929
+ link: "bg-transparent text-primary-600 underline-offset-4 hover:underline dark:text-primary-400",
2930
+ "soft-primary": "bg-primary-500/15 text-primary-600 hover:bg-primary-500/25 active:bg-primary-500/35 dark:bg-primary-400/15 dark:text-primary-400 dark:hover:bg-primary-400/25 dark:active:bg-primary-400/35",
2931
+ "soft-secondary": "bg-gray-500/15 text-gray-700 hover:bg-gray-500/25 active:bg-gray-500/35 dark:bg-gray-400/15 dark:text-gray-300 dark:hover:bg-gray-400/25 dark:active:bg-gray-400/35",
2932
+ "soft-success": "bg-green-500/15 text-green-600 hover:bg-green-500/25 active:bg-green-500/35 dark:bg-green-400/15 dark:text-green-400 dark:hover:bg-green-400/25 dark:active:bg-green-400/35",
2933
+ "soft-warning": "bg-yellow-500/15 text-yellow-600 hover:bg-yellow-500/25 active:bg-yellow-500/35 dark:bg-yellow-400/15 dark:text-yellow-400 dark:hover:bg-yellow-400/25 dark:active:bg-yellow-400/35",
2934
+ "soft-destructive": "bg-red-500/15 text-red-600 hover:bg-red-500/25 active:bg-red-500/35 dark:bg-red-400/15 dark:text-red-400 dark:hover:bg-red-400/25 dark:active:bg-red-400/35"
2930
2935
  },
2931
2936
  size: {
2932
2937
  sm: "h-8 px-3 text-sm",
@@ -2986,7 +2991,7 @@ const vd = Ue(
2986
2991
  o ? dd : "button",
2987
2992
  {
2988
2993
  ref: f,
2989
- className: k(vd({ variant: t, size: n }), e),
2994
+ className: O(vd({ variant: t, size: n }), e),
2990
2995
  disabled: r || l,
2991
2996
  ...u,
2992
2997
  children: r ? /* @__PURE__ */ m(wd, {}) : /* @__PURE__ */ q(Be, { children: [
@@ -3037,7 +3042,7 @@ const yd = Ue(
3037
3042
  {
3038
3043
  ref: u,
3039
3044
  type: a,
3040
- className: k(
3045
+ className: O(
3041
3046
  yd({ variant: i ? "error" : t, size: n }),
3042
3047
  f && "pl-10",
3043
3048
  d && "pr-10",
@@ -3084,7 +3089,7 @@ const Sd = Ue(
3084
3089
  "div",
3085
3090
  {
3086
3091
  ref: i,
3087
- className: k(Sd({ variant: t, hover: n, padding: o }), e),
3092
+ className: O(Sd({ variant: t, hover: n, padding: o }), e),
3088
3093
  ...r
3089
3094
  }
3090
3095
  )
@@ -3095,14 +3100,14 @@ const xd = c.forwardRef(
3095
3100
  "div",
3096
3101
  {
3097
3102
  ref: n,
3098
- className: k("flex flex-col space-y-1.5 p-6", e),
3103
+ className: O("flex flex-col space-y-1.5 p-6", e),
3099
3104
  ...t
3100
3105
  }
3101
3106
  )
3102
3107
  );
3103
3108
  xd.displayName = "CardHeader";
3104
3109
  const Rd = c.forwardRef(
3105
- ({ className: e, ...t }, n) => /* @__PURE__ */ m("div", { ref: n, className: k("p-6 pt-0", e), ...t })
3110
+ ({ className: e, ...t }, n) => /* @__PURE__ */ m("div", { ref: n, className: O("p-6 pt-0", e), ...t })
3106
3111
  );
3107
3112
  Rd.displayName = "CardContent";
3108
3113
  const Ed = c.forwardRef(
@@ -3110,7 +3115,7 @@ const Ed = c.forwardRef(
3110
3115
  "div",
3111
3116
  {
3112
3117
  ref: n,
3113
- className: k("flex items-center p-6 pt-0", e),
3118
+ className: O("flex items-center p-6 pt-0", e),
3114
3119
  ...t
3115
3120
  }
3116
3121
  )
@@ -3278,8 +3283,8 @@ function mt(e) {
3278
3283
  return e || t || "ltr";
3279
3284
  }
3280
3285
  // @__NO_SIDE_EFFECTS__
3281
- function Od(e) {
3282
- const t = /* @__PURE__ */ kd(e), n = c.forwardRef((o, r) => {
3286
+ function kd(e) {
3287
+ const t = /* @__PURE__ */ Od(e), n = c.forwardRef((o, r) => {
3283
3288
  const { children: i, ...s } = o, a = c.Children.toArray(i), l = a.find(Fd);
3284
3289
  if (l) {
3285
3290
  const u = l.props.children, f = a.map((d) => d === l ? c.Children.count(u) > 1 ? c.Children.only(null) : c.isValidElement(u) ? u.props.children : null : d);
@@ -3290,7 +3295,7 @@ function Od(e) {
3290
3295
  return n.displayName = `${e}.Slot`, n;
3291
3296
  }
3292
3297
  // @__NO_SIDE_EFFECTS__
3293
- function kd(e) {
3298
+ function Od(e) {
3294
3299
  const t = c.forwardRef((n, o) => {
3295
3300
  const { children: r, ...i } = n;
3296
3301
  if (c.isValidElement(r)) {
@@ -3339,7 +3344,7 @@ var Hd = [
3339
3344
  "svg",
3340
3345
  "ul"
3341
3346
  ], $ = Hd.reduce((e, t) => {
3342
- const n = /* @__PURE__ */ Od(`Primitive.${t}`), o = c.forwardRef((r, i) => {
3347
+ const n = /* @__PURE__ */ kd(`Primitive.${t}`), o = c.forwardRef((r, i) => {
3343
3348
  const { asChild: s, ...a } = r, l = s ? n : t;
3344
3349
  return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ m(l, { ...a, ref: i });
3345
3350
  });
@@ -3492,7 +3497,7 @@ function Br() {
3492
3497
  const e = document.createElement("span");
3493
3498
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
3494
3499
  }
3495
- var to = "focusScope.autoFocusOnMount", no = "focusScope.autoFocusOnUnmount", Gr = { bubbles: !1, cancelable: !0 }, Yd = "FocusScope", Ot = c.forwardRef((e, t) => {
3500
+ var to = "focusScope.autoFocusOnMount", no = "focusScope.autoFocusOnUnmount", Gr = { bubbles: !1, cancelable: !0 }, Yd = "FocusScope", kt = c.forwardRef((e, t) => {
3496
3501
  const {
3497
3502
  loop: n = !1,
3498
3503
  trapped: o = !1,
@@ -3558,7 +3563,7 @@ var to = "focusScope.autoFocusOnMount", no = "focusScope.autoFocusOnUnmount", Gr
3558
3563
  );
3559
3564
  return /* @__PURE__ */ m($.div, { tabIndex: -1, ...s, ref: g, onKeyDown: v });
3560
3565
  });
3561
- Ot.displayName = Yd;
3566
+ kt.displayName = Yd;
3562
3567
  function Xd(e, { select: t = !1 } = {}) {
3563
3568
  const n = document.activeElement;
3564
3569
  for (const o of e)
@@ -3644,7 +3649,7 @@ const rf = ["top", "right", "bottom", "left"], Ge = Math.min, ge = Math.max, pn
3644
3649
  function Ro(e, t, n) {
3645
3650
  return ge(e, Ge(t, n));
3646
3651
  }
3647
- function ke(e, t) {
3652
+ function Oe(e, t) {
3648
3653
  return typeof e == "function" ? e(t) : e;
3649
3654
  }
3650
3655
  function $e(e) {
@@ -3860,7 +3865,7 @@ async function It(e, t) {
3860
3865
  elementContext: d = "floating",
3861
3866
  altBoundary: g = !1,
3862
3867
  padding: p = 0
3863
- } = ke(t, e), v = Bi(p), w = a[g ? d === "floating" ? "reference" : "floating" : d], y = mn(await i.getClippingRect({
3868
+ } = Oe(t, e), v = Bi(p), w = a[g ? d === "floating" ? "reference" : "floating" : d], y = mn(await i.getClippingRect({
3864
3869
  element: (n = await (i.isElement == null ? void 0 : i.isElement(w))) == null || n ? w : w.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
3865
3870
  boundary: u,
3866
3871
  rootBoundary: f,
@@ -3904,7 +3909,7 @@ const vf = (e) => ({
3904
3909
  } = t, {
3905
3910
  element: u,
3906
3911
  padding: f = 0
3907
- } = ke(e, t) || {};
3912
+ } = Oe(e, t) || {};
3908
3913
  if (u == null)
3909
3914
  return {};
3910
3915
  const d = Bi(f), g = {
@@ -3913,7 +3918,7 @@ const vf = (e) => ({
3913
3918
  }, p = Yo(r), v = qo(p), h = await s.getDimensions(u), w = p === "y", y = w ? "top" : "left", C = w ? "bottom" : "right", S = w ? "clientHeight" : "clientWidth", b = i.reference[v] + i.reference[p] - g[p] - i.floating[v], x = g[p] - i.reference[p], M = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
3914
3919
  let _ = M ? M[S] : 0;
3915
3920
  (!_ || !await (s.isElement == null ? void 0 : s.isElement(M))) && (_ = a.floating[S] || i.floating[v]);
3916
- const E = b / 2 - x / 2, F = _ / 2 - h[v] / 2 - 1, L = Ge(d[y], F), O = Ge(d[C], F), B = L, U = _ - h[v] - O, W = _ / 2 - h[v] / 2 + E, K = Ro(B, W, U), D = !l.arrow && vt(r) != null && W !== K && i.reference[v] / 2 - (W < B ? L : O) - h[v] / 2 < 0, G = D ? W < B ? W - B : W - U : 0;
3921
+ const E = b / 2 - x / 2, F = _ / 2 - h[v] / 2 - 1, L = Ge(d[y], F), k = Ge(d[C], F), B = L, U = _ - h[v] - k, W = _ / 2 - h[v] / 2 + E, K = Ro(B, W, U), D = !l.arrow && vt(r) != null && W !== K && i.reference[v] / 2 - (W < B ? L : k) - h[v] / 2 < 0, G = D ? W < B ? W - B : W - U : 0;
3917
3922
  return {
3918
3923
  [p]: g[p] + G,
3919
3924
  data: {
@@ -3947,7 +3952,7 @@ const vf = (e) => ({
3947
3952
  fallbackAxisSideDirection: v = "none",
3948
3953
  flipAlignment: h = !0,
3949
3954
  ...w
3950
- } = ke(e, t);
3955
+ } = Oe(e, t);
3951
3956
  if ((n = i.arrow) != null && n.alignmentOffset)
3952
3957
  return {};
3953
3958
  const y = $e(r), C = Pe(a), S = $e(a) === a, b = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), x = g || (S || !h ? [gn(a)] : uf(a)), M = v !== "none";
@@ -3962,8 +3967,8 @@ const vf = (e) => ({
3962
3967
  placement: r,
3963
3968
  overflows: F
3964
3969
  }], !F.every((W) => W <= 0)) {
3965
- var O, B;
3966
- const W = (((O = i.flip) == null ? void 0 : O.index) || 0) + 1, K = _[W];
3970
+ var k, B;
3971
+ const W = (((k = i.flip) == null ? void 0 : k.index) || 0) + 1, K = _[W];
3967
3972
  if (K && (!(d === "alignment" ? C !== Pe(K) : !1) || // We leave the current main axis only if every placement on that axis
3968
3973
  // overflows the main axis.
3969
3974
  L.every((R) => Pe(R.placement) === C ? R.overflows[0] > 0 : !0)))
@@ -4029,7 +4034,7 @@ const yf = function(e) {
4029
4034
  } = t, {
4030
4035
  strategy: o = "referenceHidden",
4031
4036
  ...r
4032
- } = ke(e, t);
4037
+ } = Oe(e, t);
4033
4038
  switch (o) {
4034
4039
  case "referenceHidden": {
4035
4040
  const i = await It(t, {
@@ -4066,7 +4071,7 @@ async function Cf(e, t) {
4066
4071
  placement: n,
4067
4072
  platform: o,
4068
4073
  elements: r
4069
- } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = $e(n), a = vt(n), l = Pe(n) === "y", u = Gi.has(s) ? -1 : 1, f = i && l ? -1 : 1, d = ke(t, e);
4074
+ } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = $e(n), a = vt(n), l = Pe(n) === "y", u = Gi.has(s) ? -1 : 1, f = i && l ? -1 : 1, d = Oe(t, e);
4070
4075
  let {
4071
4076
  mainAxis: g,
4072
4077
  crossAxis: p,
@@ -4135,7 +4140,7 @@ const Sf = function(e) {
4135
4140
  }
4136
4141
  },
4137
4142
  ...l
4138
- } = ke(e, t), u = {
4143
+ } = Oe(e, t), u = {
4139
4144
  x: n,
4140
4145
  y: o
4141
4146
  }, f = await It(t, l), d = Pe($e(r)), g = Ko(d);
@@ -4180,12 +4185,12 @@ const Sf = function(e) {
4180
4185
  offset: a = 0,
4181
4186
  mainAxis: l = !0,
4182
4187
  crossAxis: u = !0
4183
- } = ke(e, t), f = {
4188
+ } = Oe(e, t), f = {
4184
4189
  x: n,
4185
4190
  y: o
4186
4191
  }, d = Pe(r), g = Ko(d);
4187
4192
  let p = f[g], v = f[d];
4188
- const h = ke(a, t), w = typeof h == "number" ? {
4193
+ const h = Oe(a, t), w = typeof h == "number" ? {
4189
4194
  mainAxis: h,
4190
4195
  crossAxis: 0
4191
4196
  } : {
@@ -4223,7 +4228,7 @@ const Sf = function(e) {
4223
4228
  apply: l = () => {
4224
4229
  },
4225
4230
  ...u
4226
- } = ke(e, t), f = await It(t, u), d = $e(r), g = vt(r), p = Pe(r) === "y", {
4231
+ } = Oe(e, t), f = await It(t, u), d = $e(r), g = vt(r), p = Pe(r) === "y", {
4227
4232
  width: v,
4228
4233
  height: h
4229
4234
  } = i.floating;
@@ -4232,8 +4237,8 @@ const Sf = function(e) {
4232
4237
  const C = h - f.top - f.bottom, S = v - f.left - f.right, b = Ge(h - f[w], C), x = Ge(v - f[y], S), M = !t.middlewareData.shift;
4233
4238
  let _ = b, E = x;
4234
4239
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (E = S), (o = t.middlewareData.shift) != null && o.enabled.y && (_ = C), M && !g) {
4235
- const L = ge(f.left, 0), O = ge(f.right, 0), B = ge(f.top, 0), U = ge(f.bottom, 0);
4236
- p ? E = v - 2 * (L !== 0 || O !== 0 ? L + O : ge(f.left, f.right)) : _ = h - 2 * (B !== 0 || U !== 0 ? B + U : ge(f.top, f.bottom));
4240
+ const L = ge(f.left, 0), k = ge(f.right, 0), B = ge(f.top, 0), U = ge(f.bottom, 0);
4241
+ p ? E = v - 2 * (L !== 0 || k !== 0 ? L + k : ge(f.left, f.right)) : _ = h - 2 * (B !== 0 || U !== 0 ? B + U : ge(f.top, f.bottom));
4237
4242
  }
4238
4243
  await l({
4239
4244
  ...t,
@@ -4276,7 +4281,7 @@ function Zr(e) {
4276
4281
  return !En() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof me(e).ShadowRoot;
4277
4282
  }
4278
4283
  const Ef = /* @__PURE__ */ new Set(["inline", "contents"]);
4279
- function kt(e) {
4284
+ function Ot(e) {
4280
4285
  const {
4281
4286
  overflow: t,
4282
4287
  overflowX: n,
@@ -4348,7 +4353,7 @@ function ze(e) {
4348
4353
  }
4349
4354
  function Wi(e) {
4350
4355
  const t = ze(e);
4351
- return ut(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Me(t) && kt(t) ? t : Wi(t);
4356
+ return ut(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Me(t) && Ot(t) ? t : Wi(t);
4352
4357
  }
4353
4358
  function Mt(e, t, n) {
4354
4359
  var o;
@@ -4356,7 +4361,7 @@ function Mt(e, t, n) {
4356
4361
  const r = Wi(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), s = me(r);
4357
4362
  if (i) {
4358
4363
  const a = _o(s);
4359
- return t.concat(s, s.visualViewport || [], kt(r) ? r : [], a && n ? Mt(a) : []);
4364
+ return t.concat(s, s.visualViewport || [], Ot(r) ? r : [], a && n ? Mt(a) : []);
4360
4365
  }
4361
4366
  return t.concat(r, Mt(r, [], n));
4362
4367
  }
@@ -4391,15 +4396,15 @@ function lt(e) {
4391
4396
  y: a
4392
4397
  };
4393
4398
  }
4394
- const Of = /* @__PURE__ */ Ie(0);
4399
+ const kf = /* @__PURE__ */ Ie(0);
4395
4400
  function ji(e) {
4396
4401
  const t = me(e);
4397
- return !Zo() || !t.visualViewport ? Of : {
4402
+ return !Zo() || !t.visualViewport ? kf : {
4398
4403
  x: t.visualViewport.offsetLeft,
4399
4404
  y: t.visualViewport.offsetTop
4400
4405
  };
4401
4406
  }
4402
- function kf(e, t, n) {
4407
+ function Of(e, t, n) {
4403
4408
  return t === void 0 && (t = !1), !n || t && n !== me(e) ? !1 : t;
4404
4409
  }
4405
4410
  function Je(e, t, n, o) {
@@ -4407,7 +4412,7 @@ function Je(e, t, n, o) {
4407
4412
  const r = e.getBoundingClientRect(), i = Qo(e);
4408
4413
  let s = Ie(1);
4409
4414
  t && (o ? xe(o) && (s = lt(o)) : s = lt(e));
4410
- const a = kf(i, n, o) ? ji(i) : Ie(0);
4415
+ const a = Of(i, n, o) ? ji(i) : Ie(0);
4411
4416
  let l = (r.left + a.x) / s.x, u = (r.top + a.y) / s.y, f = r.width / s.x, d = r.height / s.y;
4412
4417
  if (i) {
4413
4418
  const g = me(i), p = o && xe(o) ? me(o) : o;
@@ -4450,7 +4455,7 @@ function $f(e) {
4450
4455
  scrollTop: 0
4451
4456
  }, u = Ie(1);
4452
4457
  const f = Ie(0), d = Me(o);
4453
- if ((d || !d && !i) && ((wt(o) !== "body" || kt(s)) && (l = Pn(o)), Me(o))) {
4458
+ if ((d || !d && !i) && ((wt(o) !== "body" || Ot(s)) && (l = Pn(o)), Me(o))) {
4454
4459
  const p = Je(o);
4455
4460
  u = lt(o), f.x = p.x + o.clientLeft, f.y = p.y + o.clientTop;
4456
4461
  }
@@ -4539,7 +4544,7 @@ function Gf(e, t) {
4539
4544
  let s = i ? ze(e) : e;
4540
4545
  for (; xe(s) && !ut(s); ) {
4541
4546
  const a = Re(s), l = Xo(s);
4542
- !l && a.position === "fixed" && (r = null), (i ? !l && !r : !l && a.position === "static" && !!r && Hf.has(r.position) || kt(s) && !l && qi(e, s)) ? o = o.filter((f) => f !== s) : r = a, s = ze(s);
4547
+ !l && a.position === "fixed" && (r = null), (i ? !l && !r : !l && a.position === "static" && !!r && Hf.has(r.position) || Ot(s) && !l && qi(e, s)) ? o = o.filter((f) => f !== s) : r = a, s = ze(s);
4543
4548
  }
4544
4549
  return t.set(e, o), o;
4545
4550
  }
@@ -4582,7 +4587,7 @@ function Uf(e, t, n) {
4582
4587
  l.x = In(r);
4583
4588
  }
4584
4589
  if (o || !o && !i)
4585
- if ((wt(t) !== "body" || kt(r)) && (a = Pn(t)), o) {
4590
+ if ((wt(t) !== "body" || Ot(r)) && (a = Pn(t)), o) {
4586
4591
  const p = Je(t, !0, i, t);
4587
4592
  l.x = p.x + t.clientLeft, l.y = p.y + t.clientTop;
4588
4593
  } else r && u();
@@ -4821,7 +4826,7 @@ function sp(e) {
4821
4826
  R !== M.current && (M.current = R, h(R));
4822
4827
  }, []), S = c.useCallback((R) => {
4823
4828
  R !== _.current && (_.current = R, y(R));
4824
- }, []), b = i || v, x = s || w, M = c.useRef(null), _ = c.useRef(null), E = c.useRef(f), F = l != null, L = ro(l), O = ro(r), B = ro(u), U = c.useCallback(() => {
4829
+ }, []), b = i || v, x = s || w, M = c.useRef(null), _ = c.useRef(null), E = c.useRef(f), F = l != null, L = ro(l), k = ro(r), B = ro(u), U = c.useCallback(() => {
4825
4830
  if (!M.current || !_.current)
4826
4831
  return;
4827
4832
  const R = {
@@ -4829,7 +4834,7 @@ function sp(e) {
4829
4834
  strategy: n,
4830
4835
  middleware: g
4831
4836
  };
4832
- O.current && (R.platform = O.current), op(M.current, _.current, R).then((N) => {
4837
+ k.current && (R.platform = k.current), op(M.current, _.current, R).then((N) => {
4833
4838
  const te = {
4834
4839
  ...N,
4835
4840
  // The floating element's position may be recomputed while it's closed
@@ -4842,7 +4847,7 @@ function sp(e) {
4842
4847
  d(te);
4843
4848
  }));
4844
4849
  });
4845
- }, [g, t, n, O, B]);
4850
+ }, [g, t, n, k, B]);
4846
4851
  sn(() => {
4847
4852
  u === !1 && E.current.isPositioned && (E.current.isPositioned = !1, d((R) => ({
4848
4853
  ...R,
@@ -5010,9 +5015,9 @@ var er = "PopperContent", [wp, yp] = Ji(er), rs = c.forwardRef(
5010
5015
  updatePositionStrategy: p = "optimized",
5011
5016
  onPlaced: v,
5012
5017
  ...h
5013
- } = e, w = es(er, n), [y, C] = c.useState(null), S = z(t, (I) => C(I)), [b, x] = c.useState(null), M = $t(b), _ = M?.width ?? 0, E = M?.height ?? 0, F = o + (i !== "center" ? "-" + i : ""), L = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, O = Array.isArray(u) ? u : [u], B = O.length > 0, U = {
5018
+ } = e, w = es(er, n), [y, C] = c.useState(null), S = z(t, (I) => C(I)), [b, x] = c.useState(null), M = $t(b), _ = M?.width ?? 0, E = M?.height ?? 0, F = o + (i !== "center" ? "-" + i : ""), L = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, k = Array.isArray(u) ? u : [u], B = k.length > 0, U = {
5014
5019
  padding: L,
5015
- boundary: O.filter(Sp),
5020
+ boundary: k.filter(Sp),
5016
5021
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
5017
5022
  altBoundary: B
5018
5023
  }, { refs: W, floatingStyles: K, placement: D, isPositioned: G, middlewareData: R } = sp({
@@ -5298,7 +5303,7 @@ var ls = Object.freeze({
5298
5303
  )
5299
5304
  );
5300
5305
  cs.displayName = Dp;
5301
- var Op = cs, kp = function(e) {
5306
+ var kp = cs, Op = function(e) {
5302
5307
  if (typeof document > "u")
5303
5308
  return null;
5304
5309
  var t = Array.isArray(e) ? e[0] : e;
@@ -5342,7 +5347,7 @@ var Op = cs, kp = function(e) {
5342
5347
  };
5343
5348
  }, An = function(e, t, n) {
5344
5349
  n === void 0 && (n = "data-aria-hidden");
5345
- var o = Array.from(Array.isArray(e) ? e : [e]), r = kp(e);
5350
+ var o = Array.from(Array.isArray(e) ? e : [e]), r = Op(e);
5346
5351
  return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live], script"))), Fp(o, r, n, "aria-hidden")) : function() {
5347
5352
  return null;
5348
5353
  };
@@ -5752,10 +5757,10 @@ function vg(e) {
5752
5757
  var E = window.getSelection(), F = E && E.anchorNode, L = F ? F === M || F.contains(M) : !1;
5753
5758
  if (L)
5754
5759
  return !1;
5755
- var O = ii(_, M);
5756
- if (!O)
5760
+ var k = ii(_, M);
5761
+ if (!k)
5757
5762
  return !0;
5758
- if (O ? x = _ : (x = _ === "v" ? "h" : "v", O = ii(_, M)), !O)
5763
+ if (k ? x = _ : (x = _ === "v" ? "h" : "v", k = ii(_, M)), !k)
5759
5764
  return !1;
5760
5765
  if (!o.current && "changedTouches" in h && (S || b) && (o.current = x), !x)
5761
5766
  return !0;
@@ -5821,10 +5826,10 @@ var Bt = c.forwardRef(function(e, t) {
5821
5826
  return c.createElement(Tn, _e({}, e, { ref: t, sideCar: yg }));
5822
5827
  });
5823
5828
  Bt.classNames = Tn.classNames;
5824
- var Cg = [" ", "Enter", "ArrowUp", "ArrowDown"], Sg = [" ", "Enter"], et = "Select", [Dn, On, bg] = xn(et), [yt] = ue(et, [
5829
+ var Cg = [" ", "Enter", "ArrowUp", "ArrowDown"], Sg = [" ", "Enter"], et = "Select", [Dn, kn, bg] = xn(et), [yt] = ue(et, [
5825
5830
  bg,
5826
5831
  je
5827
- ]), kn = je(), [xg, Ke] = yt(et), [Rg, Eg] = yt(et), ws = (e) => {
5832
+ ]), On = je(), [xg, Ke] = yt(et), [Rg, Eg] = yt(et), ws = (e) => {
5828
5833
  const {
5829
5834
  __scopeSelect: t,
5830
5835
  children: n,
@@ -5840,7 +5845,7 @@ var Cg = [" ", "Enter", "ArrowUp", "ArrowDown"], Sg = [" ", "Enter"], et = "Sele
5840
5845
  disabled: g,
5841
5846
  required: p,
5842
5847
  form: v
5843
- } = e, h = kn(t), [w, y] = c.useState(null), [C, S] = c.useState(null), [b, x] = c.useState(!1), M = mt(u), [_, E] = he({
5848
+ } = e, h = On(t), [w, y] = c.useState(null), [C, S] = c.useState(null), [b, x] = c.useState(!1), M = mt(u), [_, E] = he({
5844
5849
  prop: o,
5845
5850
  defaultProp: r ?? !1,
5846
5851
  onChange: i,
@@ -5850,7 +5855,7 @@ var Cg = [" ", "Enter", "ArrowUp", "ArrowDown"], Sg = [" ", "Enter"], et = "Sele
5850
5855
  defaultProp: a,
5851
5856
  onChange: l,
5852
5857
  caller: et
5853
- }), O = c.useRef(null), B = w ? v || !!w.closest("form") : !0, [U, W] = c.useState(/* @__PURE__ */ new Set()), K = Array.from(U).map((D) => D.props.value).join(";");
5858
+ }), k = c.useRef(null), B = w ? v || !!w.closest("form") : !0, [U, W] = c.useState(/* @__PURE__ */ new Set()), K = Array.from(U).map((D) => D.props.value).join(";");
5854
5859
  return /* @__PURE__ */ m(Ft, { ...h, children: /* @__PURE__ */ q(
5855
5860
  xg,
5856
5861
  {
@@ -5868,7 +5873,7 @@ var Cg = [" ", "Enter", "ArrowUp", "ArrowDown"], Sg = [" ", "Enter"], et = "Sele
5868
5873
  open: _,
5869
5874
  onOpenChange: E,
5870
5875
  dir: M,
5871
- triggerPointerDownPosRef: O,
5876
+ triggerPointerDownPosRef: k,
5872
5877
  disabled: g,
5873
5878
  children: [
5874
5879
  /* @__PURE__ */ m(Dn.Provider, { scope: t, children: /* @__PURE__ */ m(
@@ -5913,7 +5918,7 @@ var Cg = [" ", "Enter", "ArrowUp", "ArrowDown"], Sg = [" ", "Enter"], et = "Sele
5913
5918
  ws.displayName = et;
5914
5919
  var ys = "SelectTrigger", Cs = c.forwardRef(
5915
5920
  (e, t) => {
5916
- const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = kn(n), s = Ke(ys, n), a = s.disabled || o, l = z(t, s.onTriggerChange), u = On(n), f = c.useRef("touch"), [d, g, p] = Gs((h) => {
5921
+ const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = On(n), s = Ke(ys, n), a = s.disabled || o, l = z(t, s.onTriggerChange), u = kn(n), f = c.useRef("touch"), [d, g, p] = Gs((h) => {
5917
5922
  const w = u().filter((S) => !S.disabled), y = w.find((S) => S.value === s.value), C = zs(w, h, y);
5918
5923
  C !== void 0 && s.onValueChange(C.value);
5919
5924
  }), v = (h) => {
@@ -6019,9 +6024,9 @@ var Se = 10, [_s, qe] = yt(tt), Ig = "SelectContentImpl", Mg = /* @__PURE__ */ R
6019
6024
  avoidCollisions: w,
6020
6025
  //
6021
6026
  ...y
6022
- } = e, C = Ke(tt, n), [S, b] = c.useState(null), [x, M] = c.useState(null), _ = z(t, (I) => b(I)), [E, F] = c.useState(null), [L, O] = c.useState(
6027
+ } = e, C = Ke(tt, n), [S, b] = c.useState(null), [x, M] = c.useState(null), _ = z(t, (I) => b(I)), [E, F] = c.useState(null), [L, k] = c.useState(
6023
6028
  null
6024
- ), B = On(n), [U, W] = c.useState(!1), K = c.useRef(!1);
6029
+ ), B = kn(n), [U, W] = c.useState(!1), K = c.useRef(!1);
6025
6030
  c.useEffect(() => {
6026
6031
  if (S) return An(S);
6027
6032
  }, [S]), Rn();
@@ -6073,7 +6078,7 @@ var Se = 10, [_s, qe] = yt(tt), Ig = "SelectContentImpl", Mg = /* @__PURE__ */ R
6073
6078
  ), J = c.useCallback(() => S?.focus(), [S]), Q = c.useCallback(
6074
6079
  (I, X, ne) => {
6075
6080
  const Y = !K.current && !ne;
6076
- (C.value !== void 0 && C.value === X || Y) && O(I);
6081
+ (C.value !== void 0 && C.value === X || Y) && k(I);
6077
6082
  },
6078
6083
  [C.value]
6079
6084
  ), de = o === "popper" ? Io : Is, se = de === Io ? {
@@ -6105,7 +6110,7 @@ var Se = 10, [_s, qe] = yt(tt), Ig = "SelectContentImpl", Mg = /* @__PURE__ */ R
6105
6110
  isPositioned: U,
6106
6111
  searchRef: te,
6107
6112
  children: /* @__PURE__ */ m(Bt, { as: Mg, allowPinchZoom: !0, children: /* @__PURE__ */ m(
6108
- Ot,
6113
+ kt,
6109
6114
  {
6110
6115
  asChild: !0,
6111
6116
  trapped: C.open,
@@ -6167,7 +6172,7 @@ var Se = 10, [_s, qe] = yt(tt), Ig = "SelectContentImpl", Mg = /* @__PURE__ */ R
6167
6172
  );
6168
6173
  Ps.displayName = Ig;
6169
6174
  var Ng = "SelectItemAlignedPosition", Is = c.forwardRef((e, t) => {
6170
- const { __scopeSelect: n, onPlaced: o, ...r } = e, i = Ke(tt, n), s = qe(tt, n), [a, l] = c.useState(null), [u, f] = c.useState(null), d = z(t, (_) => f(_)), g = On(n), p = c.useRef(!1), v = c.useRef(!0), { viewport: h, selectedItem: w, selectedItemText: y, focusSelectedItem: C } = s, S = c.useCallback(() => {
6175
+ const { __scopeSelect: n, onPlaced: o, ...r } = e, i = Ke(tt, n), s = qe(tt, n), [a, l] = c.useState(null), [u, f] = c.useState(null), d = z(t, (_) => f(_)), g = kn(n), p = c.useRef(!1), v = c.useRef(!0), { viewport: h, selectedItem: w, selectedItemText: y, focusSelectedItem: C } = s, S = c.useCallback(() => {
6171
6176
  if (i.trigger && i.valueNode && a && u && h && w && y) {
6172
6177
  const _ = i.trigger.getBoundingClientRect(), E = u.getBoundingClientRect(), F = i.valueNode.getBoundingClientRect(), L = y.getBoundingClientRect();
6173
6178
  if (i.dir !== "rtl") {
@@ -6188,9 +6193,9 @@ var Ng = "SelectItemAlignedPosition", Is = c.forwardRef((e, t) => {
6188
6193
  ]);
6189
6194
  a.style.minWidth = Ze + "px", a.style.right = Zn + "px";
6190
6195
  }
6191
- const O = g(), B = window.innerHeight - Se * 2, U = h.scrollHeight, W = window.getComputedStyle(u), K = parseInt(W.borderTopWidth, 10), D = parseInt(W.paddingTop, 10), G = parseInt(W.borderBottomWidth, 10), R = parseInt(W.paddingBottom, 10), N = K + D + U + R + G, te = Math.min(w.offsetHeight * 5, N), ie = window.getComputedStyle(h), ce = parseInt(ie.paddingTop, 10), J = parseInt(ie.paddingBottom, 10), Q = _.top + _.height / 2 - Se, de = B - Q, se = w.offsetHeight / 2, I = w.offsetTop + se, X = K + D + I, ne = N - X;
6196
+ const k = g(), B = window.innerHeight - Se * 2, U = h.scrollHeight, W = window.getComputedStyle(u), K = parseInt(W.borderTopWidth, 10), D = parseInt(W.paddingTop, 10), G = parseInt(W.borderBottomWidth, 10), R = parseInt(W.paddingBottom, 10), N = K + D + U + R + G, te = Math.min(w.offsetHeight * 5, N), ie = window.getComputedStyle(h), ce = parseInt(ie.paddingTop, 10), J = parseInt(ie.paddingBottom, 10), Q = _.top + _.height / 2 - Se, de = B - Q, se = w.offsetHeight / 2, I = w.offsetTop + se, X = K + D + I, ne = N - X;
6192
6197
  if (X <= Q) {
6193
- const Z = O.length > 0 && w === O[O.length - 1].ref.current;
6198
+ const Z = k.length > 0 && w === k[k.length - 1].ref.current;
6194
6199
  a.style.bottom = "0px";
6195
6200
  const ee = u.clientHeight - h.offsetTop - h.offsetHeight, we = Math.max(
6196
6201
  de,
@@ -6199,7 +6204,7 @@ var Ng = "SelectItemAlignedPosition", Is = c.forwardRef((e, t) => {
6199
6204
  ), Ze = X + we;
6200
6205
  a.style.height = Ze + "px";
6201
6206
  } else {
6202
- const Z = O.length > 0 && w === O[0].ref.current;
6207
+ const Z = k.length > 0 && w === k[0].ref.current;
6203
6208
  a.style.top = "0px";
6204
6209
  const we = Math.max(
6205
6210
  Q,
@@ -6277,7 +6282,7 @@ var Ag = "SelectPopperPosition", Io = c.forwardRef((e, t) => {
6277
6282
  align: o = "start",
6278
6283
  collisionPadding: r = Se,
6279
6284
  ...i
6280
- } = e, s = kn(n);
6285
+ } = e, s = On(n);
6281
6286
  return /* @__PURE__ */ m(
6282
6287
  Mn,
6283
6288
  {
@@ -6353,16 +6358,16 @@ var [Tg, tr] = yt(tt, {}), Mo = "SelectViewport", Ms = c.forwardRef(
6353
6358
  }
6354
6359
  );
6355
6360
  Ms.displayName = Mo;
6356
- var Ns = "SelectGroup", [Dg, Og] = yt(Ns), kg = c.forwardRef(
6361
+ var Ns = "SelectGroup", [Dg, kg] = yt(Ns), Og = c.forwardRef(
6357
6362
  (e, t) => {
6358
6363
  const { __scopeSelect: n, ...o } = e, r = fe();
6359
6364
  return /* @__PURE__ */ m(Dg, { scope: n, id: r, children: /* @__PURE__ */ m($.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
6360
6365
  }
6361
6366
  );
6362
- kg.displayName = Ns;
6367
+ Og.displayName = Ns;
6363
6368
  var As = "SelectLabel", $g = c.forwardRef(
6364
6369
  (e, t) => {
6365
- const { __scopeSelect: n, ...o } = e, r = Og(As, n);
6370
+ const { __scopeSelect: n, ...o } = e, r = kg(As, n);
6366
6371
  return /* @__PURE__ */ m($.div, { id: r.id, ...o, ref: t });
6367
6372
  }
6368
6373
  );
@@ -6445,7 +6450,7 @@ var vn = "SelectItem", [Fg, Ts] = yt(vn), Ds = c.forwardRef(
6445
6450
  }
6446
6451
  );
6447
6452
  Ds.displayName = vn;
6448
- var Et = "SelectItemText", Os = c.forwardRef(
6453
+ var Et = "SelectItemText", ks = c.forwardRef(
6449
6454
  (e, t) => {
6450
6455
  const { __scopeSelect: n, className: o, style: r, ...i } = e, s = Ke(Et, n), a = qe(Et, n), l = Ts(Et, n), u = Eg(Et, n), [f, d] = c.useState(null), g = z(
6451
6456
  t,
@@ -6462,14 +6467,14 @@ var Et = "SelectItemText", Os = c.forwardRef(
6462
6467
  ] });
6463
6468
  }
6464
6469
  );
6465
- Os.displayName = Et;
6466
- var ks = "SelectItemIndicator", $s = c.forwardRef(
6470
+ ks.displayName = Et;
6471
+ var Os = "SelectItemIndicator", $s = c.forwardRef(
6467
6472
  (e, t) => {
6468
6473
  const { __scopeSelect: n, ...o } = e;
6469
- return Ts(ks, n).isSelected ? /* @__PURE__ */ m($.span, { "aria-hidden": !0, ...o, ref: t }) : null;
6474
+ return Ts(Os, n).isSelected ? /* @__PURE__ */ m($.span, { "aria-hidden": !0, ...o, ref: t }) : null;
6470
6475
  }
6471
6476
  );
6472
- $s.displayName = ks;
6477
+ $s.displayName = Os;
6473
6478
  var No = "SelectScrollUpButton", Fs = c.forwardRef((e, t) => {
6474
6479
  const n = qe(No, e.__scopeSelect), o = tr(No, e.__scopeSelect), [r, i] = c.useState(!1), s = z(t, o.onScrollButtonChange);
6475
6480
  return re(() => {
@@ -6519,7 +6524,7 @@ var Ao = "SelectScrollDownButton", Ls = c.forwardRef((e, t) => {
6519
6524
  });
6520
6525
  Ls.displayName = Ao;
6521
6526
  var Vs = c.forwardRef((e, t) => {
6522
- const { __scopeSelect: n, onAutoScroll: o, ...r } = e, i = qe("SelectScrollButton", n), s = c.useRef(null), a = On(n), l = c.useCallback(() => {
6527
+ const { __scopeSelect: n, onAutoScroll: o, ...r } = e, i = qe("SelectScrollButton", n), s = c.useRef(null), a = kn(n), l = c.useCallback(() => {
6523
6528
  s.current !== null && (window.clearInterval(s.current), s.current = null);
6524
6529
  }, []);
6525
6530
  return c.useEffect(() => () => l(), [l]), re(() => {
@@ -6551,7 +6556,7 @@ var Vs = c.forwardRef((e, t) => {
6551
6556
  Vg.displayName = Lg;
6552
6557
  var To = "SelectArrow", Hg = c.forwardRef(
6553
6558
  (e, t) => {
6554
- const { __scopeSelect: n, ...o } = e, r = kn(n), i = Ke(To, n), s = qe(To, n);
6559
+ const { __scopeSelect: n, ...o } = e, r = On(n), i = Ke(To, n), s = qe(To, n);
6555
6560
  return i.open && s.position === "popper" ? /* @__PURE__ */ m(Nn, { ...r, ...o, ref: t }) : null;
6556
6561
  }
6557
6562
  );
@@ -6611,7 +6616,7 @@ function zs(e, t, n) {
6611
6616
  function Gg(e, t) {
6612
6617
  return e.map((n, o) => e[(t + o) % e.length]);
6613
6618
  }
6614
- var zg = ws, Wg = Cs, Ug = bs, jg = xs, Kg = Rs, qg = Es, Yg = Ms, Xg = Ds, Zg = Os, Qg = $s, Jg = Fs, em = Ls;
6619
+ var zg = ws, Wg = Cs, Ug = bs, jg = xs, Kg = Rs, qg = Es, Yg = Ms, Xg = Ds, Zg = ks, Qg = $s, Jg = Fs, em = Ls;
6615
6620
  const tm = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), nm = (e) => e.replace(
6616
6621
  /^([A-Z])|[\s-_]+(\w)/g,
6617
6622
  (t, n, o) => o ? o.toUpperCase() : n.toLowerCase()
@@ -6735,7 +6740,7 @@ const pm = [
6735
6740
  Wg,
6736
6741
  {
6737
6742
  ref: l,
6738
- className: k(
6743
+ className: O(
6739
6744
  mm({ variant: i ? "error" : t, size: n }),
6740
6745
  e
6741
6746
  ),
@@ -7091,7 +7096,7 @@ const Rm = Ue(
7091
7096
  {
7092
7097
  ref: l,
7093
7098
  id: f,
7094
- className: k(
7099
+ className: O(
7095
7100
  Rm({ variant: i ? "error" : t, size: n }),
7096
7101
  e
7097
7102
  ),
@@ -7099,7 +7104,7 @@ const Rm = Ue(
7099
7104
  children: /* @__PURE__ */ m(
7100
7105
  Xs,
7101
7106
  {
7102
- className: k("flex items-center justify-center text-current"),
7107
+ className: O("flex items-center justify-center text-current"),
7103
7108
  children: /* @__PURE__ */ m(nr, { className: "h-4 w-4" })
7104
7109
  }
7105
7110
  )
@@ -7162,7 +7167,7 @@ const Mm = Ue(
7162
7167
  ta,
7163
7168
  {
7164
7169
  ref: n,
7165
- className: k(Mm(), e),
7170
+ className: O(Mm(), e),
7166
7171
  ...t
7167
7172
  }
7168
7173
  ));
@@ -7191,8 +7196,8 @@ var Am = [
7191
7196
  return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ m(l, { ...a, ref: i });
7192
7197
  });
7193
7198
  return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
7194
- }, {}), Dm = "Separator", ui = "horizontal", Om = ["horizontal", "vertical"], na = c.forwardRef((e, t) => {
7195
- const { decorative: n, orientation: o = ui, ...r } = e, i = km(o) ? o : ui, a = n ? { role: "none" } : { "aria-orientation": i === "vertical" ? i : void 0, role: "separator" };
7199
+ }, {}), Dm = "Separator", ui = "horizontal", km = ["horizontal", "vertical"], na = c.forwardRef((e, t) => {
7200
+ const { decorative: n, orientation: o = ui, ...r } = e, i = Om(o) ? o : ui, a = n ? { role: "none" } : { "aria-orientation": i === "vertical" ? i : void 0, role: "separator" };
7196
7201
  return /* @__PURE__ */ m(
7197
7202
  Tm.div,
7198
7203
  {
@@ -7204,8 +7209,8 @@ var Am = [
7204
7209
  );
7205
7210
  });
7206
7211
  na.displayName = Dm;
7207
- function km(e) {
7208
- return Om.includes(e);
7212
+ function Om(e) {
7213
+ return km.includes(e);
7209
7214
  }
7210
7215
  var oa = na;
7211
7216
  const $m = c.forwardRef(
@@ -7215,7 +7220,7 @@ const $m = c.forwardRef(
7215
7220
  ref: r,
7216
7221
  decorative: n,
7217
7222
  orientation: t,
7218
- className: k(
7223
+ className: O(
7219
7224
  "shrink-0 bg-border",
7220
7225
  t === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
7221
7226
  e
@@ -7475,7 +7480,7 @@ const Ym = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
7475
7480
  ua,
7476
7481
  {
7477
7482
  ref: n,
7478
- className: k(
7483
+ className: O(
7479
7484
  "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
7480
7485
  e
7481
7486
  ),
@@ -7487,7 +7492,7 @@ const Xm = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
7487
7492
  da,
7488
7493
  {
7489
7494
  ref: n,
7490
- className: k("aspect-square h-full w-full", e),
7495
+ className: O("aspect-square h-full w-full", e),
7491
7496
  ...t
7492
7497
  }
7493
7498
  ));
@@ -7496,7 +7501,7 @@ const Zm = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
7496
7501
  fa,
7497
7502
  {
7498
7503
  ref: n,
7499
- className: k(
7504
+ className: O(
7500
7505
  "flex h-full w-full items-center justify-center rounded-full bg-muted",
7501
7506
  e
7502
7507
  ),
@@ -7511,7 +7516,7 @@ function QC({
7511
7516
  return /* @__PURE__ */ m(
7512
7517
  "div",
7513
7518
  {
7514
- className: k("animate-pulse rounded-md bg-muted", e),
7519
+ className: O("animate-pulse rounded-md bg-muted", e),
7515
7520
  ...t
7516
7521
  }
7517
7522
  );
@@ -7668,7 +7673,7 @@ const lh = c.forwardRef(({ className: e, value: t, ...n }, o) => /* @__PURE__ */
7668
7673
  wa,
7669
7674
  {
7670
7675
  ref: o,
7671
- className: k(
7676
+ className: O(
7672
7677
  "relative h-4 w-full overflow-hidden rounded-full bg-secondary",
7673
7678
  e
7674
7679
  ),
@@ -7803,7 +7808,7 @@ var Ra = ya, ph = Sa;
7803
7808
  const gh = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
7804
7809
  Ra,
7805
7810
  {
7806
- className: k(
7811
+ className: O(
7807
7812
  "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
7808
7813
  e
7809
7814
  ),
@@ -7812,7 +7817,7 @@ const gh = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
7812
7817
  children: /* @__PURE__ */ m(
7813
7818
  ph,
7814
7819
  {
7815
- className: k(
7820
+ className: O(
7816
7821
  "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
7817
7822
  )
7818
7823
  }
@@ -7886,7 +7891,7 @@ var Ch = c.forwardRef((e, t) => {
7886
7891
  if (E.target === E.currentTarget && F && !y) {
7887
7892
  const L = new CustomEvent(fo, mh);
7888
7893
  if (E.currentTarget.dispatchEvent(L), !L.defaultPrevented) {
7889
- const O = b().filter((D) => D.focusable), B = O.find((D) => D.active), U = O.find((D) => D.id === h), K = [B, U, ...O].filter(
7894
+ const k = b().filter((D) => D.focusable), B = k.find((D) => D.active), U = k.find((D) => D.id === h), K = [B, U, ...k].filter(
7890
7895
  Boolean
7891
7896
  ).map((D) => D.ref.current);
7892
7897
  Ma(K, f);
@@ -8004,7 +8009,7 @@ var lr = _a, cr = Ia, ur = "Radio", [Eh, Na] = ue(ur), [_h, Ph] = Eh(ur), Aa = c
8004
8009
  type: "button",
8005
8010
  role: "radio",
8006
8011
  "aria-checked": r,
8007
- "data-state": ka(r),
8012
+ "data-state": Oa(r),
8008
8013
  "data-disabled": s ? "" : void 0,
8009
8014
  disabled: s,
8010
8015
  value: a,
@@ -8016,7 +8021,7 @@ var lr = _a, cr = Ia, ur = "Radio", [Eh, Na] = ue(ur), [_h, Ph] = Eh(ur), Aa = c
8016
8021
  }
8017
8022
  ),
8018
8023
  h && /* @__PURE__ */ m(
8019
- Oa,
8024
+ ka,
8020
8025
  {
8021
8026
  control: d,
8022
8027
  bubbles: !v.current,
@@ -8039,7 +8044,7 @@ var Ta = "RadioIndicator", Da = c.forwardRef(
8039
8044
  return /* @__PURE__ */ m(pe, { present: o || i.checked, children: /* @__PURE__ */ m(
8040
8045
  $.span,
8041
8046
  {
8042
- "data-state": ka(i.checked),
8047
+ "data-state": Oa(i.checked),
8043
8048
  "data-disabled": i.disabled ? "" : void 0,
8044
8049
  ...r,
8045
8050
  ref: t
@@ -8048,7 +8053,7 @@ var Ta = "RadioIndicator", Da = c.forwardRef(
8048
8053
  }
8049
8054
  );
8050
8055
  Da.displayName = Ta;
8051
- var Ih = "RadioBubbleInput", Oa = c.forwardRef(
8056
+ var Ih = "RadioBubbleInput", ka = c.forwardRef(
8052
8057
  ({
8053
8058
  __scopeRadio: e,
8054
8059
  control: t,
@@ -8089,8 +8094,8 @@ var Ih = "RadioBubbleInput", Oa = c.forwardRef(
8089
8094
  );
8090
8095
  }
8091
8096
  );
8092
- Oa.displayName = Ih;
8093
- function ka(e) {
8097
+ ka.displayName = Ih;
8098
+ function Oa(e) {
8094
8099
  return e ? "checked" : "unchecked";
8095
8100
  }
8096
8101
  var Mh = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Ln = "RadioGroup", [Nh] = ue(Ln, [
@@ -8200,26 +8205,26 @@ var Dh = "RadioGroupIndicator", Ba = c.forwardRef(
8200
8205
  }
8201
8206
  );
8202
8207
  Ba.displayName = Dh;
8203
- var Ga = La, za = Ha, Oh = Ba;
8204
- const kh = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
8208
+ var Ga = La, za = Ha, kh = Ba;
8209
+ const Oh = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
8205
8210
  Ga,
8206
8211
  {
8207
- className: k("grid gap-2", e),
8212
+ className: O("grid gap-2", e),
8208
8213
  ...t,
8209
8214
  ref: n
8210
8215
  }
8211
8216
  ));
8212
- kh.displayName = Ga.displayName;
8217
+ Oh.displayName = Ga.displayName;
8213
8218
  const $h = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
8214
8219
  za,
8215
8220
  {
8216
8221
  ref: n,
8217
- className: k(
8222
+ className: O(
8218
8223
  "aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
8219
8224
  e
8220
8225
  ),
8221
8226
  ...t,
8222
- children: /* @__PURE__ */ m(Oh, { className: "flex items-center justify-center", children: /* @__PURE__ */ m(Us, { className: "h-2.5 w-2.5 fill-current text-current" }) })
8227
+ children: /* @__PURE__ */ m(kh, { className: "flex items-center justify-center", children: /* @__PURE__ */ m(Us, { className: "h-2.5 w-2.5 fill-current text-current" }) })
8223
8228
  }
8224
8229
  ));
8225
8230
  $h.displayName = za.displayName;
@@ -8228,7 +8233,7 @@ var Wa = ["PageUp", "PageDown"], Ua = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
8228
8233
  "from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
8229
8234
  "from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
8230
8235
  "from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
8231
- }, bt = "Slider", [Oo, Fh, Lh] = xn(bt), [Ka] = ue(bt, [
8236
+ }, bt = "Slider", [ko, Fh, Lh] = xn(bt), [Ka] = ue(bt, [
8232
8237
  Lh
8233
8238
  ]), [Vh, Vn] = Ka(bt), qa = c.forwardRef(
8234
8239
  (e, t) => {
@@ -8252,23 +8257,23 @@ var Wa = ["PageUp", "PageDown"], Ua = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
8252
8257
  } = e, w = c.useRef(/* @__PURE__ */ new Set()), y = c.useRef(0), S = s === "horizontal" ? Hh : Bh, [b = [], x] = he({
8253
8258
  prop: f,
8254
8259
  defaultProp: u,
8255
- onChange: (O) => {
8256
- [...w.current][y.current]?.focus(), d(O);
8260
+ onChange: (k) => {
8261
+ [...w.current][y.current]?.focus(), d(k);
8257
8262
  }
8258
8263
  }), M = c.useRef(b);
8259
- function _(O) {
8260
- const B = jh(b, O);
8261
- L(O, B);
8264
+ function _(k) {
8265
+ const B = jh(b, k);
8266
+ L(k, B);
8262
8267
  }
8263
- function E(O) {
8264
- L(O, y.current);
8268
+ function E(k) {
8269
+ L(k, y.current);
8265
8270
  }
8266
8271
  function F() {
8267
- const O = M.current[y.current];
8268
- b[y.current] !== O && g(b);
8272
+ const k = M.current[y.current];
8273
+ b[y.current] !== k && g(b);
8269
8274
  }
8270
- function L(O, B, { commit: U } = { commit: !1 }) {
8271
- const W = Xh(i), K = Zh(Math.round((O - o) / i) * i + o, W), D = fn(K, [o, r]);
8275
+ function L(k, B, { commit: U } = { commit: !1 }) {
8276
+ const W = Xh(i), K = Zh(Math.round((k - o) / i) * i + o, W), D = fn(K, [o, r]);
8272
8277
  x((G = []) => {
8273
8278
  const R = Wh(G, D, B);
8274
8279
  if (Yh(R, l * i)) {
@@ -8292,7 +8297,7 @@ var Wa = ["PageUp", "PageDown"], Ua = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
8292
8297
  values: b,
8293
8298
  orientation: s,
8294
8299
  form: v,
8295
- children: /* @__PURE__ */ m(Oo.Provider, { scope: e.__scopeSlider, children: /* @__PURE__ */ m(Oo.Slot, { scope: e.__scopeSlider, children: /* @__PURE__ */ m(
8300
+ children: /* @__PURE__ */ m(ko.Provider, { scope: e.__scopeSlider, children: /* @__PURE__ */ m(ko.Slot, { scope: e.__scopeSlider, children: /* @__PURE__ */ m(
8296
8301
  S,
8297
8302
  {
8298
8303
  "aria-disabled": a,
@@ -8310,9 +8315,9 @@ var Wa = ["PageUp", "PageDown"], Ua = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
8310
8315
  onSlideEnd: a ? void 0 : F,
8311
8316
  onHomeKeyDown: () => !a && L(o, 0, { commit: !0 }),
8312
8317
  onEndKeyDown: () => !a && L(r, b.length - 1, { commit: !0 }),
8313
- onStepKeyDown: ({ event: O, direction: B }) => {
8318
+ onStepKeyDown: ({ event: k, direction: B }) => {
8314
8319
  if (!a) {
8315
- const K = Wa.includes(O.key) || O.shiftKey && Ua.includes(O.key) ? 10 : 1, D = y.current, G = b[D], R = i * K * B;
8320
+ const K = Wa.includes(k.key) || k.shiftKey && Ua.includes(k.key) ? 10 : 1, D = y.current, G = b[D], R = i * K * B;
8316
8321
  L(G + R, D, { commit: !0 });
8317
8322
  }
8318
8323
  }
@@ -8487,9 +8492,9 @@ var [Ya, Xa] = Ka(bt, {
8487
8492
  }
8488
8493
  );
8489
8494
  Ja.displayName = Qa;
8490
- var ko = "SliderRange", el = c.forwardRef(
8495
+ var Oo = "SliderRange", el = c.forwardRef(
8491
8496
  (e, t) => {
8492
- const { __scopeSlider: n, ...o } = e, r = Vn(ko, n), i = Xa(ko, n), s = c.useRef(null), a = z(t, s), l = r.values.length, u = r.values.map(
8497
+ const { __scopeSlider: n, ...o } = e, r = Vn(Oo, n), i = Xa(Oo, n), s = c.useRef(null), a = z(t, s), l = r.values.length, u = r.values.map(
8493
8498
  (g) => ol(g, r.min, r.max)
8494
8499
  ), f = l > 1 ? Math.min(...u) : 0, d = 100 - Math.max(...u);
8495
8500
  return /* @__PURE__ */ m(
@@ -8508,7 +8513,7 @@ var ko = "SliderRange", el = c.forwardRef(
8508
8513
  );
8509
8514
  }
8510
8515
  );
8511
- el.displayName = ko;
8516
+ el.displayName = Oo;
8512
8517
  var $o = "SliderThumb", tl = c.forwardRef(
8513
8518
  (e, t) => {
8514
8519
  const n = Fh(e.__scopeSlider), [o, r] = c.useState(null), i = z(t, (a) => r(a)), s = c.useMemo(
@@ -8534,7 +8539,7 @@ var $o = "SliderThumb", tl = c.forwardRef(
8534
8539
  [a.startEdge]: `calc(${v}% + ${y}px)`
8535
8540
  },
8536
8541
  children: [
8537
- /* @__PURE__ */ m(Oo.ItemSlot, { scope: e.__scopeSlider, children: /* @__PURE__ */ m(
8542
+ /* @__PURE__ */ m(ko.ItemSlot, { scope: e.__scopeSlider, children: /* @__PURE__ */ m(
8538
8543
  $.span,
8539
8544
  {
8540
8545
  role: "slider",
@@ -8641,7 +8646,7 @@ const tv = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ q(
8641
8646
  rl,
8642
8647
  {
8643
8648
  ref: n,
8644
- className: k(
8649
+ className: O(
8645
8650
  "relative flex w-full touch-none select-none items-center",
8646
8651
  e
8647
8652
  ),
@@ -8657,7 +8662,7 @@ const nv = c.forwardRef(
8657
8662
  ({ className: e, ...t }, n) => /* @__PURE__ */ m(
8658
8663
  "textarea",
8659
8664
  {
8660
- className: k(
8665
+ className: O(
8661
8666
  "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
8662
8667
  e
8663
8668
  ),
@@ -8685,7 +8690,7 @@ const ov = Ue(
8685
8690
  {
8686
8691
  ref: o,
8687
8692
  role: "alert",
8688
- className: k(ov({ variant: t }), e),
8693
+ className: O(ov({ variant: t }), e),
8689
8694
  ...n
8690
8695
  }
8691
8696
  ));
@@ -8694,7 +8699,10 @@ const iv = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
8694
8699
  "h5",
8695
8700
  {
8696
8701
  ref: n,
8697
- className: k("mb-1 font-medium leading-none tracking-tight", e),
8702
+ className: O(
8703
+ "mb-1 font-medium leading-none tracking-tight text-foreground",
8704
+ e
8705
+ ),
8698
8706
  ...t
8699
8707
  }
8700
8708
  ));
@@ -8703,7 +8711,7 @@ const sv = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
8703
8711
  "div",
8704
8712
  {
8705
8713
  ref: n,
8706
- className: k("text-sm [&_p]:leading-relaxed", e),
8714
+ className: O("text-sm text-foreground [&_p]:leading-relaxed", e),
8707
8715
  ...t
8708
8716
  }
8709
8717
  ));
@@ -8893,7 +8901,7 @@ var vv = c.forwardRef(
8893
8901
  const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: i, ...s } = e, a = Ee(nt, n), l = c.useRef(null), u = z(t, l);
8894
8902
  return Rn(), /* @__PURE__ */ q(Be, { children: [
8895
8903
  /* @__PURE__ */ m(
8896
- Ot,
8904
+ kt,
8897
8905
  {
8898
8906
  asChild: !0,
8899
8907
  loop: !0,
@@ -8977,7 +8985,7 @@ const eS = bv, tS = xv, Ev = Rv, nS = El, _l = c.forwardRef(({ className: e, ...
8977
8985
  Sl,
8978
8986
  {
8979
8987
  ref: n,
8980
- className: k(
8988
+ className: O(
8981
8989
  "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
8982
8990
  e
8983
8991
  ),
@@ -8991,7 +8999,7 @@ const _v = c.forwardRef(({ className: e, children: t, ...n }, o) => /* @__PURE__
8991
8999
  bl,
8992
9000
  {
8993
9001
  ref: o,
8994
- className: k(
9002
+ className: O(
8995
9003
  "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
8996
9004
  e
8997
9005
  ),
@@ -9013,7 +9021,7 @@ const Pv = ({
9013
9021
  }) => /* @__PURE__ */ m(
9014
9022
  "div",
9015
9023
  {
9016
- className: k(
9024
+ className: O(
9017
9025
  "flex flex-col space-y-1.5 text-center sm:text-left",
9018
9026
  e
9019
9027
  ),
@@ -9027,7 +9035,7 @@ const Iv = ({
9027
9035
  }) => /* @__PURE__ */ m(
9028
9036
  "div",
9029
9037
  {
9030
- className: k(
9038
+ className: O(
9031
9039
  "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
9032
9040
  e
9033
9041
  ),
@@ -9039,7 +9047,7 @@ const Mv = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
9039
9047
  xl,
9040
9048
  {
9041
9049
  ref: n,
9042
- className: k(
9050
+ className: O(
9043
9051
  "text-lg font-semibold leading-none tracking-tight",
9044
9052
  e
9045
9053
  ),
@@ -9051,7 +9059,7 @@ const Nv = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
9051
9059
  Rl,
9052
9060
  {
9053
9061
  ref: n,
9054
- className: k("text-sm text-muted-foreground", e),
9062
+ className: O("text-sm text-muted-foreground", e),
9055
9063
  ...t
9056
9064
  }
9057
9065
  ));
@@ -9059,7 +9067,7 @@ Nv.displayName = Rl.displayName;
9059
9067
  // @__NO_SIDE_EFFECTS__
9060
9068
  function Av(e) {
9061
9069
  const t = /* @__PURE__ */ Tv(e), n = c.forwardRef((o, r) => {
9062
- const { children: i, ...s } = o, a = c.Children.toArray(i), l = a.find(Ov);
9070
+ const { children: i, ...s } = o, a = c.Children.toArray(i), l = a.find(kv);
9063
9071
  if (l) {
9064
9072
  const u = l.props.children, f = a.map((d) => d === l ? c.Children.count(u) > 1 ? c.Children.only(null) : c.isValidElement(u) ? u.props.children : null : d);
9065
9073
  return /* @__PURE__ */ m(t, { ...s, ref: r, children: c.isValidElement(u) ? c.cloneElement(u, void 0, f) : null });
@@ -9073,7 +9081,7 @@ function Tv(e) {
9073
9081
  const t = c.forwardRef((n, o) => {
9074
9082
  const { children: r, ...i } = n;
9075
9083
  if (c.isValidElement(r)) {
9076
- const s = $v(r), a = kv(i, r.props);
9084
+ const s = $v(r), a = Ov(i, r.props);
9077
9085
  return r.type !== c.Fragment && (a.ref = o ? Ne(o, s) : s), c.cloneElement(r, a);
9078
9086
  }
9079
9087
  return c.Children.count(r) > 1 ? c.Children.only(null) : null;
@@ -9081,10 +9089,10 @@ function Tv(e) {
9081
9089
  return t.displayName = `${e}.SlotClone`, t;
9082
9090
  }
9083
9091
  var Dv = /* @__PURE__ */ Symbol("radix.slottable");
9084
- function Ov(e) {
9092
+ function kv(e) {
9085
9093
  return c.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Dv;
9086
9094
  }
9087
- function kv(e, t) {
9095
+ function Ov(e, t) {
9088
9096
  const n = { ...t };
9089
9097
  for (const o in t) {
9090
9098
  const r = e[o], i = t[o];
@@ -9155,7 +9163,7 @@ var hr = "MenuPortal", [Uv, Tl] = ot(hr, {
9155
9163
  return /* @__PURE__ */ m(Uv, { scope: t, forceMount: n, children: /* @__PURE__ */ m(pe, { present: n || i.open, children: /* @__PURE__ */ m(Vt, { asChild: !0, container: r, children: o }) }) });
9156
9164
  };
9157
9165
  Dl.displayName = hr;
9158
- var ye = "MenuContent", [jv, vr] = ot(ye), Ol = c.forwardRef(
9166
+ var ye = "MenuContent", [jv, vr] = ot(ye), kl = c.forwardRef(
9159
9167
  (e, t) => {
9160
9168
  const n = Tl(ye, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = Ye(ye, e.__scopeMenu), s = Ut(ye, e.__scopeMenu);
9161
9169
  return /* @__PURE__ */ m(Nt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ m(pe, { present: o || i.open, children: /* @__PURE__ */ m(Nt.Slot, { scope: e.__scopeMenu, children: s.modal ? /* @__PURE__ */ m(Kv, { ...r, ref: t }) : /* @__PURE__ */ m(qv, { ...r, ref: t }) }) }) });
@@ -9213,7 +9221,7 @@ var ye = "MenuContent", [jv, vr] = ot(ye), Ol = c.forwardRef(
9213
9221
  onDismiss: p,
9214
9222
  disableOutsideScroll: v,
9215
9223
  ...h
9216
- } = e, w = Ye(ye, n), y = Ut(ye, n), C = Wt(n), S = Ml(n), b = Bv(n), [x, M] = c.useState(null), _ = c.useRef(null), E = z(t, _, w.onContentChange), F = c.useRef(0), L = c.useRef(""), O = c.useRef(0), B = c.useRef(null), U = c.useRef("right"), W = c.useRef(0), K = v ? Bt : c.Fragment, D = v ? { as: Yv, allowPinchZoom: !0 } : void 0, G = (N) => {
9224
+ } = e, w = Ye(ye, n), y = Ut(ye, n), C = Wt(n), S = Ml(n), b = Bv(n), [x, M] = c.useState(null), _ = c.useRef(null), E = z(t, _, w.onContentChange), F = c.useRef(0), L = c.useRef(""), k = c.useRef(0), B = c.useRef(null), U = c.useRef("right"), W = c.useRef(0), K = v ? Bt : c.Fragment, D = v ? { as: Yv, allowPinchZoom: !0 } : void 0, G = (N) => {
9217
9225
  const te = L.current + N, ie = b().filter((I) => !I.disabled), ce = document.activeElement, J = ie.find((I) => I.ref.current === ce)?.textValue, Q = ie.map((I) => I.textValue), de = aw(Q, te, J), se = ie.find((I) => I.textValue === de)?.ref.current;
9218
9226
  (function I(X) {
9219
9227
  L.current = X, window.clearTimeout(F.current), X !== "" && (F.current = window.setTimeout(() => I(""), 1e3));
@@ -9244,12 +9252,12 @@ var ye = "MenuContent", [jv, vr] = ot(ye), Ol = c.forwardRef(
9244
9252
  },
9245
9253
  [R]
9246
9254
  ),
9247
- pointerGraceTimerRef: O,
9255
+ pointerGraceTimerRef: k,
9248
9256
  onPointerGraceIntentChange: c.useCallback((N) => {
9249
9257
  B.current = N;
9250
9258
  }, []),
9251
9259
  children: /* @__PURE__ */ m(K, { ...D, children: /* @__PURE__ */ m(
9252
- Ot,
9260
+ kt,
9253
9261
  {
9254
9262
  asChild: !0,
9255
9263
  trapped: r,
@@ -9327,7 +9335,7 @@ var ye = "MenuContent", [jv, vr] = ot(ye), Ol = c.forwardRef(
9327
9335
  );
9328
9336
  }
9329
9337
  );
9330
- Ol.displayName = ye;
9338
+ kl.displayName = ye;
9331
9339
  var Xv = "MenuGroup", yr = c.forwardRef(
9332
9340
  (e, t) => {
9333
9341
  const { __scopeMenu: n, ...o } = e;
@@ -9335,13 +9343,13 @@ var Xv = "MenuGroup", yr = c.forwardRef(
9335
9343
  }
9336
9344
  );
9337
9345
  yr.displayName = Xv;
9338
- var Zv = "MenuLabel", kl = c.forwardRef(
9346
+ var Zv = "MenuLabel", Ol = c.forwardRef(
9339
9347
  (e, t) => {
9340
9348
  const { __scopeMenu: n, ...o } = e;
9341
9349
  return /* @__PURE__ */ m($.div, { ...o, ref: t });
9342
9350
  }
9343
9351
  );
9344
- kl.displayName = Zv;
9352
+ Ol.displayName = Zv;
9345
9353
  var Cn = "MenuItem", vi = "menu.itemSelect", Bn = c.forwardRef(
9346
9354
  (e, t) => {
9347
9355
  const { disabled: n = !1, onSelect: o, ...r } = e, i = c.useRef(null), s = Ut(Cn, e.__scopeMenu), a = vr(Cn, e.__scopeMenu), l = z(t, i), u = c.useRef(!1), f = () => {
@@ -9679,7 +9687,7 @@ function cw(e, t) {
9679
9687
  function At(e) {
9680
9688
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
9681
9689
  }
9682
- var uw = Al, dw = mr, fw = Dl, pw = Ol, gw = yr, mw = kl, hw = Bn, vw = Fl, ww = Vl, yw = Bl, Cw = zl, Sw = Wl, bw = Ul, xw = Kl, Rw = ql, Ew = Xl, Gn = "DropdownMenu", [_w] = ue(
9690
+ var uw = Al, dw = mr, fw = Dl, pw = kl, gw = yr, mw = Ol, hw = Bn, vw = Fl, ww = Vl, yw = Bl, Cw = zl, Sw = Wl, bw = Ul, xw = Kl, Rw = ql, Ew = Xl, Gn = "DropdownMenu", [_w] = ue(
9683
9691
  Gn,
9684
9692
  [Il]
9685
9693
  ), le = Il(), [Pw, Ql] = _w(Gn), Jl = (e) => {
@@ -9807,16 +9815,16 @@ var Dw = "DropdownMenuRadioGroup", cc = c.forwardRef((e, t) => {
9807
9815
  return /* @__PURE__ */ m(ww, { ...r, ...o, ref: t });
9808
9816
  });
9809
9817
  cc.displayName = Dw;
9810
- var Ow = "DropdownMenuRadioItem", uc = c.forwardRef((e, t) => {
9818
+ var kw = "DropdownMenuRadioItem", uc = c.forwardRef((e, t) => {
9811
9819
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
9812
9820
  return /* @__PURE__ */ m(yw, { ...r, ...o, ref: t });
9813
9821
  });
9814
- uc.displayName = Ow;
9815
- var kw = "DropdownMenuItemIndicator", dc = c.forwardRef((e, t) => {
9822
+ uc.displayName = kw;
9823
+ var Ow = "DropdownMenuItemIndicator", dc = c.forwardRef((e, t) => {
9816
9824
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
9817
9825
  return /* @__PURE__ */ m(Cw, { ...r, ...o, ref: t });
9818
9826
  });
9819
- dc.displayName = kw;
9827
+ dc.displayName = Ow;
9820
9828
  var $w = "DropdownMenuSeparator", fc = c.forwardRef((e, t) => {
9821
9829
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
9822
9830
  return /* @__PURE__ */ m(Sw, { ...r, ...o, ref: t });
@@ -9867,7 +9875,7 @@ const oS = Gw, rS = zw, iS = Ww, sS = mc, aS = jw, lS = Uw, Kw = c.forwardRef(({
9867
9875
  xc,
9868
9876
  {
9869
9877
  ref: r,
9870
- className: k(
9878
+ className: O(
9871
9879
  "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
9872
9880
  t && "pl-8",
9873
9881
  e
@@ -9884,7 +9892,7 @@ const qw = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
9884
9892
  Rc,
9885
9893
  {
9886
9894
  ref: n,
9887
- className: k(
9895
+ className: O(
9888
9896
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
9889
9897
  e
9890
9898
  ),
@@ -9897,7 +9905,7 @@ const Yw = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, o) => /* @__
9897
9905
  {
9898
9906
  ref: o,
9899
9907
  sideOffset: t,
9900
- className: k(
9908
+ className: O(
9901
9909
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
9902
9910
  e
9903
9911
  ),
@@ -9909,7 +9917,7 @@ const Xw = c.forwardRef(({ className: e, inset: t, ...n }, o) => /* @__PURE__ */
9909
9917
  wc,
9910
9918
  {
9911
9919
  ref: o,
9912
- className: k(
9920
+ className: O(
9913
9921
  "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
9914
9922
  t && "pl-8",
9915
9923
  e
@@ -9922,7 +9930,7 @@ const Zw = c.forwardRef(({ className: e, children: t, checked: n, ...o }, r) =>
9922
9930
  yc,
9923
9931
  {
9924
9932
  ref: r,
9925
- className: k(
9933
+ className: O(
9926
9934
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
9927
9935
  e
9928
9936
  ),
@@ -9939,7 +9947,7 @@ const Qw = c.forwardRef(({ className: e, children: t, ...n }, o) => /* @__PURE__
9939
9947
  Cc,
9940
9948
  {
9941
9949
  ref: o,
9942
- className: k(
9950
+ className: O(
9943
9951
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
9944
9952
  e
9945
9953
  ),
@@ -9955,7 +9963,7 @@ const Jw = c.forwardRef(({ className: e, inset: t, ...n }, o) => /* @__PURE__ */
9955
9963
  vc,
9956
9964
  {
9957
9965
  ref: o,
9958
- className: k(
9966
+ className: O(
9959
9967
  "px-2 py-1.5 text-sm font-semibold",
9960
9968
  t && "pl-8",
9961
9969
  e
@@ -9968,7 +9976,7 @@ const ey = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
9968
9976
  bc,
9969
9977
  {
9970
9978
  ref: n,
9971
- className: k("-mx-1 my-1 h-px bg-muted", e),
9979
+ className: O("-mx-1 my-1 h-px bg-muted", e),
9972
9980
  ...t
9973
9981
  }
9974
9982
  ));
@@ -9979,7 +9987,7 @@ const ty = ({
9979
9987
  }) => /* @__PURE__ */ m(
9980
9988
  "span",
9981
9989
  {
9982
- className: k("ml-auto text-xs tracking-widest opacity-60", e),
9990
+ className: O("ml-auto text-xs tracking-widest opacity-60", e),
9983
9991
  ...t
9984
9992
  }
9985
9993
  );
@@ -10054,7 +10062,7 @@ var Pc = "TabsList", Ic = c.forwardRef(
10054
10062
  Ic.displayName = Pc;
10055
10063
  var Mc = "TabsTrigger", Nc = c.forwardRef(
10056
10064
  (e, t) => {
10057
- const { __scopeTabs: n, value: o, disabled: r = !1, ...i } = e, s = xr(Mc, n), a = Ec(n), l = Dc(s.baseId, o), u = Oc(s.baseId, o), f = o === s.value;
10065
+ const { __scopeTabs: n, value: o, disabled: r = !1, ...i } = e, s = xr(Mc, n), a = Ec(n), l = Dc(s.baseId, o), u = kc(s.baseId, o), f = o === s.value;
10058
10066
  return /* @__PURE__ */ m(
10059
10067
  cr,
10060
10068
  {
@@ -10094,7 +10102,7 @@ var Mc = "TabsTrigger", Nc = c.forwardRef(
10094
10102
  Nc.displayName = Mc;
10095
10103
  var Ac = "TabsContent", Tc = c.forwardRef(
10096
10104
  (e, t) => {
10097
- const { __scopeTabs: n, value: o, forceMount: r, children: i, ...s } = e, a = xr(Ac, n), l = Dc(a.baseId, o), u = Oc(a.baseId, o), f = o === a.value, d = c.useRef(f);
10105
+ const { __scopeTabs: n, value: o, forceMount: r, children: i, ...s } = e, a = xr(Ac, n), l = Dc(a.baseId, o), u = kc(a.baseId, o), f = o === a.value, d = c.useRef(f);
10098
10106
  return c.useEffect(() => {
10099
10107
  const g = requestAnimationFrame(() => d.current = !1);
10100
10108
  return () => cancelAnimationFrame(g);
@@ -10123,27 +10131,27 @@ Tc.displayName = Ac;
10123
10131
  function Dc(e, t) {
10124
10132
  return `${e}-trigger-${t}`;
10125
10133
  }
10126
- function Oc(e, t) {
10134
+ function kc(e, t) {
10127
10135
  return `${e}-content-${t}`;
10128
10136
  }
10129
- var ry = _c, kc = Ic, $c = Nc, Fc = Tc;
10137
+ var ry = _c, Oc = Ic, $c = Nc, Fc = Tc;
10130
10138
  const cS = ry, iy = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
10131
- kc,
10139
+ Oc,
10132
10140
  {
10133
10141
  ref: n,
10134
- className: k(
10142
+ className: O(
10135
10143
  "inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",
10136
10144
  e
10137
10145
  ),
10138
10146
  ...t
10139
10147
  }
10140
10148
  ));
10141
- iy.displayName = kc.displayName;
10149
+ iy.displayName = Oc.displayName;
10142
10150
  const sy = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
10143
10151
  $c,
10144
10152
  {
10145
10153
  ref: n,
10146
- className: k(
10154
+ className: O(
10147
10155
  "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",
10148
10156
  e
10149
10157
  ),
@@ -10155,7 +10163,7 @@ const ay = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
10155
10163
  Fc,
10156
10164
  {
10157
10165
  ref: n,
10158
- className: k(
10166
+ className: O(
10159
10167
  "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
10160
10168
  e
10161
10169
  ),
@@ -10167,18 +10175,18 @@ const Lc = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m("div",
10167
10175
  "table",
10168
10176
  {
10169
10177
  ref: n,
10170
- className: k("w-full caption-bottom text-sm", e),
10178
+ className: O("w-full caption-bottom text-sm", e),
10171
10179
  ...t
10172
10180
  }
10173
10181
  ) }));
10174
10182
  Lc.displayName = "Table";
10175
- const Vc = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m("thead", { ref: n, className: k("[&_tr]:border-b", e), ...t }));
10183
+ const Vc = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m("thead", { ref: n, className: O("[&_tr]:border-b", e), ...t }));
10176
10184
  Vc.displayName = "TableHeader";
10177
10185
  const Hc = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
10178
10186
  "tbody",
10179
10187
  {
10180
10188
  ref: n,
10181
- className: k("[&_tr:last-child]:border-0", e),
10189
+ className: O("[&_tr:last-child]:border-0", e),
10182
10190
  ...t
10183
10191
  }
10184
10192
  ));
@@ -10187,7 +10195,7 @@ const ly = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
10187
10195
  "tfoot",
10188
10196
  {
10189
10197
  ref: n,
10190
- className: k(
10198
+ className: O(
10191
10199
  "border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
10192
10200
  e
10193
10201
  ),
@@ -10199,7 +10207,7 @@ const cn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
10199
10207
  "tr",
10200
10208
  {
10201
10209
  ref: n,
10202
- className: k(
10210
+ className: O(
10203
10211
  "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
10204
10212
  e
10205
10213
  ),
@@ -10211,7 +10219,7 @@ const Bc = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
10211
10219
  "th",
10212
10220
  {
10213
10221
  ref: n,
10214
- className: k(
10222
+ className: O(
10215
10223
  "h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
10216
10224
  e
10217
10225
  ),
@@ -10223,7 +10231,7 @@ const Lo = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
10223
10231
  "td",
10224
10232
  {
10225
10233
  ref: n,
10226
- className: k("p-4 align-middle [&:has([role=checkbox])]:pr-0", e),
10234
+ className: O("p-4 align-middle [&:has([role=checkbox])]:pr-0", e),
10227
10235
  ...t
10228
10236
  }
10229
10237
  ));
@@ -10232,7 +10240,7 @@ const cy = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
10232
10240
  "caption",
10233
10241
  {
10234
10242
  ref: n,
10235
- className: k("mt-4 text-sm text-muted-foreground", e),
10243
+ className: O("mt-4 text-sm text-muted-foreground", e),
10236
10244
  ...t
10237
10245
  }
10238
10246
  ));
@@ -10436,7 +10444,7 @@ var my = "TooltipPortal", [uS, hy] = Wn(my, {
10436
10444
  },
10437
10445
  children: [
10438
10446
  /* @__PURE__ */ m(Cy, { children: o }),
10439
- /* @__PURE__ */ m(wy, { scope: n, isInside: !0, children: /* @__PURE__ */ m(Op, { id: l.contentId, role: "tooltip", children: r || o }) })
10447
+ /* @__PURE__ */ m(wy, { scope: n, isInside: !0, children: /* @__PURE__ */ m(kp, { id: l.contentId, role: "tooltip", children: r || o }) })
10440
10448
  ]
10441
10449
  }
10442
10450
  )
@@ -10553,7 +10561,7 @@ const dS = Iy, fS = My, pS = Ny, Ay = c.forwardRef(({ className: e, sideOffset:
10553
10561
  {
10554
10562
  ref: o,
10555
10563
  sideOffset: t,
10556
- className: k(
10564
+ className: O(
10557
10565
  "z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
10558
10566
  e
10559
10567
  ),
@@ -10564,7 +10572,7 @@ Ay.displayName = Yc.displayName;
10564
10572
  // @__NO_SIDE_EFFECTS__
10565
10573
  function Ty(e) {
10566
10574
  const t = /* @__PURE__ */ Dy(e), n = c.forwardRef((o, r) => {
10567
- const { children: i, ...s } = o, a = c.Children.toArray(i), l = a.find(ky);
10575
+ const { children: i, ...s } = o, a = c.Children.toArray(i), l = a.find(Oy);
10568
10576
  if (l) {
10569
10577
  const u = l.props.children, f = a.map((d) => d === l ? c.Children.count(u) > 1 ? c.Children.only(null) : c.isValidElement(u) ? u.props.children : null : d);
10570
10578
  return /* @__PURE__ */ m(t, { ...s, ref: r, children: c.isValidElement(u) ? c.cloneElement(u, void 0, f) : null });
@@ -10585,9 +10593,9 @@ function Dy(e) {
10585
10593
  });
10586
10594
  return t.displayName = `${e}.SlotClone`, t;
10587
10595
  }
10588
- var Oy = /* @__PURE__ */ Symbol("radix.slottable");
10589
- function ky(e) {
10590
- return c.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Oy;
10596
+ var ky = /* @__PURE__ */ Symbol("radix.slottable");
10597
+ function Oy(e) {
10598
+ return c.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ky;
10591
10599
  }
10592
10600
  function $y(e, t) {
10593
10601
  const n = { ...t };
@@ -10746,7 +10754,7 @@ var Gy = /* @__PURE__ */ Ty("PopoverContent.RemoveScroll"), zy = c.forwardRef(
10746
10754
  ...d
10747
10755
  } = e, g = Xe(ft, n), p = jt(n);
10748
10756
  return Rn(), /* @__PURE__ */ m(
10749
- Ot,
10757
+ kt,
10750
10758
  {
10751
10759
  asChild: !0,
10752
10760
  loop: !0,
@@ -10819,7 +10827,7 @@ const gS = qy, mS = Yy, Zy = c.forwardRef(({ className: e, align: t = "center",
10819
10827
  ref: r,
10820
10828
  align: t,
10821
10829
  sideOffset: n,
10822
- className: k(
10830
+ className: O(
10823
10831
  "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
10824
10832
  e
10825
10833
  ),
@@ -11169,7 +11177,7 @@ Pr.resolveFilterValue = (e) => {
11169
11177
  return [i, s];
11170
11178
  };
11171
11179
  Pr.autoRemove = (e) => be(e) || be(e[0]) && be(e[1]);
11172
- const Oe = {
11180
+ const ke = {
11173
11181
  includesString: au,
11174
11182
  includesStringSensitive: lu,
11175
11183
  equalsString: cu,
@@ -11199,12 +11207,12 @@ const rC = {
11199
11207
  createColumn: (e, t) => {
11200
11208
  e.getAutoFilterFn = () => {
11201
11209
  const n = t.getCoreRowModel().flatRows[0], o = n?.getValue(e.id);
11202
- return typeof o == "string" ? Oe.includesString : typeof o == "number" ? Oe.inNumberRange : typeof o == "boolean" || o !== null && typeof o == "object" ? Oe.equals : Array.isArray(o) ? Oe.arrIncludes : Oe.weakEquals;
11210
+ return typeof o == "string" ? ke.includesString : typeof o == "number" ? ke.inNumberRange : typeof o == "boolean" || o !== null && typeof o == "object" ? ke.equals : Array.isArray(o) ? ke.arrIncludes : ke.weakEquals;
11203
11211
  }, e.getFilterFn = () => {
11204
11212
  var n, o;
11205
11213
  return qn(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
11206
11214
  // @ts-ignore
11207
- (n = (o = t.options.filterFns) == null ? void 0 : o[e.columnDef.filterFn]) != null ? n : Oe[e.columnDef.filterFn]
11215
+ (n = (o = t.options.filterFns) == null ? void 0 : o[e.columnDef.filterFn]) != null ? n : ke[e.columnDef.filterFn]
11208
11216
  );
11209
11217
  }, e.getCanFilter = () => {
11210
11218
  var n, o, r;
@@ -11571,8 +11579,8 @@ const on = {
11571
11579
  var b, x;
11572
11580
  const M = t.options.columnResizeDirection === "rtl" ? -1 : 1, _ = (C - ((b = S?.startOffset) != null ? b : 0)) * M, E = Math.max(_ / ((x = S?.startSize) != null ? x : 0), -0.999999);
11573
11581
  return S.columnSizingStart.forEach((F) => {
11574
- let [L, O] = F;
11575
- u[L] = Math.round(Math.max(O + O * E, 0) * 100) / 100;
11582
+ let [L, k] = F;
11583
+ u[L] = Math.round(Math.max(k + k * E, 0) * 100) / 100;
11576
11584
  }), {
11577
11585
  ...S,
11578
11586
  deltaOffset: _,
@@ -11736,12 +11744,12 @@ const bC = {
11736
11744
  };
11737
11745
  },
11738
11746
  createTable: (e) => {
11739
- e.getGlobalAutoFilterFn = () => Oe.includesString, e.getGlobalFilterFn = () => {
11747
+ e.getGlobalAutoFilterFn = () => ke.includesString, e.getGlobalFilterFn = () => {
11740
11748
  var t, n;
11741
11749
  const {
11742
11750
  globalFilterFn: o
11743
11751
  } = e.options;
11744
- return qn(o) ? o : o === "auto" ? e.getGlobalAutoFilterFn() : (t = (n = e.options.filterFns) == null ? void 0 : n[o]) != null ? t : Oe[o];
11752
+ return qn(o) ? o : o === "auto" ? e.getGlobalAutoFilterFn() : (t = (n = e.options.filterFns) == null ? void 0 : n[o]) != null ? t : ke[o];
11745
11753
  }, e.setGlobalFilter = (t) => {
11746
11754
  e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
11747
11755
  }, e.resetGlobalFilter = (t) => {
@@ -12215,7 +12223,7 @@ const Rt = {
12215
12223
  textCaseSensitive: AC,
12216
12224
  datetime: TC,
12217
12225
  basic: DC
12218
- }, OC = {
12226
+ }, kC = {
12219
12227
  getInitialState: (e) => ({
12220
12228
  sorting: [],
12221
12229
  ...e
@@ -12304,7 +12312,7 @@ const Rt = {
12304
12312
  e.setSorting(t ? [] : (n = (o = e.initialState) == null ? void 0 : o.sorting) != null ? n : []);
12305
12313
  }, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
12306
12314
  }
12307
- }, kC = [
12315
+ }, OC = [
12308
12316
  nC,
12309
12317
  SC,
12310
12318
  hC,
@@ -12315,7 +12323,7 @@ const Rt = {
12315
12323
  //depends on ColumnFaceting
12316
12324
  xC,
12317
12325
  //depends on ColumnFiltering
12318
- OC,
12326
+ kC,
12319
12327
  gC,
12320
12328
  //depends on RowSorting
12321
12329
  RC,
@@ -12327,7 +12335,7 @@ const Rt = {
12327
12335
  function $C(e) {
12328
12336
  var t, n;
12329
12337
  process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
12330
- const o = [...kC, ...(t = e._features) != null ? t : []];
12338
+ const o = [...OC, ...(t = e._features) != null ? t : []];
12331
12339
  let r = {
12332
12340
  _features: o
12333
12341
  };
@@ -12738,7 +12746,7 @@ function hS({
12738
12746
  globalFilter: v
12739
12747
  }
12740
12748
  });
12741
- return /* @__PURE__ */ q("div", { className: k("w-full space-y-4", i), children: [
12749
+ return /* @__PURE__ */ q("div", { className: O("w-full space-y-4", i), children: [
12742
12750
  n && /* @__PURE__ */ m("div", { className: "flex items-center py-4", children: /* @__PURE__ */ m(
12743
12751
  "input",
12744
12752
  {
@@ -12851,7 +12859,7 @@ export {
12851
12859
  Zy as PopoverContent,
12852
12860
  mS as PopoverTrigger,
12853
12861
  lh as Progress,
12854
- kh as RadioGroup,
12862
+ Oh as RadioGroup,
12855
12863
  $h as RadioGroupItem,
12856
12864
  hm as Select,
12857
12865
  $m as Separator,
@@ -12879,7 +12887,7 @@ export {
12879
12887
  vd as buttonVariants,
12880
12888
  Sd as cardVariants,
12881
12889
  Rm as checkboxVariants,
12882
- k as cn,
12890
+ O as cn,
12883
12891
  yd as inputVariants,
12884
12892
  Mm as labelVariants,
12885
12893
  mm as selectVariants