@turquoisehealth/pit-viper 2.122.1-dev.0 → 2.123.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 (38) hide show
  1. package/package.json +1 -1
  2. package/pv-components/dist/stats/vue/base/stats.html +1 -1
  3. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  4. package/pv-components/dist/stats/web/pv-button-stats.html +1 -1
  5. package/pv-components/dist/stats/web/pv-drawer-stats.html +1 -1
  6. package/pv-components/dist/stats/web/pv-expandable-content-stats.html +1 -1
  7. package/pv-components/dist/stats/web/pv-ghost-input-stats.html +1 -1
  8. package/pv-components/dist/stats/web/pv-insight-card-stats.html +1 -1
  9. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
  10. package/pv-components/dist/stats/web/pv-pagination-stats.html +1 -1
  11. package/pv-components/dist/stats/web/pv-popover-v2-stats.html +1 -1
  12. package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
  13. package/pv-components/dist/stats/web/pv-toast-stats.html +1 -1
  14. package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
  15. package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
  16. package/pv-components/dist/vue/base/components/base/PvButton/helpers.d.ts +0 -1
  17. package/pv-components/dist/vue/base/components/base/PvMenu/PvMenuControlPanel.vue.d.ts +0 -6
  18. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +289 -206
  19. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +0 -31
  20. package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -0
  21. package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +1 -6
  22. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +177 -20
  23. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +9 -4
  24. package/pv-components/dist/vue/base/pv-components-base.mjs +2713 -2704
  25. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +3296 -4299
  26. package/pv-components/dist/web/components/pv-button/pv-button.js +43 -43
  27. package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +159 -159
  28. package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +87 -87
  29. package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +76 -76
  30. package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +78 -78
  31. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +2185 -7690
  32. package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +92 -92
  33. package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +768 -852
  34. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +2139 -7599
  35. package/pv-components/dist/web/components/pv-toast/pv-toast.js +58 -58
  36. package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +1638 -1722
  37. package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +1481 -1565
  38. package/pv-components/dist/web/pv-components.iife.js +50 -50
