energy-components 1.21.0 → 1.22.0

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 (96) hide show
  1. package/dist/components/accordion.es.js +71 -53
  2. package/dist/components/avatar.es.js +1 -1
  3. package/dist/components/button.es.js +1 -1
  4. package/dist/components/checkbox.es.js +1 -1
  5. package/dist/components/collapsable.es.js +1 -1
  6. package/dist/components/collapsable.scss_vue_type_style_index_0_src_true_lang-f-OHx-l3.js +86 -0
  7. package/dist/components/datepicker.es.js +1 -1
  8. package/dist/components/directAccess.es.js +1 -1
  9. package/dist/components/dragAndDrop.es.js +1 -1
  10. package/dist/components/dropdown.es.js +1 -1
  11. package/dist/components/fileUploadItem.es.js +1 -1
  12. package/dist/components/filterChip.es.js +1 -1
  13. package/dist/components/filterTag.es.js +1 -1
  14. package/dist/components/{floating-ui.vue-oA1DfKeS.js → floating-ui.vue-DHEoOe5S.js} +305 -303
  15. package/dist/components/{icon-svg-C8XeOnqu.js → icon-svg-K8-vLJgV.js} +1257 -792
  16. package/dist/components/iconList.es.js +1 -1
  17. package/dist/components/iconSvg.es.js +1 -1
  18. package/dist/components/index.es.js +2 -2
  19. package/dist/components/infoBox.es.js +1 -1
  20. package/dist/components/link.es.js +1 -1
  21. package/dist/components/modal.es.js +41 -39
  22. package/dist/components/multiselectcontentwrapper.es.js +2 -2
  23. package/dist/components/persistentToast.es.js +1 -1
  24. package/dist/components/popover.es.js +2 -2
  25. package/dist/components/popoverMenu.es.js +51 -51
  26. package/dist/components/progressBar.es.js +2 -2
  27. package/dist/components/quantitySelector.es.js +1 -1
  28. package/dist/components/radioButton.es.js +1 -1
  29. package/dist/components/selectionChip.es.js +1 -1
  30. package/dist/components/sidedrawer.es.js +1 -1
  31. package/dist/components/style/accordion.css +1 -1
  32. package/dist/components/style/accordionGroup.css +1 -1
  33. package/dist/components/style/actionButton.css +1 -1
  34. package/dist/components/style/avatar.css +1 -1
  35. package/dist/components/style/badge.css +1 -1
  36. package/dist/components/style/breadcrumbs.css +1 -1
  37. package/dist/components/style/button.css +1 -1
  38. package/dist/components/style/card.css +1 -1
  39. package/dist/components/style/checkbox.css +1 -1
  40. package/dist/components/style/collapsable.css +1 -1
  41. package/dist/components/style/datepicker.css +1 -1
  42. package/dist/components/style/directAccess.css +1 -1
  43. package/dist/components/style/divider.css +1 -1
  44. package/dist/components/style/dragAndDrop.css +1 -1
  45. package/dist/components/style/dropdown.css +1 -1
  46. package/dist/components/style/fileUploadItem.css +1 -1
  47. package/dist/components/style/filterChip.css +1 -1
  48. package/dist/components/style/filterTag.css +1 -1
  49. package/dist/components/style/floatingActionButton.css +1 -1
  50. package/dist/components/style/icon-svg.css +1 -1
  51. package/dist/components/style/iconList.css +1 -1
  52. package/dist/components/style/indicator.css +1 -1
  53. package/dist/components/style/infoBox.css +1 -1
  54. package/dist/components/style/link.css +1 -1
  55. package/dist/components/style/loader.css +1 -1
  56. package/dist/components/style/modal.css +1 -1
  57. package/dist/components/style/multiselect.css +1 -1
  58. package/dist/components/style/multiselectcontentwrapper.css +1 -1
  59. package/dist/components/style/overlay.css +1 -1
  60. package/dist/components/style/pagination.css +1 -1
  61. package/dist/components/style/persistentToast.css +1 -1
  62. package/dist/components/style/popover.css +1 -1
  63. package/dist/components/style/popoverMenu.css +1 -1
  64. package/dist/components/style/progressBar.css +1 -1
  65. package/dist/components/style/quantitySelector.css +1 -1
  66. package/dist/components/style/radioButton.css +1 -1
  67. package/dist/components/style/selectionChip.css +1 -1
  68. package/dist/components/style/sidebar.css +1 -1
  69. package/dist/components/style/sidedrawer.css +1 -1
  70. package/dist/components/style/snackBar.css +1 -1
  71. package/dist/components/style/switch.css +1 -1
  72. package/dist/components/style/tabBar.css +1 -1
  73. package/dist/components/style/tablepaginatedcomponent.css +1 -1
  74. package/dist/components/style/tableslotedcomponent.css +1 -1
  75. package/dist/components/style/tag.css +1 -1
  76. package/dist/components/style/textArea.css +1 -1
  77. package/dist/components/style/textField.css +1 -1
  78. package/dist/components/style/toggle.css +1 -1
  79. package/dist/components/style/tooltip.css +1 -1
  80. package/dist/components/switch.es.js +1 -1
  81. package/dist/components/tabBar.es.js +1 -1
  82. package/dist/components/tablepaginatedcomponent.es.js +46 -46
  83. package/dist/components/tableslotedcomponent.es.js +119 -119
  84. package/dist/components/tag.es.js +1 -1
  85. package/dist/components/textArea.es.js +1 -1
  86. package/dist/components/textField.es.js +136 -131
  87. package/dist/components/toggle.es.js +24 -24
  88. package/dist/components/tooltip.es.js +2 -2
  89. package/dist/energy-components.es.js +5758 -5266
  90. package/dist/energy-components.umd.js +2 -2
  91. package/dist/style.css +1 -1
  92. package/dist/types/src/components/content/accordion/accordion.vue.d.ts +19 -0
  93. package/dist/types/src/components/input/datepicker/datepicker.vue.d.ts +1 -1
  94. package/dist/types/tsconfig.tsbuildinfo +1 -1
  95. package/package.json +2 -2
  96. package/dist/components/collapsable.scss_vue_type_style_index_0_src_true_lang-6HkNT8L9.js +0 -86
