@altimateai/ui-components 0.0.77-beta.3 → 0.0.77-beta.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/Stack.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as g, S as ys, d as xs } from "./index2.js";
1
+ import { j as h, S as ys, d as xs } from "./index2.js";
2
2
  import * as l from "react";
3
3
  import ve, { useLayoutEffect as ws, useEffect as Cs, forwardRef as H, createElement as Qe, useState as Es } from "react";
4
4
  import * as qn from "react-dom";
@@ -139,10 +139,10 @@ const Ht = "-", Ps = (e) => {
139
139
  }
140
140
  y === "[" ? u++ : y === "]" && u--;
141
141
  }
142
- const h = c.length === 0 ? i : i.substring(d), m = h.startsWith(er), v = m ? h.substring(1) : h, p = f && f > d ? f - d : void 0;
142
+ const m = c.length === 0 ? i : i.substring(d), g = m.startsWith(er), v = g ? m.substring(1) : m, p = f && f > d ? f - d : void 0;
143
143
  return {
144
144
  modifiers: c,
145
- hasImportantModifier: m,
145
+ hasImportantModifier: g,
146
146
  baseClassName: v,
147
147
  maybePostfixModifierPosition: p
148
148
  };
@@ -174,16 +174,16 @@ const Ht = "-", Ps = (e) => {
174
174
  const u = a[c], {
175
175
  modifiers: d,
176
176
  hasImportantModifier: f,
177
- baseClassName: h,
178
- maybePostfixModifierPosition: m
177
+ baseClassName: m,
178
+ maybePostfixModifierPosition: g
179
179
  } = n(u);
180
- let v = !!m, p = r(v ? h.substring(0, m) : h);
180
+ let v = !!g, p = r(v ? m.substring(0, g) : m);
181
181
  if (!p) {
182
182
  if (!v) {
183
183
  i = u + (i.length > 0 ? " " + i : i);
184
184
  continue;
185
185
  }
186
- if (p = r(h), !p) {
186
+ if (p = r(m), !p) {
187
187
  i = u + (i.length > 0 ? " " + i : i);
188
188
  continue;
189
189
  }
@@ -236,16 +236,16 @@ function Ls(e, ...t) {
236
236
  const _ = (e) => {
237
237
  const t = (n) => n[e] || [];
238
238
  return t.isThemeGetter = !0, t;
239
- }, nr = /^\[(?:([a-z-]+):)?(.+)\]$/i, Fs = /^\d+\/\d+$/, $s = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ws = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Vs = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, zs = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Bs = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Hs = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ne = (e) => Re(e) || $s.has(e) || Fs.test(e), ie = (e) => ke(e, "length", Qs), Re = (e) => !!e && !Number.isNaN(Number(e)), vt = (e) => ke(e, "number", Re), Le = (e) => !!e && Number.isInteger(Number(e)), Gs = (e) => e.endsWith("%") && Re(e.slice(0, -1)), N = (e) => nr.test(e), le = (e) => Ws.test(e), Us = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Ks = (e) => ke(e, Us, rr), Ys = (e) => ke(e, "position", rr), Xs = /* @__PURE__ */ new Set(["image", "url"]), qs = (e) => ke(e, Xs, ea), Zs = (e) => ke(e, "", Js), Fe = () => !0, ke = (e, t, n) => {
239
+ }, nr = /^\[(?:([a-z-]+):)?(.+)\]$/i, Fs = /^\d+\/\d+$/, $s = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ws = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, zs = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Vs = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Bs = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Hs = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ne = (e) => Re(e) || $s.has(e) || Fs.test(e), ie = (e) => ke(e, "length", Qs), Re = (e) => !!e && !Number.isNaN(Number(e)), vt = (e) => ke(e, "number", Re), Le = (e) => !!e && Number.isInteger(Number(e)), Gs = (e) => e.endsWith("%") && Re(e.slice(0, -1)), N = (e) => nr.test(e), le = (e) => Ws.test(e), Us = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Ks = (e) => ke(e, Us, rr), Ys = (e) => ke(e, "position", rr), Xs = /* @__PURE__ */ new Set(["image", "url"]), qs = (e) => ke(e, Xs, ea), Zs = (e) => ke(e, "", Js), Fe = () => !0, ke = (e, t, n) => {
240
240
  const r = nr.exec(e);
241
241
  return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
242
242
  }, Qs = (e) => (
243
243
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
244
244
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
245
245
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
246
- Vs.test(e) && !zs.test(e)
246
+ zs.test(e) && !Vs.test(e)
247
247
  ), rr = () => !1, Js = (e) => Bs.test(e), ea = (e) => Hs.test(e), ta = () => {
248
- const e = _("colors"), t = _("spacing"), n = _("blur"), r = _("brightness"), o = _("borderColor"), s = _("borderRadius"), a = _("borderSpacing"), i = _("borderWidth"), c = _("contrast"), u = _("grayscale"), d = _("hueRotate"), f = _("invert"), h = _("gap"), m = _("gradientColorStops"), v = _("gradientColorStopPositions"), p = _("inset"), b = _("margin"), y = _("opacity"), x = _("padding"), C = _("saturate"), w = _("scale"), E = _("sepia"), P = _("skew"), R = _("space"), S = _("translate"), I = () => ["auto", "contain", "none"], D = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", N, t], A = () => [N, t], L = () => ["", ne, ie], j = () => ["auto", Re, N], B = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], T = () => ["solid", "dashed", "dotted", "double", "none"], V = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], W = () => ["", "0", N], U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], G = () => [Re, N];
248
+ const e = _("colors"), t = _("spacing"), n = _("blur"), r = _("brightness"), o = _("borderColor"), s = _("borderRadius"), a = _("borderSpacing"), i = _("borderWidth"), c = _("contrast"), u = _("grayscale"), d = _("hueRotate"), f = _("invert"), m = _("gap"), g = _("gradientColorStops"), v = _("gradientColorStopPositions"), p = _("inset"), b = _("margin"), y = _("opacity"), x = _("padding"), C = _("saturate"), w = _("scale"), E = _("sepia"), P = _("skew"), R = _("space"), S = _("translate"), I = () => ["auto", "contain", "none"], D = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", N, t], A = () => [N, t], L = () => ["", ne, ie], j = () => ["auto", Re, N], B = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], T = () => ["solid", "dashed", "dotted", "double", "none"], z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], W = () => ["", "0", N], U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], G = () => [Re, N];
249
249
  return {
250
250
  cacheSize: 500,
251
251
  separator: ":",
@@ -628,21 +628,21 @@ const _ = (e) => {
628
628
  * @see https://tailwindcss.com/docs/gap
629
629
  */
630
630
  gap: [{
631
- gap: [h]
631
+ gap: [m]
632
632
  }],
633
633
  /**
634
634
  * Gap X
635
635
  * @see https://tailwindcss.com/docs/gap
636
636
  */
637
637
  "gap-x": [{
638
- "gap-x": [h]
638
+ "gap-x": [m]
639
639
  }],
640
640
  /**
641
641
  * Gap Y
642
642
  * @see https://tailwindcss.com/docs/gap
643
643
  */
644
644
  "gap-y": [{
645
- "gap-y": [h]
645
+ "gap-y": [m]
646
646
  }],
647
647
  /**
648
648
  * Justify Content
@@ -1237,21 +1237,21 @@ const _ = (e) => {
1237
1237
  * @see https://tailwindcss.com/docs/gradient-color-stops
1238
1238
  */
1239
1239
  "gradient-from": [{
1240
- from: [m]
1240
+ from: [g]
1241
1241
  }],
1242
1242
  /**
1243
1243
  * Gradient Color Stops Via
1244
1244
  * @see https://tailwindcss.com/docs/gradient-color-stops
1245
1245
  */
1246
1246
  "gradient-via": [{
1247
- via: [m]
1247
+ via: [g]
1248
1248
  }],
1249
1249
  /**
1250
1250
  * Gradient Color Stops To
1251
1251
  * @see https://tailwindcss.com/docs/gradient-color-stops
1252
1252
  */
1253
1253
  "gradient-to": [{
1254
- to: [m]
1254
+ to: [g]
1255
1255
  }],
1256
1256
  // Borders
1257
1257
  /**
@@ -1639,14 +1639,14 @@ const _ = (e) => {
1639
1639
  * @see https://tailwindcss.com/docs/mix-blend-mode
1640
1640
  */
1641
1641
  "mix-blend": [{
1642
- "mix-blend": [...V(), "plus-lighter", "plus-darker"]
1642
+ "mix-blend": [...z(), "plus-lighter", "plus-darker"]
1643
1643
  }],
1644
1644
  /**
1645
1645
  * Background Blend Mode
1646
1646
  * @see https://tailwindcss.com/docs/background-blend-mode
1647
1647
  */
1648
1648
  "bg-blend": [{
1649
- "bg-blend": V()
1649
+ "bg-blend": z()
1650
1650
  }],
1651
1651
  // Filters
1652
1652
  /**
@@ -2304,9 +2304,9 @@ function oa(e) {
2304
2304
  const { children: s, ...a } = r, i = l.Children.toArray(s), c = i.find(la);
2305
2305
  if (c) {
2306
2306
  const u = c.props.children, d = i.map((f) => f === c ? l.Children.count(u) > 1 ? l.Children.only(null) : l.isValidElement(u) ? u.props.children : null : f);
2307
- return /* @__PURE__ */ g.jsx(t, { ...a, ref: o, children: l.isValidElement(u) ? l.cloneElement(u, void 0, d) : null });
2307
+ return /* @__PURE__ */ h.jsx(t, { ...a, ref: o, children: l.isValidElement(u) ? l.cloneElement(u, void 0, d) : null });
2308
2308
  }
2309
- return /* @__PURE__ */ g.jsx(t, { ...a, ref: o, children: s });
2309
+ return /* @__PURE__ */ h.jsx(t, { ...a, ref: o, children: s });
2310
2310
  });
2311
2311
  return n.displayName = `${e}.Slot`, n;
2312
2312
  }
@@ -2349,14 +2349,14 @@ const Sn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, An = Qn, G
2349
2349
  const { variants: o, defaultVariants: s } = t, a = Object.keys(o).map((u) => {
2350
2350
  const d = n == null ? void 0 : n[u], f = s == null ? void 0 : s[u];
2351
2351
  if (d === null) return null;
2352
- const h = Sn(d) || Sn(f);
2353
- return o[u][h];
2352
+ const m = Sn(d) || Sn(f);
2353
+ return o[u][m];
2354
2354
  }), i = n && Object.entries(n).reduce((u, d) => {
2355
- let [f, h] = d;
2356
- return h === void 0 || (u[f] = h), u;
2355
+ let [f, m] = d;
2356
+ return m === void 0 || (u[f] = m), u;
2357
2357
  }, {}), c = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((u, d) => {
2358
- let { class: f, className: h, ...m } = d;
2359
- return Object.entries(m).every((v) => {
2358
+ let { class: f, className: m, ...g } = d;
2359
+ return Object.entries(g).every((v) => {
2360
2360
  let [p, b] = v;
2361
2361
  return Array.isArray(b) ? b.includes({
2362
2362
  ...s,
@@ -2368,7 +2368,7 @@ const Sn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, An = Qn, G
2368
2368
  }) ? [
2369
2369
  ...u,
2370
2370
  f,
2371
- h
2371
+ m
2372
2372
  ] : u;
2373
2373
  }, []);
2374
2374
  return An(e, a, c, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
@@ -2400,13 +2400,13 @@ function De(...e) {
2400
2400
  };
2401
2401
  };
2402
2402
  }
2403
- function z(...e) {
2403
+ function V(...e) {
2404
2404
  return l.useCallback(De(...e), e);
2405
2405
  }
2406
2406
  function da(e, t) {
2407
2407
  const n = l.createContext(t), r = (s) => {
2408
2408
  const { children: a, ...i } = s, c = l.useMemo(() => i, Object.values(i));
2409
- return /* @__PURE__ */ g.jsx(n.Provider, { value: c, children: a });
2409
+ return /* @__PURE__ */ h.jsx(n.Provider, { value: c, children: a });
2410
2410
  };
2411
2411
  r.displayName = e + "Provider";
2412
2412
  function o(s) {
@@ -2424,13 +2424,13 @@ function ae(e, t = []) {
2424
2424
  n = [...n, a];
2425
2425
  const u = (f) => {
2426
2426
  var y;
2427
- const { scope: h, children: m, ...v } = f, p = ((y = h == null ? void 0 : h[e]) == null ? void 0 : y[c]) || i, b = l.useMemo(() => v, Object.values(v));
2428
- return /* @__PURE__ */ g.jsx(p.Provider, { value: b, children: m });
2427
+ const { scope: m, children: g, ...v } = f, p = ((y = m == null ? void 0 : m[e]) == null ? void 0 : y[c]) || i, b = l.useMemo(() => v, Object.values(v));
2428
+ return /* @__PURE__ */ h.jsx(p.Provider, { value: b, children: g });
2429
2429
  };
2430
2430
  u.displayName = s + "Provider";
2431
- function d(f, h) {
2431
+ function d(f, m) {
2432
2432
  var p;
2433
- const m = ((p = h == null ? void 0 : h[e]) == null ? void 0 : p[c]) || i, v = l.useContext(m);
2433
+ const g = ((p = m == null ? void 0 : m[e]) == null ? void 0 : p[c]) || i, v = l.useContext(g);
2434
2434
  if (v) return v;
2435
2435
  if (a !== void 0) return a;
2436
2436
  throw new Error(`\`${f}\` must be used within \`${s}\``);
@@ -2471,9 +2471,9 @@ var or = l.forwardRef((e, t) => {
2471
2471
  const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(ma);
2472
2472
  if (s) {
2473
2473
  const a = s.props.children, i = o.map((c) => c === s ? l.Children.count(a) > 1 ? l.Children.only(null) : l.isValidElement(a) ? a.props.children : null : c);
2474
- return /* @__PURE__ */ g.jsx(Ot, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
2474
+ return /* @__PURE__ */ h.jsx(Ot, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
2475
2475
  }
2476
- return /* @__PURE__ */ g.jsx(Ot, { ...r, ref: t, children: n });
2476
+ return /* @__PURE__ */ h.jsx(Ot, { ...r, ref: t, children: n });
2477
2477
  });
2478
2478
  or.displayName = "Slot";
2479
2479
  var Ot = l.forwardRef((e, t) => {
@@ -2489,7 +2489,7 @@ var Ot = l.forwardRef((e, t) => {
2489
2489
  return l.Children.count(n) > 1 ? l.Children.only(null) : null;
2490
2490
  });
2491
2491
  Ot.displayName = "SlotClone";
2492
- var pa = ({ children: e }) => /* @__PURE__ */ g.jsx(g.Fragment, { children: e });
2492
+ var pa = ({ children: e }) => /* @__PURE__ */ h.jsx(h.Fragment, { children: e });
2493
2493
  function ma(e) {
2494
2494
  return l.isValidElement(e) && e.type === pa;
2495
2495
  }
@@ -2528,7 +2528,7 @@ var va = [
2528
2528
  ], $ = va.reduce((e, t) => {
2529
2529
  const n = l.forwardRef((r, o) => {
2530
2530
  const { asChild: s, ...a } = r, i = s ? or : t;
2531
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ g.jsx(i, { ...a, ref: o });
2531
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h.jsx(i, { ...a, ref: o });
2532
2532
  });
2533
2533
  return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
2534
2534
  }, {});
@@ -2557,7 +2557,7 @@ var xa = "DismissableLayer", Tt = "dismissableLayer.update", wa = "dismissableLa
2557
2557
  layers: /* @__PURE__ */ new Set(),
2558
2558
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
2559
2559
  branches: /* @__PURE__ */ new Set()
2560
- }), Ve = l.forwardRef(
2560
+ }), ze = l.forwardRef(
2561
2561
  (e, t) => {
2562
2562
  const {
2563
2563
  disableOutsidePointerEvents: n = !1,
@@ -2567,26 +2567,26 @@ var xa = "DismissableLayer", Tt = "dismissableLayer.update", wa = "dismissableLa
2567
2567
  onInteractOutside: a,
2568
2568
  onDismiss: i,
2569
2569
  ...c
2570
- } = e, u = l.useContext(sr), [d, f] = l.useState(null), h = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = l.useState({}), v = z(t, (R) => f(R)), p = Array.from(u.layers), [b] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = p.indexOf(b), x = d ? p.indexOf(d) : -1, C = u.layersWithOutsidePointerEventsDisabled.size > 0, w = x >= y, E = Ra((R) => {
2570
+ } = e, u = l.useContext(sr), [d, f] = l.useState(null), m = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = l.useState({}), v = V(t, (R) => f(R)), p = Array.from(u.layers), [b] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = p.indexOf(b), x = d ? p.indexOf(d) : -1, C = u.layersWithOutsidePointerEventsDisabled.size > 0, w = x >= y, E = Ra((R) => {
2571
2571
  const S = R.target, I = [...u.branches].some((D) => D.contains(S));
2572
2572
  !w || I || (o == null || o(R), a == null || a(R), R.defaultPrevented || i == null || i());
2573
- }, h), P = Pa((R) => {
2573
+ }, m), P = Pa((R) => {
2574
2574
  const S = R.target;
2575
2575
  [...u.branches].some((D) => D.contains(S)) || (s == null || s(R), a == null || a(R), R.defaultPrevented || i == null || i());
2576
- }, h);
2576
+ }, m);
2577
2577
  return ya((R) => {
2578
2578
  x === u.layers.size - 1 && (r == null || r(R), !R.defaultPrevented && i && (R.preventDefault(), i()));
2579
- }, h), l.useEffect(() => {
2579
+ }, m), l.useEffect(() => {
2580
2580
  if (d)
2581
- return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (On = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), Tn(), () => {
2582
- n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = On);
2581
+ return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (On = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), Tn(), () => {
2582
+ n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = On);
2583
2583
  };
2584
- }, [d, h, n, u]), l.useEffect(() => () => {
2584
+ }, [d, m, n, u]), l.useEffect(() => () => {
2585
2585
  d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), Tn());
2586
2586
  }, [d, u]), l.useEffect(() => {
2587
- const R = () => m({});
2587
+ const R = () => g({});
2588
2588
  return document.addEventListener(Tt, R), () => document.removeEventListener(Tt, R);
2589
- }, []), /* @__PURE__ */ g.jsx(
2589
+ }, []), /* @__PURE__ */ h.jsx(
2590
2590
  $.div,
2591
2591
  {
2592
2592
  ...c,
@@ -2605,16 +2605,16 @@ var xa = "DismissableLayer", Tt = "dismissableLayer.update", wa = "dismissableLa
2605
2605
  );
2606
2606
  }
2607
2607
  );
2608
- Ve.displayName = xa;
2608
+ ze.displayName = xa;
2609
2609
  var Ea = "DismissableLayerBranch", ar = l.forwardRef((e, t) => {
2610
- const n = l.useContext(sr), r = l.useRef(null), o = z(t, r);
2610
+ const n = l.useContext(sr), r = l.useRef(null), o = V(t, r);
2611
2611
  return l.useEffect(() => {
2612
2612
  const s = r.current;
2613
2613
  if (s)
2614
2614
  return n.branches.add(s), () => {
2615
2615
  n.branches.delete(s);
2616
2616
  };
2617
- }, [n.branches]), /* @__PURE__ */ g.jsx($.div, { ...e, ref: o });
2617
+ }, [n.branches]), /* @__PURE__ */ h.jsx($.div, { ...e, ref: o });
2618
2618
  });
2619
2619
  ar.displayName = Ea;
2620
2620
  function Ra(e, t = globalThis == null ? void 0 : globalThis.document) {
@@ -2669,7 +2669,7 @@ function ir(e, t, n, { discrete: r }) {
2669
2669
  const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
2670
2670
  t && o.addEventListener(e, t, { once: !0 }), r ? ba(o, s) : o.dispatchEvent(s);
2671
2671
  }
2672
- var Qu = Ve, Ju = ar, be = globalThis != null && globalThis.document ? l.useLayoutEffect : () => {
2672
+ var Qu = ze, Ju = ar, be = globalThis != null && globalThis.document ? l.useLayoutEffect : () => {
2673
2673
  }, Sa = l.useId || (() => {
2674
2674
  }), Aa = 0;
2675
2675
  function Pe(e) {
@@ -2788,48 +2788,48 @@ function kn(e, t, n) {
2788
2788
  reference: r,
2789
2789
  floating: o
2790
2790
  } = e;
2791
- const s = me(t), a = Yt(t), i = Kt(a), c = se(t), u = s === "y", d = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, h = r[i] / 2 - o[i] / 2;
2792
- let m;
2791
+ const s = me(t), a = Yt(t), i = Kt(a), c = se(t), u = s === "y", d = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, m = r[i] / 2 - o[i] / 2;
2792
+ let g;
2793
2793
  switch (c) {
2794
2794
  case "top":
2795
- m = {
2795
+ g = {
2796
2796
  x: d,
2797
2797
  y: r.y - o.height
2798
2798
  };
2799
2799
  break;
2800
2800
  case "bottom":
2801
- m = {
2801
+ g = {
2802
2802
  x: d,
2803
2803
  y: r.y + r.height
2804
2804
  };
2805
2805
  break;
2806
2806
  case "right":
2807
- m = {
2807
+ g = {
2808
2808
  x: r.x + r.width,
2809
2809
  y: f
2810
2810
  };
2811
2811
  break;
2812
2812
  case "left":
2813
- m = {
2813
+ g = {
2814
2814
  x: r.x - o.width,
2815
2815
  y: f
2816
2816
  };
2817
2817
  break;
2818
2818
  default:
2819
- m = {
2819
+ g = {
2820
2820
  x: r.x,
2821
2821
  y: r.y
2822
2822
  };
2823
2823
  }
2824
2824
  switch (je(t)) {
2825
2825
  case "start":
2826
- m[a] -= h * (n && u ? -1 : 1);
2826
+ g[a] -= m * (n && u ? -1 : 1);
2827
2827
  break;
2828
2828
  case "end":
2829
- m[a] += h * (n && u ? -1 : 1);
2829
+ g[a] += m * (n && u ? -1 : 1);
2830
2830
  break;
2831
2831
  }
2832
- return m;
2832
+ return g;
2833
2833
  }
2834
2834
  const _a = async (e, t, n) => {
2835
2835
  const {
@@ -2845,7 +2845,7 @@ const _a = async (e, t, n) => {
2845
2845
  }), {
2846
2846
  x: d,
2847
2847
  y: f
2848
- } = kn(u, r, c), h = r, m = {}, v = 0;
2848
+ } = kn(u, r, c), m = r, g = {}, v = 0;
2849
2849
  for (let p = 0; p < i.length; p++) {
2850
2850
  const {
2851
2851
  name: b,
@@ -2859,9 +2859,9 @@ const _a = async (e, t, n) => {
2859
2859
  x: d,
2860
2860
  y: f,
2861
2861
  initialPlacement: r,
2862
- placement: h,
2862
+ placement: m,
2863
2863
  strategy: o,
2864
- middlewareData: m,
2864
+ middlewareData: g,
2865
2865
  rects: u,
2866
2866
  platform: a,
2867
2867
  elements: {
@@ -2869,27 +2869,27 @@ const _a = async (e, t, n) => {
2869
2869
  floating: t
2870
2870
  }
2871
2871
  });
2872
- d = x ?? d, f = C ?? f, m = {
2873
- ...m,
2872
+ d = x ?? d, f = C ?? f, g = {
2873
+ ...g,
2874
2874
  [b]: {
2875
- ...m[b],
2875
+ ...g[b],
2876
2876
  ...w
2877
2877
  }
2878
- }, E && v <= 50 && (v++, typeof E == "object" && (E.placement && (h = E.placement), E.rects && (u = E.rects === !0 ? await a.getElementRects({
2878
+ }, E && v <= 50 && (v++, typeof E == "object" && (E.placement && (m = E.placement), E.rects && (u = E.rects === !0 ? await a.getElementRects({
2879
2879
  reference: e,
2880
2880
  floating: t,
2881
2881
  strategy: o
2882
2882
  }) : E.rects), {
2883
2883
  x: d,
2884
2884
  y: f
2885
- } = kn(u, h, c)), p = -1);
2885
+ } = kn(u, m, c)), p = -1);
2886
2886
  }
2887
2887
  return {
2888
2888
  x: d,
2889
2889
  y: f,
2890
- placement: h,
2890
+ placement: m,
2891
2891
  strategy: o,
2892
- middlewareData: m
2892
+ middlewareData: g
2893
2893
  };
2894
2894
  };
2895
2895
  async function $e(e, t) {
@@ -2906,9 +2906,9 @@ async function $e(e, t) {
2906
2906
  boundary: u = "clippingAncestors",
2907
2907
  rootBoundary: d = "viewport",
2908
2908
  elementContext: f = "floating",
2909
- altBoundary: h = !1,
2910
- padding: m = 0
2911
- } = oe(t, e), v = lr(m), b = i[h ? f === "floating" ? "reference" : "floating" : f], y = ot(await s.getClippingRect({
2909
+ altBoundary: m = !1,
2910
+ padding: g = 0
2911
+ } = oe(t, e), v = lr(g), b = i[m ? f === "floating" ? "reference" : "floating" : f], y = ot(await s.getClippingRect({
2912
2912
  element: (n = await (s.isElement == null ? void 0 : s.isElement(b))) == null || n ? b : b.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
2913
2913
  boundary: u,
2914
2914
  rootBoundary: d,
@@ -2955,20 +2955,20 @@ const La = (e) => ({
2955
2955
  } = oe(e, t) || {};
2956
2956
  if (u == null)
2957
2957
  return {};
2958
- const f = lr(d), h = {
2958
+ const f = lr(d), m = {
2959
2959
  x: n,
2960
2960
  y: r
2961
- }, m = Yt(o), v = Kt(m), p = await a.getDimensions(u), b = m === "y", y = b ? "top" : "left", x = b ? "bottom" : "right", C = b ? "clientHeight" : "clientWidth", w = s.reference[v] + s.reference[m] - h[m] - s.floating[v], E = h[m] - s.reference[m], P = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u));
2961
+ }, g = Yt(o), v = Kt(g), p = await a.getDimensions(u), b = g === "y", y = b ? "top" : "left", x = b ? "bottom" : "right", C = b ? "clientHeight" : "clientWidth", w = s.reference[v] + s.reference[g] - m[g] - s.floating[v], E = m[g] - s.reference[g], P = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u));
2962
2962
  let R = P ? P[C] : 0;
2963
2963
  (!R || !await (a.isElement == null ? void 0 : a.isElement(P))) && (R = i.floating[C] || s.floating[v]);
2964
- const S = w / 2 - E / 2, I = R / 2 - p[v] / 2 - 1, D = fe(f[y], I), F = fe(f[x], I), A = D, L = R - p[v] - F, j = R / 2 - p[v] / 2 + S, B = kt(A, j, L), T = !c.arrow && je(o) != null && j !== B && s.reference[v] / 2 - (j < A ? D : F) - p[v] / 2 < 0, V = T ? j < A ? j - A : j - L : 0;
2964
+ const S = w / 2 - E / 2, I = R / 2 - p[v] / 2 - 1, D = fe(f[y], I), F = fe(f[x], I), A = D, L = R - p[v] - F, j = R / 2 - p[v] / 2 + S, B = kt(A, j, L), T = !c.arrow && je(o) != null && j !== B && s.reference[v] / 2 - (j < A ? D : F) - p[v] / 2 < 0, z = T ? j < A ? j - A : j - L : 0;
2965
2965
  return {
2966
- [m]: h[m] + V,
2966
+ [g]: m[g] + z,
2967
2967
  data: {
2968
- [m]: B,
2969
- centerOffset: j - B - V,
2968
+ [g]: B,
2969
+ centerOffset: j - B - z,
2970
2970
  ...T && {
2971
- alignmentOffset: V
2971
+ alignmentOffset: z
2972
2972
  }
2973
2973
  },
2974
2974
  reset: T
@@ -2990,16 +2990,16 @@ const La = (e) => ({
2990
2990
  } = t, {
2991
2991
  mainAxis: d = !0,
2992
2992
  crossAxis: f = !0,
2993
- fallbackPlacements: h,
2994
- fallbackStrategy: m = "bestFit",
2993
+ fallbackPlacements: m,
2994
+ fallbackStrategy: g = "bestFit",
2995
2995
  fallbackAxisSideDirection: v = "none",
2996
2996
  flipAlignment: p = !0,
2997
2997
  ...b
2998
2998
  } = oe(e, t);
2999
2999
  if ((n = s.arrow) != null && n.alignmentOffset)
3000
3000
  return {};
3001
- const y = se(o), x = me(i), C = se(i) === i, w = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), E = h || (C || !p ? [rt(i)] : Da(i)), P = v !== "none";
3002
- !h && P && E.push(...Ia(i, p, v, w));
3001
+ const y = se(o), x = me(i), C = se(i) === i, w = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), E = m || (C || !p ? [rt(i)] : Da(i)), P = v !== "none";
3002
+ !m && P && E.push(...Ia(i, p, v, w));
3003
3003
  const R = [i, ...E], S = await $e(t, b), I = [];
3004
3004
  let D = ((r = s.flip) == null ? void 0 : r.overflows) || [];
3005
3005
  if (d && I.push(S[y]), f) {
@@ -3022,12 +3022,12 @@ const La = (e) => ({
3022
3022
  placement: B
3023
3023
  }
3024
3024
  };
3025
- let T = (A = D.filter((V) => V.overflows[0] <= 0).sort((V, O) => V.overflows[1] - O.overflows[1])[0]) == null ? void 0 : A.placement;
3025
+ let T = (A = D.filter((z) => z.overflows[0] <= 0).sort((z, O) => z.overflows[1] - O.overflows[1])[0]) == null ? void 0 : A.placement;
3026
3026
  if (!T)
3027
- switch (m) {
3027
+ switch (g) {
3028
3028
  case "bestFit": {
3029
3029
  var L;
3030
- const V = (L = D.filter((O) => {
3030
+ const z = (L = D.filter((O) => {
3031
3031
  if (P) {
3032
3032
  const W = me(O.placement);
3033
3033
  return W === x || // Create a bias to the `y` side axis due to horizontal
@@ -3036,7 +3036,7 @@ const La = (e) => ({
3036
3036
  }
3037
3037
  return !0;
3038
3038
  }).map((O) => [O.placement, O.overflows.filter((W) => W > 0).reduce((W, U) => W + U, 0)]).sort((O, W) => O[1] - W[1])[0]) == null ? void 0 : L[0];
3039
- V && (T = V);
3039
+ z && (T = z);
3040
3040
  break;
3041
3041
  }
3042
3042
  case "initialPlacement":
@@ -3114,8 +3114,8 @@ async function Wa(e, t) {
3114
3114
  elements: o
3115
3115
  } = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = se(n), i = je(n), c = me(n) === "y", u = ["left", "top"].includes(a) ? -1 : 1, d = s && c ? -1 : 1, f = oe(t, e);
3116
3116
  let {
3117
- mainAxis: h,
3118
- crossAxis: m,
3117
+ mainAxis: m,
3118
+ crossAxis: g,
3119
3119
  alignmentAxis: v
3120
3120
  } = typeof f == "number" ? {
3121
3121
  mainAxis: f,
@@ -3126,15 +3126,15 @@ async function Wa(e, t) {
3126
3126
  crossAxis: f.crossAxis || 0,
3127
3127
  alignmentAxis: f.alignmentAxis
3128
3128
  };
3129
- return i && typeof v == "number" && (m = i === "end" ? v * -1 : v), c ? {
3130
- x: m * d,
3131
- y: h * u
3129
+ return i && typeof v == "number" && (g = i === "end" ? v * -1 : v), c ? {
3130
+ x: g * d,
3131
+ y: m * u
3132
3132
  } : {
3133
- x: h * u,
3134
- y: m * d
3133
+ x: m * u,
3134
+ y: g * d
3135
3135
  };
3136
3136
  }
3137
- const Va = function(e) {
3137
+ const za = function(e) {
3138
3138
  return e === void 0 && (e = 0), {
3139
3139
  name: "offset",
3140
3140
  options: e,
@@ -3156,7 +3156,7 @@ const Va = function(e) {
3156
3156
  };
3157
3157
  }
3158
3158
  };
3159
- }, za = function(e) {
3159
+ }, Va = function(e) {
3160
3160
  return e === void 0 && (e = {}), {
3161
3161
  name: "shift",
3162
3162
  options: e,
@@ -3184,11 +3184,11 @@ const Va = function(e) {
3184
3184
  } = oe(e, t), u = {
3185
3185
  x: n,
3186
3186
  y: r
3187
- }, d = await $e(t, c), f = me(se(o)), h = Ut(f);
3188
- let m = u[h], v = u[f];
3187
+ }, d = await $e(t, c), f = me(se(o)), m = Ut(f);
3188
+ let g = u[m], v = u[f];
3189
3189
  if (s) {
3190
- const b = h === "y" ? "top" : "left", y = h === "y" ? "bottom" : "right", x = m + d[b], C = m - d[y];
3191
- m = kt(x, m, C);
3190
+ const b = m === "y" ? "top" : "left", y = m === "y" ? "bottom" : "right", x = g + d[b], C = g - d[y];
3191
+ g = kt(x, g, C);
3192
3192
  }
3193
3193
  if (a) {
3194
3194
  const b = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", x = v + d[b], C = v - d[y];
@@ -3196,7 +3196,7 @@ const Va = function(e) {
3196
3196
  }
3197
3197
  const p = i.fn({
3198
3198
  ...t,
3199
- [h]: m,
3199
+ [m]: g,
3200
3200
  [f]: v
3201
3201
  });
3202
3202
  return {
@@ -3205,7 +3205,7 @@ const Va = function(e) {
3205
3205
  x: p.x - n,
3206
3206
  y: p.y - r,
3207
3207
  enabled: {
3208
- [h]: s,
3208
+ [m]: s,
3209
3209
  [f]: a
3210
3210
  }
3211
3211
  }
@@ -3229,8 +3229,8 @@ const Va = function(e) {
3229
3229
  } = oe(e, t), d = {
3230
3230
  x: n,
3231
3231
  y: r
3232
- }, f = me(o), h = Ut(f);
3233
- let m = d[h], v = d[f];
3232
+ }, f = me(o), m = Ut(f);
3233
+ let g = d[m], v = d[f];
3234
3234
  const p = oe(i, t), b = typeof p == "number" ? {
3235
3235
  mainAxis: p,
3236
3236
  crossAxis: 0
@@ -3240,16 +3240,16 @@ const Va = function(e) {
3240
3240
  ...p
3241
3241
  };
3242
3242
  if (c) {
3243
- const C = h === "y" ? "height" : "width", w = s.reference[h] - s.floating[C] + b.mainAxis, E = s.reference[h] + s.reference[C] - b.mainAxis;
3244
- m < w ? m = w : m > E && (m = E);
3243
+ const C = m === "y" ? "height" : "width", w = s.reference[m] - s.floating[C] + b.mainAxis, E = s.reference[m] + s.reference[C] - b.mainAxis;
3244
+ g < w ? g = w : g > E && (g = E);
3245
3245
  }
3246
3246
  if (u) {
3247
3247
  var y, x;
3248
- const C = h === "y" ? "width" : "height", w = ["top", "left"].includes(se(o)), E = s.reference[f] - s.floating[C] + (w && ((y = a.offset) == null ? void 0 : y[f]) || 0) + (w ? 0 : b.crossAxis), P = s.reference[f] + s.reference[C] + (w ? 0 : ((x = a.offset) == null ? void 0 : x[f]) || 0) - (w ? b.crossAxis : 0);
3248
+ const C = m === "y" ? "width" : "height", w = ["top", "left"].includes(se(o)), E = s.reference[f] - s.floating[C] + (w && ((y = a.offset) == null ? void 0 : y[f]) || 0) + (w ? 0 : b.crossAxis), P = s.reference[f] + s.reference[C] + (w ? 0 : ((x = a.offset) == null ? void 0 : x[f]) || 0) - (w ? b.crossAxis : 0);
3249
3249
  v < E ? v = E : v > P && (v = P);
3250
3250
  }
3251
3251
  return {
3252
- [h]: m,
3252
+ [m]: g,
3253
3253
  [f]: v
3254
3254
  };
3255
3255
  }
@@ -3269,17 +3269,17 @@ const Va = function(e) {
3269
3269
  apply: c = () => {
3270
3270
  },
3271
3271
  ...u
3272
- } = oe(e, t), d = await $e(t, u), f = se(o), h = je(o), m = me(o) === "y", {
3272
+ } = oe(e, t), d = await $e(t, u), f = se(o), m = je(o), g = me(o) === "y", {
3273
3273
  width: v,
3274
3274
  height: p
3275
3275
  } = s.floating;
3276
3276
  let b, y;
3277
- f === "top" || f === "bottom" ? (b = f, y = h === (await (a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (y = f, b = h === "end" ? "top" : "bottom");
3277
+ f === "top" || f === "bottom" ? (b = f, y = m === (await (a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (y = f, b = m === "end" ? "top" : "bottom");
3278
3278
  const x = p - d.top - d.bottom, C = v - d.left - d.right, w = fe(p - d[b], x), E = fe(v - d[y], C), P = !t.middlewareData.shift;
3279
3279
  let R = w, S = E;
3280
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (S = C), (r = t.middlewareData.shift) != null && r.enabled.y && (R = x), P && !h) {
3280
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (S = C), (r = t.middlewareData.shift) != null && r.enabled.y && (R = x), P && !m) {
3281
3281
  const D = K(d.left, 0), F = K(d.right, 0), A = K(d.top, 0), L = K(d.bottom, 0);
3282
- m ? S = v - 2 * (D !== 0 || F !== 0 ? D + F : K(d.left, d.right)) : R = p - 2 * (A !== 0 || L !== 0 ? A + L : K(d.top, d.bottom));
3282
+ g ? S = v - 2 * (D !== 0 || F !== 0 ? D + F : K(d.left, d.right)) : R = p - 2 * (A !== 0 || L !== 0 ? A + L : K(d.top, d.bottom));
3283
3283
  }
3284
3284
  await c({
3285
3285
  ...t,
@@ -3321,7 +3321,7 @@ function J(e) {
3321
3321
  function In(e) {
3322
3322
  return !it() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Y(e).ShadowRoot;
3323
3323
  }
3324
- function ze(e) {
3324
+ function Ve(e) {
3325
3325
  const {
3326
3326
  overflow: t,
3327
3327
  overflowX: n,
@@ -3389,7 +3389,7 @@ function ge(e) {
3389
3389
  }
3390
3390
  function ur(e) {
3391
3391
  const t = ge(e);
3392
- return Ne(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : J(t) && ze(t) ? t : ur(t);
3392
+ return Ne(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : J(t) && Ve(t) ? t : ur(t);
3393
3393
  }
3394
3394
  function We(e, t, n) {
3395
3395
  var r;
@@ -3397,7 +3397,7 @@ function We(e, t, n) {
3397
3397
  const o = ur(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = Y(o);
3398
3398
  if (s) {
3399
3399
  const i = jt(a);
3400
- return t.concat(a, a.visualViewport || [], ze(o) ? o : [], i && n ? We(i) : []);
3400
+ return t.concat(a, a.visualViewport || [], Ve(o) ? o : [], i && n ? We(i) : []);
3401
3401
  }
3402
3402
  return t.concat(o, We(o, [], n));
3403
3403
  }
@@ -3451,9 +3451,9 @@ function ye(e, t, n, r) {
3451
3451
  const i = Ya(s, n, r) ? fr(s) : pe(0);
3452
3452
  let c = (o.left + i.x) / a.x, u = (o.top + i.y) / a.y, d = o.width / a.x, f = o.height / a.y;
3453
3453
  if (s) {
3454
- const h = Y(s), m = r && X(r) ? Y(r) : r;
3455
- let v = h, p = jt(v);
3456
- for (; p && r && m !== v; ) {
3454
+ const m = Y(s), g = r && X(r) ? Y(r) : r;
3455
+ let v = m, p = jt(v);
3456
+ for (; p && r && g !== v; ) {
3457
3457
  const b = Se(p), y = p.getBoundingClientRect(), x = q(p), C = y.left + (p.clientLeft + parseFloat(x.paddingLeft)) * b.x, w = y.top + (p.clientTop + parseFloat(x.paddingTop)) * b.y;
3458
3458
  c *= b.x, u *= b.y, d *= b.x, f *= b.y, c += C, u += w, v = Y(p), p = jt(v);
3459
3459
  }
@@ -3480,9 +3480,9 @@ function Xa(e) {
3480
3480
  scrollTop: 0
3481
3481
  }, u = pe(1);
3482
3482
  const d = pe(0), f = J(r);
3483
- if ((f || !f && !s) && ((Ie(r) !== "body" || ze(a)) && (c = ct(r)), J(r))) {
3484
- const h = ye(r);
3485
- u = Se(r), d.x = h.x + r.clientLeft, d.y = h.y + r.clientTop;
3483
+ if ((f || !f && !s) && ((Ie(r) !== "body" || Ve(a)) && (c = ct(r)), J(r))) {
3484
+ const m = ye(r);
3485
+ u = Se(r), d.x = m.x + r.clientLeft, d.y = m.y + r.clientTop;
3486
3486
  }
3487
3487
  return {
3488
3488
  width: n.width * u.x,
@@ -3564,7 +3564,7 @@ function ei(e, t) {
3564
3564
  let a = s ? ge(e) : e;
3565
3565
  for (; X(a) && !Ne(a); ) {
3566
3566
  const i = q(a), c = Xt(a);
3567
- !c && i.position === "fixed" && (o = null), (s ? !c && !o : !c && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || ze(a) && !c && pr(e, a)) ? r = r.filter((d) => d !== a) : o = i, a = ge(a);
3567
+ !c && i.position === "fixed" && (o = null), (s ? !c && !o : !c && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ve(a) && !c && pr(e, a)) ? r = r.filter((d) => d !== a) : o = i, a = ge(a);
3568
3568
  }
3569
3569
  return t.set(e, r), r;
3570
3570
  }
@@ -3604,20 +3604,20 @@ function ri(e, t, n) {
3604
3604
  };
3605
3605
  const c = pe(0);
3606
3606
  if (r || !r && !s)
3607
- if ((Ie(t) !== "body" || ze(o)) && (i = ct(t)), r) {
3608
- const m = ye(t, !0, s, t);
3609
- c.x = m.x + t.clientLeft, c.y = m.y + t.clientTop;
3607
+ if ((Ie(t) !== "body" || Ve(o)) && (i = ct(t)), r) {
3608
+ const g = ye(t, !0, s, t);
3609
+ c.x = g.x + t.clientLeft, c.y = g.y + t.clientTop;
3610
3610
  } else o && (c.x = It(o));
3611
3611
  let u = 0, d = 0;
3612
3612
  if (o && !r && !s) {
3613
- const m = o.getBoundingClientRect();
3614
- d = m.top + i.scrollTop, u = m.left + i.scrollLeft - // RTL <body> scrollbar.
3615
- It(o, m);
3613
+ const g = o.getBoundingClientRect();
3614
+ d = g.top + i.scrollTop, u = g.left + i.scrollLeft - // RTL <body> scrollbar.
3615
+ It(o, g);
3616
3616
  }
3617
- const f = a.left + i.scrollLeft - c.x - u, h = a.top + i.scrollTop - c.y - d;
3617
+ const f = a.left + i.scrollLeft - c.x - u, m = a.top + i.scrollTop - c.y - d;
3618
3618
  return {
3619
3619
  x: f,
3620
- y: h,
3620
+ y: m,
3621
3621
  width: a.width,
3622
3622
  height: a.height
3623
3623
  };
@@ -3691,12 +3691,12 @@ function ii(e, t) {
3691
3691
  left: u,
3692
3692
  top: d,
3693
3693
  width: f,
3694
- height: h
3694
+ height: m
3695
3695
  } = e.getBoundingClientRect();
3696
- if (i || t(), !f || !h)
3696
+ if (i || t(), !f || !m)
3697
3697
  return;
3698
- const m = Ue(d), v = Ue(o.clientWidth - (u + f)), p = Ue(o.clientHeight - (d + h)), b = Ue(u), x = {
3699
- rootMargin: -m + "px " + -v + "px " + -p + "px " + -b + "px",
3698
+ const g = Ue(d), v = Ue(o.clientWidth - (u + f)), p = Ue(o.clientHeight - (d + m)), b = Ue(u), x = {
3699
+ rootMargin: -g + "px " + -v + "px " + -p + "px " + -b + "px",
3700
3700
  threshold: K(0, fe(1, c)) || 1
3701
3701
  };
3702
3702
  let C = !0;
@@ -3739,14 +3739,14 @@ function li(e, t, n, r) {
3739
3739
  }), s && y.addEventListener("resize", n);
3740
3740
  });
3741
3741
  const f = u && i ? ii(u, n) : null;
3742
- let h = -1, m = null;
3743
- a && (m = new ResizeObserver((y) => {
3742
+ let m = -1, g = null;
3743
+ a && (g = new ResizeObserver((y) => {
3744
3744
  let [x] = y;
3745
- x && x.target === u && m && (m.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
3745
+ x && x.target === u && g && (g.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
3746
3746
  var C;
3747
- (C = m) == null || C.observe(t);
3747
+ (C = g) == null || C.observe(t);
3748
3748
  })), n();
3749
- }), u && !c && m.observe(u), m.observe(t));
3749
+ }), u && !c && g.observe(u), g.observe(t));
3750
3750
  let v, p = c ? ye(e) : null;
3751
3751
  c && b();
3752
3752
  function b() {
@@ -3757,10 +3757,10 @@ function li(e, t, n, r) {
3757
3757
  var y;
3758
3758
  d.forEach((x) => {
3759
3759
  o && x.removeEventListener("scroll", n), s && x.removeEventListener("resize", n);
3760
- }), f == null || f(), (y = m) == null || y.disconnect(), m = null, c && cancelAnimationFrame(v);
3760
+ }), f == null || f(), (y = g) == null || y.disconnect(), g = null, c && cancelAnimationFrame(v);
3761
3761
  };
3762
3762
  }
3763
- const ci = Va, ui = za, di = Fa, fi = Ha, pi = $a, Ln = La, mi = Ba, gi = (e, t, n) => {
3763
+ const ci = za, ui = Va, di = Fa, fi = Ha, pi = $a, Ln = La, mi = Ba, gi = (e, t, n) => {
3764
3764
  const r = /* @__PURE__ */ new Map(), o = {
3765
3765
  platform: ai,
3766
3766
  ...n
@@ -3838,8 +3838,8 @@ function hi(e) {
3838
3838
  placement: t,
3839
3839
  middlewareData: {},
3840
3840
  isPositioned: !1
3841
- }), [h, m] = l.useState(r);
3842
- st(h, r) || m(r);
3841
+ }), [m, g] = l.useState(r);
3842
+ st(m, r) || g(r);
3843
3843
  const [v, p] = l.useState(null), [b, y] = l.useState(null), x = l.useCallback((O) => {
3844
3844
  O !== P.current && (P.current = O, p(O));
3845
3845
  }, []), C = l.useCallback((O) => {
@@ -3850,7 +3850,7 @@ function hi(e) {
3850
3850
  const O = {
3851
3851
  placement: t,
3852
3852
  strategy: n,
3853
- middleware: h
3853
+ middleware: m
3854
3854
  };
3855
3855
  F.current && (O.platform = F.current), gi(P.current, R.current, O).then((W) => {
3856
3856
  const U = {
@@ -3865,7 +3865,7 @@ function hi(e) {
3865
3865
  f(U);
3866
3866
  }));
3867
3867
  });
3868
- }, [h, t, n, F, A]);
3868
+ }, [m, t, n, F, A]);
3869
3869
  Je(() => {
3870
3870
  u === !1 && S.current.isPositioned && (S.current.isPositioned = !1, f((O) => ({
3871
3871
  ...O,
@@ -3890,7 +3890,7 @@ function hi(e) {
3890
3890
  }), [x, C]), T = l.useMemo(() => ({
3891
3891
  reference: w,
3892
3892
  floating: E
3893
- }), [w, E]), V = l.useMemo(() => {
3893
+ }), [w, E]), z = l.useMemo(() => {
3894
3894
  const O = {
3895
3895
  position: n,
3896
3896
  left: 0,
@@ -3916,8 +3916,8 @@ function hi(e) {
3916
3916
  update: L,
3917
3917
  refs: B,
3918
3918
  elements: T,
3919
- floatingStyles: V
3920
- }), [d, L, B, T, V]);
3919
+ floatingStyles: z
3920
+ }), [d, L, B, T, z]);
3921
3921
  }
3922
3922
  const vi = (e) => {
3923
3923
  function t(n) {
@@ -3964,7 +3964,7 @@ const vi = (e) => {
3964
3964
  });
3965
3965
  var Pi = "Arrow", hr = l.forwardRef((e, t) => {
3966
3966
  const { children: n, width: r = 10, height: o = 5, ...s } = e;
3967
- return /* @__PURE__ */ g.jsx(
3967
+ return /* @__PURE__ */ h.jsx(
3968
3968
  $.svg,
3969
3969
  {
3970
3970
  ...s,
@@ -3973,7 +3973,7 @@ var Pi = "Arrow", hr = l.forwardRef((e, t) => {
3973
3973
  height: o,
3974
3974
  viewBox: "0 0 30 10",
3975
3975
  preserveAspectRatio: "none",
3976
- children: e.asChild ? n : /* @__PURE__ */ g.jsx("polygon", { points: "0,0 30,0 15,10" })
3976
+ children: e.asChild ? n : /* @__PURE__ */ h.jsx("polygon", { points: "0,0 30,0 15,10" })
3977
3977
  }
3978
3978
  );
3979
3979
  });
@@ -4003,15 +4003,15 @@ function Qt(e) {
4003
4003
  }
4004
4004
  var Jt = "Popper", [vr, ut] = ae(Jt), [Ai, br] = vr(Jt), yr = (e) => {
4005
4005
  const { __scopePopper: t, children: n } = e, [r, o] = l.useState(null);
4006
- return /* @__PURE__ */ g.jsx(Ai, { scope: t, anchor: r, onAnchorChange: o, children: n });
4006
+ return /* @__PURE__ */ h.jsx(Ai, { scope: t, anchor: r, onAnchorChange: o, children: n });
4007
4007
  };
4008
4008
  yr.displayName = Jt;
4009
4009
  var xr = "PopperAnchor", wr = l.forwardRef(
4010
4010
  (e, t) => {
4011
- const { __scopePopper: n, virtualRef: r, ...o } = e, s = br(xr, n), a = l.useRef(null), i = z(t, a);
4011
+ const { __scopePopper: n, virtualRef: r, ...o } = e, s = br(xr, n), a = l.useRef(null), i = V(t, a);
4012
4012
  return l.useEffect(() => {
4013
4013
  s.onAnchorChange((r == null ? void 0 : r.current) || a.current);
4014
- }), r ? null : /* @__PURE__ */ g.jsx($.div, { ...o, ref: i });
4014
+ }), r ? null : /* @__PURE__ */ h.jsx($.div, { ...o, ref: i });
4015
4015
  }
4016
4016
  );
4017
4017
  wr.displayName = xr;
@@ -4029,21 +4029,21 @@ var en = "PopperContent", [Ni, Oi] = vr(en), Cr = l.forwardRef(
4029
4029
  collisionBoundary: u = [],
4030
4030
  collisionPadding: d = 0,
4031
4031
  sticky: f = "partial",
4032
- hideWhenDetached: h = !1,
4033
- updatePositionStrategy: m = "optimized",
4032
+ hideWhenDetached: m = !1,
4033
+ updatePositionStrategy: g = "optimized",
4034
4034
  onPlaced: v,
4035
4035
  ...p
4036
- } = e, b = br(en, n), [y, x] = l.useState(null), C = z(t, (_e) => x(_e)), [w, E] = l.useState(null), P = Qt(w), R = (P == null ? void 0 : P.width) ?? 0, S = (P == null ? void 0 : P.height) ?? 0, I = r + (s !== "center" ? "-" + s : ""), D = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, F = Array.isArray(u) ? u : [u], A = F.length > 0, L = {
4036
+ } = e, b = br(en, n), [y, x] = l.useState(null), C = V(t, (_e) => x(_e)), [w, E] = l.useState(null), P = Qt(w), R = (P == null ? void 0 : P.width) ?? 0, S = (P == null ? void 0 : P.height) ?? 0, I = r + (s !== "center" ? "-" + s : ""), D = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, F = Array.isArray(u) ? u : [u], A = F.length > 0, L = {
4037
4037
  padding: D,
4038
4038
  boundary: F.filter(ki),
4039
4039
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
4040
4040
  altBoundary: A
4041
- }, { refs: j, floatingStyles: B, placement: T, isPositioned: V, middlewareData: O } = hi({
4041
+ }, { refs: j, floatingStyles: B, placement: T, isPositioned: z, middlewareData: O } = hi({
4042
4042
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
4043
4043
  strategy: "fixed",
4044
4044
  placement: I,
4045
4045
  whileElementsMounted: (..._e) => li(..._e, {
4046
- animationFrame: m === "always"
4046
+ animationFrame: g === "always"
4047
4047
  }),
4048
4048
  elements: {
4049
4049
  reference: b.anchor
@@ -4066,23 +4066,23 @@ var en = "PopperContent", [Ni, Oi] = vr(en), Cr = l.forwardRef(
4066
4066
  }),
4067
4067
  w && Ri({ element: w, padding: i }),
4068
4068
  Di({ arrowWidth: R, arrowHeight: S }),
4069
- h && Ei({ strategy: "referenceHidden", ...L })
4069
+ m && Ei({ strategy: "referenceHidden", ...L })
4070
4070
  ]
4071
4071
  }), [W, U] = Pr(T), G = re(v);
4072
4072
  be(() => {
4073
- V && (G == null || G());
4074
- }, [V, G]);
4073
+ z && (G == null || G());
4074
+ }, [z, G]);
4075
4075
  const us = (hn = O.arrow) == null ? void 0 : hn.x, ds = (vn = O.arrow) == null ? void 0 : vn.y, fs = ((bn = O.arrow) == null ? void 0 : bn.centerOffset) !== 0, [ps, ms] = l.useState();
4076
4076
  return be(() => {
4077
4077
  y && ms(window.getComputedStyle(y).zIndex);
4078
- }, [y]), /* @__PURE__ */ g.jsx(
4078
+ }, [y]), /* @__PURE__ */ h.jsx(
4079
4079
  "div",
4080
4080
  {
4081
4081
  ref: j.setFloating,
4082
4082
  "data-radix-popper-content-wrapper": "",
4083
4083
  style: {
4084
4084
  ...B,
4085
- transform: V ? B.transform : "translate(0, -200%)",
4085
+ transform: z ? B.transform : "translate(0, -200%)",
4086
4086
  // keep off the page when measuring
4087
4087
  minWidth: "max-content",
4088
4088
  zIndex: ps,
@@ -4099,7 +4099,7 @@ var en = "PopperContent", [Ni, Oi] = vr(en), Cr = l.forwardRef(
4099
4099
  }
4100
4100
  },
4101
4101
  dir: e.dir,
4102
- children: /* @__PURE__ */ g.jsx(
4102
+ children: /* @__PURE__ */ h.jsx(
4103
4103
  Ni,
4104
4104
  {
4105
4105
  scope: n,
@@ -4108,7 +4108,7 @@ var en = "PopperContent", [Ni, Oi] = vr(en), Cr = l.forwardRef(
4108
4108
  arrowX: us,
4109
4109
  arrowY: ds,
4110
4110
  shouldHideArrow: fs,
4111
- children: /* @__PURE__ */ g.jsx(
4111
+ children: /* @__PURE__ */ h.jsx(
4112
4112
  $.div,
4113
4113
  {
4114
4114
  "data-side": W,
@@ -4119,7 +4119,7 @@ var en = "PopperContent", [Ni, Oi] = vr(en), Cr = l.forwardRef(
4119
4119
  ...p.style,
4120
4120
  // if the PopperContent hasn't been placed yet (not all measurements done)
4121
4121
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
4122
- animation: V ? void 0 : "none"
4122
+ animation: z ? void 0 : "none"
4123
4123
  }
4124
4124
  }
4125
4125
  )
@@ -4141,7 +4141,7 @@ var Er = "PopperArrow", Ti = {
4141
4141
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
4142
4142
  // doesn't report size as we'd expect on SVG elements.
4143
4143
  // it reports their bounding box which is effectively the largest path inside the SVG.
4144
- /* @__PURE__ */ g.jsx(
4144
+ /* @__PURE__ */ h.jsx(
4145
4145
  "span",
4146
4146
  {
4147
4147
  ref: s.onArrowChange,
@@ -4164,7 +4164,7 @@ var Er = "PopperArrow", Ti = {
4164
4164
  }[s.placedSide],
4165
4165
  visibility: s.shouldHideArrow ? "hidden" : void 0
4166
4166
  },
4167
- children: /* @__PURE__ */ g.jsx(
4167
+ children: /* @__PURE__ */ h.jsx(
4168
4168
  Si,
4169
4169
  {
4170
4170
  ...o,
@@ -4189,9 +4189,9 @@ var Di = (e) => ({
4189
4189
  options: e,
4190
4190
  fn(t) {
4191
4191
  var b, y, x;
4192
- const { placement: n, rects: r, middlewareData: o } = t, a = ((b = o.arrow) == null ? void 0 : b.centerOffset) !== 0, i = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [u, d] = Pr(n), f = { start: "0%", center: "50%", end: "100%" }[d], h = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + i / 2, m = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + c / 2;
4192
+ const { placement: n, rects: r, middlewareData: o } = t, a = ((b = o.arrow) == null ? void 0 : b.centerOffset) !== 0, i = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [u, d] = Pr(n), f = { start: "0%", center: "50%", end: "100%" }[d], m = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + i / 2, g = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + c / 2;
4193
4193
  let v = "", p = "";
4194
- return u === "bottom" ? (v = a ? f : `${h}px`, p = `${-c}px`) : u === "top" ? (v = a ? f : `${h}px`, p = `${r.floating.height + c}px`) : u === "right" ? (v = `${-c}px`, p = a ? f : `${m}px`) : u === "left" && (v = `${r.floating.width + c}px`, p = a ? f : `${m}px`), { data: { x: v, y: p } };
4194
+ return u === "bottom" ? (v = a ? f : `${m}px`, p = `${-c}px`) : u === "top" ? (v = a ? f : `${m}px`, p = `${r.floating.height + c}px`) : u === "right" ? (v = `${-c}px`, p = a ? f : `${g}px`) : u === "left" && (v = `${r.floating.width + c}px`, p = a ? f : `${g}px`), { data: { x: v, y: p } };
4195
4195
  }
4196
4196
  });
4197
4197
  function Pr(e) {
@@ -4203,14 +4203,14 @@ var Sr = yr, tn = wr, Ar = Cr, Nr = Rr, ji = "Portal", dt = l.forwardRef((e, t)
4203
4203
  const { container: n, ...r } = e, [o, s] = l.useState(!1);
4204
4204
  be(() => s(!0), []);
4205
4205
  const a = n || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
4206
- return a ? Rs.createPortal(/* @__PURE__ */ g.jsx($.div, { ...r, ref: t }), a) : null;
4206
+ return a ? Rs.createPortal(/* @__PURE__ */ h.jsx($.div, { ...r, ref: t }), a) : null;
4207
4207
  });
4208
4208
  dt.displayName = ji;
4209
4209
  function Ii(e, t) {
4210
4210
  return l.useReducer((n, r) => t[n][r] ?? n, e);
4211
4211
  }
4212
4212
  var te = (e) => {
4213
- const { present: t, children: n } = e, r = Mi(t), o = typeof n == "function" ? n({ present: r.isPresent }) : l.Children.only(n), s = z(r.ref, _i(o));
4213
+ const { present: t, children: n } = e, r = Mi(t), o = typeof n == "function" ? n({ present: r.isPresent }) : l.Children.only(n), s = V(r.ref, _i(o));
4214
4214
  return typeof n == "function" || r.isPresent ? l.cloneElement(o, { ref: s }) : null;
4215
4215
  };
4216
4216
  te.displayName = "Presence";
@@ -4234,25 +4234,25 @@ function Mi(e) {
4234
4234
  }, [i]), be(() => {
4235
4235
  const u = r.current, d = o.current;
4236
4236
  if (d !== e) {
4237
- const h = s.current, m = Ke(u);
4238
- e ? c("MOUNT") : m === "none" || (u == null ? void 0 : u.display) === "none" ? c("UNMOUNT") : c(d && h !== m ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
4237
+ const m = s.current, g = Ke(u);
4238
+ e ? c("MOUNT") : g === "none" || (u == null ? void 0 : u.display) === "none" ? c("UNMOUNT") : c(d && m !== g ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
4239
4239
  }
4240
4240
  }, [e, c]), be(() => {
4241
4241
  if (t) {
4242
4242
  let u;
4243
- const d = t.ownerDocument.defaultView ?? window, f = (m) => {
4244
- const p = Ke(r.current).includes(m.animationName);
4245
- if (m.target === t && p && (c("ANIMATION_END"), !o.current)) {
4243
+ const d = t.ownerDocument.defaultView ?? window, f = (g) => {
4244
+ const p = Ke(r.current).includes(g.animationName);
4245
+ if (g.target === t && p && (c("ANIMATION_END"), !o.current)) {
4246
4246
  const b = t.style.animationFillMode;
4247
4247
  t.style.animationFillMode = "forwards", u = d.setTimeout(() => {
4248
4248
  t.style.animationFillMode === "forwards" && (t.style.animationFillMode = b);
4249
4249
  });
4250
4250
  }
4251
- }, h = (m) => {
4252
- m.target === t && (s.current = Ke(r.current));
4251
+ }, m = (g) => {
4252
+ g.target === t && (s.current = Ke(r.current));
4253
4253
  };
4254
- return t.addEventListener("animationstart", h), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
4255
- d.clearTimeout(u), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
4254
+ return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
4255
+ d.clearTimeout(u), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
4256
4256
  };
4257
4257
  } else
4258
4258
  c("ANIMATION_END");
@@ -4275,9 +4275,9 @@ var Li = l.forwardRef((e, t) => {
4275
4275
  const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(Fi);
4276
4276
  if (s) {
4277
4277
  const a = s.props.children, i = o.map((c) => c === s ? l.Children.count(a) > 1 ? l.Children.only(null) : l.isValidElement(a) ? a.props.children : null : c);
4278
- return /* @__PURE__ */ g.jsx(Mt, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
4278
+ return /* @__PURE__ */ h.jsx(Mt, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
4279
4279
  }
4280
- return /* @__PURE__ */ g.jsx(Mt, { ...r, ref: t, children: n });
4280
+ return /* @__PURE__ */ h.jsx(Mt, { ...r, ref: t, children: n });
4281
4281
  });
4282
4282
  Li.displayName = "Slot";
4283
4283
  var Mt = l.forwardRef((e, t) => {
@@ -4293,7 +4293,7 @@ var Mt = l.forwardRef((e, t) => {
4293
4293
  return l.Children.count(n) > 1 ? l.Children.only(null) : null;
4294
4294
  });
4295
4295
  Mt.displayName = "SlotClone";
4296
- var Or = ({ children: e }) => /* @__PURE__ */ g.jsx(g.Fragment, { children: e });
4296
+ var Or = ({ children: e }) => /* @__PURE__ */ h.jsx(h.Fragment, { children: e });
4297
4297
  function Fi(e) {
4298
4298
  return l.isValidElement(e) && e.type === Or;
4299
4299
  }
@@ -4318,7 +4318,7 @@ function Me({
4318
4318
  onChange: n = () => {
4319
4319
  }
4320
4320
  }) {
4321
- const [r, o] = Vi({ defaultProp: t, onChange: n }), s = e !== void 0, a = s ? e : r, i = re(n), c = l.useCallback(
4321
+ const [r, o] = zi({ defaultProp: t, onChange: n }), s = e !== void 0, a = s ? e : r, i = re(n), c = l.useCallback(
4322
4322
  (u) => {
4323
4323
  if (s) {
4324
4324
  const f = typeof u == "function" ? u(e) : u;
@@ -4330,7 +4330,7 @@ function Me({
4330
4330
  );
4331
4331
  return [a, c];
4332
4332
  }
4333
- function Vi({
4333
+ function zi({
4334
4334
  defaultProp: e,
4335
4335
  onChange: t
4336
4336
  }) {
@@ -4339,8 +4339,8 @@ function Vi({
4339
4339
  o.current !== r && (s(r), o.current = r);
4340
4340
  }, [r, o, s]), n;
4341
4341
  }
4342
- var zi = "VisuallyHidden", Tr = l.forwardRef(
4343
- (e, t) => /* @__PURE__ */ g.jsx(
4342
+ var Vi = "VisuallyHidden", Tr = l.forwardRef(
4343
+ (e, t) => /* @__PURE__ */ h.jsx(
4344
4344
  $.span,
4345
4345
  {
4346
4346
  ...e,
@@ -4362,7 +4362,7 @@ var zi = "VisuallyHidden", Tr = l.forwardRef(
4362
4362
  }
4363
4363
  )
4364
4364
  );
4365
- Tr.displayName = zi;
4365
+ Tr.displayName = Vi;
4366
4366
  var Bi = Tr, [ft, ed] = ae("Tooltip", [
4367
4367
  ut
4368
4368
  ]), pt = ut(), kr = "TooltipProvider", Hi = 700, _t = "tooltip.open", [Gi, nn] = ft(kr), Dr = (e) => {
@@ -4376,7 +4376,7 @@ var Bi = Tr, [ft, ed] = ae("Tooltip", [
4376
4376
  return l.useEffect(() => {
4377
4377
  const d = u.current;
4378
4378
  return () => window.clearTimeout(d);
4379
- }, []), /* @__PURE__ */ g.jsx(
4379
+ }, []), /* @__PURE__ */ h.jsx(
4380
4380
  Gi,
4381
4381
  {
4382
4382
  scope: t,
@@ -4410,28 +4410,28 @@ var mt = "Tooltip", [Ui, Be] = ft(mt), jr = (e) => {
4410
4410
  onOpenChange: s,
4411
4411
  disableHoverableContent: a,
4412
4412
  delayDuration: i
4413
- } = e, c = nn(mt, e.__scopeTooltip), u = pt(t), [d, f] = l.useState(null), h = Pe(), m = l.useRef(0), v = a ?? c.disableHoverableContent, p = i ?? c.delayDuration, b = l.useRef(!1), [y = !1, x] = Me({
4413
+ } = e, c = nn(mt, e.__scopeTooltip), u = pt(t), [d, f] = l.useState(null), m = Pe(), g = l.useRef(0), v = a ?? c.disableHoverableContent, p = i ?? c.delayDuration, b = l.useRef(!1), [y = !1, x] = Me({
4414
4414
  prop: r,
4415
4415
  defaultProp: o,
4416
4416
  onChange: (R) => {
4417
4417
  R ? (c.onOpen(), document.dispatchEvent(new CustomEvent(_t))) : c.onClose(), s == null || s(R);
4418
4418
  }
4419
4419
  }), C = l.useMemo(() => y ? b.current ? "delayed-open" : "instant-open" : "closed", [y]), w = l.useCallback(() => {
4420
- window.clearTimeout(m.current), m.current = 0, b.current = !1, x(!0);
4420
+ window.clearTimeout(g.current), g.current = 0, b.current = !1, x(!0);
4421
4421
  }, [x]), E = l.useCallback(() => {
4422
- window.clearTimeout(m.current), m.current = 0, x(!1);
4422
+ window.clearTimeout(g.current), g.current = 0, x(!1);
4423
4423
  }, [x]), P = l.useCallback(() => {
4424
- window.clearTimeout(m.current), m.current = window.setTimeout(() => {
4425
- b.current = !0, x(!0), m.current = 0;
4424
+ window.clearTimeout(g.current), g.current = window.setTimeout(() => {
4425
+ b.current = !0, x(!0), g.current = 0;
4426
4426
  }, p);
4427
4427
  }, [p, x]);
4428
4428
  return l.useEffect(() => () => {
4429
- m.current && (window.clearTimeout(m.current), m.current = 0);
4430
- }, []), /* @__PURE__ */ g.jsx(Sr, { ...u, children: /* @__PURE__ */ g.jsx(
4429
+ g.current && (window.clearTimeout(g.current), g.current = 0);
4430
+ }, []), /* @__PURE__ */ h.jsx(Sr, { ...u, children: /* @__PURE__ */ h.jsx(
4431
4431
  Ui,
4432
4432
  {
4433
4433
  scope: t,
4434
- contentId: h,
4434
+ contentId: m,
4435
4435
  open: y,
4436
4436
  stateAttribute: C,
4437
4437
  trigger: d,
@@ -4440,7 +4440,7 @@ var mt = "Tooltip", [Ui, Be] = ft(mt), jr = (e) => {
4440
4440
  c.isOpenDelayed ? P() : w();
4441
4441
  }, [c.isOpenDelayed, P, w]),
4442
4442
  onTriggerLeave: l.useCallback(() => {
4443
- v ? E() : (window.clearTimeout(m.current), m.current = 0);
4443
+ v ? E() : (window.clearTimeout(g.current), g.current = 0);
4444
4444
  }, [E, v]),
4445
4445
  onOpen: w,
4446
4446
  onClose: E,
@@ -4452,16 +4452,16 @@ var mt = "Tooltip", [Ui, Be] = ft(mt), jr = (e) => {
4452
4452
  jr.displayName = mt;
4453
4453
  var Lt = "TooltipTrigger", Ir = l.forwardRef(
4454
4454
  (e, t) => {
4455
- const { __scopeTooltip: n, ...r } = e, o = Be(Lt, n), s = nn(Lt, n), a = pt(n), i = l.useRef(null), c = z(t, i, o.onTriggerChange), u = l.useRef(!1), d = l.useRef(!1), f = l.useCallback(() => u.current = !1, []);
4456
- return l.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ g.jsx(tn, { asChild: !0, ...a, children: /* @__PURE__ */ g.jsx(
4455
+ const { __scopeTooltip: n, ...r } = e, o = Be(Lt, n), s = nn(Lt, n), a = pt(n), i = l.useRef(null), c = V(t, i, o.onTriggerChange), u = l.useRef(!1), d = l.useRef(!1), f = l.useCallback(() => u.current = !1, []);
4456
+ return l.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ h.jsx(tn, { asChild: !0, ...a, children: /* @__PURE__ */ h.jsx(
4457
4457
  $.button,
4458
4458
  {
4459
4459
  "aria-describedby": o.open ? o.contentId : void 0,
4460
4460
  "data-state": o.stateAttribute,
4461
4461
  ...r,
4462
4462
  ref: c,
4463
- onPointerMove: k(e.onPointerMove, (h) => {
4464
- h.pointerType !== "touch" && !d.current && !s.isPointerInTransitRef.current && (o.onTriggerEnter(), d.current = !0);
4463
+ onPointerMove: k(e.onPointerMove, (m) => {
4464
+ m.pointerType !== "touch" && !d.current && !s.isPointerInTransitRef.current && (o.onTriggerEnter(), d.current = !0);
4465
4465
  }),
4466
4466
  onPointerLeave: k(e.onPointerLeave, () => {
4467
4467
  o.onTriggerLeave(), d.current = !1;
@@ -4483,40 +4483,40 @@ var rn = "TooltipPortal", [Ki, Yi] = ft(rn, {
4483
4483
  forceMount: void 0
4484
4484
  }), Mr = (e) => {
4485
4485
  const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, s = Be(rn, t);
4486
- return /* @__PURE__ */ g.jsx(Ki, { scope: t, forceMount: n, children: /* @__PURE__ */ g.jsx(te, { present: n || s.open, children: /* @__PURE__ */ g.jsx(dt, { asChild: !0, container: o, children: r }) }) });
4486
+ return /* @__PURE__ */ h.jsx(Ki, { scope: t, forceMount: n, children: /* @__PURE__ */ h.jsx(te, { present: n || s.open, children: /* @__PURE__ */ h.jsx(dt, { asChild: !0, container: o, children: r }) }) });
4487
4487
  };
4488
4488
  Mr.displayName = rn;
4489
4489
  var Oe = "TooltipContent", _r = l.forwardRef(
4490
4490
  (e, t) => {
4491
4491
  const n = Yi(Oe, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, a = Be(Oe, e.__scopeTooltip);
4492
- return /* @__PURE__ */ g.jsx(te, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ g.jsx(Lr, { side: o, ...s, ref: t }) : /* @__PURE__ */ g.jsx(Xi, { side: o, ...s, ref: t }) });
4492
+ return /* @__PURE__ */ h.jsx(te, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ h.jsx(Lr, { side: o, ...s, ref: t }) : /* @__PURE__ */ h.jsx(Xi, { side: o, ...s, ref: t }) });
4493
4493
  }
4494
4494
  ), Xi = l.forwardRef((e, t) => {
4495
- const n = Be(Oe, e.__scopeTooltip), r = nn(Oe, e.__scopeTooltip), o = l.useRef(null), s = z(t, o), [a, i] = l.useState(null), { trigger: c, onClose: u } = n, d = o.current, { onPointerInTransitChange: f } = r, h = l.useCallback(() => {
4495
+ const n = Be(Oe, e.__scopeTooltip), r = nn(Oe, e.__scopeTooltip), o = l.useRef(null), s = V(t, o), [a, i] = l.useState(null), { trigger: c, onClose: u } = n, d = o.current, { onPointerInTransitChange: f } = r, m = l.useCallback(() => {
4496
4496
  i(null), f(!1);
4497
- }, [f]), m = l.useCallback(
4497
+ }, [f]), g = l.useCallback(
4498
4498
  (v, p) => {
4499
4499
  const b = v.currentTarget, y = { x: v.clientX, y: v.clientY }, x = Ji(y, b.getBoundingClientRect()), C = el(y, x), w = tl(p.getBoundingClientRect()), E = rl([...C, ...w]);
4500
4500
  i(E), f(!0);
4501
4501
  },
4502
4502
  [f]
4503
4503
  );
4504
- return l.useEffect(() => () => h(), [h]), l.useEffect(() => {
4504
+ return l.useEffect(() => () => m(), [m]), l.useEffect(() => {
4505
4505
  if (c && d) {
4506
- const v = (b) => m(b, d), p = (b) => m(b, c);
4506
+ const v = (b) => g(b, d), p = (b) => g(b, c);
4507
4507
  return c.addEventListener("pointerleave", v), d.addEventListener("pointerleave", p), () => {
4508
4508
  c.removeEventListener("pointerleave", v), d.removeEventListener("pointerleave", p);
4509
4509
  };
4510
4510
  }
4511
- }, [c, d, m, h]), l.useEffect(() => {
4511
+ }, [c, d, g, m]), l.useEffect(() => {
4512
4512
  if (a) {
4513
4513
  const v = (p) => {
4514
4514
  const b = p.target, y = { x: p.clientX, y: p.clientY }, x = (c == null ? void 0 : c.contains(b)) || (d == null ? void 0 : d.contains(b)), C = !nl(y, a);
4515
- x ? h() : C && (h(), u());
4515
+ x ? m() : C && (m(), u());
4516
4516
  };
4517
4517
  return document.addEventListener("pointermove", v), () => document.removeEventListener("pointermove", v);
4518
4518
  }
4519
- }, [c, d, a, u, h]), /* @__PURE__ */ g.jsx(Lr, { ...e, ref: s });
4519
+ }, [c, d, a, u, m]), /* @__PURE__ */ h.jsx(Lr, { ...e, ref: s });
4520
4520
  }), [qi, Zi] = ft(mt, { isInside: !1 }), Lr = l.forwardRef(
4521
4521
  (e, t) => {
4522
4522
  const {
@@ -4529,14 +4529,14 @@ var Oe = "TooltipContent", _r = l.forwardRef(
4529
4529
  } = e, c = Be(Oe, n), u = pt(n), { onClose: d } = c;
4530
4530
  return l.useEffect(() => (document.addEventListener(_t, d), () => document.removeEventListener(_t, d)), [d]), l.useEffect(() => {
4531
4531
  if (c.trigger) {
4532
- const f = (h) => {
4533
- const m = h.target;
4534
- m != null && m.contains(c.trigger) && d();
4532
+ const f = (m) => {
4533
+ const g = m.target;
4534
+ g != null && g.contains(c.trigger) && d();
4535
4535
  };
4536
4536
  return window.addEventListener("scroll", f, { capture: !0 }), () => window.removeEventListener("scroll", f, { capture: !0 });
4537
4537
  }
4538
- }, [c.trigger, d]), /* @__PURE__ */ g.jsx(
4539
- Ve,
4538
+ }, [c.trigger, d]), /* @__PURE__ */ h.jsx(
4539
+ ze,
4540
4540
  {
4541
4541
  asChild: !0,
4542
4542
  disableOutsidePointerEvents: !1,
@@ -4544,7 +4544,7 @@ var Oe = "TooltipContent", _r = l.forwardRef(
4544
4544
  onPointerDownOutside: a,
4545
4545
  onFocusOutside: (f) => f.preventDefault(),
4546
4546
  onDismiss: d,
4547
- children: /* @__PURE__ */ g.jsxs(
4547
+ children: /* @__PURE__ */ h.jsxs(
4548
4548
  Ar,
4549
4549
  {
4550
4550
  "data-state": c.stateAttribute,
@@ -4560,8 +4560,8 @@ var Oe = "TooltipContent", _r = l.forwardRef(
4560
4560
  "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
4561
4561
  },
4562
4562
  children: [
4563
- /* @__PURE__ */ g.jsx(Or, { children: r }),
4564
- /* @__PURE__ */ g.jsx(qi, { scope: n, isInside: !0, children: /* @__PURE__ */ g.jsx(Bi, { id: c.contentId, role: "tooltip", children: o || r }) })
4563
+ /* @__PURE__ */ h.jsx(Or, { children: r }),
4564
+ /* @__PURE__ */ h.jsx(qi, { scope: n, isInside: !0, children: /* @__PURE__ */ h.jsx(Bi, { id: c.contentId, role: "tooltip", children: o || r }) })
4565
4565
  ]
4566
4566
  }
4567
4567
  )
@@ -4576,7 +4576,7 @@ var Fr = "TooltipArrow", Qi = l.forwardRef(
4576
4576
  return Zi(
4577
4577
  Fr,
4578
4578
  n
4579
- ).isInside ? null : /* @__PURE__ */ g.jsx(Nr, { ...o, ...r, ref: t });
4579
+ ).isInside ? null : /* @__PURE__ */ h.jsx(Nr, { ...o, ...r, ref: t });
4580
4580
  }
4581
4581
  );
4582
4582
  Qi.displayName = Fr;
@@ -4673,7 +4673,7 @@ function ol(e) {
4673
4673
  return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
4674
4674
  }
4675
4675
  var sl = Dr, al = jr, il = Ir, ll = Mr, $r = _r;
4676
- const td = sl, cl = al, ul = il, Wr = l.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ g.jsx(ll, { children: /* @__PURE__ */ g.jsx(
4676
+ const td = sl, cl = al, ul = il, Wr = l.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ h.jsx(ll, { children: /* @__PURE__ */ h.jsx(
4677
4677
  $r,
4678
4678
  {
4679
4679
  ref: r,
@@ -4690,10 +4690,10 @@ const dl = ({
4690
4690
  children: e,
4691
4691
  title: t,
4692
4692
  ...n
4693
- }) => t ? /* @__PURE__ */ g.jsxs(cl, { ...n, children: [
4694
- /* @__PURE__ */ g.jsx(ul, { asChild: !0, children: /* @__PURE__ */ g.jsx("span", { className: "al-max-w-full", children: e }) }),
4695
- /* @__PURE__ */ g.jsx(Wr, { children: t })
4696
- ] }) : /* @__PURE__ */ g.jsx(g.Fragment, { children: e }), fl = Gt(
4693
+ }) => t ? /* @__PURE__ */ h.jsxs(cl, { ...n, children: [
4694
+ /* @__PURE__ */ h.jsx(ul, { asChild: !0, children: /* @__PURE__ */ h.jsx("span", { className: "al-max-w-full", children: e }) }),
4695
+ /* @__PURE__ */ h.jsx(Wr, { children: t })
4696
+ ] }) : /* @__PURE__ */ h.jsx(h.Fragment, { children: e }), fl = Gt(
4697
4697
  "al-inline-flex al-items-center al-justify-center al-gap-2 al-whitespace-nowrap al-text-sm al-font-medium al-ring-offset-background al-transition-colors focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 disabled:al-pointer-events-none disabled:al-opacity-50 [&_svg]:al-pointer-events-none [&_svg]:al-size-4 [&_svg]:al-shrink-0",
4698
4698
  {
4699
4699
  variants: {
@@ -4720,7 +4720,7 @@ const dl = ({
4720
4720
  }
4721
4721
  }
4722
4722
  ), pl = ({ className: e, variant: t, size: n, asChild: r = !1, title: o, ...s }, a) => {
4723
- const i = r ? sa : "button", c = /* @__PURE__ */ g.jsx(
4723
+ const i = r ? sa : "button", c = /* @__PURE__ */ h.jsx(
4724
4724
  i,
4725
4725
  {
4726
4726
  className: M(fl({ variant: t, size: n, className: e })),
@@ -4729,14 +4729,14 @@ const dl = ({
4729
4729
  "aria-label": s["aria-label"] || o
4730
4730
  }
4731
4731
  );
4732
- return o ? /* @__PURE__ */ g.jsx(dl, { title: o, children: c }) : c;
4732
+ return o ? /* @__PURE__ */ h.jsx(dl, { title: o, children: c }) : c;
4733
4733
  }, ml = l.forwardRef(pl), gl = ml;
4734
4734
  gl.displayName = "Button";
4735
- function Vr(e) {
4735
+ function zr(e) {
4736
4736
  const t = l.useRef({ value: e, previous: e });
4737
4737
  return l.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
4738
4738
  }
4739
- var on = "Checkbox", [hl, nd] = ae(on), [vl, bl] = hl(on), zr = l.forwardRef(
4739
+ var on = "Checkbox", [hl, nd] = ae(on), [vl, bl] = hl(on), Vr = l.forwardRef(
4740
4740
  (e, t) => {
4741
4741
  const {
4742
4742
  __scopeCheckbox: n,
@@ -4749,19 +4749,19 @@ var on = "Checkbox", [hl, nd] = ae(on), [vl, bl] = hl(on), zr = l.forwardRef(
4749
4749
  onCheckedChange: u,
4750
4750
  form: d,
4751
4751
  ...f
4752
- } = e, [h, m] = l.useState(null), v = z(t, (w) => m(w)), p = l.useRef(!1), b = h ? d || !!h.closest("form") : !0, [y = !1, x] = Me({
4752
+ } = e, [m, g] = l.useState(null), v = V(t, (w) => g(w)), p = l.useRef(!1), b = m ? d || !!m.closest("form") : !0, [y = !1, x] = Me({
4753
4753
  prop: o,
4754
4754
  defaultProp: s,
4755
4755
  onChange: u
4756
4756
  }), C = l.useRef(y);
4757
4757
  return l.useEffect(() => {
4758
- const w = h == null ? void 0 : h.form;
4758
+ const w = m == null ? void 0 : m.form;
4759
4759
  if (w) {
4760
4760
  const E = () => x(C.current);
4761
4761
  return w.addEventListener("reset", E), () => w.removeEventListener("reset", E);
4762
4762
  }
4763
- }, [h, x]), /* @__PURE__ */ g.jsxs(vl, { scope: n, state: y, disabled: i, children: [
4764
- /* @__PURE__ */ g.jsx(
4763
+ }, [m, x]), /* @__PURE__ */ h.jsxs(vl, { scope: n, state: y, disabled: i, children: [
4764
+ /* @__PURE__ */ h.jsx(
4765
4765
  $.button,
4766
4766
  {
4767
4767
  type: "button",
@@ -4782,10 +4782,10 @@ var on = "Checkbox", [hl, nd] = ae(on), [vl, bl] = hl(on), zr = l.forwardRef(
4782
4782
  })
4783
4783
  }
4784
4784
  ),
4785
- b && /* @__PURE__ */ g.jsx(
4785
+ b && /* @__PURE__ */ h.jsx(
4786
4786
  yl,
4787
4787
  {
4788
- control: h,
4788
+ control: m,
4789
4789
  bubbles: !p.current,
4790
4790
  name: r,
4791
4791
  value: c,
@@ -4800,11 +4800,11 @@ var on = "Checkbox", [hl, nd] = ae(on), [vl, bl] = hl(on), zr = l.forwardRef(
4800
4800
  ] });
4801
4801
  }
4802
4802
  );
4803
- zr.displayName = on;
4803
+ Vr.displayName = on;
4804
4804
  var Br = "CheckboxIndicator", Hr = l.forwardRef(
4805
4805
  (e, t) => {
4806
4806
  const { __scopeCheckbox: n, forceMount: r, ...o } = e, s = bl(Br, n);
4807
- return /* @__PURE__ */ g.jsx(te, { present: r || de(s.state) || s.state === !0, children: /* @__PURE__ */ g.jsx(
4807
+ return /* @__PURE__ */ h.jsx(te, { present: r || de(s.state) || s.state === !0, children: /* @__PURE__ */ h.jsx(
4808
4808
  $.span,
4809
4809
  {
4810
4810
  "data-state": Gr(s.state),
@@ -4818,16 +4818,16 @@ var Br = "CheckboxIndicator", Hr = l.forwardRef(
4818
4818
  );
4819
4819
  Hr.displayName = Br;
4820
4820
  var yl = (e) => {
4821
- const { control: t, checked: n, bubbles: r = !0, defaultChecked: o, ...s } = e, a = l.useRef(null), i = Vr(n), c = Qt(t);
4821
+ const { control: t, checked: n, bubbles: r = !0, defaultChecked: o, ...s } = e, a = l.useRef(null), i = zr(n), c = Qt(t);
4822
4822
  l.useEffect(() => {
4823
- const d = a.current, f = window.HTMLInputElement.prototype, m = Object.getOwnPropertyDescriptor(f, "checked").set;
4824
- if (i !== n && m) {
4823
+ const d = a.current, f = window.HTMLInputElement.prototype, g = Object.getOwnPropertyDescriptor(f, "checked").set;
4824
+ if (i !== n && g) {
4825
4825
  const v = new Event("click", { bubbles: r });
4826
- d.indeterminate = de(n), m.call(d, de(n) ? !1 : n), d.dispatchEvent(v);
4826
+ d.indeterminate = de(n), g.call(d, de(n) ? !1 : n), d.dispatchEvent(v);
4827
4827
  }
4828
4828
  }, [i, n, r]);
4829
4829
  const u = l.useRef(de(n) ? !1 : n);
4830
- return /* @__PURE__ */ g.jsx(
4830
+ return /* @__PURE__ */ h.jsx(
4831
4831
  "input",
4832
4832
  {
4833
4833
  type: "checkbox",
@@ -4853,8 +4853,8 @@ function de(e) {
4853
4853
  function Gr(e) {
4854
4854
  return de(e) ? "indeterminate" : e ? "checked" : "unchecked";
4855
4855
  }
4856
- var Ur = zr, xl = Hr;
4857
- const Kr = H(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
4856
+ var Ur = Vr, xl = Hr;
4857
+ const Kr = H(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
4858
4858
  Ur,
4859
4859
  {
4860
4860
  ref: n,
@@ -4863,11 +4863,11 @@ const Kr = H(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
4863
4863
  e
4864
4864
  ),
4865
4865
  ...t,
4866
- children: /* @__PURE__ */ g.jsx(
4866
+ children: /* @__PURE__ */ h.jsx(
4867
4867
  xl,
4868
4868
  {
4869
4869
  className: M("al-flex al-items-center al-justify-center al-text-current"),
4870
- children: /* @__PURE__ */ g.jsx(
4870
+ children: /* @__PURE__ */ h.jsx(
4871
4871
  "svg",
4872
4872
  {
4873
4873
  xmlns: "http://www.w3.org/2000/svg",
@@ -4879,7 +4879,7 @@ const Kr = H(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
4879
4879
  strokeWidth: "2",
4880
4880
  strokeLinecap: "round",
4881
4881
  strokeLinejoin: "round",
4882
- children: /* @__PURE__ */ g.jsx("path", { d: "M20 6 9 17l-5-5" })
4882
+ children: /* @__PURE__ */ h.jsx("path", { d: "M20 6 9 17l-5-5" })
4883
4883
  }
4884
4884
  )
4885
4885
  }
@@ -4891,9 +4891,9 @@ var Ft = l.forwardRef((e, t) => {
4891
4891
  const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(Cl);
4892
4892
  if (s) {
4893
4893
  const a = s.props.children, i = o.map((c) => c === s ? l.Children.count(a) > 1 ? l.Children.only(null) : l.isValidElement(a) ? a.props.children : null : c);
4894
- return /* @__PURE__ */ g.jsx($t, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
4894
+ return /* @__PURE__ */ h.jsx($t, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
4895
4895
  }
4896
- return /* @__PURE__ */ g.jsx($t, { ...r, ref: t, children: n });
4896
+ return /* @__PURE__ */ h.jsx($t, { ...r, ref: t, children: n });
4897
4897
  });
4898
4898
  Ft.displayName = "Slot";
4899
4899
  var $t = l.forwardRef((e, t) => {
@@ -4909,7 +4909,7 @@ var $t = l.forwardRef((e, t) => {
4909
4909
  return l.Children.count(n) > 1 ? l.Children.only(null) : null;
4910
4910
  });
4911
4911
  $t.displayName = "SlotClone";
4912
- var wl = ({ children: e }) => /* @__PURE__ */ g.jsx(g.Fragment, { children: e });
4912
+ var wl = ({ children: e }) => /* @__PURE__ */ h.jsx(h.Fragment, { children: e });
4913
4913
  function Cl(e) {
4914
4914
  return l.isValidElement(e) && e.type === wl;
4915
4915
  }
@@ -4932,27 +4932,27 @@ function Pl(e) {
4932
4932
  const t = e + "CollectionProvider", [n, r] = ae(t), [o, s] = n(
4933
4933
  t,
4934
4934
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
4935
- ), a = (m) => {
4936
- const { scope: v, children: p } = m, b = ve.useRef(null), y = ve.useRef(/* @__PURE__ */ new Map()).current;
4937
- return /* @__PURE__ */ g.jsx(o, { scope: v, itemMap: y, collectionRef: b, children: p });
4935
+ ), a = (g) => {
4936
+ const { scope: v, children: p } = g, b = ve.useRef(null), y = ve.useRef(/* @__PURE__ */ new Map()).current;
4937
+ return /* @__PURE__ */ h.jsx(o, { scope: v, itemMap: y, collectionRef: b, children: p });
4938
4938
  };
4939
4939
  a.displayName = t;
4940
4940
  const i = e + "CollectionSlot", c = ve.forwardRef(
4941
- (m, v) => {
4942
- const { scope: p, children: b } = m, y = s(i, p), x = z(v, y.collectionRef);
4943
- return /* @__PURE__ */ g.jsx(Ft, { ref: x, children: b });
4941
+ (g, v) => {
4942
+ const { scope: p, children: b } = g, y = s(i, p), x = V(v, y.collectionRef);
4943
+ return /* @__PURE__ */ h.jsx(Ft, { ref: x, children: b });
4944
4944
  }
4945
4945
  );
4946
4946
  c.displayName = i;
4947
4947
  const u = e + "CollectionItemSlot", d = "data-radix-collection-item", f = ve.forwardRef(
4948
- (m, v) => {
4949
- const { scope: p, children: b, ...y } = m, x = ve.useRef(null), C = z(v, x), w = s(u, p);
4950
- return ve.useEffect(() => (w.itemMap.set(x, { ref: x, ...y }), () => void w.itemMap.delete(x))), /* @__PURE__ */ g.jsx(Ft, { [d]: "", ref: C, children: b });
4948
+ (g, v) => {
4949
+ const { scope: p, children: b, ...y } = g, x = ve.useRef(null), C = V(v, x), w = s(u, p);
4950
+ return ve.useEffect(() => (w.itemMap.set(x, { ref: x, ...y }), () => void w.itemMap.delete(x))), /* @__PURE__ */ h.jsx(Ft, { [d]: "", ref: C, children: b });
4951
4951
  }
4952
4952
  );
4953
4953
  f.displayName = u;
4954
- function h(m) {
4955
- const v = s(e + "CollectionConsumer", m);
4954
+ function m(g) {
4955
+ const v = s(e + "CollectionConsumer", g);
4956
4956
  return ve.useCallback(() => {
4957
4957
  const b = v.collectionRef.current;
4958
4958
  if (!b) return [];
@@ -4964,7 +4964,7 @@ function Pl(e) {
4964
4964
  }
4965
4965
  return [
4966
4966
  { Provider: a, Slot: c, ItemSlot: f },
4967
- h,
4967
+ m,
4968
4968
  r
4969
4969
  ];
4970
4970
  }
@@ -4977,7 +4977,7 @@ var xt = "rovingFocusGroup.onEntryFocus", Al = { bubbles: !1, cancelable: !0 },
4977
4977
  gt,
4978
4978
  [Nl]
4979
4979
  ), [Tl, kl] = Ol(gt), Zr = l.forwardRef(
4980
- (e, t) => /* @__PURE__ */ g.jsx(Wt.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g.jsx(Wt.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g.jsx(Dl, { ...e, ref: t }) }) })
4980
+ (e, t) => /* @__PURE__ */ h.jsx(Wt.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ h.jsx(Wt.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ h.jsx(Dl, { ...e, ref: t }) }) })
4981
4981
  );
4982
4982
  Zr.displayName = gt;
4983
4983
  var Dl = l.forwardRef((e, t) => {
@@ -4992,16 +4992,16 @@ var Dl = l.forwardRef((e, t) => {
4992
4992
  onEntryFocus: u,
4993
4993
  preventScrollOnEntryFocus: d = !1,
4994
4994
  ...f
4995
- } = e, h = l.useRef(null), m = z(t, h), v = Yr(s), [p = null, b] = Me({
4995
+ } = e, m = l.useRef(null), g = V(t, m), v = Yr(s), [p = null, b] = Me({
4996
4996
  prop: a,
4997
4997
  defaultProp: i,
4998
4998
  onChange: c
4999
4999
  }), [y, x] = l.useState(!1), C = re(u), w = Xr(n), E = l.useRef(!1), [P, R] = l.useState(0);
5000
5000
  return l.useEffect(() => {
5001
- const S = h.current;
5001
+ const S = m.current;
5002
5002
  if (S)
5003
5003
  return S.addEventListener(xt, C), () => S.removeEventListener(xt, C);
5004
- }, [C]), /* @__PURE__ */ g.jsx(
5004
+ }, [C]), /* @__PURE__ */ h.jsx(
5005
5005
  Tl,
5006
5006
  {
5007
5007
  scope: n,
@@ -5022,13 +5022,13 @@ var Dl = l.forwardRef((e, t) => {
5022
5022
  () => R((S) => S - 1),
5023
5023
  []
5024
5024
  ),
5025
- children: /* @__PURE__ */ g.jsx(
5025
+ children: /* @__PURE__ */ h.jsx(
5026
5026
  $.div,
5027
5027
  {
5028
5028
  tabIndex: y || P === 0 ? -1 : 0,
5029
5029
  "data-orientation": r,
5030
5030
  ...f,
5031
- ref: m,
5031
+ ref: g,
5032
5032
  style: { outline: "none", ...e.style },
5033
5033
  onMouseDown: k(e.onMouseDown, () => {
5034
5034
  E.current = !0;
@@ -5059,18 +5059,18 @@ var Dl = l.forwardRef((e, t) => {
5059
5059
  active: o = !1,
5060
5060
  tabStopId: s,
5061
5061
  ...a
5062
- } = e, i = Pe(), c = s || i, u = kl(Qr, n), d = u.currentTabStopId === c, f = Xr(n), { onFocusableItemAdd: h, onFocusableItemRemove: m } = u;
5062
+ } = e, i = Pe(), c = s || i, u = kl(Qr, n), d = u.currentTabStopId === c, f = Xr(n), { onFocusableItemAdd: m, onFocusableItemRemove: g } = u;
5063
5063
  return l.useEffect(() => {
5064
5064
  if (r)
5065
- return h(), () => m();
5066
- }, [r, h, m]), /* @__PURE__ */ g.jsx(
5065
+ return m(), () => g();
5066
+ }, [r, m, g]), /* @__PURE__ */ h.jsx(
5067
5067
  Wt.ItemSlot,
5068
5068
  {
5069
5069
  scope: n,
5070
5070
  id: c,
5071
5071
  focusable: r,
5072
5072
  active: o,
5073
- children: /* @__PURE__ */ g.jsx(
5073
+ children: /* @__PURE__ */ h.jsx(
5074
5074
  $.span,
5075
5075
  {
5076
5076
  tabIndex: d ? 0 : -1,
@@ -5134,7 +5134,7 @@ function eo(e, t = !1) {
5134
5134
  function _l(e, t) {
5135
5135
  return e.map((n, r) => e[(t + r) % e.length]);
5136
5136
  }
5137
- var Ll = Zr, Fl = Jr, sn = "Radio", [$l, to] = ae(sn), [Wl, Vl] = $l(sn), no = l.forwardRef(
5137
+ var Ll = Zr, Fl = Jr, sn = "Radio", [$l, to] = ae(sn), [Wl, zl] = $l(sn), no = l.forwardRef(
5138
5138
  (e, t) => {
5139
5139
  const {
5140
5140
  __scopeRadio: n,
@@ -5146,9 +5146,9 @@ var Ll = Zr, Fl = Jr, sn = "Radio", [$l, to] = ae(sn), [Wl, Vl] = $l(sn), no = l
5146
5146
  onCheck: c,
5147
5147
  form: u,
5148
5148
  ...d
5149
- } = e, [f, h] = l.useState(null), m = z(t, (b) => h(b)), v = l.useRef(!1), p = f ? u || !!f.closest("form") : !0;
5150
- return /* @__PURE__ */ g.jsxs(Wl, { scope: n, checked: o, disabled: a, children: [
5151
- /* @__PURE__ */ g.jsx(
5149
+ } = e, [f, m] = l.useState(null), g = V(t, (b) => m(b)), v = l.useRef(!1), p = f ? u || !!f.closest("form") : !0;
5150
+ return /* @__PURE__ */ h.jsxs(Wl, { scope: n, checked: o, disabled: a, children: [
5151
+ /* @__PURE__ */ h.jsx(
5152
5152
  $.button,
5153
5153
  {
5154
5154
  type: "button",
@@ -5159,14 +5159,14 @@ var Ll = Zr, Fl = Jr, sn = "Radio", [$l, to] = ae(sn), [Wl, Vl] = $l(sn), no = l
5159
5159
  disabled: a,
5160
5160
  value: i,
5161
5161
  ...d,
5162
- ref: m,
5162
+ ref: g,
5163
5163
  onClick: k(e.onClick, (b) => {
5164
5164
  o || c == null || c(), p && (v.current = b.isPropagationStopped(), v.current || b.stopPropagation());
5165
5165
  })
5166
5166
  }
5167
5167
  ),
5168
- p && /* @__PURE__ */ g.jsx(
5169
- zl,
5168
+ p && /* @__PURE__ */ h.jsx(
5169
+ Vl,
5170
5170
  {
5171
5171
  control: f,
5172
5172
  bubbles: !v.current,
@@ -5185,8 +5185,8 @@ var Ll = Zr, Fl = Jr, sn = "Radio", [$l, to] = ae(sn), [Wl, Vl] = $l(sn), no = l
5185
5185
  no.displayName = sn;
5186
5186
  var ro = "RadioIndicator", oo = l.forwardRef(
5187
5187
  (e, t) => {
5188
- const { __scopeRadio: n, forceMount: r, ...o } = e, s = Vl(ro, n);
5189
- return /* @__PURE__ */ g.jsx(te, { present: r || s.checked, children: /* @__PURE__ */ g.jsx(
5188
+ const { __scopeRadio: n, forceMount: r, ...o } = e, s = zl(ro, n);
5189
+ return /* @__PURE__ */ h.jsx(te, { present: r || s.checked, children: /* @__PURE__ */ h.jsx(
5190
5190
  $.span,
5191
5191
  {
5192
5192
  "data-state": so(s.checked),
@@ -5198,15 +5198,15 @@ var ro = "RadioIndicator", oo = l.forwardRef(
5198
5198
  }
5199
5199
  );
5200
5200
  oo.displayName = ro;
5201
- var zl = (e) => {
5202
- const { control: t, checked: n, bubbles: r = !0, ...o } = e, s = l.useRef(null), a = Vr(n), i = Qt(t);
5201
+ var Vl = (e) => {
5202
+ const { control: t, checked: n, bubbles: r = !0, ...o } = e, s = l.useRef(null), a = zr(n), i = Qt(t);
5203
5203
  return l.useEffect(() => {
5204
5204
  const c = s.current, u = window.HTMLInputElement.prototype, f = Object.getOwnPropertyDescriptor(u, "checked").set;
5205
5205
  if (a !== n && f) {
5206
- const h = new Event("click", { bubbles: r });
5207
- f.call(c, n), c.dispatchEvent(h);
5206
+ const m = new Event("click", { bubbles: r });
5207
+ f.call(c, n), c.dispatchEvent(m);
5208
5208
  }
5209
- }, [a, n, r]), /* @__PURE__ */ g.jsx(
5209
+ }, [a, n, r]), /* @__PURE__ */ h.jsx(
5210
5210
  "input",
5211
5211
  {
5212
5212
  type: "radio",
@@ -5245,13 +5245,13 @@ var Bl = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], an = "RadioGroup",
5245
5245
  dir: u,
5246
5246
  loop: d = !0,
5247
5247
  onValueChange: f,
5248
- ...h
5249
- } = e, m = ao(n), v = Yr(u), [p, b] = Me({
5248
+ ...m
5249
+ } = e, g = ao(n), v = Yr(u), [p, b] = Me({
5250
5250
  prop: s,
5251
5251
  defaultProp: o,
5252
5252
  onChange: f
5253
5253
  });
5254
- return /* @__PURE__ */ g.jsx(
5254
+ return /* @__PURE__ */ h.jsx(
5255
5255
  Gl,
5256
5256
  {
5257
5257
  scope: n,
@@ -5260,15 +5260,15 @@ var Bl = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], an = "RadioGroup",
5260
5260
  disabled: i,
5261
5261
  value: p,
5262
5262
  onValueChange: b,
5263
- children: /* @__PURE__ */ g.jsx(
5263
+ children: /* @__PURE__ */ h.jsx(
5264
5264
  Ll,
5265
5265
  {
5266
5266
  asChild: !0,
5267
- ...m,
5267
+ ...g,
5268
5268
  orientation: c,
5269
5269
  dir: v,
5270
5270
  loop: d,
5271
- children: /* @__PURE__ */ g.jsx(
5271
+ children: /* @__PURE__ */ h.jsx(
5272
5272
  $.div,
5273
5273
  {
5274
5274
  role: "radiogroup",
@@ -5276,7 +5276,7 @@ var Bl = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], an = "RadioGroup",
5276
5276
  "aria-orientation": c,
5277
5277
  "data-disabled": i ? "" : void 0,
5278
5278
  dir: v,
5279
- ...h,
5279
+ ...m,
5280
5280
  ref: t
5281
5281
  }
5282
5282
  )
@@ -5289,22 +5289,22 @@ var Bl = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], an = "RadioGroup",
5289
5289
  lo.displayName = an;
5290
5290
  var co = "RadioGroupItem", uo = l.forwardRef(
5291
5291
  (e, t) => {
5292
- const { __scopeRadioGroup: n, disabled: r, ...o } = e, s = Ul(co, n), a = s.disabled || r, i = ao(n), c = io(n), u = l.useRef(null), d = z(t, u), f = s.value === o.value, h = l.useRef(!1);
5292
+ const { __scopeRadioGroup: n, disabled: r, ...o } = e, s = Ul(co, n), a = s.disabled || r, i = ao(n), c = io(n), u = l.useRef(null), d = V(t, u), f = s.value === o.value, m = l.useRef(!1);
5293
5293
  return l.useEffect(() => {
5294
- const m = (p) => {
5295
- Bl.includes(p.key) && (h.current = !0);
5296
- }, v = () => h.current = !1;
5297
- return document.addEventListener("keydown", m), document.addEventListener("keyup", v), () => {
5298
- document.removeEventListener("keydown", m), document.removeEventListener("keyup", v);
5294
+ const g = (p) => {
5295
+ Bl.includes(p.key) && (m.current = !0);
5296
+ }, v = () => m.current = !1;
5297
+ return document.addEventListener("keydown", g), document.addEventListener("keyup", v), () => {
5298
+ document.removeEventListener("keydown", g), document.removeEventListener("keyup", v);
5299
5299
  };
5300
- }, []), /* @__PURE__ */ g.jsx(
5300
+ }, []), /* @__PURE__ */ h.jsx(
5301
5301
  Fl,
5302
5302
  {
5303
5303
  asChild: !0,
5304
5304
  ...i,
5305
5305
  focusable: !a,
5306
5306
  active: f,
5307
- children: /* @__PURE__ */ g.jsx(
5307
+ children: /* @__PURE__ */ h.jsx(
5308
5308
  no,
5309
5309
  {
5310
5310
  disabled: a,
@@ -5315,12 +5315,12 @@ var co = "RadioGroupItem", uo = l.forwardRef(
5315
5315
  name: s.name,
5316
5316
  ref: d,
5317
5317
  onCheck: () => s.onValueChange(o.value),
5318
- onKeyDown: k((m) => {
5319
- m.key === "Enter" && m.preventDefault();
5318
+ onKeyDown: k((g) => {
5319
+ g.key === "Enter" && g.preventDefault();
5320
5320
  }),
5321
5321
  onFocus: k(o.onFocus, () => {
5322
- var m;
5323
- h.current && ((m = u.current) == null || m.click());
5322
+ var g;
5323
+ m.current && ((g = u.current) == null || g.click());
5324
5324
  })
5325
5325
  }
5326
5326
  )
@@ -5332,14 +5332,14 @@ uo.displayName = co;
5332
5332
  var Kl = "RadioGroupIndicator", fo = l.forwardRef(
5333
5333
  (e, t) => {
5334
5334
  const { __scopeRadioGroup: n, ...r } = e, o = io(n);
5335
- return /* @__PURE__ */ g.jsx(oo, { ...o, ...r, ref: t });
5335
+ return /* @__PURE__ */ h.jsx(oo, { ...o, ...r, ref: t });
5336
5336
  }
5337
5337
  );
5338
5338
  fo.displayName = Kl;
5339
5339
  var po = lo, mo = uo, Yl = fo;
5340
- const Xl = H(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(po, { className: M("al-grid al-gap-2", e), ...t, ref: n }));
5340
+ const Xl = H(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(po, { className: M("al-grid al-gap-2", e), ...t, ref: n }));
5341
5341
  Xl.displayName = po.displayName;
5342
- const go = H(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
5342
+ const go = H(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
5343
5343
  mo,
5344
5344
  {
5345
5345
  ref: n,
@@ -5348,27 +5348,27 @@ const go = H(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
5348
5348
  e
5349
5349
  ),
5350
5350
  ...t,
5351
- children: /* @__PURE__ */ g.jsx(Yl, { className: "al-flex al-items-center al-justify-center", children: /* @__PURE__ */ g.jsx(ys, { className: "al-h-2.5 al-w-2.5 al-fill-current al-text-current" }) })
5351
+ children: /* @__PURE__ */ h.jsx(Yl, { className: "al-flex al-items-center al-justify-center", children: /* @__PURE__ */ h.jsx(ys, { className: "al-h-2.5 al-w-2.5 al-fill-current al-text-current" }) })
5352
5352
  }
5353
5353
  ));
5354
5354
  go.displayName = mo.displayName;
5355
5355
  const ql = l.forwardRef(
5356
5356
  ({ className: e, type: t, icon: n, iconPosition: r = "left", insetRing: o = !1, ...s }, a) => {
5357
5357
  const i = "al-flex al-h-10 al-w-full al-rounded-md al-border al-border-input al-bg-background al-py-2 al-text-base al-ring-offset-background file:al-border-0 file:al-bg-transparent file:al-text-sm file:al-font-medium file:al-text-foreground placeholder:al-text-muted-foreground focus-visible:al-outline-none disabled:al-cursor-not-allowed disabled:al-opacity-50 md:al-text-sm", c = o ? "focus-visible:al-ring-1 focus-visible:al-ring-inset focus-visible:al-ring-ring" : "focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2";
5358
- return t === "checkbox" ? /* @__PURE__ */ g.jsx(
5358
+ return t === "checkbox" ? /* @__PURE__ */ h.jsx(
5359
5359
  Kr,
5360
5360
  {
5361
5361
  className: e,
5362
5362
  ...s
5363
5363
  }
5364
- ) : t === "radio" ? /* @__PURE__ */ g.jsx(
5364
+ ) : t === "radio" ? /* @__PURE__ */ h.jsx(
5365
5365
  go,
5366
5366
  {
5367
5367
  className: e,
5368
5368
  ...s
5369
5369
  }
5370
- ) : n ? /* @__PURE__ */ g.jsxs("div", { className: "al-relative al-w-full", children: [
5371
- /* @__PURE__ */ g.jsx(
5370
+ ) : n ? /* @__PURE__ */ h.jsxs("div", { className: "al-relative al-w-full", children: [
5371
+ /* @__PURE__ */ h.jsx(
5372
5372
  "input",
5373
5373
  {
5374
5374
  type: t,
@@ -5382,17 +5382,17 @@ const ql = l.forwardRef(
5382
5382
  ...s
5383
5383
  }
5384
5384
  ),
5385
- /* @__PURE__ */ g.jsx(
5385
+ /* @__PURE__ */ h.jsx(
5386
5386
  "div",
5387
5387
  {
5388
5388
  className: M(
5389
5389
  "al-absolute al-top-0 al-flex al-h-10 al-items-center al-pointer-events-none",
5390
5390
  r === "left" ? "al-left-3" : "al-right-3"
5391
5391
  ),
5392
- children: /* @__PURE__ */ g.jsx(n, { size: 16, className: "al-text-muted-foreground" })
5392
+ children: /* @__PURE__ */ h.jsx(n, { size: 16, className: "al-text-muted-foreground" })
5393
5393
  }
5394
5394
  )
5395
- ] }) : /* @__PURE__ */ g.jsx(
5395
+ ] }) : /* @__PURE__ */ h.jsx(
5396
5396
  "input",
5397
5397
  {
5398
5398
  type: t,
@@ -5405,7 +5405,7 @@ const ql = l.forwardRef(
5405
5405
  );
5406
5406
  ql.displayName = "Input";
5407
5407
  const Zl = l.forwardRef(
5408
- ({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
5408
+ ({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
5409
5409
  "textarea",
5410
5410
  {
5411
5411
  className: M(
@@ -5453,10 +5453,10 @@ var Ql = {
5453
5453
  */
5454
5454
  const od = (e, t, n, r) => {
5455
5455
  const o = H(
5456
- ({ color: s = "currentColor", size: a = 24, stroke: i = 2, title: c, className: u, children: d, ...f }, h) => Qe(
5456
+ ({ color: s = "currentColor", size: a = 24, stroke: i = 2, title: c, className: u, children: d, ...f }, m) => Qe(
5457
5457
  "svg",
5458
5458
  {
5459
- ref: h,
5459
+ ref: m,
5460
5460
  ...Ql[e],
5461
5461
  width: a,
5462
5462
  height: a,
@@ -5471,7 +5471,7 @@ const od = (e, t, n, r) => {
5471
5471
  },
5472
5472
  [
5473
5473
  c && Qe("title", { key: "svg-title" }, c),
5474
- ...r.map(([m, v]) => Qe(m, v)),
5474
+ ...r.map(([g, v]) => Qe(g, v)),
5475
5475
  ...Array.isArray(d) ? d : [d]
5476
5476
  ]
5477
5477
  )
@@ -5485,7 +5485,7 @@ var wt = "focusScope.autoFocusOnMount", Ct = "focusScope.autoFocusOnUnmount", $n
5485
5485
  onMountAutoFocus: o,
5486
5486
  onUnmountAutoFocus: s,
5487
5487
  ...a
5488
- } = e, [i, c] = l.useState(null), u = re(o), d = re(s), f = l.useRef(null), h = z(t, (p) => c(p)), m = l.useRef({
5488
+ } = e, [i, c] = l.useState(null), u = re(o), d = re(s), f = l.useRef(null), m = V(t, (p) => c(p)), g = l.useRef({
5489
5489
  paused: !1,
5490
5490
  pause() {
5491
5491
  this.paused = !0;
@@ -5497,11 +5497,11 @@ var wt = "focusScope.autoFocusOnMount", Ct = "focusScope.autoFocusOnUnmount", $n
5497
5497
  l.useEffect(() => {
5498
5498
  if (r) {
5499
5499
  let p = function(C) {
5500
- if (m.paused || !i) return;
5500
+ if (g.paused || !i) return;
5501
5501
  const w = C.target;
5502
5502
  i.contains(w) ? f.current = w : ce(f.current, { select: !0 });
5503
5503
  }, b = function(C) {
5504
- if (m.paused || !i) return;
5504
+ if (g.paused || !i) return;
5505
5505
  const w = C.relatedTarget;
5506
5506
  w !== null && (i.contains(w) || ce(f.current, { select: !0 }));
5507
5507
  }, y = function(C) {
@@ -5515,9 +5515,9 @@ var wt = "focusScope.autoFocusOnMount", Ct = "focusScope.autoFocusOnUnmount", $n
5515
5515
  document.removeEventListener("focusin", p), document.removeEventListener("focusout", b), x.disconnect();
5516
5516
  };
5517
5517
  }
5518
- }, [r, i, m.paused]), l.useEffect(() => {
5518
+ }, [r, i, g.paused]), l.useEffect(() => {
5519
5519
  if (i) {
5520
- Vn.add(m);
5520
+ zn.add(g);
5521
5521
  const p = document.activeElement;
5522
5522
  if (!i.contains(p)) {
5523
5523
  const y = new CustomEvent(wt, $n);
@@ -5526,23 +5526,23 @@ var wt = "focusScope.autoFocusOnMount", Ct = "focusScope.autoFocusOnUnmount", $n
5526
5526
  return () => {
5527
5527
  i.removeEventListener(wt, u), setTimeout(() => {
5528
5528
  const y = new CustomEvent(Ct, $n);
5529
- i.addEventListener(Ct, d), i.dispatchEvent(y), y.defaultPrevented || ce(p ?? document.body, { select: !0 }), i.removeEventListener(Ct, d), Vn.remove(m);
5529
+ i.addEventListener(Ct, d), i.dispatchEvent(y), y.defaultPrevented || ce(p ?? document.body, { select: !0 }), i.removeEventListener(Ct, d), zn.remove(g);
5530
5530
  }, 0);
5531
5531
  };
5532
5532
  }
5533
- }, [i, u, d, m]);
5533
+ }, [i, u, d, g]);
5534
5534
  const v = l.useCallback(
5535
5535
  (p) => {
5536
- if (!n && !r || m.paused) return;
5536
+ if (!n && !r || g.paused) return;
5537
5537
  const b = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, y = document.activeElement;
5538
5538
  if (b && y) {
5539
5539
  const x = p.currentTarget, [C, w] = tc(x);
5540
5540
  C && w ? !p.shiftKey && y === w ? (p.preventDefault(), n && ce(C, { select: !0 })) : p.shiftKey && y === C && (p.preventDefault(), n && ce(w, { select: !0 })) : y === x && p.preventDefault();
5541
5541
  }
5542
5542
  },
5543
- [n, r, m.paused]
5543
+ [n, r, g.paused]
5544
5544
  );
5545
- return /* @__PURE__ */ g.jsx($.div, { tabIndex: -1, ...a, ref: h, onKeyDown: v });
5545
+ return /* @__PURE__ */ h.jsx($.div, { tabIndex: -1, ...a, ref: m, onKeyDown: v });
5546
5546
  });
5547
5547
  ln.displayName = Jl;
5548
5548
  function ec(e, { select: t = !1 } = {}) {
@@ -5586,21 +5586,21 @@ function ce(e, { select: t = !1 } = {}) {
5586
5586
  e.focus({ preventScroll: !0 }), e !== n && rc(e) && t && e.select();
5587
5587
  }
5588
5588
  }
5589
- var Vn = oc();
5589
+ var zn = oc();
5590
5590
  function oc() {
5591
5591
  let e = [];
5592
5592
  return {
5593
5593
  add(t) {
5594
5594
  const n = e[0];
5595
- t !== n && (n == null || n.pause()), e = zn(e, t), e.unshift(t);
5595
+ t !== n && (n == null || n.pause()), e = Vn(e, t), e.unshift(t);
5596
5596
  },
5597
5597
  remove(t) {
5598
5598
  var n;
5599
- e = zn(e, t), (n = e[0]) == null || n.resume();
5599
+ e = Vn(e, t), (n = e[0]) == null || n.resume();
5600
5600
  }
5601
5601
  };
5602
5602
  }
5603
- function zn(e, t) {
5603
+ function Vn(e, t) {
5604
5604
  const n = [...e], r = n.indexOf(t);
5605
5605
  return r !== -1 && n.splice(r, 1), n;
5606
5606
  }
@@ -5769,11 +5769,11 @@ var xo = mc(), Pt = function() {
5769
5769
  onScrollCapture: Pt,
5770
5770
  onWheelCapture: Pt,
5771
5771
  onTouchMoveCapture: Pt
5772
- }), o = r[0], s = r[1], a = e.forwardProps, i = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, h = e.sideCar, m = e.noIsolation, v = e.inert, p = e.allowPinchZoom, b = e.as, y = b === void 0 ? "div" : b, x = e.gapMode, C = bo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), w = h, E = dc([n, t]), P = Q(Q({}, C), o);
5772
+ }), o = r[0], s = r[1], a = e.forwardProps, i = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, m = e.sideCar, g = e.noIsolation, v = e.inert, p = e.allowPinchZoom, b = e.as, y = b === void 0 ? "div" : b, x = e.gapMode, C = bo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), w = m, E = dc([n, t]), P = Q(Q({}, C), o);
5773
5773
  return l.createElement(
5774
5774
  l.Fragment,
5775
5775
  null,
5776
- d && l.createElement(w, { sideCar: xo, removeScrollBar: u, shards: f, noIsolation: m, inert: v, setCallbacks: s, allowPinchZoom: !!p, lockRef: n, gapMode: x }),
5776
+ d && l.createElement(w, { sideCar: xo, removeScrollBar: u, shards: f, noIsolation: g, inert: v, setCallbacks: s, allowPinchZoom: !!p, lockRef: n, gapMode: x }),
5777
5777
  a ? l.cloneElement(l.Children.only(i), Q(Q({}, P), { ref: E })) : l.createElement(y, Q({}, P, { className: c, ref: E }), i)
5778
5778
  );
5779
5779
  });
@@ -5911,19 +5911,19 @@ var xc = function() {
5911
5911
  return Rc(o);
5912
5912
  }, [o]);
5913
5913
  return l.createElement(Pc, { styles: Sc(s, !t, o, n ? "" : "!important") });
5914
- }, Vt = !1;
5914
+ }, zt = !1;
5915
5915
  if (typeof window < "u")
5916
5916
  try {
5917
5917
  var Ye = Object.defineProperty({}, "passive", {
5918
5918
  get: function() {
5919
- return Vt = !0, !0;
5919
+ return zt = !0, !0;
5920
5920
  }
5921
5921
  });
5922
5922
  window.addEventListener("test", Ye, Ye), window.removeEventListener("test", Ye, Ye);
5923
5923
  } catch {
5924
- Vt = !1;
5924
+ zt = !1;
5925
5925
  }
5926
- var we = Vt ? { passive: !1 } : !1, Oc = function(e) {
5926
+ var we = zt ? { passive: !1 } : !1, Oc = function(e) {
5927
5927
  return e.tagName === "TEXTAREA";
5928
5928
  }, Co = function(e, t) {
5929
5929
  if (!(e instanceof Element))
@@ -5972,16 +5972,16 @@ var we = Vt ? { passive: !1 } : !1, Oc = function(e) {
5972
5972
  }, Ic = function(e, t) {
5973
5973
  return e === "h" && t === "rtl" ? -1 : 1;
5974
5974
  }, Mc = function(e, t, n, r, o) {
5975
- var s = Ic(e, window.getComputedStyle(t).direction), a = s * r, i = n.target, c = t.contains(i), u = !1, d = a > 0, f = 0, h = 0;
5975
+ var s = Ic(e, window.getComputedStyle(t).direction), a = s * r, i = n.target, c = t.contains(i), u = !1, d = a > 0, f = 0, m = 0;
5976
5976
  do {
5977
- var m = Ro(e, i), v = m[0], p = m[1], b = m[2], y = p - b - s * v;
5978
- (v || y) && Eo(e, i) && (f += y, h += v), i instanceof ShadowRoot ? i = i.host : i = i.parentNode;
5977
+ var g = Ro(e, i), v = g[0], p = g[1], b = g[2], y = p - b - s * v;
5978
+ (v || y) && Eo(e, i) && (f += y, m += v), i instanceof ShadowRoot ? i = i.host : i = i.parentNode;
5979
5979
  } while (
5980
5980
  // portaled content
5981
5981
  !c && i !== document.body || // self content
5982
5982
  c && (t.contains(i) || t === i)
5983
5983
  );
5984
- return (d && (Math.abs(f) < 1 || !o) || !d && (Math.abs(h) < 1 || !o)) && (u = !0), u;
5984
+ return (d && (Math.abs(f) < 1 || !o) || !d && (Math.abs(m) < 1 || !o)) && (u = !0), u;
5985
5985
  }, Xe = function(e) {
5986
5986
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
5987
5987
  }, Kn = function(e) {
@@ -6056,26 +6056,26 @@ function $c(e) {
6056
6056
  n.current = Xe(p), r.current = void 0;
6057
6057
  }, []), f = l.useCallback(function(p) {
6058
6058
  u(p.type, Kn(p), p.target, i(p, e.lockRef.current));
6059
- }, []), h = l.useCallback(function(p) {
6059
+ }, []), m = l.useCallback(function(p) {
6060
6060
  u(p.type, Xe(p), p.target, i(p, e.lockRef.current));
6061
6061
  }, []);
6062
6062
  l.useEffect(function() {
6063
6063
  return Ce.push(s), e.setCallbacks({
6064
6064
  onScrollCapture: f,
6065
6065
  onWheelCapture: f,
6066
- onTouchMoveCapture: h
6066
+ onTouchMoveCapture: m
6067
6067
  }), document.addEventListener("wheel", c, we), document.addEventListener("touchmove", c, we), document.addEventListener("touchstart", d, we), function() {
6068
6068
  Ce = Ce.filter(function(p) {
6069
6069
  return p !== s;
6070
6070
  }), document.removeEventListener("wheel", c, we), document.removeEventListener("touchmove", c, we), document.removeEventListener("touchstart", d, we);
6071
6071
  };
6072
6072
  }, []);
6073
- var m = e.removeScrollBar, v = e.inert;
6073
+ var g = e.removeScrollBar, v = e.inert;
6074
6074
  return l.createElement(
6075
6075
  l.Fragment,
6076
6076
  null,
6077
6077
  v ? l.createElement(s, { styles: Lc(o) }) : null,
6078
- m ? l.createElement(Nc, { gapMode: e.gapMode }) : null
6078
+ g ? l.createElement(Nc, { gapMode: e.gapMode }) : null
6079
6079
  );
6080
6080
  }
6081
6081
  function Wc(e) {
@@ -6083,12 +6083,12 @@ function Wc(e) {
6083
6083
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
6084
6084
  return t;
6085
6085
  }
6086
- const Vc = gc(xo, $c);
6086
+ const zc = gc(xo, $c);
6087
6087
  var cn = l.forwardRef(function(e, t) {
6088
- return l.createElement(ht, Q({}, e, { ref: t, sideCar: Vc }));
6088
+ return l.createElement(ht, Q({}, e, { ref: t, sideCar: zc }));
6089
6089
  });
6090
6090
  cn.classNames = ht.classNames;
6091
- var zc = function(e) {
6091
+ var Vc = function(e) {
6092
6092
  if (typeof document > "u")
6093
6093
  return null;
6094
6094
  var t = Array.isArray(e) ? e[0] : e;
@@ -6112,27 +6112,27 @@ var zc = function(e) {
6112
6112
  };
6113
6113
  o.forEach(u);
6114
6114
  var d = function(f) {
6115
- !f || c.has(f) || Array.prototype.forEach.call(f.children, function(h) {
6116
- if (i.has(h))
6117
- d(h);
6115
+ !f || c.has(f) || Array.prototype.forEach.call(f.children, function(m) {
6116
+ if (i.has(m))
6117
+ d(m);
6118
6118
  else
6119
6119
  try {
6120
- var m = h.getAttribute(r), v = m !== null && m !== "false", p = (Ee.get(h) || 0) + 1, b = (s.get(h) || 0) + 1;
6121
- Ee.set(h, p), s.set(h, b), a.push(h), p === 1 && v && qe.set(h, !0), b === 1 && h.setAttribute(n, "true"), v || h.setAttribute(r, "true");
6120
+ var g = m.getAttribute(r), v = g !== null && g !== "false", p = (Ee.get(m) || 0) + 1, b = (s.get(m) || 0) + 1;
6121
+ Ee.set(m, p), s.set(m, b), a.push(m), p === 1 && v && qe.set(m, !0), b === 1 && m.setAttribute(n, "true"), v || m.setAttribute(r, "true");
6122
6122
  } catch (y) {
6123
- console.error("aria-hidden: cannot operate on ", h, y);
6123
+ console.error("aria-hidden: cannot operate on ", m, y);
6124
6124
  }
6125
6125
  });
6126
6126
  };
6127
6127
  return d(t), i.clear(), At++, function() {
6128
6128
  a.forEach(function(f) {
6129
- var h = Ee.get(f) - 1, m = s.get(f) - 1;
6130
- Ee.set(f, h), s.set(f, m), h || (qe.has(f) || f.removeAttribute(r), qe.delete(f)), m || f.removeAttribute(n);
6129
+ var m = Ee.get(f) - 1, g = s.get(f) - 1;
6130
+ Ee.set(f, m), s.set(f, g), m || (qe.has(f) || f.removeAttribute(r), qe.delete(f)), g || f.removeAttribute(n);
6131
6131
  }), At--, At || (Ee = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), Ze = {});
6132
6132
  };
6133
6133
  }, So = function(e, t, n) {
6134
6134
  n === void 0 && (n = "data-aria-hidden");
6135
- var r = Array.from(Array.isArray(e) ? e : [e]), o = zc(e);
6135
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = Vc(e);
6136
6136
  return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Hc(r, o, n, "aria-hidden")) : function() {
6137
6137
  return null;
6138
6138
  };
@@ -6140,12 +6140,12 @@ var zc = function(e) {
6140
6140
  const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(Uc);
6141
6141
  if (s) {
6142
6142
  const a = s.props.children, i = o.map((c) => c === s ? l.Children.count(a) > 1 ? l.Children.only(null) : l.isValidElement(a) ? a.props.children : null : c);
6143
- return /* @__PURE__ */ g.jsx(zt, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
6143
+ return /* @__PURE__ */ h.jsx(Vt, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
6144
6144
  }
6145
- return /* @__PURE__ */ g.jsx(zt, { ...r, ref: t, children: n });
6145
+ return /* @__PURE__ */ h.jsx(Vt, { ...r, ref: t, children: n });
6146
6146
  });
6147
6147
  Ao.displayName = "Slot";
6148
- var zt = l.forwardRef((e, t) => {
6148
+ var Vt = l.forwardRef((e, t) => {
6149
6149
  const { children: n, ...r } = e;
6150
6150
  if (l.isValidElement(n)) {
6151
6151
  const o = Yc(n);
@@ -6157,8 +6157,8 @@ var zt = l.forwardRef((e, t) => {
6157
6157
  }
6158
6158
  return l.Children.count(n) > 1 ? l.Children.only(null) : null;
6159
6159
  });
6160
- zt.displayName = "SlotClone";
6161
- var Gc = ({ children: e }) => /* @__PURE__ */ g.jsx(g.Fragment, { children: e });
6160
+ Vt.displayName = "SlotClone";
6161
+ var Gc = ({ children: e }) => /* @__PURE__ */ h.jsx(h.Fragment, { children: e });
6162
6162
  function Uc(e) {
6163
6163
  return l.isValidElement(e) && e.type === Gc;
6164
6164
  }
@@ -6190,7 +6190,7 @@ var un = "Dialog", [No, sd] = ae(un), [Xc, Z] = No(un), Oo = (e) => {
6190
6190
  defaultProp: o,
6191
6191
  onChange: s
6192
6192
  });
6193
- return /* @__PURE__ */ g.jsx(
6193
+ return /* @__PURE__ */ h.jsx(
6194
6194
  Xc,
6195
6195
  {
6196
6196
  scope: t,
@@ -6210,8 +6210,8 @@ var un = "Dialog", [No, sd] = ae(un), [Xc, Z] = No(un), Oo = (e) => {
6210
6210
  Oo.displayName = un;
6211
6211
  var To = "DialogTrigger", ko = l.forwardRef(
6212
6212
  (e, t) => {
6213
- const { __scopeDialog: n, ...r } = e, o = Z(To, n), s = z(t, o.triggerRef);
6214
- return /* @__PURE__ */ g.jsx(
6213
+ const { __scopeDialog: n, ...r } = e, o = Z(To, n), s = V(t, o.triggerRef);
6214
+ return /* @__PURE__ */ h.jsx(
6215
6215
  $.button,
6216
6216
  {
6217
6217
  type: "button",
@@ -6231,13 +6231,13 @@ var dn = "DialogPortal", [qc, Do] = No(dn, {
6231
6231
  forceMount: void 0
6232
6232
  }), jo = (e) => {
6233
6233
  const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = Z(dn, t);
6234
- return /* @__PURE__ */ g.jsx(qc, { scope: t, forceMount: n, children: l.Children.map(r, (a) => /* @__PURE__ */ g.jsx(te, { present: n || s.open, children: /* @__PURE__ */ g.jsx(dt, { asChild: !0, container: o, children: a }) })) });
6234
+ return /* @__PURE__ */ h.jsx(qc, { scope: t, forceMount: n, children: l.Children.map(r, (a) => /* @__PURE__ */ h.jsx(te, { present: n || s.open, children: /* @__PURE__ */ h.jsx(dt, { asChild: !0, container: o, children: a }) })) });
6235
6235
  };
6236
6236
  jo.displayName = dn;
6237
6237
  var at = "DialogOverlay", Io = l.forwardRef(
6238
6238
  (e, t) => {
6239
6239
  const n = Do(at, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = Z(at, e.__scopeDialog);
6240
- return s.modal ? /* @__PURE__ */ g.jsx(te, { present: r || s.open, children: /* @__PURE__ */ g.jsx(Zc, { ...o, ref: t }) }) : null;
6240
+ return s.modal ? /* @__PURE__ */ h.jsx(te, { present: r || s.open, children: /* @__PURE__ */ h.jsx(Zc, { ...o, ref: t }) }) : null;
6241
6241
  }
6242
6242
  );
6243
6243
  Io.displayName = at;
@@ -6247,7 +6247,7 @@ var Zc = l.forwardRef(
6247
6247
  return (
6248
6248
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
6249
6249
  // ie. when `Overlay` and `Content` are siblings
6250
- /* @__PURE__ */ g.jsx(cn, { as: Ao, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ g.jsx(
6250
+ /* @__PURE__ */ h.jsx(cn, { as: Ao, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ h.jsx(
6251
6251
  $.div,
6252
6252
  {
6253
6253
  "data-state": pn(o.open),
@@ -6261,17 +6261,17 @@ var Zc = l.forwardRef(
6261
6261
  ), xe = "DialogContent", Mo = l.forwardRef(
6262
6262
  (e, t) => {
6263
6263
  const n = Do(xe, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = Z(xe, e.__scopeDialog);
6264
- return /* @__PURE__ */ g.jsx(te, { present: r || s.open, children: s.modal ? /* @__PURE__ */ g.jsx(Qc, { ...o, ref: t }) : /* @__PURE__ */ g.jsx(Jc, { ...o, ref: t }) });
6264
+ return /* @__PURE__ */ h.jsx(te, { present: r || s.open, children: s.modal ? /* @__PURE__ */ h.jsx(Qc, { ...o, ref: t }) : /* @__PURE__ */ h.jsx(Jc, { ...o, ref: t }) });
6265
6265
  }
6266
6266
  );
6267
6267
  Mo.displayName = xe;
6268
6268
  var Qc = l.forwardRef(
6269
6269
  (e, t) => {
6270
- const n = Z(xe, e.__scopeDialog), r = l.useRef(null), o = z(t, n.contentRef, r);
6270
+ const n = Z(xe, e.__scopeDialog), r = l.useRef(null), o = V(t, n.contentRef, r);
6271
6271
  return l.useEffect(() => {
6272
6272
  const s = r.current;
6273
6273
  if (s) return So(s);
6274
- }, []), /* @__PURE__ */ g.jsx(
6274
+ }, []), /* @__PURE__ */ h.jsx(
6275
6275
  _o,
6276
6276
  {
6277
6277
  ...e,
@@ -6296,7 +6296,7 @@ var Qc = l.forwardRef(
6296
6296
  ), Jc = l.forwardRef(
6297
6297
  (e, t) => {
6298
6298
  const n = Z(xe, e.__scopeDialog), r = l.useRef(!1), o = l.useRef(!1);
6299
- return /* @__PURE__ */ g.jsx(
6299
+ return /* @__PURE__ */ h.jsx(
6300
6300
  _o,
6301
6301
  {
6302
6302
  ...e,
@@ -6318,9 +6318,9 @@ var Qc = l.forwardRef(
6318
6318
  }
6319
6319
  ), _o = l.forwardRef(
6320
6320
  (e, t) => {
6321
- const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...a } = e, i = Z(xe, n), c = l.useRef(null), u = z(t, c);
6322
- return vo(), /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
6323
- /* @__PURE__ */ g.jsx(
6321
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...a } = e, i = Z(xe, n), c = l.useRef(null), u = V(t, c);
6322
+ return vo(), /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
6323
+ /* @__PURE__ */ h.jsx(
6324
6324
  ln,
6325
6325
  {
6326
6326
  asChild: !0,
@@ -6328,8 +6328,8 @@ var Qc = l.forwardRef(
6328
6328
  trapped: r,
6329
6329
  onMountAutoFocus: o,
6330
6330
  onUnmountAutoFocus: s,
6331
- children: /* @__PURE__ */ g.jsx(
6332
- Ve,
6331
+ children: /* @__PURE__ */ h.jsx(
6332
+ ze,
6333
6333
  {
6334
6334
  role: "dialog",
6335
6335
  id: i.contentId,
@@ -6343,30 +6343,30 @@ var Qc = l.forwardRef(
6343
6343
  )
6344
6344
  }
6345
6345
  ),
6346
- /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
6347
- /* @__PURE__ */ g.jsx(eu, { titleId: i.titleId }),
6348
- /* @__PURE__ */ g.jsx(nu, { contentRef: c, descriptionId: i.descriptionId })
6346
+ /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
6347
+ /* @__PURE__ */ h.jsx(eu, { titleId: i.titleId }),
6348
+ /* @__PURE__ */ h.jsx(nu, { contentRef: c, descriptionId: i.descriptionId })
6349
6349
  ] })
6350
6350
  ] });
6351
6351
  }
6352
6352
  ), fn = "DialogTitle", Lo = l.forwardRef(
6353
6353
  (e, t) => {
6354
6354
  const { __scopeDialog: n, ...r } = e, o = Z(fn, n);
6355
- return /* @__PURE__ */ g.jsx($.h2, { id: o.titleId, ...r, ref: t });
6355
+ return /* @__PURE__ */ h.jsx($.h2, { id: o.titleId, ...r, ref: t });
6356
6356
  }
6357
6357
  );
6358
6358
  Lo.displayName = fn;
6359
6359
  var Fo = "DialogDescription", $o = l.forwardRef(
6360
6360
  (e, t) => {
6361
6361
  const { __scopeDialog: n, ...r } = e, o = Z(Fo, n);
6362
- return /* @__PURE__ */ g.jsx($.p, { id: o.descriptionId, ...r, ref: t });
6362
+ return /* @__PURE__ */ h.jsx($.p, { id: o.descriptionId, ...r, ref: t });
6363
6363
  }
6364
6364
  );
6365
6365
  $o.displayName = Fo;
6366
- var Wo = "DialogClose", Vo = l.forwardRef(
6366
+ var Wo = "DialogClose", zo = l.forwardRef(
6367
6367
  (e, t) => {
6368
6368
  const { __scopeDialog: n, ...r } = e, o = Z(Wo, n);
6369
- return /* @__PURE__ */ g.jsx(
6369
+ return /* @__PURE__ */ h.jsx(
6370
6370
  $.button,
6371
6371
  {
6372
6372
  type: "button",
@@ -6377,16 +6377,16 @@ var Wo = "DialogClose", Vo = l.forwardRef(
6377
6377
  );
6378
6378
  }
6379
6379
  );
6380
- Vo.displayName = Wo;
6380
+ zo.displayName = Wo;
6381
6381
  function pn(e) {
6382
6382
  return e ? "open" : "closed";
6383
6383
  }
6384
- var zo = "DialogTitleWarning", [ad, Bo] = da(zo, {
6384
+ var Vo = "DialogTitleWarning", [ad, Bo] = da(Vo, {
6385
6385
  contentName: xe,
6386
6386
  titleName: fn,
6387
6387
  docsSlug: "dialog"
6388
6388
  }), eu = ({ titleId: e }) => {
6389
- const t = Bo(zo), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
6389
+ const t = Bo(Vo), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
6390
6390
 
6391
6391
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
6392
6392
 
@@ -6401,7 +6401,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
6401
6401
  const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
6402
6402
  t && o && (document.getElementById(t) || console.warn(r));
6403
6403
  }, [r, e, t]), null;
6404
- }, ru = Oo, ou = ko, su = jo, Ho = Io, Go = Mo, Uo = Lo, Ko = $o, Yo = Vo;
6404
+ }, ru = Oo, ou = ko, su = jo, Ho = Io, Go = Mo, Uo = Lo, Ko = $o, Yo = zo;
6405
6405
  function Xn(e, t) {
6406
6406
  if (typeof e == "function")
6407
6407
  return e(t);
@@ -6432,9 +6432,9 @@ function lu(e) {
6432
6432
  const { children: s, ...a } = r, i = l.Children.toArray(s), c = i.find(du);
6433
6433
  if (c) {
6434
6434
  const u = c.props.children, d = i.map((f) => f === c ? l.Children.count(u) > 1 ? l.Children.only(null) : l.isValidElement(u) ? u.props.children : null : f);
6435
- return /* @__PURE__ */ g.jsx(t, { ...a, ref: o, children: l.isValidElement(u) ? l.cloneElement(u, void 0, d) : null });
6435
+ return /* @__PURE__ */ h.jsx(t, { ...a, ref: o, children: l.isValidElement(u) ? l.cloneElement(u, void 0, d) : null });
6436
6436
  }
6437
- return /* @__PURE__ */ g.jsx(t, { ...a, ref: o, children: s });
6437
+ return /* @__PURE__ */ h.jsx(t, { ...a, ref: o, children: s });
6438
6438
  });
6439
6439
  return n.displayName = `${e}.Slot`, n;
6440
6440
  }
@@ -6491,10 +6491,10 @@ var mu = [
6491
6491
  ], gu = mu.reduce((e, t) => {
6492
6492
  const n = /* @__PURE__ */ lu(`Primitive.${t}`), r = l.forwardRef((o, s) => {
6493
6493
  const { asChild: a, ...i } = o, c = a ? n : t;
6494
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ g.jsx(c, { ...i, ref: s });
6494
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h.jsx(c, { ...i, ref: s });
6495
6495
  });
6496
6496
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
6497
- }, {}), hu = "Label", Xo = l.forwardRef((e, t) => /* @__PURE__ */ g.jsx(
6497
+ }, {}), hu = "Label", Xo = l.forwardRef((e, t) => /* @__PURE__ */ h.jsx(
6498
6498
  gu.label,
6499
6499
  {
6500
6500
  ...e,
@@ -6509,10 +6509,10 @@ Xo.displayName = hu;
6509
6509
  var qo = Xo;
6510
6510
  const vu = Gt(
6511
6511
  "al-text-sm al-font-medium al-leading-none peer-disabled:al-cursor-not-allowed peer-disabled:al-opacity-70"
6512
- ), bu = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(qo, { ref: n, className: M(vu(), e), ...t }));
6512
+ ), bu = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(qo, { ref: n, className: M(vu(), e), ...t }));
6513
6513
  bu.displayName = qo.displayName;
6514
6514
  const yu = H(
6515
- ({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
6515
+ ({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
6516
6516
  "div",
6517
6517
  {
6518
6518
  ref: n,
@@ -6526,7 +6526,7 @@ const yu = H(
6526
6526
  );
6527
6527
  yu.displayName = "Card";
6528
6528
  const xu = H(
6529
- ({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
6529
+ ({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
6530
6530
  "div",
6531
6531
  {
6532
6532
  ref: n,
@@ -6537,7 +6537,7 @@ const xu = H(
6537
6537
  );
6538
6538
  xu.displayName = "CardHeader";
6539
6539
  const wu = H(
6540
- ({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
6540
+ ({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
6541
6541
  "div",
6542
6542
  {
6543
6543
  ref: n,
@@ -6548,18 +6548,18 @@ const wu = H(
6548
6548
  );
6549
6549
  wu.displayName = "CardTitle";
6550
6550
  const Cu = H(
6551
- ({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className: M("al-text-sm al-text-muted-foreground", e), ...t })
6551
+ ({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx("div", { ref: n, className: M("al-text-sm al-text-muted-foreground", e), ...t })
6552
6552
  );
6553
6553
  Cu.displayName = "CardDescription";
6554
6554
  const Eu = H(
6555
- ({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className: M("al-p-6 al-pt-0", e), ...t })
6555
+ ({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx("div", { ref: n, className: M("al-p-6 al-pt-0", e), ...t })
6556
6556
  );
6557
6557
  Eu.displayName = "CardContent";
6558
6558
  const Ru = H(
6559
- ({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className: M("al-flex al-items-center al-p-6 al-pt-0", e), ...t })
6559
+ ({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx("div", { ref: n, className: M("al-flex al-items-center al-p-6 al-pt-0", e), ...t })
6560
6560
  );
6561
6561
  Ru.displayName = "CardFooter";
6562
- const id = ru, ld = ou, Pu = su, cd = Yo, Zo = H(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
6562
+ const id = ru, ld = ou, Pu = su, cd = Yo, Zo = H(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
6563
6563
  Ho,
6564
6564
  {
6565
6565
  ref: n,
@@ -6571,9 +6571,9 @@ const id = ru, ld = ou, Pu = su, cd = Yo, Zo = H(({ className: e, ...t }, n) =>
6571
6571
  }
6572
6572
  ));
6573
6573
  Zo.displayName = Ho.displayName;
6574
- const Su = H(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ g.jsxs(Pu, { children: [
6575
- /* @__PURE__ */ g.jsx(Zo, {}),
6576
- /* @__PURE__ */ g.jsxs(
6574
+ const Su = H(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ h.jsxs(Pu, { children: [
6575
+ /* @__PURE__ */ h.jsx(Zo, {}),
6576
+ /* @__PURE__ */ h.jsxs(
6577
6577
  Go,
6578
6578
  {
6579
6579
  ref: r,
@@ -6584,16 +6584,16 @@ const Su = H(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ g.jsxs(
6584
6584
  ...n,
6585
6585
  children: [
6586
6586
  t,
6587
- /* @__PURE__ */ g.jsxs(Yo, { className: "al-absolute al-right-4 al-top-4 al-rounded-sm al-opacity-70 al-ring-offset-background al-transition-opacity hover:al-opacity-100 focus:al-outline-none focus:al-ring-2 focus:al-ring-ring focus:al-ring-offset-2 disabled:al-pointer-events-none data-[state=open]:al-bg-accent data-[state=open]:al-text-muted-foreground", children: [
6588
- /* @__PURE__ */ g.jsx(xs, { className: "al-h-4 al-w-4" }),
6589
- /* @__PURE__ */ g.jsx("span", { className: "al-sr-only", children: "Close" })
6587
+ /* @__PURE__ */ h.jsxs(Yo, { className: "al-absolute al-right-4 al-top-4 al-rounded-sm al-opacity-70 al-ring-offset-background al-transition-opacity hover:al-opacity-100 focus:al-outline-none focus:al-ring-2 focus:al-ring-ring focus:al-ring-offset-2 disabled:al-pointer-events-none data-[state=open]:al-bg-accent data-[state=open]:al-text-muted-foreground", children: [
6588
+ /* @__PURE__ */ h.jsx(xs, { className: "al-h-4 al-w-4" }),
6589
+ /* @__PURE__ */ h.jsx("span", { className: "al-sr-only", children: "Close" })
6590
6590
  ] })
6591
6591
  ]
6592
6592
  }
6593
6593
  )
6594
6594
  ] }));
6595
6595
  Su.displayName = Go.displayName;
6596
- const Au = ({ className: e, ...t }) => /* @__PURE__ */ g.jsx(
6596
+ const Au = ({ className: e, ...t }) => /* @__PURE__ */ h.jsx(
6597
6597
  "div",
6598
6598
  {
6599
6599
  className: M("al-flex al-flex-col al-space-y-1.5 al-text-center sm:al-text-left", e),
@@ -6601,7 +6601,7 @@ const Au = ({ className: e, ...t }) => /* @__PURE__ */ g.jsx(
6601
6601
  }
6602
6602
  );
6603
6603
  Au.displayName = "DialogHeader";
6604
- const Nu = ({ className: e, ...t }) => /* @__PURE__ */ g.jsx(
6604
+ const Nu = ({ className: e, ...t }) => /* @__PURE__ */ h.jsx(
6605
6605
  "div",
6606
6606
  {
6607
6607
  className: M(
@@ -6612,7 +6612,7 @@ const Nu = ({ className: e, ...t }) => /* @__PURE__ */ g.jsx(
6612
6612
  }
6613
6613
  );
6614
6614
  Nu.displayName = "DialogFooter";
6615
- const Ou = H(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
6615
+ const Ou = H(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
6616
6616
  Uo,
6617
6617
  {
6618
6618
  ref: n,
@@ -6621,7 +6621,7 @@ const Ou = H(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
6621
6621
  }
6622
6622
  ));
6623
6623
  Ou.displayName = Uo.displayName;
6624
- const Tu = H(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
6624
+ const Tu = H(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
6625
6625
  Ko,
6626
6626
  {
6627
6627
  ref: n,
@@ -6634,9 +6634,9 @@ var Qo = l.forwardRef((e, t) => {
6634
6634
  const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(Du);
6635
6635
  if (s) {
6636
6636
  const a = s.props.children, i = o.map((c) => c === s ? l.Children.count(a) > 1 ? l.Children.only(null) : l.isValidElement(a) ? a.props.children : null : c);
6637
- return /* @__PURE__ */ g.jsx(Bt, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
6637
+ return /* @__PURE__ */ h.jsx(Bt, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
6638
6638
  }
6639
- return /* @__PURE__ */ g.jsx(Bt, { ...r, ref: t, children: n });
6639
+ return /* @__PURE__ */ h.jsx(Bt, { ...r, ref: t, children: n });
6640
6640
  });
6641
6641
  Qo.displayName = "Slot";
6642
6642
  var Bt = l.forwardRef((e, t) => {
@@ -6652,7 +6652,7 @@ var Bt = l.forwardRef((e, t) => {
6652
6652
  return l.Children.count(n) > 1 ? l.Children.only(null) : null;
6653
6653
  });
6654
6654
  Bt.displayName = "SlotClone";
6655
- var ku = ({ children: e }) => /* @__PURE__ */ g.jsx(g.Fragment, { children: e });
6655
+ var ku = ({ children: e }) => /* @__PURE__ */ h.jsx(h.Fragment, { children: e });
6656
6656
  function Du(e) {
6657
6657
  return l.isValidElement(e) && e.type === ku;
6658
6658
  }
@@ -6681,20 +6681,20 @@ var mn = "Popover", [Jo, ud] = ae(mn, [
6681
6681
  defaultOpen: o,
6682
6682
  onOpenChange: s,
6683
6683
  modal: a = !1
6684
- } = e, i = He(t), c = l.useRef(null), [u, d] = l.useState(!1), [f = !1, h] = Me({
6684
+ } = e, i = He(t), c = l.useRef(null), [u, d] = l.useState(!1), [f = !1, m] = Me({
6685
6685
  prop: r,
6686
6686
  defaultProp: o,
6687
6687
  onChange: s
6688
6688
  });
6689
- return /* @__PURE__ */ g.jsx(Sr, { ...i, children: /* @__PURE__ */ g.jsx(
6689
+ return /* @__PURE__ */ h.jsx(Sr, { ...i, children: /* @__PURE__ */ h.jsx(
6690
6690
  Mu,
6691
6691
  {
6692
6692
  scope: t,
6693
6693
  contentId: Pe(),
6694
6694
  triggerRef: c,
6695
6695
  open: f,
6696
- onOpenChange: h,
6697
- onOpenToggle: l.useCallback(() => h((m) => !m), [h]),
6696
+ onOpenChange: m,
6697
+ onOpenToggle: l.useCallback(() => m((g) => !g), [m]),
6698
6698
  hasCustomAnchor: u,
6699
6699
  onCustomAnchorAdd: l.useCallback(() => d(!0), []),
6700
6700
  onCustomAnchorRemove: l.useCallback(() => d(!1), []),
@@ -6707,13 +6707,13 @@ es.displayName = mn;
6707
6707
  var ts = "PopoverAnchor", _u = l.forwardRef(
6708
6708
  (e, t) => {
6709
6709
  const { __scopePopover: n, ...r } = e, o = he(ts, n), s = He(n), { onCustomAnchorAdd: a, onCustomAnchorRemove: i } = o;
6710
- return l.useEffect(() => (a(), () => i()), [a, i]), /* @__PURE__ */ g.jsx(tn, { ...s, ...r, ref: t });
6710
+ return l.useEffect(() => (a(), () => i()), [a, i]), /* @__PURE__ */ h.jsx(tn, { ...s, ...r, ref: t });
6711
6711
  }
6712
6712
  );
6713
6713
  _u.displayName = ts;
6714
6714
  var ns = "PopoverTrigger", rs = l.forwardRef(
6715
6715
  (e, t) => {
6716
- const { __scopePopover: n, ...r } = e, o = he(ns, n), s = He(n), a = z(t, o.triggerRef), i = /* @__PURE__ */ g.jsx(
6716
+ const { __scopePopover: n, ...r } = e, o = he(ns, n), s = He(n), a = V(t, o.triggerRef), i = /* @__PURE__ */ h.jsx(
6717
6717
  $.button,
6718
6718
  {
6719
6719
  type: "button",
@@ -6726,7 +6726,7 @@ var ns = "PopoverTrigger", rs = l.forwardRef(
6726
6726
  onClick: k(e.onClick, o.onOpenToggle)
6727
6727
  }
6728
6728
  );
6729
- return o.hasCustomAnchor ? i : /* @__PURE__ */ g.jsx(tn, { asChild: !0, ...s, children: i });
6729
+ return o.hasCustomAnchor ? i : /* @__PURE__ */ h.jsx(tn, { asChild: !0, ...s, children: i });
6730
6730
  }
6731
6731
  );
6732
6732
  rs.displayName = ns;
@@ -6734,23 +6734,23 @@ var gn = "PopoverPortal", [Lu, Fu] = Jo(gn, {
6734
6734
  forceMount: void 0
6735
6735
  }), os = (e) => {
6736
6736
  const { __scopePopover: t, forceMount: n, children: r, container: o } = e, s = he(gn, t);
6737
- return /* @__PURE__ */ g.jsx(Lu, { scope: t, forceMount: n, children: /* @__PURE__ */ g.jsx(te, { present: n || s.open, children: /* @__PURE__ */ g.jsx(dt, { asChild: !0, container: o, children: r }) }) });
6737
+ return /* @__PURE__ */ h.jsx(Lu, { scope: t, forceMount: n, children: /* @__PURE__ */ h.jsx(te, { present: n || s.open, children: /* @__PURE__ */ h.jsx(dt, { asChild: !0, container: o, children: r }) }) });
6738
6738
  };
6739
6739
  os.displayName = gn;
6740
6740
  var Te = "PopoverContent", ss = l.forwardRef(
6741
6741
  (e, t) => {
6742
6742
  const n = Fu(Te, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, s = he(Te, e.__scopePopover);
6743
- return /* @__PURE__ */ g.jsx(te, { present: r || s.open, children: s.modal ? /* @__PURE__ */ g.jsx($u, { ...o, ref: t }) : /* @__PURE__ */ g.jsx(Wu, { ...o, ref: t }) });
6743
+ return /* @__PURE__ */ h.jsx(te, { present: r || s.open, children: s.modal ? /* @__PURE__ */ h.jsx($u, { ...o, ref: t }) : /* @__PURE__ */ h.jsx(Wu, { ...o, ref: t }) });
6744
6744
  }
6745
6745
  );
6746
6746
  ss.displayName = Te;
6747
6747
  var $u = l.forwardRef(
6748
6748
  (e, t) => {
6749
- const n = he(Te, e.__scopePopover), r = l.useRef(null), o = z(t, r), s = l.useRef(!1);
6749
+ const n = he(Te, e.__scopePopover), r = l.useRef(null), o = V(t, r), s = l.useRef(!1);
6750
6750
  return l.useEffect(() => {
6751
6751
  const a = r.current;
6752
6752
  if (a) return So(a);
6753
- }, []), /* @__PURE__ */ g.jsx(cn, { as: Qo, allowPinchZoom: !0, children: /* @__PURE__ */ g.jsx(
6753
+ }, []), /* @__PURE__ */ h.jsx(cn, { as: Qo, allowPinchZoom: !0, children: /* @__PURE__ */ h.jsx(
6754
6754
  as,
6755
6755
  {
6756
6756
  ...e,
@@ -6780,7 +6780,7 @@ var $u = l.forwardRef(
6780
6780
  ), Wu = l.forwardRef(
6781
6781
  (e, t) => {
6782
6782
  const n = he(Te, e.__scopePopover), r = l.useRef(!1), o = l.useRef(!1);
6783
- return /* @__PURE__ */ g.jsx(
6783
+ return /* @__PURE__ */ h.jsx(
6784
6784
  as,
6785
6785
  {
6786
6786
  ...e,
@@ -6813,8 +6813,8 @@ var $u = l.forwardRef(
6813
6813
  onFocusOutside: u,
6814
6814
  onInteractOutside: d,
6815
6815
  ...f
6816
- } = e, h = he(Te, n), m = He(n);
6817
- return vo(), /* @__PURE__ */ g.jsx(
6816
+ } = e, m = he(Te, n), g = He(n);
6817
+ return vo(), /* @__PURE__ */ h.jsx(
6818
6818
  ln,
6819
6819
  {
6820
6820
  asChild: !0,
@@ -6822,8 +6822,8 @@ var $u = l.forwardRef(
6822
6822
  trapped: r,
6823
6823
  onMountAutoFocus: o,
6824
6824
  onUnmountAutoFocus: s,
6825
- children: /* @__PURE__ */ g.jsx(
6826
- Ve,
6825
+ children: /* @__PURE__ */ h.jsx(
6826
+ ze,
6827
6827
  {
6828
6828
  asChild: !0,
6829
6829
  disableOutsidePointerEvents: a,
@@ -6831,14 +6831,14 @@ var $u = l.forwardRef(
6831
6831
  onEscapeKeyDown: i,
6832
6832
  onPointerDownOutside: c,
6833
6833
  onFocusOutside: u,
6834
- onDismiss: () => h.onOpenChange(!1),
6835
- children: /* @__PURE__ */ g.jsx(
6834
+ onDismiss: () => m.onOpenChange(!1),
6835
+ children: /* @__PURE__ */ h.jsx(
6836
6836
  Ar,
6837
6837
  {
6838
- "data-state": ls(h.open),
6838
+ "data-state": ls(m.open),
6839
6839
  role: "dialog",
6840
- id: h.contentId,
6841
- ...m,
6840
+ id: m.contentId,
6841
+ ...g,
6842
6842
  ...f,
6843
6843
  ref: t,
6844
6844
  style: {
@@ -6856,10 +6856,10 @@ var $u = l.forwardRef(
6856
6856
  }
6857
6857
  );
6858
6858
  }
6859
- ), is = "PopoverClose", Vu = l.forwardRef(
6859
+ ), is = "PopoverClose", zu = l.forwardRef(
6860
6860
  (e, t) => {
6861
6861
  const { __scopePopover: n, ...r } = e, o = he(is, n);
6862
- return /* @__PURE__ */ g.jsx(
6862
+ return /* @__PURE__ */ h.jsx(
6863
6863
  $.button,
6864
6864
  {
6865
6865
  type: "button",
@@ -6870,19 +6870,19 @@ var $u = l.forwardRef(
6870
6870
  );
6871
6871
  }
6872
6872
  );
6873
- Vu.displayName = is;
6874
- var zu = "PopoverArrow", Bu = l.forwardRef(
6873
+ zu.displayName = is;
6874
+ var Vu = "PopoverArrow", Bu = l.forwardRef(
6875
6875
  (e, t) => {
6876
6876
  const { __scopePopover: n, ...r } = e, o = He(n);
6877
- return /* @__PURE__ */ g.jsx(Nr, { ...o, ...r, ref: t });
6877
+ return /* @__PURE__ */ h.jsx(Nr, { ...o, ...r, ref: t });
6878
6878
  }
6879
6879
  );
6880
- Bu.displayName = zu;
6880
+ Bu.displayName = Vu;
6881
6881
  function ls(e) {
6882
6882
  return e ? "open" : "closed";
6883
6883
  }
6884
6884
  var Hu = es, Gu = rs, Uu = os, cs = ss;
6885
- const dd = Hu, fd = Gu, Ku = H(({ className: e, align: t = "center", sideOffset: n = 4, ...r }, o) => /* @__PURE__ */ g.jsx(Uu, { children: /* @__PURE__ */ g.jsx(
6885
+ const dd = Hu, fd = Gu, Ku = H(({ className: e, align: t = "center", sideOffset: n = 4, ...r }, o) => /* @__PURE__ */ h.jsx(Uu, { children: /* @__PURE__ */ h.jsx(
6886
6886
  cs,
6887
6887
  {
6888
6888
  ref: o,
@@ -6967,9 +6967,13 @@ const ue = Gt("", {
6967
6967
  "page-heading": "h2",
6968
6968
  "section-heading": "h3"
6969
6969
  }, md = (e) => {
6970
- const { variant: t = "body", children: n, className: r, role: o } = e;
6970
+ const { variant: t = "body", children: n, className: r, ...o } = e;
6971
6971
  let s, a;
6972
- const i = () => e.weight;
6972
+ const i = () => e.weight, {
6973
+ weight: c,
6974
+ size: u,
6975
+ ...d
6976
+ } = o;
6973
6977
  if (t === "page-heading")
6974
6978
  s = "semibold", a = void 0;
6975
6979
  else if (t === "section-heading")
@@ -6979,20 +6983,27 @@ const ue = Gt("", {
6979
6983
  else if (t === "table-header")
6980
6984
  s = i() ?? "medium", a = void 0;
6981
6985
  else if (t === "body") {
6982
- const u = e;
6983
- s = u.weight ?? "regular", a = u.size ?? "regular";
6986
+ const m = e;
6987
+ s = m.weight ?? "regular", a = m.size ?? "regular";
6984
6988
  } else if (t === "caption") {
6985
- const u = e;
6986
- s = u.weight ?? "regular", a = u.size;
6989
+ const m = e;
6990
+ s = m.weight ?? "regular", a = m.size;
6987
6991
  } else if (t === "button") {
6988
- const u = e;
6989
- s = "medium", a = u.size ? `button-${u.size}` : "button-sm";
6992
+ const m = e;
6993
+ s = "medium", a = m.size ? `button-${m.size}` : "button-sm";
6990
6994
  } else {
6991
- const u = e;
6992
- s = "regular", a = u.size ? `placeholder-${u.size}` : "placeholder-large";
6995
+ const m = e;
6996
+ s = "regular", a = m.size ? `placeholder-${m.size}` : "placeholder-large";
6993
6997
  }
6994
- const c = Yu[t];
6995
- return /* @__PURE__ */ g.jsx(c, { className: M(ue({ variant: t, weight: s, size: a }), r), role: o, children: n });
6998
+ const f = Yu[t];
6999
+ return /* @__PURE__ */ h.jsx(
7000
+ f,
7001
+ {
7002
+ className: M(ue({ variant: t, weight: s, size: a }), r),
7003
+ ...d,
7004
+ children: n
7005
+ }
7006
+ );
6996
7007
  }, gd = H(function({
6997
7008
  children: t,
6998
7009
  wrap: n = !1,
@@ -7005,7 +7016,7 @@ const ue = Gt("", {
7005
7016
  tag: u = "div",
7006
7017
  ...d
7007
7018
  }, f) {
7008
- const h = (v) => ({
7019
+ const m = (v) => ({
7009
7020
  none: "al-gap-0",
7010
7021
  xxs: "al-gap-0.5",
7011
7022
  // 2px
@@ -7033,7 +7044,7 @@ const ue = Gt("", {
7033
7044
  // 64px
7034
7045
  "8xl": "al-gap-20"
7035
7046
  // 80px
7036
- })[v], m = M(
7047
+ })[v], g = M(
7037
7048
  "al-flex",
7038
7049
  // Direction
7039
7050
  c === "column" ? "al-flex-col" : "al-flex-row",
@@ -7059,14 +7070,14 @@ const ue = Gt("", {
7059
7070
  // Flex
7060
7071
  s && `al-flex-[${s}]`,
7061
7072
  // Gap
7062
- h(a),
7073
+ m(a),
7063
7074
  i
7064
7075
  );
7065
7076
  return Qe(
7066
7077
  u,
7067
7078
  {
7068
7079
  ...d,
7069
- className: m,
7080
+ className: g,
7070
7081
  ref: f
7071
7082
  },
7072
7083
  t
@@ -7123,7 +7134,7 @@ export {
7123
7134
  go as ai,
7124
7135
  Ru as aj,
7125
7136
  Cu as ak,
7126
- Vu as al,
7137
+ zu as al,
7127
7138
  cd as am,
7128
7139
  ld as an,
7129
7140
  Au as ao,
@@ -7134,7 +7145,7 @@ export {
7134
7145
  Me as b,
7135
7146
  od as c,
7136
7147
  k as d,
7137
- Vr as e,
7148
+ zr as e,
7138
7149
  Qt as f,
7139
7150
  M as g,
7140
7151
  Gt as h,
@@ -7149,8 +7160,8 @@ export {
7149
7160
  te as q,
7150
7161
  So as r,
7151
7162
  vo as s,
7152
- Ve as t,
7153
- z as u,
7163
+ ze as t,
7164
+ V as u,
7154
7165
  Ll as v,
7155
7166
  Ar as w,
7156
7167
  Fl as x,