@konstructio/ui 0.1.2-alpha.75 → 0.1.2-alpha.76

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 (140) hide show
  1. package/dist/components/Alert/Alert.d.ts +2 -2
  2. package/dist/components/Alert/Alert.types.d.ts +3 -1
  3. package/dist/components/AlertDialog/AlertDialog.d.ts +2 -2
  4. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  5. package/dist/components/AlertDialog/AlertDialog.types.d.ts +5 -3
  6. package/dist/components/AlertDialog/components/AlertDialogTrigger.d.ts +2 -2
  7. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  8. package/dist/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +4 -2
  9. package/dist/components/AlertDialog/components/index.js +1 -1
  10. package/dist/components/Autocomplete/Autocomplete.d.ts +2 -2
  11. package/dist/components/Autocomplete/Autocomplete.types.d.ts +3 -1
  12. package/dist/components/Badge/Badge.d.ts +2 -2
  13. package/dist/components/Badge/Badge.types.d.ts +3 -1
  14. package/dist/components/Breadcrumb/Breadcrumb.d.ts +2 -2
  15. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +3 -1
  16. package/dist/components/Breadcrumb/components/Item/Item.d.ts +2 -2
  17. package/dist/components/Breadcrumb/components/Item/Item.types.d.ts +3 -1
  18. package/dist/components/Button/Button.d.ts +2 -2
  19. package/dist/components/Button/Button.types.d.ts +3 -1
  20. package/dist/components/Card/Card.d.ts +2 -2
  21. package/dist/components/Card/Card.types.d.ts +3 -1
  22. package/dist/components/Checkbox/Checkbox.d.ts +2 -2
  23. package/dist/components/Checkbox/Checkbox.types.d.ts +3 -1
  24. package/dist/components/Command/Command.d.ts +2 -2
  25. package/dist/components/Command/Command.js +2 -2
  26. package/dist/components/Command/Command.types.d.ts +3 -1
  27. package/dist/components/Command/components/Command.js +1 -1
  28. package/dist/components/Command/components/CommandEmpty.js +1 -1
  29. package/dist/components/Command/components/CommandGroup.js +1 -1
  30. package/dist/components/Command/components/CommandInput.js +1 -1
  31. package/dist/components/Command/components/CommandItem.js +1 -1
  32. package/dist/components/Command/components/CommandList.js +1 -1
  33. package/dist/components/Command/components/CommandSeparator.js +1 -1
  34. package/dist/components/Command/components/DialogContent.js +1 -1
  35. package/dist/components/Command/components/DialogOverlay.js +1 -1
  36. package/dist/components/Counter/Counter.d.ts +2 -2
  37. package/dist/components/Counter/Counter.types.d.ts +3 -1
  38. package/dist/components/DateRangePicker/DateRangePicker.d.ts +2 -2
  39. package/dist/components/DateRangePicker/DateRangePicker.types.d.ts +3 -1
  40. package/dist/components/Datepicker/DatePicker.d.ts +2 -2
  41. package/dist/components/Datepicker/DatePicker.types.d.ts +3 -1
  42. package/dist/components/Filter/Filter.types.d.ts +5 -3
  43. package/dist/components/Filter/components/ResetButton/ResetButton.types.d.ts +1 -1
  44. package/dist/components/ImageUpload/ImageUpload.d.ts +2 -2
  45. package/dist/components/ImageUpload/ImageUpload.types.d.ts +3 -1
  46. package/dist/components/Input/Input.d.ts +2 -2
  47. package/dist/components/Input/Input.types.d.ts +3 -1
  48. package/dist/components/LineChart/LineChart.d.ts +2 -2
  49. package/dist/components/LineChart/LineChart.types.d.ts +4 -2
  50. package/dist/components/Loading/Loading.d.ts +2 -2
  51. package/dist/components/Loading/Loading.types.d.ts +3 -1
  52. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.d.ts +2 -2
  53. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +3 -1
  54. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.types.d.ts +1 -1
  55. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
  56. package/dist/components/ProgressBar/ProgressBar.d.ts +2 -2
  57. package/dist/components/ProgressBar/ProgressBar.types.d.ts +3 -1
  58. package/dist/components/Radio/Radio.d.ts +2 -2
  59. package/dist/components/Radio/Radio.types.d.ts +3 -1
  60. package/dist/components/RadioCard/RadioCard.d.ts +2 -2
  61. package/dist/components/RadioCard/RadioCard.types.d.ts +5 -3
  62. package/dist/components/RadioCardGroup/RadioCardGroup.d.ts +2 -2
  63. package/dist/components/RadioCardGroup/RadioCardGroup.types.d.ts +4 -2
  64. package/dist/components/RadioGroup/RadioGroup.d.ts +2 -2
  65. package/dist/components/RadioGroup/RadioGroup.types.d.ts +4 -2
  66. package/dist/components/Range/Range.d.ts +2 -2
  67. package/dist/components/Range/Range.types.d.ts +3 -1
  68. package/dist/components/Select/Select.d.ts +2 -2
  69. package/dist/components/Select/Select.types.d.ts +3 -1
  70. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.types.d.ts +1 -1
  71. package/dist/components/Select/components/List/List.types.d.ts +1 -1
  72. package/dist/components/Sidebar/Sidebar.d.ts +1 -1
  73. package/dist/components/Sidebar/Sidebar.types.d.ts +3 -1
  74. package/dist/components/Sidebar/components/Footer/Footer.d.ts +2 -2
  75. package/dist/components/Sidebar/components/Footer/Footer.types.d.ts +3 -1
  76. package/dist/components/Sidebar/components/Logo/Logo.d.ts +2 -2
  77. package/dist/components/Sidebar/components/Logo/Logo.types.d.ts +3 -1
  78. package/dist/components/Sidebar/components/Navigation/Navigation.d.ts +2 -2
  79. package/dist/components/Sidebar/components/Navigation/Navigation.types.d.ts +7 -5
  80. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +2 -2
  81. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +3 -1
  82. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +2 -2
  83. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +3 -1
  84. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +2 -2
  85. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +3 -1
  86. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +2 -2
  87. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +1 -5
  88. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +3 -1
  89. package/dist/components/Sidebar/components/index.d.ts +7 -7
  90. package/dist/components/Slider/Slider.d.ts +2 -2
  91. package/dist/components/Slider/Slider.types.d.ts +3 -1
  92. package/dist/components/Spinner/Spinner.d.ts +2 -2
  93. package/dist/components/Spinner/Spinner.types.d.ts +4 -2
  94. package/dist/components/Stepper/Stepper.d.ts +2 -2
  95. package/dist/components/Stepper/Stepper.types.d.ts +3 -1
  96. package/dist/components/Switch/Switch.d.ts +2 -2
  97. package/dist/components/Switch/Switch.types.d.ts +3 -1
  98. package/dist/components/Table/Table.types.d.ts +3 -1
  99. package/dist/components/Tabs/Tabs.d.ts +1 -1
  100. package/dist/components/Tabs/Tabs.types.d.ts +3 -1
  101. package/dist/components/Tag/Tag.d.ts +2 -2
  102. package/dist/components/Tag/Tag.types.d.ts +3 -1
  103. package/dist/components/TagSelect/TagSelect.d.ts +2 -2
  104. package/dist/components/TagSelect/TagSelect.js +3 -1
  105. package/dist/components/TagSelect/TagSelect.types.d.ts +4 -2
  106. package/dist/components/TagSelect/components/Item/Item.types.d.ts +1 -1
  107. package/dist/components/TagSelect/components/Wrapper/Wrapper.types.d.ts +1 -1
  108. package/dist/components/TagSelect/contexts/TagSelect.types.d.ts +1 -1
  109. package/dist/components/TextArea/TextArea.d.ts +2 -2
  110. package/dist/components/TextArea/TextArea.types.d.ts +3 -1
  111. package/dist/components/TimePicker/TimePicker.d.ts +2 -2
  112. package/dist/components/TimePicker/TimePicker.types.d.ts +3 -1
  113. package/dist/components/TimePicker/components/HoursList/HoursList.types.d.ts +1 -1
  114. package/dist/components/TimePicker/components/MeridianList/MeridianList.types.d.ts +1 -1
  115. package/dist/components/TimePicker/components/MinutesList/MinutesList.types.d.ts +1 -1
  116. package/dist/components/TimePicker/components/Wrapper/Wrapper.types.d.ts +1 -1
  117. package/dist/components/TimePicker/components/WrapperList/WrapperList.types.d.ts +1 -1
  118. package/dist/components/Toast/Toast.d.ts +2 -2
  119. package/dist/components/Toast/Toast.js +3 -4
  120. package/dist/components/Toast/Toast.types.d.ts +3 -1
  121. package/dist/components/Tooltip/Tooltip.d.ts +2 -2
  122. package/dist/components/Tooltip/Tooltip.js +20 -20
  123. package/dist/components/Tooltip/Tooltip.types.d.ts +3 -1
  124. package/dist/components/Typography/Typography.d.ts +2 -2
  125. package/dist/components/Typography/Typography.types.d.ts +3 -1
  126. package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +1 -1
  127. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +1 -1
  128. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +55 -26
  129. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +4 -1
  130. package/dist/components/index.d.ts +2 -0
  131. package/dist/index-BvEpLnOv.js +144 -0
  132. package/dist/{index-Dd_ZmIqU.js → index-C7zAY3xv.js} +1 -1
  133. package/dist/{index-Dfq4O3b4.js → index-CrCTywU1.js} +1 -1
  134. package/dist/{index-9a-FL_6D.js → index-DWyM654o.js} +41 -42
  135. package/dist/{index-B7-5g1Sm.js → index-mPinF0Ho.js} +407 -401
  136. package/dist/package.json +1 -1
  137. package/dist/styles.css +1 -1
  138. package/package.json +1 -1
  139. package/dist/index-CESXsoMn.js +0 -14
  140. package/dist/index-URQGEGX7.js +0 -136
@@ -1,28 +1,28 @@
1
1
  import * as g from "react";
