@leaflink/stash 50.5.1 → 50.5.2

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 (153) hide show
  1. package/dist/Accordion.js.map +1 -1
  2. package/dist/ActionsDropdown.js.map +1 -1
  3. package/dist/AddressSelect.js.map +1 -1
  4. package/dist/Alert.js.map +1 -1
  5. package/dist/AppNavigationItem.js.map +1 -1
  6. package/dist/AppSidebar.js.map +1 -1
  7. package/dist/Avatar.js.map +1 -1
  8. package/dist/Badge.js.map +1 -1
  9. package/dist/Button.js.map +1 -1
  10. package/dist/ButtonGroup.js.map +1 -1
  11. package/dist/Card.js.map +1 -1
  12. package/dist/CardMedia.js.map +1 -1
  13. package/dist/Carousel.js.map +1 -1
  14. package/dist/Checkbox.js.map +1 -1
  15. package/dist/Chip.js.map +1 -1
  16. package/dist/ConfirmationCodeInput.js.map +1 -1
  17. package/dist/ContextSwitcher.js.map +1 -1
  18. package/dist/Copy.js.map +1 -1
  19. package/dist/CurrencyInput.js.map +1 -1
  20. package/dist/CustomRender.js.map +1 -1
  21. package/dist/DataView.js.map +1 -1
  22. package/dist/DataView.keys-C7eaZg2G.js.map +1 -1
  23. package/dist/DataViewFilters.js.map +1 -1
  24. package/dist/DataViewSortButton.js.map +1 -1
  25. package/dist/DataViewToolbar.js.map +1 -1
  26. package/dist/DatePicker.js.map +1 -1
  27. package/dist/DescriptionList.js.map +1 -1
  28. package/dist/DescriptionListDetail.js.map +1 -1
  29. package/dist/DescriptionListGroup.js.map +1 -1
  30. package/dist/DescriptionListTerm.js.map +1 -1
  31. package/dist/Dialog.js.map +1 -1
  32. package/dist/Divider.js.map +1 -1
  33. package/dist/Dropdown.js.map +1 -1
  34. package/dist/EmptyState.js.map +1 -1
  35. package/dist/Expand.vue_vue_type_script_setup_true_lang-D0fSAtHr.js.map +1 -1
  36. package/dist/Field.vue_vue_type_script_setup_true_lang-DEizIcDo.js.map +1 -1
  37. package/dist/FileUpload.js.map +1 -1
  38. package/dist/FilterChip.js.map +1 -1
  39. package/dist/FilterDrawerItem.js.map +1 -1
  40. package/dist/FilterDropdown.js.map +1 -1
  41. package/dist/FilterSelect.js.map +1 -1
  42. package/dist/Filters.js.map +1 -1
  43. package/dist/HttpError.js.map +1 -1
  44. package/dist/Icon.js.map +1 -1
  45. package/dist/IconLabel.js.map +1 -1
  46. package/dist/Illustration.vue_vue_type_script_setup_true_lang-C3qG3Ty6.js.map +1 -1
  47. package/dist/Image.vue_vue_type_script_setup_true_lang-YUNunj71.js.map +1 -1
  48. package/dist/InlineEdit.js.map +1 -1
  49. package/dist/Input.js.map +1 -1
  50. package/dist/InputOptions.js.map +1 -1
  51. package/dist/IntegrationIcon.js.map +1 -1
  52. package/dist/LicenseChip.js.map +1 -1
  53. package/dist/ListItem.js.map +1 -1
  54. package/dist/ListItemCell.js.map +1 -1
  55. package/dist/ListView.js +2 -2
  56. package/dist/ListView.js.map +1 -1
  57. package/dist/Loading.js.map +1 -1
  58. package/dist/Logo.vue_vue_type_script_setup_true_lang-BfUU9J9O.js.map +1 -1
  59. package/dist/MenuItem.js.map +1 -1
  60. package/dist/MenusPlugin-Bk6UW6o9.js.map +1 -1
  61. package/dist/Metric.js.map +1 -1
  62. package/dist/Modal.js.map +1 -1
  63. package/dist/Modals.js.map +1 -1
  64. package/dist/ModalsPlugin.js.map +1 -1
  65. package/dist/Module.js.map +1 -1
  66. package/dist/Module.keys-CEsrW2f0.js.map +1 -1
  67. package/dist/ModuleContent.js.map +1 -1
  68. package/dist/ModuleFooter.js.map +1 -1
  69. package/dist/ModuleHeader.js.map +1 -1
  70. package/dist/PageContent.js.map +1 -1
  71. package/dist/PageHeader.js.map +1 -1
  72. package/dist/PageNavigation.js.map +1 -1
  73. package/dist/Paginate.js.map +1 -1
  74. package/dist/PlaidLink.js.map +1 -1
  75. package/dist/QuickAction.js.map +1 -1
  76. package/dist/Radio.js.map +1 -1
  77. package/dist/RadioGroup.js.map +1 -1
  78. package/dist/RadioNew.js.map +1 -1
  79. package/dist/RangeInput.js.map +1 -1
  80. package/dist/SearchBar.js.map +1 -1
  81. package/dist/Select.js +1 -1
  82. package/dist/Select.js.map +1 -1
  83. package/dist/SelectStatus.js.map +1 -1
  84. package/dist/Skeleton.js.map +1 -1
  85. package/dist/Step.js.map +1 -1
  86. package/dist/Stepper.js.map +1 -1
  87. package/dist/Switch.js.map +1 -1
  88. package/dist/Tab.js.map +1 -1
  89. package/dist/Table.js.map +1 -1
  90. package/dist/TableCell.js.map +1 -1
  91. package/dist/TableHeaderCell.js.map +1 -1
  92. package/dist/TableHeaderRow.js.map +1 -1
  93. package/dist/TableRow.js.map +1 -1
  94. package/dist/Tabs.vue_vue_type_script_setup_true_lang-l41hWkV4.js.map +1 -1
  95. package/dist/TextEditor.js +178 -181
  96. package/dist/TextEditor.js.map +1 -1
  97. package/dist/Textarea.js.map +1 -1
  98. package/dist/Thumbnail.js.map +1 -1
  99. package/dist/ThumbnailEmpty.js.map +1 -1
  100. package/dist/ThumbnailGroup.js.map +1 -1
  101. package/dist/ThumbnailGroup.keys-D6WL5xQ5.js.map +1 -1
  102. package/dist/TimelineItem.js.map +1 -1
  103. package/dist/Toast.js.map +1 -1
  104. package/dist/Toasts.js.map +1 -1
  105. package/dist/ToastsPlugin.js.map +1 -1
  106. package/dist/Tooltip.js +2 -2
  107. package/dist/Tooltip.js.map +1 -1
  108. package/dist/components.css +2 -2
  109. package/dist/constants.js.map +1 -1
  110. package/dist/directives/autofocus.js.map +1 -1
  111. package/dist/directives/clickoutside.js.map +1 -1
  112. package/dist/directives/observe.js.map +1 -1
  113. package/dist/directives/sticky.js.map +1 -1
  114. package/dist/directives/tooltip.js.map +1 -1
  115. package/dist/directives/viewable.js.map +1 -1
  116. package/dist/{floating-ui.vue-BmfQDqE-.js → floating-ui.vue-pzUuloyX.js} +267 -260
  117. package/dist/floating-ui.vue-pzUuloyX.js.map +1 -0
  118. package/dist/formatDateTime-C8CYECpd.js.map +1 -1
  119. package/dist/index-ConQ3o31.js +128 -0
  120. package/dist/index-ConQ3o31.js.map +1 -0
  121. package/dist/index-D6bxWkZ1.js.map +1 -1
  122. package/dist/index.js.map +1 -1
  123. package/dist/isDefined-DzVx0B6k.js.map +1 -1
  124. package/dist/locale.js.map +1 -1
  125. package/dist/parseISO-wlfIB_QJ.js.map +1 -1
  126. package/dist/searchFuzzy-DKooyZM8.js.map +1 -1
  127. package/dist/tailwind-base.js.map +1 -1
  128. package/dist/toTimeZone-CVE1ZmsS.js.map +1 -1
  129. package/dist/useConfirmBeforeClosing.js.map +1 -1
  130. package/dist/useDialog.js.map +1 -1
  131. package/dist/useGoogleMaps.js.map +1 -1
  132. package/dist/useMediaQuery.js.map +1 -1
  133. package/dist/useModals.js.map +1 -1
  134. package/dist/usePlaidLink.js.map +1 -1
  135. package/dist/useScriptTag.js.map +1 -1
  136. package/dist/useSearch.js.map +1 -1
  137. package/dist/useSelection.js.map +1 -1
  138. package/dist/useSortable.js +1 -1
  139. package/dist/useSortable.js.map +1 -1
  140. package/dist/useStepper.js.map +1 -1
  141. package/dist/useToasts.js.map +1 -1
  142. package/dist/useValidation.js.map +1 -1
  143. package/dist/utils/calculateElementOverflow.js.map +1 -1
  144. package/dist/utils/colorScheme.js.map +1 -1
  145. package/dist/utils/createQueryString.js.map +1 -1
  146. package/dist/utils/getContrastingTextColor.js.map +1 -1
  147. package/dist/utils/helpers.js.map +1 -1
  148. package/dist/utils/i18n.js.map +1 -1
  149. package/dist/utils/storage.js.map +1 -1
  150. package/package.json +1 -1
  151. package/dist/floating-ui.vue-BmfQDqE-.js.map +0 -1
  152. package/dist/index-Bbc2pg2X.js +0 -128
  153. package/dist/index-Bbc2pg2X.js.map +0 -1