@@ -1,76 +1,76 @@
1
- import { computed as I, ref as nt, shallowRef as jt, watch as dt, getCurrentScope as Yt, onScopeDispose as qt, shallowReadonly as G, unref as Xt } from "vue";
2
- const j = Math.min, S = Math.max, rt = Math.round, st = Math.floor, k = (t) => ({
1
+ import { computed as I, ref as nt, shallowRef as Xt, watch as mt, getCurrentScope as Yt, onScopeDispose as qt, shallowReadonly as G, unref as Ut } from "vue";
2
+ const j = Math.min, E = Math.max, rt = Math.round, st = Math.floor, k = (t) => ({
3
3
  x: t,
4
4
  y: t
5
- }), Ut = {
5
+ }), Kt = {
6
6
  left: "right",
7
7
  right: "left",
8
8
  bottom: "top",
9
9
  top: "bottom"
10
- }, Kt = {
10
+ }, Gt = {
11
11
  start: "end",
12
12
  end: "start"
13
13
  };
14
- function ht(t, e, n) {
15
- return S(t, j(e, n));
14
+ function gt(t, e, n) {
15
+ return E(t, j(e, n));
16
16
  }
17
17
  function tt(t, e) {
18
18
  return typeof t == "function" ? t(e) : t;
19
19
  }
20
- function Y(t) {
20
+ function X(t) {
21
21
  return t.split("-")[0];
22
22
  }
23
23
  function et(t) {
24
24
  return t.split("-")[1];
25
25
  }
26
- function Ft(t) {
26
+ function Vt(t) {
27
27
  return t === "x" ? "y" : "x";
28
28
  }
29
- function xt(t) {
29
+ function yt(t) {
30
30
  return t === "y" ? "height" : "width";
31
31
  }
32
- const Gt = /* @__PURE__ */ new Set(["top", "bottom"]);
32
+ const Jt = /* @__PURE__ */ new Set(["top", "bottom"]);
33
33
  function $(t) {
34
- return Gt.has(Y(t)) ? "y" : "x";
34
+ return Jt.has(X(t)) ? "y" : "x";
35
35
  }
36
- function yt(t) {
37
- return Ft($(t));
36
+ function vt(t) {
37
+ return Vt($(t));
38
38
  }
39
- function Jt(t, e, n) {
39
+ function Qt(t, e, n) {
40
40
  n === void 0 && (n = !1);
41
- const o = et(t), i = yt(t), r = xt(i);
41
+ const o = et(t), i = vt(t), r = yt(i);
42
42
  let s = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
43
43
  return e.reference[r] > e.floating[r] && (s = lt(s)), [s, lt(s)];
44
44
  }
45
- function Qt(t) {
45
+ function Zt(t) {
46
46
  const e = lt(t);
47
- return [gt(t), e, gt(e)];
47
+ return [pt(t), e, pt(e)];
48
48
  }
49
- function gt(t) {
50
- return t.replace(/start|end/g, (e) => Kt[e]);
49
+ function pt(t) {
50
+ return t.replace(/start|end/g, (e) => Gt[e]);
51
51
  }
52
- const Et = ["left", "right"], St = ["right", "left"], Zt = ["top", "bottom"], te = ["bottom", "top"];
53
- function ee(t, e, n) {
52
+ const St = ["left", "right"], Et = ["right", "left"], te = ["top", "bottom"], ee = ["bottom", "top"];
53
+ function ne(t, e, n) {
54
54
  switch (t) {
55
55
  case "top":
56
56
  case "bottom":
57
- return n ? e ? St : Et : e ? Et : St;
57
+ return n ? e ? Et : St : e ? St : Et;
58
58
  case "left":
59
59
  case "right":
60
- return e ? Zt : te;
60
+ return e ? te : ee;
61
61
  default:
62
62
  return [];
63
63
  }
64
64
  }
65
- function ne(t, e, n, o) {
65
+ function oe(t, e, n, o) {
66
66
  const i = et(t);
67
- let r = ee(Y(t), n === "start", o);
68
- return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(gt)))), r;
67
+ let r = ne(X(t), n === "start", o);
68
+ return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(pt)))), r;
69
69
  }
70
70
  function lt(t) {
71
- return t.replace(/left|right|bottom|top/g, (e) => Ut[e]);
71
+ return t.replace(/left|right|bottom|top/g, (e) => Kt[e]);
72
72
  }
73
- function oe(t) {
73
+ function ie(t) {
74
74
  return {
75
75
  top: 0,
76
76
  right: 0,
@@ -79,8 +79,8 @@ function oe(t) {
79
79
  ...t
80
80
  };
81
81
  }
82
- function Mt(t) {
83
- return typeof t != "number" ? oe(t) : {
82
+ function kt(t) {
83
+ return typeof t != "number" ? ie(t) : {
84
84
  top: t,
85
85
  right: t,
86
86
  bottom: t,
@@ -110,18 +110,18 @@ function Dt(t, e, n) {
110
110
  reference: o,
111
111
  floating: i
112
112
  } = t;
113
- const r = $(e), s = yt(e), l = xt(s), f = Y(e), c = r === "y", a = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, h = o[l] / 2 - i[l] / 2;
113
+ const r = $(e), s = vt(e), l = yt(s), f = X(e), a = r === "y", c = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, h = o[l] / 2 - i[l] / 2;
114
114
  let u;
115
115
  switch (f) {
116
116
  case "top":
117
117
  u = {
118
- x: a,
118
+ x: c,
119
119
  y: o.y - i.height
120
120
  };
121
121
  break;
122
122
  case "bottom":
123
123
  u = {
124
- x: a,
124
+ x: c,
125
125
  y: o.y + o.height
126
126
  };
127
127
  break;
@@ -145,29 +145,29 @@ function Dt(t, e, n) {
145
145
  }
146
146
  switch (et(e)) {
147
147
  case "start":
148
- u[s] -= h * (n && c ? -1 : 1);
148
+ u[s] -= h * (n && a ? -1 : 1);
149
149
  break;
150
150
  case "end":
151
- u[s] += h * (n && c ? -1 : 1);
151
+ u[s] += h * (n && a ? -1 : 1);
152
152
  break;
153
153
  }
154
154
  return u;
155
155
  }
156
- const ie = async (t, e, n) => {
156
+ const se = async (t, e, n) => {
157
157
  const {
158
158
  placement: o = "bottom",
159
159
  strategy: i = "absolute",
160
160
  middleware: r = [],
161
161
  platform: s
162
162
  } = n, l = r.filter(Boolean), f = await (s.isRTL == null ? void 0 : s.isRTL(e));
163
- let c = await s.getElementRects({
163
+ let a = await s.getElementRects({
164
164
  reference: t,
165
165
  floating: e,
166
166
  strategy: i
167
167
  }), {
168
- x: a,
168
+ x: c,
169
169
  y: d
170
- } = Dt(c, o, f), h = o, u = {}, m = 0;
170
+ } = Dt(a, o, f), h = o, u = {}, m = 0;
171
171
  for (let g = 0; g < l.length; g++) {
172
172
  const {
173
173
  name: p,
@@ -175,46 +175,46 @@ const ie = async (t, e, n) => {
175
175
  } = l[g], {
176
176
  x,
177
177
  y: v,
178
- data: O,
178
+ data: A,
179
179
  reset: b
180
180
  } = await w({
181
- x: a,
181
+ x: c,
182
182
  y: d,
183
183
  initialPlacement: o,
184
184
  placement: h,
185
185
  strategy: i,
186
186
  middlewareData: u,
187
- rects: c,
187
+ rects: a,
188
188
  platform: s,
189
189
  elements: {
190
190
  reference: t,
191
191
  floating: e
192
192
  }
193
193
  });
194
- a = x ?? a, d = v ?? d, u = {
194
+ c = x ?? c, d = v ?? d, u = {
195
195
  ...u,
196
196
  [p]: {
197
197
  ...u[p],
198
- ...O
198
+ ...A
199
199
  }
200
- }, b && m <= 50 && (m++, typeof b == "object" && (b.placement && (h = b.placement), b.rects && (c = b.rects === !0 ? await s.getElementRects({
200
+ }, b && m <= 50 && (m++, typeof b == "object" && (b.placement && (h = b.placement), b.rects && (a = b.rects === !0 ? await s.getElementRects({
201
201
  reference: t,
202
202
  floating: e,
203
203
  strategy: i
204
204
  }) : b.rects), {
205
- x: a,
205
+ x: c,
206
206
  y: d
207
- } = Dt(c, h, f)), g = -1);
207
+ } = Dt(a, h, f)), g = -1);
208
208
  }
209
209
  return {
210
- x: a,
210
+ x: c,
211
211
  y: d,
212
212
  placement: h,
213
213
  strategy: i,
214
214
  middlewareData: u
215
215
  };
216
216
  };
217
- async function vt(t, e) {
217
+ async function bt(t, e) {
218
218
  var n;
219
219
  e === void 0 && (e = {});
220
220
  const {
@@ -225,22 +225,22 @@ async function vt(t, e) {
225
225
  elements: l,
226
226
  strategy: f
227
227
  } = t, {
228
- boundary: c = "clippingAncestors",
229
- rootBoundary: a = "viewport",
228
+ boundary: a = "clippingAncestors",
229
+ rootBoundary: c = "viewport",
230
230
  elementContext: d = "floating",
231
231
  altBoundary: h = !1,
232
232
  padding: u = 0
233
- } = tt(e, t), m = Mt(u), p = l[h ? d === "floating" ? "reference" : "floating" : d], w = ct(await r.getClippingRect({
233
+ } = tt(e, t), m = kt(u), p = l[h ? d === "floating" ? "reference" : "floating" : d], w = ct(await r.getClippingRect({
234
234
  element: (n = await (r.isElement == null ? void 0 : r.isElement(p))) == null || n ? p : p.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(l.floating)),
235
- boundary: c,
236
- rootBoundary: a,
235
+ boundary: a,
236
+ rootBoundary: c,
237
237
  strategy: f
238
238
  })), x = d === "floating" ? {
239
239
  x: o,
240
240
  y: i,
241
241
  width: s.floating.width,
242
242
  height: s.floating.height
243
- } : s.reference, v = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(l.floating)), O = await (r.isElement == null ? void 0 : r.isElement(v)) ? await (r.getScale == null ? void 0 : r.getScale(v)) || {
243
+ } : s.reference, v = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(l.floating)), A = await (r.isElement == null ? void 0 : r.isElement(v)) ? await (r.getScale == null ? void 0 : r.getScale(v)) || {
244
244
  x: 1,
245
245
  y: 1
246
246
  } : {
@@ -253,13 +253,13 @@ async function vt(t, e) {
253
253
  strategy: f
254
254
  }) : x);
255
255
  return {
256
- top: (w.top - b.top + m.top) / O.y,
257
- bottom: (b.bottom - w.bottom + m.bottom) / O.y,
258
- left: (w.left - b.left + m.left) / O.x,
259
- right: (b.right - w.right + m.right) / O.x
256
+ top: (w.top - b.top + m.top) / A.y,
257
+ bottom: (b.bottom - w.bottom + m.bottom) / A.y,
258
+ left: (w.left - b.left + m.left) / A.x,
259
+ right: (b.right - w.right + m.right) / A.x
260
260
  };
261
261
  }
262
- const se = (t) => ({
262
+ const re = (t) => ({
263
263
  name: "arrow",
264
264
  options: t,
265
265
  async fn(e) {
@@ -272,31 +272,31 @@ const se = (t) => ({
272
272
  elements: l,
273
273
  middlewareData: f
274
274
  } = e, {
275
- element: c,
276
- padding: a = 0
275
+ element: a,
276
+ padding: c = 0
277
277
  } = tt(t, e) || {};
278
- if (c == null)
278
+ if (a == null)
279
279
  return {};
280
- const d = Mt(a), h = {
280
+ const d = kt(c), h = {
281
281
  x: n,
282
282
  y: o
283
- }, u = yt(i), m = xt(u), g = await s.getDimensions(c), p = u === "y", w = p ? "top" : "left", x = p ? "bottom" : "right", v = p ? "clientHeight" : "clientWidth", O = r.reference[m] + r.reference[u] - h[u] - r.floating[m], b = h[u] - r.reference[u], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
283
+ }, u = vt(i), m = yt(u), g = await s.getDimensions(a), p = u === "y", w = p ? "top" : "left", x = p ? "bottom" : "right", v = p ? "clientHeight" : "clientWidth", A = r.reference[m] + r.reference[u] - h[u] - r.floating[m], b = h[u] - r.reference[u], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
284
284
  let y = C ? C[v] : 0;
285
285
  (!y || !await (s.isElement == null ? void 0 : s.isElement(C))) && (y = l.floating[v] || r.floating[m]);
286
- const A = O / 2 - b / 2, E = y / 2 - g[m] / 2 - 1, T = j(d[w], E), _ = j(d[x], E), M = T, H = y - g[m] - _, R = y / 2 - g[m] / 2 + A, X = ht(M, R, H), N = !f.arrow && et(i) != null && R !== X && r.reference[m] / 2 - (R < M ? T : _) - g[m] / 2 < 0, L = N ? R < M ? R - M : R - H : 0;
286
+ const O = A / 2 - b / 2, S = y / 2 - g[m] / 2 - 1, L = j(d[w], S), _ = j(d[x], S), V = L, H = y - g[m] - _, R = y / 2 - g[m] / 2 + O, q = gt(V, R, H), N = !f.arrow && et(i) != null && R !== q && r.reference[m] / 2 - (R < V ? L : _) - g[m] / 2 < 0, T = N ? R < V ? R - V : R - H : 0;
287
287
  return {
288
- [u]: h[u] + L,
288
+ [u]: h[u] + T,
289
289
  data: {
290
- [u]: X,
291
- centerOffset: R - X - L,
290
+ [u]: q,
291
+ centerOffset: R - q - T,
292
292
  ...N && {
293
- alignmentOffset: L
293
+ alignmentOffset: T
294
294
  }
295
295
  },
296
296
  reset: N
297
297
  };
298
298
  }
299
- }), re = function(t) {
299
+ }), le = function(t) {
300
300
  return t === void 0 && (t = {}), {
301
301
  name: "flip",
302
302
  options: t,
@@ -308,9 +308,9 @@ const se = (t) => ({
308
308
  rects: s,
309
309
  initialPlacement: l,
310
310
  platform: f,
311
- elements: c
311
+ elements: a
312
312
  } = e, {
313
- mainAxis: a = !0,
313
+ mainAxis: c = !0,
314
314
  crossAxis: d = !0,
315
315
  fallbackPlacements: h,
316
316
  fallbackStrategy: u = "bestFit",
@@ -320,38 +320,38 @@ const se = (t) => ({
320
320
  } = tt(t, e);
321
321
  if ((n = r.arrow) != null && n.alignmentOffset)
322
322
  return {};
323
- const w = Y(i), x = $(l), v = Y(l) === l, O = await (f.isRTL == null ? void 0 : f.isRTL(c.floating)), b = h || (v || !g ? [lt(l)] : Qt(l)), C = m !== "none";
324
- !h && C && b.push(...ne(l, g, m, O));
325
- const y = [l, ...b], A = await vt(e, p), E = [];
326
- let T = ((o = r.flip) == null ? void 0 : o.overflows) || [];
327
- if (a && E.push(A[w]), d) {
328
- const R = Jt(i, s, O);
329
- E.push(A[R[0]], A[R[1]]);
323
+ const w = X(i), x = $(l), v = X(l) === l, A = await (f.isRTL == null ? void 0 : f.isRTL(a.floating)), b = h || (v || !g ? [lt(l)] : Zt(l)), C = m !== "none";
324
+ !h && C && b.push(...oe(l, g, m, A));
325
+ const y = [l, ...b], O = await bt(e, p), S = [];
326
+ let L = ((o = r.flip) == null ? void 0 : o.overflows) || [];
327
+ if (c && S.push(O[w]), d) {
328
+ const R = Qt(i, s, A);
329
+ S.push(O[R[0]], O[R[1]]);
330
330
  }
331
- if (T = [...T, {
331
+ if (L = [...L, {
332
332
  placement: i,
333
- overflows: E
334
- }], !E.every((R) => R <= 0)) {
335
- var _, M;
336
- const R = (((_ = r.flip) == null ? void 0 : _.index) || 0) + 1, X = y[R];
337
- if (X && (!(d === "alignment" ? x !== $(X) : !1) || // We leave the current main axis only if every placement on that axis
333
+ overflows: S
334
+ }], !S.every((R) => R <= 0)) {
335
+ var _, V;
336
+ const R = (((_ = r.flip) == null ? void 0 : _.index) || 0) + 1, q = y[R];
337
+ if (q && (!(d === "alignment" ? x !== $(q) : !1) || // We leave the current main axis only if every placement on that axis
338
338
  // overflows the main axis.
339
- T.every((P) => P.overflows[0] > 0 && $(P.placement) === x)))
339
+ L.every((P) => $(P.placement) === x ? P.overflows[0] > 0 : !0)))
340
340
  return {
341
341
  data: {
342
342
  index: R,
343
- overflows: T
343
+ overflows: L
344
344
  },
345
345
  reset: {
346
- placement: X
346
+ placement: q
347
347
  }
348
348
  };
349
- let N = (M = T.filter((L) => L.overflows[0] <= 0).sort((L, P) => L.overflows[1] - P.overflows[1])[0]) == null ? void 0 : M.placement;
349
+ let N = (V = L.filter((T) => T.overflows[0] <= 0).sort((T, P) => T.overflows[1] - P.overflows[1])[0]) == null ? void 0 : V.placement;
350
350
  if (!N)
351
351
  switch (u) {
352
352
  case "bestFit": {
353
353
  var H;
354
- const L = (H = T.filter((P) => {
354
+ const T = (H = L.filter((P) => {
355
355
  if (C) {
356
356
  const z = $(P.placement);
357
357
  return z === x || // Create a bias to the `y` side axis due to horizontal
@@ -359,8 +359,8 @@ const se = (t) => ({
359
359
  z === "y";
360
360
  }
361
361
  return !0;
362
- }).map((P) => [P.placement, P.overflows.filter((z) => z > 0).reduce((z, It) => z + It, 0)]).sort((P, z) => P[1] - z[1])[0]) == null ? void 0 : H[0];
363
- L && (N = L);
362
+ }).map((P) => [P.placement, P.overflows.filter((z) => z > 0).reduce((z, jt) => z + jt, 0)]).sort((P, z) => P[1] - z[1])[0]) == null ? void 0 : H[0];
363
+ T && (N = T);
364
364
  break;
365
365
  }
366
366
  case "initialPlacement":
@@ -377,13 +377,13 @@ const se = (t) => ({
377
377
  return {};
378
378
  }
379
379
  };
380
- }, le = /* @__PURE__ */ new Set(["left", "top"]);
381
- async function ce(t, e) {
380
+ }, ce = /* @__PURE__ */ new Set(["left", "top"]);
381
+ async function ae(t, e) {
382
382
  const {
383
383
  placement: n,
384
384
  platform: o,
385
385
  elements: i
386
- } = t, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = Y(n), l = et(n), f = $(n) === "y", c = le.has(s) ? -1 : 1, a = r && f ? -1 : 1, d = tt(e, t);
386
+ } = t, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = X(n), l = et(n), f = $(n) === "y", a = ce.has(s) ? -1 : 1, c = r && f ? -1 : 1, d = tt(e, t);
387
387
  let {
388
388
  mainAxis: h,
389
389
  crossAxis: u,
@@ -398,14 +398,14 @@ async function ce(t, e) {
398
398
  alignmentAxis: d.alignmentAxis
399
399
  };
400
400
  return l && typeof m == "number" && (u = l === "end" ? m * -1 : m), f ? {
401
- x: u * a,
402
- y: h * c
401
+ x: u * c,
402
+ y: h * a
403
403
  } : {
404
- x: h * c,
405
- y: u * a
404
+ x: h * a,
405
+ y: u * c
406
406
  };
407
407
  }
408
- const ae = function(t) {
408
+ const fe = function(t) {
409
409
  return t === void 0 && (t = 0), {
410
410
  name: "offset",
411
411
  options: t,
@@ -416,7 +416,7 @@ const ae = function(t) {
416
416
  y: r,
417
417
  placement: s,
418
418
  middlewareData: l
419
- } = e, f = await ce(e, t);
419
+ } = e, f = await ae(e, t);
420
420
  return s === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
421
421
  x: i + f.x,
422
422
  y: r + f.y,
@@ -427,7 +427,7 @@ const ae = function(t) {
427
427
  };
428
428
  }
429
429
  };
430
- }, fe = function(t) {
430
+ }, ue = function(t) {
431
431
  return t === void 0 && (t = {}), {
432
432
  name: "shift",
433
433
  options: t,
@@ -452,18 +452,18 @@ const ae = function(t) {
452
452
  }
453
453
  },
454
454
  ...f
455
- } = tt(t, e), c = {
455
+ } = tt(t, e), a = {
456
456
  x: n,
457
457
  y: o
458
- }, a = await vt(e, f), d = $(Y(i)), h = Ft(d);
459
- let u = c[h], m = c[d];
458
+ }, c = await bt(e, f), d = $(X(i)), h = Vt(d);
459
+ let u = a[h], m = a[d];
460
460
  if (r) {
461
- const p = h === "y" ? "top" : "left", w = h === "y" ? "bottom" : "right", x = u + a[p], v = u - a[w];
462
- u = ht(x, u, v);
461
+ const p = h === "y" ? "top" : "left", w = h === "y" ? "bottom" : "right", x = u + c[p], v = u - c[w];
462
+ u = gt(x, u, v);
463
463
  }
464
464
  if (s) {
465
- const p = d === "y" ? "top" : "left", w = d === "y" ? "bottom" : "right", x = m + a[p], v = m - a[w];
466
- m = ht(x, m, v);
465
+ const p = d === "y" ? "top" : "left", w = d === "y" ? "bottom" : "right", x = m + c[p], v = m - c[w];
466
+ m = gt(x, m, v);
467
467
  }
468
468
  const g = l.fn({
469
469
  ...e,
@@ -483,7 +483,7 @@ const ae = function(t) {
483
483
  };
484
484
  }
485
485
  };
486
- }, ue = function(t) {
486
+ }, de = function(t) {
487
487
  return t === void 0 && (t = {}), {
488
488
  name: "size",
489
489
  options: t,
@@ -497,26 +497,26 @@ const ae = function(t) {
497
497
  } = e, {
498
498
  apply: f = () => {
499
499
  },
500
- ...c
501
- } = tt(t, e), a = await vt(e, c), d = Y(i), h = et(i), u = $(i) === "y", {
500
+ ...a
501
+ } = tt(t, e), c = await bt(e, a), d = X(i), h = et(i), u = $(i) === "y", {
502
502
  width: m,
503
503
  height: g
504
504
  } = r.floating;
505
505
  let p, w;
506
506
  d === "top" || d === "bottom" ? (p = d, w = h === (await (s.isRTL == null ? void 0 : s.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (w = d, p = h === "end" ? "top" : "bottom");
507
- const x = g - a.top - a.bottom, v = m - a.left - a.right, O = j(g - a[p], x), b = j(m - a[w], v), C = !e.middlewareData.shift;
508
- let y = O, A = b;
509
- if ((n = e.middlewareData.shift) != null && n.enabled.x && (A = v), (o = e.middlewareData.shift) != null && o.enabled.y && (y = x), C && !h) {
510
- const T = S(a.left, 0), _ = S(a.right, 0), M = S(a.top, 0), H = S(a.bottom, 0);
511
- u ? A = m - 2 * (T !== 0 || _ !== 0 ? T + _ : S(a.left, a.right)) : y = g - 2 * (M !== 0 || H !== 0 ? M + H : S(a.top, a.bottom));
507
+ const x = g - c.top - c.bottom, v = m - c.left - c.right, A = j(g - c[p], x), b = j(m - c[w], v), C = !e.middlewareData.shift;
508
+ let y = A, O = b;
509
+ if ((n = e.middlewareData.shift) != null && n.enabled.x && (O = v), (o = e.middlewareData.shift) != null && o.enabled.y && (y = x), C && !h) {
510
+ const L = E(c.left, 0), _ = E(c.right, 0), V = E(c.top, 0), H = E(c.bottom, 0);
511
+ u ? O = m - 2 * (L !== 0 || _ !== 0 ? L + _ : E(c.left, c.right)) : y = g - 2 * (V !== 0 || H !== 0 ? V + H : E(c.top, c.bottom));
512
512
  }
513
513
  await f({
514
514
  ...e,
515
- availableWidth: A,
515
+ availableWidth: O,
516
516
  availableHeight: y
517
517
  });
518
- const E = await s.getDimensions(l.floating);
519
- return m !== E.width || g !== E.height ? {
518
+ const S = await s.getDimensions(l.floating);
519
+ return m !== S.width || g !== S.height ? {
520
520
  reset: {
521
521
  rects: !0
522
522
  }
@@ -528,7 +528,7 @@ function at() {
528
528
  return typeof window < "u";
529
529
  }
530
530
  function K(t) {
531
- return bt(t) ? (t.nodeName || "").toLowerCase() : "#document";
531
+ return At(t) ? (t.nodeName || "").toLowerCase() : "#document";
532
532
  }
533
533
  function D(t) {
534
534
  var e;
@@ -536,21 +536,21 @@ function D(t) {
536
536
  }
537
537
  function B(t) {
538
538
  var e;
539
- return (e = (bt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
539
+ return (e = (At(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
540
540
  }
541
- function bt(t) {
541
+ function At(t) {
542
542
  return at() ? t instanceof Node || t instanceof D(t).Node : !1;
543
543
  }
544
- function V(t) {
544
+ function M(t) {
545
545
  return at() ? t instanceof Element || t instanceof D(t).Element : !1;
546
546
  }
547
547
  function W(t) {
548
548
  return at() ? t instanceof HTMLElement || t instanceof D(t).HTMLElement : !1;
549
549
  }
550
- function Tt(t) {
550
+ function Lt(t) {
551
551
  return !at() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof D(t).ShadowRoot;
552
552
  }
553
- const de = /* @__PURE__ */ new Set(["inline", "contents"]);
553
+ const me = /* @__PURE__ */ new Set(["inline", "contents"]);
554
554
  function it(t) {
555
555
  const {
556
556
  overflow: e,
@@ -558,15 +558,15 @@ function it(t) {
558
558
  overflowY: o,
559
559
  display: i
560
560
  } = F(t);
561
- return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !de.has(i);
561
+ return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !me.has(i);
562
562
  }
563
- const me = /* @__PURE__ */ new Set(["table", "td", "th"]);
564
- function he(t) {
565
- return me.has(K(t));
563
+ const he = /* @__PURE__ */ new Set(["table", "td", "th"]);
564
+ function ge(t) {
565
+ return he.has(K(t));
566
566
  }
567
- const ge = [":popover-open", ":modal"];
567
+ const pe = [":popover-open", ":modal"];
568
568
  function ft(t) {
569
- return ge.some((e) => {
569
+ return pe.some((e) => {
570
570
  try {
571
571
  return t.matches(e);
572
572
  } catch {
@@ -574,34 +574,34 @@ function ft(t) {
574
574
  }
575
575
  });
576
576
  }
577
- const pe = ["transform", "translate", "scale", "rotate", "perspective"], we = ["transform", "translate", "scale", "rotate", "perspective", "filter"], xe = ["paint", "layout", "strict", "content"];
577
+ const we = ["transform", "translate", "scale", "rotate", "perspective"], xe = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ye = ["paint", "layout", "strict", "content"];
578
578
  function Ot(t) {
579
- const e = At(), n = V(t) ? F(t) : t;
580
- return pe.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) || we.some((o) => (n.willChange || "").includes(o)) || xe.some((o) => (n.contain || "").includes(o));
579
+ const e = Rt(), n = M(t) ? F(t) : t;
580
+ return we.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) || xe.some((o) => (n.willChange || "").includes(o)) || ye.some((o) => (n.contain || "").includes(o));
581
581
  }
582
- function ye(t) {
583
- let e = q(t);
582
+ function ve(t) {
583
+ let e = Y(t);
584
584
  for (; W(e) && !Z(e); ) {
585
585
  if (Ot(e))
586
586
  return e;
587
587
  if (ft(e))
588
588
  return null;
589
- e = q(e);
589
+ e = Y(e);
590
590
  }
591
591
  return null;
592
592
  }
593
- function At() {
593
+ function Rt() {
594
594
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
595
595
  }
596
- const ve = /* @__PURE__ */ new Set(["html", "body", "#document"]);
596
+ const be = /* @__PURE__ */ new Set(["html", "body", "#document"]);
597
597
  function Z(t) {
598
- return ve.has(K(t));
598
+ return be.has(K(t));
599
599
  }
600
600
  function F(t) {
601
601
  return D(t).getComputedStyle(t);
602
602
  }
603
603
  function ut(t) {
604
- return V(t) ? {
604
+ return M(t) ? {
605
605
  scrollLeft: t.scrollLeft,
606
606
  scrollTop: t.scrollTop
607
607
  } : {
@@ -609,36 +609,36 @@ function ut(t) {
609
609
  scrollTop: t.scrollY
610
610
  };
611
611
  }
612
- function q(t) {
612
+ function Y(t) {
613
613
  if (K(t) === "html")
614
614
  return t;
615
615
  const e = (
616
616
  // Step into the shadow DOM of the parent of a slotted node.
617
617
  t.assignedSlot || // DOM Element detected.
618
618
  t.parentNode || // ShadowRoot detected.
619
- Tt(t) && t.host || // Fallback.
619
+ Lt(t) && t.host || // Fallback.
620
620
  B(t)
621
621
  );
622
- return Tt(e) ? e.host : e;
622
+ return Lt(e) ? e.host : e;
623
623
  }
624
- function kt(t) {
625
- const e = q(t);
626
- return Z(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : W(e) && it(e) ? e : kt(e);
624
+ function Wt(t) {
625
+ const e = Y(t);
626
+ return Z(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : W(e) && it(e) ? e : Wt(e);
627
627
  }
628
628
  function ot(t, e, n) {
629
629
  var o;
630
630
  e === void 0 && (e = []), n === void 0 && (n = !0);
631
- const i = kt(t), r = i === ((o = t.ownerDocument) == null ? void 0 : o.body), s = D(i);
631
+ const i = Wt(t), r = i === ((o = t.ownerDocument) == null ? void 0 : o.body), s = D(i);
632
632
  if (r) {
633
- const l = pt(s);
633
+ const l = wt(s);
634
634
  return e.concat(s, s.visualViewport || [], it(i) ? i : [], l && n ? ot(l) : []);
635
635
  }
636
636
  return e.concat(i, ot(i, [], n));
637
637
  }
638
- function pt(t) {
638
+ function wt(t) {
639
639
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
640
640
  }
641
- function Wt(t) {
641
+ function Bt(t) {
642
642
  const e = F(t);
643
643
  let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
644
644
  const i = W(t), r = i ? t.offsetWidth : n, s = i ? t.offsetHeight : o, l = rt(n) !== r || rt(o) !== s;
@@ -648,28 +648,28 @@ function Wt(t) {
648
648
  $: l
649
649
  };
650
650
  }
651
- function Rt(t) {
652
- return V(t) ? t : t.contextElement;
651
+ function Ct(t) {
652
+ return M(t) ? t : t.contextElement;
653
653
  }
654
654
  function Q(t) {
655
- const e = Rt(t);
655
+ const e = Ct(t);
656
656
  if (!W(e))
657
657
  return k(1);
658
658
  const n = e.getBoundingClientRect(), {
659
659
  width: o,
660
660
  height: i,
661
661
  $: r
662
- } = Wt(e);
662
+ } = Bt(e);
663
663
  let s = (r ? rt(n.width) : n.width) / o, l = (r ? rt(n.height) : n.height) / i;
664
664
  return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
665
665
  x: s,
666
666
  y: l
667
667
  };
668
668
  }
669
- const be = /* @__PURE__ */ k(0);
670
- function Bt(t) {
669
+ const Ae = /* @__PURE__ */ k(0);
670
+ function Nt(t) {
671
671
  const e = D(t);
672
- return !At() || !e.visualViewport ? be : {
672
+ return !Rt() || !e.visualViewport ? Ae : {
673
673
  x: e.visualViewport.offsetLeft,
674
674
  y: e.visualViewport.offsetTop
675
675
  };
@@ -679,42 +679,38 @@ function Oe(t, e, n) {
679
679
  }
680
680
  function U(t, e, n, o) {
681
681
  e === void 0 && (e = !1), n === void 0 && (n = !1);
682
- const i = t.getBoundingClientRect(), r = Rt(t);
682
+ const i = t.getBoundingClientRect(), r = Ct(t);
683
683
  let s = k(1);
684
- e && (o ? V(o) && (s = Q(o)) : s = Q(t));
685
- const l = Oe(r, n, o) ? Bt(r) : k(0);
686
- let f = (i.left + l.x) / s.x, c = (i.top + l.y) / s.y, a = i.width / s.x, d = i.height / s.y;
684
+ e && (o ? M(o) && (s = Q(o)) : s = Q(t));
685
+ const l = Oe(r, n, o) ? Nt(r) : k(0);
686
+ let f = (i.left + l.x) / s.x, a = (i.top + l.y) / s.y, c = i.width / s.x, d = i.height / s.y;
687
687
  if (r) {
688
- const h = D(r), u = o && V(o) ? D(o) : o;
689
- let m = h, g = pt(m);
688
+ const h = D(r), u = o && M(o) ? D(o) : o;
689
+ let m = h, g = wt(m);
690
690
  for (; g && o && u !== m; ) {
691
- const p = Q(g), w = g.getBoundingClientRect(), x = F(g), v = w.left + (g.clientLeft + parseFloat(x.paddingLeft)) * p.x, O = w.top + (g.clientTop + parseFloat(x.paddingTop)) * p.y;
692
- f *= p.x, c *= p.y, a *= p.x, d *= p.y, f += v, c += O, m = D(g), g = pt(m);
691
+ const p = Q(g), w = g.getBoundingClientRect(), x = F(g), v = w.left + (g.clientLeft + parseFloat(x.paddingLeft)) * p.x, A = w.top + (g.clientTop + parseFloat(x.paddingTop)) * p.y;
692
+ f *= p.x, a *= p.y, c *= p.x, d *= p.y, f += v, a += A, m = D(g), g = wt(m);
693
693
  }
694
694
  }
695
695
  return ct({
696
- width: a,
696
+ width: c,
697
697
  height: d,
698
698
  x: f,
699
- y: c
699
+ y: a
700
700
  });
701
701
  }
702
- function Ct(t, e) {
702
+ function dt(t, e) {
703
703
  const n = ut(t).scrollLeft;
704
704
  return e ? e.left + n : U(B(t)).left + n;
705
705
  }
706
- function Nt(t, e, n) {
707
- n === void 0 && (n = !1);
708
- const o = t.getBoundingClientRect(), i = o.left + e.scrollLeft - (n ? 0 : (
709
- // RTL <body> scrollbar.
710
- Ct(t, o)
711
- )), r = o.top + e.scrollTop;
706
+ function $t(t, e) {
707
+ const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - dt(t, n), i = n.top + e.scrollTop;
712
708
  return {
713
- x: i,
714
- y: r
709
+ x: o,
710
+ y: i
715
711
  };
716
712
  }
717
- function Ae(t) {
713
+ function Re(t) {
718
714
  let {
719
715
  elements: e,
720
716
  rect: n,
@@ -727,42 +723,48 @@ function Ae(t) {
727
723
  let f = {
728
724
  scrollLeft: 0,
729
725
  scrollTop: 0
730
- }, c = k(1);
731
- const a = k(0), d = W(o);
726
+ }, a = k(1);
727
+ const c = k(0), d = W(o);
732
728
  if ((d || !d && !r) && ((K(o) !== "body" || it(s)) && (f = ut(o)), W(o))) {
733
729
  const u = U(o);
734
- c = Q(o), a.x = u.x + o.clientLeft, a.y = u.y + o.clientTop;
730
+ a = Q(o), c.x = u.x + o.clientLeft, c.y = u.y + o.clientTop;
735
731
  }
736
- const h = s && !d && !r ? Nt(s, f, !0) : k(0);
732
+ const h = s && !d && !r ? $t(s, f) : k(0);
737
733
  return {
738
- width: n.width * c.x,
739
- height: n.height * c.y,
740
- x: n.x * c.x - f.scrollLeft * c.x + a.x + h.x,
741
- y: n.y * c.y - f.scrollTop * c.y + a.y + h.y
734
+ width: n.width * a.x,
735
+ height: n.height * a.y,
736
+ x: n.x * a.x - f.scrollLeft * a.x + c.x + h.x,
737
+ y: n.y * a.y - f.scrollTop * a.y + c.y + h.y
742
738
  };
743
739
  }
744
- function Re(t) {
740
+ function Ce(t) {
745
741
  return Array.from(t.getClientRects());
746
742
  }
747
- function Ce(t) {
748
- const e = B(t), n = ut(t), o = t.ownerDocument.body, i = S(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), r = S(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
749
- let s = -n.scrollLeft + Ct(t);
743
+ function Se(t) {
744
+ const e = B(t), n = ut(t), o = t.ownerDocument.body, i = E(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), r = E(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
745
+ let s = -n.scrollLeft + dt(t);
750
746
  const l = -n.scrollTop;
751
- return F(o).direction === "rtl" && (s += S(e.clientWidth, o.clientWidth) - i), {
747
+ return F(o).direction === "rtl" && (s += E(e.clientWidth, o.clientWidth) - i), {
752
748
  width: i,
753
749
  height: r,
754
750
  x: s,
755
751
  y: l
756
752
  };
757
753
  }
754
+ const Tt = 25;
758
755
  function Ee(t, e) {
759
756
  const n = D(t), o = B(t), i = n.visualViewport;
760
757
  let r = o.clientWidth, s = o.clientHeight, l = 0, f = 0;
761
758
  if (i) {
762
759
  r = i.width, s = i.height;
763
- const c = At();
760
+ const c = Rt();
764
761
  (!c || c && e === "fixed") && (l = i.offsetLeft, f = i.offsetTop);
765
762
  }
763
+ const a = dt(o);
764
+ if (a <= 0) {
765
+ const c = o.ownerDocument, d = c.body, h = getComputedStyle(d), u = c.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, m = Math.abs(o.clientWidth - d.clientWidth - u);
766
+ m <= Tt && (r -= m);
767
+ } else a <= Tt && (r += a);
766
768
  return {
767
769
  width: r,
768
770
  height: s,
@@ -770,26 +772,26 @@ function Ee(t, e) {
770
772
  y: f
771
773
  };
772
774
  }
773
- const Se = /* @__PURE__ */ new Set(["absolute", "fixed"]);
774
- function De(t, e) {
775
- const n = U(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, r = W(t) ? Q(t) : k(1), s = t.clientWidth * r.x, l = t.clientHeight * r.y, f = i * r.x, c = o * r.y;
775
+ const De = /* @__PURE__ */ new Set(["absolute", "fixed"]);
776
+ function Le(t, e) {
777
+ const n = U(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, r = W(t) ? Q(t) : k(1), s = t.clientWidth * r.x, l = t.clientHeight * r.y, f = i * r.x, a = o * r.y;
776
778
  return {
777
779
  width: s,
778
780
  height: l,
779
781
  x: f,
780
- y: c
782
+ y: a
781
783
  };
782
784
  }
783
- function Lt(t, e, n) {
785
+ function Pt(t, e, n) {
784
786
  let o;
785
787
  if (e === "viewport")
786
788
  o = Ee(t, n);
787
789
  else if (e === "document")
788
- o = Ce(B(t));
789
- else if (V(e))
790
- o = De(e, n);
790
+ o = Se(B(t));
791
+ else if (M(e))
792
+ o = Le(e, n);
791
793
  else {
792
- const i = Bt(t);
794
+ const i = Nt(t);
793
795
  o = {
794
796
  x: e.x - i.x,
795
797
  y: e.y - i.y,
@@ -799,34 +801,34 @@ function Lt(t, e, n) {
799
801
  }
800
802
  return ct(o);
801
803
  }
802
- function $t(t, e) {
803
- const n = q(t);
804
- return n === e || !V(n) || Z(n) ? !1 : F(n).position === "fixed" || $t(n, e);
804
+ function _t(t, e) {
805
+ const n = Y(t);
806
+ return n === e || !M(n) || Z(n) ? !1 : F(n).position === "fixed" || _t(n, e);
805
807
  }
806
808
  function Te(t, e) {
807
809
  const n = e.get(t);
808
810
  if (n)
809
811
  return n;
810
- let o = ot(t, [], !1).filter((l) => V(l) && K(l) !== "body"), i = null;
812
+ let o = ot(t, [], !1).filter((l) => M(l) && K(l) !== "body"), i = null;
811
813
  const r = F(t).position === "fixed";
812
- let s = r ? q(t) : t;
813
- for (; V(s) && !Z(s); ) {
814
+ let s = r ? Y(t) : t;
815
+ for (; M(s) && !Z(s); ) {
814
816
  const l = F(s), f = Ot(s);
815
- !f && l.position === "fixed" && (i = null), (r ? !f && !i : !f && l.position === "static" && !!i && Se.has(i.position) || it(s) && !f && $t(t, s)) ? o = o.filter((a) => a !== s) : i = l, s = q(s);
817
+ !f && l.position === "fixed" && (i = null), (r ? !f && !i : !f && l.position === "static" && !!i && De.has(i.position) || it(s) && !f && _t(t, s)) ? o = o.filter((c) => c !== s) : i = l, s = Y(s);
816
818
  }
817
819
  return e.set(t, o), o;
818
820
  }
819
- function Le(t) {
821
+ function Pe(t) {
820
822
  let {
821
823
  element: e,
822
824
  boundary: n,
823
825
  rootBoundary: o,
824
826
  strategy: i
825
827
  } = t;
826
- const s = [...n === "clippingAncestors" ? ft(e) ? [] : Te(e, this._c) : [].concat(n), o], l = s[0], f = s.reduce((c, a) => {
827
- const d = Lt(e, a, i);
828
- return c.top = S(d.top, c.top), c.right = j(d.right, c.right), c.bottom = j(d.bottom, c.bottom), c.left = S(d.left, c.left), c;
829
- }, Lt(e, l, i));
828
+ const s = [...n === "clippingAncestors" ? ft(e) ? [] : Te(e, this._c) : [].concat(n), o], l = s[0], f = s.reduce((a, c) => {
829
+ const d = Pt(e, c, i);
830
+ return a.top = E(d.top, a.top), a.right = j(d.right, a.right), a.bottom = j(d.bottom, a.bottom), a.left = E(d.left, a.left), a;
831
+ }, Pt(e, l, i));
830
832
  return {
831
833
  width: f.right - f.left,
832
834
  height: f.bottom - f.top,
@@ -834,33 +836,33 @@ function Le(t) {
834
836
  y: f.top
835
837
  };
836
838
  }
837
- function Pe(t) {
839
+ function Me(t) {
838
840
  const {
839
841
  width: e,
840
842
  height: n
841
- } = Wt(t);
843
+ } = Bt(t);
842
844
  return {
843
845
  width: e,
844
846
  height: n
845
847
  };
846
848
  }
847
- function Ve(t, e, n) {
849
+ function Fe(t, e, n) {
848
850
  const o = W(e), i = B(e), r = n === "fixed", s = U(t, !0, r, e);
849
851
  let l = {
850
852
  scrollLeft: 0,
851
853
  scrollTop: 0
852
854
  };
853
855
  const f = k(0);
854
- function c() {
855
- f.x = Ct(i);
856
+ function a() {
857
+ f.x = dt(i);
856
858
  }
857
859
  if (o || !o && !r)
858
860
  if ((K(e) !== "body" || it(i)) && (l = ut(e)), o) {
859
861
  const u = U(e, !0, r, e);
860
862
  f.x = u.x + e.clientLeft, f.y = u.y + e.clientTop;
861
- } else i && c();
862
- r && !o && i && c();
863
- const a = i && !o && !r ? Nt(i, l) : k(0), d = s.left + l.scrollLeft - f.x - a.x, h = s.top + l.scrollTop - f.y - a.y;
863
+ } else i && a();
864
+ r && !o && i && a();
865
+ const c = i && !o && !r ? $t(i, l) : k(0), d = s.left + l.scrollLeft - f.x - c.x, h = s.top + l.scrollTop - f.y - c.y;
864
866
  return {
865
867
  x: d,
866
868
  y: h,
@@ -868,10 +870,10 @@ function Ve(t, e, n) {
868
870
  height: s.height
869
871
  };
870
872
  }
871
- function mt(t) {
873
+ function ht(t) {
872
874
  return F(t).position === "static";
873
875
  }
874
- function Pt(t, e) {
876
+ function Mt(t, e) {
875
877
  if (!W(t) || F(t).position === "fixed")
876
878
  return null;
877
879
  if (e)
@@ -879,28 +881,28 @@ function Pt(t, e) {
879
881
  let n = t.offsetParent;
880
882
  return B(t) === n && (n = n.ownerDocument.body), n;
881
883
  }
882
- function _t(t, e) {
884
+ function Ht(t, e) {
883
885
  const n = D(t);
884
886
  if (ft(t))
885
887
  return n;
886
888
  if (!W(t)) {
887
- let i = q(t);
889
+ let i = Y(t);
888
890
  for (; i && !Z(i); ) {
889
- if (V(i) && !mt(i))
891
+ if (M(i) && !ht(i))
890
892
  return i;
891
- i = q(i);
893
+ i = Y(i);
892
894
  }
893
895
  return n;
894
896
  }
895
- let o = Pt(t, e);
896
- for (; o && he(o) && mt(o); )
897
- o = Pt(o, e);
898
- return o && Z(o) && mt(o) && !Ot(o) ? n : o || ye(t) || n;
897
+ let o = Mt(t, e);
898
+ for (; o && ge(o) && ht(o); )
899
+ o = Mt(o, e);
900
+ return o && Z(o) && ht(o) && !Ot(o) ? n : o || ve(t) || n;
899
901
  }
900
- const Fe = async function(t) {
901
- const e = this.getOffsetParent || _t, n = this.getDimensions, o = await n(t.floating);
902
+ const Ve = async function(t) {
903
+ const e = this.getOffsetParent || Ht, n = this.getDimensions, o = await n(t.floating);
902
904
  return {
903
- reference: Ve(t.reference, await e(t.floating), t.strategy),
905
+ reference: Fe(t.reference, await e(t.floating), t.strategy),
904
906
  floating: {
905
907
  x: 0,
906
908
  y: 0,
@@ -909,25 +911,25 @@ const Fe = async function(t) {
909
911
  }
910
912
  };
911
913
  };
912
- function Me(t) {
914
+ function ke(t) {
913
915
  return F(t).direction === "rtl";
914
916
  }
915
- const ke = {
916
- convertOffsetParentRelativeRectToViewportRelativeRect: Ae,
917
+ const We = {
918
+ convertOffsetParentRelativeRectToViewportRelativeRect: Re,
917
919
  getDocumentElement: B,
918
- getClippingRect: Le,
919
- getOffsetParent: _t,
920
- getElementRects: Fe,
921
- getClientRects: Re,
922
- getDimensions: Pe,
920
+ getClippingRect: Pe,
921
+ getOffsetParent: Ht,
922
+ getElementRects: Ve,
923
+ getClientRects: Ce,
924
+ getDimensions: Me,
923
925
  getScale: Q,
924
- isElement: V,
925
- isRTL: Me
926
+ isElement: M,
927
+ isRTL: ke
926
928
  };
927
- function Ht(t, e) {
929
+ function zt(t, e) {
928
930
  return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
929
931
  }
930
- function We(t, e) {
932
+ function Be(t, e) {
931
933
  let n = null, o;
932
934
  const i = B(t);
933
935
  function r() {
@@ -936,29 +938,29 @@ function We(t, e) {
936
938
  }
937
939
  function s(l, f) {
938
940
  l === void 0 && (l = !1), f === void 0 && (f = 1), r();
939
- const c = t.getBoundingClientRect(), {
940
- left: a,
941
+ const a = t.getBoundingClientRect(), {
942
+ left: c,
941
943
  top: d,
942
944
  width: h,
943
945
  height: u
944
- } = c;
946
+ } = a;
945
947
  if (l || e(), !h || !u)
946
948
  return;
947
- const m = st(d), g = st(i.clientWidth - (a + h)), p = st(i.clientHeight - (d + u)), w = st(a), v = {
949
+ const m = st(d), g = st(i.clientWidth - (c + h)), p = st(i.clientHeight - (d + u)), w = st(c), v = {
948
950
  rootMargin: -m + "px " + -g + "px " + -p + "px " + -w + "px",
949
- threshold: S(0, j(1, f)) || 1
951
+ threshold: E(0, j(1, f)) || 1
950
952
  };
951
- let O = !0;
953
+ let A = !0;
952
954
  function b(C) {
953
955
  const y = C[0].intersectionRatio;
954
956
  if (y !== f) {
955
- if (!O)
957
+ if (!A)
956
958
  return s();
957
959
  y ? s(!1, y) : o = setTimeout(() => {
958
960
  s(!1, 1e-7);
959
961
  }, 1e3);
960
962
  }
961
- y === 1 && !Ht(c, t.getBoundingClientRect()) && s(), O = !1;
963
+ y === 1 && !zt(a, t.getBoundingClientRect()) && s(), A = !1;
962
964
  }
963
965
  try {
964
966
  n = new IntersectionObserver(b, {
@@ -973,7 +975,7 @@ function We(t, e) {
973
975
  }
974
976
  return s(!0), r;
975
977
  }
976
- function He(t, e, n, o) {
978
+ function ze(t, e, n, o) {
977
979
  o === void 0 && (o = {});
978
980
  const {
979
981
  ancestorScroll: i = !0,
@@ -981,81 +983,81 @@ function He(t, e, n, o) {
981
983
  elementResize: s = typeof ResizeObserver == "function",
982
984
  layoutShift: l = typeof IntersectionObserver == "function",
983
985
  animationFrame: f = !1
984
- } = o, c = Rt(t), a = i || r ? [...c ? ot(c) : [], ...ot(e)] : [];
985
- a.forEach((w) => {
986
+ } = o, a = Ct(t), c = i || r ? [...a ? ot(a) : [], ...ot(e)] : [];
987
+ c.forEach((w) => {
986
988
  i && w.addEventListener("scroll", n, {
987
989
  passive: !0
988
990
  }), r && w.addEventListener("resize", n);
989
991
  });
990
- const d = c && l ? We(c, n) : null;
992
+ const d = a && l ? Be(a, n) : null;
991
993
  let h = -1, u = null;
992
994
  s && (u = new ResizeObserver((w) => {
993
995
  let [x] = w;
994
- x && x.target === c && u && (u.unobserve(e), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
996
+ x && x.target === a && u && (u.unobserve(e), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
995
997
  var v;
996
998
  (v = u) == null || v.observe(e);
997
999
  })), n();
998
- }), c && !f && u.observe(c), u.observe(e));
1000
+ }), a && !f && u.observe(a), u.observe(e));
999
1001
  let m, g = f ? U(t) : null;
1000
1002
  f && p();
1001
1003
  function p() {
1002
1004
  const w = U(t);
1003
- g && !Ht(g, w) && n(), g = w, m = requestAnimationFrame(p);
1005
+ g && !zt(g, w) && n(), g = w, m = requestAnimationFrame(p);
1004
1006
  }
1005
1007
  return n(), () => {
1006
1008
  var w;
1007
- a.forEach((x) => {
1009
+ c.forEach((x) => {
1008
1010
  i && x.removeEventListener("scroll", n), r && x.removeEventListener("resize", n);
1009
1011
  }), d == null || d(), (w = u) == null || w.disconnect(), u = null, f && cancelAnimationFrame(m);
1010
1012
  };
1011
1013
  }
1012
- const ze = ae, Ie = fe, je = re, Ye = ue, Be = se, Ne = (t, e, n) => {
1014
+ const Ie = fe, je = ue, Xe = le, Ye = de, Ne = re, $e = (t, e, n) => {
1013
1015
  const o = /* @__PURE__ */ new Map(), i = {
1014
- platform: ke,
1016
+ platform: We,
1015
1017
  ...n
1016
1018
  }, r = {
1017
1019
  ...i.platform,
1018
1020
  _c: o
1019
1021
  };
1020
- return ie(t, e, {
1022
+ return se(t, e, {
1021
1023
  ...i,
1022
1024
  platform: r
1023
1025
  });
1024
1026
  };
1025
- function $e(t) {
1027
+ function _e(t) {
1026
1028
  return t != null && typeof t == "object" && "$el" in t;
1027
1029
  }
1028
- function wt(t) {
1029
- if ($e(t)) {
1030
+ function xt(t) {
1031
+ if (_e(t)) {
1030
1032
  const e = t.$el;
1031
- return bt(e) && K(e) === "#comment" ? null : e;
1033
+ return At(e) && K(e) === "#comment" ? null : e;
1032
1034
  }
1033
1035
  return t;
1034
1036
  }
1035
1037
  function J(t) {
1036
- return typeof t == "function" ? t() : Xt(t);
1038
+ return typeof t == "function" ? t() : Ut(t);
1037
1039
  }
1038
1040
  function qe(t) {
1039
1041
  return {
1040
1042
  name: "arrow",
1041
1043
  options: t,
1042
1044
  fn(e) {
1043
- const n = wt(J(t.element));
1044
- return n == null ? {} : Be({
1045
+ const n = xt(J(t.element));
1046
+ return n == null ? {} : Ne({
1045
1047
  element: n,
1046
1048
  padding: t.padding
1047
1049
  }).fn(e);
1048
1050
  }
1049
1051
  };
1050
1052
  }
1051
- function zt(t) {
1053
+ function It(t) {
1052
1054
  return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
1053
1055
  }
1054
- function Vt(t, e) {
1055
- const n = zt(t);
1056
+ function Ft(t, e) {
1057
+ const n = It(t);
1056
1058
  return Math.round(e * n) / n;
1057
1059
  }
1058
- function Xe(t, e, n) {
1060
+ function Ue(t, e, n) {
1059
1061
  n === void 0 && (n = {});
1060
1062
  const o = n.whileElementsMounted, i = I(() => {
1061
1063
  var y;
@@ -1069,63 +1071,63 @@ function Xe(t, e, n) {
1069
1071
  }), f = I(() => {
1070
1072
  var y;
1071
1073
  return (y = J(n.transform)) != null ? y : !0;
1072
- }), c = I(() => wt(t.value)), a = I(() => wt(e.value)), d = nt(0), h = nt(0), u = nt(l.value), m = nt(s.value), g = jt({}), p = nt(!1), w = I(() => {
1074
+ }), a = I(() => xt(t.value)), c = I(() => xt(e.value)), d = nt(0), h = nt(0), u = nt(l.value), m = nt(s.value), g = Xt({}), p = nt(!1), w = I(() => {
1073
1075
  const y = {
1074
1076
  position: u.value,
1075
1077
  left: "0",
1076
1078
  top: "0"
1077
1079
  };
1078
- if (!a.value)
1080
+ if (!c.value)
1079
1081
  return y;
1080
- const A = Vt(a.value, d.value), E = Vt(a.value, h.value);
1082
+ const O = Ft(c.value, d.value), S = Ft(c.value, h.value);
1081
1083
  return f.value ? {
1082
1084
  ...y,
1083
- transform: "translate(" + A + "px, " + E + "px)",
1084
- ...zt(a.value) >= 1.5 && {
1085
+ transform: "translate(" + O + "px, " + S + "px)",
1086
+ ...It(c.value) >= 1.5 && {
1085
1087
  willChange: "transform"
1086
1088
  }
1087
1089
  } : {
1088
1090
  position: u.value,
1089
- left: A + "px",
1090
- top: E + "px"
1091
+ left: O + "px",
1092
+ top: S + "px"
1091
1093
  };
1092
1094
  });
1093
1095
  let x;
1094
1096
  function v() {
1095
- if (c.value == null || a.value == null)
1097
+ if (a.value == null || c.value == null)
1096
1098
  return;
1097
1099
  const y = i.value;
1098
- Ne(c.value, a.value, {
1100
+ $e(a.value, c.value, {
1099
1101
  middleware: r.value,
1100
1102
  placement: s.value,
1101
1103
  strategy: l.value
1102
- }).then((A) => {
1103
- d.value = A.x, h.value = A.y, u.value = A.strategy, m.value = A.placement, g.value = A.middlewareData, p.value = y !== !1;
1104
+ }).then((O) => {
1105
+ d.value = O.x, h.value = O.y, u.value = O.strategy, m.value = O.placement, g.value = O.middlewareData, p.value = y !== !1;
1104
1106
  });
1105
1107
  }
1106
- function O() {
1108
+ function A() {
1107
1109
  typeof x == "function" && (x(), x = void 0);
1108
1110
  }
1109
1111
  function b() {
1110
- if (O(), o === void 0) {
1112
+ if (A(), o === void 0) {
1111
1113
  v();
1112
1114
  return;
1113
1115
  }
1114
- if (c.value != null && a.value != null) {
1115
- x = o(c.value, a.value, v);
1116
+ if (a.value != null && c.value != null) {
1117
+ x = o(a.value, c.value, v);
1116
1118
  return;
1117
1119
  }
1118
1120
  }
1119
1121
  function C() {
1120
1122
  i.value || (p.value = !1);
1121
1123
  }
1122
- return dt([r, s, l, i], v, {
1124
+ return mt([r, s, l, i], v, {
1123
1125
  flush: "sync"
1124
- }), dt([c, a], b, {
1126
+ }), mt([a, c], b, {
1125
1127
  flush: "sync"
1126
- }), dt(i, C, {
1128
+ }), mt(i, C, {
1127
1129
  flush: "sync"
1128
- }), Yt() && qt(O), {
1130
+ }), Yt() && qt(A), {
1129
1131
  x: G(d),
1130
1132
  y: G(h),
1131
1133
  strategy: G(u),
@@ -1137,12 +1139,12 @@ function Xe(t, e, n) {
1137
1139
  };
1138
1140
  }
1139
1141
  export {
1140
- He as a,
1142
+ ze as a,
1141
1143
  Ye as b,
1142
1144
  qe as c,
1143
- Ne as d,
1144
- je as f,
1145
- ze as o,
1146
- Ie as s,
1147
- Xe as u
1145
+ $e as d,
1146
+ Xe as f,
1147
+ Ie as o,
1148
+ je as s,
1149
+ Ue as u
1148
1150
  };