@@ -1,73 +1,51 @@
1
- import { computed as C, ref as B, shallowRef as E, watch as P, getCurrentScope as te, onScopeDispose as ee, shallowReadonly as q, unref as ft, onMounted as At, nextTick as xe, getCurrentInstance as ne, toValue as O, toRef as Oe, readonly as Se, customRef as Ce, watchEffect as Ee, defineComponent as Ae, mergeModels as Re, useModel as Pe, withDirectives as Bt, createElementBlock as Te, openBlock as Nt, createElementVNode as It, createBlock as ke, createCommentVNode as Le, renderSlot as Vt, Teleport as De, normalizeStyle as Me, vShow as We, defineCustomElement as Be } from "vue";
2
- const _t = Math.min, et = Math.max, lt = Math.round, M = (t) => ({
1
+ import { computed as O, ref as B, shallowRef as C, watch as R, getCurrentScope as Ht, onScopeDispose as zt, shallowReadonly as j, unref as it, onMounted as wt, nextTick as pe, getCurrentInstance as Xt, toValue as E, toRef as me, readonly as he, customRef as ve, watchEffect as ge, defineComponent as we, mergeModels as ye, useModel as be, withDirectives as St, createElementBlock as xe, openBlock as Et, createElementVNode as Ct, createBlock as Oe, createCommentVNode as Se, renderSlot as Pt, Teleport as Ee, normalizeStyle as Ce, vShow as Pe, defineCustomElement as Re } from "vue";
2
+ const Ae = ["top", "right", "bottom", "left"], Rt = ["start", "end"], At = /* @__PURE__ */ Ae.reduce((t, e) => t.concat(e, e + "-" + Rt[0], e + "-" + Rt[1]), []), Tt = Math.min, K = Math.max, nt = Math.round, M = (t) => ({
3
3
  x: t,
4
4
  y: t
5
- }), Ne = {
5
+ }), Te = {
6
6
  left: "right",
7
7
  right: "left",
8
8
  bottom: "top",
9
9
  top: "bottom"
10
- }, Ie = {
10
+ }, Le = {
11
11
  start: "end",
12
12
  end: "start"
13
13
  };
14
- function Rt(t, e) {
14
+ function Yt(t, e) {
15
15
  return typeof t == "function" ? t(e) : t;
16
16
  }
17
- function J(t) {
17
+ function st(t) {
18
18
  return t.split("-")[0];
19
19
  }
20
- function dt(t) {
20
+ function I(t) {
21
21
  return t.split("-")[1];
22
22
  }
23
- function Ve(t) {
23
+ function ke(t) {
24
24
  return t === "x" ? "y" : "x";
25
25
  }
26
- function oe(t) {
26
+ function qt(t) {
27
27
  return t === "y" ? "height" : "width";
28
28
  }
29
- const _e = /* @__PURE__ */ new Set(["top", "bottom"]);
30
- function H(t) {
31
- return _e.has(J(t)) ? "y" : "x";
29
+ const Me = /* @__PURE__ */ new Set(["top", "bottom"]);
30
+ function Gt(t) {
31
+ return Me.has(st(t)) ? "y" : "x";
32
32
  }
33
- function ie(t) {
34
- return Ve(H(t));
33
+ function Jt(t) {
34
+ return ke(Gt(t));
35
35
  }
36
- function $e(t, e, n) {
36
+ function De(t, e, n) {
37
37
  n === void 0 && (n = !1);
38
- const o = dt(t), i = ie(t), s = oe(i);
39
- let c = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
40
- return e.reference[s] > e.floating[s] && (c = ct(c)), [c, ct(c)];
41
- }
42
- function Fe(t) {
43
- const e = ct(t);
44
- return [St(t), e, St(e)];
45
- }
46
- function St(t) {
47
- return t.replace(/start|end/g, (e) => Ie[e]);
48
- }
49
- const $t = ["left", "right"], Ft = ["right", "left"], je = ["top", "bottom"], He = ["bottom", "top"];
50
- function ze(t, e, n) {
51
- switch (t) {
52
- case "top":
53
- case "bottom":
54
- return n ? e ? Ft : $t : e ? $t : Ft;
55
- case "left":
56
- case "right":
57
- return e ? je : He;
58
- default:
59
- return [];
60
- }
38
+ const o = I(t), r = Jt(t), s = qt(r);
39
+ let u = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
40
+ return e.reference[s] > e.floating[s] && (u = Lt(u)), [u, Lt(u)];
61
41
  }
62
- function Xe(t, e, n, o) {
63
- const i = dt(t);
64
- let s = ze(J(t), n === "start", o);
65
- return i && (s = s.map((c) => c + "-" + i), e && (s = s.concat(s.map(St)))), s;
42
+ function We(t) {
43
+ return t.replace(/start|end/g, (e) => Le[e]);
66
44
  }
67
- function ct(t) {
68
- return t.replace(/left|right|bottom|top/g, (e) => Ne[e]);
45
+ function Lt(t) {
46
+ return t.replace(/left|right|bottom|top/g, (e) => Te[e]);
69
47
  }
70
- function Ye(t) {
48
+ function Be(t) {
71
49
  return {
72
50
  top: 0,
73
51
  right: 0,
@@ -76,361 +54,301 @@ function Ye(t) {
76
54
  ...t
77
55
  };
78
56
  }
79
- function qe(t) {
80
- return typeof t != "number" ? Ye(t) : {
57
+ function Ne(t) {
58
+ return typeof t != "number" ? Be(t) : {
81
59
  top: t,
82
60
  right: t,
83
61
  bottom: t,
84
62
  left: t
85
63
  };
86
64
  }
87
- function at(t) {
65
+ function ot(t) {
88
66
  const {
89
67
  x: e,
90
68
  y: n,
91
69
  width: o,
92
- height: i
70
+ height: r
93
71
  } = t;
94
72
  return {
95
73
  width: o,
96
- height: i,
74
+ height: r,
97
75
  top: n,
98
76
  left: e,
99
77
  right: e + o,
100
- bottom: n + i,
78
+ bottom: n + r,
101
79
  x: e,
102
80
  y: n
103
81
  };
104
82
  }
105
- function jt(t, e, n) {
83
+ function kt(t, e, n) {
106
84
  let {
107
85
  reference: o,
108
- floating: i
86
+ floating: r
109
87
  } = t;
110
- const s = H(e), c = ie(e), r = oe(c), l = J(e), a = s === "y", u = o.x + o.width / 2 - i.width / 2, f = o.y + o.height / 2 - i.height / 2, d = o[r] / 2 - i[r] / 2;
111
- let p;
88
+ const s = Gt(e), u = Jt(e), i = qt(u), l = st(e), c = s === "y", a = o.x + o.width / 2 - r.width / 2, f = o.y + o.height / 2 - r.height / 2, p = o[i] / 2 - r[i] / 2;
89
+ let m;
112
90
  switch (l) {
113
91
  case "top":
114
- p = {
115
- x: u,
116
- y: o.y - i.height
92
+ m = {
93
+ x: a,
94
+ y: o.y - r.height
117
95
  };
118
96
  break;
119
97
  case "bottom":
120
- p = {
121
- x: u,
98
+ m = {
99
+ x: a,
122
100
  y: o.y + o.height
123
101
  };
124
102
  break;
125
103
  case "right":
126
- p = {
104
+ m = {
127
105
  x: o.x + o.width,
128
106
  y: f
129
107
  };
130
108
  break;
131
109
  case "left":
132
- p = {
133
- x: o.x - i.width,
110
+ m = {
111
+ x: o.x - r.width,
134
112
  y: f
135
113
  };
136
114
  break;
137
115
  default:
138
- p = {
116
+ m = {
139
117
  x: o.x,
140
118
  y: o.y
141
119
  };
142
120
  }
143
- switch (dt(e)) {
121
+ switch (I(e)) {
144
122
  case "start":
145
- p[c] -= d * (n && a ? -1 : 1);
123
+ m[u] -= p * (n && c ? -1 : 1);
146
124
  break;
147
125
  case "end":
148
- p[c] += d * (n && a ? -1 : 1);
126
+ m[u] += p * (n && c ? -1 : 1);
149
127
  break;
150
128
  }
151
- return p;
129
+ return m;
152
130
  }
153
- const Ge = async (t, e, n) => {
131
+ const _e = async (t, e, n) => {
154
132
  const {
155
133
  placement: o = "bottom",
156
- strategy: i = "absolute",
134
+ strategy: r = "absolute",
157
135
  middleware: s = [],
158
- platform: c
159
- } = n, r = s.filter(Boolean), l = await (c.isRTL == null ? void 0 : c.isRTL(e));
160
- let a = await c.getElementRects({
136
+ platform: u
137
+ } = n, i = s.filter(Boolean), l = await (u.isRTL == null ? void 0 : u.isRTL(e));
138
+ let c = await u.getElementRects({
161
139
  reference: t,
162
140
  floating: e,
163
- strategy: i
141
+ strategy: r
164
142
  }), {
165
- x: u,
143
+ x: a,
166
144
  y: f
167
- } = jt(a, o, l), d = o, p = {}, v = 0;
168
- for (let w = 0; w < r.length; w++) {
145
+ } = kt(c, o, l), p = o, m = {}, g = 0;
146
+ for (let y = 0; y < i.length; y++) {
169
147
  const {
170
- name: m,
148
+ name: d,
171
149
  fn: h
172
- } = r[w], {
173
- x: g,
174
- y,
175
- data: b,
176
- reset: S
150
+ } = i[y], {
151
+ x: v,
152
+ y: b,
153
+ data: S,
154
+ reset: w
177
155
  } = await h({
178
- x: u,
156
+ x: a,
179
157
  y: f,
180
158
  initialPlacement: o,
181
- placement: d,
182
- strategy: i,
183
- middlewareData: p,
184
- rects: a,
185
- platform: c,
159
+ placement: p,
160
+ strategy: r,
161
+ middlewareData: m,
162
+ rects: c,
163
+ platform: u,
186
164
  elements: {
187
165
  reference: t,
188
166
  floating: e
189
167
  }
190
168
  });
191
- u = g ?? u, f = y ?? f, p = {
192
- ...p,
193
- [m]: {
194
- ...p[m],
195
- ...b
169
+ a = v ?? a, f = b ?? f, m = {
170
+ ...m,
171
+ [d]: {
172
+ ...m[d],
173
+ ...S
196
174
  }
197
- }, S && v <= 50 && (v++, typeof S == "object" && (S.placement && (d = S.placement), S.rects && (a = S.rects === !0 ? await c.getElementRects({
175
+ }, w && g <= 50 && (g++, typeof w == "object" && (w.placement && (p = w.placement), w.rects && (c = w.rects === !0 ? await u.getElementRects({
198
176
  reference: t,
199
177
  floating: e,
200
- strategy: i
201
- }) : S.rects), {
202
- x: u,
178
+ strategy: r
179
+ }) : w.rects), {
180
+ x: a,
203
181
  y: f
204
- } = jt(a, d, l)), w = -1);
182
+ } = kt(c, p, l)), y = -1);
205
183
  }
206
184
  return {
207
- x: u,
185
+ x: a,
208
186
  y: f,
209
- placement: d,
210
- strategy: i,
211
- middlewareData: p
187
+ placement: p,
188
+ strategy: r,
189
+ middlewareData: m
212
190
  };
213
191
  };
214
- async function Je(t, e) {
192
+ async function $e(t, e) {
215
193
  var n;
216
194
  e === void 0 && (e = {});
217
195
  const {
218
196
  x: o,
219
- y: i,
197
+ y: r,
220
198
  platform: s,
221
- rects: c,
222
- elements: r,
199
+ rects: u,
200
+ elements: i,
223
201
  strategy: l
224
202
  } = t, {
225
- boundary: a = "clippingAncestors",
226
- rootBoundary: u = "viewport",
203
+ boundary: c = "clippingAncestors",
204
+ rootBoundary: a = "viewport",
227
205
  elementContext: f = "floating",
228
- altBoundary: d = !1,
229
- padding: p = 0
230
- } = Rt(e, t), v = qe(p), m = r[d ? f === "floating" ? "reference" : "floating" : f], h = at(await s.getClippingRect({
231
- element: (n = await (s.isElement == null ? void 0 : s.isElement(m))) == null || n ? m : m.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(r.floating)),
232
- boundary: a,
233
- rootBoundary: u,
206
+ altBoundary: p = !1,
207
+ padding: m = 0
208
+ } = Yt(e, t), g = Ne(m), d = i[p ? f === "floating" ? "reference" : "floating" : f], h = ot(await s.getClippingRect({
209
+ element: (n = await (s.isElement == null ? void 0 : s.isElement(d))) == null || n ? d : d.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
210
+ boundary: c,
211
+ rootBoundary: a,
234
212
  strategy: l
235
- })), g = f === "floating" ? {
213
+ })), v = f === "floating" ? {
236
214
  x: o,
237
- y: i,
238
- width: c.floating.width,
239
- height: c.floating.height
240
- } : c.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(r.floating)), b = await (s.isElement == null ? void 0 : s.isElement(y)) ? await (s.getScale == null ? void 0 : s.getScale(y)) || {
215
+ y: r,
216
+ width: u.floating.width,
217
+ height: u.floating.height
218
+ } : u.reference, b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(i.floating)), S = await (s.isElement == null ? void 0 : s.isElement(b)) ? await (s.getScale == null ? void 0 : s.getScale(b)) || {
241
219
  x: 1,
242
220
  y: 1
243
221
  } : {
244
222
  x: 1,
245
223
  y: 1
246
- }, S = at(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
247
- elements: r,
248
- rect: g,
249
- offsetParent: y,
224
+ }, w = ot(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
225
+ elements: i,
226
+ rect: v,
227
+ offsetParent: b,
250
228
  strategy: l
251
- }) : g);
229
+ }) : v);
252
230
  return {
253
- top: (h.top - S.top + v.top) / b.y,
254
- bottom: (S.bottom - h.bottom + v.bottom) / b.y,
255
- left: (h.left - S.left + v.left) / b.x,
256
- right: (S.right - h.right + v.right) / b.x
231
+ top: (h.top - w.top + g.top) / S.y,
232
+ bottom: (w.bottom - h.bottom + g.bottom) / S.y,
233
+ left: (h.left - w.left + g.left) / S.x,
234
+ right: (w.right - h.right + g.right) / S.x
257
235
  };
258
236
  }
259
- const Ue = function(t) {
237
+ function Ie(t, e, n) {
238
+ return (t ? [...n.filter((r) => I(r) === t), ...n.filter((r) => I(r) !== t)] : n.filter((r) => st(r) === r)).filter((r) => t ? I(r) === t || (e ? We(r) !== r : !1) : !0);
239
+ }
240
+ const Ve = function(t) {
260
241
  return t === void 0 && (t = {}), {
261
- name: "flip",
242
+ name: "autoPlacement",
262
243
  options: t,
263
244
  async fn(e) {
264
- var n, o;
245
+ var n, o, r;
265
246
  const {
247
+ rects: s,
248
+ middlewareData: u,
266
249
  placement: i,
267
- middlewareData: s,
268
- rects: c,
269
- initialPlacement: r,
270
250
  platform: l,
271
- elements: a
251
+ elements: c
272
252
  } = e, {
273
- mainAxis: u = !0,
274
- crossAxis: f = !0,
275
- fallbackPlacements: d,
276
- fallbackStrategy: p = "bestFit",
277
- fallbackAxisSideDirection: v = "none",
278
- flipAlignment: w = !0,
279
- ...m
280
- } = Rt(t, e);
281
- if ((n = s.arrow) != null && n.alignmentOffset)
253
+ crossAxis: a = !1,
254
+ alignment: f,
255
+ allowedPlacements: p = At,
256
+ autoAlignment: m = !0,
257
+ ...g
258
+ } = Yt(t, e), y = f !== void 0 || p === At ? Ie(f || null, m, p) : p, d = await $e(e, g), h = ((n = u.autoPlacement) == null ? void 0 : n.index) || 0, v = y[h];
259
+ if (v == null)
282
260
  return {};
283
- const h = J(i), g = H(r), y = J(r) === r, b = await (l.isRTL == null ? void 0 : l.isRTL(a.floating)), S = d || (y || !w ? [ct(r)] : Fe(r)), rt = v !== "none";
284
- !d && rt && S.push(...Xe(r, w, v, b));
285
- const x = [r, ...S], R = await Je(e, m), $ = [];
286
- let Y = ((o = s.flip) == null ? void 0 : o.overflows) || [];
287
- if (u && $.push(R[h]), f) {
288
- const F = $e(i, c, b);
289
- $.push(R[F[0]], R[F[1]]);
290
- }
291
- if (Y = [...Y, {
292
- placement: i,
293
- overflows: $
294
- }], !$.every((F) => F <= 0)) {
295
- var Dt, Mt;
296
- const F = (((Dt = s.flip) == null ? void 0 : Dt.index) || 0) + 1, gt = x[F];
297
- if (gt && (!(f === "alignment" ? g !== H(gt) : !1) || // We leave the current main axis only if every placement on that axis
298
- // overflows the main axis.
299
- Y.every((T) => H(T.placement) === g ? T.overflows[0] > 0 : !0)))
300
- return {
301
- data: {
302
- index: F,
303
- overflows: Y
304
- },
305
- reset: {
306
- placement: gt
307
- }
308
- };
309
- let Z = (Mt = Y.filter((j) => j.overflows[0] <= 0).sort((j, T) => j.overflows[1] - T.overflows[1])[0]) == null ? void 0 : Mt.placement;
310
- if (!Z)
311
- switch (p) {
312
- case "bestFit": {
313
- var Wt;
314
- const j = (Wt = Y.filter((T) => {
315
- if (rt) {
316
- const I = H(T.placement);
317
- return I === g || // Create a bias to the `y` side axis due to horizontal
318
- // reading directions favoring greater width.
319
- I === "y";
320
- }
321
- return !0;
322
- }).map((T) => [T.placement, T.overflows.filter((I) => I > 0).reduce((I, be) => I + be, 0)]).sort((T, I) => T[1] - I[1])[0]) == null ? void 0 : Wt[0];
323
- j && (Z = j);
324
- break;
325
- }
326
- case "initialPlacement":
327
- Z = r;
328
- break;
261
+ const b = De(v, s, await (l.isRTL == null ? void 0 : l.isRTL(c.floating)));
262
+ if (i !== v)
263
+ return {
264
+ reset: {
265
+ placement: y[0]
329
266
  }
330
- if (i !== Z)
331
- return {
332
- reset: {
333
- placement: Z
334
- }
335
- };
336
- }
337
- return {};
338
- }
339
- };
340
- }, Ke = /* @__PURE__ */ new Set(["left", "top"]);
341
- async function Ze(t, e) {
342
- const {
343
- placement: n,
344
- platform: o,
345
- elements: i
346
- } = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), c = J(n), r = dt(n), l = H(n) === "y", a = Ke.has(c) ? -1 : 1, u = s && l ? -1 : 1, f = Rt(e, t);
347
- let {
348
- mainAxis: d,
349
- crossAxis: p,
350
- alignmentAxis: v
351
- } = typeof f == "number" ? {
352
- mainAxis: f,
353
- crossAxis: 0,
354
- alignmentAxis: null
355
- } : {
356
- mainAxis: f.mainAxis || 0,
357
- crossAxis: f.crossAxis || 0,
358
- alignmentAxis: f.alignmentAxis
359
- };
360
- return r && typeof v == "number" && (p = r === "end" ? v * -1 : v), l ? {
361
- x: p * u,
362
- y: d * a
363
- } : {
364
- x: d * a,
365
- y: p * u
366
- };
367
- }
368
- const Qe = function(t) {
369
- return t === void 0 && (t = 0), {
370
- name: "offset",
371
- options: t,
372
- async fn(e) {
373
- var n, o;
374
- const {
375
- x: i,
376
- y: s,
377
- placement: c,
378
- middlewareData: r
379
- } = e, l = await Ze(e, t);
380
- return c === ((n = r.offset) == null ? void 0 : n.placement) && (o = r.arrow) != null && o.alignmentOffset ? {} : {
381
- x: i + l.x,
382
- y: s + l.y,
267
+ };
268
+ const S = [d[st(v)], d[b[0]], d[b[1]]], w = [...((o = u.autoPlacement) == null ? void 0 : o.overflows) || [], {
269
+ placement: v,
270
+ overflows: S
271
+ }], Y = y[h + 1];
272
+ if (Y)
273
+ return {
274
+ data: {
275
+ index: h + 1,
276
+ overflows: w
277
+ },
278
+ reset: {
279
+ placement: Y
280
+ }
281
+ };
282
+ const x = w.map((L) => {
283
+ const G = I(L.placement);
284
+ return [L.placement, G && a ? (
285
+ // Check along the mainAxis and main crossAxis side.
286
+ L.overflows.slice(0, 2).reduce((fe, de) => fe + de, 0)
287
+ ) : (
288
+ // Check only the mainAxis.
289
+ L.overflows[0]
290
+ ), L.overflows];
291
+ }).sort((L, G) => L[1] - G[1]), q = ((r = x.filter((L) => L[2].slice(
292
+ 0,
293
+ // Aligned placements should not check their opposite crossAxis
294
+ // side.
295
+ I(L[0]) ? 2 : 3
296
+ ).every((G) => G <= 0))[0]) == null ? void 0 : r[0]) || x[0][0];
297
+ return q !== i ? {
383
298
  data: {
384
- ...l,
385
- placement: c
299
+ index: h + 1,
300
+ overflows: w
301
+ },
302
+ reset: {
303
+ placement: q
386
304
  }
387
- };
305
+ } : {};
388
306
  }
389
307
  };
390
308
  };
391
- function pt() {
309
+ function lt() {
392
310
  return typeof window < "u";
393
311
  }
394
- function X(t) {
395
- return Pt(t) ? (t.nodeName || "").toLowerCase() : "#document";
312
+ function F(t) {
313
+ return yt(t) ? (t.nodeName || "").toLowerCase() : "#document";
396
314
  }
397
- function A(t) {
315
+ function P(t) {
398
316
  var e;
399
317
  return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
400
318
  }
401
319
  function N(t) {
402
320
  var e;
403
- return (e = (Pt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
321
+ return (e = (yt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
404
322
  }
405
- function Pt(t) {
406
- return pt() ? t instanceof Node || t instanceof A(t).Node : !1;
323
+ function yt(t) {
324
+ return lt() ? t instanceof Node || t instanceof P(t).Node : !1;
407
325
  }
408
- function k(t) {
409
- return pt() ? t instanceof Element || t instanceof A(t).Element : !1;
326
+ function A(t) {
327
+ return lt() ? t instanceof Element || t instanceof P(t).Element : !1;
410
328
  }
411
- function W(t) {
412
- return pt() ? t instanceof HTMLElement || t instanceof A(t).HTMLElement : !1;
329
+ function D(t) {
330
+ return lt() ? t instanceof HTMLElement || t instanceof P(t).HTMLElement : !1;
413
331
  }
414
- function Ht(t) {
415
- return !pt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof A(t).ShadowRoot;
332
+ function Mt(t) {
333
+ return !lt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof P(t).ShadowRoot;
416
334
  }
417
- const tn = /* @__PURE__ */ new Set(["inline", "contents"]);
418
- function ot(t) {
335
+ const Fe = /* @__PURE__ */ new Set(["inline", "contents"]);
336
+ function Q(t) {
419
337
  const {
420
338
  overflow: e,
421
339
  overflowX: n,
422
340
  overflowY: o,
423
- display: i
424
- } = L(t);
425
- return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !tn.has(i);
341
+ display: r
342
+ } = T(t);
343
+ return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !Fe.has(r);
426
344
  }
427
- const en = /* @__PURE__ */ new Set(["table", "td", "th"]);
428
- function nn(t) {
429
- return en.has(X(t));
345
+ const je = /* @__PURE__ */ new Set(["table", "td", "th"]);
346
+ function He(t) {
347
+ return je.has(F(t));
430
348
  }
431
- const on = [":popover-open", ":modal"];
432
- function mt(t) {
433
- return on.some((e) => {
349
+ const ze = [":popover-open", ":modal"];
350
+ function ct(t) {
351
+ return ze.some((e) => {
434
352
  try {
435
353
  return t.matches(e);
436
354
  } catch {
@@ -438,34 +356,34 @@ function mt(t) {
438
356
  }
439
357
  });
440
358
  }
441
- const rn = ["transform", "translate", "scale", "rotate", "perspective"], sn = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ln = ["paint", "layout", "strict", "content"];
442
- function Tt(t) {
443
- const e = kt(), n = k(t) ? L(t) : t;
444
- return rn.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) || sn.some((o) => (n.willChange || "").includes(o)) || ln.some((o) => (n.contain || "").includes(o));
359
+ const Xe = ["transform", "translate", "scale", "rotate", "perspective"], Ye = ["transform", "translate", "scale", "rotate", "perspective", "filter"], qe = ["paint", "layout", "strict", "content"];
360
+ function bt(t) {
361
+ const e = xt(), n = A(t) ? T(t) : t;
362
+ return Xe.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) || Ye.some((o) => (n.willChange || "").includes(o)) || qe.some((o) => (n.contain || "").includes(o));
445
363
  }
446
- function cn(t) {
447
- let e = V(t);
448
- for (; W(e) && !U(e); ) {
449
- if (Tt(e))
364
+ function Ge(t) {
365
+ let e = _(t);
366
+ for (; D(e) && !z(e); ) {
367
+ if (bt(e))
450
368
  return e;
451
- if (mt(e))
369
+ if (ct(e))
452
370
  return null;
453
- e = V(e);
371
+ e = _(e);
454
372
  }
455
373
  return null;
456
374
  }
457
- function kt() {
375
+ function xt() {
458
376
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
459
377
  }
460
- const an = /* @__PURE__ */ new Set(["html", "body", "#document"]);
461
- function U(t) {
462
- return an.has(X(t));
378
+ const Je = /* @__PURE__ */ new Set(["html", "body", "#document"]);
379
+ function z(t) {
380
+ return Je.has(F(t));
463
381
  }
464
- function L(t) {
465
- return A(t).getComputedStyle(t);
382
+ function T(t) {
383
+ return P(t).getComputedStyle(t);
466
384
  }
467
- function ht(t) {
468
- return k(t) ? {
385
+ function ut(t) {
386
+ return A(t) ? {
469
387
  scrollLeft: t.scrollLeft,
470
388
  scrollTop: t.scrollTop
471
389
  } : {
@@ -473,222 +391,222 @@ function ht(t) {
473
391
  scrollTop: t.scrollY
474
392
  };
475
393
  }
476
- function V(t) {
477
- if (X(t) === "html")
394
+ function _(t) {
395
+ if (F(t) === "html")
478
396
  return t;
479
397
  const e = (
480
398
  // Step into the shadow DOM of the parent of a slotted node.
481
399
  t.assignedSlot || // DOM Element detected.
482
400
  t.parentNode || // ShadowRoot detected.
483
- Ht(t) && t.host || // Fallback.
401
+ Mt(t) && t.host || // Fallback.
484
402
  N(t)
485
403
  );
486
- return Ht(e) ? e.host : e;
404
+ return Mt(e) ? e.host : e;
487
405
  }
488
- function re(t) {
489
- const e = V(t);
490
- return U(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : W(e) && ot(e) ? e : re(e);
406
+ function Ut(t) {
407
+ const e = _(t);
408
+ return z(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : D(e) && Q(e) ? e : Ut(e);
491
409
  }
492
- function se(t, e, n) {
410
+ function Kt(t, e, n) {
493
411
  var o;
494
412
  e === void 0 && (e = []);
495
- const i = re(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), c = A(i);
496
- return s ? (Ct(c), e.concat(c, c.visualViewport || [], ot(i) ? i : [], [])) : e.concat(i, se(i, []));
413
+ const r = Ut(t), s = r === ((o = t.ownerDocument) == null ? void 0 : o.body), u = P(r);
414
+ return s ? (vt(u), e.concat(u, u.visualViewport || [], Q(r) ? r : [], [])) : e.concat(r, Kt(r, []));
497
415
  }
498
- function Ct(t) {
416
+ function vt(t) {
499
417
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
500
418
  }
501
- function le(t) {
502
- const e = L(t);
419
+ function Zt(t) {
420
+ const e = T(t);
503
421
  let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
504
- const i = W(t), s = i ? t.offsetWidth : n, c = i ? t.offsetHeight : o, r = lt(n) !== s || lt(o) !== c;
505
- return r && (n = s, o = c), {
422
+ const r = D(t), s = r ? t.offsetWidth : n, u = r ? t.offsetHeight : o, i = nt(n) !== s || nt(o) !== u;
423
+ return i && (n = s, o = u), {
506
424
  width: n,
507
425
  height: o,
508
- $: r
426
+ $: i
509
427
  };
510
428
  }
511
- function ce(t) {
512
- return k(t) ? t : t.contextElement;
429
+ function Qt(t) {
430
+ return A(t) ? t : t.contextElement;
513
431
  }
514
- function G(t) {
515
- const e = ce(t);
516
- if (!W(e))
432
+ function H(t) {
433
+ const e = Qt(t);
434
+ if (!D(e))
517
435
  return M(1);
518
436
  const n = e.getBoundingClientRect(), {
519
437
  width: o,
520
- height: i,
438
+ height: r,
521
439
  $: s
522
- } = le(e);
523
- let c = (s ? lt(n.width) : n.width) / o, r = (s ? lt(n.height) : n.height) / i;
524
- return (!c || !Number.isFinite(c)) && (c = 1), (!r || !Number.isFinite(r)) && (r = 1), {
525
- x: c,
526
- y: r
440
+ } = Zt(e);
441
+ let u = (s ? nt(n.width) : n.width) / o, i = (s ? nt(n.height) : n.height) / r;
442
+ return (!u || !Number.isFinite(u)) && (u = 1), (!i || !Number.isFinite(i)) && (i = 1), {
443
+ x: u,
444
+ y: i
527
445
  };
528
446
  }
529
- const un = /* @__PURE__ */ M(0);
530
- function ae(t) {
531
- const e = A(t);
532
- return !kt() || !e.visualViewport ? un : {
447
+ const Ue = /* @__PURE__ */ M(0);
448
+ function te(t) {
449
+ const e = P(t);
450
+ return !xt() || !e.visualViewport ? Ue : {
533
451
  x: e.visualViewport.offsetLeft,
534
452
  y: e.visualViewport.offsetTop
535
453
  };
536
454
  }
537
- function fn(t, e, n) {
538
- return e === void 0 && (e = !1), !n || e && n !== A(t) ? !1 : e;
455
+ function Ke(t, e, n) {
456
+ return e === void 0 && (e = !1), !n || e && n !== P(t) ? !1 : e;
539
457
  }
540
- function nt(t, e, n, o) {
458
+ function Z(t, e, n, o) {
541
459
  e === void 0 && (e = !1), n === void 0 && (n = !1);
542
- const i = t.getBoundingClientRect(), s = ce(t);
543
- let c = M(1);
544
- e && (o ? k(o) && (c = G(o)) : c = G(t));
545
- const r = fn(s, n, o) ? ae(s) : M(0);
546
- let l = (i.left + r.x) / c.x, a = (i.top + r.y) / c.y, u = i.width / c.x, f = i.height / c.y;
460
+ const r = t.getBoundingClientRect(), s = Qt(t);
461
+ let u = M(1);
462
+ e && (o ? A(o) && (u = H(o)) : u = H(t));
463
+ const i = Ke(s, n, o) ? te(s) : M(0);
464
+ let l = (r.left + i.x) / u.x, c = (r.top + i.y) / u.y, a = r.width / u.x, f = r.height / u.y;
547
465
  if (s) {
548
- const d = A(s), p = o && k(o) ? A(o) : o;
549
- let v = d, w = Ct(v);
550
- for (; w && o && p !== v; ) {
551
- const m = G(w), h = w.getBoundingClientRect(), g = L(w), y = h.left + (w.clientLeft + parseFloat(g.paddingLeft)) * m.x, b = h.top + (w.clientTop + parseFloat(g.paddingTop)) * m.y;
552
- l *= m.x, a *= m.y, u *= m.x, f *= m.y, l += y, a += b, v = A(w), w = Ct(v);
466
+ const p = P(s), m = o && A(o) ? P(o) : o;
467
+ let g = p, y = vt(g);
468
+ for (; y && o && m !== g; ) {
469
+ const d = H(y), h = y.getBoundingClientRect(), v = T(y), b = h.left + (y.clientLeft + parseFloat(v.paddingLeft)) * d.x, S = h.top + (y.clientTop + parseFloat(v.paddingTop)) * d.y;
470
+ l *= d.x, c *= d.y, a *= d.x, f *= d.y, l += b, c += S, g = P(y), y = vt(g);
553
471
  }
554
472
  }
555
- return at({
556
- width: u,
473
+ return ot({
474
+ width: a,
557
475
  height: f,
558
476
  x: l,
559
- y: a
477
+ y: c
560
478
  });
561
479
  }
562
- function vt(t, e) {
563
- const n = ht(t).scrollLeft;
564
- return e ? e.left + n : nt(N(t)).left + n;
480
+ function at(t, e) {
481
+ const n = ut(t).scrollLeft;
482
+ return e ? e.left + n : Z(N(t)).left + n;
565
483
  }
566
- function ue(t, e) {
567
- const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - vt(t, n), i = n.top + e.scrollTop;
484
+ function ee(t, e) {
485
+ const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - at(t, n), r = n.top + e.scrollTop;
568
486
  return {
569
487
  x: o,
570
- y: i
488
+ y: r
571
489
  };
572
490
  }
573
- function dn(t) {
491
+ function Ze(t) {
574
492
  let {
575
493
  elements: e,
576
494
  rect: n,
577
495
  offsetParent: o,
578
- strategy: i
496
+ strategy: r
579
497
  } = t;
580
- const s = i === "fixed", c = N(o), r = e ? mt(e.floating) : !1;
581
- if (o === c || r && s)
498
+ const s = r === "fixed", u = N(o), i = e ? ct(e.floating) : !1;
499
+ if (o === u || i && s)
582
500
  return n;
583
501
  let l = {
584
502
  scrollLeft: 0,
585
503
  scrollTop: 0
586
- }, a = M(1);
587
- const u = M(0), f = W(o);
588
- if ((f || !f && !s) && ((X(o) !== "body" || ot(c)) && (l = ht(o)), W(o))) {
589
- const p = nt(o);
590
- a = G(o), u.x = p.x + o.clientLeft, u.y = p.y + o.clientTop;
504
+ }, c = M(1);
505
+ const a = M(0), f = D(o);
506
+ if ((f || !f && !s) && ((F(o) !== "body" || Q(u)) && (l = ut(o)), D(o))) {
507
+ const m = Z(o);
508
+ c = H(o), a.x = m.x + o.clientLeft, a.y = m.y + o.clientTop;
591
509
  }
592
- const d = c && !f && !s ? ue(c, l) : M(0);
510
+ const p = u && !f && !s ? ee(u, l) : M(0);
593
511
  return {
594
- width: n.width * a.x,
595
- height: n.height * a.y,
596
- x: n.x * a.x - l.scrollLeft * a.x + u.x + d.x,
597
- y: n.y * a.y - l.scrollTop * a.y + u.y + d.y
512
+ width: n.width * c.x,
513
+ height: n.height * c.y,
514
+ x: n.x * c.x - l.scrollLeft * c.x + a.x + p.x,
515
+ y: n.y * c.y - l.scrollTop * c.y + a.y + p.y
598
516
  };
599
517
  }
600
- function pn(t) {
518
+ function Qe(t) {
601
519
  return Array.from(t.getClientRects());
602
520
  }
603
- function mn(t) {
604
- const e = N(t), n = ht(t), o = t.ownerDocument.body, i = et(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = et(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
605
- let c = -n.scrollLeft + vt(t);
606
- const r = -n.scrollTop;
607
- return L(o).direction === "rtl" && (c += et(e.clientWidth, o.clientWidth) - i), {
608
- width: i,
521
+ function tn(t) {
522
+ const e = N(t), n = ut(t), o = t.ownerDocument.body, r = K(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = K(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
523
+ let u = -n.scrollLeft + at(t);
524
+ const i = -n.scrollTop;
525
+ return T(o).direction === "rtl" && (u += K(e.clientWidth, o.clientWidth) - r), {
526
+ width: r,
609
527
  height: s,
610
- x: c,
611
- y: r
528
+ x: u,
529
+ y: i
612
530
  };
613
531
  }
614
- const zt = 25;
615
- function hn(t, e) {
616
- const n = A(t), o = N(t), i = n.visualViewport;
617
- let s = o.clientWidth, c = o.clientHeight, r = 0, l = 0;
618
- if (i) {
619
- s = i.width, c = i.height;
620
- const u = kt();
621
- (!u || u && e === "fixed") && (r = i.offsetLeft, l = i.offsetTop);
532
+ const Dt = 25;
533
+ function en(t, e) {
534
+ const n = P(t), o = N(t), r = n.visualViewport;
535
+ let s = o.clientWidth, u = o.clientHeight, i = 0, l = 0;
536
+ if (r) {
537
+ s = r.width, u = r.height;
538
+ const a = xt();
539
+ (!a || a && e === "fixed") && (i = r.offsetLeft, l = r.offsetTop);
622
540
  }
623
- const a = vt(o);
624
- if (a <= 0) {
625
- const u = o.ownerDocument, f = u.body, d = getComputedStyle(f), p = u.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, v = Math.abs(o.clientWidth - f.clientWidth - p);
626
- v <= zt && (s -= v);
627
- } else a <= zt && (s += a);
541
+ const c = at(o);
542
+ if (c <= 0) {
543
+ const a = o.ownerDocument, f = a.body, p = getComputedStyle(f), m = a.compatMode === "CSS1Compat" && parseFloat(p.marginLeft) + parseFloat(p.marginRight) || 0, g = Math.abs(o.clientWidth - f.clientWidth - m);
544
+ g <= Dt && (s -= g);
545
+ } else c <= Dt && (s += c);
628
546
  return {
629
547
  width: s,
630
- height: c,
631
- x: r,
548
+ height: u,
549
+ x: i,
632
550
  y: l
633
551
  };
634
552
  }
635
- const vn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
636
- function gn(t, e) {
637
- const n = nt(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = W(t) ? G(t) : M(1), c = t.clientWidth * s.x, r = t.clientHeight * s.y, l = i * s.x, a = o * s.y;
553
+ const nn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
554
+ function on(t, e) {
555
+ const n = Z(t, !0, e === "fixed"), o = n.top + t.clientTop, r = n.left + t.clientLeft, s = D(t) ? H(t) : M(1), u = t.clientWidth * s.x, i = t.clientHeight * s.y, l = r * s.x, c = o * s.y;
638
556
  return {
639
- width: c,
640
- height: r,
557
+ width: u,
558
+ height: i,
641
559
  x: l,
642
- y: a
560
+ y: c
643
561
  };
644
562
  }
645
- function Xt(t, e, n) {
563
+ function Wt(t, e, n) {
646
564
  let o;
647
565
  if (e === "viewport")
648
- o = hn(t, n);
566
+ o = en(t, n);
649
567
  else if (e === "document")
650
- o = mn(N(t));
651
- else if (k(e))
652
- o = gn(e, n);
568
+ o = tn(N(t));
569
+ else if (A(e))
570
+ o = on(e, n);
653
571
  else {
654
- const i = ae(t);
572
+ const r = te(t);
655
573
  o = {
656
- x: e.x - i.x,
657
- y: e.y - i.y,
574
+ x: e.x - r.x,
575
+ y: e.y - r.y,
658
576
  width: e.width,
659
577
  height: e.height
660
578
  };
661
579
  }
662
- return at(o);
580
+ return ot(o);
663
581
  }
664
- function fe(t, e) {
665
- const n = V(t);
666
- return n === e || !k(n) || U(n) ? !1 : L(n).position === "fixed" || fe(n, e);
582
+ function ne(t, e) {
583
+ const n = _(t);
584
+ return n === e || !A(n) || z(n) ? !1 : T(n).position === "fixed" || ne(n, e);
667
585
  }
668
- function wn(t, e) {
586
+ function rn(t, e) {
669
587
  const n = e.get(t);
670
588
  if (n)
671
589
  return n;
672
- let o = se(t, []).filter((r) => k(r) && X(r) !== "body"), i = null;
673
- const s = L(t).position === "fixed";
674
- let c = s ? V(t) : t;
675
- for (; k(c) && !U(c); ) {
676
- const r = L(c), l = Tt(c);
677
- !l && r.position === "fixed" && (i = null), (s ? !l && !i : !l && r.position === "static" && !!i && vn.has(i.position) || ot(c) && !l && fe(t, c)) ? o = o.filter((u) => u !== c) : i = r, c = V(c);
590
+ let o = Kt(t, []).filter((i) => A(i) && F(i) !== "body"), r = null;
591
+ const s = T(t).position === "fixed";
592
+ let u = s ? _(t) : t;
593
+ for (; A(u) && !z(u); ) {
594
+ const i = T(u), l = bt(u);
595
+ !l && i.position === "fixed" && (r = null), (s ? !l && !r : !l && i.position === "static" && !!r && nn.has(r.position) || Q(u) && !l && ne(t, u)) ? o = o.filter((a) => a !== u) : r = i, u = _(u);
678
596
  }
679
597
  return e.set(t, o), o;
680
598
  }
681
- function yn(t) {
599
+ function sn(t) {
682
600
  let {
683
601
  element: e,
684
602
  boundary: n,
685
603
  rootBoundary: o,
686
- strategy: i
604
+ strategy: r
687
605
  } = t;
688
- const c = [...n === "clippingAncestors" ? mt(e) ? [] : wn(e, this._c) : [].concat(n), o], r = c[0], l = c.reduce((a, u) => {
689
- const f = Xt(e, u, i);
690
- return a.top = et(f.top, a.top), a.right = _t(f.right, a.right), a.bottom = _t(f.bottom, a.bottom), a.left = et(f.left, a.left), a;
691
- }, Xt(e, r, i));
606
+ const u = [...n === "clippingAncestors" ? ct(e) ? [] : rn(e, this._c) : [].concat(n), o], i = u[0], l = u.reduce((c, a) => {
607
+ const f = Wt(e, a, r);
608
+ return c.top = K(f.top, c.top), c.right = Tt(f.right, c.right), c.bottom = Tt(f.bottom, c.bottom), c.left = K(f.left, c.left), c;
609
+ }, Wt(e, i, r));
692
610
  return {
693
611
  width: l.right - l.left,
694
612
  height: l.bottom - l.top,
@@ -696,73 +614,73 @@ function yn(t) {
696
614
  y: l.top
697
615
  };
698
616
  }
699
- function bn(t) {
617
+ function ln(t) {
700
618
  const {
701
619
  width: e,
702
620
  height: n
703
- } = le(t);
621
+ } = Zt(t);
704
622
  return {
705
623
  width: e,
706
624
  height: n
707
625
  };
708
626
  }
709
- function xn(t, e, n) {
710
- const o = W(e), i = N(e), s = n === "fixed", c = nt(t, !0, s, e);
711
- let r = {
627
+ function cn(t, e, n) {
628
+ const o = D(e), r = N(e), s = n === "fixed", u = Z(t, !0, s, e);
629
+ let i = {
712
630
  scrollLeft: 0,
713
631
  scrollTop: 0
714
632
  };
715
633
  const l = M(0);
716
- function a() {
717
- l.x = vt(i);
634
+ function c() {
635
+ l.x = at(r);
718
636
  }
719
637
  if (o || !o && !s)
720
- if ((X(e) !== "body" || ot(i)) && (r = ht(e)), o) {
721
- const p = nt(e, !0, s, e);
722
- l.x = p.x + e.clientLeft, l.y = p.y + e.clientTop;
723
- } else i && a();
724
- s && !o && i && a();
725
- const u = i && !o && !s ? ue(i, r) : M(0), f = c.left + r.scrollLeft - l.x - u.x, d = c.top + r.scrollTop - l.y - u.y;
638
+ if ((F(e) !== "body" || Q(r)) && (i = ut(e)), o) {
639
+ const m = Z(e, !0, s, e);
640
+ l.x = m.x + e.clientLeft, l.y = m.y + e.clientTop;
641
+ } else r && c();
642
+ s && !o && r && c();
643
+ const a = r && !o && !s ? ee(r, i) : M(0), f = u.left + i.scrollLeft - l.x - a.x, p = u.top + i.scrollTop - l.y - a.y;
726
644
  return {
727
645
  x: f,
728
- y: d,
729
- width: c.width,
730
- height: c.height
646
+ y: p,
647
+ width: u.width,
648
+ height: u.height
731
649
  };
732
650
  }
733
- function wt(t) {
734
- return L(t).position === "static";
651
+ function ft(t) {
652
+ return T(t).position === "static";
735
653
  }
736
- function Yt(t, e) {
737
- if (!W(t) || L(t).position === "fixed")
654
+ function Bt(t, e) {
655
+ if (!D(t) || T(t).position === "fixed")
738
656
  return null;
739
657
  if (e)
740
658
  return e(t);
741
659
  let n = t.offsetParent;
742
660
  return N(t) === n && (n = n.ownerDocument.body), n;
743
661
  }
744
- function de(t, e) {
745
- const n = A(t);
746
- if (mt(t))
662
+ function oe(t, e) {
663
+ const n = P(t);
664
+ if (ct(t))
747
665
  return n;
748
- if (!W(t)) {
749
- let i = V(t);
750
- for (; i && !U(i); ) {
751
- if (k(i) && !wt(i))
752
- return i;
753
- i = V(i);
666
+ if (!D(t)) {
667
+ let r = _(t);
668
+ for (; r && !z(r); ) {
669
+ if (A(r) && !ft(r))
670
+ return r;
671
+ r = _(r);
754
672
  }
755
673
  return n;
756
674
  }
757
- let o = Yt(t, e);
758
- for (; o && nn(o) && wt(o); )
759
- o = Yt(o, e);
760
- return o && U(o) && wt(o) && !Tt(o) ? n : o || cn(t) || n;
675
+ let o = Bt(t, e);
676
+ for (; o && He(o) && ft(o); )
677
+ o = Bt(o, e);
678
+ return o && z(o) && ft(o) && !bt(o) ? n : o || Ge(t) || n;
761
679
  }
762
- const On = async function(t) {
763
- const e = this.getOffsetParent || de, n = this.getDimensions, o = await n(t.floating);
680
+ const un = async function(t) {
681
+ const e = this.getOffsetParent || oe, n = this.getDimensions, o = await n(t.floating);
764
682
  return {
765
- reference: xn(t.reference, await e(t.floating), t.strategy),
683
+ reference: cn(t.reference, await e(t.floating), t.strategy),
766
684
  floating: {
767
685
  x: 0,
768
686
  y: 0,
@@ -771,194 +689,194 @@ const On = async function(t) {
771
689
  }
772
690
  };
773
691
  };
774
- function Sn(t) {
775
- return L(t).direction === "rtl";
692
+ function an(t) {
693
+ return T(t).direction === "rtl";
776
694
  }
777
- const Cn = {
778
- convertOffsetParentRelativeRectToViewportRelativeRect: dn,
695
+ const fn = {
696
+ convertOffsetParentRelativeRectToViewportRelativeRect: Ze,
779
697
  getDocumentElement: N,
780
- getClippingRect: yn,
781
- getOffsetParent: de,
782
- getElementRects: On,
783
- getClientRects: pn,
784
- getDimensions: bn,
785
- getScale: G,
786
- isElement: k,
787
- isRTL: Sn
788
- }, En = Qe, An = Ue, Rn = (t, e, n) => {
789
- const o = /* @__PURE__ */ new Map(), i = {
790
- platform: Cn,
698
+ getClippingRect: sn,
699
+ getOffsetParent: oe,
700
+ getElementRects: un,
701
+ getClientRects: Qe,
702
+ getDimensions: ln,
703
+ getScale: H,
704
+ isElement: A,
705
+ isRTL: an
706
+ }, dn = Ve, pn = (t, e, n) => {
707
+ const o = /* @__PURE__ */ new Map(), r = {
708
+ platform: fn,
791
709
  ...n
792
710
  }, s = {
793
- ...i.platform,
711
+ ...r.platform,
794
712
  _c: o
795
713
  };
796
- return Ge(t, e, {
797
- ...i,
714
+ return _e(t, e, {
715
+ ...r,
798
716
  platform: s
799
717
  });
800
718
  };
801
- function Pn(t) {
719
+ function mn(t) {
802
720
  return t != null && typeof t == "object" && "$el" in t;
803
721
  }
804
- function qt(t) {
805
- if (Pn(t)) {
722
+ function Nt(t) {
723
+ if (mn(t)) {
806
724
  const e = t.$el;
807
- return Pt(e) && X(e) === "#comment" ? null : e;
725
+ return yt(e) && F(e) === "#comment" ? null : e;
808
726
  }
809
727
  return t;
810
728
  }
811
- function Q(t) {
812
- return typeof t == "function" ? t() : ft(t);
729
+ function J(t) {
730
+ return typeof t == "function" ? t() : it(t);
813
731
  }
814
- function pe(t) {
732
+ function re(t) {
815
733
  return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
816
734
  }
817
- function Gt(t, e) {
818
- const n = pe(t);
735
+ function _t(t, e) {
736
+ const n = re(t);
819
737
  return Math.round(e * n) / n;
820
738
  }
821
- function Tn(t, e, n) {
739
+ function hn(t, e, n) {
822
740
  n === void 0 && (n = {});
823
- const o = n.whileElementsMounted, i = C(() => {
741
+ const o = n.whileElementsMounted, r = O(() => {
824
742
  var x;
825
- return (x = Q(n.open)) != null ? x : !0;
826
- }), s = C(() => Q(n.middleware)), c = C(() => {
743
+ return (x = J(n.open)) != null ? x : !0;
744
+ }), s = O(() => J(n.middleware)), u = O(() => {
827
745
  var x;
828
- return (x = Q(n.placement)) != null ? x : "bottom";
829
- }), r = C(() => {
746
+ return (x = J(n.placement)) != null ? x : "bottom";
747
+ }), i = O(() => {
830
748
  var x;
831
- return (x = Q(n.strategy)) != null ? x : "absolute";
832
- }), l = C(() => {
749
+ return (x = J(n.strategy)) != null ? x : "absolute";
750
+ }), l = O(() => {
833
751
  var x;
834
- return (x = Q(n.transform)) != null ? x : !0;
835
- }), a = C(() => qt(t.value)), u = C(() => qt(e.value)), f = B(0), d = B(0), p = B(r.value), v = B(c.value), w = E({}), m = B(!1), h = C(() => {
752
+ return (x = J(n.transform)) != null ? x : !0;
753
+ }), c = O(() => Nt(t.value)), a = O(() => Nt(e.value)), f = B(0), p = B(0), m = B(i.value), g = B(u.value), y = C({}), d = B(!1), h = O(() => {
836
754
  const x = {
837
- position: p.value,
755
+ position: m.value,
838
756
  left: "0",
839
757
  top: "0"
840
758
  };
841
- if (!u.value)
759
+ if (!a.value)
842
760
  return x;
843
- const R = Gt(u.value, f.value), $ = Gt(u.value, d.value);
761
+ const W = _t(a.value, f.value), q = _t(a.value, p.value);
844
762
  return l.value ? {
845
763
  ...x,
846
- transform: "translate(" + R + "px, " + $ + "px)",
847
- ...pe(u.value) >= 1.5 && {
764
+ transform: "translate(" + W + "px, " + q + "px)",
765
+ ...re(a.value) >= 1.5 && {
848
766
  willChange: "transform"
849
767
  }
850
768
  } : {
851
- position: p.value,
852
- left: R + "px",
853
- top: $ + "px"
769
+ position: m.value,
770
+ left: W + "px",
771
+ top: q + "px"
854
772
  };
855
773
  });
856
- let g;
857
- function y() {
858
- if (a.value == null || u.value == null)
774
+ let v;
775
+ function b() {
776
+ if (c.value == null || a.value == null)
859
777
  return;
860
- const x = i.value;
861
- Rn(a.value, u.value, {
778
+ const x = r.value;
779
+ pn(c.value, a.value, {
862
780
  middleware: s.value,
863
- placement: c.value,
864
- strategy: r.value
865
- }).then((R) => {
866
- f.value = R.x, d.value = R.y, p.value = R.strategy, v.value = R.placement, w.value = R.middlewareData, m.value = x !== !1;
781
+ placement: u.value,
782
+ strategy: i.value
783
+ }).then((W) => {
784
+ f.value = W.x, p.value = W.y, m.value = W.strategy, g.value = W.placement, y.value = W.middlewareData, d.value = x !== !1;
867
785
  });
868
786
  }
869
- function b() {
870
- typeof g == "function" && (g(), g = void 0);
871
- }
872
787
  function S() {
873
- if (b(), o === void 0) {
874
- y();
788
+ typeof v == "function" && (v(), v = void 0);
789
+ }
790
+ function w() {
791
+ if (S(), o === void 0) {
792
+ b();
875
793
  return;
876
794
  }
877
- if (a.value != null && u.value != null) {
878
- g = o(a.value, u.value, y);
795
+ if (c.value != null && a.value != null) {
796
+ v = o(c.value, a.value, b);
879
797
  return;
880
798
  }
881
799
  }
882
- function rt() {
883
- i.value || (m.value = !1);
800
+ function Y() {
801
+ r.value || (d.value = !1);
884
802
  }
885
- return P([s, c, r, i], y, {
803
+ return R([s, u, i, r], b, {
886
804
  flush: "sync"
887
- }), P([a, u], S, {
805
+ }), R([c, a], w, {
888
806
  flush: "sync"
889
- }), P(i, rt, {
807
+ }), R(r, Y, {
890
808
  flush: "sync"
891
- }), te() && ee(b), {
892
- x: q(f),
893
- y: q(d),
894
- strategy: q(p),
895
- placement: q(v),
896
- middlewareData: q(w),
897
- isPositioned: q(m),
809
+ }), Ht() && zt(S), {
810
+ x: j(f),
811
+ y: j(p),
812
+ strategy: j(m),
813
+ placement: j(g),
814
+ middlewareData: j(y),
815
+ isPositioned: j(d),
898
816
  floatingStyles: h,
899
- update: y
817
+ update: b
900
818
  };
901
819
  }
902
- function K(t) {
903
- return te() ? (ee(t), !0) : !1;
820
+ function X(t) {
821
+ return Ht() ? (zt(t), !0) : !1;
904
822
  }
905
- const Lt = typeof window < "u" && typeof document < "u";
823
+ const Ot = typeof window < "u" && typeof document < "u";
906
824
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
907
- const kn = (t) => t != null, Ln = Object.prototype.toString, me = (t) => Ln.call(t) === "[object Object]", D = () => {
908
- }, Et = /* @__PURE__ */ Dn();
909
- function Dn() {
825
+ const vn = (t) => t != null, gn = Object.prototype.toString, ie = (t) => gn.call(t) === "[object Object]", k = () => {
826
+ }, gt = /* @__PURE__ */ wn();
827
+ function wn() {
910
828
  var t, e;
911
- return Lt && ((t = window?.navigator) == null ? void 0 : t.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((e = window?.navigator) == null ? void 0 : e.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
829
+ return Ot && ((t = window?.navigator) == null ? void 0 : t.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((e = window?.navigator) == null ? void 0 : e.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
912
830
  }
913
- function Mn(...t) {
831
+ function yn(...t) {
914
832
  if (t.length !== 1)
915
- return Oe(...t);
833
+ return me(...t);
916
834
  const e = t[0];
917
- return typeof e == "function" ? Se(Ce(() => ({ get: e, set: D }))) : B(e);
835
+ return typeof e == "function" ? he(ve(() => ({ get: e, set: k }))) : B(e);
918
836
  }
919
- function Wn(t, e) {
837
+ function bn(t, e) {
920
838
  function n(...o) {
921
- return new Promise((i, s) => {
922
- Promise.resolve(t(() => e.apply(this, o), { fn: e, thisArg: this, args: o })).then(i).catch(s);
839
+ return new Promise((r, s) => {
840
+ Promise.resolve(t(() => e.apply(this, o), { fn: e, thisArg: this, args: o })).then(r).catch(s);
923
841
  });
924
842
  }
925
843
  return n;
926
844
  }
927
- function Bn(t, e = {}) {
928
- let n, o, i = D;
845
+ function xn(t, e = {}) {
846
+ let n, o, r = k;
929
847
  const s = (l) => {
930
- clearTimeout(l), i(), i = D;
848
+ clearTimeout(l), r(), r = k;
931
849
  };
932
- let c;
850
+ let u;
933
851
  return (l) => {
934
- const a = O(t), u = O(e.maxWait);
935
- return n && s(n), a <= 0 || u !== void 0 && u <= 0 ? (o && (s(o), o = void 0), Promise.resolve(l())) : new Promise((f, d) => {
936
- i = e.rejectOnCancel ? d : f, c = l, u && !o && (o = setTimeout(() => {
937
- n && s(n), o = void 0, f(c());
938
- }, u)), n = setTimeout(() => {
852
+ const c = E(t), a = E(e.maxWait);
853
+ return n && s(n), c <= 0 || a !== void 0 && a <= 0 ? (o && (s(o), o = void 0), Promise.resolve(l())) : new Promise((f, p) => {
854
+ r = e.rejectOnCancel ? p : f, u = l, a && !o && (o = setTimeout(() => {
855
+ n && s(n), o = void 0, f(u());
856
+ }, a)), n = setTimeout(() => {
939
857
  o && s(o), o = void 0, f(l());
940
- }, a);
858
+ }, c);
941
859
  });
942
860
  };
943
861
  }
944
- function z(t) {
862
+ function V(t) {
945
863
  return Array.isArray(t) ? t : [t];
946
864
  }
947
- function Nn(t) {
948
- return ne();
865
+ function On(t) {
866
+ return Xt();
949
867
  }
950
868
  // @__NO_SIDE_EFFECTS__
951
- function Jt(t, e = 200, n = {}) {
952
- return Wn(
953
- Bn(e, n),
869
+ function $t(t, e = 200, n = {}) {
870
+ return bn(
871
+ xn(e, n),
954
872
  t
955
873
  );
956
874
  }
957
- function In(t, e = !0, n) {
958
- Nn() ? At(t, n) : e ? t() : xe(t);
875
+ function Sn(t, e = !0, n) {
876
+ On() ? wt(t, n) : e ? t() : pe(t);
959
877
  }
960
- function he(t, e, n) {
961
- return P(
878
+ function se(t, e, n) {
879
+ return R(
962
880
  t,
963
881
  e,
964
882
  {
@@ -967,100 +885,100 @@ function he(t, e, n) {
967
885
  }
968
886
  );
969
887
  }
970
- const it = Lt ? window : void 0;
971
- function _(t) {
888
+ const tt = Ot ? window : void 0;
889
+ function $(t) {
972
890
  var e;
973
- const n = O(t);
891
+ const n = E(t);
974
892
  return (e = n?.$el) != null ? e : n;
975
893
  }
976
- function ut(...t) {
894
+ function rt(...t) {
977
895
  const e = [], n = () => {
978
- e.forEach((r) => r()), e.length = 0;
979
- }, o = (r, l, a, u) => (r.addEventListener(l, a, u), () => r.removeEventListener(l, a, u)), i = C(() => {
980
- const r = z(O(t[0])).filter((l) => l != null);
981
- return r.every((l) => typeof l != "string") ? r : void 0;
982
- }), s = he(
896
+ e.forEach((i) => i()), e.length = 0;
897
+ }, o = (i, l, c, a) => (i.addEventListener(l, c, a), () => i.removeEventListener(l, c, a)), r = O(() => {
898
+ const i = V(E(t[0])).filter((l) => l != null);
899
+ return i.every((l) => typeof l != "string") ? i : void 0;
900
+ }), s = se(
983
901
  () => {
984
- var r, l;
902
+ var i, l;
985
903
  return [
986
- (l = (r = i.value) == null ? void 0 : r.map((a) => _(a))) != null ? l : [it].filter((a) => a != null),
987
- z(O(i.value ? t[1] : t[0])),
988
- z(ft(i.value ? t[2] : t[1])),
904
+ (l = (i = r.value) == null ? void 0 : i.map((c) => $(c))) != null ? l : [tt].filter((c) => c != null),
905
+ V(E(r.value ? t[1] : t[0])),
906
+ V(it(r.value ? t[2] : t[1])),
989
907
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
990
- O(i.value ? t[3] : t[2])
908
+ E(r.value ? t[3] : t[2])
991
909
  ];
992
910
  },
993
- ([r, l, a, u]) => {
994
- if (n(), !r?.length || !l?.length || !a?.length)
911
+ ([i, l, c, a]) => {
912
+ if (n(), !i?.length || !l?.length || !c?.length)
995
913
  return;
996
- const f = me(u) ? { ...u } : u;
914
+ const f = ie(a) ? { ...a } : a;
997
915
  e.push(
998
- ...r.flatMap(
999
- (d) => l.flatMap(
1000
- (p) => a.map((v) => o(d, p, v, f))
916
+ ...i.flatMap(
917
+ (p) => l.flatMap(
918
+ (m) => c.map((g) => o(p, m, g, f))
1001
919
  )
1002
920
  )
1003
921
  );
1004
922
  },
1005
923
  { flush: "post" }
1006
- ), c = () => {
924
+ ), u = () => {
1007
925
  s(), n();
1008
926
  };
1009
- return K(n), c;
927
+ return X(n), u;
1010
928
  }
1011
929
  // @__NO_SIDE_EFFECTS__
1012
- function Vn() {
1013
- const t = E(!1), e = ne();
1014
- return e && At(() => {
930
+ function En() {
931
+ const t = C(!1), e = Xt();
932
+ return e && wt(() => {
1015
933
  t.value = !0;
1016
934
  }, e), t;
1017
935
  }
1018
936
  // @__NO_SIDE_EFFECTS__
1019
- function ve(t) {
1020
- const e = /* @__PURE__ */ Vn();
1021
- return C(() => (e.value, !!t()));
937
+ function le(t) {
938
+ const e = /* @__PURE__ */ En();
939
+ return O(() => (e.value, !!t()));
1022
940
  }
1023
- function ge(t, e, n = {}) {
1024
- const { window: o = it, ...i } = n;
941
+ function ce(t, e, n = {}) {
942
+ const { window: o = tt, ...r } = n;
1025
943
  let s;
1026
- const c = /* @__PURE__ */ ve(() => o && "MutationObserver" in o), r = () => {
944
+ const u = /* @__PURE__ */ le(() => o && "MutationObserver" in o), i = () => {
1027
945
  s && (s.disconnect(), s = void 0);
1028
- }, l = C(() => {
1029
- const d = O(t), p = z(d).map(_).filter(kn);
1030
- return new Set(p);
1031
- }), a = P(
946
+ }, l = O(() => {
947
+ const p = E(t), m = V(p).map($).filter(vn);
948
+ return new Set(m);
949
+ }), c = R(
1032
950
  l,
1033
- (d) => {
1034
- r(), c.value && d.size && (s = new MutationObserver(e), d.forEach((p) => s.observe(p, i)));
951
+ (p) => {
952
+ i(), u.value && p.size && (s = new MutationObserver(e), p.forEach((m) => s.observe(m, r)));
1035
953
  },
1036
954
  { immediate: !0, flush: "post" }
1037
- ), u = () => s?.takeRecords(), f = () => {
1038
- a(), r();
955
+ ), a = () => s?.takeRecords(), f = () => {
956
+ c(), i();
1039
957
  };
1040
- return K(f), {
1041
- isSupported: c,
958
+ return X(f), {
959
+ isSupported: u,
1042
960
  stop: f,
1043
- takeRecords: u
961
+ takeRecords: a
1044
962
  };
1045
963
  }
1046
- function _n(t, e, n = {}) {
964
+ function Cn(t, e, n = {}) {
1047
965
  const {
1048
- window: o = it,
1049
- document: i = o?.document,
966
+ window: o = tt,
967
+ document: r = o?.document,
1050
968
  flush: s = "sync"
1051
969
  } = n;
1052
- if (!o || !i)
1053
- return D;
1054
- let c;
1055
- const r = (u) => {
1056
- c?.(), c = u;
1057
- }, l = Ee(() => {
1058
- const u = _(t);
1059
- if (u) {
1060
- const { stop: f } = ge(
1061
- i,
1062
- (d) => {
1063
- d.map((v) => [...v.removedNodes]).flat().some((v) => v === u || v.contains(u)) && e(d);
970
+ if (!o || !r)
971
+ return k;
972
+ let u;
973
+ const i = (a) => {
974
+ u?.(), u = a;
975
+ }, l = ge(() => {
976
+ const a = $(t);
977
+ if (a) {
978
+ const { stop: f } = ce(
979
+ r,
980
+ (p) => {
981
+ p.map((g) => [...g.removedNodes]).flat().some((g) => g === a || g.contains(a)) && e(p);
1064
982
  },
1065
983
  {
1066
984
  window: o,
@@ -1068,288 +986,289 @@ function _n(t, e, n = {}) {
1068
986
  subtree: !0
1069
987
  }
1070
988
  );
1071
- r(f);
989
+ i(f);
1072
990
  }
1073
- }, { flush: s }), a = () => {
1074
- l(), r();
991
+ }, { flush: s }), c = () => {
992
+ l(), i();
1075
993
  };
1076
- return K(a), a;
994
+ return X(c), c;
1077
995
  }
1078
- function $n(t, e, n = {}) {
1079
- const { window: o = it, ...i } = n;
996
+ function Pn(t, e, n = {}) {
997
+ const { window: o = tt, ...r } = n;
1080
998
  let s;
1081
- const c = /* @__PURE__ */ ve(() => o && "ResizeObserver" in o), r = () => {
999
+ const u = /* @__PURE__ */ le(() => o && "ResizeObserver" in o), i = () => {
1082
1000
  s && (s.disconnect(), s = void 0);
1083
- }, l = C(() => {
1084
- const f = O(t);
1085
- return Array.isArray(f) ? f.map((d) => _(d)) : [_(f)];
1086
- }), a = P(
1001
+ }, l = O(() => {
1002
+ const f = E(t);
1003
+ return Array.isArray(f) ? f.map((p) => $(p)) : [$(f)];
1004
+ }), c = R(
1087
1005
  l,
1088
1006
  (f) => {
1089
- if (r(), c.value && o) {
1007
+ if (i(), u.value && o) {
1090
1008
  s = new ResizeObserver(e);
1091
- for (const d of f)
1092
- d && s.observe(d, i);
1009
+ for (const p of f)
1010
+ p && s.observe(p, r);
1093
1011
  }
1094
1012
  },
1095
1013
  { immediate: !0, flush: "post" }
1096
- ), u = () => {
1097
- r(), a();
1014
+ ), a = () => {
1015
+ i(), c();
1098
1016
  };
1099
- return K(u), {
1100
- isSupported: c,
1101
- stop: u
1017
+ return X(a), {
1018
+ isSupported: u,
1019
+ stop: a
1102
1020
  };
1103
1021
  }
1104
- function Fn(t, e = {}) {
1022
+ function Rn(t, e = {}) {
1105
1023
  const {
1106
1024
  reset: n = !0,
1107
1025
  windowResize: o = !0,
1108
- windowScroll: i = !0,
1026
+ windowScroll: r = !0,
1109
1027
  immediate: s = !0,
1110
- updateTiming: c = "sync"
1111
- } = e, r = E(0), l = E(0), a = E(0), u = E(0), f = E(0), d = E(0), p = E(0), v = E(0);
1112
- function w() {
1113
- const h = _(t);
1028
+ updateTiming: u = "sync"
1029
+ } = e, i = C(0), l = C(0), c = C(0), a = C(0), f = C(0), p = C(0), m = C(0), g = C(0);
1030
+ function y() {
1031
+ const h = $(t);
1114
1032
  if (!h) {
1115
- n && (r.value = 0, l.value = 0, a.value = 0, u.value = 0, f.value = 0, d.value = 0, p.value = 0, v.value = 0);
1033
+ n && (i.value = 0, l.value = 0, c.value = 0, a.value = 0, f.value = 0, p.value = 0, m.value = 0, g.value = 0);
1116
1034
  return;
1117
1035
  }
1118
- const g = h.getBoundingClientRect();
1119
- r.value = g.height, l.value = g.bottom, a.value = g.left, u.value = g.right, f.value = g.top, d.value = g.width, p.value = g.x, v.value = g.y;
1036
+ const v = h.getBoundingClientRect();
1037
+ i.value = v.height, l.value = v.bottom, c.value = v.left, a.value = v.right, f.value = v.top, p.value = v.width, m.value = v.x, g.value = v.y;
1120
1038
  }
1121
- function m() {
1122
- c === "sync" ? w() : c === "next-frame" && requestAnimationFrame(() => w());
1039
+ function d() {
1040
+ u === "sync" ? y() : u === "next-frame" && requestAnimationFrame(() => y());
1123
1041
  }
1124
- return $n(t, m), P(() => _(t), (h) => !h && m()), ge(t, m, {
1042
+ return Pn(t, d), R(() => $(t), (h) => !h && d()), ce(t, d, {
1125
1043
  attributeFilter: ["style", "class"]
1126
- }), i && ut("scroll", m, { capture: !0, passive: !0 }), o && ut("resize", m, { passive: !0 }), In(() => {
1127
- s && m();
1044
+ }), r && rt("scroll", d, { capture: !0, passive: !0 }), o && rt("resize", d, { passive: !0 }), Sn(() => {
1045
+ s && d();
1128
1046
  }), {
1129
- height: r,
1047
+ height: i,
1130
1048
  bottom: l,
1131
- left: a,
1132
- right: u,
1049
+ left: c,
1050
+ right: a,
1133
1051
  top: f,
1134
- width: d,
1135
- x: p,
1136
- y: v,
1137
- update: m
1052
+ width: p,
1053
+ x: m,
1054
+ y: g,
1055
+ update: d
1138
1056
  };
1139
1057
  }
1140
- function Ut(t, e = {}) {
1058
+ function It(t, e = {}) {
1141
1059
  const {
1142
1060
  delayEnter: n = 0,
1143
1061
  delayLeave: o = 0,
1144
- triggerOnRemoval: i = !1,
1145
- window: s = it
1146
- } = e, c = E(!1);
1147
- let r;
1148
- const l = (a) => {
1149
- const u = a ? n : o;
1150
- r && (clearTimeout(r), r = void 0), u ? r = setTimeout(() => c.value = a, u) : c.value = a;
1062
+ triggerOnRemoval: r = !1,
1063
+ window: s = tt
1064
+ } = e, u = C(!1);
1065
+ let i;
1066
+ const l = (c) => {
1067
+ const a = c ? n : o;
1068
+ i && (clearTimeout(i), i = void 0), a ? i = setTimeout(() => u.value = c, a) : u.value = c;
1151
1069
  };
1152
- return s && (ut(t, "mouseenter", () => l(!0), { passive: !0 }), ut(t, "mouseleave", () => l(!1), { passive: !0 }), i && _n(
1153
- C(() => _(t)),
1070
+ return s && (rt(t, "mouseenter", () => l(!0), { passive: !0 }), rt(t, "mouseleave", () => l(!1), { passive: !0 }), r && Cn(
1071
+ O(() => $(t)),
1154
1072
  () => l(!1)
1155
- )), c;
1073
+ )), u;
1156
1074
  }
1157
- const we = Lt ? window : void 0;
1158
- function tt(t) {
1075
+ const ue = Ot ? window : void 0;
1076
+ function U(t) {
1159
1077
  var e;
1160
- const n = O(t);
1078
+ const n = E(t);
1161
1079
  return (e = n?.$el) != null ? e : n;
1162
1080
  }
1163
- function st(...t) {
1081
+ function et(...t) {
1164
1082
  const e = [], n = () => {
1165
- e.forEach((r) => r()), e.length = 0;
1166
- }, o = (r, l, a, u) => (r.addEventListener(l, a, u), () => r.removeEventListener(l, a, u)), i = C(() => {
1167
- const r = z(O(t[0])).filter((l) => l != null);
1168
- return r.every((l) => typeof l != "string") ? r : void 0;
1169
- }), s = he(
1083
+ e.forEach((i) => i()), e.length = 0;
1084
+ }, o = (i, l, c, a) => (i.addEventListener(l, c, a), () => i.removeEventListener(l, c, a)), r = O(() => {
1085
+ const i = V(E(t[0])).filter((l) => l != null);
1086
+ return i.every((l) => typeof l != "string") ? i : void 0;
1087
+ }), s = se(
1170
1088
  () => {
1171
- var r, l;
1089
+ var i, l;
1172
1090
  return [
1173
- (l = (r = i.value) == null ? void 0 : r.map((a) => tt(a))) != null ? l : [we].filter((a) => a != null),
1174
- z(O(i.value ? t[1] : t[0])),
1175
- z(ft(i.value ? t[2] : t[1])),
1091
+ (l = (i = r.value) == null ? void 0 : i.map((c) => U(c))) != null ? l : [ue].filter((c) => c != null),
1092
+ V(E(r.value ? t[1] : t[0])),
1093
+ V(it(r.value ? t[2] : t[1])),
1176
1094
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
1177
- O(i.value ? t[3] : t[2])
1095
+ E(r.value ? t[3] : t[2])
1178
1096
  ];
1179
1097
  },
1180
- ([r, l, a, u]) => {
1181
- if (n(), !r?.length || !l?.length || !a?.length)
1098
+ ([i, l, c, a]) => {
1099
+ if (n(), !i?.length || !l?.length || !c?.length)
1182
1100
  return;
1183
- const f = me(u) ? { ...u } : u;
1101
+ const f = ie(a) ? { ...a } : a;
1184
1102
  e.push(
1185
- ...r.flatMap(
1186
- (d) => l.flatMap(
1187
- (p) => a.map((v) => o(d, p, v, f))
1103
+ ...i.flatMap(
1104
+ (p) => l.flatMap(
1105
+ (m) => c.map((g) => o(p, m, g, f))
1188
1106
  )
1189
1107
  )
1190
1108
  );
1191
1109
  },
1192
1110
  { flush: "post" }
1193
- ), c = () => {
1111
+ ), u = () => {
1194
1112
  s(), n();
1195
1113
  };
1196
- return K(n), c;
1114
+ return X(n), u;
1197
1115
  }
1198
- let Kt = !1;
1199
- function Zt(t, e, n = {}) {
1200
- const { window: o = we, ignore: i = [], capture: s = !0, detectIframe: c = !1, controls: r = !1 } = n;
1116
+ let Vt = !1;
1117
+ function Ft(t, e, n = {}) {
1118
+ const { window: o = ue, ignore: r = [], capture: s = !0, detectIframe: u = !1, controls: i = !1 } = n;
1201
1119
  if (!o)
1202
- return r ? { stop: D, cancel: D, trigger: D } : D;
1203
- if (Et && !Kt) {
1204
- Kt = !0;
1205
- const m = { passive: !0 };
1206
- Array.from(o.document.body.children).forEach((h) => h.addEventListener("click", D, m)), o.document.documentElement.addEventListener("click", D, m);
1120
+ return i ? { stop: k, cancel: k, trigger: k } : k;
1121
+ if (gt && !Vt) {
1122
+ Vt = !0;
1123
+ const d = { passive: !0 };
1124
+ Array.from(o.document.body.children).forEach((h) => h.addEventListener("click", k, d)), o.document.documentElement.addEventListener("click", k, d);
1207
1125
  }
1208
1126
  let l = !0;
1209
- const a = (m) => O(i).some((h) => {
1127
+ const c = (d) => E(r).some((h) => {
1210
1128
  if (typeof h == "string")
1211
- return Array.from(o.document.querySelectorAll(h)).some((g) => g === m.target || m.composedPath().includes(g));
1129
+ return Array.from(o.document.querySelectorAll(h)).some((v) => v === d.target || d.composedPath().includes(v));
1212
1130
  {
1213
- const g = tt(h);
1214
- return g && (m.target === g || m.composedPath().includes(g));
1131
+ const v = U(h);
1132
+ return v && (d.target === v || d.composedPath().includes(v));
1215
1133
  }
1216
1134
  });
1217
- function u(m) {
1218
- const h = O(m);
1135
+ function a(d) {
1136
+ const h = E(d);
1219
1137
  return h && h.$.subTree.shapeFlag === 16;
1220
1138
  }
1221
- function f(m, h) {
1222
- const g = O(m), y = g.$.subTree && g.$.subTree.children;
1223
- return y == null || !Array.isArray(y) ? !1 : y.some((b) => b.el === h.target || h.composedPath().includes(b.el));
1139
+ function f(d, h) {
1140
+ const v = E(d), b = v.$.subTree && v.$.subTree.children;
1141
+ return b == null || !Array.isArray(b) ? !1 : b.some((S) => S.el === h.target || h.composedPath().includes(S.el));
1224
1142
  }
1225
- const d = (m) => {
1226
- const h = tt(t);
1227
- if (m.target != null && !(!(h instanceof Element) && u(t) && f(t, m)) && !(!h || h === m.target || m.composedPath().includes(h))) {
1228
- if ("detail" in m && m.detail === 0 && (l = !a(m)), !l) {
1143
+ const p = (d) => {
1144
+ const h = U(t);
1145
+ if (d.target != null && !(!(h instanceof Element) && a(t) && f(t, d)) && !(!h || h === d.target || d.composedPath().includes(h))) {
1146
+ if ("detail" in d && d.detail === 0 && (l = !c(d)), !l) {
1229
1147
  l = !0;
1230
1148
  return;
1231
1149
  }
1232
- e(m);
1150
+ e(d);
1233
1151
  }
1234
1152
  };
1235
- let p = !1;
1236
- const v = [
1237
- st(o, "click", (m) => {
1238
- p || (p = !0, setTimeout(() => {
1239
- p = !1;
1240
- }, 0), d(m));
1153
+ let m = !1;
1154
+ const g = [
1155
+ et(o, "click", (d) => {
1156
+ m || (m = !0, setTimeout(() => {
1157
+ m = !1;
1158
+ }, 0), p(d));
1241
1159
  }, { passive: !0, capture: s }),
1242
- st(o, "pointerdown", (m) => {
1243
- const h = tt(t);
1244
- l = !a(m) && !!(h && !m.composedPath().includes(h));
1160
+ et(o, "pointerdown", (d) => {
1161
+ const h = U(t);
1162
+ l = !c(d) && !!(h && !d.composedPath().includes(h));
1245
1163
  }, { passive: !0 }),
1246
- c && st(o, "blur", (m) => {
1164
+ u && et(o, "blur", (d) => {
1247
1165
  setTimeout(() => {
1248
1166
  var h;
1249
- const g = tt(t);
1250
- ((h = o.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !g?.contains(o.document.activeElement) && e(m);
1167
+ const v = U(t);
1168
+ ((h = o.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !v?.contains(o.document.activeElement) && e(d);
1251
1169
  }, 0);
1252
1170
  }, { passive: !0 })
1253
- ].filter(Boolean), w = () => v.forEach((m) => m());
1254
- return r ? {
1255
- stop: w,
1171
+ ].filter(Boolean), y = () => g.forEach((d) => d());
1172
+ return i ? {
1173
+ stop: y,
1256
1174
  cancel: () => {
1257
1175
  l = !1;
1258
1176
  },
1259
- trigger: (m) => {
1260
- l = !0, d(m), l = !1;
1177
+ trigger: (d) => {
1178
+ l = !0, p(d), l = !1;
1261
1179
  }
1262
- } : w;
1180
+ } : y;
1263
1181
  }
1264
- const yt = /* @__PURE__ */ new WeakMap(), jn = {
1182
+ const dt = /* @__PURE__ */ new WeakMap(), An = {
1265
1183
  mounted(t, e) {
1266
1184
  const n = !e.modifiers.bubble;
1267
1185
  let o;
1268
1186
  if (typeof e.value == "function")
1269
- o = Zt(t, e.value, { capture: n });
1187
+ o = Ft(t, e.value, { capture: n });
1270
1188
  else {
1271
- const [i, s] = e.value;
1272
- o = Zt(t, i, Object.assign({ capture: n }, s));
1189
+ const [r, s] = e.value;
1190
+ o = Ft(t, r, Object.assign({ capture: n }, s));
1273
1191
  }
1274
- yt.set(t, o);
1192
+ dt.set(t, o);
1275
1193
  },
1276
1194
  unmounted(t) {
1277
- const e = yt.get(t);
1278
- e && typeof e == "function" ? e() : e?.stop(), yt.delete(t);
1195
+ const e = dt.get(t);
1196
+ e && typeof e == "function" ? e() : e?.stop(), dt.delete(t);
1279
1197
  }
1280
1198
  };
1281
- function bt(t) {
1199
+ function pt(t) {
1282
1200
  return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
1283
1201
  }
1284
- function ye(t) {
1202
+ function ae(t) {
1285
1203
  const e = window.getComputedStyle(t);
1286
1204
  if (e.overflowX === "scroll" || e.overflowY === "scroll" || e.overflowX === "auto" && t.clientWidth < t.scrollWidth || e.overflowY === "auto" && t.clientHeight < t.scrollHeight)
1287
1205
  return !0;
1288
1206
  {
1289
1207
  const n = t.parentNode;
1290
- return !n || n.tagName === "BODY" ? !1 : ye(n);
1208
+ return !n || n.tagName === "BODY" ? !1 : ae(n);
1291
1209
  }
1292
1210
  }
1293
- function Hn(t) {
1211
+ function Tn(t) {
1294
1212
  const e = t || window.event, n = e.target;
1295
- return ye(n) ? !1 : e.touches.length > 1 ? !0 : (e.preventDefault && e.preventDefault(), !1);
1296
- }
1297
- const xt = /* @__PURE__ */ new WeakMap();
1298
- function zn(t, e = !1) {
1299
- const n = E(e);
1300
- let o = null, i = "";
1301
- P(Mn(t), (r) => {
1302
- const l = bt(O(r));
1213
+ return ae(n) ? !1 : e.touches.length > 1 ? !0 : (e.preventDefault && e.preventDefault(), !1);
1214
+ }
1215
+ const mt = /* @__PURE__ */ new WeakMap();
1216
+ function Ln(t, e = !1) {
1217
+ const n = C(e);
1218
+ let o = null, r = "";
1219
+ R(yn(t), (i) => {
1220
+ const l = pt(E(i));
1303
1221
  if (l) {
1304
- const a = l;
1305
- if (xt.get(a) || xt.set(a, a.style.overflow), a.style.overflow !== "hidden" && (i = a.style.overflow), a.style.overflow === "hidden")
1222
+ const c = l;
1223
+ if (mt.get(c) || mt.set(c, c.style.overflow), c.style.overflow !== "hidden" && (r = c.style.overflow), c.style.overflow === "hidden")
1306
1224
  return n.value = !0;
1307
1225
  if (n.value)
1308
- return a.style.overflow = "hidden";
1226
+ return c.style.overflow = "hidden";
1309
1227
  }
1310
1228
  }, {
1311
1229
  immediate: !0
1312
1230
  });
1313
1231
  const s = () => {
1314
- const r = bt(O(t));
1315
- !r || n.value || (Et && (o = st(
1316
- r,
1232
+ const i = pt(E(t));
1233
+ !i || n.value || (gt && (o = et(
1234
+ i,
1317
1235
  "touchmove",
1318
1236
  (l) => {
1319
- Hn(l);
1237
+ Tn(l);
1320
1238
  },
1321
1239
  { passive: !1 }
1322
- )), r.style.overflow = "hidden", n.value = !0);
1323
- }, c = () => {
1324
- const r = bt(O(t));
1325
- !r || !n.value || (Et && o?.(), r.style.overflow = i, xt.delete(r), n.value = !1);
1240
+ )), i.style.overflow = "hidden", n.value = !0);
1241
+ }, u = () => {
1242
+ const i = pt(E(t));
1243
+ !i || !n.value || (gt && o?.(), i.style.overflow = r, mt.delete(i), n.value = !1);
1326
1244
  };
1327
- return K(c), C({
1245
+ return X(u), O({
1328
1246
  get() {
1329
1247
  return n.value;
1330
1248
  },
1331
- set(r) {
1332
- r ? s() : c();
1249
+ set(i) {
1250
+ i ? s() : u();
1333
1251
  }
1334
1252
  });
1335
1253
  }
1336
- function Xn() {
1254
+ function kn() {
1337
1255
  let t = !1;
1338
- const e = E(!1);
1256
+ const e = C(!1);
1339
1257
  return (n, o) => {
1340
1258
  if (e.value = o.value, t)
1341
1259
  return;
1342
1260
  t = !0;
1343
- const i = zn(n, o.value);
1344
- P(e, (s) => i.value = s);
1261
+ const r = Ln(n, o.value);
1262
+ R(e, (s) => r.value = s);
1345
1263
  };
1346
1264
  }
1347
- Xn();
1348
- const Yn = { style: { width: "fit-content" } }, qn = /* @__PURE__ */ Ae({
1265
+ kn();
1266
+ const Mn = { style: { width: "fit-content" } }, Dn = /* @__PURE__ */ we({
1349
1267
  __name: "PvPopoverV2",
1350
- props: /* @__PURE__ */ Re({
1268
+ props: /* @__PURE__ */ ye({
1351
1269
  disableAutoPlacement: { type: Boolean, default: !1 },
1352
- position: { default: "bottom-left", type: String },
1270
+ allowedAutoPlacements: { default: () => ["top-left", "top-right", "bottom-left", "bottom-right"], type: Array },
1271
+ position: { default: "bottom-center", type: String },
1353
1272
  positioningStrategy: { default: "absolute", type: String },
1354
1273
  showOnHover: { type: Boolean, default: !1 },
1355
1274
  disableInteractive: { type: Boolean, default: !1 },
@@ -1357,15 +1276,14 @@ const Yn = { style: { width: "fit-content" } }, qn = /* @__PURE__ */ Ae({
1357
1276
  disableClickOutsideToClose: { type: Boolean, default: !1 },
1358
1277
  delay: { default: 25, type: Number },
1359
1278
  zIndex: { default: 10, type: Number },
1360
- teleportLocation: { default: "body", type: String },
1361
- offset: { type: Number }
1279
+ teleportLocation: { default: "body", type: String }
1362
1280
  }, {
1363
1281
  modelValue: { type: Boolean },
1364
1282
  modelModifiers: {}
1365
1283
  }),
1366
1284
  emits: ["update:modelValue"],
1367
1285
  setup(t) {
1368
- const e = t, n = Pe(t, "modelValue"), o = B(null), i = B(null), s = B(null), c = Ut(o), r = Ut(s), l = {
1286
+ const e = t, n = be(t, "modelValue"), o = B(null), r = B(null), s = B(null), u = It(o), i = It(s), l = {
1369
1287
  "top-center": "top",
1370
1288
  "bottom-center": "bottom",
1371
1289
  "center-left": "left",
@@ -1374,88 +1292,86 @@ const Yn = { style: { width: "fit-content" } }, qn = /* @__PURE__ */ Ae({
1374
1292
  "top-right": "top-end",
1375
1293
  "bottom-left": "bottom-start",
1376
1294
  "bottom-right": "bottom-end"
1377
- };
1378
- At(() => {
1379
- o.value && (i.value = o.value.firstElementChild);
1295
+ }, c = O(() => e.allowedAutoPlacements?.map((w) => l[w])), a = O(() => l[e.position]);
1296
+ wt(() => {
1297
+ o.value && (r.value = o.value.firstElementChild);
1380
1298
  });
1381
- const a = [];
1382
- e.disableAutoPlacement || a?.push(
1383
- An({
1384
- fallbackStrategy: "initialPlacement"
1299
+ const f = e.disableAutoPlacement ? [] : [
1300
+ dn({
1301
+ allowedPlacements: c.value
1385
1302
  })
1386
- ), e.offset && a?.push(En(e.offset));
1387
- const { floatingStyles: u, update: f } = Tn(i, s, {
1388
- placement: l[e.position],
1303
+ ], { floatingStyles: p, update: m } = hn(r, s, {
1304
+ placement: a,
1389
1305
  strategy: e.positioningStrategy,
1390
- middleware: a
1306
+ middleware: f
1391
1307
  });
1392
- P(n, (y) => {
1393
- y && i.value && s.value && f();
1308
+ R(n, (w) => {
1309
+ w && r.value && s.value && m();
1394
1310
  });
1395
- const d = Fn(i), p = /* @__PURE__ */ Jt(() => {
1396
- n.value && f();
1311
+ const g = Rn(r), y = /* @__PURE__ */ $t(() => {
1312
+ n.value && m();
1397
1313
  }, 5);
1398
- P([d.top, d.left, d.width, d.height], p);
1399
- const v = C(() => ({
1400
- ...u.value,
1314
+ R([g.top, g.left, g.width, g.height], y);
1315
+ const d = O(() => ({
1316
+ ...p.value,
1401
1317
  zIndex: e.zIndex ?? 10
1402
- })), w = /* @__PURE__ */ Jt(
1403
- (y) => {
1404
- n.value = y;
1318
+ })), h = /* @__PURE__ */ $t(
1319
+ (w) => {
1320
+ n.value = w;
1405
1321
  },
1406
1322
  () => e.delay
1407
- ), m = C(() => e.showOnHover ? e.disableInteractive ? c.value : c.value || r.value : !1), h = () => {
1408
- e.showOnHover || w(!n.value);
1409
- }, g = () => {
1410
- e.disableClickOutsideToClose || w(!1);
1323
+ ), v = O(() => e.showOnHover ? e.disableInteractive ? u.value : u.value || i.value : !1), b = () => {
1324
+ e.showOnHover || h(!n.value);
1325
+ }, S = () => {
1326
+ e.disableClickOutsideToClose || h(!1);
1411
1327
  };
1412
- return P(m, (y) => {
1413
- e.showOnHover && w(y);
1414
- }), (y, b) => Bt((Nt(), Te("div", Yn, [
1415
- It(
1328
+ return R(v, (w) => {
1329
+ e.showOnHover && h(w);
1330
+ }), (w, Y) => St((Et(), xe("div", Mn, [
1331
+ Ct(
1416
1332
  "div",
1417
1333
  {
1418
1334
  ref_key: "triggerWrapper",
1419
1335
  ref: o,
1420
- onClick: h
1336
+ onClick: b
1421
1337
  },
1422
1338
  [
1423
- Vt(y.$slots, "trigger")
1339
+ Pt(w.$slots, "trigger")
1424
1340
  ],
1425
1341
  512
1426
1342
  /* NEED_PATCH */
1427
1343
  ),
1428
- y.$slots.content ? (Nt(), ke(De, {
1344
+ w.$slots.content ? (Et(), Oe(Ee, {
1429
1345
  key: 0,
1430
1346
  to: t.teleportLocation,
1431
1347
  disabled: !e.useTeleport
1432
1348
  }, [
1433
- Bt(It(
1349
+ St(Ct(
1434
1350
  "div",
1435
1351
  {
1436
1352
  class: "pv-floating",
1437
1353
  ref_key: "floating",
1438
1354
  ref: s,
1439
- style: Me(v.value)
1355
+ style: Ce(d.value)
1440
1356
  },
1441
1357
  [
1442
- Vt(y.$slots, "content")
1358
+ Pt(w.$slots, "content")
1443
1359
  ],
1444
1360
  4
1445
1361
  /* STYLE */
1446
1362
  ), [
1447
- [We, n.value]
1363
+ [Pe, n.value]
1448
1364
  ])
1449
- ], 8, ["to", "disabled"])) : Le("v-if", !0)
1365
+ ], 8, ["to", "disabled"])) : Se("v-if", !0)
1450
1366
  ])), [
1451
- [ft(jn), [g, { ignore: [".pv-floating"] }]]
1367
+ [it(An), [S, { ignore: [".pv-floating"] }]]
1452
1368
  ]);
1453
1369
  }
1454
- }), Gn = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
1455
- function Jn(t) {
1456
- return !Gn.has(t);
1370
+ }), Wn = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
1371
+ function Bn(t) {
1372
+ return !Wn.has(t);
1457
1373
  }
1458
- function Ot(t, e) {
1374
+ function ht(t, e) {
1459
1375
  const n = document.querySelector('link[href*="' + e + '"]');
1460
1376
  if (!t.shadowRoot)
1461
1377
  return !1;
@@ -1463,15 +1379,15 @@ function Ot(t, e) {
1463
1379
  const o = n.href;
1464
1380
  if (t.shadowRoot.querySelector(`link[href="${o}"]`))
1465
1381
  return;
1466
- const i = document.createElement("link");
1467
- return i.rel = "stylesheet", i.href = o, t.shadowRoot.prepend(i), !0;
1382
+ const r = document.createElement("link");
1383
+ return r.rel = "stylesheet", r.href = o, t.shadowRoot.prepend(r), !0;
1468
1384
  }
1469
1385
  return !1;
1470
1386
  }
1471
- function Un(t) {
1472
- if (!Ot(t, "pit-viper-v2")) {
1473
- if (Ot(t, "pit-viper")) {
1474
- Ot(t, "pit-viper-v2-scoped");
1387
+ function Nn(t) {
1388
+ if (!ht(t, "pit-viper-v2")) {
1389
+ if (ht(t, "pit-viper")) {
1390
+ ht(t, "pit-viper-v2-scoped");
1475
1391
  return;
1476
1392
  }
1477
1393
  console.warn(
@@ -1479,23 +1395,23 @@ function Un(t) {
1479
1395
  );
1480
1396
  }
1481
1397
  }
1482
- const Kn = (t) => ({ shadowRoot: Jn(t) });
1483
- function Zn(t, e) {
1398
+ const _n = (t) => ({ shadowRoot: Bn(t) });
1399
+ function $n(t, e) {
1484
1400
  return e === null ? !1 : e === "" || e === "true" ? !0 : (e === "false" || console.warn(
1485
1401
  `Invalid boolean attribute value for "${t}": "${e}". Expected "true", "false", or empty string.`
1486
1402
  ), !1);
1487
1403
  }
1488
- function Qn(t, e) {
1404
+ function In(t, e) {
1489
1405
  const n = Number(e);
1490
1406
  return isNaN(n) && console.warn(`Invalid number attribute value for "${t}": "${e}". Expected a valid number.`), n;
1491
1407
  }
1492
- function to(t) {
1408
+ function Vn(t) {
1493
1409
  const e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = (t.__vccOpts || t).props;
1494
- return s && typeof s == "object" && Object.entries(s).forEach(([c, r]) => {
1495
- r === Boolean || r && r.type === Boolean ? e.add(c) : r === Number || r && r.type === Number ? n.add(c) : (r === Object || r === Array || r && (r.type === Object || r.type === Array)) && o.add(c);
1410
+ return s && typeof s == "object" && Object.entries(s).forEach(([u, i]) => {
1411
+ i === Boolean || i && i.type === Boolean ? e.add(u) : i === Number || i && i.type === Number ? n.add(u) : (i === Object || i === Array || i && (i.type === Object || i.type === Array)) && o.add(u);
1496
1412
  }), { booleanProps: e, numberProps: n, jsonProps: o };
1497
1413
  }
1498
- function Qt(t, e) {
1414
+ function jt(t, e) {
1499
1415
  try {
1500
1416
  return JSON.parse(e);
1501
1417
  } catch (n) {
@@ -1504,12 +1420,12 @@ function Qt(t, e) {
1504
1420
  ), null;
1505
1421
  }
1506
1422
  }
1507
- function eo(t) {
1423
+ function Fn(t) {
1508
1424
  const e = t.__name || t.name;
1509
1425
  if (!e)
1510
1426
  throw new Error("Component must have a __name or name property");
1511
- const n = Be(t, Kn(e)), { booleanProps: o, numberProps: i, jsonProps: s } = to(t);
1512
- class c extends n {
1427
+ const n = Re(t, _n(e)), { booleanProps: o, numberProps: r, jsonProps: s } = Vn(t);
1428
+ class u extends n {
1513
1429
  _hiddenInput = null;
1514
1430
  constructor() {
1515
1431
  super(), this._parseAttributes();
@@ -1525,49 +1441,49 @@ function eo(t) {
1525
1441
  this._hiddenInput && (this._hiddenInput.value = l ?? "");
1526
1442
  }
1527
1443
  _parseAttributes() {
1528
- o.forEach((a) => {
1529
- const u = this.getAttribute(a);
1530
- this[a] = Zn(a, u);
1531
- }), i.forEach((a) => {
1532
- const u = this.getAttribute(a);
1533
- u !== null && (this[a] = Qn(a, u));
1534
- }), s.forEach((a) => {
1535
- const u = this.getAttribute(a);
1536
- if (u !== null) {
1537
- const f = Qt(a, u);
1538
- f !== null && (this[a] = f);
1444
+ o.forEach((c) => {
1445
+ const a = this.getAttribute(c);
1446
+ this[c] = $n(c, a);
1447
+ }), r.forEach((c) => {
1448
+ const a = this.getAttribute(c);
1449
+ a !== null && (this[c] = In(c, a));
1450
+ }), s.forEach((c) => {
1451
+ const a = this.getAttribute(c);
1452
+ if (a !== null) {
1453
+ const f = jt(c, a);
1454
+ f !== null && (this[c] = f);
1539
1455
  }
1540
1456
  });
1541
1457
  const l = this.getAttribute("data-json-props");
1542
- l && l.split(",").map((u) => u.trim()).filter(Boolean).forEach((u) => {
1543
- const f = u.replace(/-([a-z])/g, (p) => p[1].toUpperCase());
1544
- let d = this.getAttribute(u);
1545
- if (d === null) {
1546
- const p = f.replace(/([A-Z])/g, "-$1").toLowerCase();
1547
- d = this.getAttribute(p);
1458
+ l && l.split(",").map((a) => a.trim()).filter(Boolean).forEach((a) => {
1459
+ const f = a.replace(/-([a-z])/g, (m) => m[1].toUpperCase());
1460
+ let p = this.getAttribute(a);
1461
+ if (p === null) {
1462
+ const m = f.replace(/([A-Z])/g, "-$1").toLowerCase();
1463
+ p = this.getAttribute(m);
1548
1464
  }
1549
- if (d !== null && !this[f]) {
1550
- const p = Qt(f, d);
1551
- p !== null && (this[f] = p);
1465
+ if (p !== null && !this[f]) {
1466
+ const m = jt(f, p);
1467
+ m !== null && (this[f] = m);
1552
1468
  }
1553
1469
  });
1554
1470
  }
1555
1471
  connectedCallback() {
1556
- this._parseAttributes(), super.connectedCallback?.(), Un(this);
1472
+ this._parseAttributes(), super.connectedCallback?.(), Nn(this);
1557
1473
  const l = this.getAttribute("name");
1558
1474
  l && (this._hiddenInput = document.createElement("input"), this._hiddenInput.type = "hidden", this._hiddenInput.name = l, this.after(this._hiddenInput));
1559
1475
  }
1560
1476
  }
1561
- return c;
1477
+ return u;
1562
1478
  }
1563
- function no(t) {
1479
+ function jn(t) {
1564
1480
  return t.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
1565
1481
  }
1566
- function oo(t) {
1482
+ function Hn(t) {
1567
1483
  const e = t.__name || t.name;
1568
1484
  if (!e)
1569
1485
  throw new Error("Component must have a __name or name property");
1570
- const n = no(e), o = eo(t);
1486
+ const n = jn(e), o = Fn(t);
1571
1487
  customElements.get(n) || customElements.define(n, o);
1572
1488
  }
1573
- oo(qn);
1489
+ Hn(Dn);