@@ -1,18 +1,18 @@
1
- import { computed as _, ref as et, shallowRef as Nt, watch as dt, getCurrentScope as $t, onScopeDispose as Ht, shallowReadonly as K, unref as _t } from "vue";
2
- const z = Math.min, D = Math.max, st = Math.round, rt = Math.floor, I = (t) => ({
1
+ import { computed as z, ref as et, shallowRef as $t, watch as dt, getCurrentScope as Ht, onScopeDispose as _t, shallowReadonly as K, unref as zt } from "vue";
2
+ const I = Math.min, D = Math.max, st = Math.round, rt = Math.floor, V = (t) => ({
3
3
  x: t,
4
4
  y: t
5
- }), zt = {
5
+ }), It = {
6
6
  left: "right",
7
7
  right: "left",
8
8
  bottom: "top",
9
9
  top: "bottom"
10
- }, It = {
10
+ }, jt = {
11
11
  start: "end",
12
12
  end: "start"
13
13
  };
14
- function jt(t, e, n) {
15
- return D(t, z(e, n));
14
+ function Yt(t, e, n) {
15
+ return D(t, I(e, n));
16
16
  }
17
17
  function ot(t, e) {
18
18
  return typeof t == "function" ? t(e) : t;
@@ -23,32 +23,32 @@ function Y(t) {
23
23
  function tt(t) {
24
24
  return t.split("-")[1];
25
25
  }
26
- function Yt(t) {
26
+ function Xt(t) {
27
27
  return t === "x" ? "y" : "x";
28
28
  }
29
- function vt(t) {
29
+ function wt(t) {
30
30
  return t === "y" ? "height" : "width";
31
31
  }
32
32
  function Q(t) {
33
33
  return ["top", "bottom"].includes(Y(t)) ? "y" : "x";
34
34
  }
35
- function xt(t) {
36
- return Yt(Q(t));
35
+ function vt(t) {
36
+ return Xt(Q(t));
37
37
  }
38
- function Xt(t, e, n) {
38
+ function qt(t, e, n) {
39
39
  n === void 0 && (n = !1);
40
- const o = tt(t), i = xt(t), s = vt(i);
40
+ const o = tt(t), i = vt(t), s = wt(i);
41
41
  let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
42
42
  return e.reference[s] > e.floating[s] && (r = lt(r)), [r, lt(r)];
43
43
  }
44
- function qt(t) {
44
+ function Ut(t) {
45
45
  const e = lt(t);
46
- return [gt(t), e, gt(e)];
46
+ return [ht(t), e, ht(e)];
47
47
  }
48
- function gt(t) {
49
- return t.replace(/start|end/g, (e) => It[e]);
48
+ function ht(t) {
49
+ return t.replace(/start|end/g, (e) => jt[e]);
50
50
  }
51
- function Ut(t, e, n) {
51
+ function Kt(t, e, n) {
52
52
  const o = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
53
53
  switch (t) {
54
54
  case "top":
@@ -61,15 +61,15 @@ function Ut(t, e, n) {
61
61
  return [];
62
62
  }
63
63
  }
64
- function Kt(t, e, n, o) {
64
+ function Gt(t, e, n, o) {
65
65
  const i = tt(t);
66
- let s = Ut(Y(t), n === "start", o);
67
- return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(gt)))), s;
66
+ let s = Kt(Y(t), n === "start", o);
67
+ return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(ht)))), s;
68
68
  }
69
69
  function lt(t) {
70
- return t.replace(/left|right|bottom|top/g, (e) => zt[e]);
70
+ return t.replace(/left|right|bottom|top/g, (e) => It[e]);
71
71
  }
72
- function Gt(t) {
72
+ function Jt(t) {
73
73
  return {
74
74
  top: 0,
75
75
  right: 0,
@@ -79,7 +79,7 @@ function Gt(t) {
79
79
  };
80
80
  }
81
81
  function Lt(t) {
82
- return typeof t != "number" ? Gt(t) : {
82
+ return typeof t != "number" ? Jt(t) : {
83
83
  top: t,
84
84
  right: t,
85
85
  bottom: t,
@@ -109,7 +109,7 @@ function At(t, e, n) {
109
109
  reference: o,
110
110
  floating: i
111
111
  } = t;
112
- const s = Q(e), r = xt(e), l = vt(r), a = Y(e), c = s === "y", f = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, g = o[l] / 2 - i[l] / 2;
112
+ const s = Q(e), r = vt(e), l = wt(r), a = Y(e), c = s === "y", f = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, m = o[l] / 2 - i[l] / 2;
113
113
  let u;
114
114
  switch (a) {
115
115
  case "top":
@@ -144,15 +144,15 @@ function At(t, e, n) {
144
144
  }
145
145
  switch (tt(e)) {
146
146
  case "start":
147
- u[r] -= g * (n && c ? -1 : 1);
147
+ u[r] -= m * (n && c ? -1 : 1);
148
148
  break;
149
149
  case "end":
150
- u[r] += g * (n && c ? -1 : 1);
150
+ u[r] += m * (n && c ? -1 : 1);
151
151
  break;
152
152
  }
153
153
  return u;
154
154
  }
155
- const Jt = async (t, e, n) => {
155
+ const Qt = async (t, e, n) => {
156
156
  const {
157
157
  placement: o = "bottom",
158
158
  strategy: i = "absolute",
@@ -166,12 +166,12 @@ const Jt = async (t, e, n) => {
166
166
  }), {
167
167
  x: f,
168
168
  y: d
169
- } = At(c, o, a), g = o, u = {}, m = 0;
170
- for (let h = 0; h < l.length; h++) {
169
+ } = At(c, o, a), m = o, u = {}, h = 0;
170
+ for (let g = 0; g < l.length; g++) {
171
171
  const {
172
172
  name: w,
173
173
  fn: p
174
- } = l[h], {
174
+ } = l[g], {
175
175
  x: v,
176
176
  y,
177
177
  data: R,
@@ -180,7 +180,7 @@ const Jt = async (t, e, n) => {
180
180
  x: f,
181
181
  y: d,
182
182
  initialPlacement: o,
183
- placement: g,
183
+ placement: m,
184
184
  strategy: i,
185
185
  middlewareData: u,
186
186
  rects: c,
@@ -196,19 +196,19 @@ const Jt = async (t, e, n) => {
196
196
  ...u[w],
197
197
  ...R
198
198
  }
199
- }, b && m <= 50 && (m++, typeof b == "object" && (b.placement && (g = b.placement), b.rects && (c = b.rects === !0 ? await r.getElementRects({
199
+ }, b && h <= 50 && (h++, typeof b == "object" && (b.placement && (m = b.placement), b.rects && (c = b.rects === !0 ? await r.getElementRects({
200
200
  reference: t,
201
201
  floating: e,
202
202
  strategy: i
203
203
  }) : b.rects), {
204
204
  x: f,
205
205
  y: d
206
- } = At(c, g, a)), h = -1);
206
+ } = At(c, m, a)), g = -1);
207
207
  }
208
208
  return {
209
209
  x: f,
210
210
  y: d,
211
- placement: g,
211
+ placement: m,
212
212
  strategy: i,
213
213
  middlewareData: u
214
214
  };
@@ -227,9 +227,9 @@ async function Pt(t, e) {
227
227
  boundary: c = "clippingAncestors",
228
228
  rootBoundary: f = "viewport",
229
229
  elementContext: d = "floating",
230
- altBoundary: g = !1,
230
+ altBoundary: m = !1,
231
231
  padding: u = 0
232
- } = ot(e, t), m = Lt(u), w = l[g ? d === "floating" ? "reference" : "floating" : d], p = ct(await s.getClippingRect({
232
+ } = ot(e, t), h = Lt(u), w = l[m ? d === "floating" ? "reference" : "floating" : d], p = ct(await s.getClippingRect({
233
233
  element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
234
234
  boundary: c,
235
235
  rootBoundary: f,
@@ -252,13 +252,13 @@ async function Pt(t, e) {
252
252
  strategy: a
253
253
  }) : v);
254
254
  return {
255
- top: (p.top - b.top + m.top) / R.y,
256
- bottom: (b.bottom - p.bottom + m.bottom) / R.y,
257
- left: (p.left - b.left + m.left) / R.x,
258
- right: (b.right - p.right + m.right) / R.x
255
+ top: (p.top - b.top + h.top) / R.y,
256
+ bottom: (b.bottom - p.bottom + h.bottom) / R.y,
257
+ left: (p.left - b.left + h.left) / R.x,
258
+ right: (b.right - p.right + h.right) / R.x
259
259
  };
260
260
  }
261
- const Qt = (t) => ({
261
+ const Zt = (t) => ({
262
262
  name: "arrow",
263
263
  options: t,
264
264
  async fn(e) {
@@ -276,26 +276,26 @@ const Qt = (t) => ({
276
276
  } = ot(t, e) || {};
277
277
  if (c == null)
278
278
  return {};
279
- const d = Lt(f), g = {
279
+ const d = Lt(f), m = {
280
280
  x: n,
281
281
  y: o
282
- }, u = xt(i), m = vt(u), h = await r.getDimensions(c), w = u === "y", p = w ? "top" : "left", v = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", R = s.reference[m] + s.reference[u] - g[u] - s.floating[m], b = g[u] - s.reference[u], E = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c));
283
- let x = E ? E[y] : 0;
284
- (!x || !await (r.isElement == null ? void 0 : r.isElement(E))) && (x = l.floating[y] || s.floating[m]);
285
- const O = R / 2 - b / 2, C = x / 2 - h[m] / 2 - 1, L = z(d[p], C), B = z(d[v], C), F = L, N = x - h[m] - B, A = x / 2 - h[m] / 2 + O, U = jt(F, A, N), W = !a.arrow && tt(i) != null && A !== U && s.reference[m] / 2 - (A < F ? L : B) - h[m] / 2 < 0, V = W ? A < F ? A - F : A - N : 0;
282
+ }, u = vt(i), h = wt(u), g = await r.getDimensions(c), w = u === "y", p = w ? "top" : "left", v = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", R = s.reference[h] + s.reference[u] - m[u] - s.floating[h], b = m[u] - s.reference[u], C = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c));
283
+ let x = C ? C[y] : 0;
284
+ (!x || !await (r.isElement == null ? void 0 : r.isElement(C))) && (x = l.floating[y] || s.floating[h]);
285
+ const O = R / 2 - b / 2, E = x / 2 - g[h] / 2 - 1, L = I(d[p], E), N = I(d[v], E), F = L, $ = x - g[h] - N, A = x / 2 - g[h] / 2 + O, U = Yt(F, A, $), B = !a.arrow && tt(i) != null && A !== U && s.reference[h] / 2 - (A < F ? L : N) - g[h] / 2 < 0, M = B ? A < F ? A - F : A - $ : 0;
286
286
  return {
287
- [u]: g[u] + V,
287
+ [u]: m[u] + M,
288
288
  data: {
289
289
  [u]: U,
290
- centerOffset: A - U - V,
291
- ...W && {
292
- alignmentOffset: V
290
+ centerOffset: A - U - M,
291
+ ...B && {
292
+ alignmentOffset: M
293
293
  }
294
294
  },
295
- reset: W
295
+ reset: B
296
296
  };
297
297
  }
298
- }), Zt = function(t) {
298
+ }), te = function(t) {
299
299
  return t === void 0 && (t = {}), {
300
300
  name: "flip",
301
301
  options: t,
@@ -311,28 +311,28 @@ const Qt = (t) => ({
311
311
  } = e, {
312
312
  mainAxis: f = !0,
313
313
  crossAxis: d = !0,
314
- fallbackPlacements: g,
314
+ fallbackPlacements: m,
315
315
  fallbackStrategy: u = "bestFit",
316
- fallbackAxisSideDirection: m = "none",
317
- flipAlignment: h = !0,
316
+ fallbackAxisSideDirection: h = "none",
317
+ flipAlignment: g = !0,
318
318
  ...w
319
319
  } = ot(t, e);
320
320
  if ((n = s.arrow) != null && n.alignmentOffset)
321
321
  return {};
322
- const p = Y(i), v = Q(l), y = Y(l) === l, R = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), b = g || (y || !h ? [lt(l)] : qt(l)), E = m !== "none";
323
- !g && E && b.push(...Kt(l, h, m, R));
324
- const x = [l, ...b], O = await Pt(e, w), C = [];
322
+ const p = Y(i), v = Q(l), y = Y(l) === l, R = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), b = m || (y || !g ? [lt(l)] : Ut(l)), C = h !== "none";
323
+ !m && C && b.push(...Gt(l, g, h, R));
324
+ const x = [l, ...b], O = await Pt(e, w), E = [];
325
325
  let L = ((o = s.flip) == null ? void 0 : o.overflows) || [];
326
- if (f && C.push(O[p]), d) {
327
- const A = Xt(i, r, R);
328
- C.push(O[A[0]], O[A[1]]);
326
+ if (f && E.push(O[p]), d) {
327
+ const A = qt(i, r, R);
328
+ E.push(O[A[0]], O[A[1]]);
329
329
  }
330
330
  if (L = [...L, {
331
331
  placement: i,
332
- overflows: C
333
- }], !C.every((A) => A <= 0)) {
334
- var B, F;
335
- const A = (((B = s.flip) == null ? void 0 : B.index) || 0) + 1, U = x[A];
332
+ overflows: E
333
+ }], !E.every((A) => A <= 0)) {
334
+ var N, F;
335
+ const A = (((N = s.flip) == null ? void 0 : N.index) || 0) + 1, U = x[A];
336
336
  if (U)
337
337
  return {
338
338
  data: {
@@ -343,31 +343,31 @@ const Qt = (t) => ({
343
343
  placement: U
344
344
  }
345
345
  };
346
- let W = (F = L.filter((V) => V.overflows[0] <= 0).sort((V, $) => V.overflows[1] - $.overflows[1])[0]) == null ? void 0 : F.placement;
347
- if (!W)
346
+ let B = (F = L.filter((M) => M.overflows[0] <= 0).sort((M, H) => M.overflows[1] - H.overflows[1])[0]) == null ? void 0 : F.placement;
347
+ if (!B)
348
348
  switch (u) {
349
349
  case "bestFit": {
350
- var N;
351
- const V = (N = L.filter(($) => {
352
- if (E) {
353
- const H = Q($.placement);
354
- return H === v || // Create a bias to the `y` side axis due to horizontal
350
+ var $;
351
+ const M = ($ = L.filter((H) => {
352
+ if (C) {
353
+ const _ = Q(H.placement);
354
+ return _ === v || // Create a bias to the `y` side axis due to horizontal
355
355
  // reading directions favoring greater width.
356
- H === "y";
356
+ _ === "y";
357
357
  }
358
358
  return !0;
359
- }).map(($) => [$.placement, $.overflows.filter((H) => H > 0).reduce((H, Bt) => H + Bt, 0)]).sort(($, H) => $[1] - H[1])[0]) == null ? void 0 : N[0];
360
- V && (W = V);
359
+ }).map((H) => [H.placement, H.overflows.filter((_) => _ > 0).reduce((_, Nt) => _ + Nt, 0)]).sort((H, _) => H[1] - _[1])[0]) == null ? void 0 : $[0];
360
+ M && (B = M);
361
361
  break;
362
362
  }
363
363
  case "initialPlacement":
364
- W = l;
364
+ B = l;
365
365
  break;
366
366
  }
367
- if (i !== W)
367
+ if (i !== B)
368
368
  return {
369
369
  reset: {
370
- placement: W
370
+ placement: B
371
371
  }
372
372
  };
373
373
  }
@@ -375,16 +375,16 @@ const Qt = (t) => ({
375
375
  }
376
376
  };
377
377
  };
378
- async function te(t, e) {
378
+ async function ee(t, e) {
379
379
  const {
380
380
  placement: n,
381
381
  platform: o,
382
382
  elements: i
383
383
  } = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = Y(n), l = tt(n), a = Q(n) === "y", c = ["left", "top"].includes(r) ? -1 : 1, f = s && a ? -1 : 1, d = ot(e, t);
384
384
  let {
385
- mainAxis: g,
385
+ mainAxis: m,
386
386
  crossAxis: u,
387
- alignmentAxis: m
387
+ alignmentAxis: h
388
388
  } = typeof d == "number" ? {
389
389
  mainAxis: d,
390
390
  crossAxis: 0,
@@ -394,15 +394,15 @@ async function te(t, e) {
394
394
  crossAxis: d.crossAxis || 0,
395
395
  alignmentAxis: d.alignmentAxis
396
396
  };
397
- return l && typeof m == "number" && (u = l === "end" ? m * -1 : m), a ? {
397
+ return l && typeof h == "number" && (u = l === "end" ? h * -1 : h), a ? {
398
398
  x: u * f,
399
- y: g * c
399
+ y: m * c
400
400
  } : {
401
- x: g * c,
401
+ x: m * c,
402
402
  y: u * f
403
403
  };
404
404
  }
405
- const ee = function(t) {
405
+ const ne = function(t) {
406
406
  return t === void 0 && (t = 0), {
407
407
  name: "offset",
408
408
  options: t,
@@ -413,7 +413,7 @@ const ee = function(t) {
413
413
  y: s,
414
414
  placement: r,
415
415
  middlewareData: l
416
- } = e, a = await te(e, t);
416
+ } = e, a = await ee(e, t);
417
417
  return r === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
418
418
  x: i + a.x,
419
419
  y: s + a.y,
@@ -424,7 +424,7 @@ const ee = function(t) {
424
424
  };
425
425
  }
426
426
  };
427
- }, ne = function(t) {
427
+ }, oe = function(t) {
428
428
  return t === void 0 && (t = {}), {
429
429
  name: "size",
430
430
  options: t,
@@ -439,25 +439,25 @@ const ee = function(t) {
439
439
  apply: a = () => {
440
440
  },
441
441
  ...c
442
- } = ot(t, e), f = await Pt(e, c), d = Y(i), g = tt(i), u = Q(i) === "y", {
443
- width: m,
444
- height: h
442
+ } = ot(t, e), f = await Pt(e, c), d = Y(i), m = tt(i), u = Q(i) === "y", {
443
+ width: h,
444
+ height: g
445
445
  } = s.floating;
446
446
  let w, p;
447
- d === "top" || d === "bottom" ? (w = d, p = g === (await (r.isRTL == null ? void 0 : r.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (p = d, w = g === "end" ? "top" : "bottom");
448
- const v = h - f.top - f.bottom, y = m - f.left - f.right, R = z(h - f[w], v), b = z(m - f[p], y), E = !e.middlewareData.shift;
447
+ d === "top" || d === "bottom" ? (w = d, p = m === (await (r.isRTL == null ? void 0 : r.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (p = d, w = m === "end" ? "top" : "bottom");
448
+ const v = g - f.top - f.bottom, y = h - f.left - f.right, R = I(g - f[w], v), b = I(h - f[p], y), C = !e.middlewareData.shift;
449
449
  let x = R, O = b;
450
- if ((n = e.middlewareData.shift) != null && n.enabled.x && (O = y), (o = e.middlewareData.shift) != null && o.enabled.y && (x = v), E && !g) {
451
- const L = D(f.left, 0), B = D(f.right, 0), F = D(f.top, 0), N = D(f.bottom, 0);
452
- u ? O = m - 2 * (L !== 0 || B !== 0 ? L + B : D(f.left, f.right)) : x = h - 2 * (F !== 0 || N !== 0 ? F + N : D(f.top, f.bottom));
450
+ if ((n = e.middlewareData.shift) != null && n.enabled.x && (O = y), (o = e.middlewareData.shift) != null && o.enabled.y && (x = v), C && !m) {
451
+ const L = D(f.left, 0), N = D(f.right, 0), F = D(f.top, 0), $ = D(f.bottom, 0);
452
+ u ? O = h - 2 * (L !== 0 || N !== 0 ? L + N : D(f.left, f.right)) : x = g - 2 * (F !== 0 || $ !== 0 ? F + $ : D(f.top, f.bottom));
453
453
  }
454
454
  await a({
455
455
  ...e,
456
456
  availableWidth: O,
457
457
  availableHeight: x
458
458
  });
459
- const C = await r.getDimensions(l.floating);
460
- return m !== C.width || h !== C.height ? {
459
+ const E = await r.getDimensions(l.floating);
460
+ return h !== E.width || g !== E.height ? {
461
461
  reset: {
462
462
  rects: !0
463
463
  }
@@ -469,26 +469,26 @@ function at() {
469
469
  return typeof window < "u";
470
470
  }
471
471
  function q(t) {
472
- return yt(t) ? (t.nodeName || "").toLowerCase() : "#document";
472
+ return xt(t) ? (t.nodeName || "").toLowerCase() : "#document";
473
473
  }
474
474
  function T(t) {
475
475
  var e;
476
476
  return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
477
477
  }
478
- function k(t) {
478
+ function W(t) {
479
479
  var e;
480
- return (e = (yt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
480
+ return (e = (xt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
481
481
  }
482
- function yt(t) {
482
+ function xt(t) {
483
483
  return at() ? t instanceof Node || t instanceof T(t).Node : !1;
484
484
  }
485
485
  function P(t) {
486
486
  return at() ? t instanceof Element || t instanceof T(t).Element : !1;
487
487
  }
488
- function M(t) {
488
+ function k(t) {
489
489
  return at() ? t instanceof HTMLElement || t instanceof T(t).HTMLElement : !1;
490
490
  }
491
- function Et(t) {
491
+ function Ct(t) {
492
492
  return !at() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof T(t).ShadowRoot;
493
493
  }
494
494
  function it(t) {
@@ -500,7 +500,7 @@ function it(t) {
500
500
  } = S(t);
501
501
  return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !["inline", "contents"].includes(i);
502
502
  }
503
- function oe(t) {
503
+ function ie(t) {
504
504
  return ["table", "td", "th"].includes(q(t));
505
505
  }
506
506
  function ft(t) {
@@ -512,14 +512,14 @@ function ft(t) {
512
512
  }
513
513
  });
514
514
  }
515
- function bt(t) {
516
- const e = Rt(), n = P(t) ? S(t) : t;
515
+ function yt(t) {
516
+ const e = bt(), n = P(t) ? S(t) : t;
517
517
  return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
518
518
  }
519
- function ie(t) {
519
+ function re(t) {
520
520
  let e = j(t);
521
- for (; M(e) && !Z(e); ) {
522
- if (bt(e))
521
+ for (; k(e) && !Z(e); ) {
522
+ if (yt(e))
523
523
  return e;
524
524
  if (ft(e))
525
525
  return null;
@@ -527,7 +527,7 @@ function ie(t) {
527
527
  }
528
528
  return null;
529
529
  }
530
- function Rt() {
530
+ function bt() {
531
531
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
532
532
  }
533
533
  function Z(t) {
@@ -552,45 +552,45 @@ function j(t) {
552
552
  // Step into the shadow DOM of the parent of a slotted node.
553
553
  t.assignedSlot || // DOM Element detected.
554
554
  t.parentNode || // ShadowRoot detected.
555
- Et(t) && t.host || // Fallback.
556
- k(t)
555
+ Ct(t) && t.host || // Fallback.
556
+ W(t)
557
557
  );
558
- return Et(e) ? e.host : e;
558
+ return Ct(e) ? e.host : e;
559
559
  }
560
560
  function St(t) {
561
561
  const e = j(t);
562
- return Z(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : M(e) && it(e) ? e : St(e);
562
+ return Z(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : k(e) && it(e) ? e : St(e);
563
563
  }
564
564
  function nt(t, e, n) {
565
565
  var o;
566
566
  e === void 0 && (e = []), n === void 0 && (n = !0);
567
567
  const i = St(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = T(i);
568
568
  if (s) {
569
- const l = ht(r);
569
+ const l = gt(r);
570
570
  return e.concat(r, r.visualViewport || [], it(i) ? i : [], l && n ? nt(l) : []);
571
571
  }
572
572
  return e.concat(i, nt(i, [], n));
573
573
  }
574
- function ht(t) {
574
+ function gt(t) {
575
575
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
576
576
  }
577
577
  function Ft(t) {
578
578
  const e = S(t);
579
579
  let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
580
- const i = M(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, l = st(n) !== s || st(o) !== r;
580
+ const i = k(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, l = st(n) !== s || st(o) !== r;
581
581
  return l && (n = s, o = r), {
582
582
  width: n,
583
583
  height: o,
584
584
  $: l
585
585
  };
586
586
  }
587
- function Ot(t) {
587
+ function Rt(t) {
588
588
  return P(t) ? t : t.contextElement;
589
589
  }
590
590
  function J(t) {
591
- const e = Ot(t);
592
- if (!M(e))
593
- return I(1);
591
+ const e = Rt(t);
592
+ if (!k(e))
593
+ return V(1);
594
594
  const n = e.getBoundingClientRect(), {
595
595
  width: o,
596
596
  height: i,
@@ -602,30 +602,30 @@ function J(t) {
602
602
  y: l
603
603
  };
604
604
  }
605
- const re = /* @__PURE__ */ I(0);
606
- function Vt(t) {
605
+ const se = /* @__PURE__ */ V(0);
606
+ function Mt(t) {
607
607
  const e = T(t);
608
- return !Rt() || !e.visualViewport ? re : {
608
+ return !bt() || !e.visualViewport ? se : {
609
609
  x: e.visualViewport.offsetLeft,
610
610
  y: e.visualViewport.offsetTop
611
611
  };
612
612
  }
613
- function se(t, e, n) {
613
+ function le(t, e, n) {
614
614
  return e === void 0 && (e = !1), !n || e && n !== T(t) ? !1 : e;
615
615
  }
616
616
  function X(t, e, n, o) {
617
617
  e === void 0 && (e = !1), n === void 0 && (n = !1);
618
- const i = t.getBoundingClientRect(), s = Ot(t);
619
- let r = I(1);
618
+ const i = t.getBoundingClientRect(), s = Rt(t);
619
+ let r = V(1);
620
620
  e && (o ? P(o) && (r = J(o)) : r = J(t));
621
- const l = se(s, n, o) ? Vt(s) : I(0);
621
+ const l = le(s, n, o) ? Mt(s) : V(0);
622
622
  let a = (i.left + l.x) / r.x, c = (i.top + l.y) / r.y, f = i.width / r.x, d = i.height / r.y;
623
623
  if (s) {
624
- const g = T(s), u = o && P(o) ? T(o) : o;
625
- let m = g, h = ht(m);
626
- for (; h && o && u !== m; ) {
627
- const w = J(h), p = h.getBoundingClientRect(), v = S(h), y = p.left + (h.clientLeft + parseFloat(v.paddingLeft)) * w.x, R = p.top + (h.clientTop + parseFloat(v.paddingTop)) * w.y;
628
- a *= w.x, c *= w.y, f *= w.x, d *= w.y, a += y, c += R, m = T(h), h = ht(m);
624
+ const m = T(s), u = o && P(o) ? T(o) : o;
625
+ let h = m, g = gt(h);
626
+ for (; g && o && u !== h; ) {
627
+ const w = J(g), p = g.getBoundingClientRect(), v = S(g), y = p.left + (g.clientLeft + parseFloat(v.paddingLeft)) * w.x, R = p.top + (g.clientTop + parseFloat(v.paddingTop)) * w.y;
628
+ a *= w.x, c *= w.y, f *= w.x, d *= w.y, a += y, c += R, h = T(g), g = gt(h);
629
629
  }
630
630
  }
631
631
  return ct({
@@ -635,42 +635,54 @@ function X(t, e, n, o) {
635
635
  y: c
636
636
  });
637
637
  }
638
- function le(t) {
638
+ function Ot(t, e) {
639
+ const n = ut(t).scrollLeft;
640
+ return e ? e.left + n : X(W(t)).left + n;
641
+ }
642
+ function Vt(t, e, n) {
643
+ n === void 0 && (n = !1);
644
+ const o = t.getBoundingClientRect(), i = o.left + e.scrollLeft - (n ? 0 : (
645
+ // RTL <body> scrollbar.
646
+ Ot(t, o)
647
+ )), s = o.top + e.scrollTop;
648
+ return {
649
+ x: i,
650
+ y: s
651
+ };
652
+ }
653
+ function ce(t) {
639
654
  let {
640
655
  elements: e,
641
656
  rect: n,
642
657
  offsetParent: o,
643
658
  strategy: i
644
659
  } = t;
645
- const s = i === "fixed", r = k(o), l = e ? ft(e.floating) : !1;
660
+ const s = i === "fixed", r = W(o), l = e ? ft(e.floating) : !1;
646
661
  if (o === r || l && s)
647
662
  return n;
648
663
  let a = {
649
664
  scrollLeft: 0,
650
665
  scrollTop: 0
651
- }, c = I(1);
652
- const f = I(0), d = M(o);
653
- if ((d || !d && !s) && ((q(o) !== "body" || it(r)) && (a = ut(o)), M(o))) {
654
- const g = X(o);
655
- c = J(o), f.x = g.x + o.clientLeft, f.y = g.y + o.clientTop;
666
+ }, c = V(1);
667
+ const f = V(0), d = k(o);
668
+ if ((d || !d && !s) && ((q(o) !== "body" || it(r)) && (a = ut(o)), k(o))) {
669
+ const u = X(o);
670
+ c = J(o), f.x = u.x + o.clientLeft, f.y = u.y + o.clientTop;
656
671
  }
672
+ const m = r && !d && !s ? Vt(r, a, !0) : V(0);
657
673
  return {
658
674
  width: n.width * c.x,
659
675
  height: n.height * c.y,
660
- x: n.x * c.x - a.scrollLeft * c.x + f.x,
661
- y: n.y * c.y - a.scrollTop * c.y + f.y
676
+ x: n.x * c.x - a.scrollLeft * c.x + f.x + m.x,
677
+ y: n.y * c.y - a.scrollTop * c.y + f.y + m.y
662
678
  };
663
679
  }
664
- function ce(t) {
680
+ function ae(t) {
665
681
  return Array.from(t.getClientRects());
666
682
  }
667
- function pt(t, e) {
668
- const n = ut(t).scrollLeft;
669
- return e ? e.left + n : X(k(t)).left + n;
670
- }
671
- function ae(t) {
672
- const e = k(t), n = ut(t), o = t.ownerDocument.body, i = D(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = D(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
673
- let r = -n.scrollLeft + pt(t);
683
+ function fe(t) {
684
+ const e = W(t), n = ut(t), o = t.ownerDocument.body, i = D(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = D(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
685
+ let r = -n.scrollLeft + Ot(t);
674
686
  const l = -n.scrollTop;
675
687
  return S(o).direction === "rtl" && (r += D(e.clientWidth, o.clientWidth) - i), {
676
688
  width: i,
@@ -679,12 +691,12 @@ function ae(t) {
679
691
  y: l
680
692
  };
681
693
  }
682
- function fe(t, e) {
683
- const n = T(t), o = k(t), i = n.visualViewport;
694
+ function ue(t, e) {
695
+ const n = T(t), o = W(t), i = n.visualViewport;
684
696
  let s = o.clientWidth, r = o.clientHeight, l = 0, a = 0;
685
697
  if (i) {
686
698
  s = i.width, r = i.height;
687
- const c = Rt();
699
+ const c = bt();
688
700
  (!c || c && e === "fixed") && (l = i.offsetLeft, a = i.offsetTop);
689
701
  }
690
702
  return {
@@ -694,8 +706,8 @@ function fe(t, e) {
694
706
  y: a
695
707
  };
696
708
  }
697
- function ue(t, e) {
698
- const n = X(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = M(t) ? J(t) : I(1), r = t.clientWidth * s.x, l = t.clientHeight * s.y, a = i * s.x, c = o * s.y;
709
+ function de(t, e) {
710
+ const n = X(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = k(t) ? J(t) : V(1), r = t.clientWidth * s.x, l = t.clientHeight * s.y, a = i * s.x, c = o * s.y;
699
711
  return {
700
712
  width: r,
701
713
  height: l,
@@ -703,29 +715,30 @@ function ue(t, e) {
703
715
  y: c
704
716
  };
705
717
  }
706
- function Ct(t, e, n) {
718
+ function Et(t, e, n) {
707
719
  let o;
708
720
  if (e === "viewport")
709
- o = fe(t, n);
721
+ o = ue(t, n);
710
722
  else if (e === "document")
711
- o = ae(k(t));
723
+ o = fe(W(t));
712
724
  else if (P(e))
713
- o = ue(e, n);
725
+ o = de(e, n);
714
726
  else {
715
- const i = Vt(t);
727
+ const i = Mt(t);
716
728
  o = {
717
- ...e,
718
729
  x: e.x - i.x,
719
- y: e.y - i.y
730
+ y: e.y - i.y,
731
+ width: e.width,
732
+ height: e.height
720
733
  };
721
734
  }
722
735
  return ct(o);
723
736
  }
724
- function Mt(t, e) {
737
+ function kt(t, e) {
725
738
  const n = j(t);
726
- return n === e || !P(n) || Z(n) ? !1 : S(n).position === "fixed" || Mt(n, e);
739
+ return n === e || !P(n) || Z(n) ? !1 : S(n).position === "fixed" || kt(n, e);
727
740
  }
728
- function de(t, e) {
741
+ function me(t, e) {
729
742
  const n = e.get(t);
730
743
  if (n)
731
744
  return n;
@@ -733,22 +746,22 @@ function de(t, e) {
733
746
  const s = S(t).position === "fixed";
734
747
  let r = s ? j(t) : t;
735
748
  for (; P(r) && !Z(r); ) {
736
- const l = S(r), a = bt(r);
737
- !a && l.position === "fixed" && (i = null), (s ? !a && !i : !a && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || it(r) && !a && Mt(t, r)) ? o = o.filter((f) => f !== r) : i = l, r = j(r);
749
+ const l = S(r), a = yt(r);
750
+ !a && l.position === "fixed" && (i = null), (s ? !a && !i : !a && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || it(r) && !a && kt(t, r)) ? o = o.filter((f) => f !== r) : i = l, r = j(r);
738
751
  }
739
752
  return e.set(t, o), o;
740
753
  }
741
- function me(t) {
754
+ function he(t) {
742
755
  let {
743
756
  element: e,
744
757
  boundary: n,
745
758
  rootBoundary: o,
746
759
  strategy: i
747
760
  } = t;
748
- const r = [...n === "clippingAncestors" ? ft(e) ? [] : de(e, this._c) : [].concat(n), o], l = r[0], a = r.reduce((c, f) => {
749
- const d = Ct(e, f, i);
750
- return c.top = D(d.top, c.top), c.right = z(d.right, c.right), c.bottom = z(d.bottom, c.bottom), c.left = D(d.left, c.left), c;
751
- }, Ct(e, l, i));
761
+ const r = [...n === "clippingAncestors" ? ft(e) ? [] : me(e, this._c) : [].concat(n), o], l = r[0], a = r.reduce((c, f) => {
762
+ const d = Et(e, f, i);
763
+ return c.top = D(d.top, c.top), c.right = I(d.right, c.right), c.bottom = I(d.bottom, c.bottom), c.left = D(d.left, c.left), c;
764
+ }, Et(e, l, i));
752
765
  return {
753
766
  width: a.right - a.left,
754
767
  height: a.bottom - a.top,
@@ -766,28 +779,22 @@ function ge(t) {
766
779
  height: n
767
780
  };
768
781
  }
769
- function he(t, e, n) {
770
- const o = M(e), i = k(e), s = n === "fixed", r = X(t, !0, s, e);
782
+ function pe(t, e, n) {
783
+ const o = k(e), i = W(e), s = n === "fixed", r = X(t, !0, s, e);
771
784
  let l = {
772
785
  scrollLeft: 0,
773
786
  scrollTop: 0
774
787
  };
775
- const a = I(0);
788
+ const a = V(0);
776
789
  if (o || !o && !s)
777
790
  if ((q(e) !== "body" || it(i)) && (l = ut(e)), o) {
778
- const u = X(e, !0, s, e);
779
- a.x = u.x + e.clientLeft, a.y = u.y + e.clientTop;
780
- } else i && (a.x = pt(i));
781
- let c = 0, f = 0;
782
- if (i && !o && !s) {
783
- const u = i.getBoundingClientRect();
784
- f = u.top + l.scrollTop, c = u.left + l.scrollLeft - // RTL <body> scrollbar.
785
- pt(i, u);
786
- }
787
- const d = r.left + l.scrollLeft - a.x - c, g = r.top + l.scrollTop - a.y - f;
791
+ const m = X(e, !0, s, e);
792
+ a.x = m.x + e.clientLeft, a.y = m.y + e.clientTop;
793
+ } else i && (a.x = Ot(i));
794
+ const c = i && !o && !s ? Vt(i, l) : V(0), f = r.left + l.scrollLeft - a.x - c.x, d = r.top + l.scrollTop - a.y - c.y;
788
795
  return {
789
- x: d,
790
- y: g,
796
+ x: f,
797
+ y: d,
791
798
  width: r.width,
792
799
  height: r.height
793
800
  };
@@ -796,18 +803,18 @@ function mt(t) {
796
803
  return S(t).position === "static";
797
804
  }
798
805
  function Dt(t, e) {
799
- if (!M(t) || S(t).position === "fixed")
806
+ if (!k(t) || S(t).position === "fixed")
800
807
  return null;
801
808
  if (e)
802
809
  return e(t);
803
810
  let n = t.offsetParent;
804
- return k(t) === n && (n = n.ownerDocument.body), n;
811
+ return W(t) === n && (n = n.ownerDocument.body), n;
805
812
  }
806
- function kt(t, e) {
813
+ function Wt(t, e) {
807
814
  const n = T(t);
808
815
  if (ft(t))
809
816
  return n;
810
- if (!M(t)) {
817
+ if (!k(t)) {
811
818
  let i = j(t);
812
819
  for (; i && !Z(i); ) {
813
820
  if (P(i) && !mt(i))
@@ -817,14 +824,14 @@ function kt(t, e) {
817
824
  return n;
818
825
  }
819
826
  let o = Dt(t, e);
820
- for (; o && oe(o) && mt(o); )
827
+ for (; o && ie(o) && mt(o); )
821
828
  o = Dt(o, e);
822
- return o && Z(o) && mt(o) && !bt(o) ? n : o || ie(t) || n;
829
+ return o && Z(o) && mt(o) && !yt(o) ? n : o || re(t) || n;
823
830
  }
824
- const pe = async function(t) {
825
- const e = this.getOffsetParent || kt, n = this.getDimensions, o = await n(t.floating);
831
+ const we = async function(t) {
832
+ const e = this.getOffsetParent || Wt, n = this.getDimensions, o = await n(t.floating);
826
833
  return {
827
- reference: he(t.reference, await e(t.floating), t.strategy),
834
+ reference: pe(t.reference, await e(t.floating), t.strategy),
828
835
  floating: {
829
836
  x: 0,
830
837
  y: 0,
@@ -833,24 +840,24 @@ const pe = async function(t) {
833
840
  }
834
841
  };
835
842
  };
836
- function we(t) {
843
+ function ve(t) {
837
844
  return S(t).direction === "rtl";
838
845
  }
839
- const ve = {
840
- convertOffsetParentRelativeRectToViewportRelativeRect: le,
841
- getDocumentElement: k,
842
- getClippingRect: me,
843
- getOffsetParent: kt,
844
- getElementRects: pe,
845
- getClientRects: ce,
846
+ const xe = {
847
+ convertOffsetParentRelativeRectToViewportRelativeRect: ce,
848
+ getDocumentElement: W,
849
+ getClippingRect: he,
850
+ getOffsetParent: Wt,
851
+ getElementRects: we,
852
+ getClientRects: ae,
846
853
  getDimensions: ge,
847
854
  getScale: J,
848
855
  isElement: P,
849
- isRTL: we
856
+ isRTL: ve
850
857
  };
851
- function xe(t, e) {
858
+ function ye(t, e) {
852
859
  let n = null, o;
853
- const i = k(t);
860
+ const i = W(t);
854
861
  function s() {
855
862
  var l;
856
863
  clearTimeout(o), (l = n) == null || l.disconnect(), n = null;
@@ -861,21 +868,21 @@ function xe(t, e) {
861
868
  left: c,
862
869
  top: f,
863
870
  width: d,
864
- height: g
871
+ height: m
865
872
  } = t.getBoundingClientRect();
866
- if (l || e(), !d || !g)
873
+ if (l || e(), !d || !m)
867
874
  return;
868
- const u = rt(f), m = rt(i.clientWidth - (c + d)), h = rt(i.clientHeight - (f + g)), w = rt(c), v = {
869
- rootMargin: -u + "px " + -m + "px " + -h + "px " + -w + "px",
870
- threshold: D(0, z(1, a)) || 1
875
+ const u = rt(f), h = rt(i.clientWidth - (c + d)), g = rt(i.clientHeight - (f + m)), w = rt(c), v = {
876
+ rootMargin: -u + "px " + -h + "px " + -g + "px " + -w + "px",
877
+ threshold: D(0, I(1, a)) || 1
871
878
  };
872
879
  let y = !0;
873
880
  function R(b) {
874
- const E = b[0].intersectionRatio;
875
- if (E !== a) {
881
+ const C = b[0].intersectionRatio;
882
+ if (C !== a) {
876
883
  if (!y)
877
884
  return r();
878
- E ? r(!1, E) : o = setTimeout(() => {
885
+ C ? r(!1, C) : o = setTimeout(() => {
879
886
  r(!1, 1e-7);
880
887
  }, 1e3);
881
888
  }
@@ -894,7 +901,7 @@ function xe(t, e) {
894
901
  }
895
902
  return r(!0), s;
896
903
  }
897
- function Ae(t, e, n, o) {
904
+ function Ce(t, e, n, o) {
898
905
  o === void 0 && (o = {});
899
906
  const {
900
907
  ancestorScroll: i = !0,
@@ -902,95 +909,95 @@ function Ae(t, e, n, o) {
902
909
  elementResize: r = typeof ResizeObserver == "function",
903
910
  layoutShift: l = typeof IntersectionObserver == "function",
904
911
  animationFrame: a = !1
905
- } = o, c = Ot(t), f = i || s ? [...c ? nt(c) : [], ...nt(e)] : [];
912
+ } = o, c = Rt(t), f = i || s ? [...c ? nt(c) : [], ...nt(e)] : [];
906
913
  f.forEach((p) => {
907
914
  i && p.addEventListener("scroll", n, {
908
915
  passive: !0
909
916
  }), s && p.addEventListener("resize", n);
910
917
  });
911
- const d = c && l ? xe(c, n) : null;
912
- let g = -1, u = null;
918
+ const d = c && l ? ye(c, n) : null;
919
+ let m = -1, u = null;
913
920
  r && (u = new ResizeObserver((p) => {
914
921
  let [v] = p;
915
- v && v.target === c && u && (u.unobserve(e), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
922
+ v && v.target === c && u && (u.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
916
923
  var y;
917
924
  (y = u) == null || y.observe(e);
918
925
  })), n();
919
926
  }), c && !a && u.observe(c), u.observe(e));
920
- let m, h = a ? X(t) : null;
927
+ let h, g = a ? X(t) : null;
921
928
  a && w();
922
929
  function w() {
923
930
  const p = X(t);
924
- h && (p.x !== h.x || p.y !== h.y || p.width !== h.width || p.height !== h.height) && n(), h = p, m = requestAnimationFrame(w);
931
+ g && (p.x !== g.x || p.y !== g.y || p.width !== g.width || p.height !== g.height) && n(), g = p, h = requestAnimationFrame(w);
925
932
  }
926
933
  return n(), () => {
927
934
  var p;
928
935
  f.forEach((v) => {
929
936
  i && v.removeEventListener("scroll", n), s && v.removeEventListener("resize", n);
930
- }), d == null || d(), (p = u) == null || p.disconnect(), u = null, a && cancelAnimationFrame(m);
937
+ }), d == null || d(), (p = u) == null || p.disconnect(), u = null, a && cancelAnimationFrame(h);
931
938
  };
932
939
  }
933
- const Ee = ee, Ce = Zt, De = ne, ye = Qt, be = (t, e, n) => {
940
+ const Ee = ne, De = te, Te = oe, be = Zt, Re = (t, e, n) => {
934
941
  const o = /* @__PURE__ */ new Map(), i = {
935
- platform: ve,
942
+ platform: xe,
936
943
  ...n
937
944
  }, s = {
938
945
  ...i.platform,
939
946
  _c: o
940
947
  };
941
- return Jt(t, e, {
948
+ return Qt(t, e, {
942
949
  ...i,
943
950
  platform: s
944
951
  });
945
952
  };
946
- function Re(t) {
953
+ function Oe(t) {
947
954
  return t != null && typeof t == "object" && "$el" in t;
948
955
  }
949
- function wt(t) {
950
- if (Re(t)) {
956
+ function pt(t) {
957
+ if (Oe(t)) {
951
958
  const e = t.$el;
952
- return yt(e) && q(e) === "#comment" ? null : e;
959
+ return xt(e) && q(e) === "#comment" ? null : e;
953
960
  }
954
961
  return t;
955
962
  }
956
963
  function G(t) {
957
- return typeof t == "function" ? t() : _t(t);
964
+ return typeof t == "function" ? t() : zt(t);
958
965
  }
959
- function Te(t) {
966
+ function Le(t) {
960
967
  return {
961
968
  name: "arrow",
962
969
  options: t,
963
970
  fn(e) {
964
- const n = wt(G(t.element));
965
- return n == null ? {} : ye({
971
+ const n = pt(G(t.element));
972
+ return n == null ? {} : be({
966
973
  element: n,
967
974
  padding: t.padding
968
975
  }).fn(e);
969
976
  }
970
977
  };
971
978
  }
972
- function Wt(t) {
979
+ function Bt(t) {
973
980
  return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
974
981
  }
975
982
  function Tt(t, e) {
976
- const n = Wt(t);
983
+ const n = Bt(t);
977
984
  return Math.round(e * n) / n;
978
985
  }
979
- function Le(t, e, n) {
986
+ function Pe(t, e, n) {
980
987
  n === void 0 && (n = {});
981
- const o = n.whileElementsMounted, i = _(() => {
988
+ const o = n.whileElementsMounted, i = z(() => {
982
989
  var x;
983
990
  return (x = G(n.open)) != null ? x : !0;
984
- }), s = _(() => G(n.middleware)), r = _(() => {
991
+ }), s = z(() => G(n.middleware)), r = z(() => {
985
992
  var x;
986
993
  return (x = G(n.placement)) != null ? x : "bottom";
987
- }), l = _(() => {
994
+ }), l = z(() => {
988
995
  var x;
989
996
  return (x = G(n.strategy)) != null ? x : "absolute";
990
- }), a = _(() => {
997
+ }), a = z(() => {
991
998
  var x;
992
999
  return (x = G(n.transform)) != null ? x : !0;
993
- }), c = _(() => wt(t.value)), f = _(() => wt(e.value)), d = et(0), g = et(0), u = et(l.value), m = et(r.value), h = Nt({}), w = et(!1), p = _(() => {
1000
+ }), c = z(() => pt(t.value)), f = z(() => pt(e.value)), d = et(0), m = et(0), u = et(l.value), h = et(r.value), g = $t({}), w = et(!1), p = z(() => {
994
1001
  const x = {
995
1002
  position: u.value,
996
1003
  left: "0",
@@ -998,17 +1005,17 @@ function Le(t, e, n) {
998
1005
  };
999
1006
  if (!f.value)
1000
1007
  return x;
1001
- const O = Tt(f.value, d.value), C = Tt(f.value, g.value);
1008
+ const O = Tt(f.value, d.value), E = Tt(f.value, m.value);
1002
1009
  return a.value ? {
1003
1010
  ...x,
1004
- transform: "translate(" + O + "px, " + C + "px)",
1005
- ...Wt(f.value) >= 1.5 && {
1011
+ transform: "translate(" + O + "px, " + E + "px)",
1012
+ ...Bt(f.value) >= 1.5 && {
1006
1013
  willChange: "transform"
1007
1014
  }
1008
1015
  } : {
1009
1016
  position: u.value,
1010
1017
  left: O + "px",
1011
- top: C + "px"
1018
+ top: E + "px"
1012
1019
  };
1013
1020
  });
1014
1021
  let v;
@@ -1016,12 +1023,12 @@ function Le(t, e, n) {
1016
1023
  if (c.value == null || f.value == null)
1017
1024
  return;
1018
1025
  const x = i.value;
1019
- be(c.value, f.value, {
1026
+ Re(c.value, f.value, {
1020
1027
  middleware: s.value,
1021
1028
  placement: r.value,
1022
1029
  strategy: l.value
1023
1030
  }).then((O) => {
1024
- d.value = O.x, g.value = O.y, u.value = O.strategy, m.value = O.placement, h.value = O.middlewareData, w.value = x !== !1;
1031
+ d.value = O.x, m.value = O.y, u.value = O.strategy, h.value = O.placement, g.value = O.middlewareData, w.value = x !== !1;
1025
1032
  });
1026
1033
  }
1027
1034
  function R() {
@@ -1037,32 +1044,32 @@ function Le(t, e, n) {
1037
1044
  return;
1038
1045
  }
1039
1046
  }
1040
- function E() {
1047
+ function C() {
1041
1048
  i.value || (w.value = !1);
1042
1049
  }
1043
1050
  return dt([s, r, l, i], y, {
1044
1051
  flush: "sync"
1045
1052
  }), dt([c, f], b, {
1046
1053
  flush: "sync"
1047
- }), dt(i, E, {
1054
+ }), dt(i, C, {
1048
1055
  flush: "sync"
1049
- }), $t() && Ht(R), {
1056
+ }), Ht() && _t(R), {
1050
1057
  x: K(d),
1051
- y: K(g),
1058
+ y: K(m),
1052
1059
  strategy: K(u),
1053
- placement: K(m),
1054
- middlewareData: K(h),
1060
+ placement: K(h),
1061
+ middlewareData: K(g),
1055
1062
  isPositioned: K(w),
1056
1063
  floatingStyles: p,
1057
1064
  update: y
1058
1065
  };
1059
1066
  }
1060
1067
  export {
1061
- Ae as a,
1062
- Te as b,
1063
- Ce as f,
1068
+ Ce as a,
1069
+ Le as b,
1070
+ De as f,
1064
1071
  Ee as o,
1065
- De as s,
1066
- Le as u
1072
+ Te as s,
1073
+ Pe as u
1067
1074
  };
1068
- //# sourceMappingURL=floating-ui.vue-BmfQDqE-.js.map
1075
+ //# sourceMappingURL=floating-ui.vue-pzUuloyX.js.map