@infra-cryptomate/react-components 0.0.5 → 0.0.7

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.
@@ -2,7 +2,7 @@ import { jsx as N, jsxs as lt } from "react/jsx-runtime";
2
2
  import * as S from "react";
3
3
  import xe, { createElement as $, useCallback as Z, createContext as Pt, useMemo as Ve, useContext as fn, useRef as L, useEffect as U, useState as H, forwardRef as _, Children as Ue, isValidElement as Et, cloneElement as pn, Fragment as It, useLayoutEffect as co, useReducer as Jr } from "react";
4
4
  import * as ec from "react-dom";
5
- import tc, { flushSync as ao, createPortal as io } from "react-dom";
5
+ import tc, { flushSync as io, createPortal as ao } from "react-dom";
6
6
  function nc() {
7
7
  for (var e = 0, t, n, o = ""; e < arguments.length; )
8
8
  (t = arguments[e++]) && (n = so(t)) && (o && (o += " "), o += n);
@@ -18,21 +18,21 @@ function so(e) {
18
18
  var mn = "-";
19
19
  function oc(e) {
20
20
  var t = cc(e), n = e.conflictingClassGroups, o = e.conflictingClassGroupModifiers, r = o === void 0 ? {} : o;
21
- function c(i) {
22
- var s = i.split(mn);
23
- return s[0] === "" && s.length !== 1 && s.shift(), lo(s, t) || rc(i);
21
+ function c(a) {
22
+ var s = a.split(mn);
23
+ return s[0] === "" && s.length !== 1 && s.shift(), lo(s, t) || rc(a);
24
24
  }
25
- function a(i, s) {
26
- var d = n[i] || [];
27
- return s && r[i] ? [].concat(d, r[i]) : d;
25
+ function i(a, s) {
26
+ var d = n[a] || [];
27
+ return s && r[a] ? [].concat(d, r[a]) : d;
28
28
  }
29
29
  return {
30
30
  getClassGroupId: c,
31
- getConflictingClassGroupIds: a
31
+ getConflictingClassGroupIds: i
32
32
  };
33
33
  }
34
34
  function lo(e, t) {
35
- var a;
35
+ var i;
36
36
  if (e.length === 0)
37
37
  return t.classGroupId;
38
38
  var n = e[0], o = t.nextPart.get(n), r = o ? lo(e.slice(1), o) : void 0;
@@ -40,10 +40,10 @@ function lo(e, t) {
40
40
  return r;
41
41
  if (t.validators.length !== 0) {
42
42
  var c = e.join(mn);
43
- return (a = t.validators.find(function(i) {
44
- var s = i.validator;
43
+ return (i = t.validators.find(function(a) {
44
+ var s = a.validator;
45
45
  return s(c);
46
- })) == null ? void 0 : a.classGroupId;
46
+ })) == null ? void 0 : i.classGroupId;
47
47
  }
48
48
  }
49
49
  var Tn = /^\[(.+)\]$/;
@@ -58,10 +58,10 @@ function cc(e) {
58
58
  var t = e.theme, n = e.prefix, o = {
59
59
  nextPart: /* @__PURE__ */ new Map(),
60
60
  validators: []
61
- }, r = ic(Object.entries(e.classGroups), n);
61
+ }, r = ac(Object.entries(e.classGroups), n);
62
62
  return r.forEach(function(c) {
63
- var a = c[0], i = c[1];
64
- en(i, o, a, t);
63
+ var i = c[0], a = c[1];
64
+ en(a, o, i, t);
65
65
  }), o;
66
66
  }
67
67
  function en(e, t, n, o) {
@@ -72,7 +72,7 @@ function en(e, t, n, o) {
72
72
  return;
73
73
  }
74
74
  if (typeof r == "function") {
75
- if (ac(r)) {
75
+ if (ic(r)) {
76
76
  en(r(o), t, n, o);
77
77
  return;
78
78
  }
@@ -82,9 +82,9 @@ function en(e, t, n, o) {
82
82
  });
83
83
  return;
84
84
  }
85
- Object.entries(r).forEach(function(a) {
86
- var i = a[0], s = a[1];
87
- en(s, On(t, i), n, o);
85
+ Object.entries(r).forEach(function(i) {
86
+ var a = i[0], s = i[1];
87
+ en(s, On(t, a), n, o);
88
88
  });
89
89
  });
90
90
  }
@@ -97,16 +97,16 @@ function On(e, t) {
97
97
  }), n = n.nextPart.get(o);
98
98
  }), n;
99
99
  }
