@arcadeai/design-system 0.7.1 → 0.7.3

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.
Files changed (71) hide show
  1. package/dist/assets/index.css +1 -1
  2. package/dist/assets/tokens.css +1 -1
  3. package/dist/assets/variables.css +1 -1
  4. package/dist/{check-CxcShTlQ.js → check-B5h1DvDs.js} +2 -2
  5. package/dist/{chevron-down-D_a-ccxi.js → chevron-down-DmZMdOiC.js} +2 -2
  6. package/dist/{chevron-right-DriXIqe5.js → chevron-right-BYYHEJjK.js} +2 -2
  7. package/dist/components/ui/atoms/accordion.js +70 -74
  8. package/dist/components/ui/atoms/alert.js +2 -2
  9. package/dist/components/ui/atoms/avatar.js +5 -5
  10. package/dist/components/ui/atoms/badge.js +3 -3
  11. package/dist/components/ui/atoms/breadcrumb.js +5 -5
  12. package/dist/components/ui/atoms/button.js +3 -3
  13. package/dist/components/ui/atoms/card.js +1 -1
  14. package/dist/components/ui/atoms/chart.js +2153 -2154
  15. package/dist/components/ui/atoms/collapsible.js +1 -1
  16. package/dist/components/ui/atoms/command.js +15 -15
  17. package/dist/components/ui/atoms/dialog.js +2 -2
  18. package/dist/components/ui/atoms/dropdown-menu.js +367 -384
  19. package/dist/components/ui/atoms/form.d.ts +1 -1
  20. package/dist/components/ui/atoms/form.js +182 -199
  21. package/dist/components/ui/atoms/hover-card.js +40 -41
  22. package/dist/components/ui/atoms/input.js +1 -1
  23. package/dist/components/ui/atoms/label.js +18 -19
  24. package/dist/components/ui/atoms/popover.js +107 -110
  25. package/dist/components/ui/atoms/progress.js +3 -3
  26. package/dist/components/ui/atoms/resizable.js +8 -8
  27. package/dist/components/ui/atoms/scroll-area.js +82 -84
  28. package/dist/components/ui/atoms/select.js +393 -407
  29. package/dist/components/ui/atoms/separator.js +2 -2
  30. package/dist/components/ui/atoms/sheet.js +2 -2
  31. package/dist/components/ui/atoms/sidebar.js +18 -18
  32. package/dist/components/ui/atoms/skeleton.js +1 -1
  33. package/dist/components/ui/atoms/slider.js +213 -214
  34. package/dist/components/ui/atoms/sonner.js +28 -28
  35. package/dist/components/ui/atoms/switch.js +7 -7
  36. package/dist/components/ui/atoms/table.js +1 -1
  37. package/dist/components/ui/atoms/tabs.js +8 -8
  38. package/dist/components/ui/atoms/textarea.js +1 -1
  39. package/dist/components/ui/atoms/toggle.js +5 -5
  40. package/dist/components/ui/atoms/tooltip.js +103 -104
  41. package/dist/{createLucideIcon-B6fy1GTR.js → createLucideIcon-XRdN60yz.js} +4 -4
  42. package/dist/index-0ioNhtNM.js +10 -0
  43. package/dist/index-437EL2iq.js +52 -0
  44. package/dist/{index-CB1Wkg0G.js → index-5Bhkapwi.js} +2 -3
  45. package/dist/index-B695uy69.js +9 -0
  46. package/dist/{index-CHDs-SiB.js → index-BGQepRFJ.js} +1 -1
  47. package/dist/{index-BAhNQL1u.js → index-BvWMjxZ5.js} +22 -23
  48. package/dist/index-C8_QusYl.js +70 -0
  49. package/dist/index-CCKe-Mpx.js +6 -0
  50. package/dist/{index-DdnpnyX2.js → index-CQhYMnjT.js} +4 -4
  51. package/dist/{index-C9KW2H79.js → index-CpDnqHCm.js} +1 -1
  52. package/dist/{index-CxK6rt_N.js → index-CtSXVDca.js} +8 -8
  53. package/dist/{index-umR1UobZ.js → index-Cv867SGx.js} +1 -1
  54. package/dist/{index-CuMpq4Un.js → index-CxO14pcK.js} +2 -2
  55. package/dist/index-DFZozV_h.js +68 -0
  56. package/dist/index-DLfXSskr.js +255 -0
  57. package/dist/{index-D2uXV4lz.js → index-DMCYNwtg.js} +8 -8
  58. package/dist/index-DYHsXnnS.js +144 -0
  59. package/dist/{index-nluJZSbA.js → index-DfNPZZ8M.js} +1 -1
  60. package/dist/{index-Dy7YuPrV.js → index-f0YS5Ufh.js} +319 -321
  61. package/dist/lib/utils.js +1 -1
  62. package/dist/{utils-Dy2WjYNJ.js → utils-CRiPKpXj.js} +41 -42
  63. package/package.json +32 -26
  64. package/dist/index-CL4N9wMT.js +0 -259
  65. package/dist/index-DLeNytVF.js +0 -9
  66. package/dist/index-DYfkNB0n.js +0 -54
  67. package/dist/index-DuekHEmj.js +0 -6
  68. package/dist/index-DwYXX2sM.js +0 -13
  69. package/dist/index-QMp1pYFl.js +0 -145
  70. package/dist/index-UFb2E87s.js +0 -70
  71. package/dist/index-p7nYL7BU.js +0 -71
@@ -1,26 +1,26 @@
1
- import * as C from "react";
2
- import { useLayoutEffect as Ce } from "react";
3
- import * as Oe from "react-dom";
4
- import { P as bt } from "./index-C9KW2H79.js";
1
+ import * as R from "react";
2
+ import { useLayoutEffect as xe } from "react";
3
+ import * as ye from "react-dom";
4
+ import { P as At } from "./index-CpDnqHCm.js";
5
5
  import { jsx as X } from "react/jsx-runtime";
