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