100
- function ac(e) {
100
+ function ic(e) {
101
101
  return e.isThemeGetter;
102
102
  }
103
- function ic(e, t) {
103
+ function ac(e, t) {
104
104
  return t ? e.map(function(n) {
105
- var o = n[0], r = n[1], c = r.map(function(a) {
106
- return typeof a == "string" ? t + a : typeof a == "object" ? Object.fromEntries(Object.entries(a).map(function(i) {
107
- var s = i[0], d = i[1];
105
+ var o = n[0], r = n[1], c = r.map(function(i) {
106
+ return typeof i == "string" ? t + i : typeof i == "object" ? Object.fromEntries(Object.entries(i).map(function(a) {
107
+ var s = a[0], d = a[1];
108
108
  return [t + s, d];
109
- })) : a;
109
+ })) : i;
110
110
  });
111
111
  return [o, c];
112
112
  }) : e;
@@ -120,31 +120,31 @@ function sc(e) {
120
120
  }
121
121
  };
122
122
  var t = 0, n = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
123
- function r(c, a) {
124
- n.set(c, a), t++, t > e && (t = 0, o = n, n = /* @__PURE__ */ new Map());
123
+ function r(c, i) {
124
+ n.set(c, i), t++, t > e && (t = 0, o = n, n = /* @__PURE__ */ new Map());
125
125
  }
126
126
  return {
127
- get: function(a) {
128
- var i = n.get(a);
129
- if (i !== void 0)
130
- return i;
131
- if ((i = o.get(a)) !== void 0)
132
- return r(a, i), i;
127
+ get: function(i) {
128
+ var a = n.get(i);
129
+ if (a !== void 0)
130
+ return a;
131
+ if ((a = o.get(i)) !== void 0)
132
+ return r(i, a), a;
133
133
  },
134
- set: function(a, i) {
135
- n.has(a) ? n.set(a, i) : r(a, i);
134
+ set: function(i, a) {
135
+ n.has(i) ? n.set(i, a) : r(i, a);
136
136
  }
137
137
  };
138
138
  }
139
139
  var uo = "!";
140
140
  function lc(e) {
141
141
  var t = e.separator || ":", n = t.length === 1, o = t[0], r = t.length;
142
- return function(a) {
143
- for (var i = [], s = 0, d = 0, u, l = 0; l < a.length; l++) {
144
- var v = a[l];
142
+ return function(i) {
143
+ for (var a = [], s = 0, d = 0, u, l = 0; l < i.length; l++) {
144
+ var v = i[l];
145
145
  if (s === 0) {
146
- if (v === o && (n || a.slice(l, l + r) === t)) {
147
- i.push(a.slice(d, l)), d = l + r;
146
+ if (v === o && (n || i.slice(l, l + r) === t)) {
147
+ a.push(i.slice(d, l)), d = l + r;
148
148
  continue;
149
149
  }
150
150
  if (v === "/") {
@@ -154,9 +154,9 @@ function lc(e) {
154
154
  }
155
155
  v === "[" ? s++ : v === "]" && s--;
156
156
  }
157
- var f = i.length === 0 ? a : a.substring(d), m = f.startsWith(uo), p = m ? f.substring(1) : f, b = u && u > d ? u - d : void 0;
157
+ var f = a.length === 0 ? i : i.substring(d), m = f.startsWith(uo), p = m ? f.substring(1) : f, b = u && u > d ? u - d : void 0;
158
158
  return {
159
- modifiers: i,
159
+ modifiers: a,
160
160
  hasImportantModifier: m,
161
161
  baseClassName: p,
162
162
  maybePostfixModifierPosition: b
@@ -182,18 +182,18 @@ function uc(e) {
182
182
  var fc = /\s+/;
183
183
  function pc(e, t) {
184
184
  var n = t.splitModifiers, o = t.getClassGroupId, r = t.getConflictingClassGroupIds, c = /* @__PURE__ */ new Set();
185
- return e.trim().split(fc).map(function(a) {
186
- var i = n(a), s = i.modifiers, d = i.hasImportantModifier, u = i.baseClassName, l = i.maybePostfixModifierPosition, v = o(l ? u.substring(0, l) : u), f = !!l;
185
+ return e.trim().split(fc).map(function(i) {
186
+ var a = n(i), s = a.modifiers, d = a.hasImportantModifier, u = a.baseClassName, l = a.maybePostfixModifierPosition, v = o(l ? u.substring(0, l) : u), f = !!l;
187
187
  if (!v) {
188
188
  if (!l)
189
189
  return {
190
190
  isTailwindClass: !1,
191
- originalClassName: a
191
+ originalClassName: i
192
192
  };
193
193
  if (v = o(u), !v)
194
194
  return {
195
195
  isTailwindClass: !1,
196
- originalClassName: a
196
+ originalClassName: i
197
197
  };
198
198
  f = !1;
199
199
  }
@@ -202,29 +202,29 @@ function pc(e, t) {
202
202
  isTailwindClass: !0,
203
203
  modifierId: p,
204
204
  classGroupId: v,
205
- originalClassName: a,
205
+ originalClassName: i,
206
206
  hasPostfixModifier: f
207
207
  };
208
- }).reverse().filter(function(a) {
209
- if (!a.isTailwindClass)
208
+ }).reverse().filter(function(i) {
209
+ if (!i.isTailwindClass)
210
210
  return !0;
211
- var i = a.modifierId, s = a.classGroupId, d = a.hasPostfixModifier, u = i + s;
211
+ var a = i.modifierId, s = i.classGroupId, d = i.hasPostfixModifier, u = a + s;
212
212
  return c.has(u) ? !1 : (c.add(u), r(s, d).forEach(function(l) {
213
- return c.add(i + l);
213
+ return c.add(a + l);
214
214
  }), !0);
215
- }).reverse().map(function(a) {
216
- return a.originalClassName;
215
+ }).reverse().map(function(i) {
216
+ return i.originalClassName;
217
217
  }).join(" ");
218
218
  }
219
219
  function mc() {
220
220
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
221
221
  t[n] = arguments[n];
222
- var o, r, c, a = i;
223
- function i(d) {
222
+ var o, r, c, i = a;
223
+ function a(d) {
224
224
  var u = t[0], l = t.slice(1), v = l.reduce(function(f, m) {
225
225
  return m(f);
226
226
  }, u());
227
- return o = uc(v), r = o.cache.get, c = o.cache.set, a = s, s(d);
227
+ return o = uc(v), r = o.cache.get, c = o.cache.set, i = s, s(d);
228
228
  }
229
229
  function s(d) {
230
230
  var u = r(d);
@@ -234,7 +234,7 @@ function mc() {
234
234
  return c(d, l), l;
235
235
  }
236
236
  return function() {
237
- return a(nc.apply(null, arguments));
237
+ return i(nc.apply(null, arguments));
238
238
  };
239
239
  }
240
240
  function ne(e) {
@@ -303,7 +303,7 @@ function _c(e) {
303
303
  return $c.test(e);
304
304
  }
305
305
  function Mc() {
306
- var e = ne("colors"), t = ne("spacing"), n = ne("blur"), o = ne("brightness"), r = ne("borderColor"), c = ne("borderRadius"), a = ne("borderSpacing"), i = ne("borderWidth"), s = ne("contrast"), d = ne("grayscale"), u = ne("hueRotate"), l = ne("invert"), v = ne("gap"), f = ne("gradientColorStops"), m = ne("gradientColorStopPositions"), p = ne("inset"), b = ne("margin"), g = ne("opacity"), h = ne("padding"), x = ne("saturate"), w = ne("scale"), y = ne("sepia"), M = ne("skew"), P = ne("space"), E = ne("translate"), D = function() {
306
+ var e = ne("colors"), t = ne("spacing"), n = ne("blur"), o = ne("brightness"), r = ne("borderColor"), c = ne("borderRadius"), i = ne("borderSpacing"), a = ne("borderWidth"), s = ne("contrast"), d = ne("grayscale"), u = ne("hueRotate"), l = ne("invert"), v = ne("gap"), f = ne("gradientColorStops"), m = ne("gradientColorStopPositions"), p = ne("inset"), b = ne("margin"), g = ne("opacity"), h = ne("padding"), x = ne("saturate"), w = ne("scale"), y = ne("sepia"), M = ne("skew"), P = ne("space"), E = ne("translate"), D = function() {
307
307
  return ["auto", "contain", "none"];
308
308
  }, z = function() {
309
309
  return ["auto", "hidden", "clip", "visible", "scroll"];
@@ -329,7 +329,7 @@ function Mc() {
329
329
  return ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
330
330
  }, oe = function() {
331
331
  return [ke, pt];
332
- }, ae = function() {
332
+ }, ie = function() {
333
333
  return [ke, W];
334
334
  };
335
335
  return {
@@ -345,7 +345,7 @@ function Mc() {
345
345
  borderWidth: G(),
346
346
  contrast: oe(),
347
347
  grayscale: R(),
348
- hueRotate: ae(),
348
+ hueRotate: ie(),
349
349
  invert: R(),
350
350
  gap: T(),
351
351
  gradientColorStops: [e],
@@ -357,7 +357,7 @@ function Mc() {
357
357
  saturate: oe(),
358
358
  scale: oe(),
359
359
  sepia: R(),
360
- skew: ae(),
360
+ skew: ie(),
361
361
  space: T(),
362
362
  translate: T()
363
363
  },
@@ -1435,63 +1435,63 @@ function Mc() {
1435
1435
  * @see https://tailwindcss.com/docs/border-width
1436
1436
  */
1437
1437
  "border-w": [{
1438
- border: [i]
1438
+ border: [a]
1439
1439
  }],
1440
1440
  /**
1441
1441
  * Border Width X
1442
1442
  * @see https://tailwindcss.com/docs/border-width
1443
1443
  */
1444
1444
  "border-w-x": [{
1445
- "border-x": [i]
1445
+ "border-x": [a]
1446
1446
  }],
1447
1447
  /**
1448
1448
  * Border Width Y
1449
1449
  * @see https://tailwindcss.com/docs/border-width
1450
1450
  */
1451
1451
  "border-w-y": [{
1452
- "border-y": [i]
1452
+ "border-y": [a]
1453
1453
  }],
1454
1454
  /**
1455
1455
  * Border Width Start
1456
1456
  * @see https://tailwindcss.com/docs/border-width
1457
1457
  */
1458
1458
  "border-w-s": [{
1459
- "border-s": [i]
1459
+ "border-s": [a]
1460
1460
  }],
1461
1461
  /**
1462
1462
  * Border Width End
1463
1463
  * @see https://tailwindcss.com/docs/border-width
1464
1464
  */
1465
1465
  "border-w-e": [{
1466
- "border-e": [i]
1466
+ "border-e": [a]
1467
1467
  }],
1468
1468
  /**
1469
1469
  * Border Width Top
1470
1470
  * @see https://tailwindcss.com/docs/border-width
1471
1471
  */
1472
1472
  "border-w-t": [{
1473
- "border-t": [i]
1473
+ "border-t": [a]
1474
1474
  }],
1475
1475
  /**
1476
1476
  * Border Width Right
1477
1477
  * @see https://tailwindcss.com/docs/border-width
1478
1478
  */
1479
1479
  "border-w-r": [{
1480
- "border-r": [i]
1480
+ "border-r": [a]
1481
1481
  }],
1482
1482
  /**
1483
1483
  * Border Width Bottom
1484
1484
  * @see https://tailwindcss.com/docs/border-width
1485
1485
  */
1486
1486
  "border-w-b": [{
1487
- "border-b": [i]
1487
+ "border-b": [a]
1488
1488
  }],
1489
1489
  /**
1490
1490
  * Border Width Left
1491
1491
  * @see https://tailwindcss.com/docs/border-width
1492
1492
  */
1493
1493
  "border-w-l": [{
1494
- "border-l": [i]
1494
+ "border-l": [a]
1495
1495
  }],
1496
1496
  /**
1497
1497
  * Border Opacity
@@ -1512,7 +1512,7 @@ function Mc() {
1512
1512
  * @see https://tailwindcss.com/docs/divide-width
1513
1513
  */
1514
1514
  "divide-x": [{
1515
- "divide-x": [i]
1515
+ "divide-x": [a]
1516
1516
  }],
1517
1517
  /**
1518
1518
  * Divide Width X Reverse
@@ -1524,7 +1524,7 @@ function Mc() {
1524
1524
  * @see https://tailwindcss.com/docs/divide-width
1525
1525
  */
1526
1526
  "divide-y": [{
1527
- "divide-y": [i]
1527
+ "divide-y": [a]
1528
1528
  }],
1529
1529
  /**
1530
1530
  * Divide Width Y Reverse
@@ -1861,21 +1861,21 @@ function Mc() {
1861
1861
  * @see https://tailwindcss.com/docs/border-spacing
1862
1862
  */
1863
1863
  "border-spacing": [{
1864
- "border-spacing": [a]
1864
+ "border-spacing": [i]
1865
1865
  }],
1866
1866
  /**
1867
1867
  * Border Spacing X
1868
1868
  * @see https://tailwindcss.com/docs/border-spacing
1869
1869
  */
1870
1870
  "border-spacing-x": [{
1871
- "border-spacing-x": [a]
1871
+ "border-spacing-x": [i]
1872
1872
  }],
1873
1873
  /**
1874
1874
  * Border Spacing Y
1875
1875
  * @see https://tailwindcss.com/docs/border-spacing
1876
1876
  */
1877
1877
  "border-spacing-y": [{
1878
- "border-spacing-y": [a]
1878
+ "border-spacing-y": [i]
1879
1879
  }],
1880
1880
  /**
1881
1881
  * Table Layout
@@ -1904,7 +1904,7 @@ function Mc() {
1904
1904
  * @see https://tailwindcss.com/docs/transition-duration
1905
1905
  */
1906
1906
  duration: [{
1907
- duration: ae()
1907
+ duration: ie()
1908
1908
  }],
1909
1909
  /**
1910
1910
  * Transition Timing Function
@@ -1918,7 +1918,7 @@ function Mc() {
1918
1918
  * @see https://tailwindcss.com/docs/transition-delay
1919
1919
  */
1920
1920
  delay: [{
1921
- delay: ae()
1921
+ delay: ie()
1922
1922
  }],
1923
1923
  /**
1924
1924
  * Animation
@@ -2304,6 +2304,7 @@ function K(...e) {
2304
2304
  return Rc(e.filter(Boolean).join(" "));
2305
2305
  }
2306
2306
  const In = {
2307
+ base: "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 dark:ring-offset-neutral-950 dark:focus-visible:ring-neutral-300",
2307
2308
  default: "bg-neutral-900 text-neutral-50 hover:bg-neutral-900/90 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50/90 focus:outline-none",
2308
2309
  destructive: "bg-red-500 text-neutral-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-neutral-50 dark:hover:bg-red-900/90",
2309
2310
  outline: "border border-neutral-200 bg-white hover:bg-neutral-100 hover:text-neutral-900 dark:border-neutral-800 dark:bg-neutral-950 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",
@@ -2316,16 +2317,16 @@ const In = {
2316
2317
  lg: "h-11 rounded-md px-8",
2317
2318
  icon: "h-10 w-10"
2318
2319
  };
2319
- var mo = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.DESTRUCTIVE = "destructive", e.OUTLINE = "outline", e.SECONDARY = "secondary", e.GHOST = "ghost", e.LINK = "link", e))(mo || {}), vo = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.SM = "sm", e.LG = "lg", e.ICON = "icon", e))(vo || {});
2320
+ var mo = /* @__PURE__ */ ((e) => (e.BASE = "base", e.DEFAULT = "default", e.DESTRUCTIVE = "destructive", e.OUTLINE = "outline", e.SECONDARY = "secondary", e.GHOST = "ghost", e.LINK = "link", e))(mo || {}), vo = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.SM = "sm", e.LG = "lg", e.ICON = "icon", e))(vo || {});
2320
2321
  const Hd = ({
2321
2322
  children: e,
2322
2323
  className: t = "",
2323
- variant: n = mo.DEFAULT,
2324
+ variant: n = mo.BASE,
2324
2325
  size: o = vo.DEFAULT,
2325
2326
  ...r
2326
2327
  }) => {
2327
2328
  const c = K(
2328
- In.default,
2329
+ In.base,
2329
2330
  In[n],
2330
2331
  Tc[o],
2331
2332
  t
@@ -2475,14 +2476,14 @@ function ce(...e) {
2475
2476
  }
2476
2477
  function Ne(e, t = []) {
2477
2478
  let n = [];
2478
- function o(c, a) {
2479
- const i = /* @__PURE__ */ Pt(a), s = n.length;
2479
+ function o(c, i) {
2480
+ const a = /* @__PURE__ */ Pt(i), s = n.length;
2480
2481
  n = [
2481
2482
  ...n,
2482
- a
2483
+ i
2483
2484
  ];
2484
2485
  function d(l) {
2485
- const { scope: v, children: f, ...m } = l, p = (v == null ? void 0 : v[e][s]) || i, b = Ve(
2486
+ const { scope: v, children: f, ...m } = l, p = (v == null ? void 0 : v[e][s]) || a, b = Ve(
2486
2487
  () => m,
2487
2488
  Object.values(m)
2488
2489
  );
@@ -2491,11 +2492,11 @@ function Ne(e, t = []) {
2491
2492
  }, f);
2492
2493
  }
2493
2494
  function u(l, v) {
2494
- const f = (v == null ? void 0 : v[e][s]) || i, m = fn(f);
2495
+ const f = (v == null ? void 0 : v[e][s]) || a, m = fn(f);
2495
2496
  if (m)
2496
2497
  return m;
2497
- if (a !== void 0)
2498
- return a;
2498
+ if (i !== void 0)
2499
+ return i;
2499
2500
  throw new Error(`\`${l}\` must be used within \`${c}\``);
2500
2501
  }
2501
2502
  return d.displayName = c + "Provider", [
@@ -2504,18 +2505,18 @@ function Ne(e, t = []) {
2504
2505
  ];
2505
2506
  }
2506
2507
  const r = () => {
2507
- const c = n.map((a) => /* @__PURE__ */ Pt(a));
2508
- return function(i) {
2509
- const s = (i == null ? void 0 : i[e]) || c;
2508
+ const c = n.map((i) => /* @__PURE__ */ Pt(i));
2509
+ return function(a) {
2510
+ const s = (a == null ? void 0 : a[e]) || c;
2510
2511
  return Ve(
2511
2512
  () => ({
2512
2513
  [`__scope${e}`]: {
2513
- ...i,
2514
+ ...a,
2514
2515
  [e]: s
2515
2516
  }
2516
2517
  }),
2517
2518
  [
2518
- i,
2519
+ a,
2519
2520
  s
2520
2521
  ]
2521
2522
  );
@@ -2538,19 +2539,19 @@ function Gc(...e) {
2538
2539
  })
2539
2540
  );
2540
2541
  return function(c) {
2541
- const a = o.reduce((i, { useScope: s, scopeName: d }) => {
2542
+ const i = o.reduce((a, { useScope: s, scopeName: d }) => {
2542
2543
  const l = s(c)[`__scope${d}`];
2543
2544
  return {
2544
- ...i,
2545
+ ...a,
2545
2546
  ...l
2546
2547
  };
2547
2548
  }, {});
2548
2549
  return Ve(
2549
2550
  () => ({
2550
- [`__scope${t.scopeName}`]: a
2551
+ [`__scope${t.scopeName}`]: i
2551
2552
  }),
2552
2553
  [
2553
- a
2554
+ i
2554
2555
  ]
2555
2556
  );
2556
2557
  };
@@ -2574,20 +2575,20 @@ function je({ prop: e, defaultProp: t, onChange: n = () => {
2574
2575
  const [o, r] = Wc({
2575
2576
  defaultProp: t,
2576
2577
  onChange: n
2577
- }), c = e !== void 0, a = c ? e : o, i = ve(n), s = Z((d) => {
2578
+ }), c = e !== void 0, i = c ? e : o, a = ve(n), s = Z((d) => {
2578
2579
  if (c) {
2579
2580
  const l = typeof d == "function" ? d(e) : d;
2580
- l !== e && i(l);
2581
+ l !== e && a(l);
2581
2582
  } else
2582
2583
  r(d);
2583
2584
  }, [
2584
2585
  c,
2585
2586
  e,
2586
2587
  r,
2587
- i
2588
+ a
2588
2589
  ]);
2589
2590
  return [
2590
- a,
2591
+ i,
2591
2592
  s
2592
2593
  ];
2593
2594
  }
@@ -2604,10 +2605,10 @@ function Wc({ defaultProp: e, onChange: t }) {
2604
2605
  const Ye = /* @__PURE__ */ _((e, t) => {
2605
2606
  const { children: n, ...o } = e, r = Ue.toArray(n), c = r.find(zc);
2606
2607
  if (c) {
2607
- const a = c.props.children, i = r.map((s) => s === c ? Ue.count(a) > 1 ? Ue.only(null) : /* @__PURE__ */ Et(a) ? a.props.children : null : s);
2608
+ const i = c.props.children, a = r.map((s) => s === c ? Ue.count(i) > 1 ? Ue.only(null) : /* @__PURE__ */ Et(i) ? i.props.children : null : s);
2608
2609
  return /* @__PURE__ */ $(nn, C({}, o, {
2609
2610
  ref: t
2610
- }), /* @__PURE__ */ Et(a) ? /* @__PURE__ */ pn(a, void 0, i) : null);
2611
+ }), /* @__PURE__ */ Et(i) ? /* @__PURE__ */ pn(i, void 0, a) : null);
2611
2612
  }
2612
2613
  return /* @__PURE__ */ $(nn, C({}, o, {
2613
2614
  ref: t
@@ -2632,8 +2633,8 @@ function Uc(e, t) {
2632
2633
  };
2633
2634
  for (const o in t) {
2634
2635
  const r = e[o], c = t[o];
2635
- /^on[A-Z]/.test(o) ? r && c ? n[o] = (...i) => {
2636
- c(...i), r(...i);
2636
+ /^on[A-Z]/.test(o) ? r && c ? n[o] = (...a) => {
2637
+ c(...a), r(...a);
2637
2638
  } : r && (n[o] = r) : o === "style" ? n[o] = {
2638
2639
  ...r,
2639
2640
  ...c
@@ -2666,10 +2667,10 @@ const Kc = [
2666
2667
  "ul"
2667
2668
  ], Q = Kc.reduce((e, t) => {
2668
2669
  const n = /* @__PURE__ */ _((o, r) => {
2669
- const { asChild: c, ...a } = o, i = c ? Ye : t;
2670
+ const { asChild: c, ...i } = o, a = c ? Ye : t;
2670
2671
  return U(() => {
2671
2672
  window[Symbol.for("radix-ui")] = !0;
2672
- }, []), /* @__PURE__ */ $(i, C({}, a, {
2673
+ }, []), /* @__PURE__ */ $(a, C({}, i, {
2673
2674
  ref: r
2674
2675
  }));
2675
2676
  });
@@ -2679,7 +2680,7 @@ const Kc = [
2679
2680
  };
2680
2681
  }, {});
2681
2682
  function $o(e, t) {
2682
- e && ao(
2683
+ e && io(
2683
2684
  () => e.dispatchEvent(t)
2684
2685
  );
2685
2686
  }
@@ -2689,15 +2690,15 @@ function vn(e) {
2689
2690
  current: null
2690
2691
  },
2691
2692
  itemMap: /* @__PURE__ */ new Map()
2692
- }), a = (f) => {
2693
+ }), i = (f) => {
2693
2694
  const { scope: m, children: p } = f, b = xe.useRef(null), g = xe.useRef(/* @__PURE__ */ new Map()).current;
2694
2695
  return /* @__PURE__ */ xe.createElement(r, {
2695
2696
  scope: m,
2696
2697
  itemMap: g,
2697
2698
  collectionRef: b
2698
2699
  }, p);
2699
- }, i = e + "CollectionSlot", s = /* @__PURE__ */ xe.forwardRef((f, m) => {
2700
- const { scope: p, children: b } = f, g = c(i, p), h = ce(m, g.collectionRef);
2700
+ }, a = e + "CollectionSlot", s = /* @__PURE__ */ xe.forwardRef((f, m) => {
2701
+ const { scope: p, children: b } = f, g = c(a, p), h = ce(m, g.collectionRef);
2701
2702
  return /* @__PURE__ */ xe.createElement(Ye, {
2702
2703
  ref: h
2703
2704
  }, b);
@@ -2728,7 +2729,7 @@ function vn(e) {
2728
2729
  }
2729
2730
  return [
2730
2731
  {
2731
- Provider: a,
2732
+ Provider: i,
2732
2733
  Slot: s,
2733
2734
  ItemSlot: l
2734
2735
  },
@@ -2761,7 +2762,7 @@ const qc = /* @__PURE__ */ Pt({
2761
2762
  branches: /* @__PURE__ */ new Set()
2762
2763
  }), xo = /* @__PURE__ */ _((e, t) => {
2763
2764
  var n;
2764
- const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: r, onPointerDownOutside: c, onFocusOutside: a, onInteractOutside: i, onDismiss: s, ...d } = e, u = fn(qc), [l, v] = H(null), f = (n = l == null ? void 0 : l.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, m] = H({}), p = ce(
2765
+ const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: r, onPointerDownOutside: c, onFocusOutside: i, onInteractOutside: a, onDismiss: s, ...d } = e, u = fn(qc), [l, v] = H(null), f = (n = l == null ? void 0 : l.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, m] = H({}), p = ce(
2765
2766
  t,
2766
2767
  (E) => v(E)
2767
2768
  ), b = Array.from(u.layers), [g] = [
@@ -2772,14 +2773,14 @@ const qc = /* @__PURE__ */ Pt({
2772
2773
  ].some(
2773
2774
  (k) => k.contains(D)
2774
2775
  );
2775
- !y || z || (c == null || c(E), i == null || i(E), E.defaultPrevented || s == null || s());
2776
+ !y || z || (c == null || c(E), a == null || a(E), E.defaultPrevented || s == null || s());
2776
2777
  }, f), P = Qc((E) => {
2777
2778
  const D = E.target;
2778
2779
  [
2779
2780
  ...u.branches
2780
2781
  ].some(
2781
2782
  (k) => k.contains(D)
2782
- ) || (a == null || a(E), i == null || i(E), E.defaultPrevented || s == null || s());
2783
+ ) || (i == null || i(E), a == null || a(E), E.defaultPrevented || s == null || s());
2783
2784
  }, f);
2784
2785
  return jc((E) => {
2785
2786
  x === u.layers.size - 1 && (r == null || r(E), !E.defaultPrevented && s && (E.preventDefault(), s()));
@@ -2816,26 +2817,26 @@ function Zc(e, t = globalThis == null ? void 0 : globalThis.document) {
2816
2817
  const n = ve(e), o = L(!1), r = L(() => {
2817
2818
  });
2818
2819
  return U(() => {
2819
- const c = (i) => {
2820
- if (i.target && !o.current) {
2820
+ const c = (a) => {
2821
+ if (a.target && !o.current) {
2821
2822
  let d = function() {
2822
2823
  wo(Yc, n, s, {
2823
2824
  discrete: !0
2824
2825
  });
2825
2826
  };
2826
2827
  const s = {
2827
- originalEvent: i
2828
+ originalEvent: a
2828
2829
  };
2829
- i.pointerType === "touch" ? (t.removeEventListener("click", r.current), r.current = d, t.addEventListener("click", r.current, {
2830
+ a.pointerType === "touch" ? (t.removeEventListener("click", r.current), r.current = d, t.addEventListener("click", r.current, {
2830
2831
  once: !0
2831
2832
  })) : d();
2832
2833
  }
2833
2834
  o.current = !1;
2834
- }, a = window.setTimeout(() => {
2835
+ }, i = window.setTimeout(() => {
2835
2836
  t.addEventListener("pointerdown", c);
2836
2837
  }, 0);
2837
2838
  return () => {
2838
- window.clearTimeout(a), t.removeEventListener("pointerdown", c), t.removeEventListener("click", r.current);
2839
+ window.clearTimeout(i), t.removeEventListener("pointerdown", c), t.removeEventListener("click", r.current);
2839
2840
  };
2840
2841
  }, [
2841
2842
  t,
@@ -2898,7 +2899,7 @@ const Yt = "focusScope.autoFocusOnMount", Xt = "focusScope.autoFocusOnUnmount",
2898
2899
  bubbles: !1,
2899
2900
  cancelable: !0
2900
2901
  }, Co = /* @__PURE__ */ _((e, t) => {
2901
- const { loop: n = !1, trapped: o = !1, onMountAutoFocus: r, onUnmountAutoFocus: c, ...a } = e, [i, s] = H(null), d = ve(r), u = ve(c), l = L(null), v = ce(
2902
+ const { loop: n = !1, trapped: o = !1, onMountAutoFocus: r, onUnmountAutoFocus: c, ...i } = e, [a, s] = H(null), d = ve(r), u = ve(c), l = L(null), v = ce(
2902
2903
  t,
2903
2904
  (p) => s(p)
2904
2905
  ), f = L({
@@ -2913,27 +2914,27 @@ const Yt = "focusScope.autoFocusOnMount", Xt = "focusScope.autoFocusOnUnmount",
2913
2914
  U(() => {
2914
2915
  if (o) {
2915
2916
  let p = function(x) {
2916
- if (f.paused || !i)
2917
+ if (f.paused || !a)
2917
2918
  return;
2918
2919
  const w = x.target;
2919
- i.contains(w) ? l.current = w : Re(l.current, {
2920
+ a.contains(w) ? l.current = w : Re(l.current, {
2920
2921
  select: !0
2921
2922
  });
2922
2923
  }, b = function(x) {
2923
- if (f.paused || !i)
2924
+ if (f.paused || !a)
2924
2925
  return;
2925
2926
  const w = x.relatedTarget;
2926
- w !== null && (i.contains(w) || Re(l.current, {
2927
+ w !== null && (a.contains(w) || Re(l.current, {
2927
2928
  select: !0
2928
2929
  }));
2929
2930
  }, g = function(x) {
2930
2931
  const w = document.activeElement;
2931
2932
  for (const y of x)
2932
- y.removedNodes.length > 0 && (i != null && i.contains(w) || Re(i));
2933
+ y.removedNodes.length > 0 && (a != null && a.contains(w) || Re(a));
2933
2934
  };
2934
2935
  document.addEventListener("focusin", p), document.addEventListener("focusout", b);
2935
2936
  const h = new MutationObserver(g);
2936
- return i && h.observe(i, {
2937
+ return a && h.observe(a, {
2937
2938
  childList: !0,
2938
2939
  subtree: !0
2939
2940
  }), () => {
@@ -2942,29 +2943,29 @@ const Yt = "focusScope.autoFocusOnMount", Xt = "focusScope.autoFocusOnUnmount",
2942
2943
  }
2943
2944
  }, [
2944
2945
  o,
2945
- i,
2946
+ a,
2946
2947
  f.paused
2947
2948
  ]), U(() => {
2948
- if (i) {
2949
+ if (a) {
2949
2950
  Gn.add(f);
2950
2951
  const p = document.activeElement;
2951
- if (!i.contains(p)) {
2952
+ if (!a.contains(p)) {
2952
2953
  const g = new CustomEvent(Yt, Ln);
2953
- i.addEventListener(Yt, d), i.dispatchEvent(g), g.defaultPrevented || (Jc(ra(So(i)), {
2954
+ a.addEventListener(Yt, d), a.dispatchEvent(g), g.defaultPrevented || (Jc(ri(So(a)), {
2954
2955
  select: !0
2955
- }), document.activeElement === p && Re(i));
2956
+ }), document.activeElement === p && Re(a));
2956
2957
  }
2957
2958
  return () => {
2958
- i.removeEventListener(Yt, d), setTimeout(() => {
2959
+ a.removeEventListener(Yt, d), setTimeout(() => {
2959
2960
  const g = new CustomEvent(Xt, Ln);
2960
- i.addEventListener(Xt, u), i.dispatchEvent(g), g.defaultPrevented || Re(p ?? document.body, {
2961
+ a.addEventListener(Xt, u), a.dispatchEvent(g), g.defaultPrevented || Re(p ?? document.body, {
2961
2962
  select: !0
2962
- }), i.removeEventListener(Xt, u), Gn.remove(f);
2963
+ }), a.removeEventListener(Xt, u), Gn.remove(f);
2963
2964
  }, 0);
2964
2965
  };
2965
2966
  }
2966
2967
  }, [
2967
- i,
2968
+ a,
2968
2969
  d,
2969
2970
  u,
2970
2971
  f
@@ -2974,7 +2975,7 @@ const Yt = "focusScope.autoFocusOnMount", Xt = "focusScope.autoFocusOnUnmount",
2974
2975
  return;
2975
2976
  const b = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, g = document.activeElement;
2976
2977
  if (b && g) {
2977
- const h = p.currentTarget, [x, w] = ea(h);
2978
+ const h = p.currentTarget, [x, w] = ei(h);
2978
2979
  x && w ? !p.shiftKey && g === w ? (p.preventDefault(), n && Re(x, {
2979
2980
  select: !0
2980
2981
  })) : p.shiftKey && g === x && (p.preventDefault(), n && Re(w, {
@@ -2988,7 +2989,7 @@ const Yt = "focusScope.autoFocusOnMount", Xt = "focusScope.autoFocusOnUnmount",
2988
2989
  ]);
2989
2990
  return /* @__PURE__ */ $(Q.div, C({
2990
2991
  tabIndex: -1
2991
- }, a, {
2992
+ }, i, {
2992
2993
  ref: v,
2993
2994
  onKeyDown: m
2994
2995
  }));
@@ -3001,7 +3002,7 @@ function Jc(e, { select: t = !1 } = {}) {
3001
3002
  }), document.activeElement !== n)
3002
3003
  return;
3003
3004
  }
3004
- function ea(e) {
3005
+ function ei(e) {
3005
3006
  const t = So(e), n = Bn(t, e), o = Bn(t.reverse(), e);
3006
3007
  return [
3007
3008
  n,
@@ -3021,12 +3022,12 @@ function So(e) {
3021
3022
  }
3022
3023
  function Bn(e, t) {
3023
3024
  for (const n of e)
3024
- if (!ta(n, {
3025
+ if (!ti(n, {
3025
3026
  upTo: t
3026
3027
  }))
3027
3028
  return n;
3028
3029
  }
3029
- function ta(e, { upTo: t }) {
3030
+ function ti(e, { upTo: t }) {
3030
3031
  if (getComputedStyle(e).visibility === "hidden")
3031
3032
  return !0;
3032
3033
  for (; e; ) {
@@ -3038,7 +3039,7 @@ function ta(e, { upTo: t }) {
3038
3039
  }
3039
3040
  return !1;
3040
3041
  }
3041
- function na(e) {
3042
+ function ni(e) {
3042
3043
  return e instanceof HTMLInputElement && "select" in e;
3043
3044
  }
3044
3045
  function Re(e, { select: t = !1 } = {}) {
@@ -3046,11 +3047,11 @@ function Re(e, { select: t = !1 } = {}) {
3046
3047
  const n = document.activeElement;
3047
3048
  e.focus({
3048
3049
  preventScroll: !0
3049
- }), e !== n && na(e) && t && e.select();
3050
+ }), e !== n && ni(e) && t && e.select();
3050
3051
  }
3051
3052
  }
3052
- const Gn = oa();
3053
- function oa() {
3053
+ const Gn = oi();
3054
+ function oi() {
3054
3055
  let e = [];
3055
3056
  return {
3056
3057
  add(t) {
@@ -3069,34 +3070,34 @@ function Wn(e, t) {
3069
3070
  ], o = n.indexOf(t);
3070
3071
  return o !== -1 && n.splice(o, 1), n;
3071
3072
  }
3072
- function ra(e) {
3073
+ function ri(e) {
3073
3074
  return e.filter(
3074
3075
  (t) => t.tagName !== "A"
3075
3076
  );
3076
3077
  }
3077
3078
  const $e = globalThis != null && globalThis.document ? co : () => {
3078
- }, ca = S["useId".toString()] || (() => {
3079
+ }, ci = S["useId".toString()] || (() => {
3079
3080
  });
3080
- let aa = 0;
3081
+ let ii = 0;
3081
3082
  function Te(e) {
3082
- const [t, n] = S.useState(ca());
3083
+ const [t, n] = S.useState(ci());
3083
3084
  return $e(() => {
3084
3085
  e || n(
3085
- (o) => o ?? String(aa++)
3086
+ (o) => o ?? String(ii++)
3086
3087
  );
3087
3088
  }, [
3088
3089
  e
3089
3090
  ]), e || (t ? `radix-${t}` : "");
3090
3091
  }
3091
- const ia = ["top", "right", "bottom", "left"], Oe = Math.min, pe = Math.max, _t = Math.round, mt = Math.floor, Ae = (e) => ({
3092
+ const ai = ["top", "right", "bottom", "left"], Oe = Math.min, pe = Math.max, _t = Math.round, mt = Math.floor, Ae = (e) => ({
3092
3093
  x: e,
3093
3094
  y: e
3094
- }), sa = {
3095
+ }), si = {
3095
3096
  left: "right",
3096
3097
  right: "left",
3097
3098
  bottom: "top",
3098
3099
  top: "bottom"
3099
- }, la = {
3100
+ }, li = {
3100
3101
  start: "end",
3101
3102
  end: "start"
3102
3103
  };
@@ -3124,41 +3125,41 @@ function Qe(e) {
3124
3125
  function bn(e) {
3125
3126
  return gn(Qe(e));
3126
3127
  }
3127
- function da(e, t, n) {
3128
+ function di(e, t, n) {
3128
3129
  n === void 0 && (n = !1);
3129
3130
  const o = Ze(e), r = bn(e), c = hn(r);
3130
- let a = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
3131
- return t.reference[c] > t.floating[c] && (a = Mt(a)), [a, Mt(a)];
3131
+ let i = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
3132
+ return t.reference[c] > t.floating[c] && (i = Mt(i)), [i, Mt(i)];
3132
3133
  }
3133
- function ua(e) {
3134
+ function ui(e) {
3134
3135
  const t = Mt(e);
3135
3136
  return [cn(e), t, cn(t)];
3136
3137
  }
3137
3138
  function cn(e) {
3138
- return e.replace(/start|end/g, (t) => la[t]);
3139
+ return e.replace(/start|end/g, (t) => li[t]);
3139
3140
  }
3140
- function fa(e, t, n) {
3141
- const o = ["left", "right"], r = ["right", "left"], c = ["top", "bottom"], a = ["bottom", "top"];
3141
+ function fi(e, t, n) {
3142
+ const o = ["left", "right"], r = ["right", "left"], c = ["top", "bottom"], i = ["bottom", "top"];
3142
3143
  switch (e) {
3143
3144
  case "top":
3144
3145
  case "bottom":
3145
3146
  return n ? t ? r : o : t ? o : r;
3146
3147
  case "left":
3147
3148
  case "right":
3148
- return t ? c : a;
3149
+ return t ? c : i;
3149
3150
  default:
3150
3151
  return [];
3151
3152
  }
3152
3153
  }
3153
- function pa(e, t, n, o) {
3154
+ function pi(e, t, n, o) {
3154
3155
  const r = Ze(e);
3155
- let c = fa(Pe(e), n === "start", o);
3156
- return r && (c = c.map((a) => a + "-" + r), t && (c = c.concat(c.map(cn)))), c;
3156
+ let c = fi(Pe(e), n === "start", o);
3157
+ return r && (c = c.map((i) => i + "-" + r), t && (c = c.concat(c.map(cn)))), c;
3157
3158
  }
3158
3159
  function Mt(e) {
3159
- return e.replace(/left|right|bottom|top/g, (t) => sa[t]);
3160
+ return e.replace(/left|right|bottom|top/g, (t) => si[t]);
3160
3161
  }
3161
- function ma(e) {
3162
+ function mi(e) {
3162
3163
  return {
3163
3164
  top: 0,
3164
3165
  right: 0,
@@ -3168,7 +3169,7 @@ function ma(e) {
3168
3169
  };
3169
3170
  }
3170
3171
  function Po(e) {
3171
- return typeof e != "number" ? ma(e) : {
3172
+ return typeof e != "number" ? mi(e) : {
3172
3173
  top: e,
3173
3174
  right: e,
3174
3175
  bottom: e,
@@ -3189,7 +3190,7 @@ function Hn(e, t, n) {
3189
3190
  reference: o,
3190
3191
  floating: r
3191
3192
  } = e;
3192
- const c = Qe(t), a = bn(t), i = hn(a), s = Pe(t), d = c === "y", u = o.x + o.width / 2 - r.width / 2, l = o.y + o.height / 2 - r.height / 2, v = o[i] / 2 - r[i] / 2;
3193
+ const c = Qe(t), i = bn(t), a = hn(i), s = Pe(t), d = c === "y", u = o.x + o.width / 2 - r.width / 2, l = o.y + o.height / 2 - r.height / 2, v = o[a] / 2 - r[a] / 2;
3193
3194
  let f;
3194
3195
  switch (s) {
3195
3196
  case "top":
@@ -3224,22 +3225,22 @@ function Hn(e, t, n) {
3224
3225
  }
3225
3226
  switch (Ze(t)) {
3226
3227
  case "start":
3227
- f[a] -= v * (n && d ? -1 : 1);
3228
+ f[i] -= v * (n && d ? -1 : 1);
3228
3229
  break;
3229
3230
  case "end":
3230
- f[a] += v * (n && d ? -1 : 1);
3231
+ f[i] += v * (n && d ? -1 : 1);
3231
3232
  break;
3232
3233
  }
3233
3234
  return f;
3234
3235
  }
3235
- const va = async (e, t, n) => {
3236
+ const vi = async (e, t, n) => {
3236
3237
  const {
3237
3238
  placement: o = "bottom",
3238
3239
  strategy: r = "absolute",
3239
3240
  middleware: c = [],
3240
- platform: a
3241
- } = n, i = c.filter(Boolean), s = await (a.isRTL == null ? void 0 : a.isRTL(t));
3242
- let d = await a.getElementRects({
3241
+ platform: i
3242
+ } = n, a = c.filter(Boolean), s = await (i.isRTL == null ? void 0 : i.isRTL(t));
3243
+ let d = await i.getElementRects({
3243
3244
  reference: e,
3244
3245
  floating: t,
3245
3246
  strategy: r
@@ -3247,11 +3248,11 @@ const va = async (e, t, n) => {
3247
3248
  x: u,
3248
3249
  y: l
3249
3250
  } = Hn(d, o, s), v = o, f = {}, m = 0;
3250
- for (let p = 0; p < i.length; p++) {
3251
+ for (let p = 0; p < a.length; p++) {
3251
3252
  const {
3252
3253
  name: b,
3253
3254
  fn: g
3254
- } = i[p], {
3255
+ } = a[p], {
3255
3256
  x: h,
3256
3257
  y: x,
3257
3258
  data: w,
@@ -3264,7 +3265,7 @@ const va = async (e, t, n) => {
3264
3265
  strategy: r,
3265
3266
  middlewareData: f,
3266
3267
  rects: d,
3267
- platform: a,
3268
+ platform: i,
3268
3269
  elements: {
3269
3270
  reference: e,
3270
3271
  floating: t
@@ -3277,7 +3278,7 @@ const va = async (e, t, n) => {
3277
3278
  ...w
3278
3279
  }
3279
3280
  }, y && m <= 50) {
3280
- m++, typeof y == "object" && (y.placement && (v = y.placement), y.rects && (d = y.rects === !0 ? await a.getElementRects({
3281
+ m++, typeof y == "object" && (y.placement && (v = y.placement), y.rects && (d = y.rects === !0 ? await i.getElementRects({
3281
3282
  reference: e,
3282
3283
  floating: t,
3283
3284
  strategy: r
@@ -3296,15 +3297,15 @@ const va = async (e, t, n) => {
3296
3297
  middlewareData: f
3297
3298
  };
3298
3299
  };
3299
- async function at(e, t) {
3300
+ async function it(e, t) {
3300
3301
  var n;
3301
3302
  t === void 0 && (t = {});
3302
3303
  const {
3303
3304
  x: o,
3304
3305
  y: r,
3305
3306
  platform: c,
3306
- rects: a,
3307
- elements: i,
3307
+ rects: i,
3308
+ elements: a,
3308
3309
  strategy: s
3309
3310
  } = e, {
3310
3311
  boundary: d = "clippingAncestors",
@@ -3312,16 +3313,16 @@ async function at(e, t) {
3312
3313
  elementContext: l = "floating",
3313
3314
  altBoundary: v = !1,
3314
3315
  padding: f = 0
3315
- } = Se(t, e), m = Po(f), b = i[v ? l === "floating" ? "reference" : "floating" : l], g = Rt(await c.getClippingRect({
3316
- element: (n = await (c.isElement == null ? void 0 : c.isElement(b))) == null || n ? b : b.contextElement || await (c.getDocumentElement == null ? void 0 : c.getDocumentElement(i.floating)),
3316
+ } = Se(t, e), m = Po(f), b = a[v ? l === "floating" ? "reference" : "floating" : l], g = Rt(await c.getClippingRect({
3317
+ element: (n = await (c.isElement == null ? void 0 : c.isElement(b))) == null || n ? b : b.contextElement || await (c.getDocumentElement == null ? void 0 : c.getDocumentElement(a.floating)),
3317
3318
  boundary: d,
3318
3319
  rootBoundary: u,
3319
3320
  strategy: s
3320
3321
  })), h = l === "floating" ? {
3321
- ...a.floating,
3322
+ ...i.floating,
3322
3323
  x: o,
3323
3324
  y: r
3324
- } : a.reference, x = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(i.floating)), w = await (c.isElement == null ? void 0 : c.isElement(x)) ? await (c.getScale == null ? void 0 : c.getScale(x)) || {
3325
+ } : i.reference, x = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(a.floating)), w = await (c.isElement == null ? void 0 : c.isElement(x)) ? await (c.getScale == null ? void 0 : c.getScale(x)) || {
3325
3326
  x: 1,
3326
3327
  y: 1
3327
3328
  } : {
@@ -3348,8 +3349,8 @@ const zn = (e) => ({
3348
3349
  y: o,
3349
3350
  placement: r,
3350
3351
  rects: c,
3351
- platform: a,
3352
- elements: i
3352
+ platform: i,
3353
+ elements: a
3353
3354
  } = t, {
3354
3355
  element: s,
3355
3356
  padding: d = 0
@@ -3359,9 +3360,9 @@ const zn = (e) => ({
3359
3360
  const u = Po(d), l = {
3360
3361
  x: n,
3361
3362
  y: o
3362
- }, v = bn(r), f = hn(v), m = await a.getDimensions(s), p = v === "y", b = p ? "top" : "left", g = p ? "bottom" : "right", h = p ? "clientHeight" : "clientWidth", x = c.reference[f] + c.reference[v] - l[v] - c.floating[f], w = l[v] - c.reference[v], y = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s));
3363
+ }, v = bn(r), f = hn(v), m = await i.getDimensions(s), p = v === "y", b = p ? "top" : "left", g = p ? "bottom" : "right", h = p ? "clientHeight" : "clientWidth", x = c.reference[f] + c.reference[v] - l[v] - c.floating[f], w = l[v] - c.reference[v], y = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(s));
3363
3364
  let M = y ? y[h] : 0;
3364
- (!M || !await (a.isElement == null ? void 0 : a.isElement(y))) && (M = i.floating[h] || c.floating[f]);
3365
+ (!M || !await (i.isElement == null ? void 0 : i.isElement(y))) && (M = a.floating[h] || c.floating[f]);
3365
3366
  const P = x / 2 - w / 2, E = M / 2 - m[f] / 2 - 1, D = Oe(u[b], E), z = Oe(u[g], E), k = D, T = M - m[f] - z, G = M / 2 - m[f] / 2 + P, B = rn(k, G, T), I = Ze(r) != null && G != B && c.reference[f] / 2 - (G < k ? D : z) - m[f] / 2 < 0 ? G < k ? k - G : T - G : 0;
3366
3367
  return {
3367
3368
  [v]: l[v] - I,
@@ -3371,7 +3372,7 @@ const zn = (e) => ({
3371
3372
  }
3372
3373
  };
3373
3374
  }
3374
- }), ga = function(e) {
3375
+ }), gi = function(e) {
3375
3376
  return e === void 0 && (e = {}), {
3376
3377
  name: "flip",
3377
3378
  options: e,
@@ -3381,8 +3382,8 @@ const zn = (e) => ({
3381
3382
  placement: o,
3382
3383
  middlewareData: r,
3383
3384
  rects: c,
3384
- initialPlacement: a,
3385
- platform: i,
3385
+ initialPlacement: i,
3386
+ platform: a,
3386
3387
  elements: s
3387
3388
  } = t, {
3388
3389
  mainAxis: d = !0,
@@ -3392,12 +3393,12 @@ const zn = (e) => ({
3392
3393
  fallbackAxisSideDirection: f = "none",
3393
3394
  flipAlignment: m = !0,
3394
3395
  ...p
3395
- } = Se(e, t), b = Pe(o), g = Pe(a) === a, h = await (i.isRTL == null ? void 0 : i.isRTL(s.floating)), x = l || (g || !m ? [Mt(a)] : ua(a));
3396
- !l && f !== "none" && x.push(...pa(a, m, f, h));
3397
- const w = [a, ...x], y = await at(t, p), M = [];
3396
+ } = Se(e, t), b = Pe(o), g = Pe(i) === i, h = await (a.isRTL == null ? void 0 : a.isRTL(s.floating)), x = l || (g || !m ? [Mt(i)] : ui(i));
3397
+ !l && f !== "none" && x.push(...pi(i, m, f, h));
3398
+ const w = [i, ...x], y = await it(t, p), M = [];
3398
3399
  let P = ((n = r.flip) == null ? void 0 : n.overflows) || [];
3399
3400
  if (d && M.push(y[b]), u) {
3400
- const k = da(o, c, h);
3401
+ const k = di(o, c, h);
3401
3402
  M.push(y[k[0]], y[k[1]]);
3402
3403
  }
3403
3404
  if (P = [...P, {
@@ -3426,7 +3427,7 @@ const zn = (e) => ({
3426
3427
  break;
3427
3428
  }
3428
3429
  case "initialPlacement":
3429
- G = a;
3430
+ G = i;
3430
3431
  break;
3431
3432
  }
3432
3433
  if (o !== G)
@@ -3449,9 +3450,9 @@ function Un(e, t) {
3449
3450
  };
3450
3451
  }
3451
3452
  function Kn(e) {
3452
- return ia.some((t) => e[t] >= 0);
3453
+ return ai.some((t) => e[t] >= 0);
3453
3454
  }
3454
- const ha = function(e) {
3455
+ const hi = function(e) {
3455
3456
  return e === void 0 && (e = {}), {
3456
3457
  name: "hide",
3457
3458
  options: e,
@@ -3464,26 +3465,26 @@ const ha = function(e) {
3464
3465
  } = Se(e, t);
3465
3466
  switch (o) {
3466
3467
  case "referenceHidden": {
3467
- const c = await at(t, {
3468
+ const c = await it(t, {
3468
3469
  ...r,
3469
3470
  elementContext: "reference"
3470
- }), a = Un(c, n.reference);
3471
+ }), i = Un(c, n.reference);
3471
3472
  return {
3472
3473
  data: {
3473
- referenceHiddenOffsets: a,
3474
- referenceHidden: Kn(a)
3474
+ referenceHiddenOffsets: i,
3475
+ referenceHidden: Kn(i)
3475
3476
  }
3476
3477
  };
3477
3478
  }
3478
3479
  case "escaped": {
3479
- const c = await at(t, {
3480
+ const c = await it(t, {
3480
3481
  ...r,
3481
3482
  altBoundary: !0
3482
- }), a = Un(c, n.floating);
3483
+ }), i = Un(c, n.floating);
3483
3484
  return {
3484
3485
  data: {
3485
- escapedOffsets: a,
3486
- escaped: Kn(a)
3486
+ escapedOffsets: i,
3487
+ escaped: Kn(i)
3487
3488
  }
3488
3489
  };
3489
3490
  }
@@ -3493,12 +3494,12 @@ const ha = function(e) {
3493
3494
  }
3494
3495
  };
3495
3496
  };
3496
- async function ba(e, t) {
3497
+ async function bi(e, t) {
3497
3498
  const {
3498
3499
  placement: n,
3499
3500
  platform: o,
3500
3501
  elements: r
3501
- } = e, c = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), a = Pe(n), i = Ze(n), s = Qe(n) === "y", d = ["left", "top"].includes(a) ? -1 : 1, u = c && s ? -1 : 1, l = Se(t, e);
3502
+ } = e, c = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), i = Pe(n), a = Ze(n), s = Qe(n) === "y", d = ["left", "top"].includes(i) ? -1 : 1, u = c && s ? -1 : 1, l = Se(t, e);
3502
3503
  let {
3503
3504
  mainAxis: v,
3504
3505
  crossAxis: f,
@@ -3513,7 +3514,7 @@ async function ba(e, t) {
3513
3514
  alignmentAxis: null,
3514
3515
  ...l
3515
3516
  };
3516
- return i && typeof m == "number" && (f = i === "end" ? m * -1 : m), s ? {
3517
+ return a && typeof m == "number" && (f = a === "end" ? m * -1 : m), s ? {
3517
3518
  x: f * u,
3518
3519
  y: v * d
3519
3520
  } : {
@@ -3521,7 +3522,7 @@ async function ba(e, t) {
3521
3522
  y: f * u
3522
3523
  };
3523
3524
  }
3524
- const $a = function(e) {
3525
+ const $i = function(e) {
3525
3526
  return e === void 0 && (e = 0), {
3526
3527
  name: "offset",
3527
3528
  options: e,
@@ -3529,7 +3530,7 @@ const $a = function(e) {
3529
3530
  const {
3530
3531
  x: n,
3531
3532
  y: o
3532
- } = t, r = await ba(t, e);
3533
+ } = t, r = await bi(t, e);
3533
3534
  return {
3534
3535
  x: n + r.x,
3535
3536
  y: o + r.y,
@@ -3537,7 +3538,7 @@ const $a = function(e) {
3537
3538
  };
3538
3539
  }
3539
3540
  };
3540
- }, xa = function(e) {
3541
+ }, xi = function(e) {
3541
3542
  return e === void 0 && (e = {}), {
3542
3543
  name: "shift",
3543
3544
  options: e,
@@ -3548,8 +3549,8 @@ const $a = function(e) {
3548
3549
  placement: r
3549
3550
  } = t, {
3550
3551
  mainAxis: c = !0,
3551
- crossAxis: a = !1,
3552
- limiter: i = {
3552
+ crossAxis: i = !1,
3553
+ limiter: a = {
3553
3554
  fn: (b) => {
3554
3555
  let {
3555
3556
  x: g,
@@ -3565,17 +3566,17 @@ const $a = function(e) {
3565
3566
  } = Se(e, t), d = {
3566
3567
  x: n,
3567
3568
  y: o
3568
- }, u = await at(t, s), l = Qe(Pe(r)), v = gn(l);
3569
+ }, u = await it(t, s), l = Qe(Pe(r)), v = gn(l);
3569
3570
  let f = d[v], m = d[l];
3570
3571
  if (c) {
3571
3572
  const b = v === "y" ? "top" : "left", g = v === "y" ? "bottom" : "right", h = f + u[b], x = f - u[g];
3572
3573
  f = rn(h, f, x);
3573
3574
  }
3574
- if (a) {
3575
+ if (i) {
3575
3576
  const b = l === "y" ? "top" : "left", g = l === "y" ? "bottom" : "right", h = m + u[b], x = m - u[g];
3576
3577
  m = rn(h, m, x);
3577
3578
  }
3578
- const p = i.fn({
3579
+ const p = a.fn({
3579
3580
  ...t,
3580
3581
  [v]: f,
3581
3582
  [l]: m
@@ -3589,7 +3590,7 @@ const $a = function(e) {
3589
3590
  };
3590
3591
  }
3591
3592
  };
3592
- }, wa = function(e) {
3593
+ }, wi = function(e) {
3593
3594
  return e === void 0 && (e = {}), {
3594
3595
  options: e,
3595
3596
  fn(t) {
@@ -3598,9 +3599,9 @@ const $a = function(e) {
3598
3599
  y: o,
3599
3600
  placement: r,
3600
3601
  rects: c,
3601
- middlewareData: a
3602
+ middlewareData: i
3602
3603
  } = t, {
3603
- offset: i = 0,
3604
+ offset: a = 0,
3604
3605
  mainAxis: s = !0,
3605
3606
  crossAxis: d = !0
3606
3607
  } = Se(e, t), u = {
@@ -3608,7 +3609,7 @@ const $a = function(e) {
3608
3609
  y: o
3609
3610
  }, l = Qe(r), v = gn(l);
3610
3611
  let f = u[v], m = u[l];
3611
- const p = Se(i, t), b = typeof p == "number" ? {
3612
+ const p = Se(a, t), b = typeof p == "number" ? {
3612
3613
  mainAxis: p,
3613
3614
  crossAxis: 0
3614
3615
  } : {
@@ -3622,7 +3623,7 @@ const $a = function(e) {
3622
3623
  }
3623
3624
  if (d) {
3624
3625
  var g, h;
3625
- const x = v === "y" ? "width" : "height", w = ["top", "left"].includes(Pe(r)), y = c.reference[l] - c.floating[x] + (w && ((g = a.offset) == null ? void 0 : g[l]) || 0) + (w ? 0 : b.crossAxis), M = c.reference[l] + c.reference[x] + (w ? 0 : ((h = a.offset) == null ? void 0 : h[l]) || 0) - (w ? b.crossAxis : 0);
3626
+ const x = v === "y" ? "width" : "height", w = ["top", "left"].includes(Pe(r)), y = c.reference[l] - c.floating[x] + (w && ((g = i.offset) == null ? void 0 : g[l]) || 0) + (w ? 0 : b.crossAxis), M = c.reference[l] + c.reference[x] + (w ? 0 : ((h = i.offset) == null ? void 0 : h[l]) || 0) - (w ? b.crossAxis : 0);
3626
3627
  m < y ? m = y : m > M && (m = M);
3627
3628
  }
3628
3629
  return {
@@ -3631,7 +3632,7 @@ const $a = function(e) {
3631
3632
  };
3632
3633
  }
3633
3634
  };
3634
- }, ya = function(e) {
3635
+ }, yi = function(e) {
3635
3636
  return e === void 0 && (e = {}), {
3636
3637
  name: "size",
3637
3638
  options: e,
@@ -3642,10 +3643,10 @@ const $a = function(e) {
3642
3643
  platform: r,
3643
3644
  elements: c
3644
3645
  } = t, {
3645
- apply: a = () => {
3646
+ apply: i = () => {
3646
3647
  },
3647
- ...i
3648
- } = Se(e, t), s = await at(t, i), d = Pe(n), u = Ze(n), l = Qe(n) === "y", {
3648
+ ...a
3649
+ } = Se(e, t), s = await it(t, a), d = Pe(n), u = Ze(n), l = Qe(n) === "y", {
3649
3650
  width: v,
3650
3651
  height: f
3651
3652
  } = o.floating;
@@ -3664,7 +3665,7 @@ const $a = function(e) {
3664
3665
  const M = pe(s.left, 0), P = pe(s.right, 0), E = pe(s.top, 0), D = pe(s.bottom, 0);
3665
3666
  l ? w = v - 2 * (M !== 0 || P !== 0 ? M + P : pe(s.left, s.right)) : x = f - 2 * (E !== 0 || D !== 0 ? E + D : pe(s.top, s.bottom));
3666
3667
  }
3667
- await a({
3668
+ await i({
3668
3669
  ...t,
3669
3670
  availableWidth: w,
3670
3671
  availableHeight: x
@@ -3710,14 +3711,14 @@ function dt(e) {
3710
3711
  } = ge(e);
3711
3712
  return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(r);
3712
3713
  }
3713
- function Ca(e) {
3714
+ function Ci(e) {
3714
3715
  return ["table", "td", "th"].includes(Ie(e));
3715
3716
  }
3716
3717
  function $n(e) {
3717
3718
  const t = xn(), n = ge(e);
3718
3719
  return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
3719
3720
  }
3720
- function Sa(e) {
3721
+ function Si(e) {
3721
3722
  let t = Xe(e);
3722
3723
  for (; ye(t) && !kt(t); ) {
3723
3724
  if ($n(t))
@@ -3769,11 +3770,11 @@ function Tt(e, t) {
3769
3770
  function Mo(e) {
3770
3771
  const t = ge(e);
3771
3772
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
3772
- const r = ye(e), c = r ? e.offsetWidth : n, a = r ? e.offsetHeight : o, i = _t(n) !== c || _t(o) !== a;
3773
- return i && (n = c, o = a), {
3773
+ const r = ye(e), c = r ? e.offsetWidth : n, i = r ? e.offsetHeight : o, a = _t(n) !== c || _t(o) !== i;
3774
+ return a && (n = c, o = i), {
3774
3775
  width: n,
3775
3776
  height: o,
3776
- $: i
3777
+ $: a
3777
3778
  };
3778
3779
  }
3779
3780
  function wn(e) {
@@ -3788,30 +3789,30 @@ function Ke(e) {
3788
3789
  height: r,
3789
3790
  $: c
3790
3791
  } = Mo(t);
3791
- let a = (c ? _t(n.width) : n.width) / o, i = (c ? _t(n.height) : n.height) / r;
3792
- return (!a || !Number.isFinite(a)) && (a = 1), (!i || !Number.isFinite(i)) && (i = 1), {
3793
- x: a,
3794
- y: i
3792
+ let i = (c ? _t(n.width) : n.width) / o, a = (c ? _t(n.height) : n.height) / r;
3793
+ return (!i || !Number.isFinite(i)) && (i = 1), (!a || !Number.isFinite(a)) && (a = 1), {
3794
+ x: i,
3795
+ y: a
3795
3796
  };
3796
3797
  }
3797
- const Pa = /* @__PURE__ */ Ae(0);
3798
+ const Pi = /* @__PURE__ */ Ae(0);
3798
3799
  function Ro(e) {
3799
3800
  const t = me(e);
3800
- return !xn() || !t.visualViewport ? Pa : {
3801
+ return !xn() || !t.visualViewport ? Pi : {
3801
3802
  x: t.visualViewport.offsetLeft,
3802
3803
  y: t.visualViewport.offsetTop
3803
3804
  };
3804
3805
  }
3805
- function Ea(e, t, n) {
3806
+ function Ei(e, t, n) {
3806
3807
  return t === void 0 && (t = !1), !n || t && n !== me(e) ? !1 : t;
3807
3808
  }
3808
3809
  function Fe(e, t, n, o) {
3809
3810
  t === void 0 && (t = !1), n === void 0 && (n = !1);
3810
3811
  const r = e.getBoundingClientRect(), c = wn(e);
3811
- let a = Ae(1);
3812
- t && (o ? Ee(o) && (a = Ke(o)) : a = Ke(e));
3813
- const i = Ea(c, n, o) ? Ro(c) : Ae(0);
3814
- let s = (r.left + i.x) / a.x, d = (r.top + i.y) / a.y, u = r.width / a.x, l = r.height / a.y;
3812
+ let i = Ae(1);
3813
+ t && (o ? Ee(o) && (i = Ke(o)) : i = Ke(e));
3814
+ const a = Ei(c, n, o) ? Ro(c) : Ae(0);
3815
+ let s = (r.left + a.x) / i.x, d = (r.top + a.y) / i.y, u = r.width / i.x, l = r.height / i.y;
3815
3816
  if (c) {
3816
3817
  const v = me(c), f = o && Ee(o) ? me(o) : o;
3817
3818
  let m = v.frameElement;
@@ -3827,7 +3828,7 @@ function Fe(e, t, n, o) {
3827
3828
  y: d
3828
3829
  });
3829
3830
  }
3830
- function _a(e) {
3831
+ function _i(e) {
3831
3832
  let {
3832
3833
  rect: t,
3833
3834
  offsetParent: n,
@@ -3836,59 +3837,59 @@ function _a(e) {
3836
3837
  const r = ye(n), c = _e(n);
3837
3838
  if (n === c)
3838
3839
  return t;
3839
- let a = {
3840
+ let i = {
3840
3841
  scrollLeft: 0,
3841
3842
  scrollTop: 0
3842
- }, i = Ae(1);
3843
+ }, a = Ae(1);
3843
3844
  const s = Ae(0);
3844
- if ((r || !r && o !== "fixed") && ((Ie(n) !== "body" || dt(c)) && (a = Ft(n)), ye(n))) {
3845
+ if ((r || !r && o !== "fixed") && ((Ie(n) !== "body" || dt(c)) && (i = Ft(n)), ye(n))) {
3845
3846
  const d = Fe(n);
3846
- i = Ke(n), s.x = d.x + n.clientLeft, s.y = d.y + n.clientTop;
3847
+ a = Ke(n), s.x = d.x + n.clientLeft, s.y = d.y + n.clientTop;
3847
3848
  }
3848
3849
  return {
3849
- width: t.width * i.x,
3850
- height: t.height * i.y,
3851
- x: t.x * i.x - a.scrollLeft * i.x + s.x,
3852
- y: t.y * i.y - a.scrollTop * i.y + s.y
3850
+ width: t.width * a.x,
3851
+ height: t.height * a.y,
3852
+ x: t.x * a.x - i.scrollLeft * a.x + s.x,
3853
+ y: t.y * a.y - i.scrollTop * a.y + s.y
3853
3854
  };
3854
3855
  }
3855
- function Ma(e) {
3856
+ function Mi(e) {
3856
3857
  return Array.from(e.getClientRects());
3857
3858
  }
3858
3859
  function To(e) {
3859
3860
  return Fe(_e(e)).left + Ft(e).scrollLeft;
3860
3861
  }
3861
- function Ra(e) {
3862
+ function Ri(e) {
3862
3863
  const t = _e(e), n = Ft(e), o = e.ownerDocument.body, r = pe(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), c = pe(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
3863
- let a = -n.scrollLeft + To(e);
3864
- const i = -n.scrollTop;
3865
- return ge(o).direction === "rtl" && (a += pe(t.clientWidth, o.clientWidth) - r), {
3864
+ let i = -n.scrollLeft + To(e);
3865
+ const a = -n.scrollTop;
3866
+ return ge(o).direction === "rtl" && (i += pe(t.clientWidth, o.clientWidth) - r), {
3866
3867
  width: r,
3867
3868
  height: c,
3868
- x: a,
3869
- y: i
3869
+ x: i,
3870
+ y: a
3870
3871
  };
3871
3872
  }
3872
- function Ta(e, t) {
3873
+ function Ti(e, t) {
3873
3874
  const n = me(e), o = _e(e), r = n.visualViewport;
3874
- let c = o.clientWidth, a = o.clientHeight, i = 0, s = 0;
3875
+ let c = o.clientWidth, i = o.clientHeight, a = 0, s = 0;
3875
3876
  if (r) {
3876
- c = r.width, a = r.height;
3877
+ c = r.width, i = r.height;
3877
3878
  const d = xn();
3878
- (!d || d && t === "fixed") && (i = r.offsetLeft, s = r.offsetTop);
3879
+ (!d || d && t === "fixed") && (a = r.offsetLeft, s = r.offsetTop);
3879
3880
  }
3880
3881
  return {
3881
3882
  width: c,
3882
- height: a,
3883
- x: i,
3883
+ height: i,
3884
+ x: a,
3884
3885
  y: s
3885
3886
  };
3886
3887
  }
3887
- function Oa(e, t) {
3888
- const n = Fe(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, c = ye(e) ? Ke(e) : Ae(1), a = e.clientWidth * c.x, i = e.clientHeight * c.y, s = r * c.x, d = o * c.y;
3888
+ function Oi(e, t) {
3889
+ const n = Fe(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, c = ye(e) ? Ke(e) : Ae(1), i = e.clientWidth * c.x, a = e.clientHeight * c.y, s = r * c.x, d = o * c.y;
3889
3890
  return {
3890
- width: a,
3891
- height: i,
3891
+ width: i,
3892
+ height: a,
3892
3893
  x: s,
3893
3894
  y: d
3894
3895
  };
@@ -3896,11 +3897,11 @@ function Oa(e, t) {
3896
3897
  function jn(e, t, n) {
3897
3898
  let o;
3898
3899
  if (t === "viewport")
3899
- o = Ta(e, n);
3900
+ o = Ti(e, n);
3900
3901
  else if (t === "document")
3901
- o = Ra(_e(e));
3902
+ o = Ri(_e(e));
3902
3903
  else if (Ee(t))
3903
- o = Oa(t, n);
3904
+ o = Oi(t, n);
3904
3905
  else {
3905
3906
  const r = Ro(e);
3906
3907
  o = {
@@ -3915,30 +3916,30 @@ function Oo(e, t) {
3915
3916
  const n = Xe(e);
3916
3917
  return n === t || !Ee(n) || kt(n) ? !1 : ge(n).position === "fixed" || Oo(n, t);
3917
3918
  }
3918
- function Aa(e, t) {
3919
+ function Ai(e, t) {
3919
3920
  const n = t.get(e);
3920
3921
  if (n)
3921
3922
  return n;
3922
- let o = Tt(e).filter((i) => Ee(i) && Ie(i) !== "body"), r = null;
3923
+ let o = Tt(e).filter((a) => Ee(a) && Ie(a) !== "body"), r = null;
3923
3924
  const c = ge(e).position === "fixed";
3924
- let a = c ? Xe(e) : e;
3925
- for (; Ee(a) && !kt(a); ) {
3926
- const i = ge(a), s = $n(a);
3927
- !s && i.position === "fixed" && (r = null), (c ? !s && !r : !s && i.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || dt(a) && !s && Oo(e, a)) ? o = o.filter((u) => u !== a) : r = i, a = Xe(a);
3925
+ let i = c ? Xe(e) : e;
3926
+ for (; Ee(i) && !kt(i); ) {
3927
+ const a = ge(i), s = $n(i);
3928
+ !s && a.position === "fixed" && (r = null), (c ? !s && !r : !s && a.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || dt(i) && !s && Oo(e, i)) ? o = o.filter((u) => u !== i) : r = a, i = Xe(i);
3928
3929
  }
3929
3930
  return t.set(e, o), o;
3930
3931
  }
3931
- function Ia(e) {
3932
+ function Ii(e) {
3932
3933
  let {
3933
3934
  element: t,
3934
3935
  boundary: n,
3935
3936
  rootBoundary: o,
3936
3937
  strategy: r
3937
3938
  } = e;
3938
- const a = [...n === "clippingAncestors" ? Aa(t, this._c) : [].concat(n), o], i = a[0], s = a.reduce((d, u) => {
3939
+ const i = [...n === "clippingAncestors" ? Ai(t, this._c) : [].concat(n), o], a = i[0], s = i.reduce((d, u) => {
3939
3940
  const l = jn(t, u, r);
3940
3941
  return d.top = pe(l.top, d.top), d.right = Oe(l.right, d.right), d.bottom = Oe(l.bottom, d.bottom), d.left = pe(l.left, d.left), d;
3941
- }, jn(t, i, r));
3942
+ }, jn(t, a, r));
3942
3943
  return {
3943
3944
  width: s.right - s.left,
3944
3945
  height: s.bottom - s.top,
@@ -3946,27 +3947,27 @@ function Ia(e) {
3946
3947
  y: s.top
3947
3948
  };
3948
3949
  }
3949
- function Na(e) {
3950
+ function Ni(e) {
3950
3951
  return Mo(e);
3951
3952
  }
3952
- function Da(e, t, n) {
3953
- const o = ye(t), r = _e(t), c = n === "fixed", a = Fe(e, !0, c, t);
3954
- let i = {
3953
+ function Di(e, t, n) {
3954
+ const o = ye(t), r = _e(t), c = n === "fixed", i = Fe(e, !0, c, t);
3955
+ let a = {
3955
3956
  scrollLeft: 0,
3956
3957
  scrollTop: 0
3957
3958
  };
3958
3959
  const s = Ae(0);
3959
3960
  if (o || !o && !c)
3960
- if ((Ie(t) !== "body" || dt(r)) && (i = Ft(t)), o) {
3961
+ if ((Ie(t) !== "body" || dt(r)) && (a = Ft(t)), o) {
3961
3962
  const d = Fe(t, !0, c, t);
3962
3963
  s.x = d.x + t.clientLeft, s.y = d.y + t.clientTop;
3963
3964
  } else
3964
3965
  r && (s.x = To(r));
3965
3966
  return {
3966
- x: a.left + i.scrollLeft - s.x,
3967
- y: a.top + i.scrollTop - s.y,
3968
- width: a.width,
3969
- height: a.height
3967
+ x: i.left + a.scrollLeft - s.x,
3968
+ y: i.top + a.scrollTop - s.y,
3969
+ width: i.width,
3970
+ height: i.height
3970
3971
  };
3971
3972
  }
3972
3973
  function Yn(e, t) {
@@ -3977,11 +3978,11 @@ function Ao(e, t) {
3977
3978
  if (!ye(e))
3978
3979
  return n;
3979
3980
  let o = Yn(e, t);
3980
- for (; o && Ca(o) && ge(o).position === "static"; )
3981
+ for (; o && Ci(o) && ge(o).position === "static"; )
3981
3982
  o = Yn(o, t);
3982
- return o && (Ie(o) === "html" || Ie(o) === "body" && ge(o).position === "static" && !$n(o)) ? n : o || Sa(e) || n;
3983
+ return o && (Ie(o) === "html" || Ie(o) === "body" && ge(o).position === "static" && !$n(o)) ? n : o || Si(e) || n;
3983
3984
  }
3984
- const ka = async function(e) {
3985
+ const ki = async function(e) {
3985
3986
  let {
3986
3987
  reference: t,
3987
3988
  floating: n,
@@ -3989,7 +3990,7 @@ const ka = async function(e) {
3989
3990
  } = e;
3990
3991
  const r = this.getOffsetParent || Ao, c = this.getDimensions;
3991
3992
  return {
3992
- reference: Da(t, await r(n), o),
3993
+ reference: Di(t, await r(n), o),
3993
3994
  floating: {
3994
3995
  x: 0,
3995
3996
  y: 0,
@@ -3997,36 +3998,36 @@ const ka = async function(e) {
3997
3998
  }
3998
3999
  };
3999
4000
  };
4000
- function Fa(e) {
4001
+ function Fi(e) {
4001
4002
  return ge(e).direction === "rtl";
4002
4003
  }
4003
- const La = {
4004
- convertOffsetParentRelativeRectToViewportRelativeRect: _a,
4004
+ const Li = {
4005
+ convertOffsetParentRelativeRectToViewportRelativeRect: _i,
4005
4006
  getDocumentElement: _e,
4006
- getClippingRect: Ia,
4007
+ getClippingRect: Ii,
4007
4008
  getOffsetParent: Ao,
4008
- getElementRects: ka,
4009
- getClientRects: Ma,
4010
- getDimensions: Na,
4009
+ getElementRects: ki,
4010
+ getClientRects: Mi,
4011
+ getDimensions: Ni,
4011
4012
  getScale: Ke,
4012
4013
  isElement: Ee,
4013
- isRTL: Fa
4014
+ isRTL: Fi
4014
4015
  };
4015
- function Ba(e, t) {
4016
+ function Bi(e, t) {
4016
4017
  let n = null, o;
4017
4018
  const r = _e(e);
4018
4019
  function c() {
4019
4020
  clearTimeout(o), n && n.disconnect(), n = null;
4020
4021
  }
4021
- function a(i, s) {
4022
- i === void 0 && (i = !1), s === void 0 && (s = 1), c();
4022
+ function i(a, s) {
4023
+ a === void 0 && (a = !1), s === void 0 && (s = 1), c();
4023
4024
  const {
4024
4025
  left: d,
4025
4026
  top: u,
4026
4027
  width: l,
4027
4028
  height: v
4028
4029
  } = e.getBoundingClientRect();
4029
- if (i || t(), !l || !v)
4030
+ if (a || t(), !l || !v)
4030
4031
  return;
4031
4032
  const f = mt(u), m = mt(r.clientWidth - (d + l)), p = mt(r.clientHeight - (u + v)), b = mt(d), h = {
4032
4033
  rootMargin: -f + "px " + -m + "px " + -p + "px " + -b + "px",
@@ -4037,9 +4038,9 @@ function Ba(e, t) {
4037
4038
  const M = y[0].intersectionRatio;
4038
4039
  if (M !== s) {
4039
4040
  if (!x)
4040
- return a();
4041
- M ? a(!1, M) : o = setTimeout(() => {
4042
- a(!1, 1e-7);
4041
+ return i();
4042
+ M ? i(!1, M) : o = setTimeout(() => {
4043
+ i(!1, 1e-7);
4043
4044
  }, 100);
4044
4045
  }
4045
4046
  x = !1;
@@ -4055,15 +4056,15 @@ function Ba(e, t) {
4055
4056
  }
4056
4057
  n.observe(e);
4057
4058
  }
4058
- return a(!0), c;
4059
+ return i(!0), c;
4059
4060
  }
4060
- function Ga(e, t, n, o) {
4061
+ function Gi(e, t, n, o) {
4061
4062
  o === void 0 && (o = {});
4062
4063
  const {
4063
4064
  ancestorScroll: r = !0,
4064
4065
  ancestorResize: c = !0,
4065
- elementResize: a = typeof ResizeObserver == "function",
4066
- layoutShift: i = typeof IntersectionObserver == "function",
4066
+ elementResize: i = typeof ResizeObserver == "function",
4067
+ layoutShift: a = typeof IntersectionObserver == "function",
4067
4068
  animationFrame: s = !1
4068
4069
  } = o, d = wn(e), u = r || c ? [...d ? Tt(d) : [], ...Tt(t)] : [];
4069
4070
  u.forEach((g) => {
@@ -4071,9 +4072,9 @@ function Ga(e, t, n, o) {
4071
4072
  passive: !0
4072
4073
  }), c && g.addEventListener("resize", n);
4073
4074
  });
4074
- const l = d && i ? Ba(d, n) : null;
4075
+ const l = d && a ? Bi(d, n) : null;
4075
4076
  let v = -1, f = null;
4076
- a && (f = new ResizeObserver((g) => {
4077
+ i && (f = new ResizeObserver((g) => {
4077
4078
  let [h] = g;
4078
4079
  h && h.target === d && f && (f.unobserve(t), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
4079
4080
  f && f.observe(t);
@@ -4091,19 +4092,19 @@ function Ga(e, t, n, o) {
4091
4092
  }), l && l(), f && f.disconnect(), f = null, s && cancelAnimationFrame(m);
4092
4093
  };
4093
4094
  }
4094
- const Wa = (e, t, n) => {
4095
+ const Wi = (e, t, n) => {
4095
4096
  const o = /* @__PURE__ */ new Map(), r = {
4096
- platform: La,
4097
+ platform: Li,
4097
4098
  ...n
4098
4099
  }, c = {
4099
4100
  ...r.platform,
4100
4101
  _c: o
4101
4102
  };
4102
- return va(e, t, {
4103
+ return vi(e, t, {
4103
4104
  ...r,
4104
4105
  platform: c
4105
4106
  });
4106
- }, Ha = (e) => {
4107
+ }, Hi = (e) => {
4107
4108
  function t(n) {
4108
4109
  return {}.hasOwnProperty.call(n, "current");
4109
4110
  }
@@ -4170,7 +4171,7 @@ function qn(e) {
4170
4171
  t.current = e;
4171
4172
  }), t;
4172
4173
  }
4173
- function za(e) {
4174
+ function zi(e) {
4174
4175
  e === void 0 && (e = {});
4175
4176
  const {
4176
4177
  placement: t = "bottom",
@@ -4179,9 +4180,9 @@ function za(e) {
4179
4180
  platform: r,
4180
4181
  elements: {
4181
4182
  reference: c,
4182
- floating: a
4183
+ floating: i
4183
4184
  } = {},
4184
- transform: i = !0,
4185
+ transform: a = !0,
4185
4186
  whileElementsMounted: s,
4186
4187
  open: d
4187
4188
  } = e, [u, l] = S.useState({
@@ -4197,7 +4198,7 @@ function za(e) {
4197
4198
  I != M.current && (M.current = I, p(I));
4198
4199
  }, [p]), x = S.useCallback((I) => {
4199
4200
  I !== P.current && (P.current = I, g(I));
4200
- }, [g]), w = c || m, y = a || b, M = S.useRef(null), P = S.useRef(null), E = S.useRef(u), D = qn(s), z = qn(r), k = S.useCallback(() => {
4201
+ }, [g]), w = c || m, y = i || b, M = S.useRef(null), P = S.useRef(null), E = S.useRef(u), D = qn(s), z = qn(r), k = S.useCallback(() => {
4201
4202
  if (!M.current || !P.current)
4202
4203
  return;
4203
4204
  const I = {
@@ -4205,7 +4206,7 @@ function za(e) {
4205
4206
  strategy: n,
4206
4207
  middleware: v
4207
4208
  };
4208
- z.current && (I.platform = z.current), Wa(M.current, P.current, I).then((re) => {
4209
+ z.current && (I.platform = z.current), Wi(M.current, P.current, I).then((re) => {
4209
4210
  const J = {
4210
4211
  ...re,
4211
4212
  isPositioned: !0
@@ -4248,7 +4249,7 @@ function za(e) {
4248
4249
  if (!B.floating)
4249
4250
  return I;
4250
4251
  const re = Xn(B.floating, u.x), J = Xn(B.floating, u.y);
4251
- return i ? {
4252
+ return a ? {
4252
4253
  ...I,
4253
4254
  transform: "translate(" + re + "px, " + J + "px)",
4254
4255
  ...Io(B.floating) >= 1.5 && {
@@ -4259,7 +4260,7 @@ function za(e) {
4259
4260
  left: re,
4260
4261
  top: J
4261
4262
  };
4262
- }, [n, i, B.floating, u.x, u.y]);
4263
+ }, [n, a, B.floating, u.x, u.y]);
4263
4264
  return S.useMemo(() => ({
4264
4265
  ...u,
4265
4266
  update: k,
@@ -4280,15 +4281,15 @@ function No(e) {
4280
4281
  if (!Array.isArray(r) || !r.length)
4281
4282
  return;
4282
4283
  const c = r[0];
4283
- let a, i;
4284
+ let i, a;
4284
4285
  if ("borderBoxSize" in c) {
4285
4286
  const s = c.borderBoxSize, d = Array.isArray(s) ? s[0] : s;
4286
- a = d.inlineSize, i = d.blockSize;
4287
+ i = d.inlineSize, a = d.blockSize;
4287
4288
  } else
4288
- a = e.offsetWidth, i = e.offsetHeight;
4289
+ i = e.offsetWidth, a = e.offsetHeight;
4289
4290
  n({
4290
- width: a,
4291
- height: i
4291
+ width: i,
4292
+ height: a
4292
4293
  });
4293
4294
  });
4294
4295
  return o.observe(e, {
@@ -4300,22 +4301,22 @@ function No(e) {
4300
4301
  e
4301
4302
  ]), t;
4302
4303
  }
4303
- const Do = "Popper", [ko, Lt] = Ne(Do), [Ua, Fo] = ko(Do), Ka = (e) => {
4304
+ const Do = "Popper", [ko, Lt] = Ne(Do), [Ui, Fo] = ko(Do), Ki = (e) => {
4304
4305
  const { __scopePopper: t, children: n } = e, [o, r] = H(null);
4305
- return /* @__PURE__ */ $(Ua, {
4306
+ return /* @__PURE__ */ $(Ui, {
4306
4307
  scope: t,
4307
4308
  anchor: o,
4308
4309
  onAnchorChange: r
4309
4310
  }, n);
4310
- }, Va = "PopperAnchor", ja = /* @__PURE__ */ _((e, t) => {
4311
- const { __scopePopper: n, virtualRef: o, ...r } = e, c = Fo(Va, n), a = L(null), i = ce(t, a);
4311
+ }, Vi = "PopperAnchor", ji = /* @__PURE__ */ _((e, t) => {
4312
+ const { __scopePopper: n, virtualRef: o, ...r } = e, c = Fo(Vi, n), i = L(null), a = ce(t, i);
4312
4313
  return U(() => {
4313
- c.onAnchorChange((o == null ? void 0 : o.current) || a.current);
4314
+ c.onAnchorChange((o == null ? void 0 : o.current) || i.current);
4314
4315
  }), o ? null : /* @__PURE__ */ $(Q.div, C({}, r, {
4315
- ref: i
4316
+ ref: a
4316
4317
  }));
4317
- }), Lo = "PopperContent", [Ya, qd] = ko(Lo), Xa = /* @__PURE__ */ _((e, t) => {
4318
- var n, o, r, c, a, i, s, d;
4318
+ }), Lo = "PopperContent", [Yi, qd] = ko(Lo), Xi = /* @__PURE__ */ _((e, t) => {
4319
+ var n, o, r, c, i, a, s, d;
4319
4320
  const { __scopePopper: u, side: l = "bottom", sideOffset: v = 0, align: f = "center", alignOffset: m = 0, arrowPadding: p = 0, collisionBoundary: b = [], collisionPadding: g = 0, sticky: h = "partial", hideWhenDetached: x = !1, avoidCollisions: w = !0, onPlaced: y, ...M } = e, P = Fo(Lo, u), [E, D] = H(null), z = ce(
4320
4321
  t,
4321
4322
  (se) => D(se)
@@ -4329,58 +4330,58 @@ const Do = "Popper", [ko, Lt] = Ne(Do), [Ua, Fo] = ko(Do), Ka = (e) => {
4329
4330
  b
4330
4331
  ], R = J.length > 0, j = {
4331
4332
  padding: re,
4332
- boundary: J.filter(qa),
4333
+ boundary: J.filter(qi),
4333
4334
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
4334
4335
  altBoundary: R
4335
- }, { refs: oe, floatingStyles: ae, placement: ee, isPositioned: ie, middlewareData: de } = za({
4336
+ }, { refs: oe, floatingStyles: ie, placement: ee, isPositioned: ae, middlewareData: de } = zi({
4336
4337
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
4337
4338
  strategy: "fixed",
4338
4339
  placement: I,
4339
- whileElementsMounted: Ga,
4340
+ whileElementsMounted: Gi,
4340
4341
  elements: {
4341
4342
  reference: P.anchor
4342
4343
  },
4343
4344
  middleware: [
4344
- $a({
4345
+ $i({
4345
4346
  mainAxis: v + F,
4346
4347
  alignmentAxis: m
4347
4348
  }),
4348
- w && xa({
4349
+ w && xi({
4349
4350
  mainAxis: !0,
4350
4351
  crossAxis: !1,
4351
- limiter: h === "partial" ? wa() : void 0,
4352
+ limiter: h === "partial" ? wi() : void 0,
4352
4353
  ...j
4353
4354
  }),
4354
- w && ga({
4355
+ w && gi({
4355
4356
  ...j
4356
4357
  }),
4357
- ya({
4358
+ yi({
4358
4359
  ...j,
4359
4360
  apply: ({ elements: se, rects: tt, availableWidth: nt, availableHeight: ot }) => {
4360
4361
  const { width: Zr, height: Qr } = tt.reference, ft = se.floating.style;
4361
4362
  ft.setProperty("--radix-popper-available-width", `${nt}px`), ft.setProperty("--radix-popper-available-height", `${ot}px`), ft.setProperty("--radix-popper-anchor-width", `${Zr}px`), ft.setProperty("--radix-popper-anchor-height", `${Qr}px`);
4362
4363
  }
4363
4364
  }),
4364
- k && Ha({
4365
+ k && Hi({
4365
4366
  element: k,
4366
4367
  padding: p
4367
4368
  }),
4368
- Za({
4369
+ Zi({
4369
4370
  arrowWidth: B,
4370
4371
  arrowHeight: F
4371
4372
  }),
4372
- x && ha({
4373
+ x && hi({
4373
4374
  strategy: "referenceHidden"
4374
4375
  })
4375
4376
  ]
4376
4377
  }), [ue, O] = Bo(ee), V = ve(y);
4377
4378
  $e(() => {
4378
- ie && (V == null || V());
4379
+ ae && (V == null || V());
4379
4380
  }, [
4380
- ie,
4381
+ ae,
4381
4382
  V
4382
4383
  ]);
4383
- const te = (r = de.arrow) === null || r === void 0 ? void 0 : r.x, Y = (c = de.arrow) === null || c === void 0 ? void 0 : c.y, X = ((a = de.arrow) === null || a === void 0 ? void 0 : a.centerOffset) !== 0, [q, fe] = H();
4384
+ const te = (r = de.arrow) === null || r === void 0 ? void 0 : r.x, Y = (c = de.arrow) === null || c === void 0 ? void 0 : c.y, X = ((i = de.arrow) === null || i === void 0 ? void 0 : i.centerOffset) !== 0, [q, fe] = H();
4384
4385
  return $e(() => {
4385
4386
  E && fe(window.getComputedStyle(E).zIndex);
4386
4387
  }, [
@@ -4389,18 +4390,18 @@ const Do = "Popper", [ko, Lt] = Ne(Do), [Ua, Fo] = ko(Do), Ka = (e) => {
4389
4390
  ref: oe.setFloating,
4390
4391
  "data-radix-popper-content-wrapper": "",
4391
4392
  style: {
4392
- ...ae,
4393
- transform: ie ? ae.transform : "translate(0, -200%)",
4393
+ ...ie,
4394
+ transform: ae ? ie.transform : "translate(0, -200%)",
4394
4395
  // keep off the page when measuring
4395
4396
  minWidth: "max-content",
4396
4397
  zIndex: q,
4397
4398
  "--radix-popper-transform-origin": [
4398
- (i = de.transformOrigin) === null || i === void 0 ? void 0 : i.x,
4399
+ (a = de.transformOrigin) === null || a === void 0 ? void 0 : a.x,
4399
4400
  (s = de.transformOrigin) === null || s === void 0 ? void 0 : s.y
4400
4401
  ].join(" ")
4401
4402
  },
4402
4403
  dir: e.dir
4403
- }, /* @__PURE__ */ $(Ya, {
4404
+ }, /* @__PURE__ */ $(Yi, {
4404
4405
  scope: u,
4405
4406
  placedSide: ue,
4406
4407
  onArrowChange: T,
@@ -4416,25 +4417,25 @@ const Do = "Popper", [ko, Lt] = Ne(Do), [Ua, Fo] = ko(Do), Ka = (e) => {
4416
4417
  ...M.style,
4417
4418
  // if the PopperContent hasn't been placed yet (not all measurements done)
4418
4419
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
4419
- animation: ie ? void 0 : "none",
4420
+ animation: ae ? void 0 : "none",
4420
4421
  // hide the content if using the hide middleware and should be hidden
4421
4422
  opacity: (d = de.hide) !== null && d !== void 0 && d.referenceHidden ? 0 : void 0
4422
4423
  }
4423
4424
  }))));
4424
4425
  });
4425
- function qa(e) {
4426
+ function qi(e) {
4426
4427
  return e !== null;
4427
4428
  }
4428
- const Za = (e) => ({
4429
+ const Zi = (e) => ({
4429
4430
  name: "transformOrigin",
4430
4431
  options: e,
4431
4432
  fn(t) {
4432
- var n, o, r, c, a;
4433
- const { placement: i, rects: s, middlewareData: d } = t, l = ((n = d.arrow) === null || n === void 0 ? void 0 : n.centerOffset) !== 0, v = l ? 0 : e.arrowWidth, f = l ? 0 : e.arrowHeight, [m, p] = Bo(i), b = {
4433
+ var n, o, r, c, i;
4434
+ const { placement: a, rects: s, middlewareData: d } = t, l = ((n = d.arrow) === null || n === void 0 ? void 0 : n.centerOffset) !== 0, v = l ? 0 : e.arrowWidth, f = l ? 0 : e.arrowHeight, [m, p] = Bo(a), b = {
4434
4435
  start: "0%",
4435
4436
  center: "50%",
4436
4437
  end: "100%"
4437
- }[p], g = ((o = (r = d.arrow) === null || r === void 0 ? void 0 : r.x) !== null && o !== void 0 ? o : 0) + v / 2, h = ((c = (a = d.arrow) === null || a === void 0 ? void 0 : a.y) !== null && c !== void 0 ? c : 0) + f / 2;
4438
+ }[p], g = ((o = (r = d.arrow) === null || r === void 0 ? void 0 : r.x) !== null && o !== void 0 ? o : 0) + v / 2, h = ((c = (i = d.arrow) === null || i === void 0 ? void 0 : i.y) !== null && c !== void 0 ? c : 0) + f / 2;
4438
4439
  let x = "", w = "";
4439
4440
  return m === "bottom" ? (x = l ? b : `${g}px`, w = `${-f}px`) : m === "top" ? (x = l ? b : `${g}px`, w = `${s.floating.height + f}px`) : m === "right" ? (x = `${-f}px`, w = l ? b : `${h}px`) : m === "left" && (x = `${s.floating.width + f}px`, w = l ? b : `${h}px`), {
4440
4441
  data: {
@@ -4451,21 +4452,21 @@ function Bo(e) {
4451
4452
  n
4452
4453
  ];
4453
4454
  }
4454
- const yn = Ka, Go = ja, Wo = Xa, Ho = /* @__PURE__ */ _((e, t) => {
4455
+ const yn = Ki, Go = ji, Wo = Xi, Ho = /* @__PURE__ */ _((e, t) => {
4455
4456
  var n;
4456
4457
  const { container: o = globalThis == null || (n = globalThis.document) === null || n === void 0 ? void 0 : n.body, ...r } = e;
4457
4458
  return o ? /* @__PURE__ */ tc.createPortal(/* @__PURE__ */ $(Q.div, C({}, r, {
4458
4459
  ref: t
4459
4460
  })), o) : null;
4460
4461
  });
4461
- function Qa(e, t) {
4462
+ function Qi(e, t) {
4462
4463
  return Jr((n, o) => {
4463
4464
  const r = t[n][o];
4464
4465
  return r ?? n;
4465
4466
  }, e);
4466
4467
  }
4467
4468
  const Je = (e) => {
4468
- const { present: t, children: n } = e, o = Ja(t), r = typeof n == "function" ? n({
4469
+ const { present: t, children: n } = e, o = Ji(t), r = typeof n == "function" ? n({
4469
4470
  present: o.isPresent
4470
4471
  }) : Ue.only(n), c = ce(o.ref, r.ref);
4471
4472
  return typeof n == "function" || o.isPresent ? /* @__PURE__ */ pn(r, {
@@ -4473,8 +4474,8 @@ const Je = (e) => {
4473
4474
  }) : null;
4474
4475
  };
4475
4476
  Je.displayName = "Presence";
4476
- function Ja(e) {
4477
- const [t, n] = H(), o = L({}), r = L(e), c = L("none"), a = e ? "mounted" : "unmounted", [i, s] = Qa(a, {
4477
+ function Ji(e) {
4478
+ const [t, n] = H(), o = L({}), r = L(e), c = L("none"), i = e ? "mounted" : "unmounted", [a, s] = Qi(i, {
4478
4479
  mounted: {
4479
4480
  UNMOUNT: "unmounted",
4480
4481
  ANIMATION_OUT: "unmountSuspended"
@@ -4489,9 +4490,9 @@ function Ja(e) {
4489
4490
  });
4490
4491
  return U(() => {
4491
4492
  const d = vt(o.current);
4492
- c.current = i === "mounted" ? d : "none";
4493
+ c.current = a === "mounted" ? d : "none";
4493
4494
  }, [
4494
- i
4495
+ a
4495
4496
  ]), $e(() => {
4496
4497
  const d = o.current, u = r.current;
4497
4498
  if (u !== e) {
@@ -4505,7 +4506,7 @@ function Ja(e) {
4505
4506
  if (t) {
4506
4507
  const d = (l) => {
4507
4508
  const f = vt(o.current).includes(l.animationName);
4508
- l.target === t && f && ao(
4509
+ l.target === t && f && io(
4509
4510
  () => s("ANIMATION_END")
4510
4511
  );
4511
4512
  }, u = (l) => {
@@ -4523,7 +4524,7 @@ function Ja(e) {
4523
4524
  isPresent: [
4524
4525
  "mounted",
4525
4526
  "unmountSuspended"
4526
- ].includes(i),
4527
+ ].includes(a),
4527
4528
  ref: Z((d) => {
4528
4529
  d && (o.current = getComputedStyle(d)), n(d);
4529
4530
  }, [])
@@ -4532,21 +4533,21 @@ function Ja(e) {
4532
4533
  function vt(e) {
4533
4534
  return (e == null ? void 0 : e.animationName) || "none";
4534
4535
  }
4535
- const qt = "rovingFocusGroup.onEntryFocus", ei = {
4536
+ const qt = "rovingFocusGroup.onEntryFocus", ea = {
4536
4537
  bubbles: !1,
4537
4538
  cancelable: !0
4538
- }, Cn = "RovingFocusGroup", [an, zo, ti] = vn(Cn), [ni, Bt] = Ne(Cn, [
4539
- ti
4540
- ]), [oi, ri] = ni(Cn), ci = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(an.Provider, {
4539
+ }, Cn = "RovingFocusGroup", [an, zo, ta] = vn(Cn), [na, Bt] = Ne(Cn, [
4540
+ ta
4541
+ ]), [oa, ra] = na(Cn), ca = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(an.Provider, {
4541
4542
  scope: e.__scopeRovingFocusGroup
4542
4543
  }, /* @__PURE__ */ $(an.Slot, {
4543
4544
  scope: e.__scopeRovingFocusGroup
4544
- }, /* @__PURE__ */ $(ai, C({}, e, {
4545
+ }, /* @__PURE__ */ $(ia, C({}, e, {
4545
4546
  ref: t
4546
- }))))), ai = /* @__PURE__ */ _((e, t) => {
4547
- const { __scopeRovingFocusGroup: n, orientation: o, loop: r = !1, dir: c, currentTabStopId: a, defaultCurrentTabStopId: i, onCurrentTabStopIdChange: s, onEntryFocus: d, ...u } = e, l = L(null), v = ce(t, l), f = Dt(c), [m = null, p] = je({
4548
- prop: a,
4549
- defaultProp: i,
4547
+ }))))), ia = /* @__PURE__ */ _((e, t) => {
4548
+ const { __scopeRovingFocusGroup: n, orientation: o, loop: r = !1, dir: c, currentTabStopId: i, defaultCurrentTabStopId: a, onCurrentTabStopIdChange: s, onEntryFocus: d, ...u } = e, l = L(null), v = ce(t, l), f = Dt(c), [m = null, p] = je({
4549
+ prop: i,
4550
+ defaultProp: a,
4550
4551
  onChange: s
4551
4552
  }), [b, g] = H(!1), h = ve(d), x = zo(n), w = L(!1), [y, M] = H(0);
4552
4553
  return U(() => {
@@ -4555,7 +4556,7 @@ const qt = "rovingFocusGroup.onEntryFocus", ei = {
4555
4556
  return P.addEventListener(qt, h), () => P.removeEventListener(qt, h);
4556
4557
  }, [
4557
4558
  h
4558
- ]), /* @__PURE__ */ $(oi, {
4559
+ ]), /* @__PURE__ */ $(oa, {
4559
4560
  scope: n,
4560
4561
  orientation: o,
4561
4562
  dir: f,
@@ -4598,7 +4599,7 @@ const qt = "rovingFocusGroup.onEntryFocus", ei = {
4598
4599
  onFocus: A(e.onFocus, (P) => {
4599
4600
  const E = !w.current;
4600
4601
  if (P.target === P.currentTarget && E && !b) {
4601
- const D = new CustomEvent(qt, ei);
4602
+ const D = new CustomEvent(qt, ea);
4602
4603
  if (P.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
4603
4604
  const z = x().filter(
4604
4605
  (F) => F.focusable
@@ -4623,8 +4624,8 @@ const qt = "rovingFocusGroup.onEntryFocus", ei = {
4623
4624
  () => g(!1)
4624
4625
  )
4625
4626
  })));
4626
- }), ii = "RovingFocusGroupItem", si = /* @__PURE__ */ _((e, t) => {
4627
- const { __scopeRovingFocusGroup: n, focusable: o = !0, active: r = !1, tabStopId: c, ...a } = e, i = Te(), s = c || i, d = ri(ii, n), u = d.currentTabStopId === s, l = zo(n), { onFocusableItemAdd: v, onFocusableItemRemove: f } = d;
4627
+ }), aa = "RovingFocusGroupItem", sa = /* @__PURE__ */ _((e, t) => {
4628
+ const { __scopeRovingFocusGroup: n, focusable: o = !0, active: r = !1, tabStopId: c, ...i } = e, a = Te(), s = c || a, d = ra(aa, n), u = d.currentTabStopId === s, l = zo(n), { onFocusableItemAdd: v, onFocusableItemRemove: f } = d;
4628
4629
  return U(() => {
4629
4630
  if (o)
4630
4631
  return v(), () => f();
@@ -4640,7 +4641,7 @@ const qt = "rovingFocusGroup.onEntryFocus", ei = {
4640
4641
  }, /* @__PURE__ */ $(Q.span, C({
4641
4642
  tabIndex: u ? 0 : -1,
4642
4643
  "data-orientation": d.orientation
4643
- }, a, {
4644
+ }, i, {
4644
4645
  ref: t,
4645
4646
  onMouseDown: A(e.onMouseDown, (m) => {
4646
4647
  o ? d.onItemFocus(s) : m.preventDefault();
@@ -4656,7 +4657,7 @@ const qt = "rovingFocusGroup.onEntryFocus", ei = {
4656
4657
  }
4657
4658
  if (m.target !== m.currentTarget)
4658
4659
  return;
4659
- const p = ui(m, d.orientation, d.dir);
4660
+ const p = ua(m, d.orientation, d.dir);
4660
4661
  if (p !== void 0) {
4661
4662
  m.preventDefault();
4662
4663
  let g = l().filter(
@@ -4669,7 +4670,7 @@ const qt = "rovingFocusGroup.onEntryFocus", ei = {
4669
4670
  else if (p === "prev" || p === "next") {
4670
4671
  p === "prev" && g.reverse();
4671
4672
  const h = g.indexOf(m.currentTarget);
4672
- g = d.loop ? fi(g, h + 1) : g.slice(h + 1);
4673
+ g = d.loop ? fa(g, h + 1) : g.slice(h + 1);
4673
4674
  }
4674
4675
  setTimeout(
4675
4676
  () => Uo(g)
@@ -4677,7 +4678,7 @@ const qt = "rovingFocusGroup.onEntryFocus", ei = {
4677
4678
  }
4678
4679
  })
4679
4680
  })));
4680
- }), li = {
4681
+ }), la = {
4681
4682
  ArrowLeft: "prev",
4682
4683
  ArrowUp: "prev",
4683
4684
  ArrowRight: "next",
@@ -4687,11 +4688,11 @@ const qt = "rovingFocusGroup.onEntryFocus", ei = {
4687
4688
  PageDown: "last",
4688
4689
  End: "last"
4689
4690
  };
4690
- function di(e, t) {
4691
+ function da(e, t) {
4691
4692
  return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
4692
4693
  }
4693
- function ui(e, t, n) {
4694
- const o = di(e.key, n);
4694
+ function ua(e, t, n) {
4695
+ const o = da(e.key, n);
4695
4696
  if (!(t === "vertical" && [
4696
4697
  "ArrowLeft",
4697
4698
  "ArrowRight"
@@ -4699,7 +4700,7 @@ function ui(e, t, n) {
4699
4700
  "ArrowUp",
4700
4701
  "ArrowDown"
4701
4702
  ].includes(o)))
4702
- return li[o];
4703
+ return la[o];
4703
4704
  }
4704
4705
  function Uo(e) {
4705
4706
  const t = document.activeElement;
@@ -4707,20 +4708,20 @@ function Uo(e) {
4707
4708
  if (n === t || (n.focus(), document.activeElement !== t))
4708
4709
  return;
4709
4710
  }
4710
- function fi(e, t) {
4711
+ function fa(e, t) {
4711
4712
  return e.map(
4712
4713
  (n, o) => e[(t + o) % e.length]
4713
4714
  );
4714
4715
  }
4715
- const Ko = ci, Vo = si;
4716
- var pi = function(e) {
4716
+ const Ko = ca, Vo = sa;
4717
+ var pa = function(e) {
4717
4718
  if (typeof document > "u")
4718
4719
  return null;
4719
4720
  var t = Array.isArray(e) ? e[0] : e;
4720
4721
  return t.ownerDocument.body;
4721
4722
  }, We = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), ht = {}, Zt = 0, jo = function(e) {
4722
4723
  return e && (e.host || jo(e.parentNode));
4723
- }, mi = function(e, t) {
4724
+ }, ma = function(e, t) {
4724
4725
  return t.map(function(n) {
4725
4726
  if (e.contains(n))
4726
4727
  return n;
@@ -4729,33 +4730,33 @@ var pi = function(e) {
4729
4730
  }).filter(function(n) {
4730
4731
  return !!n;
4731
4732
  });
4732
- }, vi = function(e, t, n, o) {
4733
- var r = mi(t, Array.isArray(e) ? e : [e]);
4733
+ }, va = function(e, t, n, o) {
4734
+ var r = ma(t, Array.isArray(e) ? e : [e]);
4734
4735
  ht[n] || (ht[n] = /* @__PURE__ */ new WeakMap());
4735
- var c = ht[n], a = [], i = /* @__PURE__ */ new Set(), s = new Set(r), d = function(l) {
4736
- !l || i.has(l) || (i.add(l), d(l.parentNode));
4736
+ var c = ht[n], i = [], a = /* @__PURE__ */ new Set(), s = new Set(r), d = function(l) {
4737
+ !l || a.has(l) || (a.add(l), d(l.parentNode));
4737
4738
  };
4738
4739
  r.forEach(d);
4739
4740
  var u = function(l) {
4740
4741
  !l || s.has(l) || Array.prototype.forEach.call(l.children, function(v) {
4741
- if (i.has(v))
4742
+ if (a.has(v))
4742
4743
  u(v);
4743
4744
  else {
4744
4745
  var f = v.getAttribute(o), m = f !== null && f !== "false", p = (We.get(v) || 0) + 1, b = (c.get(v) || 0) + 1;
4745
- We.set(v, p), c.set(v, b), a.push(v), p === 1 && m && gt.set(v, !0), b === 1 && v.setAttribute(n, "true"), m || v.setAttribute(o, "true");
4746
+ We.set(v, p), c.set(v, b), i.push(v), p === 1 && m && gt.set(v, !0), b === 1 && v.setAttribute(n, "true"), m || v.setAttribute(o, "true");
4746
4747
  }
4747
4748
  });
4748
4749
  };
4749
- return u(t), i.clear(), Zt++, function() {
4750
- a.forEach(function(l) {
4750
+ return u(t), a.clear(), Zt++, function() {
4751
+ i.forEach(function(l) {
4751
4752
  var v = We.get(l) - 1, f = c.get(l) - 1;
4752
4753
  We.set(l, v), c.set(l, f), v || (gt.has(l) || l.removeAttribute(o), gt.delete(l)), f || l.removeAttribute(n);
4753
4754
  }), Zt--, Zt || (We = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), ht = {});
4754
4755
  };
4755
4756
  }, Yo = function(e, t, n) {
4756
4757
  n === void 0 && (n = "data-aria-hidden");
4757
- var o = Array.from(Array.isArray(e) ? e : [e]), r = t || pi(e);
4758
- return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live]"))), vi(o, r, n, "aria-hidden")) : function() {
4758
+ var o = Array.from(Array.isArray(e) ? e : [e]), r = t || pa(e);
4759
+ return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live]"))), va(o, r, n, "aria-hidden")) : function() {
4759
4760
  return null;
4760
4761
  };
4761
4762
  }, we = function() {
@@ -4777,17 +4778,17 @@ function Xo(e, t) {
4777
4778
  t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
4778
4779
  return n;
4779
4780
  }
4780
- function gi(e, t, n) {
4781
+ function ga(e, t, n) {
4781
4782
  if (n || arguments.length === 2)
4782
4783
  for (var o = 0, r = t.length, c; o < r; o++)
4783
4784
  (c || !(o in t)) && (c || (c = Array.prototype.slice.call(t, 0, o)), c[o] = t[o]);
4784
4785
  return e.concat(c || Array.prototype.slice.call(t));
4785
4786
  }
4786
- var Ct = "right-scroll-bar-position", St = "width-before-scroll-bar", hi = "with-scroll-bars-hidden", bi = "--removed-body-scroll-bar-size";
4787
- function $i(e, t) {
4787
+ var Ct = "right-scroll-bar-position", St = "width-before-scroll-bar", ha = "with-scroll-bars-hidden", ba = "--removed-body-scroll-bar-size";
4788
+ function $a(e, t) {
4788
4789
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
4789
4790
  }
4790
- function xi(e, t) {
4791
+ function xa(e, t) {
4791
4792
  var n = H(function() {
4792
4793
  return {
4793
4794
  // value
@@ -4808,18 +4809,18 @@ function xi(e, t) {
4808
4809
  })[0];
4809
4810
  return n.callback = t, n.facade;
4810
4811
  }
4811
- function wi(e, t) {
4812
- return xi(t || null, function(n) {
4812
+ function wa(e, t) {
4813
+ return xa(t || null, function(n) {
4813
4814
  return e.forEach(function(o) {
4814
- return $i(o, n);
4815
+ return $a(o, n);
4815
4816
  });
4816
4817
  });
4817
4818
  }
4818
- function yi(e) {
4819
+ function ya(e) {
4819
4820
  return e;
4820
4821
  }
4821
- function Ci(e, t) {
4822
- t === void 0 && (t = yi);
4822
+ function Ca(e, t) {
4823
+ t === void 0 && (t = ya);
4823
4824
  var n = [], o = !1, r = {
4824
4825
  read: function() {
4825
4826
  if (o)
@@ -4827,21 +4828,21 @@ function Ci(e, t) {
4827
4828
  return n.length ? n[n.length - 1] : e;
4828
4829
  },
4829
4830
  useMedium: function(c) {
4830
- var a = t(c, o);
4831
- return n.push(a), function() {
4832
- n = n.filter(function(i) {
4833
- return i !== a;
4831
+ var i = t(c, o);
4832
+ return n.push(i), function() {
4833
+ n = n.filter(function(a) {
4834
+ return a !== i;
4834
4835
  });
4835
4836
  };
4836
4837
  },
4837
4838
  assignSyncMedium: function(c) {
4838
4839
  for (o = !0; n.length; ) {
4839
- var a = n;
4840
- n = [], a.forEach(c);
4840
+ var i = n;
4841
+ n = [], i.forEach(c);
4841
4842
  }
4842
4843
  n = {
4843
- push: function(i) {
4844
- return c(i);
4844
+ push: function(a) {
4845
+ return c(a);
4845
4846
  },
4846
4847
  filter: function() {
4847
4848
  return n;
@@ -4850,32 +4851,32 @@ function Ci(e, t) {
4850
4851
  },
4851
4852
  assignMedium: function(c) {
4852
4853
  o = !0;
4853
- var a = [];
4854
+ var i = [];
4854
4855
  if (n.length) {
4855
- var i = n;
4856
- n = [], i.forEach(c), a = n;
4856
+ var a = n;
4857
+ n = [], a.forEach(c), i = n;
4857
4858
  }
4858
4859
  var s = function() {
4859
- var u = a;
4860
- a = [], u.forEach(c);
4860
+ var u = i;
4861
+ i = [], u.forEach(c);
4861
4862
  }, d = function() {
4862
4863
  return Promise.resolve().then(s);
4863
4864
  };
4864
4865
  d(), n = {
4865
4866
  push: function(u) {
4866
- a.push(u), d();
4867
+ i.push(u), d();
4867
4868
  },
4868
4869
  filter: function(u) {
4869
- return a = a.filter(u), n;
4870
+ return i = i.filter(u), n;
4870
4871
  }
4871
4872
  };
4872
4873
  }
4873
4874
  };
4874
4875
  return r;
4875
4876
  }
4876
- function Si(e) {
4877
+ function Sa(e) {
4877
4878
  e === void 0 && (e = {});
4878
- var t = Ci(null);
4879
+ var t = Ca(null);
4879
4880
  return t.options = we({ async: !0, ssr: !1 }, e), t;
4880
4881
  }
4881
4882
  var qo = function(e) {
@@ -4888,21 +4889,21 @@ var qo = function(e) {
4888
4889
  return S.createElement(o, we({}, n));
4889
4890
  };
4890
4891
  qo.isSideCarExport = !0;
4891
- function Pi(e, t) {
4892
+ function Pa(e, t) {
4892
4893
  return e.useMedium(t), qo;
4893
4894
  }
4894
- var Zo = Si(), Qt = function() {
4895
+ var Zo = Sa(), Qt = function() {
4895
4896
  }, Gt = S.forwardRef(function(e, t) {
4896
4897
  var n = S.useRef(null), o = S.useState({
4897
4898
  onScrollCapture: Qt,
4898
4899
  onWheelCapture: Qt,
4899
4900
  onTouchMoveCapture: Qt
4900
- }), r = o[0], c = o[1], a = e.forwardProps, i = e.children, s = e.className, d = e.removeScrollBar, u = e.enabled, l = e.shards, v = e.sideCar, f = e.noIsolation, m = e.inert, p = e.allowPinchZoom, b = e.as, g = b === void 0 ? "div" : b, h = Xo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), x = v, w = wi([n, t]), y = we(we({}, h), r);
4901
+ }), r = o[0], c = o[1], i = e.forwardProps, a = e.children, s = e.className, d = e.removeScrollBar, u = e.enabled, l = e.shards, v = e.sideCar, f = e.noIsolation, m = e.inert, p = e.allowPinchZoom, b = e.as, g = b === void 0 ? "div" : b, h = Xo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), x = v, w = wa([n, t]), y = we(we({}, h), r);
4901
4902
  return S.createElement(
4902
4903
  S.Fragment,
4903
4904
  null,
4904
4905
  u && S.createElement(x, { sideCar: Zo, removeScrollBar: d, shards: l, noIsolation: f, inert: m, setCallbacks: c, allowPinchZoom: !!p, lockRef: n }),
4905
- a ? S.cloneElement(S.Children.only(i), we(we({}, y), { ref: w })) : S.createElement(g, we({}, y, { className: s, ref: w }), i)
4906
+ i ? S.cloneElement(S.Children.only(a), we(we({}, y), { ref: w })) : S.createElement(g, we({}, y, { className: s, ref: w }), a)
4906
4907
  );
4907
4908
  });
4908
4909
  Gt.defaultProps = {
@@ -4914,39 +4915,39 @@ Gt.classNames = {
4914
4915
  fullWidth: St,
4915
4916
  zeroRight: Ct
4916
4917
  };
4917
- var Zn, Ei = function() {
4918
+ var Zn, Ea = function() {
4918
4919
  if (Zn)
4919
4920
  return Zn;
4920
4921
  if (typeof __webpack_nonce__ < "u")
4921
4922
  return __webpack_nonce__;
4922
4923
  };
4923
- function _i() {
4924
+ function _a() {
4924
4925
  if (!document)
4925
4926
  return null;
4926
4927
  var e = document.createElement("style");
4927
4928
  e.type = "text/css";
4928
- var t = Ei();
4929
+ var t = Ea();
4929
4930
  return t && e.setAttribute("nonce", t), e;
4930
4931
  }
4931
- function Mi(e, t) {
4932
+ function Ma(e, t) {
4932
4933
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
4933
4934
  }
4934
- function Ri(e) {
4935
+ function Ra(e) {
4935
4936
  var t = document.head || document.getElementsByTagName("head")[0];
4936
4937
  t.appendChild(e);
4937
4938
  }
4938
- var Ti = function() {
4939
+ var Ta = function() {
4939
4940
  var e = 0, t = null;
4940
4941
  return {
4941
4942
  add: function(n) {
4942
- e == 0 && (t = _i()) && (Mi(t, n), Ri(t)), e++;
4943
+ e == 0 && (t = _a()) && (Ma(t, n), Ra(t)), e++;
4943
4944
  },
4944
4945
  remove: function() {
4945
4946
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
4946
4947
  }
4947
4948
  };
4948
- }, Oi = function() {
4949
- var e = Ti();
4949
+ }, Oa = function() {
4950
+ var e = Ta();
4950
4951
  return function(t, n) {
4951
4952
  S.useEffect(function() {
4952
4953
  return e.add(t), function() {
@@ -4955,37 +4956,37 @@ var Ti = function() {
4955
4956
  }, [t && n]);
4956
4957
  };
4957
4958
  }, Qo = function() {
4958
- var e = Oi(), t = function(n) {
4959
+ var e = Oa(), t = function(n) {
4959
4960
  var o = n.styles, r = n.dynamic;
4960
4961
  return e(o, r), null;
4961
4962
  };
4962
4963
  return t;
4963
- }, Ai = {
4964
+ }, Aa = {
4964
4965
  left: 0,
4965
4966
  top: 0,
4966
4967
  right: 0,
4967
4968
  gap: 0
4968
4969
  }, Jt = function(e) {
4969
4970
  return parseInt(e || "", 10) || 0;
4970
- }, Ii = function(e) {
4971
+ }, Ia = function(e) {
4971
4972
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], o = t[e === "padding" ? "paddingTop" : "marginTop"], r = t[e === "padding" ? "paddingRight" : "marginRight"];
4972
4973
  return [Jt(n), Jt(o), Jt(r)];
4973
- }, Ni = function(e) {
4974
+ }, Na = function(e) {
4974
4975
  if (e === void 0 && (e = "margin"), typeof window > "u")
4975
- return Ai;
4976
- var t = Ii(e), n = document.documentElement.clientWidth, o = window.innerWidth;
4976
+ return Aa;
4977
+ var t = Ia(e), n = document.documentElement.clientWidth, o = window.innerWidth;
4977
4978
  return {
4978
4979
  left: t[0],
4979
4980
  top: t[1],
4980
4981
  right: t[2],
4981
4982
  gap: Math.max(0, o - n + t[2] - t[0])
4982
4983
  };
4983
- }, Di = Qo(), ki = function(e, t, n, o) {
4984
- var r = e.left, c = e.top, a = e.right, i = e.gap;
4984
+ }, Da = Qo(), ka = function(e, t, n, o) {
4985
+ var r = e.left, c = e.top, i = e.right, a = e.gap;
4985
4986
  return n === void 0 && (n = "margin"), `
4986
- .`.concat(hi, ` {
4987
+ .`.concat(ha, ` {
4987
4988
  overflow: hidden `).concat(o, `;
4988
- padding-right: `).concat(i, "px ").concat(o, `;
4989
+ padding-right: `).concat(a, "px ").concat(o, `;
4989
4990
  }
4990
4991
  body {
4991
4992
  overflow: hidden `).concat(o, `;
@@ -4995,21 +4996,21 @@ var Ti = function() {
4995
4996
  n === "margin" && `
4996
4997
  padding-left: `.concat(r, `px;
4997
4998
  padding-top: `).concat(c, `px;
4998
- padding-right: `).concat(a, `px;
4999
+ padding-right: `).concat(i, `px;
4999
5000
  margin-left:0;
5000
5001
  margin-top:0;
5001
- margin-right: `).concat(i, "px ").concat(o, `;
5002
+ margin-right: `).concat(a, "px ").concat(o, `;
5002
5003
  `),
5003
- n === "padding" && "padding-right: ".concat(i, "px ").concat(o, ";")
5004
+ n === "padding" && "padding-right: ".concat(a, "px ").concat(o, ";")
5004
5005
  ].filter(Boolean).join(""), `
5005
5006
  }
5006
5007
 
5007
5008
  .`).concat(Ct, ` {
5008
- right: `).concat(i, "px ").concat(o, `;
5009
+ right: `).concat(a, "px ").concat(o, `;
5009
5010
  }
5010
5011
 
5011
5012
  .`).concat(St, ` {
5012
- margin-right: `).concat(i, "px ").concat(o, `;
5013
+ margin-right: `).concat(a, "px ").concat(o, `;
5013
5014
  }
5014
5015
 
5015
5016
  .`).concat(Ct, " .").concat(Ct, ` {
@@ -5021,14 +5022,14 @@ var Ti = function() {
5021
5022
  }
5022
5023
 
5023
5024
  body {
5024
- `).concat(bi, ": ").concat(i, `px;
5025
+ `).concat(ba, ": ").concat(a, `px;
5025
5026
  }
5026
5027
  `);
5027
- }, Fi = function(e) {
5028
+ }, Fa = function(e) {
5028
5029
  var t = e.noRelative, n = e.noImportant, o = e.gapMode, r = o === void 0 ? "margin" : o, c = S.useMemo(function() {
5029
- return Ni(r);
5030
+ return Na(r);
5030
5031
  }, [r]);
5031
- return S.createElement(Di, { styles: ki(c, !t, r, n ? "" : "!important") });
5032
+ return S.createElement(Da, { styles: ka(c, !t, r, n ? "" : "!important") });
5032
5033
  }, sn = !1;
5033
5034
  if (typeof window < "u")
5034
5035
  try {
@@ -5041,18 +5042,18 @@ if (typeof window < "u")
5041
5042
  } catch {
5042
5043
  sn = !1;
5043
5044
  }
5044
- var He = sn ? { passive: !1 } : !1, Li = function(e) {
5045
+ var He = sn ? { passive: !1 } : !1, La = function(e) {
5045
5046
  return e.tagName === "TEXTAREA";
5046
5047
  }, Jo = function(e, t) {
5047
5048
  var n = window.getComputedStyle(e);
5048
5049
  return (
5049
5050
  // not-not-scrollable
5050
5051
  n[t] !== "hidden" && // contains scroll inside self
5051
- !(n.overflowY === n.overflowX && !Li(e) && n[t] === "visible")
5052
+ !(n.overflowY === n.overflowX && !La(e) && n[t] === "visible")
5052
5053
  );
5053
- }, Bi = function(e) {
5054
+ }, Ba = function(e) {
5054
5055
  return Jo(e, "overflowY");
5055
- }, Gi = function(e) {
5056
+ }, Ga = function(e) {
5056
5057
  return Jo(e, "overflowX");
5057
5058
  }, Qn = function(e, t) {
5058
5059
  var n = t;
@@ -5060,21 +5061,21 @@ var He = sn ? { passive: !1 } : !1, Li = function(e) {
5060
5061
  typeof ShadowRoot < "u" && n instanceof ShadowRoot && (n = n.host);
5061
5062
  var o = er(e, n);
5062
5063
  if (o) {
5063
- var r = tr(e, n), c = r[1], a = r[2];
5064
- if (c > a)
5064
+ var r = tr(e, n), c = r[1], i = r[2];
5065
+ if (c > i)
5065
5066
  return !0;
5066
5067
  }
5067
5068
  n = n.parentNode;
5068
5069
  } while (n && n !== document.body);
5069
5070
  return !1;
5070
- }, Wi = function(e) {
5071
+ }, Wa = function(e) {
5071
5072
  var t = e.scrollTop, n = e.scrollHeight, o = e.clientHeight;
5072
5073
  return [
5073
5074
  t,
5074
5075
  n,
5075
5076
  o
5076
5077
  ];
5077
- }, Hi = function(e) {
5078
+ }, Ha = function(e) {
5078
5079
  var t = e.scrollLeft, n = e.scrollWidth, o = e.clientWidth;
5079
5080
  return [
5080
5081
  t,
@@ -5082,46 +5083,46 @@ var He = sn ? { passive: !1 } : !1, Li = function(e) {
5082
5083
  o
5083
5084
  ];
5084
5085
  }, er = function(e, t) {
5085
- return e === "v" ? Bi(t) : Gi(t);
5086
+ return e === "v" ? Ba(t) : Ga(t);
5086
5087
  }, tr = function(e, t) {
5087
- return e === "v" ? Wi(t) : Hi(t);
5088
- }, zi = function(e, t) {
5088
+ return e === "v" ? Wa(t) : Ha(t);
5089
+ }, za = function(e, t) {
5089
5090
  return e === "h" && t === "rtl" ? -1 : 1;
5090
- }, Ui = function(e, t, n, o, r) {
5091
- var c = zi(e, window.getComputedStyle(t).direction), a = c * o, i = n.target, s = t.contains(i), d = !1, u = a > 0, l = 0, v = 0;
5091
+ }, Ua = function(e, t, n, o, r) {
5092
+ var c = za(e, window.getComputedStyle(t).direction), i = c * o, a = n.target, s = t.contains(a), d = !1, u = i > 0, l = 0, v = 0;
5092
5093
  do {
5093
- var f = tr(e, i), m = f[0], p = f[1], b = f[2], g = p - b - c * m;
5094
- (m || g) && er(e, i) && (l += g, v += m), i = i.parentNode;
5094
+ var f = tr(e, a), m = f[0], p = f[1], b = f[2], g = p - b - c * m;
5095
+ (m || g) && er(e, a) && (l += g, v += m), a = a.parentNode;
5095
5096
  } while (
5096
5097
  // portaled content
5097
- !s && i !== document.body || // self content
5098
- s && (t.contains(i) || t === i)
5098
+ !s && a !== document.body || // self content
5099
+ s && (t.contains(a) || t === a)
5099
5100
  );
5100
- return (u && (r && l === 0 || !r && a > l) || !u && (r && v === 0 || !r && -a > v)) && (d = !0), d;
5101
+ return (u && (r && l === 0 || !r && i > l) || !u && (r && v === 0 || !r && -i > v)) && (d = !0), d;
5101
5102
  }, $t = function(e) {
5102
5103
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
5103
5104
  }, Jn = function(e) {
5104
5105
  return [e.deltaX, e.deltaY];
5105
5106
  }, eo = function(e) {
5106
5107
  return e && "current" in e ? e.current : e;
5107
- }, Ki = function(e, t) {
5108
+ }, Ka = function(e, t) {
5108
5109
  return e[0] === t[0] && e[1] === t[1];
5109
- }, Vi = function(e) {
5110
+ }, Va = function(e) {
5110
5111
  return `
5111
5112
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
5112
5113
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
5113
5114
  `);
5114
- }, ji = 0, ze = [];
5115
- function Yi(e) {
5116
- var t = S.useRef([]), n = S.useRef([0, 0]), o = S.useRef(), r = S.useState(ji++)[0], c = S.useState(function() {
5115
+ }, ja = 0, ze = [];
5116
+ function Ya(e) {
5117
+ var t = S.useRef([]), n = S.useRef([0, 0]), o = S.useRef(), r = S.useState(ja++)[0], c = S.useState(function() {
5117
5118
  return Qo();
5118
- })[0], a = S.useRef(e);
5119
+ })[0], i = S.useRef(e);
5119
5120
  S.useEffect(function() {
5120
- a.current = e;
5121
+ i.current = e;
5121
5122
  }, [e]), S.useEffect(function() {
5122
5123
  if (e.inert) {
5123
5124
  document.body.classList.add("block-interactivity-".concat(r));
5124
- var p = gi([e.lockRef.current], (e.shards || []).map(eo), !0).filter(Boolean);
5125
+ var p = ga([e.lockRef.current], (e.shards || []).map(eo), !0).filter(Boolean);
5125
5126
  return p.forEach(function(b) {
5126
5127
  return b.classList.add("allow-interactivity-".concat(r));
5127
5128
  }), function() {
@@ -5131,9 +5132,9 @@ function Yi(e) {
5131
5132
  };
5132
5133
  }
5133
5134
  }, [e.inert, e.lockRef.current, e.shards]);
5134
- var i = S.useCallback(function(p, b) {
5135
+ var a = S.useCallback(function(p, b) {
5135
5136
  if ("touches" in p && p.touches.length === 2)
5136
- return !a.current.allowPinchZoom;
5137
+ return !i.current.allowPinchZoom;
5137
5138
  var g = $t(p), h = n.current, x = "deltaX" in p ? p.deltaX : h[0] - g[0], w = "deltaY" in p ? p.deltaY : h[1] - g[1], y, M = p.target, P = Math.abs(x) > Math.abs(w) ? "h" : "v";
5138
5139
  if ("touches" in p && P === "h" && M.type === "range")
5139
5140
  return !1;
@@ -5145,21 +5146,21 @@ function Yi(e) {
5145
5146
  if (!o.current && "changedTouches" in p && (x || w) && (o.current = y), !y)
5146
5147
  return !0;
5147
5148
  var D = o.current || y;
5148
- return Ui(D, b, p, D === "h" ? x : w, !0);
5149
+ return Ua(D, b, p, D === "h" ? x : w, !0);
5149
5150
  }, []), s = S.useCallback(function(p) {
5150
5151
  var b = p;
5151
5152
  if (!(!ze.length || ze[ze.length - 1] !== c)) {
5152
5153
  var g = "deltaY" in b ? Jn(b) : $t(b), h = t.current.filter(function(y) {
5153
- return y.name === b.type && y.target === b.target && Ki(y.delta, g);
5154
+ return y.name === b.type && y.target === b.target && Ka(y.delta, g);
5154
5155
  })[0];
5155
5156
  if (h && h.should) {
5156
5157
  b.cancelable && b.preventDefault();
5157
5158
  return;
5158
5159
  }
5159
5160
  if (!h) {
5160
- var x = (a.current.shards || []).map(eo).filter(Boolean).filter(function(y) {
5161
+ var x = (i.current.shards || []).map(eo).filter(Boolean).filter(function(y) {
5161
5162
  return y.contains(b.target);
5162
- }), w = x.length > 0 ? i(b, x[0]) : !a.current.noIsolation;
5163
+ }), w = x.length > 0 ? a(b, x[0]) : !i.current.noIsolation;
5163
5164
  w && b.cancelable && b.preventDefault();
5164
5165
  }
5165
5166
  }
@@ -5173,9 +5174,9 @@ function Yi(e) {
5173
5174
  }, []), u = S.useCallback(function(p) {
5174
5175
  n.current = $t(p), o.current = void 0;
5175
5176
  }, []), l = S.useCallback(function(p) {
5176
- d(p.type, Jn(p), p.target, i(p, e.lockRef.current));
5177
+ d(p.type, Jn(p), p.target, a(p, e.lockRef.current));
5177
5178
  }, []), v = S.useCallback(function(p) {
5178
- d(p.type, $t(p), p.target, i(p, e.lockRef.current));
5179
+ d(p.type, $t(p), p.target, a(p, e.lockRef.current));
5179
5180
  }, []);
5180
5181
  S.useEffect(function() {
5181
5182
  return ze.push(c), e.setCallbacks({
@@ -5192,19 +5193,19 @@ function Yi(e) {
5192
5193
  return S.createElement(
5193
5194
  S.Fragment,
5194
5195
  null,
5195
- m ? S.createElement(c, { styles: Vi(r) }) : null,
5196
- f ? S.createElement(Fi, { gapMode: "margin" }) : null
5196
+ m ? S.createElement(c, { styles: Va(r) }) : null,
5197
+ f ? S.createElement(Fa, { gapMode: "margin" }) : null
5197
5198
  );
5198
5199
  }
5199
- const Xi = Pi(Zo, Yi);
5200
+ const Xa = Pa(Zo, Ya);
5200
5201
  var nr = S.forwardRef(function(e, t) {
5201
- return S.createElement(Gt, we({}, e, { ref: t, sideCar: Xi }));
5202
+ return S.createElement(Gt, we({}, e, { ref: t, sideCar: Xa }));
5202
5203
  });
5203
5204
  nr.classNames = Gt.classNames;
5204
5205
  const or = nr, ln = [
5205
5206
  "Enter",
5206
5207
  " "
5207
- ], qi = [
5208
+ ], qa = [
5208
5209
  "ArrowDown",
5209
5210
  "PageUp",
5210
5211
  "Home"
@@ -5212,10 +5213,10 @@ const or = nr, ln = [
5212
5213
  "ArrowUp",
5213
5214
  "PageDown",
5214
5215
  "End"
5215
- ], Zi = [
5216
- ...qi,
5216
+ ], Za = [
5217
+ ...qa,
5217
5218
  ...rr
5218
- ], Qi = {
5219
+ ], Qa = {
5219
5220
  ltr: [
5220
5221
  ...ln,
5221
5222
  "ArrowRight"
@@ -5224,19 +5225,19 @@ const or = nr, ln = [
5224
5225
  ...ln,
5225
5226
  "ArrowLeft"
5226
5227
  ]
5227
- }, Ji = {
5228
+ }, Ja = {
5228
5229
  ltr: [
5229
5230
  "ArrowLeft"
5230
5231
  ],
5231
5232
  rtl: [
5232
5233
  "ArrowRight"
5233
5234
  ]
5234
- }, Wt = "Menu", [it, es, ts] = vn(Wt), [Be, cr] = Ne(Wt, [
5235
+ }, Wt = "Menu", [at, es, ts] = vn(Wt), [Be, cr] = Ne(Wt, [
5235
5236
  ts,
5236
5237
  Lt,
5237
5238
  Bt
5238
- ]), Ht = Lt(), ar = Bt(), [ir, De] = Be(Wt), [ns, ut] = Be(Wt), os = (e) => {
5239
- const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: c, modal: a = !0 } = e, i = Ht(t), [s, d] = H(null), u = L(!1), l = ve(c), v = Dt(r);
5239
+ ]), Ht = Lt(), ir = Bt(), [ar, De] = Be(Wt), [ns, ut] = Be(Wt), os = (e) => {
5240
+ const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: c, modal: i = !0 } = e, a = Ht(t), [s, d] = H(null), u = L(!1), l = ve(c), v = Dt(r);
5240
5241
  return U(() => {
5241
5242
  const f = () => {
5242
5243
  u.current = !0, document.addEventListener("pointerdown", m, {
@@ -5258,7 +5259,7 @@ const or = nr, ln = [
5258
5259
  capture: !0
5259
5260
  });
5260
5261
  };
5261
- }, []), /* @__PURE__ */ $(yn, i, /* @__PURE__ */ $(ir, {
5262
+ }, []), /* @__PURE__ */ $(yn, a, /* @__PURE__ */ $(ar, {
5262
5263
  scope: t,
5263
5264
  open: n,
5264
5265
  onOpenChange: l,
@@ -5274,7 +5275,7 @@ const or = nr, ln = [
5274
5275
  ),
5275
5276
  isUsingKeyboardRef: u,
5276
5277
  dir: v,
5277
- modal: a
5278
+ modal: i
5278
5279
  }, o)));
5279
5280
  }, sr = /* @__PURE__ */ _((e, t) => {
5280
5281
  const { __scopeMenu: n, ...o } = e, r = Ht(n);
@@ -5294,15 +5295,15 @@ const or = nr, ln = [
5294
5295
  asChild: !0,
5295
5296
  container: r
5296
5297
  }, o)));
5297
- }, be = "MenuContent", [as, Sn] = Be(be), is = /* @__PURE__ */ _((e, t) => {
5298
- const n = dr(be, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, c = De(be, e.__scopeMenu), a = ut(be, e.__scopeMenu);
5299
- return /* @__PURE__ */ $(it.Provider, {
5298
+ }, be = "MenuContent", [is, Sn] = Be(be), as = /* @__PURE__ */ _((e, t) => {
5299
+ const n = dr(be, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, c = De(be, e.__scopeMenu), i = ut(be, e.__scopeMenu);
5300
+ return /* @__PURE__ */ $(at.Provider, {
5300
5301
  scope: e.__scopeMenu
5301
5302
  }, /* @__PURE__ */ $(Je, {
5302
5303
  present: o || c.open
5303
- }, /* @__PURE__ */ $(it.Slot, {
5304
+ }, /* @__PURE__ */ $(at.Slot, {
5304
5305
  scope: e.__scopeMenu
5305
- }, a.modal ? /* @__PURE__ */ $(ss, C({}, r, {
5306
+ }, i.modal ? /* @__PURE__ */ $(ss, C({}, r, {
5306
5307
  ref: t
5307
5308
  })) : /* @__PURE__ */ $(ls, C({}, r, {
5308
5309
  ref: t
@@ -5337,18 +5338,18 @@ const or = nr, ln = [
5337
5338
  onDismiss: () => n.onOpenChange(!1)
5338
5339
  }));
5339
5340
  }), Pn = /* @__PURE__ */ _((e, t) => {
5340
- const { __scopeMenu: n, loop: o = !1, trapFocus: r, onOpenAutoFocus: c, onCloseAutoFocus: a, disableOutsidePointerEvents: i, onEntryFocus: s, onEscapeKeyDown: d, onPointerDownOutside: u, onFocusOutside: l, onInteractOutside: v, onDismiss: f, disableOutsideScroll: m, ...p } = e, b = De(be, n), g = ut(be, n), h = Ht(n), x = ar(n), w = es(n), [y, M] = H(null), P = L(null), E = ce(t, P, b.onContentChange), D = L(0), z = L(""), k = L(0), T = L(null), G = L("right"), B = L(0), F = m ? or : It, I = m ? {
5341
+ const { __scopeMenu: n, loop: o = !1, trapFocus: r, onOpenAutoFocus: c, onCloseAutoFocus: i, disableOutsidePointerEvents: a, onEntryFocus: s, onEscapeKeyDown: d, onPointerDownOutside: u, onFocusOutside: l, onInteractOutside: v, onDismiss: f, disableOutsideScroll: m, ...p } = e, b = De(be, n), g = ut(be, n), h = Ht(n), x = ir(n), w = es(n), [y, M] = H(null), P = L(null), E = ce(t, P, b.onContentChange), D = L(0), z = L(""), k = L(0), T = L(null), G = L("right"), B = L(0), F = m ? or : It, I = m ? {
5341
5342
  as: Ye,
5342
5343
  allowPinchZoom: !0
5343
5344
  } : void 0, re = (R) => {
5344
5345
  var j, oe;
5345
- const ae = z.current + R, ee = w().filter(
5346
+ const ie = z.current + R, ee = w().filter(
5346
5347
  (te) => !te.disabled
5347
- ), ie = document.activeElement, de = (j = ee.find(
5348
- (te) => te.ref.current === ie
5348
+ ), ae = document.activeElement, de = (j = ee.find(
5349
+ (te) => te.ref.current === ae
5349
5350
  )) === null || j === void 0 ? void 0 : j.textValue, ue = ee.map(
5350
5351
  (te) => te.textValue
5351
- ), O = Ms(ue, ae, de), V = (oe = ee.find(
5352
+ ), O = Ms(ue, ie, de), V = (oe = ee.find(
5352
5353
  (te) => te.textValue === O
5353
5354
  )) === null || oe === void 0 ? void 0 : oe.ref.current;
5354
5355
  (function te(Y) {
@@ -5356,7 +5357,7 @@ const or = nr, ln = [
5356
5357
  () => te(""),
5357
5358
  1e3
5358
5359
  ));
5359
- })(ae), V && setTimeout(
5360
+ })(ie), V && setTimeout(
5360
5361
  () => V.focus()
5361
5362
  );
5362
5363
  };
@@ -5365,7 +5366,7 @@ const or = nr, ln = [
5365
5366
  var j, oe;
5366
5367
  return G.current === ((j = T.current) === null || j === void 0 ? void 0 : j.side) && Ts(R, (oe = T.current) === null || oe === void 0 ? void 0 : oe.area);
5367
5368
  }, []);
5368
- return /* @__PURE__ */ $(as, {
5369
+ return /* @__PURE__ */ $(is, {
5369
5370
  scope: n,
5370
5371
  searchRef: z,
5371
5372
  onItemEnter: Z((R) => {
@@ -5395,10 +5396,10 @@ const or = nr, ln = [
5395
5396
  var j;
5396
5397
  R.preventDefault(), (j = P.current) === null || j === void 0 || j.focus();
5397
5398
  }),
5398
- onUnmountAutoFocus: a
5399
+ onUnmountAutoFocus: i
5399
5400
  }, /* @__PURE__ */ $(xo, {
5400
5401
  asChild: !0,
5401
- disableOutsidePointerEvents: i,
5402
+ disableOutsidePointerEvents: a,
5402
5403
  onEscapeKeyDown: d,
5403
5404
  onPointerDownOutside: u,
5404
5405
  onFocusOutside: l,
@@ -5428,10 +5429,10 @@ const or = nr, ln = [
5428
5429
  ...p.style
5429
5430
  },
5430
5431
  onKeyDown: A(p.onKeyDown, (R) => {
5431
- const oe = R.target.closest("[data-radix-menu-content]") === R.currentTarget, ae = R.ctrlKey || R.altKey || R.metaKey, ee = R.key.length === 1;
5432
- oe && (R.key === "Tab" && R.preventDefault(), !ae && ee && re(R.key));
5433
- const ie = P.current;
5434
- if (R.target !== ie || !Zi.includes(R.key))
5432
+ const oe = R.target.closest("[data-radix-menu-content]") === R.currentTarget, ie = R.ctrlKey || R.altKey || R.metaKey, ee = R.key.length === 1;
5433
+ oe && (R.key === "Tab" && R.preventDefault(), !ie && ee && re(R.key));
5434
+ const ae = P.current;
5435
+ if (R.target !== ae || !Za.includes(R.key))
5435
5436
  return;
5436
5437
  R.preventDefault();
5437
5438
  const ue = w().filter(
@@ -5447,8 +5448,8 @@ const or = nr, ln = [
5447
5448
  onPointerMove: A(e.onPointerMove, st((R) => {
5448
5449
  const j = R.target, oe = B.current !== R.clientX;
5449
5450
  if (R.currentTarget.contains(j) && oe) {
5450
- const ae = R.clientX > B.current ? "right" : "left";
5451
- G.current = ae, B.current = R.clientX;
5451
+ const ie = R.clientX > B.current ? "right" : "left";
5452
+ G.current = ie, B.current = R.clientX;
5452
5453
  }
5453
5454
  }))
5454
5455
  })))))));
@@ -5465,7 +5466,7 @@ const or = nr, ln = [
5465
5466
  ref: t
5466
5467
  }));
5467
5468
  }), dn = "MenuItem", to = "menu.itemSelect", En = /* @__PURE__ */ _((e, t) => {
5468
- const { disabled: n = !1, onSelect: o, ...r } = e, c = L(null), a = ut(dn, e.__scopeMenu), i = Sn(dn, e.__scopeMenu), s = ce(t, c), d = L(!1), u = () => {
5469
+ const { disabled: n = !1, onSelect: o, ...r } = e, c = L(null), i = ut(dn, e.__scopeMenu), a = Sn(dn, e.__scopeMenu), s = ce(t, c), d = L(!1), u = () => {
5469
5470
  const l = c.current;
5470
5471
  if (!n && l) {
5471
5472
  const v = new CustomEvent(to, {
@@ -5478,7 +5479,7 @@ const or = nr, ln = [
5478
5479
  {
5479
5480
  once: !0
5480
5481
  }
5481
- ), $o(l, v), v.defaultPrevented ? d.current = !1 : a.onClose();
5482
+ ), $o(l, v), v.defaultPrevented ? d.current = !1 : i.onClose();
5482
5483
  }
5483
5484
  };
5484
5485
  return /* @__PURE__ */ $(fr, C({}, r, {
@@ -5494,12 +5495,12 @@ const or = nr, ln = [
5494
5495
  d.current || (v = l.currentTarget) === null || v === void 0 || v.click();
5495
5496
  }),
5496
5497
  onKeyDown: A(e.onKeyDown, (l) => {
5497
- const v = i.searchRef.current !== "";
5498
+ const v = a.searchRef.current !== "";
5498
5499
  n || v && l.key === " " || ln.includes(l.key) && (l.currentTarget.click(), l.preventDefault());
5499
5500
  })
5500
5501
  }));
5501
5502
  }), fr = /* @__PURE__ */ _((e, t) => {
5502
- const { __scopeMenu: n, disabled: o = !1, textValue: r, ...c } = e, a = Sn(dn, n), i = ar(n), s = L(null), d = ce(t, s), [u, l] = H(!1), [v, f] = H("");
5503
+ const { __scopeMenu: n, disabled: o = !1, textValue: r, ...c } = e, i = Sn(dn, n), a = ir(n), s = L(null), d = ce(t, s), [u, l] = H(!1), [v, f] = H("");
5503
5504
  return U(() => {
5504
5505
  const m = s.current;
5505
5506
  if (m) {
@@ -5508,13 +5509,13 @@ const or = nr, ln = [
5508
5509
  }
5509
5510
  }, [
5510
5511
  c.children
5511
- ]), /* @__PURE__ */ $(it.ItemSlot, {
5512
+ ]), /* @__PURE__ */ $(at.ItemSlot, {
5512
5513
  scope: n,
5513
5514
  disabled: o,
5514
5515
  textValue: r ?? v
5515
5516
  }, /* @__PURE__ */ $(Vo, C({
5516
5517
  asChild: !0
5517
- }, i, {
5518
+ }, a, {
5518
5519
  focusable: !o
5519
5520
  }), /* @__PURE__ */ $(Q.div, C({
5520
5521
  role: "menuitem",
@@ -5524,10 +5525,10 @@ const or = nr, ln = [
5524
5525
  }, c, {
5525
5526
  ref: d,
5526
5527
  onPointerMove: A(e.onPointerMove, st((m) => {
5527
- o ? a.onItemLeave(m) : (a.onItemEnter(m), m.defaultPrevented || m.currentTarget.focus());
5528
+ o ? i.onItemLeave(m) : (i.onItemEnter(m), m.defaultPrevented || m.currentTarget.focus());
5528
5529
  })),
5529
5530
  onPointerLeave: A(e.onPointerLeave, st(
5530
- (m) => a.onItemLeave(m)
5531
+ (m) => i.onItemLeave(m)
5531
5532
  )),
5532
5533
  onFocus: A(
5533
5534
  e.onFocus,
@@ -5582,8 +5583,8 @@ const or = nr, ln = [
5582
5583
  ref: t,
5583
5584
  "data-state": _n(c),
5584
5585
  onSelect: A(o.onSelect, () => {
5585
- var a;
5586
- return (a = r.onValueChange) === null || a === void 0 ? void 0 : a.call(r, n);
5586
+ var i;
5587
+ return (i = r.onValueChange) === null || i === void 0 ? void 0 : i.call(r, n);
5587
5588
  }, {
5588
5589
  checkForDefaultPrevented: !1
5589
5590
  })
@@ -5607,11 +5608,11 @@ const or = nr, ln = [
5607
5608
  ref: t
5608
5609
  }));
5609
5610
  }), vr = "MenuSub", [ws, gr] = Be(vr), ys = (e) => {
5610
- const { __scopeMenu: t, children: n, open: o = !1, onOpenChange: r } = e, c = De(vr, t), a = Ht(t), [i, s] = H(null), [d, u] = H(null), l = ve(r);
5611
+ const { __scopeMenu: t, children: n, open: o = !1, onOpenChange: r } = e, c = De(vr, t), i = Ht(t), [a, s] = H(null), [d, u] = H(null), l = ve(r);
5611
5612
  return U(() => (c.open === !1 && l(!1), () => l(!1)), [
5612
5613
  c.open,
5613
5614
  l
5614
- ]), /* @__PURE__ */ $(yn, a, /* @__PURE__ */ $(ir, {
5615
+ ]), /* @__PURE__ */ $(yn, i, /* @__PURE__ */ $(ar, {
5615
5616
  scope: t,
5616
5617
  open: o,
5617
5618
  onOpenChange: l,
@@ -5621,14 +5622,14 @@ const or = nr, ln = [
5621
5622
  scope: t,
5622
5623
  contentId: Te(),
5623
5624
  triggerId: Te(),
5624
- trigger: i,
5625
+ trigger: a,
5625
5626
  onTriggerChange: s
5626
5627
  }, n)));
5627
5628
  }, xt = "MenuSubTrigger", Cs = /* @__PURE__ */ _((e, t) => {
5628
- const n = De(xt, e.__scopeMenu), o = ut(xt, e.__scopeMenu), r = gr(xt, e.__scopeMenu), c = Sn(xt, e.__scopeMenu), a = L(null), { pointerGraceTimerRef: i, onPointerGraceIntentChange: s } = c, d = {
5629
+ const n = De(xt, e.__scopeMenu), o = ut(xt, e.__scopeMenu), r = gr(xt, e.__scopeMenu), c = Sn(xt, e.__scopeMenu), i = L(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: s } = c, d = {
5629
5630
  __scopeMenu: e.__scopeMenu
5630
5631
  }, u = Z(() => {
5631
- a.current && window.clearTimeout(a.current), a.current = null;
5632
+ i.current && window.clearTimeout(i.current), i.current = null;
5632
5633
  }, []);
5633
5634
  return U(
5634
5635
  () => u,
@@ -5636,12 +5637,12 @@ const or = nr, ln = [
5636
5637
  u
5637
5638
  ]
5638
5639
  ), U(() => {
5639
- const l = i.current;
5640
+ const l = a.current;
5640
5641
  return () => {
5641
5642
  window.clearTimeout(l), s(null);
5642
5643
  };
5643
5644
  }, [
5644
- i,
5645
+ a,
5645
5646
  s
5646
5647
  ]), /* @__PURE__ */ $(sr, C({
5647
5648
  asChild: !0
@@ -5658,7 +5659,7 @@ const or = nr, ln = [
5658
5659
  (v = e.onClick) === null || v === void 0 || v.call(e, l), !(e.disabled || l.defaultPrevented) && (l.currentTarget.focus(), n.open || n.onOpenChange(!0));
5659
5660
  },
5660
5661
  onPointerMove: A(e.onPointerMove, st((l) => {
5661
- c.onItemEnter(l), !l.defaultPrevented && !e.disabled && !n.open && !a.current && (c.onPointerGraceIntentChange(null), a.current = window.setTimeout(() => {
5662
+ c.onItemEnter(l), !l.defaultPrevented && !e.disabled && !n.open && !i.current && (c.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
5662
5663
  n.onOpenChange(!0), u();
5663
5664
  }, 100));
5664
5665
  })),
@@ -5694,7 +5695,7 @@ const or = nr, ln = [
5694
5695
  }
5695
5696
  ],
5696
5697
  side: p
5697
- }), window.clearTimeout(i.current), i.current = window.setTimeout(
5698
+ }), window.clearTimeout(a.current), a.current = window.setTimeout(
5698
5699
  () => c.onPointerGraceIntentChange(null),
5699
5700
  300
5700
5701
  );
@@ -5706,46 +5707,46 @@ const or = nr, ln = [
5706
5707
  })),
5707
5708
  onKeyDown: A(e.onKeyDown, (l) => {
5708
5709
  const v = c.searchRef.current !== "";
5709
- if (!(e.disabled || v && l.key === " ") && Qi[o.dir].includes(l.key)) {
5710
+ if (!(e.disabled || v && l.key === " ") && Qa[o.dir].includes(l.key)) {
5710
5711
  var f;
5711
5712
  n.onOpenChange(!0), (f = n.content) === null || f === void 0 || f.focus(), l.preventDefault();
5712
5713
  }
5713
5714
  })
5714
5715
  })));
5715
5716
  }), Ss = "MenuSubContent", Ps = /* @__PURE__ */ _((e, t) => {
5716
- const n = dr(be, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, c = De(be, e.__scopeMenu), a = ut(be, e.__scopeMenu), i = gr(Ss, e.__scopeMenu), s = L(null), d = ce(t, s);
5717
- return /* @__PURE__ */ $(it.Provider, {
5717
+ const n = dr(be, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, c = De(be, e.__scopeMenu), i = ut(be, e.__scopeMenu), a = gr(Ss, e.__scopeMenu), s = L(null), d = ce(t, s);
5718
+ return /* @__PURE__ */ $(at.Provider, {
5718
5719
  scope: e.__scopeMenu
5719
5720
  }, /* @__PURE__ */ $(Je, {
5720
5721
  present: o || c.open
5721
- }, /* @__PURE__ */ $(it.Slot, {
5722
+ }, /* @__PURE__ */ $(at.Slot, {
5722
5723
  scope: e.__scopeMenu
5723
5724
  }, /* @__PURE__ */ $(Pn, C({
5724
- id: i.contentId,
5725
- "aria-labelledby": i.triggerId
5725
+ id: a.contentId,
5726
+ "aria-labelledby": a.triggerId
5726
5727
  }, r, {
5727
5728
  ref: d,
5728
5729
  align: "start",
5729
- side: a.dir === "rtl" ? "left" : "right",
5730
+ side: i.dir === "rtl" ? "left" : "right",
5730
5731
  disableOutsidePointerEvents: !1,
5731
5732
  disableOutsideScroll: !1,
5732
5733
  trapFocus: !1,
5733
5734
  onOpenAutoFocus: (u) => {
5734
5735
  var l;
5735
- a.isUsingKeyboardRef.current && ((l = s.current) === null || l === void 0 || l.focus()), u.preventDefault();
5736
+ i.isUsingKeyboardRef.current && ((l = s.current) === null || l === void 0 || l.focus()), u.preventDefault();
5736
5737
  },
5737
5738
  onCloseAutoFocus: (u) => u.preventDefault(),
5738
5739
  onFocusOutside: A(e.onFocusOutside, (u) => {
5739
- u.target !== i.trigger && c.onOpenChange(!1);
5740
+ u.target !== a.trigger && c.onOpenChange(!1);
5740
5741
  }),
5741
5742
  onEscapeKeyDown: A(e.onEscapeKeyDown, (u) => {
5742
- a.onClose(), u.preventDefault();
5743
+ i.onClose(), u.preventDefault();
5743
5744
  }),
5744
5745
  onKeyDown: A(e.onKeyDown, (u) => {
5745
- const l = u.currentTarget.contains(u.target), v = Ji[a.dir].includes(u.key);
5746
+ const l = u.currentTarget.contains(u.target), v = Ja[i.dir].includes(u.key);
5746
5747
  if (l && v) {
5747
5748
  var f;
5748
- c.onOpenChange(!1), (f = i.trigger) === null || f === void 0 || f.focus(), u.preventDefault();
5749
+ c.onOpenChange(!1), (f = a.trigger) === null || f === void 0 || f.focus(), u.preventDefault();
5749
5750
  }
5750
5751
  })
5751
5752
  })))));
@@ -5774,11 +5775,11 @@ function Ms(e, t, n) {
5774
5775
  const r = t.length > 1 && Array.from(t).every(
5775
5776
  (d) => d === t[0]
5776
5777
  ) ? t[0] : t, c = n ? e.indexOf(n) : -1;
5777
- let a = _s(e, Math.max(c, 0));
5778
- r.length === 1 && (a = a.filter(
5778
+ let i = _s(e, Math.max(c, 0));
5779
+ r.length === 1 && (i = i.filter(
5779
5780
  (d) => d !== n
5780
5781
  ));
5781
- const s = a.find(
5782
+ const s = i.find(
5782
5783
  (d) => d.toLowerCase().startsWith(r.toLowerCase())
5783
5784
  );
5784
5785
  return s !== n ? s : void 0;
@@ -5786,9 +5787,9 @@ function Ms(e, t, n) {
5786
5787
  function Rs(e, t) {
5787
5788
  const { x: n, y: o } = e;
5788
5789
  let r = !1;
5789
- for (let c = 0, a = t.length - 1; c < t.length; a = c++) {
5790
- const i = t[c].x, s = t[c].y, d = t[a].x, u = t[a].y;
5791
- s > o != u > o && n < (d - i) * (o - s) / (u - s) + i && (r = !r);
5790
+ for (let c = 0, i = t.length - 1; c < t.length; i = c++) {
5791
+ const a = t[c].x, s = t[c].y, d = t[i].x, u = t[i].y;
5792
+ s > o != u > o && n < (d - a) * (o - s) / (u - s) + a && (r = !r);
5792
5793
  }
5793
5794
  return r;
5794
5795
  }
@@ -5804,13 +5805,13 @@ function Ts(e, t) {
5804
5805
  function st(e) {
5805
5806
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
5806
5807
  }
5807
- const Os = os, As = sr, Is = cs, Ns = is, Ds = ur, ks = ds, Fs = En, Ls = us, Bs = vs, Gs = hs, Ws = $s, Hs = xs, zs = ys, Us = Cs, Ks = Ps, br = "DropdownMenu", [Vs, Zd] = Ne(br, [
5808
+ const Os = os, As = sr, Is = cs, Ns = as, Ds = ur, ks = ds, Fs = En, Ls = us, Bs = vs, Gs = hs, Ws = $s, Hs = xs, zs = ys, Us = Cs, Ks = Ps, br = "DropdownMenu", [Vs, Zd] = Ne(br, [
5808
5809
  cr
5809
5810
  ]), le = cr(), [js, $r] = Vs(br), Ys = (e) => {
5810
- const { __scopeDropdownMenu: t, children: n, dir: o, open: r, defaultOpen: c, onOpenChange: a, modal: i = !0 } = e, s = le(t), d = L(null), [u = !1, l] = je({
5811
+ const { __scopeDropdownMenu: t, children: n, dir: o, open: r, defaultOpen: c, onOpenChange: i, modal: a = !0 } = e, s = le(t), d = L(null), [u = !1, l] = je({
5811
5812
  prop: r,
5812
5813
  defaultProp: c,
5813
- onChange: a
5814
+ onChange: i
5814
5815
  });
5815
5816
  return /* @__PURE__ */ $(js, {
5816
5817
  scope: t,
@@ -5827,18 +5828,18 @@ const Os = os, As = sr, Is = cs, Ns = is, Ds = ur, ks = ds, Fs = En, Ls = us, Bs
5827
5828
  l
5828
5829
  ]
5829
5830
  ),
5830
- modal: i
5831
+ modal: a
5831
5832
  }, /* @__PURE__ */ $(Os, C({}, s, {
5832
5833
  open: u,
5833
5834
  onOpenChange: l,
5834
5835
  dir: o,
5835
- modal: i
5836
+ modal: a
5836
5837
  }), n));
5837
5838
  }, Xs = "DropdownMenuTrigger", qs = /* @__PURE__ */ _((e, t) => {
5838
- const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, c = $r(Xs, n), a = le(n);
5839
+ const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, c = $r(Xs, n), i = le(n);
5839
5840
  return /* @__PURE__ */ $(As, C({
5840
5841
  asChild: !0
5841
- }, a), /* @__PURE__ */ $(Q.button, C({
5842
+ }, i), /* @__PURE__ */ $(Q.button, C({
5842
5843
  type: "button",
5843
5844
  id: c.triggerId,
5844
5845
  "aria-haspopup": "menu",
@@ -5849,37 +5850,37 @@ const Os = os, As = sr, Is = cs, Ns = is, Ds = ur, ks = ds, Fs = En, Ls = us, Bs
5849
5850
  disabled: o
5850
5851
  }, r, {
5851
5852
  ref: Nt(t, c.triggerRef),
5852
- onPointerDown: A(e.onPointerDown, (i) => {
5853
- !o && i.button === 0 && i.ctrlKey === !1 && (c.onOpenToggle(), c.open || i.preventDefault());
5853
+ onPointerDown: A(e.onPointerDown, (a) => {
5854
+ !o && a.button === 0 && a.ctrlKey === !1 && (c.onOpenToggle(), c.open || a.preventDefault());
5854
5855
  }),
5855
- onKeyDown: A(e.onKeyDown, (i) => {
5856
+ onKeyDown: A(e.onKeyDown, (a) => {
5856
5857
  o || ([
5857
5858
  "Enter",
5858
5859
  " "
5859
- ].includes(i.key) && c.onOpenToggle(), i.key === "ArrowDown" && c.onOpenChange(!0), [
5860
+ ].includes(a.key) && c.onOpenToggle(), a.key === "ArrowDown" && c.onOpenChange(!0), [
5860
5861
  "Enter",
5861
5862
  " ",
5862
5863
  "ArrowDown"
5863
- ].includes(i.key) && i.preventDefault());
5864
+ ].includes(a.key) && a.preventDefault());
5864
5865
  })
5865
5866
  })));
5866
5867
  }), Zs = (e) => {
5867
5868
  const { __scopeDropdownMenu: t, ...n } = e, o = le(t);
5868
5869
  return /* @__PURE__ */ $(Is, C({}, o, n));
5869
5870
  }, Qs = "DropdownMenuContent", Js = /* @__PURE__ */ _((e, t) => {
5870
- const { __scopeDropdownMenu: n, ...o } = e, r = $r(Qs, n), c = le(n), a = L(!1);
5871
+ const { __scopeDropdownMenu: n, ...o } = e, r = $r(Qs, n), c = le(n), i = L(!1);
5871
5872
  return /* @__PURE__ */ $(Ns, C({
5872
5873
  id: r.contentId,
5873
5874
  "aria-labelledby": r.triggerId
5874
5875
  }, c, o, {
5875
5876
  ref: t,
5876
- onCloseAutoFocus: A(e.onCloseAutoFocus, (i) => {
5877
+ onCloseAutoFocus: A(e.onCloseAutoFocus, (a) => {
5877
5878
  var s;
5878
- a.current || (s = r.triggerRef.current) === null || s === void 0 || s.focus(), a.current = !1, i.preventDefault();
5879
+ i.current || (s = r.triggerRef.current) === null || s === void 0 || s.focus(), i.current = !1, a.preventDefault();
5879
5880
  }),
5880
- onInteractOutside: A(e.onInteractOutside, (i) => {
5881
- const s = i.detail.originalEvent, d = s.button === 0 && s.ctrlKey === !0, u = s.button === 2 || d;
5882
- (!r.modal || u) && (a.current = !0);
5881
+ onInteractOutside: A(e.onInteractOutside, (a) => {
5882
+ const s = a.detail.originalEvent, d = s.button === 0 && s.ctrlKey === !0, u = s.button === 2 || d;
5883
+ (!r.modal || u) && (i.current = !0);
5883
5884
  }),
5884
5885
  style: {
5885
5886
  ...e.style,
@@ -5920,24 +5921,24 @@ const Os = os, As = sr, Is = cs, Ns = is, Ds = ur, ks = ds, Fs = En, Ls = us, Bs
5920
5921
  return /* @__PURE__ */ $(Gs, C({}, r, o, {
5921
5922
  ref: t
5922
5923
  }));
5923
- }), al = /* @__PURE__ */ _((e, t) => {
5924
+ }), il = /* @__PURE__ */ _((e, t) => {
5924
5925
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
5925
5926
  return /* @__PURE__ */ $(Ws, C({}, r, o, {
5926
5927
  ref: t
5927
5928
  }));
5928
- }), il = /* @__PURE__ */ _((e, t) => {
5929
+ }), al = /* @__PURE__ */ _((e, t) => {
5929
5930
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
5930
5931
  return /* @__PURE__ */ $(Hs, C({}, r, o, {
5931
5932
  ref: t
5932
5933
  }));
5933
5934
  }), sl = (e) => {
5934
- const { __scopeDropdownMenu: t, children: n, open: o, onOpenChange: r, defaultOpen: c } = e, a = le(t), [i = !1, s] = je({
5935
+ const { __scopeDropdownMenu: t, children: n, open: o, onOpenChange: r, defaultOpen: c } = e, i = le(t), [a = !1, s] = je({
5935
5936
  prop: o,
5936
5937
  defaultProp: c,
5937
5938
  onChange: r
5938
5939
  });
5939
- return /* @__PURE__ */ $(zs, C({}, a, {
5940
- open: i,
5940
+ return /* @__PURE__ */ $(zs, C({}, i, {
5941
+ open: a,
5941
5942
  onOpenChange: s
5942
5943
  }), n);
5943
5944
  }, ll = /* @__PURE__ */ _((e, t) => {
@@ -5958,7 +5959,7 @@ const Os = os, As = sr, Is = cs, Ns = is, Ds = ur, ks = ds, Fs = En, Ls = us, Bs
5958
5959
  "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
5959
5960
  }
5960
5961
  }));
5961
- }), ul = Ys, fl = qs, xr = Zs, wr = Js, pl = el, yr = tl, Cr = nl, Sr = ol, ml = rl, Pr = cl, Er = al, _r = il, vl = sl, Mr = ll, Rr = dl;
5962
+ }), ul = Ys, fl = qs, xr = Zs, wr = Js, pl = el, yr = tl, Cr = nl, Sr = ol, ml = rl, Pr = cl, Er = il, _r = al, vl = sl, Mr = ll, Rr = dl;
5962
5963
  var gl = {
5963
5964
  xmlns: "http://www.w3.org/2000/svg",
5964
5965
  width: 24,
@@ -5972,7 +5973,7 @@ var gl = {
5972
5973
  };
5973
5974
  const hl = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), zt = (e, t) => {
5974
5975
  const n = _(
5975
- ({ color: o = "currentColor", size: r = 24, strokeWidth: c = 2, absoluteStrokeWidth: a, children: i, ...s }, d) => $(
5976
+ ({ color: o = "currentColor", size: r = 24, strokeWidth: c = 2, absoluteStrokeWidth: i, children: a, ...s }, d) => $(
5976
5977
  "svg",
5977
5978
  {
5978
5979
  ref: d,
@@ -5980,13 +5981,13 @@ const hl = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), zt = (
5980
5981
  width: r,
5981
5982
  height: r,
5982
5983
  stroke: o,
5983
- strokeWidth: a ? Number(c) * 24 / Number(r) : c,
5984
+ strokeWidth: i ? Number(c) * 24 / Number(r) : c,
5984
5985
  className: `lucide lucide-${hl(e)}`,
5985
5986
  ...s
5986
5987
  },
5987
5988
  [
5988
5989
  ...t.map(([u, l]) => $(u, l)),
5989
- ...(Array.isArray(i) ? i : [i]) || []
5990
+ ...(Array.isArray(a) ? a : [a]) || []
5990
5991
  ]
5991
5992
  )
5992
5993
  );
@@ -6123,22 +6124,22 @@ function Ar(e) {
6123
6124
  ]);
6124
6125
  }
6125
6126
  const Ir = "Radio", [Rl, Nr] = Ne(Ir), [Tl, Ol] = Rl(Ir), Al = /* @__PURE__ */ _((e, t) => {
6126
- const { __scopeRadio: n, name: o, checked: r = !1, required: c, disabled: a, value: i = "on", onCheck: s, ...d } = e, [u, l] = H(null), v = ce(
6127
+ const { __scopeRadio: n, name: o, checked: r = !1, required: c, disabled: i, value: a = "on", onCheck: s, ...d } = e, [u, l] = H(null), v = ce(
6127
6128
  t,
6128
6129
  (p) => l(p)
6129
6130
  ), f = L(!1), m = u ? !!u.closest("form") : !0;
6130
6131
  return /* @__PURE__ */ $(Tl, {
6131
6132
  scope: n,
6132
6133
  checked: r,
6133
- disabled: a
6134
+ disabled: i
6134
6135
  }, /* @__PURE__ */ $(Q.button, C({
6135
6136
  type: "button",
6136
6137
  role: "radio",
6137
6138
  "aria-checked": r,
6138
6139
  "data-state": Dr(r),
6139
- "data-disabled": a ? "" : void 0,
6140
- disabled: a,
6141
- value: i
6140
+ "data-disabled": i ? "" : void 0,
6141
+ disabled: i,
6142
+ value: a
6142
6143
  }, d, {
6143
6144
  ref: v,
6144
6145
  onClick: A(e.onClick, (p) => {
@@ -6148,10 +6149,10 @@ const Ir = "Radio", [Rl, Nr] = Ne(Ir), [Tl, Ol] = Rl(Ir), Al = /* @__PURE__ */ _
6148
6149
  control: u,
6149
6150
  bubbles: !f.current,
6150
6151
  name: o,
6151
- value: i,
6152
+ value: a,
6152
6153
  checked: r,
6153
6154
  required: c,
6154
- disabled: a,
6155
+ disabled: i,
6155
6156
  style: {
6156
6157
  transform: "translateX(-100%)"
6157
6158
  }
@@ -6167,17 +6168,17 @@ const Ir = "Radio", [Rl, Nr] = Ne(Ir), [Tl, Ol] = Rl(Ir), Al = /* @__PURE__ */ _
6167
6168
  ref: t
6168
6169
  })));
6169
6170
  }), Dl = (e) => {
6170
- const { control: t, checked: n, bubbles: o = !0, ...r } = e, c = L(null), a = Ar(n), i = No(t);
6171
+ const { control: t, checked: n, bubbles: o = !0, ...r } = e, c = L(null), i = Ar(n), a = No(t);
6171
6172
  return U(() => {
6172
6173
  const s = c.current, d = window.HTMLInputElement.prototype, l = Object.getOwnPropertyDescriptor(d, "checked").set;
6173
- if (a !== n && l) {
6174
+ if (i !== n && l) {
6174
6175
  const v = new Event("click", {
6175
6176
  bubbles: o
6176
6177
  });
6177
6178
  l.call(s, n), s.dispatchEvent(v);
6178
6179
  }
6179
6180
  }, [
6180
- a,
6181
+ i,
6181
6182
  n,
6182
6183
  o
6183
6184
  ]), /* @__PURE__ */ $("input", C({
@@ -6189,7 +6190,7 @@ const Ir = "Radio", [Rl, Nr] = Ne(Ir), [Tl, Ol] = Rl(Ir), Al = /* @__PURE__ */ _
6189
6190
  ref: c,
6190
6191
  style: {
6191
6192
  ...e.style,
6192
- ...i,
6193
+ ...a,
6193
6194
  position: "absolute",
6194
6195
  pointerEvents: "none",
6195
6196
  opacity: 0,
@@ -6209,7 +6210,7 @@ const kl = [
6209
6210
  Bt,
6210
6211
  Nr
6211
6212
  ]), Fr = Bt(), Lr = Nr(), [Ll, Bl] = Fl(kr), Gl = /* @__PURE__ */ _((e, t) => {
6212
- const { __scopeRadioGroup: n, name: o, defaultValue: r, value: c, required: a = !1, disabled: i = !1, orientation: s, dir: d, loop: u = !0, onValueChange: l, ...v } = e, f = Fr(n), m = Dt(d), [p, b] = je({
6213
+ const { __scopeRadioGroup: n, name: o, defaultValue: r, value: c, required: i = !1, disabled: a = !1, orientation: s, dir: d, loop: u = !0, onValueChange: l, ...v } = e, f = Fr(n), m = Dt(d), [p, b] = je({
6213
6214
  prop: c,
6214
6215
  defaultProp: r,
6215
6216
  onChange: l
@@ -6217,8 +6218,8 @@ const kl = [
6217
6218
  return /* @__PURE__ */ $(Ll, {
6218
6219
  scope: n,
6219
6220
  name: o,
6220
- required: a,
6221
- disabled: i,
6221
+ required: i,
6222
+ disabled: a,
6222
6223
  value: p,
6223
6224
  onValueChange: b
6224
6225
  }, /* @__PURE__ */ $(Ko, C({
@@ -6229,15 +6230,15 @@ const kl = [
6229
6230
  loop: u
6230
6231
  }), /* @__PURE__ */ $(Q.div, C({
6231
6232
  role: "radiogroup",
6232
- "aria-required": a,
6233
+ "aria-required": i,
6233
6234
  "aria-orientation": s,
6234
- "data-disabled": i ? "" : void 0,
6235
+ "data-disabled": a ? "" : void 0,
6235
6236
  dir: m
6236
6237
  }, v, {
6237
6238
  ref: t
6238
6239
  }))));
6239
6240
  }), Wl = "RadioGroupItem", Hl = /* @__PURE__ */ _((e, t) => {
6240
- const { __scopeRadioGroup: n, disabled: o, ...r } = e, c = Bl(Wl, n), a = c.disabled || o, i = Fr(n), s = Lr(n), d = L(null), u = ce(t, d), l = c.value === r.value, v = L(!1);
6241
+ const { __scopeRadioGroup: n, disabled: o, ...r } = e, c = Bl(Wl, n), i = c.disabled || o, a = Fr(n), s = Lr(n), d = L(null), u = ce(t, d), l = c.value === r.value, v = L(!1);
6241
6242
  return U(() => {
6242
6243
  const f = (p) => {
6243
6244
  kl.includes(p.key) && (v.current = !0);
@@ -6247,11 +6248,11 @@ const kl = [
6247
6248
  };
6248
6249
  }, []), /* @__PURE__ */ $(Vo, C({
6249
6250
  asChild: !0
6250
- }, i, {
6251
- focusable: !a,
6251
+ }, a, {
6252
+ focusable: !i,
6252
6253
  active: l
6253
6254
  }), /* @__PURE__ */ $(Al, C({
6254
- disabled: a,
6255
+ disabled: i,
6255
6256
  required: c.required,
6256
6257
  checked: l
6257
6258
  }, s, r, {
@@ -6324,13 +6325,13 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6324
6325
  ql,
6325
6326
  Lt
6326
6327
  ]), Rn = Lt(), [Zl, Ge] = et(Ut), [Ql, Jl] = et(Ut), ed = (e) => {
6327
- const { __scopeSelect: t, children: n, open: o, defaultOpen: r, onOpenChange: c, value: a, defaultValue: i, onValueChange: s, dir: d, name: u, autoComplete: l, disabled: v, required: f } = e, m = Rn(t), [p, b] = H(null), [g, h] = H(null), [x, w] = H(!1), y = Dt(d), [M = !1, P] = je({
6328
+ const { __scopeSelect: t, children: n, open: o, defaultOpen: r, onOpenChange: c, value: i, defaultValue: a, onValueChange: s, dir: d, name: u, autoComplete: l, disabled: v, required: f } = e, m = Rn(t), [p, b] = H(null), [g, h] = H(null), [x, w] = H(!1), y = Dt(d), [M = !1, P] = je({
6328
6329
  prop: o,
6329
6330
  defaultProp: r,
6330
6331
  onChange: c
6331
6332
  }), [E, D] = je({
6332
- prop: a,
6333
- defaultProp: i,
6333
+ prop: i,
6334
+ defaultProp: a,
6334
6335
  onChange: s
6335
6336
  }), z = L(null), k = p ? !!p.closest("form") : !0, [T, G] = H(/* @__PURE__ */ new Set()), B = Array.from(T).map(
6336
6337
  (F) => F.props.value
@@ -6381,30 +6382,30 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6381
6382
  value: ""
6382
6383
  }) : null, Array.from(T)) : null));
6383
6384
  }, td = "SelectTrigger", nd = /* @__PURE__ */ _((e, t) => {
6384
- const { __scopeSelect: n, disabled: o = !1, ...r } = e, c = Rn(n), a = Ge(td, n), i = a.disabled || o, s = ce(t, a.onTriggerChange), d = Mn(n), [u, l, v] = Ur((m) => {
6385
+ const { __scopeSelect: n, disabled: o = !1, ...r } = e, c = Rn(n), i = Ge(td, n), a = i.disabled || o, s = ce(t, i.onTriggerChange), d = Mn(n), [u, l, v] = Ur((m) => {
6385
6386
  const p = d().filter(
6386
6387
  (h) => !h.disabled
6387
6388
  ), b = p.find(
6388
- (h) => h.value === a.value
6389
+ (h) => h.value === i.value
6389
6390
  ), g = Kr(p, m, b);
6390
- g !== void 0 && a.onValueChange(g.value);
6391
+ g !== void 0 && i.onValueChange(g.value);
6391
6392
  }), f = () => {
6392
- i || (a.onOpenChange(!0), v());
6393
+ a || (i.onOpenChange(!0), v());
6393
6394
  };
6394
6395
  return /* @__PURE__ */ $(Go, C({
6395
6396
  asChild: !0
6396
6397
  }, c), /* @__PURE__ */ $(Q.button, C({
6397
6398
  type: "button",
6398
6399
  role: "combobox",
6399
- "aria-controls": a.contentId,
6400
- "aria-expanded": a.open,
6401
- "aria-required": a.required,
6400
+ "aria-controls": i.contentId,
6401
+ "aria-expanded": i.open,
6402
+ "aria-required": i.required,
6402
6403
  "aria-autocomplete": "none",
6403
- dir: a.dir,
6404
- "data-state": a.open ? "open" : "closed",
6405
- disabled: i,
6406
- "data-disabled": i ? "" : void 0,
6407
- "data-placeholder": a.value === void 0 ? "" : void 0
6404
+ dir: i.dir,
6405
+ "data-state": i.open ? "open" : "closed",
6406
+ disabled: a,
6407
+ "data-disabled": a ? "" : void 0,
6408
+ "data-placeholder": i.value === void 0 ? "" : void 0
6408
6409
  }, r, {
6409
6410
  ref: s,
6410
6411
  onClick: A(r.onClick, (m) => {
@@ -6412,7 +6413,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6412
6413
  }),
6413
6414
  onPointerDown: A(r.onPointerDown, (m) => {
6414
6415
  const p = m.target;
6415
- p.hasPointerCapture(m.pointerId) && p.releasePointerCapture(m.pointerId), m.button === 0 && m.ctrlKey === !1 && (f(), a.triggerPointerDownPosRef.current = {
6416
+ p.hasPointerCapture(m.pointerId) && p.releasePointerCapture(m.pointerId), m.button === 0 && m.ctrlKey === !1 && (f(), i.triggerPointerDownPosRef.current = {
6416
6417
  x: Math.round(m.pageX),
6417
6418
  y: Math.round(m.pageY)
6418
6419
  }, m.preventDefault());
@@ -6423,18 +6424,18 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6423
6424
  })
6424
6425
  })));
6425
6426
  }), od = "SelectValue", rd = /* @__PURE__ */ _((e, t) => {
6426
- const { __scopeSelect: n, className: o, style: r, children: c, placeholder: a, ...i } = e, s = Ge(od, n), { onValueNodeHasChildrenChange: d } = s, u = c !== void 0, l = ce(t, s.onValueNodeChange);
6427
+ const { __scopeSelect: n, className: o, style: r, children: c, placeholder: i, ...a } = e, s = Ge(od, n), { onValueNodeHasChildrenChange: d } = s, u = c !== void 0, l = ce(t, s.onValueNodeChange);
6427
6428
  return $e(() => {
6428
6429
  d(u);
6429
6430
  }, [
6430
6431
  d,
6431
6432
  u
6432
- ]), /* @__PURE__ */ $(Q.span, C({}, i, {
6433
+ ]), /* @__PURE__ */ $(Q.span, C({}, a, {
6433
6434
  ref: l,
6434
6435
  style: {
6435
6436
  pointerEvents: "none"
6436
6437
  }
6437
- }), s.value === void 0 && a !== void 0 ? a : c);
6438
+ }), s.value === void 0 && i !== void 0 ? i : c);
6438
6439
  }), cd = /* @__PURE__ */ _((e, t) => {
6439
6440
  const { __scopeSelect: n, children: o, ...r } = e;
6440
6441
  return /* @__PURE__ */ $(Q.span, C({
@@ -6442,15 +6443,15 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6442
6443
  }, r, {
6443
6444
  ref: t
6444
6445
  }), o || "▼");
6445
- }), ad = (e) => /* @__PURE__ */ $(Ho, C({
6446
+ }), id = (e) => /* @__PURE__ */ $(Ho, C({
6446
6447
  asChild: !0
6447
- }, e)), qe = "SelectContent", id = /* @__PURE__ */ _((e, t) => {
6448
+ }, e)), qe = "SelectContent", ad = /* @__PURE__ */ _((e, t) => {
6448
6449
  const n = Ge(qe, e.__scopeSelect), [o, r] = H();
6449
6450
  if ($e(() => {
6450
6451
  r(new DocumentFragment());
6451
6452
  }, []), !n.open) {
6452
6453
  const c = o;
6453
- return c ? /* @__PURE__ */ io(/* @__PURE__ */ $(Wr, {
6454
+ return c ? /* @__PURE__ */ ao(/* @__PURE__ */ $(Wr, {
6454
6455
  scope: e.__scopeSelect
6455
6456
  }, /* @__PURE__ */ $(Kt.Slot, {
6456
6457
  scope: e.__scopeSelect
@@ -6465,8 +6466,8 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6465
6466
  position: o = "item-aligned",
6466
6467
  onCloseAutoFocus: r,
6467
6468
  onEscapeKeyDown: c,
6468
- onPointerDownOutside: a,
6469
- side: i,
6469
+ onPointerDownOutside: i,
6470
+ side: a,
6470
6471
  sideOffset: s,
6471
6472
  align: d,
6472
6473
  alignOffset: u,
@@ -6563,7 +6564,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6563
6564
  Y && setTimeout(
6564
6565
  () => Y.ref.current.focus()
6565
6566
  );
6566
- }), ae = Z((O, V, te) => {
6567
+ }), ie = Z((O, V, te) => {
6567
6568
  const Y = !F.current && !te;
6568
6569
  (h.value !== void 0 && h.value === V || Y) && (D(O), Y && (F.current = !0));
6569
6570
  }, [
@@ -6573,13 +6574,13 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6573
6574
  [
6574
6575
  x
6575
6576
  ]
6576
- ), ie = Z((O, V, te) => {
6577
+ ), ae = Z((O, V, te) => {
6577
6578
  const Y = !F.current && !te;
6578
6579
  (h.value !== void 0 && h.value === V || Y) && k(O);
6579
6580
  }, [
6580
6581
  h.value
6581
6582
  ]), de = o === "popper" ? oo : ld, ue = de === oo ? {
6582
- side: i,
6583
+ side: a,
6583
6584
  sideOffset: s,
6584
6585
  align: d,
6585
6586
  alignOffset: u,
@@ -6595,10 +6596,10 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6595
6596
  content: x,
6596
6597
  viewport: y,
6597
6598
  onViewportChange: M,
6598
- itemRefCallback: ae,
6599
+ itemRefCallback: ie,
6599
6600
  selectedItem: E,
6600
6601
  onItemLeave: ee,
6601
- itemTextRefCallback: ie,
6602
+ itemTextRefCallback: ae,
6602
6603
  focusSelectedItem: re,
6603
6604
  selectedItemText: z,
6604
6605
  position: o,
@@ -6623,7 +6624,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6623
6624
  asChild: !0,
6624
6625
  disableOutsidePointerEvents: !0,
6625
6626
  onEscapeKeyDown: c,
6626
- onPointerDownOutside: a,
6627
+ onPointerDownOutside: i,
6627
6628
  onFocusOutside: (O) => O.preventDefault(),
6628
6629
  onDismiss: () => h.onOpenChange(!1)
6629
6630
  }, /* @__PURE__ */ $(de, C({
@@ -6673,38 +6674,38 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6673
6674
  })
6674
6675
  }))))));
6675
6676
  }), ld = /* @__PURE__ */ _((e, t) => {
6676
- const { __scopeSelect: n, onPlaced: o, ...r } = e, c = Ge(qe, n), a = Vt(qe, n), [i, s] = H(null), [d, u] = H(null), l = ce(
6677
+ const { __scopeSelect: n, onPlaced: o, ...r } = e, c = Ge(qe, n), i = Vt(qe, n), [a, s] = H(null), [d, u] = H(null), l = ce(
6677
6678
  t,
6678
6679
  (P) => u(P)
6679
- ), v = Mn(n), f = L(!1), m = L(!0), { viewport: p, selectedItem: b, selectedItemText: g, focusSelectedItem: h } = a, x = Z(() => {
6680
- if (c.trigger && c.valueNode && i && d && p && b && g) {
6680
+ ), v = Mn(n), f = L(!1), m = L(!0), { viewport: p, selectedItem: b, selectedItemText: g, focusSelectedItem: h } = i, x = Z(() => {
6681
+ if (c.trigger && c.valueNode && a && d && p && b && g) {
6681
6682
  const P = c.trigger.getBoundingClientRect(), E = d.getBoundingClientRect(), D = c.valueNode.getBoundingClientRect(), z = g.getBoundingClientRect();
6682
6683
  if (c.dir !== "rtl") {
6683
6684
  const X = z.left - E.left, q = D.left - X, fe = P.left - q, se = P.width + fe, tt = Math.max(se, E.width), nt = window.innerWidth - Ce, ot = no(q, [
6684
6685
  Ce,
6685
6686
  nt - tt
6686
6687
  ]);
6687
- i.style.minWidth = se + "px", i.style.left = ot + "px";
6688
+ a.style.minWidth = se + "px", a.style.left = ot + "px";
6688
6689
  } else {
6689
6690
  const X = E.right - z.right, q = window.innerWidth - D.right - X, fe = window.innerWidth - P.right - q, se = P.width + fe, tt = Math.max(se, E.width), nt = window.innerWidth - Ce, ot = no(q, [
6690
6691
  Ce,
6691
6692
  nt - tt
6692
6693
  ]);
6693
- i.style.minWidth = se + "px", i.style.right = ot + "px";
6694
+ a.style.minWidth = se + "px", a.style.right = ot + "px";
6694
6695
  }
6695
- const k = v(), T = window.innerHeight - Ce * 2, G = p.scrollHeight, B = window.getComputedStyle(d), F = parseInt(B.borderTopWidth, 10), I = parseInt(B.paddingTop, 10), re = parseInt(B.borderBottomWidth, 10), J = parseInt(B.paddingBottom, 10), R = F + I + G + J + re, j = Math.min(b.offsetHeight * 5, R), oe = window.getComputedStyle(p), ae = parseInt(oe.paddingTop, 10), ee = parseInt(oe.paddingBottom, 10), ie = P.top + P.height / 2 - Ce, de = T - ie, ue = b.offsetHeight / 2, O = b.offsetTop + ue, V = F + I + O, te = R - V;
6696
- if (V <= ie) {
6696
+ const k = v(), T = window.innerHeight - Ce * 2, G = p.scrollHeight, B = window.getComputedStyle(d), F = parseInt(B.borderTopWidth, 10), I = parseInt(B.paddingTop, 10), re = parseInt(B.borderBottomWidth, 10), J = parseInt(B.paddingBottom, 10), R = F + I + G + J + re, j = Math.min(b.offsetHeight * 5, R), oe = window.getComputedStyle(p), ie = parseInt(oe.paddingTop, 10), ee = parseInt(oe.paddingBottom, 10), ae = P.top + P.height / 2 - Ce, de = T - ae, ue = b.offsetHeight / 2, O = b.offsetTop + ue, V = F + I + O, te = R - V;
6697
+ if (V <= ae) {
6697
6698
  const X = b === k[k.length - 1].ref.current;
6698
- i.style.bottom = "0px";
6699
+ a.style.bottom = "0px";
6699
6700
  const q = d.clientHeight - p.offsetTop - p.offsetHeight, fe = Math.max(de, ue + (X ? ee : 0) + q + re), se = V + fe;
6700
- i.style.height = se + "px";
6701
+ a.style.height = se + "px";
6701
6702
  } else {
6702
6703
  const X = b === k[0].ref.current;
6703
- i.style.top = "0px";
6704
- const fe = Math.max(ie, F + p.offsetTop + (X ? ae : 0) + ue) + te;
6705
- i.style.height = fe + "px", p.scrollTop = V - ie + p.offsetTop;
6704
+ a.style.top = "0px";
6705
+ const fe = Math.max(ae, F + p.offsetTop + (X ? ie : 0) + ue) + te;
6706
+ a.style.height = fe + "px", p.scrollTop = V - ae + p.offsetTop;
6706
6707
  }
6707
- i.style.margin = `${Ce}px 0`, i.style.minHeight = j + "px", i.style.maxHeight = T + "px", o == null || o(), requestAnimationFrame(
6708
+ a.style.margin = `${Ce}px 0`, a.style.minHeight = j + "px", a.style.maxHeight = T + "px", o == null || o(), requestAnimationFrame(
6708
6709
  () => f.current = !0
6709
6710
  );
6710
6711
  }
@@ -6712,7 +6713,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6712
6713
  v,
6713
6714
  c.trigger,
6714
6715
  c.valueNode,
6715
- i,
6716
+ a,
6716
6717
  d,
6717
6718
  p,
6718
6719
  b,
@@ -6740,7 +6741,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6740
6741
  ]);
6741
6742
  return /* @__PURE__ */ $(dd, {
6742
6743
  scope: n,
6743
- contentWrapper: i,
6744
+ contentWrapper: a,
6744
6745
  shouldExpandOnScrollRef: f,
6745
6746
  onScrollButtonChange: M
6746
6747
  }, /* @__PURE__ */ $("div", {
@@ -6763,8 +6764,8 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6763
6764
  }
6764
6765
  }))));
6765
6766
  }), oo = /* @__PURE__ */ _((e, t) => {
6766
- const { __scopeSelect: n, align: o = "start", collisionPadding: r = Ce, ...c } = e, a = Rn(n);
6767
- return /* @__PURE__ */ $(Wo, C({}, a, c, {
6767
+ const { __scopeSelect: n, align: o = "start", collisionPadding: r = Ce, ...c } = e, i = Rn(n);
6768
+ return /* @__PURE__ */ $(Wo, C({}, i, c, {
6768
6769
  ref: t,
6769
6770
  align: o,
6770
6771
  collisionPadding: r,
@@ -6780,7 +6781,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6780
6781
  }
6781
6782
  }));
6782
6783
  }), [dd, ud] = et(qe, {}), ro = "SelectViewport", fd = /* @__PURE__ */ _((e, t) => {
6783
- const { __scopeSelect: n, ...o } = e, r = Vt(ro, n), c = ud(ro, n), a = ce(t, r.onViewportChange), i = L(0);
6784
+ const { __scopeSelect: n, ...o } = e, r = Vt(ro, n), c = ud(ro, n), i = ce(t, r.onViewportChange), a = L(0);
6784
6785
  return /* @__PURE__ */ $(It, null, /* @__PURE__ */ $("style", {
6785
6786
  dangerouslySetInnerHTML: {
6786
6787
  __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"
@@ -6791,7 +6792,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6791
6792
  "data-radix-select-viewport": "",
6792
6793
  role: "presentation"
6793
6794
  }, o, {
6794
- ref: a,
6795
+ ref: i,
6795
6796
  style: {
6796
6797
  // we use position: 'relative' here on the `viewport` so that when we call
6797
6798
  // `selectedItem.offsetTop` in calculations, the offset is relative to the viewport
@@ -6804,7 +6805,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6804
6805
  onScroll: A(o.onScroll, (s) => {
6805
6806
  const d = s.currentTarget, { contentWrapper: u, shouldExpandOnScrollRef: l } = c;
6806
6807
  if (l != null && l.current && u) {
6807
- const v = Math.abs(i.current - d.scrollTop);
6808
+ const v = Math.abs(a.current - d.scrollTop);
6808
6809
  if (v > 0) {
6809
6810
  const f = window.innerHeight - Ce * 2, m = parseFloat(u.style.minHeight), p = parseFloat(u.style.height), b = Math.max(m, p);
6810
6811
  if (b < f) {
@@ -6813,7 +6814,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6813
6814
  }
6814
6815
  }
6815
6816
  }
6816
- i.current = d.scrollTop;
6817
+ a.current = d.scrollTop;
6817
6818
  })
6818
6819
  }))));
6819
6820
  }), pd = "SelectGroup", [md, vd] = et(pd), gd = /* @__PURE__ */ _((e, t) => {
@@ -6835,11 +6836,11 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6835
6836
  ref: t
6836
6837
  }));
6837
6838
  }), un = "SelectItem", [$d, Hr] = et(un), xd = /* @__PURE__ */ _((e, t) => {
6838
- const { __scopeSelect: n, value: o, disabled: r = !1, textValue: c, ...a } = e, i = Ge(un, n), s = Vt(un, n), d = i.value === o, [u, l] = H(c ?? ""), [v, f] = H(!1), m = ce(t, (g) => {
6839
+ const { __scopeSelect: n, value: o, disabled: r = !1, textValue: c, ...i } = e, a = Ge(un, n), s = Vt(un, n), d = a.value === o, [u, l] = H(c ?? ""), [v, f] = H(!1), m = ce(t, (g) => {
6839
6840
  var h;
6840
6841
  return (h = s.itemRefCallback) === null || h === void 0 ? void 0 : h.call(s, g, o, r);
6841
6842
  }), p = Te(), b = () => {
6842
- r || (i.onValueChange(o), i.onOpenChange(!1));
6843
+ r || (a.onValueChange(o), a.onOpenChange(!1));
6843
6844
  };
6844
6845
  return /* @__PURE__ */ $($d, {
6845
6846
  scope: n,
@@ -6867,18 +6868,18 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6867
6868
  "aria-disabled": r || void 0,
6868
6869
  "data-disabled": r ? "" : void 0,
6869
6870
  tabIndex: r ? void 0 : -1
6870
- }, a, {
6871
+ }, i, {
6871
6872
  ref: m,
6872
6873
  onFocus: A(
6873
- a.onFocus,
6874
+ i.onFocus,
6874
6875
  () => f(!0)
6875
6876
  ),
6876
6877
  onBlur: A(
6877
- a.onBlur,
6878
+ i.onBlur,
6878
6879
  () => f(!1)
6879
6880
  ),
6880
- onPointerUp: A(a.onPointerUp, b),
6881
- onPointerMove: A(a.onPointerMove, (g) => {
6881
+ onPointerUp: A(i.onPointerUp, b),
6882
+ onPointerMove: A(i.onPointerMove, (g) => {
6882
6883
  if (r) {
6883
6884
  var h;
6884
6885
  (h = s.onItemLeave) === null || h === void 0 || h.call(s);
@@ -6887,25 +6888,25 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6887
6888
  preventScroll: !0
6888
6889
  });
6889
6890
  }),
6890
- onPointerLeave: A(a.onPointerLeave, (g) => {
6891
+ onPointerLeave: A(i.onPointerLeave, (g) => {
6891
6892
  if (g.currentTarget === document.activeElement) {
6892
6893
  var h;
6893
6894
  (h = s.onItemLeave) === null || h === void 0 || h.call(s);
6894
6895
  }
6895
6896
  }),
6896
- onKeyDown: A(a.onKeyDown, (g) => {
6897
+ onKeyDown: A(i.onKeyDown, (g) => {
6897
6898
  var h;
6898
6899
  ((h = s.searchRef) === null || h === void 0 ? void 0 : h.current) !== "" && g.key === " " || (Xl.includes(g.key) && b(), g.key === " " && g.preventDefault());
6899
6900
  })
6900
6901
  }))));
6901
6902
  }), wt = "SelectItemText", wd = /* @__PURE__ */ _((e, t) => {
6902
- const { __scopeSelect: n, className: o, style: r, ...c } = e, a = Ge(wt, n), i = Vt(wt, n), s = Hr(wt, n), d = Jl(wt, n), [u, l] = H(null), v = ce(
6903
+ const { __scopeSelect: n, className: o, style: r, ...c } = e, i = Ge(wt, n), a = Vt(wt, n), s = Hr(wt, n), d = Jl(wt, n), [u, l] = H(null), v = ce(
6903
6904
  t,
6904
6905
  (g) => l(g),
6905
6906
  s.onItemTextChange,
6906
6907
  (g) => {
6907
6908
  var h;
6908
- return (h = i.itemTextRefCallback) === null || h === void 0 ? void 0 : h.call(i, g, s.value, s.disabled);
6909
+ return (h = a.itemTextRefCallback) === null || h === void 0 ? void 0 : h.call(a, g, s.value, s.disabled);
6909
6910
  }
6910
6911
  ), f = u == null ? void 0 : u.textContent, m = Ve(
6911
6912
  () => /* @__PURE__ */ $("option", {
@@ -6927,7 +6928,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6927
6928
  id: s.textId
6928
6929
  }, c, {
6929
6930
  ref: v
6930
- })), s.isSelected && a.valueNode && !a.valueNodeHasChildren ? /* @__PURE__ */ io(c.children, a.valueNode) : null);
6931
+ })), s.isSelected && i.valueNode && !i.valueNodeHasChildren ? /* @__PURE__ */ ao(c.children, i.valueNode) : null);
6931
6932
  }), yd = "SelectItemIndicator", Cd = /* @__PURE__ */ _((e, t) => {
6932
6933
  const { __scopeSelect: n, ...o } = e;
6933
6934
  return Hr(yd, n).isSelected ? /* @__PURE__ */ $(Q.span, C({
@@ -6943,17 +6944,17 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6943
6944
  ref: t
6944
6945
  }));
6945
6946
  }), zr = /* @__PURE__ */ _((e, t) => {
6946
- const { value: n, ...o } = e, r = L(null), c = ce(t, r), a = Ar(n);
6947
+ const { value: n, ...o } = e, r = L(null), c = ce(t, r), i = Ar(n);
6947
6948
  return U(() => {
6948
- const i = r.current, s = window.HTMLSelectElement.prototype, u = Object.getOwnPropertyDescriptor(s, "value").set;
6949
- if (a !== n && u) {
6949
+ const a = r.current, s = window.HTMLSelectElement.prototype, u = Object.getOwnPropertyDescriptor(s, "value").set;
6950
+ if (i !== n && u) {
6950
6951
  const l = new Event("change", {
6951
6952
  bubbles: !0
6952
6953
  });
6953
- u.call(i, n), i.dispatchEvent(l);
6954
+ u.call(a, n), a.dispatchEvent(l);
6954
6955
  }
6955
6956
  }, [
6956
- a,
6957
+ i,
6957
6958
  n
6958
6959
  ]), /* @__PURE__ */ $(jl, {
6959
6960
  asChild: !0
@@ -6964,14 +6965,14 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
6964
6965
  });
6965
6966
  zr.displayName = "BubbleSelect";
6966
6967
  function Ur(e) {
6967
- const t = ve(e), n = L(""), o = L(0), r = Z((a) => {
6968
- const i = n.current + a;
6969
- t(i), function s(d) {
6968
+ const t = ve(e), n = L(""), o = L(0), r = Z((i) => {
6969
+ const a = n.current + i;
6970
+ t(a), function s(d) {
6970
6971
  n.current = d, window.clearTimeout(o.current), d !== "" && (o.current = window.setTimeout(
6971
6972
  () => s(""),
6972
6973
  1e3
6973
6974
  ));
6974
- }(i);
6975
+ }(a);
6975
6976
  }, [
6976
6977
  t
6977
6978
  ]), c = Z(() => {
@@ -6987,11 +6988,11 @@ function Kr(e, t, n) {
6987
6988
  const r = t.length > 1 && Array.from(t).every(
6988
6989
  (d) => d === t[0]
6989
6990
  ) ? t[0] : t, c = n ? e.indexOf(n) : -1;
6990
- let a = Pd(e, Math.max(c, 0));
6991
- r.length === 1 && (a = a.filter(
6991
+ let i = Pd(e, Math.max(c, 0));
6992
+ r.length === 1 && (i = i.filter(
6992
6993
  (d) => d !== n
6993
6994
  ));
6994
- const s = a.find(
6995
+ const s = i.find(
6995
6996
  (d) => d.textValue.toLowerCase().startsWith(r.toLowerCase())
6996
6997
  );
6997
6998
  return s !== n ? s : void 0;
@@ -7001,7 +7002,7 @@ function Pd(e, t) {
7001
7002
  (n, o) => e[(t + o) % e.length]
7002
7003
  );
7003
7004
  }
7004
- const Ed = ed, Vr = nd, _d = rd, Md = cd, Rd = ad, jr = id, Td = fd, Od = gd, Yr = bd, Xr = xd, Ad = wd, Id = Cd, qr = Sd, au = Ed, iu = Od, su = _d, Nd = S.forwardRef(({ className: e = "", children: t, ...n }, o) => /* @__PURE__ */ lt(
7005
+ const Ed = ed, Vr = nd, _d = rd, Md = cd, Rd = id, jr = ad, Td = fd, Od = gd, Yr = bd, Xr = xd, Ad = wd, Id = Cd, qr = Sd, iu = Ed, au = Od, su = _d, Nd = S.forwardRef(({ className: e = "", children: t, ...n }, o) => /* @__PURE__ */ lt(
7005
7006
  Vr,
7006
7007
  {
7007
7008
  ref: o,
@@ -7105,9 +7106,9 @@ export {
7105
7106
  Vd as Paragraph,
7106
7107
  Kl as RadioGroup,
7107
7108
  Vl as RadioGroupItem,
7108
- au as Select,
7109
+ iu as Select,
7109
7110
  Dd as SelectContent,
7110
- iu as SelectGroup,
7111
+ au as SelectGroup,
7111
7112
  Fd as SelectItem,
7112
7113
  kd as SelectLabel,
7113
7114
  Ld as SelectSeparator,