6
- import { u as Ut } from "./index-CB1Wkg0G.js";
7
- import { c as Pe } from "./index-UFb2E87s.js";
8
- import { u as Se } from "./index-DwYXX2sM.js";
9
- import { u as _t } from "./index-DuekHEmj.js";
10
- import { u as Ee } from "./index-CHDs-SiB.js";
11
- const De = ["top", "right", "bottom", "left"], Z = Math.min, H = Math.max, ft = Math.round, lt = Math.floor, I = (t) => ({
6
+ import { u as Vt } from "./index-5Bhkapwi.js";
7
+ import { c as ve } from "./index-DFZozV_h.js";
8
+ import { u as Ae } from "./index-0ioNhtNM.js";
9
+ import { u as $t } from "./index-CCKe-Mpx.js";
10
+ import { u as be } from "./index-BGQepRFJ.js";
11
+ const Re = ["top", "right", "bottom", "left"], Z = Math.min, H = Math.max, at = Math.round, ct = Math.floor, I = (t) => ({
12
12
  x: t,
13
13
  y: t
14
- }), Le = {
14
+ }), Ce = {
15
15
  left: "right",
16
16
  right: "left",
17
17
  bottom: "top",
18
18
  top: "bottom"
19
- }, Te = {
19
+ }, Oe = {
20
20
  start: "end",
21
21
  end: "start"
22
22
  };
23
- function yt(t, e, n) {
23
+ function xt(t, e, n) {
24
24
  return H(t, Z(e, n));
25
25
  }
26
26
  function q(t, e) {
@@ -32,32 +32,32 @@ function U(t) {
32
32
  function tt(t) {
33
33
  return t.split("-")[1];
34
34
  }
35
- function Rt(t) {
35
+ function bt(t) {
36
36
  return t === "x" ? "y" : "x";
37
37
  }
38
- function Ct(t) {
38
+ function Rt(t) {
39
39
  return t === "y" ? "height" : "width";
40
40
  }
41
- function z(t) {
41
+ function V(t) {
42
42
  return ["top", "bottom"].includes(U(t)) ? "y" : "x";
43
43
  }
44
- function Ot(t) {
45
- return Rt(z(t));
44
+ function Ct(t) {
45
+ return bt(V(t));
46
46
  }
47
- function Me(t, e, n) {
47
+ function Pe(t, e, n) {
48
48
  n === void 0 && (n = !1);
49
- const o = tt(t), i = Ot(t), r = Ct(i);
49
+ const o = tt(t), i = Ct(t), r = Rt(i);
50
50
  let s = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
51
- return e.reference[r] > e.floating[r] && (s = ut(s)), [s, ut(s)];
51
+ return e.reference[r] > e.floating[r] && (s = ft(s)), [s, ft(s)];
52
52
  }
53
- function $e(t) {
54
- const e = ut(t);
55
- return [vt(t), e, vt(e)];
53
+ function Se(t) {
54
+ const e = ft(t);
55
+ return [yt(t), e, yt(e)];
56
56
  }
57
- function vt(t) {
58
- return t.replace(/start|end/g, (e) => Te[e]);
57
+ function yt(t) {
58
+ return t.replace(/start|end/g, (e) => Oe[e]);
59
59
  }
60
- function ke(t, e, n) {
60
+ function Ee(t, e, n) {
61
61
  const o = ["left", "right"], i = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
62
62
  switch (t) {
63
63
  case "top":
@@ -70,15 +70,15 @@ function ke(t, e, n) {
70
70
  return [];
71
71
  }
72
72
  }
73
- function Fe(t, e, n, o) {
73
+ function De(t, e, n, o) {
74
74
  const i = tt(t);
75
- let r = ke(U(t), n === "start", o);
76
- return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(vt)))), r;
75
+ let r = Ee(U(t), n === "start", o);
76
+ return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(yt)))), r;
77
77
  }
78
- function ut(t) {
79
- return t.replace(/left|right|bottom|top/g, (e) => Le[e]);
78
+ function ft(t) {
79
+ return t.replace(/left|right|bottom|top/g, (e) => Ce[e]);
80
80
  }
81
- function Ne(t) {
81
+ function Le(t) {
82
82
  return {
83
83
  top: 0,
84
84
  right: 0,
@@ -87,15 +87,15 @@ function Ne(t) {
87
87
  ...t
88
88
  };
89
89
  }
90
- function Zt(t) {
91
- return typeof t != "number" ? Ne(t) : {
90
+ function It(t) {
91
+ return typeof t != "number" ? Le(t) : {
92
92
  top: t,
93
93
  right: t,
94
94
  bottom: t,
95
95
  left: t
96
96
  };
97
97
  }
98
- function dt(t) {
98
+ function ut(t) {
99
99
  const {
100
100
  x: e,
101
101
  y: n,
@@ -113,12 +113,12 @@ function dt(t) {
113
113
  y: n
114
114
  };
115
115
  }
116
- function Bt(t, e, n) {
116
+ function kt(t, e, n) {
117
117
  let {
118
118
  reference: o,
119
119
  floating: i
120
120
  } = t;
121
- const r = z(e), s = Ot(e), c = Ct(s), a = U(e), l = r === "y", f = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, p = o[c] / 2 - i[c] / 2;
121
+ const r = V(e), s = Ct(e), c = Rt(s), a = U(e), l = r === "y", f = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, p = o[c] / 2 - i[c] / 2;
122
122
  let d;
123
123
  switch (a) {
124
124
  case "top":
@@ -161,7 +161,7 @@ function Bt(t, e, n) {
161
161
  }
162
162
  return d;
163
163
  }
164
- const He = async (t, e, n) => {
164
+ const Te = async (t, e, n) => {
165
165
  const {
166
166
  placement: o = "bottom",
167
167
  strategy: i = "absolute",
@@ -175,7 +175,7 @@ const He = async (t, e, n) => {
175
175
  }), {
176
176
  x: f,
177
177
  y: u
178
- } = Bt(l, o, a), p = o, d = {}, m = 0;
178
+ } = kt(l, o, a), p = o, d = {}, m = 0;
179
179
  for (let h = 0; h < c.length; h++) {
180
180
  const {
181
181
  name: w,
@@ -212,7 +212,7 @@ const He = async (t, e, n) => {
212
212
  }) : v.rects), {
213
213
  x: f,
214
214
  y: u
215
- } = Bt(l, p, a)), h = -1);
215
+ } = kt(l, p, a)), h = -1);
216
216
  }
217
217
  return {
218
218
  x: f,
@@ -238,7 +238,7 @@ async function ot(t, e) {
238
238
  elementContext: u = "floating",
239
239
  altBoundary: p = !1,
240
240
  padding: d = 0
241
- } = q(e, t), m = Zt(d), w = c[p ? u === "floating" ? "reference" : "floating" : u], g = dt(await r.getClippingRect({
241
+ } = q(e, t), m = It(d), w = c[p ? u === "floating" ? "reference" : "floating" : u], g = ut(await r.getClippingRect({
242
242
  element: (n = await (r.isElement == null ? void 0 : r.isElement(w))) == null || n ? w : w.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(c.floating)),
243
243
  boundary: l,
244
244
  rootBoundary: f,
@@ -254,7 +254,7 @@ async function ot(t, e) {
254
254
  } : {
255
255
  x: 1,
256
256
  y: 1
257
- }, v = dt(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
257
+ }, v = ut(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
258
258
  elements: c,
259
259
  rect: x,
260
260
  offsetParent: A,
@@ -267,7 +267,7 @@ async function ot(t, e) {
267
267
  right: (v.right - g.right + m.right) / y.x
268
268
  };
269
269
  }
270
- const We = (t) => ({
270
+ const Me = (t) => ({
271
271
  name: "arrow",
272
272
  options: t,
273
273
  async fn(e) {
@@ -285,13 +285,13 @@ const We = (t) => ({
285
285
  } = q(t, e) || {};
286
286
  if (l == null)
287
287
  return {};
288
- const u = Zt(f), p = {
288
+ const u = It(f), p = {
289
289
  x: n,
290
290
  y: o
291
- }, d = Ot(i), m = Ct(d), h = await s.getDimensions(l), w = d === "y", g = w ? "top" : "left", x = w ? "bottom" : "right", A = w ? "clientHeight" : "clientWidth", y = r.reference[m] + r.reference[d] - p[d] - r.floating[m], v = p[d] - r.reference[d], R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
292
- let O = R ? R[A] : 0;
293
- (!O || !await (s.isElement == null ? void 0 : s.isElement(R))) && (O = c.floating[A] || r.floating[m]);
294
- const T = y / 2 - v / 2, F = O / 2 - h[m] / 2 - 1, L = Z(u[g], F), $ = Z(u[x], F), k = L, S = O - h[m] - $, P = O / 2 - h[m] / 2 + T, N = yt(k, P, S), E = !a.arrow && tt(i) != null && P !== N && r.reference[m] / 2 - (P < k ? L : $) - h[m] / 2 < 0, D = E ? P < k ? P - k : P - S : 0;
291
+ }, d = Ct(i), m = Rt(d), h = await s.getDimensions(l), w = d === "y", g = w ? "top" : "left", x = w ? "bottom" : "right", A = w ? "clientHeight" : "clientWidth", y = r.reference[m] + r.reference[d] - p[d] - r.floating[m], v = p[d] - r.reference[d], O = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
292
+ let C = O ? O[A] : 0;
293
+ (!C || !await (s.isElement == null ? void 0 : s.isElement(O))) && (C = c.floating[A] || r.floating[m]);
294
+ const T = y / 2 - v / 2, F = C / 2 - h[m] / 2 - 1, L = Z(u[g], F), $ = Z(u[x], F), k = L, S = C - h[m] - $, P = C / 2 - h[m] / 2 + T, N = xt(k, P, S), E = !a.arrow && tt(i) != null && P !== N && r.reference[m] / 2 - (P < k ? L : $) - h[m] / 2 < 0, D = E ? P < k ? P - k : P - S : 0;
295
295
  return {
296
296
  [d]: p[d] + D,
297
297
  data: {
@@ -304,7 +304,7 @@ const We = (t) => ({
304
304
  reset: E
305
305
  };
306
306
  }
307
- }), _e = function(t) {
307
+ }), $e = function(t) {
308
308
  return t === void 0 && (t = {}), {
309
309
  name: "flip",
310
310
  options: t,
@@ -328,12 +328,12 @@ const We = (t) => ({
328
328
  } = q(t, e);
329
329
  if ((n = r.arrow) != null && n.alignmentOffset)
330
330
  return {};
331
- const g = U(i), x = z(c), A = U(c) === c, y = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), v = p || (A || !h ? [ut(c)] : $e(c)), R = m !== "none";
332
- !p && R && v.push(...Fe(c, h, m, y));
333
- const O = [c, ...v], T = await ot(e, w), F = [];
331
+ const g = U(i), x = V(c), A = U(c) === c, y = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), v = p || (A || !h ? [ft(c)] : Se(c)), O = m !== "none";
332
+ !p && O && v.push(...De(c, h, m, y));
333
+ const C = [c, ...v], T = await ot(e, w), F = [];
334
334
  let L = ((o = r.flip) == null ? void 0 : o.overflows) || [];
335
335
  if (f && F.push(T[g]), u) {
336
- const P = Me(i, s, y);
336
+ const P = Pe(i, s, y);
337
337
  F.push(T[P[0]], T[P[1]]);
338
338
  }
339
339
  if (L = [...L, {
@@ -341,10 +341,10 @@ const We = (t) => ({
341
341
  overflows: F
342
342
  }], !F.every((P) => P <= 0)) {
343
343
  var $, k;
344
- const P = ((($ = r.flip) == null ? void 0 : $.index) || 0) + 1, N = O[P];
345
- if (N && (!(u === "alignment" ? x !== z(N) : !1) || // We leave the current main axis only if every placement on that axis
344
+ const P = ((($ = r.flip) == null ? void 0 : $.index) || 0) + 1, N = C[P];
345
+ if (N && (!(u === "alignment" ? x !== V(N) : !1) || // We leave the current main axis only if every placement on that axis
346
346
  // overflows the main axis.
347
- L.every((b) => b.overflows[0] > 0 && z(b.placement) === x)))
347
+ L.every((b) => b.overflows[0] > 0 && V(b.placement) === x)))
348
348
  return {
349
349
  data: {
350
350
  index: P,
@@ -360,14 +360,14 @@ const We = (t) => ({
360
360
  case "bestFit": {
361
361
  var S;
362
362
  const D = (S = L.filter((b) => {
363
- if (R) {
364
- const M = z(b.placement);
363
+ if (O) {
364
+ const M = V(b.placement);
365
365
  return M === x || // Create a bias to the `y` side axis due to horizontal
366
366
  // reading directions favoring greater width.
367
367
  M === "y";
368
368
  }
369
369
  return !0;
370
- }).map((b) => [b.placement, b.overflows.filter((M) => M > 0).reduce((M, V) => M + V, 0)]).sort((b, M) => b[1] - M[1])[0]) == null ? void 0 : S[0];
370
+ }).map((b) => [b.placement, b.overflows.filter((M) => M > 0).reduce((M, z) => M + z, 0)]).sort((b, M) => b[1] - M[1])[0]) == null ? void 0 : S[0];
371
371
  D && (E = D);
372
372
  break;
373
373
  }
@@ -386,7 +386,7 @@ const We = (t) => ({
386
386
  }
387
387
  };
388
388
  };
389
- function Vt(t, e) {
389
+ function Ft(t, e) {
390
390
  return {
391
391
  top: t.top - e.height,
392
392
  right: t.right - e.width,
@@ -394,10 +394,10 @@ function Vt(t, e) {
394
394
  left: t.left - e.width
395
395
  };
396
396
  }
397
- function zt(t) {
398
- return De.some((e) => t[e] >= 0);
397
+ function Nt(t) {
398
+ return Re.some((e) => t[e] >= 0);
399
399
  }
400
- const Be = function(t) {
400
+ const ke = function(t) {
401
401
  return t === void 0 && (t = {}), {
402
402
  name: "hide",
403
403
  options: t,
@@ -413,11 +413,11 @@ const Be = function(t) {
413
413
  const r = await ot(e, {
414
414
  ...i,
415
415
  elementContext: "reference"
416
- }), s = Vt(r, n.reference);
416
+ }), s = Ft(r, n.reference);
417
417
  return {
418
418
  data: {
419
419
  referenceHiddenOffsets: s,
420
- referenceHidden: zt(s)
420
+ referenceHidden: Nt(s)
421
421
  }
422
422
  };
423
423
  }
@@ -425,11 +425,11 @@ const Be = function(t) {
425
425
  const r = await ot(e, {
426
426
  ...i,
427
427
  altBoundary: !0
428
- }), s = Vt(r, n.floating);
428
+ }), s = Ft(r, n.floating);
429
429
  return {
430
430
  data: {
431
431
  escapedOffsets: s,
432
- escaped: zt(s)
432
+ escaped: Nt(s)
433
433
  }
434
434
  };
435
435
  }
@@ -439,12 +439,12 @@ const Be = function(t) {
439
439
  }
440
440
  };
441
441
  };
442
- async function Ve(t, e) {
442
+ async function Fe(t, e) {
443
443
  const {
444
444
  placement: n,
445
445
  platform: o,
446
446
  elements: i
447
- } = t, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = U(n), c = tt(n), a = z(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, f = r && a ? -1 : 1, u = q(e, t);
447
+ } = t, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = U(n), c = tt(n), a = V(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, f = r && a ? -1 : 1, u = q(e, t);
448
448
  let {
449
449
  mainAxis: p,
450
450
  crossAxis: d,
@@ -466,7 +466,7 @@ async function Ve(t, e) {
466
466
  y: d * f
467
467
  };
468
468
  }
469
- const ze = function(t) {
469
+ const Ne = function(t) {
470
470
  return t === void 0 && (t = 0), {
471
471
  name: "offset",
472
472
  options: t,
@@ -477,7 +477,7 @@ const ze = function(t) {
477
477
  y: r,
478
478
  placement: s,
479
479
  middlewareData: c
480
- } = e, a = await Ve(e, t);
480
+ } = e, a = await Fe(e, t);
481
481
  return s === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
482
482
  x: i + a.x,
483
483
  y: r + a.y,
@@ -488,7 +488,7 @@ const ze = function(t) {
488
488
  };
489
489
  }
490
490
  };
491
- }, Ie = function(t) {
491
+ }, He = function(t) {
492
492
  return t === void 0 && (t = {}), {
493
493
  name: "shift",
494
494
  options: t,
@@ -516,15 +516,15 @@ const ze = function(t) {
516
516
  } = q(t, e), l = {
517
517
  x: n,
518
518
  y: o
519
- }, f = await ot(e, a), u = z(U(i)), p = Rt(u);
519
+ }, f = await ot(e, a), u = V(U(i)), p = bt(u);
520
520
  let d = l[p], m = l[u];
521
521
  if (r) {
522
522
  const w = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", x = d + f[w], A = d - f[g];
523
- d = yt(x, d, A);
523
+ d = xt(x, d, A);
524
524
  }
525
525
  if (s) {
526
526
  const w = u === "y" ? "top" : "left", g = u === "y" ? "bottom" : "right", x = m + f[w], A = m - f[g];
527
- m = yt(x, m, A);
527
+ m = xt(x, m, A);
528
528
  }
529
529
  const h = c.fn({
530
530
  ...e,
@@ -544,7 +544,7 @@ const ze = function(t) {
544
544
  };
545
545
  }
546
546
  };
547
- }, Ye = function(t) {
547
+ }, We = function(t) {
548
548
  return t === void 0 && (t = {}), {
549
549
  options: t,
550
550
  fn(e) {
@@ -561,7 +561,7 @@ const ze = function(t) {
561
561
  } = q(t, e), f = {
562
562
  x: n,
563
563
  y: o
564
- }, u = z(i), p = Rt(u);
564
+ }, u = V(i), p = bt(u);
565
565
  let d = f[p], m = f[u];
566
566
  const h = q(c, e), w = typeof h == "number" ? {
567
567
  mainAxis: h,
@@ -577,8 +577,8 @@ const ze = function(t) {
577
577
  }
578
578
  if (l) {
579
579
  var g, x;
580
- const A = p === "y" ? "width" : "height", y = ["top", "left"].includes(U(i)), v = r.reference[u] - r.floating[A] + (y && ((g = s.offset) == null ? void 0 : g[u]) || 0) + (y ? 0 : w.crossAxis), R = r.reference[u] + r.reference[A] + (y ? 0 : ((x = s.offset) == null ? void 0 : x[u]) || 0) - (y ? w.crossAxis : 0);
581
- m < v ? m = v : m > R && (m = R);
580
+ const A = p === "y" ? "width" : "height", y = ["top", "left"].includes(U(i)), v = r.reference[u] - r.floating[A] + (y && ((g = s.offset) == null ? void 0 : g[u]) || 0) + (y ? 0 : w.crossAxis), O = r.reference[u] + r.reference[A] + (y ? 0 : ((x = s.offset) == null ? void 0 : x[u]) || 0) - (y ? w.crossAxis : 0);
581
+ m < v ? m = v : m > O && (m = O);
582
582
  }
583
583
  return {
584
584
  [p]: d,
@@ -586,7 +586,7 @@ const ze = function(t) {
586
586
  };
587
587
  }
588
588
  };
589
- }, je = function(t) {
589
+ }, _e = function(t) {
590
590
  return t === void 0 && (t = {}), {
591
591
  name: "size",
592
592
  options: t,
@@ -601,22 +601,22 @@ const ze = function(t) {
601
601
  apply: a = () => {
602
602
  },
603
603
  ...l
604
- } = q(t, e), f = await ot(e, l), u = U(i), p = tt(i), d = z(i) === "y", {
604
+ } = q(t, e), f = await ot(e, l), u = U(i), p = tt(i), d = V(i) === "y", {
605
605
  width: m,
606
606
  height: h
607
607
  } = r.floating;
608
608
  let w, g;
609
609
  u === "top" || u === "bottom" ? (w = u, g = p === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (g = u, w = p === "end" ? "top" : "bottom");
610
- const x = h - f.top - f.bottom, A = m - f.left - f.right, y = Z(h - f[w], x), v = Z(m - f[g], A), R = !e.middlewareData.shift;
611
- let O = y, T = v;
612
- if ((n = e.middlewareData.shift) != null && n.enabled.x && (T = A), (o = e.middlewareData.shift) != null && o.enabled.y && (O = x), R && !p) {
610
+ const x = h - f.top - f.bottom, A = m - f.left - f.right, y = Z(h - f[w], x), v = Z(m - f[g], A), O = !e.middlewareData.shift;
611
+ let C = y, T = v;
612
+ if ((n = e.middlewareData.shift) != null && n.enabled.x && (T = A), (o = e.middlewareData.shift) != null && o.enabled.y && (C = x), O && !p) {
613
613
  const L = H(f.left, 0), $ = H(f.right, 0), k = H(f.top, 0), S = H(f.bottom, 0);
614
- d ? T = m - 2 * (L !== 0 || $ !== 0 ? L + $ : H(f.left, f.right)) : O = h - 2 * (k !== 0 || S !== 0 ? k + S : H(f.top, f.bottom));
614
+ d ? T = m - 2 * (L !== 0 || $ !== 0 ? L + $ : H(f.left, f.right)) : C = h - 2 * (k !== 0 || S !== 0 ? k + S : H(f.top, f.bottom));
615
615
  }
616
616
  await a({
617
617
  ...e,
618
618
  availableWidth: T,
619
- availableHeight: O
619
+ availableHeight: C
620
620
  });
621
621
  const F = await s.getDimensions(c.floating);
622
622
  return m !== F.width || h !== F.height ? {
@@ -627,11 +627,11 @@ const ze = function(t) {
627
627
  }
628
628
  };
629
629
  };
630
- function pt() {
630
+ function mt() {
631
631
  return typeof window < "u";
632
632
  }
633
633
  function et(t) {
634
- return Kt(t) ? (t.nodeName || "").toLowerCase() : "#document";
634
+ return Yt(t) ? (t.nodeName || "").toLowerCase() : "#document";
635
635
  }
636
636
  function W(t) {
637
637
  var e;
@@ -639,19 +639,19 @@ function W(t) {
639
639
  }
640
640
  function j(t) {
641
641
  var e;
642
- return (e = (Kt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
642
+ return (e = (Yt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
643
643
  }
644
- function Kt(t) {
645
- return pt() ? t instanceof Node || t instanceof W(t).Node : !1;
644
+ function Yt(t) {
645
+ return mt() ? t instanceof Node || t instanceof W(t).Node : !1;
646
646
  }
647
647
  function _(t) {
648
- return pt() ? t instanceof Element || t instanceof W(t).Element : !1;
648
+ return mt() ? t instanceof Element || t instanceof W(t).Element : !1;
649
649
  }
650
650
  function Y(t) {
651
- return pt() ? t instanceof HTMLElement || t instanceof W(t).HTMLElement : !1;
651
+ return mt() ? t instanceof HTMLElement || t instanceof W(t).HTMLElement : !1;
652
652
  }
653
- function It(t) {
654
- return !pt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof W(t).ShadowRoot;
653
+ function Ht(t) {
654
+ return !mt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof W(t).ShadowRoot;
655
655
  }
656
656
  function rt(t) {
657
657
  const {
@@ -662,10 +662,10 @@ function rt(t) {
662
662
  } = B(t);
663
663
  return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !["inline", "contents"].includes(i);
664
664
  }
665
- function Xe(t) {
665
+ function Be(t) {
666
666
  return ["table", "td", "th"].includes(et(t));
667
667
  }
668
- function ht(t) {
668
+ function pt(t) {
669
669
  return [":popover-open", ":modal"].some((e) => {
670
670
  try {
671
671
  return t.matches(e);
@@ -674,22 +674,22 @@ function ht(t) {
674
674
  }
675
675
  });
676
676
  }
677
- function Pt(t) {
678
- const e = St(), n = _(t) ? B(t) : t;
677
+ function Ot(t) {
678
+ const e = Pt(), n = _(t) ? B(t) : t;
679
679
  return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
680
680
  }
681
- function qe(t) {
681
+ function ze(t) {
682
682
  let e = K(t);
683
683
  for (; Y(e) && !Q(e); ) {
684
- if (Pt(e))
684
+ if (Ot(e))
685
685
  return e;
686
- if (ht(e))
686
+ if (pt(e))
687
687
  return null;
688
688
  e = K(e);
689
689
  }
690
690
  return null;
691
691
  }
692
- function St() {
692
+ function Pt() {
693
693
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
694
694
  }
695
695
  function Q(t) {
@@ -698,7 +698,7 @@ function Q(t) {
698
698
  function B(t) {
699
699
  return W(t).getComputedStyle(t);
700
700
  }
701
- function gt(t) {
701
+ function ht(t) {
702
702
  return _(t) ? {
703
703
  scrollLeft: t.scrollLeft,
704
704
  scrollTop: t.scrollTop
@@ -714,112 +714,112 @@ function K(t) {
714
714
  // Step into the shadow DOM of the parent of a slotted node.
715
715
  t.assignedSlot || // DOM Element detected.
716
716
  t.parentNode || // ShadowRoot detected.
717
- It(t) && t.host || // Fallback.
717
+ Ht(t) && t.host || // Fallback.
718
718
  j(t)
719
719
  );
720
- return It(e) ? e.host : e;
720
+ return Ht(e) ? e.host : e;
721
721
  }
722
- function Gt(t) {
722
+ function jt(t) {
723
723
  const e = K(t);
724
- return Q(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Y(e) && rt(e) ? e : Gt(e);
724
+ return Q(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Y(e) && rt(e) ? e : jt(e);
725
725
  }
726
726
  function it(t, e, n) {
727
727
  var o;
728
728
  e === void 0 && (e = []), n === void 0 && (n = !0);
729
- const i = Gt(t), r = i === ((o = t.ownerDocument) == null ? void 0 : o.body), s = W(i);
729
+ const i = jt(t), r = i === ((o = t.ownerDocument) == null ? void 0 : o.body), s = W(i);
730
730
  if (r) {
731
- const c = At(s);
731
+ const c = vt(s);
732
732
  return e.concat(s, s.visualViewport || [], rt(i) ? i : [], c && n ? it(c) : []);
733
733
  }
734
734
  return e.concat(i, it(i, [], n));
735
735
  }
736
- function At(t) {
736
+ function vt(t) {
737
737
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
738
738
  }
739
- function Jt(t) {
739
+ function Xt(t) {
740
740
  const e = B(t);
741
741
  let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
742
- const i = Y(t), r = i ? t.offsetWidth : n, s = i ? t.offsetHeight : o, c = ft(n) !== r || ft(o) !== s;
742
+ const i = Y(t), r = i ? t.offsetWidth : n, s = i ? t.offsetHeight : o, c = at(n) !== r || at(o) !== s;
743
743
  return c && (n = r, o = s), {
744
744
  width: n,
745
745
  height: o,
746
746
  $: c
747
747
  };
748
748
  }
749
- function Et(t) {
749
+ function St(t) {
750
750
  return _(t) ? t : t.contextElement;
751
751
  }
752
752
  function J(t) {
753
- const e = Et(t);
753
+ const e = St(t);
754
754
  if (!Y(e))
755
755
  return I(1);
756
756
  const n = e.getBoundingClientRect(), {
757
757
  width: o,
758
758
  height: i,
759
759
  $: r
760
- } = Jt(e);
761
- let s = (r ? ft(n.width) : n.width) / o, c = (r ? ft(n.height) : n.height) / i;
760
+ } = Xt(e);
761
+ let s = (r ? at(n.width) : n.width) / o, c = (r ? at(n.height) : n.height) / i;
762
762
  return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
763
763
  x: s,
764
764
  y: c
765
765
  };
766
766
  }
767
- const Ue = /* @__PURE__ */ I(0);
768
- function Qt(t) {
767
+ const Ve = /* @__PURE__ */ I(0);
768
+ function qt(t) {
769
769
  const e = W(t);
770
- return !St() || !e.visualViewport ? Ue : {
770
+ return !Pt() || !e.visualViewport ? Ve : {
771
771
  x: e.visualViewport.offsetLeft,
772
772
  y: e.visualViewport.offsetTop
773
773
  };
774
774
  }
775
- function Ze(t, e, n) {
775
+ function Ie(t, e, n) {
776
776
  return e === void 0 && (e = !1), !n || e && n !== W(t) ? !1 : e;
777
777
  }
778
778
  function G(t, e, n, o) {
779
779
  e === void 0 && (e = !1), n === void 0 && (n = !1);
780
- const i = t.getBoundingClientRect(), r = Et(t);
780
+ const i = t.getBoundingClientRect(), r = St(t);
781
781
  let s = I(1);
782
782
  e && (o ? _(o) && (s = J(o)) : s = J(t));
783
- const c = Ze(r, n, o) ? Qt(r) : I(0);
783
+ const c = Ie(r, n, o) ? qt(r) : I(0);
784
784
  let a = (i.left + c.x) / s.x, l = (i.top + c.y) / s.y, f = i.width / s.x, u = i.height / s.y;
785
785
  if (r) {
786
786
  const p = W(r), d = o && _(o) ? W(o) : o;
787
- let m = p, h = At(m);
787
+ let m = p, h = vt(m);
788
788
  for (; h && o && d !== m; ) {
789
789
  const w = J(h), g = h.getBoundingClientRect(), x = B(h), A = g.left + (h.clientLeft + parseFloat(x.paddingLeft)) * w.x, y = g.top + (h.clientTop + parseFloat(x.paddingTop)) * w.y;
790
- a *= w.x, l *= w.y, f *= w.x, u *= w.y, a += A, l += y, m = W(h), h = At(m);
790
+ a *= w.x, l *= w.y, f *= w.x, u *= w.y, a += A, l += y, m = W(h), h = vt(m);
791
791
  }
792
792
  }
793
- return dt({
793
+ return ut({
794
794
  width: f,
795
795
  height: u,
796
796
  x: a,
797
797
  y: l
798
798
  });
799
799
  }
800
- function Dt(t, e) {
801
- const n = gt(t).scrollLeft;
800
+ function Et(t, e) {
801
+ const n = ht(t).scrollLeft;
802
802
  return e ? e.left + n : G(j(t)).left + n;
803
803
  }
804
- function te(t, e, n) {
804
+ function Ut(t, e, n) {
805
805
  n === void 0 && (n = !1);
806
806
  const o = t.getBoundingClientRect(), i = o.left + e.scrollLeft - (n ? 0 : (
807
807
  // RTL <body> scrollbar.
808
- Dt(t, o)
808
+ Et(t, o)
809
809
  )), r = o.top + e.scrollTop;
810
810
  return {
811
811
  x: i,
812
812
  y: r
813
813
  };
814
814
  }
815
- function Ke(t) {
815
+ function Ye(t) {
816
816
  let {
817
817
  elements: e,
818
818
  rect: n,
819
819
  offsetParent: o,
820
820
  strategy: i
821
821
  } = t;
822
- const r = i === "fixed", s = j(o), c = e ? ht(e.floating) : !1;
822
+ const r = i === "fixed", s = j(o), c = e ? pt(e.floating) : !1;
823
823
  if (o === s || c && r)
824
824
  return n;
825
825
  let a = {
@@ -827,11 +827,11 @@ function Ke(t) {
827
827
  scrollTop: 0
828
828
  }, l = I(1);
829
829
  const f = I(0), u = Y(o);
830
- if ((u || !u && !r) && ((et(o) !== "body" || rt(s)) && (a = gt(o)), Y(o))) {
830
+ if ((u || !u && !r) && ((et(o) !== "body" || rt(s)) && (a = ht(o)), Y(o))) {
831
831
  const d = G(o);
832
832
  l = J(o), f.x = d.x + o.clientLeft, f.y = d.y + o.clientTop;
833
833
  }
834
- const p = s && !u && !r ? te(s, a, !0) : I(0);
834
+ const p = s && !u && !r ? Ut(s, a, !0) : I(0);
835
835
  return {
836
836
  width: n.width * l.x,
837
837
  height: n.height * l.y,
@@ -839,12 +839,12 @@ function Ke(t) {
839
839
  y: n.y * l.y - a.scrollTop * l.y + f.y + p.y
840
840
  };
841
841
  }
842
- function Ge(t) {
842
+ function je(t) {
843
843
  return Array.from(t.getClientRects());
844
844
  }
845
- function Je(t) {
846
- const e = j(t), n = gt(t), o = t.ownerDocument.body, i = H(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), r = H(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
847
- let s = -n.scrollLeft + Dt(t);
845
+ function Xe(t) {
846
+ const e = j(t), n = ht(t), o = t.ownerDocument.body, i = H(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), r = H(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
847
+ let s = -n.scrollLeft + Et(t);
848
848
  const c = -n.scrollTop;
849
849
  return B(o).direction === "rtl" && (s += H(e.clientWidth, o.clientWidth) - i), {
850
850
  width: i,
@@ -853,12 +853,12 @@ function Je(t) {
853
853
  y: c
854
854
  };
855
855
  }
856
- function Qe(t, e) {
856
+ function qe(t, e) {
857
857
  const n = W(t), o = j(t), i = n.visualViewport;
858
858
  let r = o.clientWidth, s = o.clientHeight, c = 0, a = 0;
859
859
  if (i) {
860
860
  r = i.width, s = i.height;
861
- const l = St();
861
+ const l = Pt();
862
862
  (!l || l && e === "fixed") && (c = i.offsetLeft, a = i.offsetTop);
863
863
  }
864
864
  return {
@@ -868,7 +868,7 @@ function Qe(t, e) {
868
868
  y: a
869
869
  };
870
870
  }
871
- function tn(t, e) {
871
+ function Ue(t, e) {
872
872
  const n = G(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, r = Y(t) ? J(t) : I(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, a = i * r.x, l = o * r.y;
873
873
  return {
874
874
  width: s,
@@ -877,16 +877,16 @@ function tn(t, e) {
877
877
  y: l
878
878
  };
879
879
  }
880
- function Yt(t, e, n) {
880
+ function Wt(t, e, n) {
881
881
  let o;
882
882
  if (e === "viewport")
883
- o = Qe(t, n);
883
+ o = qe(t, n);
884
884
  else if (e === "document")
885
- o = Je(j(t));
885
+ o = Xe(j(t));
886
886
  else if (_(e))
887
- o = tn(e, n);
887
+ o = Ue(e, n);
888
888
  else {
889
- const i = Qt(t);
889
+ const i = qt(t);
890
890
  o = {
891
891
  x: e.x - i.x,
892
892
  y: e.y - i.y,
@@ -894,13 +894,13 @@ function Yt(t, e, n) {
894
894
  height: e.height
895
895
  };
896
896
  }
897
- return dt(o);
897
+ return ut(o);
898
898
  }
899
- function ee(t, e) {
899
+ function Zt(t, e) {
900
900
  const n = K(t);
901
- return n === e || !_(n) || Q(n) ? !1 : B(n).position === "fixed" || ee(n, e);
901
+ return n === e || !_(n) || Q(n) ? !1 : B(n).position === "fixed" || Zt(n, e);
902
902
  }
903
- function en(t, e) {
903
+ function Ze(t, e) {
904
904
  const n = e.get(t);
905
905
  if (n)
906
906
  return n;
@@ -908,22 +908,22 @@ function en(t, e) {
908
908
  const r = B(t).position === "fixed";
909
909
  let s = r ? K(t) : t;
910
910
  for (; _(s) && !Q(s); ) {
911
- const c = B(s), a = Pt(s);
912
- !a && c.position === "fixed" && (i = null), (r ? !a && !i : !a && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || rt(s) && !a && ee(t, s)) ? o = o.filter((f) => f !== s) : i = c, s = K(s);
911
+ const c = B(s), a = Ot(s);
912
+ !a && c.position === "fixed" && (i = null), (r ? !a && !i : !a && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || rt(s) && !a && Zt(t, s)) ? o = o.filter((f) => f !== s) : i = c, s = K(s);
913
913
  }
914
914
  return e.set(t, o), o;
915
915
  }
916
- function nn(t) {
916
+ function Ke(t) {
917
917
  let {
918
918
  element: e,
919
919
  boundary: n,
920
920
  rootBoundary: o,
921
921
  strategy: i
922
922
  } = t;
923
- const s = [...n === "clippingAncestors" ? ht(e) ? [] : en(e, this._c) : [].concat(n), o], c = s[0], a = s.reduce((l, f) => {
924
- const u = Yt(e, f, i);
923
+ const s = [...n === "clippingAncestors" ? pt(e) ? [] : Ze(e, this._c) : [].concat(n), o], c = s[0], a = s.reduce((l, f) => {
924
+ const u = Wt(e, f, i);
925
925
  return l.top = H(u.top, l.top), l.right = Z(u.right, l.right), l.bottom = Z(u.bottom, l.bottom), l.left = H(u.left, l.left), l;
926
- }, Yt(e, c, i));
926
+ }, Wt(e, c, i));
927
927
  return {
928
928
  width: a.right - a.left,
929
929
  height: a.bottom - a.top,
@@ -931,17 +931,17 @@ function nn(t) {
931
931
  y: a.top
932
932
  };
933
933
  }
934
- function on(t) {
934
+ function Ge(t) {
935
935
  const {
936
936
  width: e,
937
937
  height: n
938
- } = Jt(t);
938
+ } = Xt(t);
939
939
  return {
940
940
  width: e,
941
941
  height: n
942
942
  };
943
943
  }
944
- function rn(t, e, n) {
944
+ function Je(t, e, n) {
945
945
  const o = Y(e), i = j(e), r = n === "fixed", s = G(t, !0, r, e);
946
946
  let c = {
947
947
  scrollLeft: 0,
@@ -949,15 +949,15 @@ function rn(t, e, n) {
949
949
  };
950
950
  const a = I(0);
951
951
  function l() {
952
- a.x = Dt(i);
952
+ a.x = Et(i);
953
953
  }
954
954
  if (o || !o && !r)
955
- if ((et(e) !== "body" || rt(i)) && (c = gt(e)), o) {
955
+ if ((et(e) !== "body" || rt(i)) && (c = ht(e)), o) {
956
956
  const d = G(e, !0, r, e);
957
957
  a.x = d.x + e.clientLeft, a.y = d.y + e.clientTop;
958
958
  } else i && l();
959
959
  r && !o && i && l();
960
- const f = i && !o && !r ? te(i, c) : I(0), u = s.left + c.scrollLeft - a.x - f.x, p = s.top + c.scrollTop - a.y - f.y;
960
+ const f = i && !o && !r ? Ut(i, c) : I(0), u = s.left + c.scrollLeft - a.x - f.x, p = s.top + c.scrollTop - a.y - f.y;
961
961
  return {
962
962
  x: u,
963
963
  y: p,
@@ -965,10 +965,10 @@ function rn(t, e, n) {
965
965
  height: s.height
966
966
  };
967
967
  }
968
- function wt(t) {
968
+ function gt(t) {
969
969
  return B(t).position === "static";
970
970
  }
971
- function jt(t, e) {
971
+ function _t(t, e) {
972
972
  if (!Y(t) || B(t).position === "fixed")
973
973
  return null;
974
974
  if (e)
@@ -976,28 +976,28 @@ function jt(t, e) {
976
976
  let n = t.offsetParent;
977
977
  return j(t) === n && (n = n.ownerDocument.body), n;
978
978
  }
979
- function ne(t, e) {
979
+ function Kt(t, e) {
980
980
  const n = W(t);
981
- if (ht(t))
981
+ if (pt(t))
982
982
  return n;
983
983
  if (!Y(t)) {
984
984
  let i = K(t);
985
985
  for (; i && !Q(i); ) {
986
- if (_(i) && !wt(i))
986
+ if (_(i) && !gt(i))
987
987
  return i;
988
988
  i = K(i);
989
989
  }
990
990
  return n;
991
991
  }
992
- let o = jt(t, e);
993
- for (; o && Xe(o) && wt(o); )
994
- o = jt(o, e);
995
- return o && Q(o) && wt(o) && !Pt(o) ? n : o || qe(t) || n;
992
+ let o = _t(t, e);
993
+ for (; o && Be(o) && gt(o); )
994
+ o = _t(o, e);
995
+ return o && Q(o) && gt(o) && !Ot(o) ? n : o || ze(t) || n;
996
996
  }
997
- const sn = async function(t) {
998
- const e = this.getOffsetParent || ne, n = this.getDimensions, o = await n(t.floating);
997
+ const Qe = async function(t) {
998
+ const e = this.getOffsetParent || Kt, n = this.getDimensions, o = await n(t.floating);
999
999
  return {
1000
- reference: rn(t.reference, await e(t.floating), t.strategy),
1000
+ reference: Je(t.reference, await e(t.floating), t.strategy),
1001
1001
  floating: {
1002
1002
  x: 0,
1003
1003
  y: 0,
@@ -1006,25 +1006,25 @@ const sn = async function(t) {
1006
1006
  }
1007
1007
  };
1008
1008
  };
1009
- function cn(t) {
1009
+ function tn(t) {
1010
1010
  return B(t).direction === "rtl";
1011
1011
  }
1012
- const ln = {
1013
- convertOffsetParentRelativeRectToViewportRelativeRect: Ke,
1012
+ const en = {
1013
+ convertOffsetParentRelativeRectToViewportRelativeRect: Ye,
1014
1014
  getDocumentElement: j,
1015
- getClippingRect: nn,
1016
- getOffsetParent: ne,
1017
- getElementRects: sn,
1018
- getClientRects: Ge,
1019
- getDimensions: on,
1015
+ getClippingRect: Ke,
1016
+ getOffsetParent: Kt,
1017
+ getElementRects: Qe,
1018
+ getClientRects: je,
1019
+ getDimensions: Ge,
1020
1020
  getScale: J,
1021
1021
  isElement: _,
1022
- isRTL: cn
1022
+ isRTL: tn
1023
1023
  };
1024
- function oe(t, e) {
1024
+ function Gt(t, e) {
1025
1025
  return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
1026
1026
  }
1027
- function an(t, e) {
1027
+ function nn(t, e) {
1028
1028
  let n = null, o;
1029
1029
  const i = j(t);
1030
1030
  function r() {
@@ -1041,21 +1041,21 @@ function an(t, e) {
1041
1041
  } = l;
1042
1042
  if (c || e(), !p || !d)
1043
1043
  return;
1044
- const m = lt(u), h = lt(i.clientWidth - (f + p)), w = lt(i.clientHeight - (u + d)), g = lt(f), A = {
1044
+ const m = ct(u), h = ct(i.clientWidth - (f + p)), w = ct(i.clientHeight - (u + d)), g = ct(f), A = {
1045
1045
  rootMargin: -m + "px " + -h + "px " + -w + "px " + -g + "px",
1046
1046
  threshold: H(0, Z(1, a)) || 1
1047
1047
  };
1048
1048
  let y = !0;
1049
- function v(R) {
1050
- const O = R[0].intersectionRatio;
1051
- if (O !== a) {
1049
+ function v(O) {
1050
+ const C = O[0].intersectionRatio;
1051
+ if (C !== a) {
1052
1052
  if (!y)
1053
1053
  return s();
1054
- O ? s(!1, O) : o = setTimeout(() => {
1054
+ C ? s(!1, C) : o = setTimeout(() => {
1055
1055
  s(!1, 1e-7);
1056
1056
  }, 1e3);
1057
1057
  }
1058
- O === 1 && !oe(l, t.getBoundingClientRect()) && s(), y = !1;
1058
+ C === 1 && !Gt(l, t.getBoundingClientRect()) && s(), y = !1;
1059
1059
  }
1060
1060
  try {
1061
1061
  n = new IntersectionObserver(v, {
@@ -1070,7 +1070,7 @@ function an(t, e) {
1070
1070
  }
1071
1071
  return s(!0), r;
1072
1072
  }
1073
- function fn(t, e, n, o) {
1073
+ function on(t, e, n, o) {
1074
1074
  o === void 0 && (o = {});
1075
1075
  const {
1076
1076
  ancestorScroll: i = !0,
@@ -1078,13 +1078,13 @@ function fn(t, e, n, o) {
1078
1078
  elementResize: s = typeof ResizeObserver == "function",
1079
1079
  layoutShift: c = typeof IntersectionObserver == "function",
1080
1080
  animationFrame: a = !1
1081
- } = o, l = Et(t), f = i || r ? [...l ? it(l) : [], ...it(e)] : [];
1081
+ } = o, l = St(t), f = i || r ? [...l ? it(l) : [], ...it(e)] : [];
1082
1082
  f.forEach((g) => {
1083
1083
  i && g.addEventListener("scroll", n, {
1084
1084
  passive: !0
1085
1085
  }), r && g.addEventListener("resize", n);
1086
1086
  });
1087
- const u = l && c ? an(l, n) : null;
1087
+ const u = l && c ? nn(l, n) : null;
1088
1088
  let p = -1, d = null;
1089
1089
  s && (d = new ResizeObserver((g) => {
1090
1090
  let [x] = g;
@@ -1097,31 +1097,31 @@ function fn(t, e, n, o) {
1097
1097
  a && w();
1098
1098
  function w() {
1099
1099
  const g = G(t);
1100
- h && !oe(h, g) && n(), h = g, m = requestAnimationFrame(w);
1100
+ h && !Gt(h, g) && n(), h = g, m = requestAnimationFrame(w);
1101
1101
  }
1102
1102
  return n(), () => {
1103
1103
  var g;
1104
1104
  f.forEach((x) => {
1105
1105
  i && x.removeEventListener("scroll", n), r && x.removeEventListener("resize", n);
1106
- }), u == null || u(), (g = d) == null || g.disconnect(), d = null, a && cancelAnimationFrame(m);
1106
+ }), u?.(), (g = d) == null || g.disconnect(), d = null, a && cancelAnimationFrame(m);
1107
1107
  };
1108
1108
  }
1109
- const un = ze, dn = Ie, mn = _e, pn = je, hn = Be, Xt = We, gn = Ye, wn = (t, e, n) => {
1109
+ const rn = Ne, sn = He, cn = $e, ln = _e, an = ke, Bt = Me, fn = We, un = (t, e, n) => {
1110
1110
  const o = /* @__PURE__ */ new Map(), i = {
1111
- platform: ln,
1111
+ platform: en,
1112
1112
  ...n
1113
1113
  }, r = {
1114
1114
  ...i.platform,
1115
1115
  _c: o
1116
1116
  };
1117
- return He(t, e, {
1117
+ return Te(t, e, {
1118
1118
  ...i,
1119
1119
  platform: r
1120
1120
  });
1121
1121
  };
1122
- var xn = typeof document < "u", yn = function() {
1123
- }, at = xn ? Ce : yn;
1124
- function mt(t, e) {
1122
+ var dn = typeof document < "u", mn = function() {
1123
+ }, lt = dn ? xe : mn;
1124
+ function dt(t, e) {
1125
1125
  if (t === e)
1126
1126
  return !0;
1127
1127
  if (typeof t != typeof e)
@@ -1133,7 +1133,7 @@ function mt(t, e) {
1133
1133
  if (Array.isArray(t)) {
1134
1134
  if (n = t.length, n !== e.length) return !1;
1135
1135
  for (o = n; o-- !== 0; )
1136
- if (!mt(t[o], e[o]))
1136
+ if (!dt(t[o], e[o]))
1137
1137
  return !1;
1138
1138
  return !0;
1139
1139
  }
@@ -1144,27 +1144,27 @@ function mt(t, e) {
1144
1144
  return !1;
1145
1145
  for (o = n; o-- !== 0; ) {
1146
1146
  const r = i[o];
1147
- if (!(r === "_owner" && t.$$typeof) && !mt(t[r], e[r]))
1147
+ if (!(r === "_owner" && t.$$typeof) && !dt(t[r], e[r]))
1148
1148
  return !1;
1149
1149
  }
1150
1150
  return !0;
1151
1151
  }
1152
1152
  return t !== t && e !== e;
1153
1153
  }
1154
- function ie(t) {
1154
+ function Jt(t) {
1155
1155
  return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
1156
1156
  }
1157
- function qt(t, e) {
1158
- const n = ie(t);
1157
+ function zt(t, e) {
1158
+ const n = Jt(t);
1159
1159
  return Math.round(e * n) / n;
1160
1160
  }
1161
- function xt(t) {
1162
- const e = C.useRef(t);
1163
- return at(() => {
1161
+ function wt(t) {
1162
+ const e = R.useRef(t);
1163
+ return lt(() => {
1164
1164
  e.current = t;
1165
1165
  }), e;
1166
1166
  }
1167
- function vn(t) {
1167
+ function pn(t) {
1168
1168
  t === void 0 && (t = {});
1169
1169
  const {
1170
1170
  placement: e = "bottom",
@@ -1178,29 +1178,29 @@ function vn(t) {
1178
1178
  transform: c = !0,
1179
1179
  whileElementsMounted: a,
1180
1180
  open: l
1181
- } = t, [f, u] = C.useState({
1181
+ } = t, [f, u] = R.useState({
1182
1182
  x: 0,
1183
1183
  y: 0,
1184
1184
  strategy: n,
1185
1185
  placement: e,
1186
1186
  middlewareData: {},
1187
1187
  isPositioned: !1
1188
- }), [p, d] = C.useState(o);
1189
- mt(p, o) || d(o);
1190
- const [m, h] = C.useState(null), [w, g] = C.useState(null), x = C.useCallback((b) => {
1191
- b !== R.current && (R.current = b, h(b));
1192
- }, []), A = C.useCallback((b) => {
1193
- b !== O.current && (O.current = b, g(b));
1194
- }, []), y = r || m, v = s || w, R = C.useRef(null), O = C.useRef(null), T = C.useRef(f), F = a != null, L = xt(a), $ = xt(i), k = xt(l), S = C.useCallback(() => {
1195
- if (!R.current || !O.current)
1188
+ }), [p, d] = R.useState(o);
1189
+ dt(p, o) || d(o);
1190
+ const [m, h] = R.useState(null), [w, g] = R.useState(null), x = R.useCallback((b) => {
1191
+ b !== O.current && (O.current = b, h(b));
1192
+ }, []), A = R.useCallback((b) => {
1193
+ b !== C.current && (C.current = b, g(b));
1194
+ }, []), y = r || m, v = s || w, O = R.useRef(null), C = R.useRef(null), T = R.useRef(f), F = a != null, L = wt(a), $ = wt(i), k = wt(l), S = R.useCallback(() => {
1195
+ if (!O.current || !C.current)
1196
1196
  return;
1197
1197
  const b = {
1198
1198
  placement: e,
1199
1199
  strategy: n,
1200
1200
  middleware: p
1201
1201
  };
1202
- $.current && (b.platform = $.current), wn(R.current, O.current, b).then((M) => {
1203
- const V = {
1202
+ $.current && (b.platform = $.current), un(O.current, C.current, b).then((M) => {
1203
+ const z = {
1204
1204
  ...M,
1205
1205
  // The floating element's position may be recomputed while it's closed
1206
1206
  // but still mounted (such as when transitioning out). To ensure
@@ -1208,36 +1208,36 @@ function vn(t) {
1208
1208
  // setting it to `true` when `open === false` (must be specified).
1209
1209
  isPositioned: k.current !== !1
1210
1210
  };
1211
- P.current && !mt(T.current, V) && (T.current = V, Oe.flushSync(() => {
1212
- u(V);
1211
+ P.current && !dt(T.current, z) && (T.current = z, ye.flushSync(() => {
1212
+ u(z);
1213
1213
  }));
1214
1214
  });
1215
1215
  }, [p, e, n, $, k]);
1216
- at(() => {
1216
+ lt(() => {
1217
1217
  l === !1 && T.current.isPositioned && (T.current.isPositioned = !1, u((b) => ({
1218
1218
  ...b,
1219
1219
  isPositioned: !1
1220
1220
  })));
1221
1221
  }, [l]);
1222
- const P = C.useRef(!1);
1223
- at(() => (P.current = !0, () => {
1222
+ const P = R.useRef(!1);
1223
+ lt(() => (P.current = !0, () => {
1224
1224
  P.current = !1;
1225
- }), []), at(() => {
1226
- if (y && (R.current = y), v && (O.current = v), y && v) {
1225
+ }), []), lt(() => {
1226
+ if (y && (O.current = y), v && (C.current = v), y && v) {
1227
1227
  if (L.current)
1228
1228
  return L.current(y, v, S);
1229
1229
  S();
1230
1230
  }
1231
1231
  }, [y, v, S, L, F]);
1232
- const N = C.useMemo(() => ({
1233
- reference: R,
1234
- floating: O,
1232
+ const N = R.useMemo(() => ({
1233
+ reference: O,
1234
+ floating: C,
1235
1235
  setReference: x,
1236
1236
  setFloating: A
1237
- }), [x, A]), E = C.useMemo(() => ({
1237
+ }), [x, A]), E = R.useMemo(() => ({
1238
1238
  reference: y,
1239
1239
  floating: v
1240
- }), [y, v]), D = C.useMemo(() => {
1240
+ }), [y, v]), D = R.useMemo(() => {
1241
1241
  const b = {
1242
1242
  position: n,
1243
1243
  left: 0,
@@ -1245,20 +1245,20 @@ function vn(t) {
1245
1245
  };
1246
1246
  if (!E.floating)
1247
1247
  return b;
1248
- const M = qt(E.floating, f.x), V = qt(E.floating, f.y);
1248
+ const M = zt(E.floating, f.x), z = zt(E.floating, f.y);
1249
1249
  return c ? {
1250
1250
  ...b,
1251
- transform: "translate(" + M + "px, " + V + "px)",
1252
- ...ie(E.floating) >= 1.5 && {
1251
+ transform: "translate(" + M + "px, " + z + "px)",
1252
+ ...Jt(E.floating) >= 1.5 && {
1253
1253
  willChange: "transform"
1254
1254
  }
1255
1255
  } : {
1256
1256
  position: n,
1257
1257
  left: M,
1258
- top: V
1258
+ top: z
1259
1259
  };
1260
1260
  }, [n, c, E.floating, f.x, f.y]);
1261
- return C.useMemo(() => ({
1261
+ return R.useMemo(() => ({
1262
1262
  ...f,
1263
1263
  update: S,
1264
1264
  refs: N,
@@ -1266,7 +1266,7 @@ function vn(t) {
1266
1266
  floatingStyles: D
1267
1267
  }), [f, S, N, E, D]);
1268
1268
  }
1269
- const An = (t) => {
1269
+ const hn = (t) => {
1270
1270
  function e(n) {
1271
1271
  return {}.hasOwnProperty.call(n, "current");
1272
1272
  }
@@ -1278,41 +1278,41 @@ const An = (t) => {
1278
1278
  element: o,
1279
1279
  padding: i
1280
1280
  } = typeof t == "function" ? t(n) : t;
1281
- return o && e(o) ? o.current != null ? Xt({
1281
+ return o && e(o) ? o.current != null ? Bt({
1282
1282
  element: o.current,
1283
1283
  padding: i
1284
- }).fn(n) : {} : o ? Xt({
1284
+ }).fn(n) : {} : o ? Bt({
1285
1285
  element: o,
1286
1286
  padding: i
1287
1287
  }).fn(n) : {};
1288
1288
  }
1289
1289
  };
1290
- }, bn = (t, e) => ({
1291
- ...un(t),
1290
+ }, gn = (t, e) => ({
1291
+ ...rn(t),
1292
1292
  options: [t, e]
1293
- }), Rn = (t, e) => ({
1294
- ...dn(t),
1293
+ }), wn = (t, e) => ({
1294
+ ...sn(t),
1295
1295
  options: [t, e]
1296
- }), Cn = (t, e) => ({
1297
- ...gn(t),
1296
+ }), xn = (t, e) => ({
1297
+ ...fn(t),
1298
1298
  options: [t, e]
1299
- }), On = (t, e) => ({
1300
- ...mn(t),
1299
+ }), yn = (t, e) => ({
1300
+ ...cn(t),
1301
1301
  options: [t, e]
1302
- }), Pn = (t, e) => ({
1303
- ...pn(t),
1302
+ }), vn = (t, e) => ({
1303
+ ...ln(t),
1304
1304
  options: [t, e]
1305
- }), Sn = (t, e) => ({
1306
- ...hn(t),
1305
+ }), An = (t, e) => ({
1306
+ ...an(t),
1307
1307
  options: [t, e]
1308
- }), En = (t, e) => ({
1309
- ...An(t),
1308
+ }), bn = (t, e) => ({
1309
+ ...hn(t),
1310
1310
  options: [t, e]
1311
1311
  });
1312
- var Dn = "Arrow", re = C.forwardRef((t, e) => {
1312
+ var Rn = "Arrow", Qt = R.forwardRef((t, e) => {
1313
1313
  const { children: n, width: o = 10, height: i = 5, ...r } = t;
1314
1314
  return /* @__PURE__ */ X(
1315
- bt.svg,
1315
+ At.svg,
1316
1316
  {
1317
1317
  ...r,
1318
1318
  ref: e,
@@ -1324,24 +1324,23 @@ var Dn = "Arrow", re = C.forwardRef((t, e) => {
1324
1324
  }
1325
1325
  );
1326
1326
  });
1327
- re.displayName = Dn;
1328
- var Ln = re, Lt = "Popper", [se, jn] = Pe(Lt), [Tn, ce] = se(Lt), le = (t) => {
1329
- const { __scopePopper: e, children: n } = t, [o, i] = C.useState(null);
1330
- return /* @__PURE__ */ X(Tn, { scope: e, anchor: o, onAnchorChange: i, children: n });
1327
+ Qt.displayName = Rn;
1328
+ var Cn = Qt, Dt = "Popper", [te, _n] = ve(Dt), [On, ee] = te(Dt), ne = (t) => {
1329
+ const { __scopePopper: e, children: n } = t, [o, i] = R.useState(null);
1330
+ return /* @__PURE__ */ X(On, { scope: e, anchor: o, onAnchorChange: i, children: n });
1331
1331
  };
1332
- le.displayName = Lt;
1333
- var ae = "PopperAnchor", fe = C.forwardRef(
1332
+ ne.displayName = Dt;
1333
+ var oe = "PopperAnchor", ie = R.forwardRef(
1334
1334
  (t, e) => {
1335
- const { __scopePopper: n, virtualRef: o, ...i } = t, r = ce(ae, n), s = C.useRef(null), c = Ut(e, s);
1336
- return C.useEffect(() => {
1337
- r.onAnchorChange((o == null ? void 0 : o.current) || s.current);
1338
- }), o ? null : /* @__PURE__ */ X(bt.div, { ...i, ref: c });
1335
+ const { __scopePopper: n, virtualRef: o, ...i } = t, r = ee(oe, n), s = R.useRef(null), c = Vt(e, s);
1336
+ return R.useEffect(() => {
1337
+ r.onAnchorChange(o?.current || s.current);
1338
+ }), o ? null : /* @__PURE__ */ X(At.div, { ...i, ref: c });
1339
1339
  }
1340
1340
  );
1341
- fe.displayName = ae;
1342
- var Tt = "PopperContent", [Mn, $n] = se(Tt), ue = C.forwardRef(
1341
+ ie.displayName = oe;
1342
+ var Lt = "PopperContent", [Pn, Sn] = te(Lt), re = R.forwardRef(
1343
1343
  (t, e) => {
1344
- var Mt, $t, kt, Ft, Nt, Ht;
1345
1344
  const {
1346
1345
  __scopePopper: n,
1347
1346
  side: o = "bottom",
@@ -1357,48 +1356,48 @@ var Tt = "PopperContent", [Mn, $n] = se(Tt), ue = C.forwardRef(
1357
1356
  updatePositionStrategy: d = "optimized",
1358
1357
  onPlaced: m,
1359
1358
  ...h
1360
- } = t, w = ce(Tt, n), [g, x] = C.useState(null), A = Ut(e, (nt) => x(nt)), [y, v] = C.useState(null), R = Ee(y), O = (R == null ? void 0 : R.width) ?? 0, T = (R == null ? void 0 : R.height) ?? 0, F = o + (r !== "center" ? "-" + r : ""), L = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, $ = Array.isArray(l) ? l : [l], k = $.length > 0, S = {
1359
+ } = t, w = ee(Lt, n), [g, x] = R.useState(null), A = Vt(e, (nt) => x(nt)), [y, v] = R.useState(null), O = be(y), C = O?.width ?? 0, T = O?.height ?? 0, F = o + (r !== "center" ? "-" + r : ""), L = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, $ = Array.isArray(l) ? l : [l], k = $.length > 0, S = {
1361
1360
  padding: L,
1362
- boundary: $.filter(Fn),
1361
+ boundary: $.filter(Dn),
1363
1362
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
1364
1363
  altBoundary: k
1365
- }, { refs: P, floatingStyles: N, placement: E, isPositioned: D, middlewareData: b } = vn({
1364
+ }, { refs: P, floatingStyles: N, placement: E, isPositioned: D, middlewareData: b } = pn({
1366
1365
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
1367
1366
  strategy: "fixed",
1368
1367
  placement: F,
1369
- whileElementsMounted: (...nt) => fn(...nt, {
1368
+ whileElementsMounted: (...nt) => on(...nt, {
1370
1369
  animationFrame: d === "always"
1371
1370
  }),
1372
1371
  elements: {
1373
1372
  reference: w.anchor
1374
1373
  },
1375
1374
  middleware: [
1376
- bn({ mainAxis: i + T, alignmentAxis: s }),
1377
- a && Rn({
1375
+ gn({ mainAxis: i + T, alignmentAxis: s }),
1376
+ a && wn({
1378
1377
  mainAxis: !0,
1379
1378
  crossAxis: !1,
1380
- limiter: u === "partial" ? Cn() : void 0,
1379
+ limiter: u === "partial" ? xn() : void 0,
1381
1380
  ...S
1382
1381
  }),
1383
- a && On({ ...S }),
1384
- Pn({
1382
+ a && yn({ ...S }),
1383
+ vn({
1385
1384
  ...S,
1386
- apply: ({ elements: nt, rects: Wt, availableWidth: ve, availableHeight: Ae }) => {
1387
- const { width: be, height: Re } = Wt.reference, ct = nt.floating.style;
1388
- ct.setProperty("--radix-popper-available-width", `${ve}px`), ct.setProperty("--radix-popper-available-height", `${Ae}px`), ct.setProperty("--radix-popper-anchor-width", `${be}px`), ct.setProperty("--radix-popper-anchor-height", `${Re}px`);
1385
+ apply: ({ elements: nt, rects: Mt, availableWidth: pe, availableHeight: he }) => {
1386
+ const { width: ge, height: we } = Mt.reference, st = nt.floating.style;
1387
+ st.setProperty("--radix-popper-available-width", `${pe}px`), st.setProperty("--radix-popper-available-height", `${he}px`), st.setProperty("--radix-popper-anchor-width", `${ge}px`), st.setProperty("--radix-popper-anchor-height", `${we}px`);
1389
1388
  }
1390
1389
  }),
1391
- y && En({ element: y, padding: c }),
1392
- Nn({ arrowWidth: O, arrowHeight: T }),
1393
- p && Sn({ strategy: "referenceHidden", ...S })
1390
+ y && bn({ element: y, padding: c }),
1391
+ Ln({ arrowWidth: C, arrowHeight: T }),
1392
+ p && An({ strategy: "referenceHidden", ...S })
1394
1393
  ]
1395
- }), [M, V] = pe(E), st = Se(m);
1396
- _t(() => {
1397
- D && (st == null || st());
1398
- }, [D, st]);
1399
- const he = (Mt = b.arrow) == null ? void 0 : Mt.x, ge = ($t = b.arrow) == null ? void 0 : $t.y, we = ((kt = b.arrow) == null ? void 0 : kt.centerOffset) !== 0, [xe, ye] = C.useState();
1400
- return _t(() => {
1401
- g && ye(window.getComputedStyle(g).zIndex);
1394
+ }), [M, z] = le(E), Tt = Ae(m);
1395
+ $t(() => {
1396
+ D && Tt?.();
1397
+ }, [D, Tt]);
1398
+ const ae = b.arrow?.x, fe = b.arrow?.y, ue = b.arrow?.centerOffset !== 0, [de, me] = R.useState();
1399
+ return $t(() => {
1400
+ g && me(window.getComputedStyle(g).zIndex);
1402
1401
  }, [g]), /* @__PURE__ */ X(
1403
1402
  "div",
1404
1403
  {
@@ -1409,34 +1408,34 @@ var Tt = "PopperContent", [Mn, $n] = se(Tt), ue = C.forwardRef(
1409
1408
  transform: D ? N.transform : "translate(0, -200%)",
1410
1409
  // keep off the page when measuring
1411
1410
  minWidth: "max-content",
1412
- zIndex: xe,
1411
+ zIndex: de,
1413
1412
  "--radix-popper-transform-origin": [
1414
- (Ft = b.transformOrigin) == null ? void 0 : Ft.x,
1415
- (Nt = b.transformOrigin) == null ? void 0 : Nt.y
1413
+ b.transformOrigin?.x,
1414
+ b.transformOrigin?.y
1416
1415
  ].join(" "),
1417
1416
  // hide the content if using the hide middleware and should be hidden
1418
1417
  // set visibility to hidden and disable pointer events so the UI behaves
1419
1418
  // as if the PopperContent isn't there at all
1420
- ...((Ht = b.hide) == null ? void 0 : Ht.referenceHidden) && {
1419
+ ...b.hide?.referenceHidden && {
1421
1420
  visibility: "hidden",
1422
1421
  pointerEvents: "none"
1423
1422
  }
1424
1423
  },
1425
1424
  dir: t.dir,
1426
1425
  children: /* @__PURE__ */ X(
1427
- Mn,
1426
+ Pn,
1428
1427
  {
1429
1428
  scope: n,
1430
1429
  placedSide: M,
1431
1430
  onArrowChange: v,
1432
- arrowX: he,
1433
- arrowY: ge,
1434
- shouldHideArrow: we,
1431
+ arrowX: ae,
1432
+ arrowY: fe,
1433
+ shouldHideArrow: ue,
1435
1434
  children: /* @__PURE__ */ X(
1436
- bt.div,
1435
+ At.div,
1437
1436
  {
1438
1437
  "data-side": M,
1439
- "data-align": V,
1438
+ "data-align": z,
1440
1439
  ...h,
1441
1440
  ref: A,
1442
1441
  style: {
@@ -1453,14 +1452,14 @@ var Tt = "PopperContent", [Mn, $n] = se(Tt), ue = C.forwardRef(
1453
1452
  );
1454
1453
  }
1455
1454
  );
1456
- ue.displayName = Tt;
1457
- var de = "PopperArrow", kn = {
1455
+ re.displayName = Lt;
1456
+ var se = "PopperArrow", En = {
1458
1457
  top: "bottom",
1459
1458
  right: "left",
1460
1459
  bottom: "top",
1461
1460
  left: "right"
1462
- }, me = C.forwardRef(function(e, n) {
1463
- const { __scopePopper: o, ...i } = e, r = $n(de, o), s = kn[r.placedSide];
1461
+ }, ce = R.forwardRef(function(e, n) {
1462
+ const { __scopePopper: o, ...i } = e, r = Sn(se, o), s = En[r.placedSide];
1464
1463
  return (
1465
1464
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
1466
1465
  // doesn't report size as we'd expect on SVG elements.
@@ -1489,7 +1488,7 @@ var de = "PopperArrow", kn = {
1489
1488
  visibility: r.shouldHideArrow ? "hidden" : void 0
1490
1489
  },
1491
1490
  children: /* @__PURE__ */ X(
1492
- Ln,
1491
+ Cn,
1493
1492
  {
1494
1493
  ...i,
1495
1494
  ref: n,
@@ -1504,29 +1503,28 @@ var de = "PopperArrow", kn = {
1504
1503
  )
1505
1504
  );
1506
1505
  });
1507
- me.displayName = de;
1508
- function Fn(t) {
1506
+ ce.displayName = se;
1507
+ function Dn(t) {
1509
1508
  return t !== null;
1510
1509
  }
1511
- var Nn = (t) => ({
1510
+ var Ln = (t) => ({
1512
1511
  name: "transformOrigin",
1513
1512
  options: t,
1514
1513
  fn(e) {
1515
- var w, g, x;
1516
- const { placement: n, rects: o, middlewareData: i } = e, s = ((w = i.arrow) == null ? void 0 : w.centerOffset) !== 0, c = s ? 0 : t.arrowWidth, a = s ? 0 : t.arrowHeight, [l, f] = pe(n), u = { start: "0%", center: "50%", end: "100%" }[f], p = (((g = i.arrow) == null ? void 0 : g.x) ?? 0) + c / 2, d = (((x = i.arrow) == null ? void 0 : x.y) ?? 0) + a / 2;
1514
+ const { placement: n, rects: o, middlewareData: i } = e, s = i.arrow?.centerOffset !== 0, c = s ? 0 : t.arrowWidth, a = s ? 0 : t.arrowHeight, [l, f] = le(n), u = { start: "0%", center: "50%", end: "100%" }[f], p = (i.arrow?.x ?? 0) + c / 2, d = (i.arrow?.y ?? 0) + a / 2;
1517
1515
  let m = "", h = "";
1518
1516
  return l === "bottom" ? (m = s ? u : `${p}px`, h = `${-a}px`) : l === "top" ? (m = s ? u : `${p}px`, h = `${o.floating.height + a}px`) : l === "right" ? (m = `${-a}px`, h = s ? u : `${d}px`) : l === "left" && (m = `${o.floating.width + a}px`, h = s ? u : `${d}px`), { data: { x: m, y: h } };
1519
1517
  }
1520
1518
  });
1521
- function pe(t) {
1519
+ function le(t) {
1522
1520
  const [e, n = "center"] = t.split("-");
1523
1521
  return [e, n];
1524
1522
  }
1525
- var Xn = le, qn = fe, Un = ue, Zn = me;
1523
+ var Bn = ne, zn = ie, Vn = re, In = ce;
1526
1524
  export {
1527
- qn as A,
1528
- Un as C,
1529
- Xn as R,
1530
- Zn as a,
1531
- jn as c
1525
+ zn as A,
1526
+ Vn as C,
1527
+ Bn as R,
1528
+ In as a,
1529
+ _n as c
1532
1530
  };