2
- import { useLayoutEffect as Bt } from "react";
3
- import { P as ce, b as et, u as Ve, a as Vt, c as J } from "./index--l0zux8V.js";
4
- import { u as ge } from "./index-DLcqcWxM.js";
5
- import { D as zt } from "./index-URQGEGX7.js";
6
- import { u as jt } from "./index-BKMaItIC.js";
7
- import * as Yt from "react-dom";
8
- import { jsx as O, Fragment as Xt, jsxs as Gt } from "react/jsx-runtime";
9
- import { u as qt } from "./index-0ioNhtNM.js";
10
- import { u as Ut } from "./index-BRXMsxSL.js";
11
- import { P as Kt } from "./index-3fEdeexs.js";
12
- const Zt = ["top", "right", "bottom", "left"], U = Math.min, $ = Math.max, de = Math.round, fe = Math.floor, j = (e) => ({
2
+ import { useLayoutEffect as jt } from "react";
3
+ import { P as ce, b as tt, u as ze, a as Yt, c as J } from "./index--l0zux8V.js";
4
+ import { u as we } from "./index-DLcqcWxM.js";
5
+ import { D as Xt, P as Gt } from "./index-BvEpLnOv.js";
6
+ import { u as qt } from "./index-BKMaItIC.js";
7
+ import * as Ut from "react-dom";
8
+ import { jsx as T, Fragment as Kt, jsxs as Zt } from "react/jsx-runtime";
9
+ import { u as Jt } from "./index-0ioNhtNM.js";
10
+ import { u as Qt } from "./index-BRXMsxSL.js";
11
+ import { P as nt } from "./index-3fEdeexs.js";
12
+ const en = ["top", "right", "bottom", "left"], U = Math.min, F = Math.max, pe = Math.round, ue = Math.floor, j = (e) => ({
13
13
  x: e,
14
14
  y: e
15
- }), Jt = {
15
+ }), tn = {
16
16
  left: "right",
17
17
  right: "left",
18
18
  bottom: "top",
19
19
  top: "bottom"
20
- }, Qt = {
20
+ }, nn = {
21
21
  start: "end",
22
22
  end: "start"
23
23
  };
24
- function Oe(e, t, n) {
25
- return $(e, U(t, n));
24
+ function Te(e, t, n) {
25
+ return F(e, U(t, n));
26
26
  }
27
27
  function G(e, t) {
28
28
  return typeof e == "function" ? e(t) : e;
@@ -39,48 +39,48 @@ function De(e) {
39
39
  function Me(e) {
40
40
  return e === "y" ? "height" : "width";
41
41
  }
42
- const en = /* @__PURE__ */ new Set(["top", "bottom"]);
42
+ const on = /* @__PURE__ */ new Set(["top", "bottom"]);
43
43
  function z(e) {
44
- return en.has(q(e)) ? "y" : "x";
44
+ return on.has(q(e)) ? "y" : "x";
45
45
  }
46
46
  function _e(e) {
47
47
  return De(z(e));
48
48
  }
49
- function tn(e, t, n) {
49
+ function rn(e, t, n) {
50
50
  n === void 0 && (n = !1);
51
51
  const o = ne(e), r = _e(e), i = Me(r);
52
52
  let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
53
- return t.reference[i] > t.floating[i] && (s = pe(s)), [s, pe(s)];
53
+ return t.reference[i] > t.floating[i] && (s = he(s)), [s, he(s)];
54
54
  }
55
- function nn(e) {
56
- const t = pe(e);
57
- return [Te(e), t, Te(t)];
55
+ function sn(e) {
56
+ const t = he(e);
57
+ return [Oe(e), t, Oe(t)];
58
58
  }
59
- function Te(e) {
60
- return e.replace(/start|end/g, (t) => Qt[t]);
59
+ function Oe(e) {
60
+ return e.replace(/start|end/g, (t) => nn[t]);
61
61
  }
62
- const ze = ["left", "right"], je = ["right", "left"], on = ["top", "bottom"], rn = ["bottom", "top"];
63
- function sn(e, t, n) {
62
+ const je = ["left", "right"], Ye = ["right", "left"], cn = ["top", "bottom"], ln = ["bottom", "top"];
63
+ function an(e, t, n) {
64
64
  switch (e) {
65
65
  case "top":
66
66
  case "bottom":
67
- return n ? t ? je : ze : t ? ze : je;
67
+ return n ? t ? Ye : je : t ? je : Ye;
68
68
  case "left":
69
69
  case "right":
70
- return t ? on : rn;
70
+ return t ? cn : ln;
71
71
  default:
72
72
  return [];
73
73
  }
74
74
  }
75
- function cn(e, t, n, o) {
75
+ function fn(e, t, n, o) {
76
76
  const r = ne(e);
77
- let i = sn(q(e), n === "start", o);
78
- return r && (i = i.map((s) => s + "-" + r), t && (i = i.concat(i.map(Te)))), i;
77
+ let i = an(q(e), n === "start", o);
78
+ return r && (i = i.map((s) => s + "-" + r), t && (i = i.concat(i.map(Oe)))), i;
79
79
  }
80
- function pe(e) {
81
- return e.replace(/left|right|bottom|top/g, (t) => Jt[t]);
80
+ function he(e) {
81
+ return e.replace(/left|right|bottom|top/g, (t) => tn[t]);
82
82
  }
83
- function ln(e) {
83
+ function un(e) {
84
84
  return {
85
85
  top: 0,
86
86
  right: 0,
@@ -89,8 +89,8 @@ function ln(e) {
89
89
  ...e
90
90
  };
91
91
  }
92
- function tt(e) {
93
- return typeof e != "number" ? ln(e) : {
92
+ function ot(e) {
93
+ return typeof e != "number" ? un(e) : {
94
94
  top: e,
95
95
  right: e,
96
96
  bottom: e,
@@ -115,7 +115,7 @@ function me(e) {
115
115
  y: n
116
116
  };
117
117
  }
118
- function Ye(e, t, n) {
118
+ function Xe(e, t, n) {
119
119
  let {
120
120
  reference: o,
121
121
  floating: r
@@ -163,7 +163,7 @@ function Ye(e, t, n) {
163
163
  }
164
164
  return u;
165
165
  }
166
- async function an(e, t) {
166
+ async function dn(e, t) {
167
167
  var n;
168
168
  t === void 0 && (t = {});
169
169
  const {
@@ -179,7 +179,7 @@ async function an(e, t) {
179
179
  elementContext: d = "floating",
180
180
  altBoundary: p = !1,
181
181
  padding: u = 0
182
- } = G(t, e), m = tt(u), w = l[p ? d === "floating" ? "reference" : "floating" : d], y = me(await i.getClippingRect({
182
+ } = G(t, e), h = ot(u), w = l[p ? d === "floating" ? "reference" : "floating" : d], y = me(await i.getClippingRect({
183
183
  element: (n = await (i.isElement == null ? void 0 : i.isElement(w))) == null || n ? w : w.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
184
184
  boundary: f,
185
185
  rootBoundary: a,
@@ -202,13 +202,13 @@ async function an(e, t) {
202
202
  strategy: c
203
203
  }) : v);
204
204
  return {
205
- top: (y.top - C.top + m.top) / x.y,
206
- bottom: (C.bottom - y.bottom + m.bottom) / x.y,
207
- left: (y.left - C.left + m.left) / x.x,
208
- right: (C.right - y.right + m.right) / x.x
205
+ top: (y.top - C.top + h.top) / x.y,
206
+ bottom: (C.bottom - y.bottom + h.bottom) / x.y,
207
+ left: (y.left - C.left + h.left) / x.x,
208
+ right: (C.right - y.right + h.right) / x.x
209
209
  };
210
210
  }
211
- const fn = async (e, t, n) => {
211
+ const pn = async (e, t, n) => {
212
212
  const {
213
213
  placement: o = "bottom",
214
214
  strategy: r = "absolute",
@@ -222,9 +222,9 @@ const fn = async (e, t, n) => {
222
222
  }), {
223
223
  x: a,
224
224
  y: d
225
- } = Ye(f, o, c), p = o, u = {}, m = 0;
225
+ } = Xe(f, o, c), p = o, u = {}, h = 0;
226
226
  for (let w = 0; w < l.length; w++) {
227
- var h;
227
+ var m;
228
228
  const {
229
229
  name: y,
230
230
  fn: v
@@ -243,7 +243,7 @@ const fn = async (e, t, n) => {
243
243
  rects: f,
244
244
  platform: {
245
245
  ...s,
246
- detectOverflow: (h = s.detectOverflow) != null ? h : an
246
+ detectOverflow: (m = s.detectOverflow) != null ? m : dn
247
247
  },
248
248
  elements: {
249
249
  reference: e,
@@ -256,14 +256,14 @@ const fn = async (e, t, n) => {
256
256
  ...u[y],
257
257
  ...C
258
258
  }
259
- }, A && m <= 50 && (m++, typeof A == "object" && (A.placement && (p = A.placement), A.rects && (f = A.rects === !0 ? await s.getElementRects({
259
+ }, A && h <= 50 && (h++, typeof A == "object" && (A.placement && (p = A.placement), A.rects && (f = A.rects === !0 ? await s.getElementRects({
260
260
  reference: e,
261
261
  floating: t,
262
262
  strategy: r
263
263
  }) : A.rects), {
264
264
  x: a,
265
265
  y: d
266
- } = Ye(f, p, c)), w = -1);
266
+ } = Xe(f, p, c)), w = -1);
267
267
  }
268
268
  return {
269
269
  x: a,
@@ -272,7 +272,7 @@ const fn = async (e, t, n) => {
272
272
  strategy: r,
273
273
  middlewareData: u
274
274
  };
275
- }, un = (e) => ({
275
+ }, hn = (e) => ({
276
276
  name: "arrow",
277
277
  options: e,
278
278
  async fn(t) {
@@ -290,18 +290,18 @@ const fn = async (e, t, n) => {
290
290
  } = G(e, t) || {};
291
291
  if (f == null)
292
292
  return {};
293
- const d = tt(a), p = {
293
+ const d = ot(a), p = {
294
294
  x: n,
295
295
  y: o
296
- }, u = _e(r), m = Me(u), h = await s.getDimensions(f), w = u === "y", y = w ? "top" : "left", v = w ? "bottom" : "right", b = w ? "clientHeight" : "clientWidth", x = i.reference[m] + i.reference[u] - p[u] - i.floating[m], C = p[u] - i.reference[u], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(f));
296
+ }, u = _e(r), h = Me(u), m = await s.getDimensions(f), w = u === "y", y = w ? "top" : "left", v = w ? "bottom" : "right", b = w ? "clientHeight" : "clientWidth", x = i.reference[h] + i.reference[u] - p[u] - i.floating[h], C = p[u] - i.reference[u], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(f));
297
297
  let P = A ? A[b] : 0;
298
- (!P || !await (s.isElement == null ? void 0 : s.isElement(A))) && (P = l.floating[b] || i.floating[m]);
299
- const M = x / 2 - C / 2, H = P / 2 - h[m] / 2 - 1, D = U(d[y], H), k = U(d[v], H), N = D, E = P - h[m] - k, T = P / 2 - h[m] / 2 + M, F = Oe(N, T, E), S = !c.arrow && ne(r) != null && T !== F && i.reference[m] / 2 - (T < N ? D : k) - h[m] / 2 < 0, L = S ? T < N ? T - N : T - E : 0;
298
+ (!P || !await (s.isElement == null ? void 0 : s.isElement(A))) && (P = l.floating[b] || i.floating[h]);
299
+ const M = x / 2 - C / 2, H = P / 2 - m[h] / 2 - 1, D = U(d[y], H), k = U(d[v], H), N = D, E = P - m[h] - k, O = P / 2 - m[h] / 2 + M, $ = Te(N, O, E), S = !c.arrow && ne(r) != null && O !== $ && i.reference[h] / 2 - (O < N ? D : k) - m[h] / 2 < 0, L = S ? O < N ? O - N : O - E : 0;
300
300
  return {
301
301
  [u]: p[u] + L,
302
302
  data: {
303
- [u]: F,
304
- centerOffset: T - F - L,
303
+ [u]: $,
304
+ centerOffset: O - $ - L,
305
305
  ...S && {
306
306
  alignmentOffset: L
307
307
  }
@@ -309,7 +309,7 @@ const fn = async (e, t, n) => {
309
309
  reset: S
310
310
  };
311
311
  }
312
- }), dn = function(e) {
312
+ }), mn = function(e) {
313
313
  return e === void 0 && (e = {}), {
314
314
  name: "flip",
315
315
  options: e,
@@ -327,36 +327,36 @@ const fn = async (e, t, n) => {
327
327
  crossAxis: d = !0,
328
328
  fallbackPlacements: p,
329
329
  fallbackStrategy: u = "bestFit",
330
- fallbackAxisSideDirection: m = "none",
331
- flipAlignment: h = !0,
330
+ fallbackAxisSideDirection: h = "none",
331
+ flipAlignment: m = !0,
332
332
  ...w
333
333
  } = G(e, t);
334
334
  if ((n = i.arrow) != null && n.alignmentOffset)
335
335
  return {};
336
- const y = q(r), v = z(l), b = q(l) === l, x = await (c.isRTL == null ? void 0 : c.isRTL(f.floating)), C = p || (b || !h ? [pe(l)] : nn(l)), A = m !== "none";
337
- !p && A && C.push(...cn(l, h, m, x));
336
+ const y = q(r), v = z(l), b = q(l) === l, x = await (c.isRTL == null ? void 0 : c.isRTL(f.floating)), C = p || (b || !m ? [he(l)] : sn(l)), A = h !== "none";
337
+ !p && A && C.push(...fn(l, m, h, x));
338
338
  const P = [l, ...C], M = await c.detectOverflow(t, w), H = [];
339
339
  let D = ((o = i.flip) == null ? void 0 : o.overflows) || [];
340
340
  if (a && H.push(M[y]), d) {
341
- const T = tn(r, s, x);
342
- H.push(M[T[0]], M[T[1]]);
341
+ const O = rn(r, s, x);
342
+ H.push(M[O[0]], M[O[1]]);
343
343
  }
344
344
  if (D = [...D, {
345
345
  placement: r,
346
346
  overflows: H
347
- }], !H.every((T) => T <= 0)) {
347
+ }], !H.every((O) => O <= 0)) {
348
348
  var k, N;
349
- const T = (((k = i.flip) == null ? void 0 : k.index) || 0) + 1, F = P[T];
350
- if (F && (!(d === "alignment" ? v !== z(F) : !1) || // We leave the current main axis only if every placement on that axis
349
+ const O = (((k = i.flip) == null ? void 0 : k.index) || 0) + 1, $ = P[O];
350
+ if ($ && (!(d === "alignment" ? v !== z($) : !1) || // We leave the current main axis only if every placement on that axis
351
351
  // overflows the main axis.
352
352
  D.every((R) => z(R.placement) === v ? R.overflows[0] > 0 : !0)))
353
353
  return {
354
354
  data: {
355
- index: T,
355
+ index: O,
356
356
  overflows: D
357
357
  },
358
358
  reset: {
359
- placement: F
359
+ placement: $
360
360
  }
361
361
  };
362
362
  let S = (N = D.filter((L) => L.overflows[0] <= 0).sort((L, R) => L.overflows[1] - R.overflows[1])[0]) == null ? void 0 : N.placement;
@@ -391,7 +391,7 @@ const fn = async (e, t, n) => {
391
391
  }
392
392
  };
393
393
  };
394
- function Xe(e, t) {
394
+ function Ge(e, t) {
395
395
  return {
396
396
  top: e.top - t.height,
397
397
  right: e.right - t.width,
@@ -399,10 +399,10 @@ function Xe(e, t) {
399
399
  left: e.left - t.width
400
400
  };
401
401
  }
402
- function Ge(e) {
403
- return Zt.some((t) => e[t] >= 0);
402
+ function qe(e) {
403
+ return en.some((t) => e[t] >= 0);
404
404
  }
405
- const pn = function(e) {
405
+ const gn = function(e) {
406
406
  return e === void 0 && (e = {}), {
407
407
  name: "hide",
408
408
  options: e,
@@ -419,11 +419,11 @@ const pn = function(e) {
419
419
  const s = await o.detectOverflow(t, {
420
420
  ...i,
421
421
  elementContext: "reference"
422
- }), l = Xe(s, n.reference);
422
+ }), l = Ge(s, n.reference);
423
423
  return {
424
424
  data: {
425
425
  referenceHiddenOffsets: l,
426
- referenceHidden: Ge(l)
426
+ referenceHidden: qe(l)
427
427
  }
428
428
  };
429
429
  }
@@ -431,11 +431,11 @@ const pn = function(e) {
431
431
  const s = await o.detectOverflow(t, {
432
432
  ...i,
433
433
  altBoundary: !0
434
- }), l = Xe(s, n.floating);
434
+ }), l = Ge(s, n.floating);
435
435
  return {
436
436
  data: {
437
437
  escapedOffsets: l,
438
- escaped: Ge(l)
438
+ escaped: qe(l)
439
439
  }
440
440
  };
441
441
  }
@@ -444,17 +444,17 @@ const pn = function(e) {
444
444
  }
445
445
  }
446
446
  };
447
- }, nt = /* @__PURE__ */ new Set(["left", "top"]);
448
- async function mn(e, t) {
447
+ }, rt = /* @__PURE__ */ new Set(["left", "top"]);
448
+ async function wn(e, t) {
449
449
  const {
450
450
  placement: n,
451
451
  platform: o,
452
452
  elements: r
453
- } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = q(n), l = ne(n), c = z(n) === "y", f = nt.has(s) ? -1 : 1, a = i && c ? -1 : 1, d = G(t, e);
453
+ } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = q(n), l = ne(n), c = z(n) === "y", f = rt.has(s) ? -1 : 1, a = i && c ? -1 : 1, d = G(t, e);
454
454
  let {
455
455
  mainAxis: p,
456
456
  crossAxis: u,
457
- alignmentAxis: m
457
+ alignmentAxis: h
458
458
  } = typeof d == "number" ? {
459
459
  mainAxis: d,
460
460
  crossAxis: 0,
@@ -464,7 +464,7 @@ async function mn(e, t) {
464
464
  crossAxis: d.crossAxis || 0,
465
465
  alignmentAxis: d.alignmentAxis
466
466
  };
467
- return l && typeof m == "number" && (u = l === "end" ? m * -1 : m), c ? {
467
+ return l && typeof h == "number" && (u = l === "end" ? h * -1 : h), c ? {
468
468
  x: u * a,
469
469
  y: p * f
470
470
  } : {
@@ -472,7 +472,7 @@ async function mn(e, t) {
472
472
  y: u * a
473
473
  };
474
474
  }
475
- const hn = function(e) {
475
+ const yn = function(e) {
476
476
  return e === void 0 && (e = 0), {
477
477
  name: "offset",
478
478
  options: e,
@@ -483,7 +483,7 @@ const hn = function(e) {
483
483
  y: i,
484
484
  placement: s,
485
485
  middlewareData: l
486
- } = t, c = await mn(t, e);
486
+ } = t, c = await wn(t, e);
487
487
  return s === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
488
488
  x: r + c.x,
489
489
  y: i + c.y,
@@ -494,7 +494,7 @@ const hn = function(e) {
494
494
  };
495
495
  }
496
496
  };
497
- }, gn = function(e) {
497
+ }, xn = function(e) {
498
498
  return e === void 0 && (e = {}), {
499
499
  name: "shift",
500
500
  options: e,
@@ -524,19 +524,19 @@ const hn = function(e) {
524
524
  x: n,
525
525
  y: o
526
526
  }, d = await i.detectOverflow(t, f), p = z(q(r)), u = De(p);
527
- let m = a[u], h = a[p];
527
+ let h = a[u], m = a[p];
528
528
  if (s) {
529
- const y = u === "y" ? "top" : "left", v = u === "y" ? "bottom" : "right", b = m + d[y], x = m - d[v];
530
- m = Oe(b, m, x);
529
+ const y = u === "y" ? "top" : "left", v = u === "y" ? "bottom" : "right", b = h + d[y], x = h - d[v];
530
+ h = Te(b, h, x);
531
531
  }
532
532
  if (l) {
533
- const y = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", b = h + d[y], x = h - d[v];
534
- h = Oe(b, h, x);
533
+ const y = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", b = m + d[y], x = m - d[v];
534
+ m = Te(b, m, x);
535
535
  }
536
536
  const w = c.fn({
537
537
  ...t,
538
- [u]: m,
539
- [p]: h
538
+ [u]: h,
539
+ [p]: m
540
540
  });
541
541
  return {
542
542
  ...w,
@@ -551,7 +551,7 @@ const hn = function(e) {
551
551
  };
552
552
  }
553
553
  };
554
- }, wn = function(e) {
554
+ }, vn = function(e) {
555
555
  return e === void 0 && (e = {}), {
556
556
  options: e,
557
557
  fn(t) {
@@ -569,14 +569,14 @@ const hn = function(e) {
569
569
  x: n,
570
570
  y: o
571
571
  }, d = z(r), p = De(d);
572
- let u = a[p], m = a[d];
573
- const h = G(l, t), w = typeof h == "number" ? {
574
- mainAxis: h,
572
+ let u = a[p], h = a[d];
573
+ const m = G(l, t), w = typeof m == "number" ? {
574
+ mainAxis: m,
575
575
  crossAxis: 0
576
576
  } : {
577
577
  mainAxis: 0,
578
578
  crossAxis: 0,
579
- ...h
579
+ ...m
580
580
  };
581
581
  if (c) {
582
582
  const b = p === "y" ? "height" : "width", x = i.reference[p] - i.floating[b] + w.mainAxis, C = i.reference[p] + i.reference[b] - w.mainAxis;
@@ -584,16 +584,16 @@ const hn = function(e) {
584
584
  }
585
585
  if (f) {
586
586
  var y, v;
587
- const b = p === "y" ? "width" : "height", x = nt.has(q(r)), C = i.reference[d] - i.floating[b] + (x && ((y = s.offset) == null ? void 0 : y[d]) || 0) + (x ? 0 : w.crossAxis), A = i.reference[d] + i.reference[b] + (x ? 0 : ((v = s.offset) == null ? void 0 : v[d]) || 0) - (x ? w.crossAxis : 0);
588
- m < C ? m = C : m > A && (m = A);
587
+ const b = p === "y" ? "width" : "height", x = rt.has(q(r)), C = i.reference[d] - i.floating[b] + (x && ((y = s.offset) == null ? void 0 : y[d]) || 0) + (x ? 0 : w.crossAxis), A = i.reference[d] + i.reference[b] + (x ? 0 : ((v = s.offset) == null ? void 0 : v[d]) || 0) - (x ? w.crossAxis : 0);
588
+ h < C ? h = C : h > A && (h = A);
589
589
  }
590
590
  return {
591
591
  [p]: u,
592
- [d]: m
592
+ [d]: h
593
593
  };
594
594
  }
595
595
  };
596
- }, yn = function(e) {
596
+ }, bn = function(e) {
597
597
  return e === void 0 && (e = {}), {
598
598
  name: "size",
599
599
  options: e,
@@ -609,16 +609,16 @@ const hn = function(e) {
609
609
  },
610
610
  ...f
611
611
  } = G(e, t), a = await s.detectOverflow(t, f), d = q(r), p = ne(r), u = z(r) === "y", {
612
- width: m,
613
- height: h
612
+ width: h,
613
+ height: m
614
614
  } = i.floating;
615
615
  let w, y;
616
616
  d === "top" || d === "bottom" ? (w = d, y = p === (await (s.isRTL == null ? void 0 : s.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (y = d, w = p === "end" ? "top" : "bottom");
617
- const v = h - a.top - a.bottom, b = m - a.left - a.right, x = U(h - a[w], v), C = U(m - a[y], b), A = !t.middlewareData.shift;
617
+ const v = m - a.top - a.bottom, b = h - a.left - a.right, x = U(m - a[w], v), C = U(h - a[y], b), A = !t.middlewareData.shift;
618
618
  let P = x, M = C;
619
619
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (M = b), (o = t.middlewareData.shift) != null && o.enabled.y && (P = v), A && !p) {
620
- const D = $(a.left, 0), k = $(a.right, 0), N = $(a.top, 0), E = $(a.bottom, 0);
621
- u ? M = m - 2 * (D !== 0 || k !== 0 ? D + k : $(a.left, a.right)) : P = h - 2 * (N !== 0 || E !== 0 ? N + E : $(a.top, a.bottom));
620
+ const D = F(a.left, 0), k = F(a.right, 0), N = F(a.top, 0), E = F(a.bottom, 0);
621
+ u ? M = h - 2 * (D !== 0 || k !== 0 ? D + k : F(a.left, a.right)) : P = m - 2 * (N !== 0 || E !== 0 ? N + E : F(a.top, a.bottom));
622
622
  }
623
623
  await c({
624
624
  ...t,
@@ -626,7 +626,7 @@ const hn = function(e) {
626
626
  availableHeight: P
627
627
  });
628
628
  const H = await s.getDimensions(l.floating);
629
- return m !== H.width || h !== H.height ? {
629
+ return h !== H.width || m !== H.height ? {
630
630
  reset: {
631
631
  rects: !0
632
632
  }
@@ -634,11 +634,11 @@ const hn = function(e) {
634
634
  }
635
635
  };
636
636
  };
637
- function we() {
637
+ function ye() {
638
638
  return typeof window < "u";
639
639
  }
640
640
  function oe(e) {
641
- return ot(e) ? (e.nodeName || "").toLowerCase() : "#document";
641
+ return it(e) ? (e.nodeName || "").toLowerCase() : "#document";
642
642
  }
643
643
  function I(e) {
644
644
  var t;
@@ -646,21 +646,21 @@ function I(e) {
646
646
  }
647
647
  function X(e) {
648
648
  var t;
649
- return (t = (ot(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
649
+ return (t = (it(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
650
650
  }
651
- function ot(e) {
652
- return we() ? e instanceof Node || e instanceof I(e).Node : !1;
651
+ function it(e) {
652
+ return ye() ? e instanceof Node || e instanceof I(e).Node : !1;
653
653
  }
654
654
  function W(e) {
655
- return we() ? e instanceof Element || e instanceof I(e).Element : !1;
655
+ return ye() ? e instanceof Element || e instanceof I(e).Element : !1;
656
656
  }
657
657
  function Y(e) {
658
- return we() ? e instanceof HTMLElement || e instanceof I(e).HTMLElement : !1;
658
+ return ye() ? e instanceof HTMLElement || e instanceof I(e).HTMLElement : !1;
659
659
  }
660
- function qe(e) {
661
- return !we() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof I(e).ShadowRoot;
660
+ function Ue(e) {
661
+ return !ye() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof I(e).ShadowRoot;
662
662
  }
663
- const xn = /* @__PURE__ */ new Set(["inline", "contents"]);
663
+ const Cn = /* @__PURE__ */ new Set(["inline", "contents"]);
664
664
  function le(e) {
665
665
  const {
666
666
  overflow: t,
@@ -668,15 +668,15 @@ function le(e) {
668
668
  overflowY: o,
669
669
  display: r
670
670
  } = B(e);
671
- return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !xn.has(r);
671
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !Cn.has(r);
672
672
  }
673
- const vn = /* @__PURE__ */ new Set(["table", "td", "th"]);
674
- function bn(e) {
675
- return vn.has(oe(e));
673
+ const An = /* @__PURE__ */ new Set(["table", "td", "th"]);
674
+ function Rn(e) {
675
+ return An.has(oe(e));
676
676
  }
677
- const Cn = [":popover-open", ":modal"];
678
- function ye(e) {
679
- return Cn.some((t) => {
677
+ const Pn = [":popover-open", ":modal"];
678
+ function xe(e) {
679
+ return Pn.some((t) => {
680
680
  try {
681
681
  return e.matches(t);
682
682
  } catch {
@@ -684,17 +684,17 @@ function ye(e) {
684
684
  }
685
685
  });
686
686
  }
687
- const An = ["transform", "translate", "scale", "rotate", "perspective"], Rn = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Pn = ["paint", "layout", "strict", "content"];
687
+ const Tn = ["transform", "translate", "scale", "rotate", "perspective"], On = ["transform", "translate", "scale", "rotate", "perspective", "filter"], En = ["paint", "layout", "strict", "content"];
688
688
  function ke(e) {
689
689
  const t = Ne(), n = W(e) ? B(e) : e;
690
- return An.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Rn.some((o) => (n.willChange || "").includes(o)) || Pn.some((o) => (n.contain || "").includes(o));
690
+ return Tn.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || On.some((o) => (n.willChange || "").includes(o)) || En.some((o) => (n.contain || "").includes(o));
691
691
  }
692
- function On(e) {
692
+ function Sn(e) {
693
693
  let t = K(e);
694
694
  for (; Y(t) && !ee(t); ) {
695
695
  if (ke(t))
696
696
  return t;
697
- if (ye(t))
697
+ if (xe(t))
698
698
  return null;
699
699
  t = K(t);
700
700
  }
@@ -703,14 +703,14 @@ function On(e) {
703
703
  function Ne() {
704
704
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
705
705
  }
706
- const Tn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
706
+ const Ln = /* @__PURE__ */ new Set(["html", "body", "#document"]);
707
707
  function ee(e) {
708
- return Tn.has(oe(e));
708
+ return Ln.has(oe(e));
709
709
  }
710
710
  function B(e) {
711
711
  return I(e).getComputedStyle(e);
712
712
  }
713
- function xe(e) {
713
+ function ve(e) {
714
714
  return W(e) ? {
715
715
  scrollLeft: e.scrollLeft,
716
716
  scrollTop: e.scrollTop
@@ -726,19 +726,19 @@ function K(e) {
726
726
  // Step into the shadow DOM of the parent of a slotted node.
727
727
  e.assignedSlot || // DOM Element detected.
728
728
  e.parentNode || // ShadowRoot detected.
729
- qe(e) && e.host || // Fallback.
729
+ Ue(e) && e.host || // Fallback.
730
730
  X(e)
731
731
  );
732
- return qe(t) ? t.host : t;
732
+ return Ue(t) ? t.host : t;
733
733
  }
734
- function rt(e) {
734
+ function st(e) {
735
735
  const t = K(e);
736
- return ee(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && le(t) ? t : rt(t);
736
+ return ee(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && le(t) ? t : st(t);
737
737
  }
738
738
  function ie(e, t, n) {
739
739
  var o;
740
740
  t === void 0 && (t = []), n === void 0 && (n = !0);
741
- const r = rt(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), s = I(r);
741
+ const r = st(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), s = I(r);
742
742
  if (i) {
743
743
  const l = Ee(s);
744
744
  return t.concat(s, s.visualViewport || [], le(r) ? r : [], l && n ? ie(l) : []);
@@ -748,10 +748,10 @@ function ie(e, t, n) {
748
748
  function Ee(e) {
749
749
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
750
750
  }
751
- function it(e) {
751
+ function ct(e) {
752
752
  const t = B(e);
753
753
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
754
- const r = Y(e), i = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o, l = de(n) !== i || de(o) !== s;
754
+ const r = Y(e), i = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o, l = pe(n) !== i || pe(o) !== s;
755
755
  return l && (n = i, o = s), {
756
756
  width: n,
757
757
  height: o,
@@ -769,22 +769,22 @@ function Q(e) {
769
769
  width: o,
770
770
  height: r,
771
771
  $: i
772
- } = it(t);
773
- let s = (i ? de(n.width) : n.width) / o, l = (i ? de(n.height) : n.height) / r;
772
+ } = ct(t);
773
+ let s = (i ? pe(n.width) : n.width) / o, l = (i ? pe(n.height) : n.height) / r;
774
774
  return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
775
775
  x: s,
776
776
  y: l
777
777
  };
778
778
  }
779
- const En = /* @__PURE__ */ j(0);
780
- function st(e) {
779
+ const Dn = /* @__PURE__ */ j(0);
780
+ function lt(e) {
781
781
  const t = I(e);
782
- return !Ne() || !t.visualViewport ? En : {
782
+ return !Ne() || !t.visualViewport ? Dn : {
783
783
  x: t.visualViewport.offsetLeft,
784
784
  y: t.visualViewport.offsetTop
785
785
  };
786
786
  }
787
- function Sn(e, t, n) {
787
+ function Mn(e, t, n) {
788
788
  return t === void 0 && (t = !1), !n || t && n !== I(e) ? !1 : t;
789
789
  }
790
790
  function Z(e, t, n, o) {
@@ -792,14 +792,14 @@ function Z(e, t, n, o) {
792
792
  const r = e.getBoundingClientRect(), i = He(e);
793
793
  let s = j(1);
794
794
  t && (o ? W(o) && (s = Q(o)) : s = Q(e));
795
- const l = Sn(i, n, o) ? st(i) : j(0);
795
+ const l = Mn(i, n, o) ? lt(i) : j(0);
796
796
  let c = (r.left + l.x) / s.x, f = (r.top + l.y) / s.y, a = r.width / s.x, d = r.height / s.y;
797
797
  if (i) {
798
798
  const p = I(i), u = o && W(o) ? I(o) : o;
799
- let m = p, h = Ee(m);
800
- for (; h && o && u !== m; ) {
801
- const w = Q(h), y = h.getBoundingClientRect(), v = B(h), b = y.left + (h.clientLeft + parseFloat(v.paddingLeft)) * w.x, x = y.top + (h.clientTop + parseFloat(v.paddingTop)) * w.y;
802
- c *= w.x, f *= w.y, a *= w.x, d *= w.y, c += b, f += x, m = I(h), h = Ee(m);
799
+ let h = p, m = Ee(h);
800
+ for (; m && o && u !== h; ) {
801
+ const w = Q(m), y = m.getBoundingClientRect(), v = B(m), b = y.left + (m.clientLeft + parseFloat(v.paddingLeft)) * w.x, x = y.top + (m.clientTop + parseFloat(v.paddingTop)) * w.y;
802
+ c *= w.x, f *= w.y, a *= w.x, d *= w.y, c += b, f += x, h = I(m), m = Ee(h);
803
803
  }
804
804
  }
805
805
  return me({
@@ -809,25 +809,25 @@ function Z(e, t, n, o) {
809
809
  y: f
810
810
  });
811
811
  }
812
- function ve(e, t) {
813
- const n = xe(e).scrollLeft;
812
+ function be(e, t) {
813
+ const n = ve(e).scrollLeft;
814
814
  return t ? t.left + n : Z(X(e)).left + n;
815
815
  }
816
- function ct(e, t) {
817
- const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - ve(e, n), r = n.top + t.scrollTop;
816
+ function at(e, t) {
817
+ const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - be(e, n), r = n.top + t.scrollTop;
818
818
  return {
819
819
  x: o,
820
820
  y: r
821
821
  };
822
822
  }
823
- function Ln(e) {
823
+ function _n(e) {
824
824
  let {
825
825
  elements: t,
826
826
  rect: n,
827
827
  offsetParent: o,
828
828
  strategy: r
829
829
  } = e;
830
- const i = r === "fixed", s = X(o), l = t ? ye(t.floating) : !1;
830
+ const i = r === "fixed", s = X(o), l = t ? xe(t.floating) : !1;
831
831
  if (o === s || l && i)
832
832
  return n;
833
833
  let c = {
@@ -835,11 +835,11 @@ function Ln(e) {
835
835
  scrollTop: 0
836
836
  }, f = j(1);
837
837
  const a = j(0), d = Y(o);
838
- if ((d || !d && !i) && ((oe(o) !== "body" || le(s)) && (c = xe(o)), Y(o))) {
838
+ if ((d || !d && !i) && ((oe(o) !== "body" || le(s)) && (c = ve(o)), Y(o))) {
839
839
  const u = Z(o);
840
840
  f = Q(o), a.x = u.x + o.clientLeft, a.y = u.y + o.clientTop;
841
841
  }
842
- const p = s && !d && !i ? ct(s, c) : j(0);
842
+ const p = s && !d && !i ? at(s, c) : j(0);
843
843
  return {
844
844
  width: n.width * f.x,
845
845
  height: n.height * f.y,
@@ -847,22 +847,22 @@ function Ln(e) {
847
847
  y: n.y * f.y - c.scrollTop * f.y + a.y + p.y
848
848
  };
849
849
  }
850
- function Dn(e) {
850
+ function kn(e) {
851
851
  return Array.from(e.getClientRects());
852
852
  }
853
- function Mn(e) {
854
- const t = X(e), n = xe(e), o = e.ownerDocument.body, r = $(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = $(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
855
- let s = -n.scrollLeft + ve(e);
853
+ function Nn(e) {
854
+ const t = X(e), n = ve(e), o = e.ownerDocument.body, r = F(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = F(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
855
+ let s = -n.scrollLeft + be(e);
856
856
  const l = -n.scrollTop;
857
- return B(o).direction === "rtl" && (s += $(t.clientWidth, o.clientWidth) - r), {
857
+ return B(o).direction === "rtl" && (s += F(t.clientWidth, o.clientWidth) - r), {
858
858
  width: r,
859
859
  height: i,
860
860
  x: s,
861
861
  y: l
862
862
  };
863
863
  }
864
- const Ue = 25;
865
- function _n(e, t) {
864
+ const Ke = 25;
865
+ function Hn(e, t) {
866
866
  const n = I(e), o = X(e), r = n.visualViewport;
867
867
  let i = o.clientWidth, s = o.clientHeight, l = 0, c = 0;
868
868
  if (r) {
@@ -870,11 +870,11 @@ function _n(e, t) {
870
870
  const a = Ne();
871
871
  (!a || a && t === "fixed") && (l = r.offsetLeft, c = r.offsetTop);
872
872
  }
873
- const f = ve(o);
873
+ const f = be(o);
874
874
  if (f <= 0) {
875
- const a = o.ownerDocument, d = a.body, p = getComputedStyle(d), u = a.compatMode === "CSS1Compat" && parseFloat(p.marginLeft) + parseFloat(p.marginRight) || 0, m = Math.abs(o.clientWidth - d.clientWidth - u);
876
- m <= Ue && (i -= m);
877
- } else f <= Ue && (i += f);
875
+ const a = o.ownerDocument, d = a.body, p = getComputedStyle(d), u = a.compatMode === "CSS1Compat" && parseFloat(p.marginLeft) + parseFloat(p.marginRight) || 0, h = Math.abs(o.clientWidth - d.clientWidth - u);
876
+ h <= Ke && (i -= h);
877
+ } else f <= Ke && (i += f);
878
878
  return {
879
879
  width: i,
880
880
  height: s,
@@ -882,8 +882,8 @@ function _n(e, t) {
882
882
  y: c
883
883
  };
884
884
  }
885
- const kn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
886
- function Nn(e, t) {
885
+ const $n = /* @__PURE__ */ new Set(["absolute", "fixed"]);
886
+ function Fn(e, t) {
887
887
  const n = Z(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = Y(e) ? Q(e) : j(1), s = e.clientWidth * i.x, l = e.clientHeight * i.y, c = r * i.x, f = o * i.y;
888
888
  return {
889
889
  width: s,
@@ -892,16 +892,16 @@ function Nn(e, t) {
892
892
  y: f
893
893
  };
894
894
  }
895
- function Ke(e, t, n) {
895
+ function Ze(e, t, n) {
896
896
  let o;
897
897
  if (t === "viewport")
898
- o = _n(e, n);
898
+ o = Hn(e, n);
899
899
  else if (t === "document")
900
- o = Mn(X(e));
900
+ o = Nn(X(e));
901
901
  else if (W(t))
902
- o = Nn(t, n);
902
+ o = Fn(t, n);
903
903
  else {
904
- const r = st(e);
904
+ const r = lt(e);
905
905
  o = {
906
906
  x: t.x - r.x,
907
907
  y: t.y - r.y,
@@ -911,11 +911,11 @@ function Ke(e, t, n) {
911
911
  }
912
912
  return me(o);
913
913
  }
914
- function lt(e, t) {
914
+ function ft(e, t) {
915
915
  const n = K(e);
916
- return n === t || !W(n) || ee(n) ? !1 : B(n).position === "fixed" || lt(n, t);
916
+ return n === t || !W(n) || ee(n) ? !1 : B(n).position === "fixed" || ft(n, t);
917
917
  }
918
- function Hn(e, t) {
918
+ function In(e, t) {
919
919
  const n = t.get(e);
920
920
  if (n)
921
921
  return n;
@@ -924,21 +924,21 @@ function Hn(e, t) {
924
924
  let s = i ? K(e) : e;
925
925
  for (; W(s) && !ee(s); ) {
926
926
  const l = B(s), c = ke(s);
927
- !c && l.position === "fixed" && (r = null), (i ? !c && !r : !c && l.position === "static" && !!r && kn.has(r.position) || le(s) && !c && lt(e, s)) ? o = o.filter((a) => a !== s) : r = l, s = K(s);
927
+ !c && l.position === "fixed" && (r = null), (i ? !c && !r : !c && l.position === "static" && !!r && $n.has(r.position) || le(s) && !c && ft(e, s)) ? o = o.filter((a) => a !== s) : r = l, s = K(s);
928
928
  }
929
929
  return t.set(e, o), o;
930
930
  }
931
- function Fn(e) {
931
+ function Wn(e) {
932
932
  let {
933
933
  element: t,
934
934
  boundary: n,
935
935
  rootBoundary: o,
936
936
  strategy: r
937
937
  } = e;
938
- const s = [...n === "clippingAncestors" ? ye(t) ? [] : Hn(t, this._c) : [].concat(n), o], l = s[0], c = s.reduce((f, a) => {
939
- const d = Ke(t, a, r);
940
- return f.top = $(d.top, f.top), f.right = U(d.right, f.right), f.bottom = U(d.bottom, f.bottom), f.left = $(d.left, f.left), f;
941
- }, Ke(t, l, r));
938
+ const s = [...n === "clippingAncestors" ? xe(t) ? [] : In(t, this._c) : [].concat(n), o], l = s[0], c = s.reduce((f, a) => {
939
+ const d = Ze(t, a, r);
940
+ return f.top = F(d.top, f.top), f.right = U(d.right, f.right), f.bottom = U(d.bottom, f.bottom), f.left = F(d.left, f.left), f;
941
+ }, Ze(t, l, r));
942
942
  return {
943
943
  width: c.right - c.left,
944
944
  height: c.bottom - c.top,
@@ -946,17 +946,17 @@ function Fn(e) {
946
946
  y: c.top
947
947
  };
948
948
  }
949
- function $n(e) {
949
+ function Bn(e) {
950
950
  const {
951
951
  width: t,
952
952
  height: n
953
- } = it(e);
953
+ } = ct(e);
954
954
  return {
955
955
  width: t,
956
956
  height: n
957
957
  };
958
958
  }
959
- function In(e, t, n) {
959
+ function Vn(e, t, n) {
960
960
  const o = Y(t), r = X(t), i = n === "fixed", s = Z(e, !0, i, t);
961
961
  let l = {
962
962
  scrollLeft: 0,
@@ -964,15 +964,15 @@ function In(e, t, n) {
964
964
  };
965
965
  const c = j(0);
966
966
  function f() {
967
- c.x = ve(r);
967
+ c.x = be(r);
968
968
  }
969
969
  if (o || !o && !i)
970
- if ((oe(t) !== "body" || le(r)) && (l = xe(t)), o) {
970
+ if ((oe(t) !== "body" || le(r)) && (l = ve(t)), o) {
971
971
  const u = Z(t, !0, i, t);
972
972
  c.x = u.x + t.clientLeft, c.y = u.y + t.clientTop;
973
973
  } else r && f();
974
974
  i && !o && r && f();
975
- const a = r && !o && !i ? ct(r, l) : j(0), d = s.left + l.scrollLeft - c.x - a.x, p = s.top + l.scrollTop - c.y - a.y;
975
+ const a = r && !o && !i ? at(r, l) : j(0), d = s.left + l.scrollLeft - c.x - a.x, p = s.top + l.scrollTop - c.y - a.y;
976
976
  return {
977
977
  x: d,
978
978
  y: p,
@@ -983,7 +983,7 @@ function In(e, t, n) {
983
983
  function Re(e) {
984
984
  return B(e).position === "static";
985
985
  }
986
- function Ze(e, t) {
986
+ function Je(e, t) {
987
987
  if (!Y(e) || B(e).position === "fixed")
988
988
  return null;
989
989
  if (t)
@@ -991,9 +991,9 @@ function Ze(e, t) {
991
991
  let n = e.offsetParent;
992
992
  return X(e) === n && (n = n.ownerDocument.body), n;
993
993
  }
994
- function at(e, t) {
994
+ function ut(e, t) {
995
995
  const n = I(e);
996
- if (ye(e))
996
+ if (xe(e))
997
997
  return n;
998
998
  if (!Y(e)) {
999
999
  let r = K(e);
@@ -1004,15 +1004,15 @@ function at(e, t) {
1004
1004
  }
1005
1005
  return n;
1006
1006
  }
1007
- let o = Ze(e, t);
1008
- for (; o && bn(o) && Re(o); )
1009
- o = Ze(o, t);
1010
- return o && ee(o) && Re(o) && !ke(o) ? n : o || On(e) || n;
1007
+ let o = Je(e, t);
1008
+ for (; o && Rn(o) && Re(o); )
1009
+ o = Je(o, t);
1010
+ return o && ee(o) && Re(o) && !ke(o) ? n : o || Sn(e) || n;
1011
1011
  }
1012
- const Wn = async function(e) {
1013
- const t = this.getOffsetParent || at, n = this.getDimensions, o = await n(e.floating);
1012
+ const zn = async function(e) {
1013
+ const t = this.getOffsetParent || ut, n = this.getDimensions, o = await n(e.floating);
1014
1014
  return {
1015
- reference: In(e.reference, await t(e.floating), e.strategy),
1015
+ reference: Vn(e.reference, await t(e.floating), e.strategy),
1016
1016
  floating: {
1017
1017
  x: 0,
1018
1018
  y: 0,
@@ -1021,25 +1021,25 @@ const Wn = async function(e) {
1021
1021
  }
1022
1022
  };
1023
1023
  };
1024
- function Bn(e) {
1024
+ function jn(e) {
1025
1025
  return B(e).direction === "rtl";
1026
1026
  }
1027
- const Vn = {
1028
- convertOffsetParentRelativeRectToViewportRelativeRect: Ln,
1027
+ const Yn = {
1028
+ convertOffsetParentRelativeRectToViewportRelativeRect: _n,
1029
1029
  getDocumentElement: X,
1030
- getClippingRect: Fn,
1031
- getOffsetParent: at,
1032
- getElementRects: Wn,
1033
- getClientRects: Dn,
1034
- getDimensions: $n,
1030
+ getClippingRect: Wn,
1031
+ getOffsetParent: ut,
1032
+ getElementRects: zn,
1033
+ getClientRects: kn,
1034
+ getDimensions: Bn,
1035
1035
  getScale: Q,
1036
1036
  isElement: W,
1037
- isRTL: Bn
1037
+ isRTL: jn
1038
1038
  };
1039
- function ft(e, t) {
1039
+ function dt(e, t) {
1040
1040
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1041
1041
  }
1042
- function zn(e, t) {
1042
+ function Xn(e, t) {
1043
1043
  let n = null, o;
1044
1044
  const r = X(e);
1045
1045
  function i() {
@@ -1056,9 +1056,9 @@ function zn(e, t) {
1056
1056
  } = f;
1057
1057
  if (l || t(), !p || !u)
1058
1058
  return;
1059
- const m = fe(d), h = fe(r.clientWidth - (a + p)), w = fe(r.clientHeight - (d + u)), y = fe(a), b = {
1060
- rootMargin: -m + "px " + -h + "px " + -w + "px " + -y + "px",
1061
- threshold: $(0, U(1, c)) || 1
1059
+ const h = ue(d), m = ue(r.clientWidth - (a + p)), w = ue(r.clientHeight - (d + u)), y = ue(a), b = {
1060
+ rootMargin: -h + "px " + -m + "px " + -w + "px " + -y + "px",
1061
+ threshold: F(0, U(1, c)) || 1
1062
1062
  };
1063
1063
  let x = !0;
1064
1064
  function C(A) {
@@ -1070,7 +1070,7 @@ function zn(e, t) {
1070
1070
  s(!1, 1e-7);
1071
1071
  }, 1e3);
1072
1072
  }
1073
- P === 1 && !ft(f, e.getBoundingClientRect()) && s(), x = !1;
1073
+ P === 1 && !dt(f, e.getBoundingClientRect()) && s(), x = !1;
1074
1074
  }
1075
1075
  try {
1076
1076
  n = new IntersectionObserver(C, {
@@ -1085,7 +1085,7 @@ function zn(e, t) {
1085
1085
  }
1086
1086
  return s(!0), i;
1087
1087
  }
1088
- function jn(e, t, n, o) {
1088
+ function Gn(e, t, n, o) {
1089
1089
  o === void 0 && (o = {});
1090
1090
  const {
1091
1091
  ancestorScroll: r = !0,
@@ -1099,7 +1099,7 @@ function jn(e, t, n, o) {
1099
1099
  passive: !0
1100
1100
  }), i && y.addEventListener("resize", n);
1101
1101
  });
1102
- const d = f && l ? zn(f, n) : null;
1102
+ const d = f && l ? Xn(f, n) : null;
1103
1103
  let p = -1, u = null;
1104
1104
  s && (u = new ResizeObserver((y) => {
1105
1105
  let [v] = y;
@@ -1108,35 +1108,35 @@ function jn(e, t, n, o) {
1108
1108
  (b = u) == null || b.observe(t);
1109
1109
  })), n();
1110
1110
  }), f && !c && u.observe(f), u.observe(t));
1111
- let m, h = c ? Z(e) : null;
1111
+ let h, m = c ? Z(e) : null;
1112
1112
  c && w();
1113
1113
  function w() {
1114
1114
  const y = Z(e);
1115
- h && !ft(h, y) && n(), h = y, m = requestAnimationFrame(w);
1115
+ m && !dt(m, y) && n(), m = y, h = requestAnimationFrame(w);
1116
1116
  }
1117
1117
  return n(), () => {
1118
1118
  var y;
1119
1119
  a.forEach((v) => {
1120
1120
  r && v.removeEventListener("scroll", n), i && v.removeEventListener("resize", n);
1121
- }), d?.(), (y = u) == null || y.disconnect(), u = null, c && cancelAnimationFrame(m);
1121
+ }), d?.(), (y = u) == null || y.disconnect(), u = null, c && cancelAnimationFrame(h);
1122
1122
  };
1123
1123
  }
1124
- const Yn = hn, Xn = gn, Gn = dn, qn = yn, Un = pn, Je = un, Kn = wn, Zn = (e, t, n) => {
1124
+ const qn = yn, Un = xn, Kn = mn, Zn = bn, Jn = gn, Qe = hn, Qn = vn, eo = (e, t, n) => {
1125
1125
  const o = /* @__PURE__ */ new Map(), r = {
1126
- platform: Vn,
1126
+ platform: Yn,
1127
1127
  ...n
1128
1128
  }, i = {
1129
1129
  ...r.platform,
1130
1130
  _c: o
1131
1131
  };
1132
- return fn(e, t, {
1132
+ return pn(e, t, {
1133
1133
  ...r,
1134
1134
  platform: i
1135
1135
  });
1136
1136
  };
1137
- var Jn = typeof document < "u", Qn = function() {
1138
- }, ue = Jn ? Bt : Qn;
1139
- function he(e, t) {
1137
+ var to = typeof document < "u", no = function() {
1138
+ }, de = to ? jt : no;
1139
+ function ge(e, t) {
1140
1140
  if (e === t)
1141
1141
  return !0;
1142
1142
  if (typeof e != typeof t)
@@ -1148,7 +1148,7 @@ function he(e, t) {
1148
1148
  if (Array.isArray(e)) {
1149
1149
  if (n = e.length, n !== t.length) return !1;
1150
1150
  for (o = n; o-- !== 0; )
1151
- if (!he(e[o], t[o]))
1151
+ if (!ge(e[o], t[o]))
1152
1152
  return !1;
1153
1153
  return !0;
1154
1154
  }
@@ -1159,27 +1159,27 @@ function he(e, t) {
1159
1159
  return !1;
1160
1160
  for (o = n; o-- !== 0; ) {
1161
1161
  const i = r[o];
1162
- if (!(i === "_owner" && e.$$typeof) && !he(e[i], t[i]))
1162
+ if (!(i === "_owner" && e.$$typeof) && !ge(e[i], t[i]))
1163
1163
  return !1;
1164
1164
  }
1165
1165
  return !0;
1166
1166
  }
1167
1167
  return e !== e && t !== t;
1168
1168
  }
1169
- function ut(e) {
1169
+ function pt(e) {
1170
1170
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1171
1171
  }
1172
- function Qe(e, t) {
1173
- const n = ut(e);
1172
+ function et(e, t) {
1173
+ const n = pt(e);
1174
1174
  return Math.round(t * n) / n;
1175
1175
  }
1176
1176
  function Pe(e) {
1177
1177
  const t = g.useRef(e);
1178
- return ue(() => {
1178
+ return de(() => {
1179
1179
  t.current = e;
1180
1180
  }), t;
1181
1181
  }
1182
- function eo(e) {
1182
+ function oo(e) {
1183
1183
  e === void 0 && (e = {});
1184
1184
  const {
1185
1185
  placement: t = "bottom",
@@ -1201,12 +1201,12 @@ function eo(e) {
1201
1201
  middlewareData: {},
1202
1202
  isPositioned: !1
1203
1203
  }), [p, u] = g.useState(o);
1204
- he(p, o) || u(o);
1205
- const [m, h] = g.useState(null), [w, y] = g.useState(null), v = g.useCallback((R) => {
1206
- R !== A.current && (A.current = R, h(R));
1204
+ ge(p, o) || u(o);
1205
+ const [h, m] = g.useState(null), [w, y] = g.useState(null), v = g.useCallback((R) => {
1206
+ R !== A.current && (A.current = R, m(R));
1207
1207
  }, []), b = g.useCallback((R) => {
1208
1208
  R !== P.current && (P.current = R, y(R));
1209
- }, []), x = i || m, C = s || w, A = g.useRef(null), P = g.useRef(null), M = g.useRef(a), H = c != null, D = Pe(c), k = Pe(r), N = Pe(f), E = g.useCallback(() => {
1209
+ }, []), x = i || h, C = s || w, A = g.useRef(null), P = g.useRef(null), M = g.useRef(a), H = c != null, D = Pe(c), k = Pe(r), N = Pe(f), E = g.useCallback(() => {
1210
1210
  if (!A.current || !P.current)
1211
1211
  return;
1212
1212
  const R = {
@@ -1214,7 +1214,7 @@ function eo(e) {
1214
1214
  strategy: n,
1215
1215
  middleware: p
1216
1216
  };
1217
- k.current && (R.platform = k.current), Zn(A.current, P.current, R).then((_) => {
1217
+ k.current && (R.platform = k.current), eo(A.current, P.current, R).then((_) => {
1218
1218
  const V = {
1219
1219
  ..._,
1220
1220
  // The floating element's position may be recomputed while it's closed
@@ -1223,28 +1223,28 @@ function eo(e) {
1223
1223
  // setting it to `true` when `open === false` (must be specified).
1224
1224
  isPositioned: N.current !== !1
1225
1225
  };
1226
- T.current && !he(M.current, V) && (M.current = V, Yt.flushSync(() => {
1226
+ O.current && !ge(M.current, V) && (M.current = V, Ut.flushSync(() => {
1227
1227
  d(V);
1228
1228
  }));
1229
1229
  });
1230
1230
  }, [p, t, n, k, N]);
1231
- ue(() => {
1231
+ de(() => {
1232
1232
  f === !1 && M.current.isPositioned && (M.current.isPositioned = !1, d((R) => ({
1233
1233
  ...R,
1234
1234
  isPositioned: !1
1235
1235
  })));
1236
1236
  }, [f]);
1237
- const T = g.useRef(!1);
1238
- ue(() => (T.current = !0, () => {
1239
- T.current = !1;
1240
- }), []), ue(() => {
1237
+ const O = g.useRef(!1);
1238
+ de(() => (O.current = !0, () => {
1239
+ O.current = !1;
1240
+ }), []), de(() => {
1241
1241
  if (x && (A.current = x), C && (P.current = C), x && C) {
1242
1242
  if (D.current)
1243
1243
  return D.current(x, C, E);
1244
1244
  E();
1245
1245
  }
1246
1246
  }, [x, C, E, D, H]);
1247
- const F = g.useMemo(() => ({
1247
+ const $ = g.useMemo(() => ({
1248
1248
  reference: A,
1249
1249
  floating: P,
1250
1250
  setReference: v,
@@ -1260,11 +1260,11 @@ function eo(e) {
1260
1260
  };
1261
1261
  if (!S.floating)
1262
1262
  return R;
1263
- const _ = Qe(S.floating, a.x), V = Qe(S.floating, a.y);
1263
+ const _ = et(S.floating, a.x), V = et(S.floating, a.y);
1264
1264
  return l ? {
1265
1265
  ...R,
1266
1266
  transform: "translate(" + _ + "px, " + V + "px)",
1267
- ...ut(S.floating) >= 1.5 && {
1267
+ ...pt(S.floating) >= 1.5 && {
1268
1268
  willChange: "transform"
1269
1269
  }
1270
1270
  } : {
@@ -1276,12 +1276,12 @@ function eo(e) {
1276
1276
  return g.useMemo(() => ({
1277
1277
  ...a,
1278
1278
  update: E,
1279
- refs: F,
1279
+ refs: $,
1280
1280
  elements: S,
1281
1281
  floatingStyles: L
1282
- }), [a, E, F, S, L]);
1282
+ }), [a, E, $, S, L]);
1283
1283
  }
1284
- const to = (e) => {
1284
+ const ro = (e) => {
1285
1285
  function t(n) {
1286
1286
  return {}.hasOwnProperty.call(n, "current");
1287
1287
  }
@@ -1293,40 +1293,40 @@ const to = (e) => {
1293
1293
  element: o,
1294
1294
  padding: r
1295
1295
  } = typeof e == "function" ? e(n) : e;
1296
- return o && t(o) ? o.current != null ? Je({
1296
+ return o && t(o) ? o.current != null ? Qe({
1297
1297
  element: o.current,
1298
1298
  padding: r
1299
- }).fn(n) : {} : o ? Je({
1299
+ }).fn(n) : {} : o ? Qe({
1300
1300
  element: o,
1301
1301
  padding: r
1302
1302
  }).fn(n) : {};
1303
1303
  }
1304
1304
  };
1305
- }, no = (e, t) => ({
1306
- ...Yn(e),
1307
- options: [e, t]
1308
- }), oo = (e, t) => ({
1309
- ...Xn(e),
1310
- options: [e, t]
1311
- }), ro = (e, t) => ({
1312
- ...Kn(e),
1313
- options: [e, t]
1314
- }), io = (e, t) => ({
1315
- ...Gn(e),
1305
+ }, io = (e, t) => ({
1306
+ ...qn(e),
1316
1307
  options: [e, t]
1317
1308
  }), so = (e, t) => ({
1318
- ...qn(e),
1309
+ ...Un(e),
1319
1310
  options: [e, t]
1320
1311
  }), co = (e, t) => ({
1321
- ...Un(e),
1312
+ ...Qn(e),
1322
1313
  options: [e, t]
1323
1314
  }), lo = (e, t) => ({
1324
- ...to(e),
1315
+ ...Kn(e),
1316
+ options: [e, t]
1317
+ }), ao = (e, t) => ({
1318
+ ...Zn(e),
1319
+ options: [e, t]
1320
+ }), fo = (e, t) => ({
1321
+ ...Jn(e),
1322
+ options: [e, t]
1323
+ }), uo = (e, t) => ({
1324
+ ...ro(e),
1325
1325
  options: [e, t]
1326
1326
  });
1327
- var ao = "Arrow", dt = g.forwardRef((e, t) => {
1327
+ var po = "Arrow", ht = g.forwardRef((e, t) => {
1328
1328
  const { children: n, width: o = 10, height: r = 5, ...i } = e;
1329
- return /* @__PURE__ */ O(
1329
+ return /* @__PURE__ */ T(
1330
1330
  ce.svg,
1331
1331
  {
1332
1332
  ...i,
@@ -1335,27 +1335,27 @@ var ao = "Arrow", dt = g.forwardRef((e, t) => {
1335
1335
  height: r,
1336
1336
  viewBox: "0 0 30 10",
1337
1337
  preserveAspectRatio: "none",
1338
- children: e.asChild ? n : /* @__PURE__ */ O("polygon", { points: "0,0 30,0 15,10" })
1338
+ children: e.asChild ? n : /* @__PURE__ */ T("polygon", { points: "0,0 30,0 15,10" })
1339
1339
  }
1340
1340
  );
1341
1341
  });
1342
- dt.displayName = ao;
1343
- var fo = dt, Fe = "Popper", [pt, mt] = et(Fe), [uo, ht] = pt(Fe), gt = (e) => {
1342
+ ht.displayName = po;
1343
+ var ho = ht, $e = "Popper", [mt, gt] = tt($e), [mo, wt] = mt($e), yt = (e) => {
1344
1344
  const { __scopePopper: t, children: n } = e, [o, r] = g.useState(null);
1345
- return /* @__PURE__ */ O(uo, { scope: t, anchor: o, onAnchorChange: r, children: n });
1345
+ return /* @__PURE__ */ T(mo, { scope: t, anchor: o, onAnchorChange: r, children: n });
1346
1346
  };
1347
- gt.displayName = Fe;
1348
- var wt = "PopperAnchor", yt = g.forwardRef(
1347
+ yt.displayName = $e;
1348
+ var xt = "PopperAnchor", vt = g.forwardRef(
1349
1349
  (e, t) => {
1350
- const { __scopePopper: n, virtualRef: o, ...r } = e, i = ht(wt, n), s = g.useRef(null), l = ge(t, s), c = g.useRef(null);
1350
+ const { __scopePopper: n, virtualRef: o, ...r } = e, i = wt(xt, n), s = g.useRef(null), l = we(t, s), c = g.useRef(null);
1351
1351
  return g.useEffect(() => {
1352
1352
  const f = c.current;
1353
1353
  c.current = o?.current || s.current, f !== c.current && i.onAnchorChange(c.current);
1354
- }), o ? null : /* @__PURE__ */ O(ce.div, { ...r, ref: l });
1354
+ }), o ? null : /* @__PURE__ */ T(ce.div, { ...r, ref: l });
1355
1355
  }
1356
1356
  );
1357
- yt.displayName = wt;
1358
- var $e = "PopperContent", [po, mo] = pt($e), xt = g.forwardRef(
1357
+ vt.displayName = xt;
1358
+ var Fe = "PopperContent", [go, wo] = mt(Fe), bt = g.forwardRef(
1359
1359
  (e, t) => {
1360
1360
  const {
1361
1361
  __scopePopper: n,
@@ -1370,61 +1370,61 @@ var $e = "PopperContent", [po, mo] = pt($e), xt = g.forwardRef(
1370
1370
  sticky: d = "partial",
1371
1371
  hideWhenDetached: p = !1,
1372
1372
  updatePositionStrategy: u = "optimized",
1373
- onPlaced: m,
1374
- ...h
1375
- } = e, w = ht($e, n), [y, v] = g.useState(null), b = ge(t, (re) => v(re)), [x, C] = g.useState(null), A = Ut(x), P = A?.width ?? 0, M = A?.height ?? 0, H = o + (i !== "center" ? "-" + i : ""), D = typeof a == "number" ? a : { top: 0, right: 0, bottom: 0, left: 0, ...a }, k = Array.isArray(f) ? f : [f], N = k.length > 0, E = {
1373
+ onPlaced: h,
1374
+ ...m
1375
+ } = e, w = wt(Fe, n), [y, v] = g.useState(null), b = we(t, (re) => v(re)), [x, C] = g.useState(null), A = Qt(x), P = A?.width ?? 0, M = A?.height ?? 0, H = o + (i !== "center" ? "-" + i : ""), D = typeof a == "number" ? a : { top: 0, right: 0, bottom: 0, left: 0, ...a }, k = Array.isArray(f) ? f : [f], N = k.length > 0, E = {
1376
1376
  padding: D,
1377
- boundary: k.filter(go),
1377
+ boundary: k.filter(xo),
1378
1378
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
1379
1379
  altBoundary: N
1380
- }, { refs: T, floatingStyles: F, placement: S, isPositioned: L, middlewareData: R } = eo({
1380
+ }, { refs: O, floatingStyles: $, placement: S, isPositioned: L, middlewareData: R } = oo({
1381
1381
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
1382
1382
  strategy: "fixed",
1383
1383
  placement: H,
1384
- whileElementsMounted: (...re) => jn(...re, {
1384
+ whileElementsMounted: (...re) => Gn(...re, {
1385
1385
  animationFrame: u === "always"
1386
1386
  }),
1387
1387
  elements: {
1388
1388
  reference: w.anchor
1389
1389
  },
1390
1390
  middleware: [
1391
- no({ mainAxis: r + M, alignmentAxis: s }),
1392
- c && oo({
1391
+ io({ mainAxis: r + M, alignmentAxis: s }),
1392
+ c && so({
1393
1393
  mainAxis: !0,
1394
1394
  crossAxis: !1,
1395
- limiter: d === "partial" ? ro() : void 0,
1395
+ limiter: d === "partial" ? co() : void 0,
1396
1396
  ...E
1397
1397
  }),
1398
- c && io({ ...E }),
1399
- so({
1398
+ c && lo({ ...E }),
1399
+ ao({
1400
1400
  ...E,
1401
- apply: ({ elements: re, rects: Be, availableWidth: Ft, availableHeight: $t }) => {
1402
- const { width: It, height: Wt } = Be.reference, ae = re.floating.style;
1403
- ae.setProperty("--radix-popper-available-width", `${Ft}px`), ae.setProperty("--radix-popper-available-height", `${$t}px`), ae.setProperty("--radix-popper-anchor-width", `${It}px`), ae.setProperty("--radix-popper-anchor-height", `${Wt}px`);
1401
+ apply: ({ elements: re, rects: Ve, availableWidth: Wt, availableHeight: Bt }) => {
1402
+ const { width: Vt, height: zt } = Ve.reference, fe = re.floating.style;
1403
+ fe.setProperty("--radix-popper-available-width", `${Wt}px`), fe.setProperty("--radix-popper-available-height", `${Bt}px`), fe.setProperty("--radix-popper-anchor-width", `${Vt}px`), fe.setProperty("--radix-popper-anchor-height", `${zt}px`);
1404
1404
  }
1405
1405
  }),
1406
- x && lo({ element: x, padding: l }),
1407
- wo({ arrowWidth: P, arrowHeight: M }),
1408
- p && co({ strategy: "referenceHidden", ...E })
1406
+ x && uo({ element: x, padding: l }),
1407
+ vo({ arrowWidth: P, arrowHeight: M }),
1408
+ p && fo({ strategy: "referenceHidden", ...E })
1409
1409
  ]
1410
- }), [_, V] = Ct(S), We = qt(m);
1411
- Ve(() => {
1412
- L && We?.();
1413
- }, [L, We]);
1414
- const Mt = R.arrow?.x, _t = R.arrow?.y, kt = R.arrow?.centerOffset !== 0, [Nt, Ht] = g.useState();
1415
- return Ve(() => {
1416
- y && Ht(window.getComputedStyle(y).zIndex);
1417
- }, [y]), /* @__PURE__ */ O(
1410
+ }), [_, V] = Rt(S), Be = Jt(h);
1411
+ ze(() => {
1412
+ L && Be?.();
1413
+ }, [L, Be]);
1414
+ const Nt = R.arrow?.x, Ht = R.arrow?.y, $t = R.arrow?.centerOffset !== 0, [Ft, It] = g.useState();
1415
+ return ze(() => {
1416
+ y && It(window.getComputedStyle(y).zIndex);
1417
+ }, [y]), /* @__PURE__ */ T(
1418
1418
  "div",
1419
1419
  {
1420
- ref: T.setFloating,
1420
+ ref: O.setFloating,
1421
1421
  "data-radix-popper-content-wrapper": "",
1422
1422
  style: {
1423
- ...F,
1424
- transform: L ? F.transform : "translate(0, -200%)",
1423
+ ...$,
1424
+ transform: L ? $.transform : "translate(0, -200%)",
1425
1425
  // keep off the page when measuring
1426
1426
  minWidth: "max-content",
1427
- zIndex: Nt,
1427
+ zIndex: Ft,
1428
1428
  "--radix-popper-transform-origin": [
1429
1429
  R.transformOrigin?.x,
1430
1430
  R.transformOrigin?.y
@@ -1438,24 +1438,24 @@ var $e = "PopperContent", [po, mo] = pt($e), xt = g.forwardRef(
1438
1438
  }
1439
1439
  },
1440
1440
  dir: e.dir,
1441
- children: /* @__PURE__ */ O(
1442
- po,
1441
+ children: /* @__PURE__ */ T(
1442
+ go,
1443
1443
  {
1444
1444
  scope: n,
1445
1445
  placedSide: _,
1446
1446
  onArrowChange: C,
1447
- arrowX: Mt,
1448
- arrowY: _t,
1449
- shouldHideArrow: kt,
1450
- children: /* @__PURE__ */ O(
1447
+ arrowX: Nt,
1448
+ arrowY: Ht,
1449
+ shouldHideArrow: $t,
1450
+ children: /* @__PURE__ */ T(
1451
1451
  ce.div,
1452
1452
  {
1453
1453
  "data-side": _,
1454
1454
  "data-align": V,
1455
- ...h,
1455
+ ...m,
1456
1456
  ref: b,
1457
1457
  style: {
1458
- ...h.style,
1458
+ ...m.style,
1459
1459
  // if the PopperContent hasn't been placed yet (not all measurements done)
1460
1460
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
1461
1461
  animation: L ? void 0 : "none"
@@ -1468,19 +1468,19 @@ var $e = "PopperContent", [po, mo] = pt($e), xt = g.forwardRef(
1468
1468
  );
1469
1469
  }
1470
1470
  );
1471
- xt.displayName = $e;
1472
- var vt = "PopperArrow", ho = {
1471
+ bt.displayName = Fe;
1472
+ var Ct = "PopperArrow", yo = {
1473
1473
  top: "bottom",
1474
1474
  right: "left",
1475
1475
  bottom: "top",
1476
1476
  left: "right"
1477
- }, bt = g.forwardRef(function(t, n) {
1478
- const { __scopePopper: o, ...r } = t, i = mo(vt, o), s = ho[i.placedSide];
1477
+ }, At = g.forwardRef(function(t, n) {
1478
+ const { __scopePopper: o, ...r } = t, i = wo(Ct, o), s = yo[i.placedSide];
1479
1479
  return (
1480
1480
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
1481
1481
  // doesn't report size as we'd expect on SVG elements.
1482
1482
  // it reports their bounding box which is effectively the largest path inside the SVG.
1483
- /* @__PURE__ */ O(
1483
+ /* @__PURE__ */ T(
1484
1484
  "span",
1485
1485
  {
1486
1486
  ref: i.onArrowChange,
@@ -1503,8 +1503,8 @@ var vt = "PopperArrow", ho = {
1503
1503
  }[i.placedSide],
1504
1504
  visibility: i.shouldHideArrow ? "hidden" : void 0
1505
1505
  },
1506
- children: /* @__PURE__ */ O(
1507
- fo,
1506
+ children: /* @__PURE__ */ T(
1507
+ ho,
1508
1508
  {
1509
1509
  ...r,
1510
1510
  ref: n,
@@ -1519,30 +1519,30 @@ var vt = "PopperArrow", ho = {
1519
1519
  )
1520
1520
  );
1521
1521
  });
1522
- bt.displayName = vt;
1523
- function go(e) {
1522
+ At.displayName = Ct;
1523
+ function xo(e) {
1524
1524
  return e !== null;
1525
1525
  }
1526
- var wo = (e) => ({
1526
+ var vo = (e) => ({
1527
1527
  name: "transformOrigin",
1528
1528
  options: e,
1529
1529
  fn(t) {
1530
- const { placement: n, rects: o, middlewareData: r } = t, s = r.arrow?.centerOffset !== 0, l = s ? 0 : e.arrowWidth, c = s ? 0 : e.arrowHeight, [f, a] = Ct(n), d = { start: "0%", center: "50%", end: "100%" }[a], p = (r.arrow?.x ?? 0) + l / 2, u = (r.arrow?.y ?? 0) + c / 2;
1531
- let m = "", h = "";
1532
- return f === "bottom" ? (m = s ? d : `${p}px`, h = `${-c}px`) : f === "top" ? (m = s ? d : `${p}px`, h = `${o.floating.height + c}px`) : f === "right" ? (m = `${-c}px`, h = s ? d : `${u}px`) : f === "left" && (m = `${o.floating.width + c}px`, h = s ? d : `${u}px`), { data: { x: m, y: h } };
1530
+ const { placement: n, rects: o, middlewareData: r } = t, s = r.arrow?.centerOffset !== 0, l = s ? 0 : e.arrowWidth, c = s ? 0 : e.arrowHeight, [f, a] = Rt(n), d = { start: "0%", center: "50%", end: "100%" }[a], p = (r.arrow?.x ?? 0) + l / 2, u = (r.arrow?.y ?? 0) + c / 2;
1531
+ let h = "", m = "";
1532
+ return f === "bottom" ? (h = s ? d : `${p}px`, m = `${-c}px`) : f === "top" ? (h = s ? d : `${p}px`, m = `${o.floating.height + c}px`) : f === "right" ? (h = `${-c}px`, m = s ? d : `${u}px`) : f === "left" && (h = `${o.floating.width + c}px`, m = s ? d : `${u}px`), { data: { x: h, y: m } };
1533
1533
  }
1534
1534
  });
1535
- function Ct(e) {
1535
+ function Rt(e) {
1536
1536
  const [t, n = "center"] = e.split("-");
1537
1537
  return [t, n];
1538
1538
  }
1539
- var yo = gt, xo = yt, vo = xt, bo = bt, Co = /* @__PURE__ */ Symbol("radix.slottable");
1539
+ var bo = yt, Co = vt, Ao = bt, Ro = At, Po = /* @__PURE__ */ Symbol("radix.slottable");
1540
1540
  // @__NO_SIDE_EFFECTS__
1541
- function Ao(e) {
1542
- const t = ({ children: n }) => /* @__PURE__ */ O(Xt, { children: n });
1543
- return t.displayName = `${e}.Slottable`, t.__radixId = Co, t;
1541
+ function To(e) {
1542
+ const t = ({ children: n }) => /* @__PURE__ */ T(Kt, { children: n });
1543
+ return t.displayName = `${e}.Slottable`, t.__radixId = Po, t;
1544
1544
  }
1545
- var Ro = Object.freeze({
1545
+ var Oo = Object.freeze({
1546
1546
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
1547
1547
  position: "absolute",
1548
1548
  border: 0,
@@ -1554,23 +1554,23 @@ var Ro = Object.freeze({
1554
1554
  clip: "rect(0, 0, 0, 0)",
1555
1555
  whiteSpace: "nowrap",
1556
1556
  wordWrap: "normal"
1557
- }), Po = "VisuallyHidden", At = g.forwardRef(
1558
- (e, t) => /* @__PURE__ */ O(
1557
+ }), Eo = "VisuallyHidden", Pt = g.forwardRef(
1558
+ (e, t) => /* @__PURE__ */ T(
1559
1559
  ce.span,
1560
1560
  {
1561
1561
  ...e,
1562
1562
  ref: t,
1563
- style: { ...Ro, ...e.style }
1563
+ style: { ...Oo, ...e.style }
1564
1564
  }
1565
1565
  )
1566
1566
  );
1567
- At.displayName = Po;
1568
- var Oo = At, [be] = et("Tooltip", [
1569
- mt
1570
- ]), Ce = mt(), Rt = "TooltipProvider", To = 700, Se = "tooltip.open", [Eo, Ie] = be(Rt), Pt = (e) => {
1567
+ Pt.displayName = Eo;
1568
+ var So = Pt, [Ce] = tt("Tooltip", [
1569
+ gt
1570
+ ]), Ae = gt(), Tt = "TooltipProvider", Lo = 700, Se = "tooltip.open", [Do, Ie] = Ce(Tt), Ot = (e) => {
1571
1571
  const {
1572
1572
  __scopeTooltip: t,
1573
- delayDuration: n = To,
1573
+ delayDuration: n = Lo,
1574
1574
  skipDelayDuration: o = 300,
1575
1575
  disableHoverableContent: r = !1,
1576
1576
  children: i
@@ -1578,8 +1578,8 @@ var Oo = At, [be] = et("Tooltip", [
1578
1578
  return g.useEffect(() => {
1579
1579
  const f = c.current;
1580
1580
  return () => window.clearTimeout(f);
1581
- }, []), /* @__PURE__ */ O(
1582
- Eo,
1581
+ }, []), /* @__PURE__ */ T(
1582
+ Do,
1583
1583
  {
1584
1584
  scope: t,
1585
1585
  isOpenDelayedRef: s,
@@ -1602,8 +1602,8 @@ var Oo = At, [be] = et("Tooltip", [
1602
1602
  }
1603
1603
  );
1604
1604
  };
1605
- Pt.displayName = Rt;
1606
- var se = "Tooltip", [So, Ae] = be(se), Ot = (e) => {
1605
+ Ot.displayName = Tt;
1606
+ var se = "Tooltip", [Mo, ae] = Ce(se), Et = (e) => {
1607
1607
  const {
1608
1608
  __scopeTooltip: t,
1609
1609
  children: n,
@@ -1612,7 +1612,7 @@ var se = "Tooltip", [So, Ae] = be(se), Ot = (e) => {
1612
1612
  onOpenChange: i,
1613
1613
  disableHoverableContent: s,
1614
1614
  delayDuration: l
1615
- } = e, c = Ie(se, e.__scopeTooltip), f = Ce(t), [a, d] = g.useState(null), p = jt(), u = g.useRef(0), m = s ?? c.disableHoverableContent, h = l ?? c.delayDuration, w = g.useRef(!1), [y, v] = Vt({
1615
+ } = e, c = Ie(se, e.__scopeTooltip), f = Ae(t), [a, d] = g.useState(null), p = qt(), u = g.useRef(0), h = s ?? c.disableHoverableContent, m = l ?? c.delayDuration, w = g.useRef(!1), [y, v] = Yt({
1616
1616
  prop: o,
1617
1617
  defaultProp: r ?? !1,
1618
1618
  onChange: (P) => {
@@ -1626,12 +1626,12 @@ var se = "Tooltip", [So, Ae] = be(se), Ot = (e) => {
1626
1626
  }, [v]), A = g.useCallback(() => {
1627
1627
  window.clearTimeout(u.current), u.current = window.setTimeout(() => {
1628
1628
  w.current = !0, v(!0), u.current = 0;
1629
- }, h);
1630
- }, [h, v]);
1629
+ }, m);
1630
+ }, [m, v]);
1631
1631
  return g.useEffect(() => () => {
1632
1632
  u.current && (window.clearTimeout(u.current), u.current = 0);
1633
- }, []), /* @__PURE__ */ O(yo, { ...f, children: /* @__PURE__ */ O(
1634
- So,
1633
+ }, []), /* @__PURE__ */ T(bo, { ...f, children: /* @__PURE__ */ T(
1634
+ Mo,
1635
1635
  {
1636
1636
  scope: t,
1637
1637
  contentId: p,
@@ -1643,20 +1643,20 @@ var se = "Tooltip", [So, Ae] = be(se), Ot = (e) => {
1643
1643
  c.isOpenDelayedRef.current ? A() : x();
1644
1644
  }, [c.isOpenDelayedRef, A, x]),
1645
1645
  onTriggerLeave: g.useCallback(() => {
1646
- m ? C() : (window.clearTimeout(u.current), u.current = 0);
1647
- }, [C, m]),
1646
+ h ? C() : (window.clearTimeout(u.current), u.current = 0);
1647
+ }, [C, h]),
1648
1648
  onOpen: x,
1649
1649
  onClose: C,
1650
- disableHoverableContent: m,
1650
+ disableHoverableContent: h,
1651
1651
  children: n
1652
1652
  }
1653
1653
  ) });
1654
1654
  };
1655
- Ot.displayName = se;
1656
- var Le = "TooltipTrigger", Tt = g.forwardRef(
1655
+ Et.displayName = se;
1656
+ var Le = "TooltipTrigger", St = g.forwardRef(
1657
1657
  (e, t) => {
1658
- const { __scopeTooltip: n, ...o } = e, r = Ae(Le, n), i = Ie(Le, n), s = Ce(n), l = g.useRef(null), c = ge(t, l, r.onTriggerChange), f = g.useRef(!1), a = g.useRef(!1), d = g.useCallback(() => f.current = !1, []);
1659
- return g.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ O(xo, { asChild: !0, ...s, children: /* @__PURE__ */ O(
1658
+ const { __scopeTooltip: n, ...o } = e, r = ae(Le, n), i = Ie(Le, n), s = Ae(n), l = g.useRef(null), c = we(t, l, r.onTriggerChange), f = g.useRef(!1), a = g.useRef(!1), d = g.useCallback(() => f.current = !1, []);
1659
+ return g.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ T(Co, { asChild: !0, ...s, children: /* @__PURE__ */ T(
1660
1660
  ce.button,
1661
1661
  {
1662
1662
  "aria-describedby": r.open ? r.contentId : void 0,
@@ -1681,41 +1681,46 @@ var Le = "TooltipTrigger", Tt = g.forwardRef(
1681
1681
  ) });
1682
1682
  }
1683
1683
  );
1684
- Tt.displayName = Le;
1685
- var Lo = "TooltipPortal", [Zo, Do] = be(Lo, {
1684
+ St.displayName = Le;
1685
+ var We = "TooltipPortal", [_o, ko] = Ce(We, {
1686
1686
  forceMount: void 0
1687
- }), te = "TooltipContent", Et = g.forwardRef(
1687
+ }), Lt = (e) => {
1688
+ const { __scopeTooltip: t, forceMount: n, children: o, container: r } = e, i = ae(We, t);
1689
+ return /* @__PURE__ */ T(_o, { scope: t, forceMount: n, children: /* @__PURE__ */ T(nt, { present: n || i.open, children: /* @__PURE__ */ T(Gt, { asChild: !0, container: r, children: o }) }) });
1690
+ };
1691
+ Lt.displayName = We;
1692
+ var te = "TooltipContent", Dt = g.forwardRef(
1688
1693
  (e, t) => {
1689
- const n = Do(te, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...i } = e, s = Ae(te, e.__scopeTooltip);
1690
- return /* @__PURE__ */ O(Kt, { present: o || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ O(St, { side: r, ...i, ref: t }) : /* @__PURE__ */ O(Mo, { side: r, ...i, ref: t }) });
1694
+ const n = ko(te, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...i } = e, s = ae(te, e.__scopeTooltip);
1695
+ return /* @__PURE__ */ T(nt, { present: o || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ T(Mt, { side: r, ...i, ref: t }) : /* @__PURE__ */ T(No, { side: r, ...i, ref: t }) });
1691
1696
  }
1692
- ), Mo = g.forwardRef((e, t) => {
1693
- const n = Ae(te, e.__scopeTooltip), o = Ie(te, e.__scopeTooltip), r = g.useRef(null), i = ge(t, r), [s, l] = g.useState(null), { trigger: c, onClose: f } = n, a = r.current, { onPointerInTransitChange: d } = o, p = g.useCallback(() => {
1697
+ ), No = g.forwardRef((e, t) => {
1698
+ const n = ae(te, e.__scopeTooltip), o = Ie(te, e.__scopeTooltip), r = g.useRef(null), i = we(t, r), [s, l] = g.useState(null), { trigger: c, onClose: f } = n, a = r.current, { onPointerInTransitChange: d } = o, p = g.useCallback(() => {
1694
1699
  l(null), d(!1);
1695
1700
  }, [d]), u = g.useCallback(
1696
- (m, h) => {
1697
- const w = m.currentTarget, y = { x: m.clientX, y: m.clientY }, v = Ho(y, w.getBoundingClientRect()), b = Fo(y, v), x = $o(h.getBoundingClientRect()), C = Wo([...b, ...x]);
1701
+ (h, m) => {
1702
+ const w = h.currentTarget, y = { x: h.clientX, y: h.clientY }, v = Io(y, w.getBoundingClientRect()), b = Wo(y, v), x = Bo(m.getBoundingClientRect()), C = zo([...b, ...x]);
1698
1703
  l(C), d(!0);
1699
1704
  },
1700
1705
  [d]
1701
1706
  );
1702
1707
  return g.useEffect(() => () => p(), [p]), g.useEffect(() => {
1703
1708
  if (c && a) {
1704
- const m = (w) => u(w, a), h = (w) => u(w, c);
1705
- return c.addEventListener("pointerleave", m), a.addEventListener("pointerleave", h), () => {
1706
- c.removeEventListener("pointerleave", m), a.removeEventListener("pointerleave", h);
1709
+ const h = (w) => u(w, a), m = (w) => u(w, c);
1710
+ return c.addEventListener("pointerleave", h), a.addEventListener("pointerleave", m), () => {
1711
+ c.removeEventListener("pointerleave", h), a.removeEventListener("pointerleave", m);
1707
1712
  };
1708
1713
  }
1709
1714
  }, [c, a, u, p]), g.useEffect(() => {
1710
1715
  if (s) {
1711
- const m = (h) => {
1712
- const w = h.target, y = { x: h.clientX, y: h.clientY }, v = c?.contains(w) || a?.contains(w), b = !Io(y, s);
1716
+ const h = (m) => {
1717
+ const w = m.target, y = { x: m.clientX, y: m.clientY }, v = c?.contains(w) || a?.contains(w), b = !Vo(y, s);
1713
1718
  v ? p() : b && (p(), f());
1714
1719
  };
1715
- return document.addEventListener("pointermove", m), () => document.removeEventListener("pointermove", m);
1720
+ return document.addEventListener("pointermove", h), () => document.removeEventListener("pointermove", h);
1716
1721
  }
1717
- }, [c, a, s, f, p]), /* @__PURE__ */ O(St, { ...e, ref: i });
1718
- }), [_o, ko] = be(se, { isInside: !1 }), No = /* @__PURE__ */ Ao("TooltipContent"), St = g.forwardRef(
1722
+ }, [c, a, s, f, p]), /* @__PURE__ */ T(Mt, { ...e, ref: i });
1723
+ }), [Ho, $o] = Ce(se, { isInside: !1 }), Fo = /* @__PURE__ */ To("TooltipContent"), Mt = g.forwardRef(
1719
1724
  (e, t) => {
1720
1725
  const {
1721
1726
  __scopeTooltip: n,
@@ -1724,7 +1729,7 @@ var Lo = "TooltipPortal", [Zo, Do] = be(Lo, {
1724
1729
  onEscapeKeyDown: i,
1725
1730
  onPointerDownOutside: s,
1726
1731
  ...l
1727
- } = e, c = Ae(te, n), f = Ce(n), { onClose: a } = c;
1732
+ } = e, c = ae(te, n), f = Ae(n), { onClose: a } = c;
1728
1733
  return g.useEffect(() => (document.addEventListener(Se, a), () => document.removeEventListener(Se, a)), [a]), g.useEffect(() => {
1729
1734
  if (c.trigger) {
1730
1735
  const d = (p) => {
@@ -1732,8 +1737,8 @@ var Lo = "TooltipPortal", [Zo, Do] = be(Lo, {
1732
1737
  };
1733
1738
  return window.addEventListener("scroll", d, { capture: !0 }), () => window.removeEventListener("scroll", d, { capture: !0 });
1734
1739
  }
1735
- }, [c.trigger, a]), /* @__PURE__ */ O(
1736
- zt,
1740
+ }, [c.trigger, a]), /* @__PURE__ */ T(
1741
+ Xt,
1737
1742
  {
1738
1743
  asChild: !0,
1739
1744
  disableOutsidePointerEvents: !1,
@@ -1741,8 +1746,8 @@ var Lo = "TooltipPortal", [Zo, Do] = be(Lo, {
1741
1746
  onPointerDownOutside: s,
1742
1747
  onFocusOutside: (d) => d.preventDefault(),
1743
1748
  onDismiss: a,
1744
- children: /* @__PURE__ */ Gt(
1745
- vo,
1749
+ children: /* @__PURE__ */ Zt(
1750
+ Ao,
1746
1751
  {
1747
1752
  "data-state": c.stateAttribute,
1748
1753
  ...f,
@@ -1757,8 +1762,8 @@ var Lo = "TooltipPortal", [Zo, Do] = be(Lo, {
1757
1762
  "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
1758
1763
  },
1759
1764
  children: [
1760
- /* @__PURE__ */ O(No, { children: o }),
1761
- /* @__PURE__ */ O(_o, { scope: n, isInside: !0, children: /* @__PURE__ */ O(Oo, { id: c.contentId, role: "tooltip", children: r || o }) })
1765
+ /* @__PURE__ */ T(Fo, { children: o }),
1766
+ /* @__PURE__ */ T(Ho, { scope: n, isInside: !0, children: /* @__PURE__ */ T(So, { id: c.contentId, role: "tooltip", children: r || o }) })
1762
1767
  ]
1763
1768
  }
1764
1769
  )
@@ -1766,18 +1771,18 @@ var Lo = "TooltipPortal", [Zo, Do] = be(Lo, {
1766
1771
  );
1767
1772
  }
1768
1773
  );
1769
- Et.displayName = te;
1770
- var Lt = "TooltipArrow", Dt = g.forwardRef(
1774
+ Dt.displayName = te;
1775
+ var _t = "TooltipArrow", kt = g.forwardRef(
1771
1776
  (e, t) => {
1772
- const { __scopeTooltip: n, ...o } = e, r = Ce(n);
1773
- return ko(
1774
- Lt,
1777
+ const { __scopeTooltip: n, ...o } = e, r = Ae(n);
1778
+ return $o(
1779
+ _t,
1775
1780
  n
1776
- ).isInside ? null : /* @__PURE__ */ O(bo, { ...r, ...o, ref: t });
1781
+ ).isInside ? null : /* @__PURE__ */ T(Ro, { ...r, ...o, ref: t });
1777
1782
  }
1778
1783
  );
1779
- Dt.displayName = Lt;
1780
- function Ho(e, t) {
1784
+ kt.displayName = _t;
1785
+ function Io(e, t) {
1781
1786
  const n = Math.abs(t.top - e.y), o = Math.abs(t.bottom - e.y), r = Math.abs(t.right - e.x), i = Math.abs(t.left - e.x);
1782
1787
  switch (Math.min(n, o, r, i)) {
1783
1788
  case i:
@@ -1792,7 +1797,7 @@ function Ho(e, t) {
1792
1797
  throw new Error("unreachable");
1793
1798
  }
1794
1799
  }
1795
- function Fo(e, t, n = 5) {
1800
+ function Wo(e, t, n = 5) {
1796
1801
  const o = [];
1797
1802
  switch (t) {
1798
1803
  case "top":
@@ -1822,7 +1827,7 @@ function Fo(e, t, n = 5) {
1822
1827
  }
1823
1828
  return o;
1824
1829
  }
1825
- function $o(e) {
1830
+ function Bo(e) {
1826
1831
  const { top: t, right: n, bottom: o, left: r } = e;
1827
1832
  return [
1828
1833
  { x: r, y: t },
@@ -1831,7 +1836,7 @@ function $o(e) {
1831
1836
  { x: r, y: o }
1832
1837
  ];
1833
1838
  }
1834
- function Io(e, t) {
1839
+ function Vo(e, t) {
1835
1840
  const { x: n, y: o } = e;
1836
1841
  let r = !1;
1837
1842
  for (let i = 0, s = t.length - 1; i < t.length; s = i++) {
@@ -1840,11 +1845,11 @@ function Io(e, t) {
1840
1845
  }
1841
1846
  return r;
1842
1847
  }
1843
- function Wo(e) {
1848
+ function zo(e) {
1844
1849
  const t = e.slice();
1845
- return t.sort((n, o) => n.x < o.x ? -1 : n.x > o.x ? 1 : n.y < o.y ? -1 : n.y > o.y ? 1 : 0), Bo(t);
1850
+ return t.sort((n, o) => n.x < o.x ? -1 : n.x > o.x ? 1 : n.y < o.y ? -1 : n.y > o.y ? 1 : 0), jo(t);
1846
1851
  }
1847
- function Bo(e) {
1852
+ function jo(e) {
1848
1853
  if (e.length <= 1) return e.slice();
1849
1854
  const t = [];
1850
1855
  for (let o = 0; o < e.length; o++) {
@@ -1869,11 +1874,12 @@ function Bo(e) {
1869
1874
  }
1870
1875
  return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
1871
1876
  }
1872
- var Jo = Pt, Qo = Ot, er = Tt, tr = Et, nr = Dt;
1877
+ var er = Ot, tr = Et, nr = St, or = Lt, rr = Dt, ir = kt;
1873
1878
  export {
1874
- nr as A,
1875
- tr as C,
1876
- Jo as P,
1877
- Qo as R,
1878
- er as T
1879
+ ir as A,
1880
+ rr as C,
1881
+ er as P,
1882
+ tr as R,
1883
+ nr as T,
1884
+ or as a
1879
1885
  };