@turquoisehealth/pit-viper 2.122.0 → 2.122.1-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 (129) hide show
  1. package/package.json +43 -13
  2. package/pv-components/dist/stats/vue/base/stats.html +4949 -0
  3. package/pv-components/dist/stats/vue/visualizations/stats.html +4949 -0
  4. package/pv-components/dist/stats/web/pv-accordion-stats.html +4949 -0
  5. package/pv-components/dist/stats/web/pv-action-bar-stats.html +4949 -0
  6. package/pv-components/dist/stats/web/pv-ai-button-stats.html +4949 -0
  7. package/pv-components/dist/stats/web/pv-avatar-group-stats.html +4949 -0
  8. package/pv-components/dist/stats/web/pv-avatar-stats.html +4949 -0
  9. package/pv-components/dist/stats/web/pv-banner-stats.html +4949 -0
  10. package/pv-components/dist/stats/web/pv-breadcrumbs-stats.html +4949 -0
  11. package/pv-components/dist/stats/web/pv-button-stats.html +4949 -0
  12. package/pv-components/dist/stats/web/pv-card-stats.html +4949 -0
  13. package/pv-components/dist/stats/web/pv-checkbox-stats.html +4949 -0
  14. package/pv-components/dist/stats/web/pv-company-label-stats.html +4949 -0
  15. package/pv-components/dist/stats/web/pv-company-logo-stats.html +4949 -0
  16. package/pv-components/dist/stats/web/pv-company-tag-stats.html +4949 -0
  17. package/pv-components/dist/stats/web/pv-counter-badge-stats.html +4949 -0
  18. package/pv-components/dist/stats/web/pv-date-picker-stats.html +4949 -0
  19. package/pv-components/dist/stats/web/pv-date-time-stats.html +4949 -0
  20. package/pv-components/dist/stats/web/pv-distribution-bar-stats.html +4949 -0
  21. package/pv-components/dist/stats/web/pv-drawer-stats.html +4949 -0
  22. package/pv-components/dist/stats/web/pv-dropdown-stats.html +4949 -0
  23. package/pv-components/dist/stats/web/pv-expandable-content-stats.html +4949 -0
  24. package/pv-components/dist/stats/web/pv-ghost-input-stats.html +4949 -0
  25. package/pv-components/dist/stats/web/pv-icon-stats.html +4949 -0
  26. package/pv-components/dist/stats/web/pv-input-stats.html +4949 -0
  27. package/pv-components/dist/stats/web/pv-insight-card-stats.html +4949 -0
  28. package/pv-components/dist/stats/web/pv-modal-stats.html +4949 -0
  29. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +4949 -0
  30. package/pv-components/dist/stats/web/pv-pagination-stats.html +4949 -0
  31. package/pv-components/dist/stats/web/pv-pill-stats.html +4949 -0
  32. package/pv-components/dist/stats/web/pv-popover-menu-stats.html +4949 -0
  33. package/pv-components/dist/stats/web/pv-popover-stats.html +4949 -0
  34. package/pv-components/dist/stats/web/pv-popover-v2-stats.html +4949 -0
  35. package/pv-components/dist/stats/web/pv-progress-bar-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-tree-stats.html +4949 -0
  58. package/pv-components/dist/stats/web/pv-widget-stats.html +4949 -0
  59. package/pv-components/dist/vue/base/components/base/PvButton/helpers.d.ts +1 -0
  60. package/pv-components/dist/vue/base/components/base/PvMenu/PvMenuControlPanel.vue.d.ts +6 -0
  61. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +206 -289
  62. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +31 -0
  63. package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +0 -1
  64. package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +6 -1
  65. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +20 -177
  66. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +4 -9
  67. package/pv-components/dist/vue/base/pv-components-base.mjs +4943 -11629
  68. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +4791 -10741
  69. package/pv-components/dist/web/components/pv-accordion/pv-accordion.js +265 -0
  70. package/pv-components/dist/web/components/pv-action-bar/pv-action-bar.js +134 -0
  71. package/pv-components/dist/web/components/pv-ai-button/pv-ai-button.js +225 -0
  72. package/pv-components/dist/web/components/pv-avatar/pv-avatar.js +164 -0
  73. package/pv-components/dist/web/components/pv-avatar-group/pv-avatar-group.js +170 -0
  74. package/pv-components/dist/web/components/pv-banner/pv-banner.js +224 -0
  75. package/pv-components/dist/web/components/pv-breadcrumbs/pv-breadcrumbs.js +160 -0
  76. package/pv-components/dist/web/components/pv-button/pv-button.js +242 -0
  77. package/pv-components/dist/web/components/pv-card/pv-card.js +148 -0
  78. package/pv-components/dist/web/components/pv-checkbox/pv-checkbox.js +145 -0
  79. package/pv-components/dist/web/components/pv-company-label/pv-company-label.js +221 -0
  80. package/pv-components/dist/web/components/pv-company-logo/pv-company-logo.js +192 -0
  81. package/pv-components/dist/web/components/pv-company-tag/pv-company-tag.js +274 -0
  82. package/pv-components/dist/web/components/pv-counter-badge/pv-counter-badge.js +157 -0
  83. package/pv-components/dist/web/components/pv-date-picker/pv-date-picker.js +7550 -0
  84. package/pv-components/dist/web/components/pv-date-time/pv-date-time.js +645 -0
  85. package/pv-components/dist/web/components/pv-distribution-bar/pv-distribution-bar.js +177 -0
  86. package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +556 -0
  87. package/pv-components/dist/web/components/pv-dropdown/pv-dropdown.js +1792 -0
  88. package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +304 -0
  89. package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +320 -0
  90. package/pv-components/dist/web/components/pv-icon/pv-icon.js +150 -0
  91. package/pv-components/dist/web/components/pv-input/pv-input.js +191 -0
  92. package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +363 -0
  93. package/pv-components/dist/web/components/pv-modal/pv-modal.js +186 -0
  94. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +8326 -0
  95. package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +355 -0
  96. package/pv-components/dist/web/components/pv-pill/pv-pill.js +229 -0
  97. package/pv-components/dist/web/components/pv-popover/pv-popover.js +1485 -0
  98. package/pv-components/dist/web/components/pv-popover-menu/pv-popover-menu.js +1507 -0
  99. package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +1573 -0
  100. package/pv-components/dist/web/components/pv-progress-bar/pv-progress-bar.js +156 -0
  101. package/pv-components/dist/web/components/pv-rating/pv-rating.js +146 -0
  102. package/pv-components/dist/web/components/pv-release-badge/pv-release-badge.js +142 -0
  103. package/pv-components/dist/web/components/pv-search-input/pv-search-input.js +238 -0
  104. package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +214 -0
  105. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +8093 -0
  106. package/pv-components/dist/web/components/pv-selectable-card/pv-selectable-card.js +153 -0
  107. package/pv-components/dist/web/components/pv-side-panel/pv-side-panel.js +148 -0
  108. package/pv-components/dist/web/components/pv-skeleton/pv-skeleton.js +1593 -0
  109. package/pv-components/dist/web/components/pv-spinner/pv-spinner.js +151 -0
  110. package/pv-components/dist/web/components/pv-sprite/pv-sprite.js +150 -0
  111. package/pv-components/dist/web/components/pv-suggestion-tag/pv-suggestion-tag.js +195 -0
  112. package/pv-components/dist/web/components/pv-switch/pv-switch.js +162 -0
  113. package/pv-components/dist/web/components/pv-tab-list/pv-tab-list.js +168 -0
  114. package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +248 -0
  115. package/pv-components/dist/web/components/pv-tag/pv-tag.js +210 -0
  116. package/pv-components/dist/web/components/pv-text-area/pv-text-area.js +188 -0
  117. package/pv-components/dist/web/components/pv-toast/pv-toast.js +292 -0
  118. package/pv-components/dist/web/components/pv-toggle-button/pv-toggle-button.js +208 -0
  119. package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +7479 -0
  120. package/pv-components/dist/web/components/pv-tooltip/pv-tooltip.js +158 -0
  121. package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +7409 -0
  122. package/pv-components/dist/web/components/pv-tree/pv-tree.js +5107 -0
  123. package/pv-components/dist/web/components/pv-widget/pv-widget.js +159 -0
  124. package/pv-components/dist/web/pv-components.iife.js +50 -50
  125. package/pv-components/dist/web/vue.runtime.esm-browser.prod.js +7 -0
  126. package/pv-components/dist/vue/base/pv-components-base.js +0 -1555
  127. package/pv-components/dist/vue/base/pv-components-base.umd.js +0 -1555
  128. package/pv-components/dist/vue/visualizations/pv-components-visualizations.js +0 -185
  129. package/pv-components/dist/vue/visualizations/pv-components-visualizations.umd.js +0 -185
@@ -0,0 +1,1573 @@
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) => ({
3
+ x: t,
4
+ y: t
5
+ }), Ne = {
6
+ left: "right",
7
+ right: "left",
8
+ bottom: "top",
9
+ top: "bottom"
10
+ }, Ie = {
11
+ start: "end",
12
+ end: "start"
13
+ };
14
+ function Rt(t, e) {
15
+ return typeof t == "function" ? t(e) : t;
16
+ }
17
+ function J(t) {
18
+ return t.split("-")[0];
19
+ }
20
+ function dt(t) {
21
+ return t.split("-")[1];
22
+ }
23
+ function Ve(t) {
24
+ return t === "x" ? "y" : "x";
25
+ }
26
+ function oe(t) {
27
+ return t === "y" ? "height" : "width";
28
+ }
29
+ const _e = /* @__PURE__ */ new Set(["top", "bottom"]);
30
+ function H(t) {
31
+ return _e.has(J(t)) ? "y" : "x";
32
+ }
33
+ function ie(t) {
34
+ return Ve(H(t));
35
+ }
36
+ function $e(t, e, n) {
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
+ }
61
+ }
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;
66
+ }
67
+ function ct(t) {
68
+ return t.replace(/left|right|bottom|top/g, (e) => Ne[e]);
69
+ }
70
+ function Ye(t) {
71
+ return {
72
+ top: 0,
73
+ right: 0,
74
+ bottom: 0,
75
+ left: 0,
76
+ ...t
77
+ };
78
+ }
79
+ function qe(t) {
80
+ return typeof t != "number" ? Ye(t) : {
81
+ top: t,
82
+ right: t,
83
+ bottom: t,
84
+ left: t
85
+ };
86
+ }
87
+ function at(t) {
88
+ const {
89
+ x: e,
90
+ y: n,
91
+ width: o,
92
+ height: i
93
+ } = t;
94
+ return {
95
+ width: o,
96
+ height: i,
97
+ top: n,
98
+ left: e,
99
+ right: e + o,
100
+ bottom: n + i,
101
+ x: e,
102
+ y: n
103
+ };
104
+ }
105
+ function jt(t, e, n) {
106
+ let {
107
+ reference: o,
108
+ floating: i
109
+ } = 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;
112
+ switch (l) {
113
+ case "top":
114
+ p = {
115
+ x: u,
116
+ y: o.y - i.height
117
+ };
118
+ break;
119
+ case "bottom":
120
+ p = {
121
+ x: u,
122
+ y: o.y + o.height
123
+ };
124
+ break;
125
+ case "right":
126
+ p = {
127
+ x: o.x + o.width,
128
+ y: f
129
+ };
130
+ break;
131
+ case "left":
132
+ p = {
133
+ x: o.x - i.width,
134
+ y: f
135
+ };
136
+ break;
137
+ default:
138
+ p = {
139
+ x: o.x,
140
+ y: o.y
141
+ };
142
+ }
143
+ switch (dt(e)) {
144
+ case "start":
145
+ p[c] -= d * (n && a ? -1 : 1);
146
+ break;
147
+ case "end":
148
+ p[c] += d * (n && a ? -1 : 1);
149
+ break;
150
+ }
151
+ return p;
152
+ }
153
+ const Ge = async (t, e, n) => {
154
+ const {
155
+ placement: o = "bottom",
156
+ strategy: i = "absolute",
157
+ 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({
161
+ reference: t,
162
+ floating: e,
163
+ strategy: i
164
+ }), {
165
+ x: u,
166
+ y: f
167
+ } = jt(a, o, l), d = o, p = {}, v = 0;
168
+ for (let w = 0; w < r.length; w++) {
169
+ const {
170
+ name: m,
171
+ fn: h
172
+ } = r[w], {
173
+ x: g,
174
+ y,
175
+ data: b,
176
+ reset: S
177
+ } = await h({
178
+ x: u,
179
+ y: f,
180
+ initialPlacement: o,
181
+ placement: d,
182
+ strategy: i,
183
+ middlewareData: p,
184
+ rects: a,
185
+ platform: c,
186
+ elements: {
187
+ reference: t,
188
+ floating: e
189
+ }
190
+ });
191
+ u = g ?? u, f = y ?? f, p = {
192
+ ...p,
193
+ [m]: {
194
+ ...p[m],
195
+ ...b
196
+ }
197
+ }, S && v <= 50 && (v++, typeof S == "object" && (S.placement && (d = S.placement), S.rects && (a = S.rects === !0 ? await c.getElementRects({
198
+ reference: t,
199
+ floating: e,
200
+ strategy: i
201
+ }) : S.rects), {
202
+ x: u,
203
+ y: f
204
+ } = jt(a, d, l)), w = -1);
205
+ }
206
+ return {
207
+ x: u,
208
+ y: f,
209
+ placement: d,
210
+ strategy: i,
211
+ middlewareData: p
212
+ };
213
+ };
214
+ async function Je(t, e) {
215
+ var n;
216
+ e === void 0 && (e = {});
217
+ const {
218
+ x: o,
219
+ y: i,
220
+ platform: s,
221
+ rects: c,
222
+ elements: r,
223
+ strategy: l
224
+ } = t, {
225
+ boundary: a = "clippingAncestors",
226
+ rootBoundary: u = "viewport",
227
+ 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,
234
+ strategy: l
235
+ })), g = f === "floating" ? {
236
+ 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)) || {
241
+ x: 1,
242
+ y: 1
243
+ } : {
244
+ x: 1,
245
+ y: 1
246
+ }, S = at(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
247
+ elements: r,
248
+ rect: g,
249
+ offsetParent: y,
250
+ strategy: l
251
+ }) : g);
252
+ 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
257
+ };
258
+ }
259
+ const Ue = function(t) {
260
+ return t === void 0 && (t = {}), {
261
+ name: "flip",
262
+ options: t,
263
+ async fn(e) {
264
+ var n, o;
265
+ const {
266
+ placement: i,
267
+ middlewareData: s,
268
+ rects: c,
269
+ initialPlacement: r,
270
+ platform: l,
271
+ elements: a
272
+ } = 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)
282
+ 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;
329
+ }
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,
383
+ data: {
384
+ ...l,
385
+ placement: c
386
+ }
387
+ };
388
+ }
389
+ };
390
+ };
391
+ function pt() {
392
+ return typeof window < "u";
393
+ }
394
+ function X(t) {
395
+ return Pt(t) ? (t.nodeName || "").toLowerCase() : "#document";
396
+ }
397
+ function A(t) {
398
+ var e;
399
+ return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
400
+ }
401
+ function N(t) {
402
+ var e;
403
+ return (e = (Pt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
404
+ }
405
+ function Pt(t) {
406
+ return pt() ? t instanceof Node || t instanceof A(t).Node : !1;
407
+ }
408
+ function k(t) {
409
+ return pt() ? t instanceof Element || t instanceof A(t).Element : !1;
410
+ }
411
+ function W(t) {
412
+ return pt() ? t instanceof HTMLElement || t instanceof A(t).HTMLElement : !1;
413
+ }
414
+ function Ht(t) {
415
+ return !pt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof A(t).ShadowRoot;
416
+ }
417
+ const tn = /* @__PURE__ */ new Set(["inline", "contents"]);
418
+ function ot(t) {
419
+ const {
420
+ overflow: e,
421
+ overflowX: n,
422
+ overflowY: o,
423
+ display: i
424
+ } = L(t);
425
+ return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !tn.has(i);
426
+ }
427
+ const en = /* @__PURE__ */ new Set(["table", "td", "th"]);
428
+ function nn(t) {
429
+ return en.has(X(t));
430
+ }
431
+ const on = [":popover-open", ":modal"];
432
+ function mt(t) {
433
+ return on.some((e) => {
434
+ try {
435
+ return t.matches(e);
436
+ } catch {
437
+ return !1;
438
+ }
439
+ });
440
+ }
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));
445
+ }
446
+ function cn(t) {
447
+ let e = V(t);
448
+ for (; W(e) && !U(e); ) {
449
+ if (Tt(e))
450
+ return e;
451
+ if (mt(e))
452
+ return null;
453
+ e = V(e);
454
+ }
455
+ return null;
456
+ }
457
+ function kt() {
458
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
459
+ }
460
+ const an = /* @__PURE__ */ new Set(["html", "body", "#document"]);
461
+ function U(t) {
462
+ return an.has(X(t));
463
+ }
464
+ function L(t) {
465
+ return A(t).getComputedStyle(t);
466
+ }
467
+ function ht(t) {
468
+ return k(t) ? {
469
+ scrollLeft: t.scrollLeft,
470
+ scrollTop: t.scrollTop
471
+ } : {
472
+ scrollLeft: t.scrollX,
473
+ scrollTop: t.scrollY
474
+ };
475
+ }
476
+ function V(t) {
477
+ if (X(t) === "html")
478
+ return t;
479
+ const e = (
480
+ // Step into the shadow DOM of the parent of a slotted node.
481
+ t.assignedSlot || // DOM Element detected.
482
+ t.parentNode || // ShadowRoot detected.
483
+ Ht(t) && t.host || // Fallback.
484
+ N(t)
485
+ );
486
+ return Ht(e) ? e.host : e;
487
+ }
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);
491
+ }
492
+ function se(t, e, n) {
493
+ var o;
494
+ 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, []));
497
+ }
498
+ function Ct(t) {
499
+ return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
500
+ }
501
+ function le(t) {
502
+ const e = L(t);
503
+ 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), {
506
+ width: n,
507
+ height: o,
508
+ $: r
509
+ };
510
+ }
511
+ function ce(t) {
512
+ return k(t) ? t : t.contextElement;
513
+ }
514
+ function G(t) {
515
+ const e = ce(t);
516
+ if (!W(e))
517
+ return M(1);
518
+ const n = e.getBoundingClientRect(), {
519
+ width: o,
520
+ height: i,
521
+ $: 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
527
+ };
528
+ }
529
+ const un = /* @__PURE__ */ M(0);
530
+ function ae(t) {
531
+ const e = A(t);
532
+ return !kt() || !e.visualViewport ? un : {
533
+ x: e.visualViewport.offsetLeft,
534
+ y: e.visualViewport.offsetTop
535
+ };
536
+ }
537
+ function fn(t, e, n) {
538
+ return e === void 0 && (e = !1), !n || e && n !== A(t) ? !1 : e;
539
+ }
540
+ function nt(t, e, n, o) {
541
+ 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;
547
+ 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);
553
+ }
554
+ }
555
+ return at({
556
+ width: u,
557
+ height: f,
558
+ x: l,
559
+ y: a
560
+ });
561
+ }
562
+ function vt(t, e) {
563
+ const n = ht(t).scrollLeft;
564
+ return e ? e.left + n : nt(N(t)).left + n;
565
+ }
566
+ function ue(t, e) {
567
+ const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - vt(t, n), i = n.top + e.scrollTop;
568
+ return {
569
+ x: o,
570
+ y: i
571
+ };
572
+ }
573
+ function dn(t) {
574
+ let {
575
+ elements: e,
576
+ rect: n,
577
+ offsetParent: o,
578
+ strategy: i
579
+ } = t;
580
+ const s = i === "fixed", c = N(o), r = e ? mt(e.floating) : !1;
581
+ if (o === c || r && s)
582
+ return n;
583
+ let l = {
584
+ scrollLeft: 0,
585
+ 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;
591
+ }
592
+ const d = c && !f && !s ? ue(c, l) : M(0);
593
+ 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
598
+ };
599
+ }
600
+ function pn(t) {
601
+ return Array.from(t.getClientRects());
602
+ }
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,
609
+ height: s,
610
+ x: c,
611
+ y: r
612
+ };
613
+ }
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);
622
+ }
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);
628
+ return {
629
+ width: s,
630
+ height: c,
631
+ x: r,
632
+ y: l
633
+ };
634
+ }
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;
638
+ return {
639
+ width: c,
640
+ height: r,
641
+ x: l,
642
+ y: a
643
+ };
644
+ }
645
+ function Xt(t, e, n) {
646
+ let o;
647
+ if (e === "viewport")
648
+ o = hn(t, n);
649
+ else if (e === "document")
650
+ o = mn(N(t));
651
+ else if (k(e))
652
+ o = gn(e, n);
653
+ else {
654
+ const i = ae(t);
655
+ o = {
656
+ x: e.x - i.x,
657
+ y: e.y - i.y,
658
+ width: e.width,
659
+ height: e.height
660
+ };
661
+ }
662
+ return at(o);
663
+ }
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);
667
+ }
668
+ function wn(t, e) {
669
+ const n = e.get(t);
670
+ if (n)
671
+ 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);
678
+ }
679
+ return e.set(t, o), o;
680
+ }
681
+ function yn(t) {
682
+ let {
683
+ element: e,
684
+ boundary: n,
685
+ rootBoundary: o,
686
+ strategy: i
687
+ } = 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));
692
+ return {
693
+ width: l.right - l.left,
694
+ height: l.bottom - l.top,
695
+ x: l.left,
696
+ y: l.top
697
+ };
698
+ }
699
+ function bn(t) {
700
+ const {
701
+ width: e,
702
+ height: n
703
+ } = le(t);
704
+ return {
705
+ width: e,
706
+ height: n
707
+ };
708
+ }
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 = {
712
+ scrollLeft: 0,
713
+ scrollTop: 0
714
+ };
715
+ const l = M(0);
716
+ function a() {
717
+ l.x = vt(i);
718
+ }
719
+ 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;
726
+ return {
727
+ x: f,
728
+ y: d,
729
+ width: c.width,
730
+ height: c.height
731
+ };
732
+ }
733
+ function wt(t) {
734
+ return L(t).position === "static";
735
+ }
736
+ function Yt(t, e) {
737
+ if (!W(t) || L(t).position === "fixed")
738
+ return null;
739
+ if (e)
740
+ return e(t);
741
+ let n = t.offsetParent;
742
+ return N(t) === n && (n = n.ownerDocument.body), n;
743
+ }
744
+ function de(t, e) {
745
+ const n = A(t);
746
+ if (mt(t))
747
+ 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);
754
+ }
755
+ return n;
756
+ }
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;
761
+ }
762
+ const On = async function(t) {
763
+ const e = this.getOffsetParent || de, n = this.getDimensions, o = await n(t.floating);
764
+ return {
765
+ reference: xn(t.reference, await e(t.floating), t.strategy),
766
+ floating: {
767
+ x: 0,
768
+ y: 0,
769
+ width: o.width,
770
+ height: o.height
771
+ }
772
+ };
773
+ };
774
+ function Sn(t) {
775
+ return L(t).direction === "rtl";
776
+ }
777
+ const Cn = {
778
+ convertOffsetParentRelativeRectToViewportRelativeRect: dn,
779
+ 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,
791
+ ...n
792
+ }, s = {
793
+ ...i.platform,
794
+ _c: o
795
+ };
796
+ return Ge(t, e, {
797
+ ...i,
798
+ platform: s
799
+ });
800
+ };
801
+ function Pn(t) {
802
+ return t != null && typeof t == "object" && "$el" in t;
803
+ }
804
+ function qt(t) {
805
+ if (Pn(t)) {
806
+ const e = t.$el;
807
+ return Pt(e) && X(e) === "#comment" ? null : e;
808
+ }
809
+ return t;
810
+ }
811
+ function Q(t) {
812
+ return typeof t == "function" ? t() : ft(t);
813
+ }
814
+ function pe(t) {
815
+ return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
816
+ }
817
+ function Gt(t, e) {
818
+ const n = pe(t);
819
+ return Math.round(e * n) / n;
820
+ }
821
+ function Tn(t, e, n) {
822
+ n === void 0 && (n = {});
823
+ const o = n.whileElementsMounted, i = C(() => {
824
+ var x;
825
+ return (x = Q(n.open)) != null ? x : !0;
826
+ }), s = C(() => Q(n.middleware)), c = C(() => {
827
+ var x;
828
+ return (x = Q(n.placement)) != null ? x : "bottom";
829
+ }), r = C(() => {
830
+ var x;
831
+ return (x = Q(n.strategy)) != null ? x : "absolute";
832
+ }), l = C(() => {
833
+ 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(() => {
836
+ const x = {
837
+ position: p.value,
838
+ left: "0",
839
+ top: "0"
840
+ };
841
+ if (!u.value)
842
+ return x;
843
+ const R = Gt(u.value, f.value), $ = Gt(u.value, d.value);
844
+ return l.value ? {
845
+ ...x,
846
+ transform: "translate(" + R + "px, " + $ + "px)",
847
+ ...pe(u.value) >= 1.5 && {
848
+ willChange: "transform"
849
+ }
850
+ } : {
851
+ position: p.value,
852
+ left: R + "px",
853
+ top: $ + "px"
854
+ };
855
+ });
856
+ let g;
857
+ function y() {
858
+ if (a.value == null || u.value == null)
859
+ return;
860
+ const x = i.value;
861
+ Rn(a.value, u.value, {
862
+ 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;
867
+ });
868
+ }
869
+ function b() {
870
+ typeof g == "function" && (g(), g = void 0);
871
+ }
872
+ function S() {
873
+ if (b(), o === void 0) {
874
+ y();
875
+ return;
876
+ }
877
+ if (a.value != null && u.value != null) {
878
+ g = o(a.value, u.value, y);
879
+ return;
880
+ }
881
+ }
882
+ function rt() {
883
+ i.value || (m.value = !1);
884
+ }
885
+ return P([s, c, r, i], y, {
886
+ flush: "sync"
887
+ }), P([a, u], S, {
888
+ flush: "sync"
889
+ }), P(i, rt, {
890
+ 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),
898
+ floatingStyles: h,
899
+ update: y
900
+ };
901
+ }
902
+ function K(t) {
903
+ return te() ? (ee(t), !0) : !1;
904
+ }
905
+ const Lt = typeof window < "u" && typeof document < "u";
906
+ 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() {
910
+ 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));
912
+ }
913
+ function Mn(...t) {
914
+ if (t.length !== 1)
915
+ return Oe(...t);
916
+ const e = t[0];
917
+ return typeof e == "function" ? Se(Ce(() => ({ get: e, set: D }))) : B(e);
918
+ }
919
+ function Wn(t, e) {
920
+ 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);
923
+ });
924
+ }
925
+ return n;
926
+ }
927
+ function Bn(t, e = {}) {
928
+ let n, o, i = D;
929
+ const s = (l) => {
930
+ clearTimeout(l), i(), i = D;
931
+ };
932
+ let c;
933
+ 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(() => {
939
+ o && s(o), o = void 0, f(l());
940
+ }, a);
941
+ });
942
+ };
943
+ }
944
+ function z(t) {
945
+ return Array.isArray(t) ? t : [t];
946
+ }
947
+ function Nn(t) {
948
+ return ne();
949
+ }
950
+ // @__NO_SIDE_EFFECTS__
951
+ function Jt(t, e = 200, n = {}) {
952
+ return Wn(
953
+ Bn(e, n),
954
+ t
955
+ );
956
+ }
957
+ function In(t, e = !0, n) {
958
+ Nn() ? At(t, n) : e ? t() : xe(t);
959
+ }
960
+ function he(t, e, n) {
961
+ return P(
962
+ t,
963
+ e,
964
+ {
965
+ ...n,
966
+ immediate: !0
967
+ }
968
+ );
969
+ }
970
+ const it = Lt ? window : void 0;
971
+ function _(t) {
972
+ var e;
973
+ const n = O(t);
974
+ return (e = n?.$el) != null ? e : n;
975
+ }
976
+ function ut(...t) {
977
+ 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(
983
+ () => {
984
+ var r, l;
985
+ 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])),
989
+ // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
990
+ O(i.value ? t[3] : t[2])
991
+ ];
992
+ },
993
+ ([r, l, a, u]) => {
994
+ if (n(), !r?.length || !l?.length || !a?.length)
995
+ return;
996
+ const f = me(u) ? { ...u } : u;
997
+ e.push(
998
+ ...r.flatMap(
999
+ (d) => l.flatMap(
1000
+ (p) => a.map((v) => o(d, p, v, f))
1001
+ )
1002
+ )
1003
+ );
1004
+ },
1005
+ { flush: "post" }
1006
+ ), c = () => {
1007
+ s(), n();
1008
+ };
1009
+ return K(n), c;
1010
+ }
1011
+ // @__NO_SIDE_EFFECTS__
1012
+ function Vn() {
1013
+ const t = E(!1), e = ne();
1014
+ return e && At(() => {
1015
+ t.value = !0;
1016
+ }, e), t;
1017
+ }
1018
+ // @__NO_SIDE_EFFECTS__
1019
+ function ve(t) {
1020
+ const e = /* @__PURE__ */ Vn();
1021
+ return C(() => (e.value, !!t()));
1022
+ }
1023
+ function ge(t, e, n = {}) {
1024
+ const { window: o = it, ...i } = n;
1025
+ let s;
1026
+ const c = /* @__PURE__ */ ve(() => o && "MutationObserver" in o), r = () => {
1027
+ 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(
1032
+ l,
1033
+ (d) => {
1034
+ r(), c.value && d.size && (s = new MutationObserver(e), d.forEach((p) => s.observe(p, i)));
1035
+ },
1036
+ { immediate: !0, flush: "post" }
1037
+ ), u = () => s?.takeRecords(), f = () => {
1038
+ a(), r();
1039
+ };
1040
+ return K(f), {
1041
+ isSupported: c,
1042
+ stop: f,
1043
+ takeRecords: u
1044
+ };
1045
+ }
1046
+ function _n(t, e, n = {}) {
1047
+ const {
1048
+ window: o = it,
1049
+ document: i = o?.document,
1050
+ flush: s = "sync"
1051
+ } = 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);
1064
+ },
1065
+ {
1066
+ window: o,
1067
+ childList: !0,
1068
+ subtree: !0
1069
+ }
1070
+ );
1071
+ r(f);
1072
+ }
1073
+ }, { flush: s }), a = () => {
1074
+ l(), r();
1075
+ };
1076
+ return K(a), a;
1077
+ }
1078
+ function $n(t, e, n = {}) {
1079
+ const { window: o = it, ...i } = n;
1080
+ let s;
1081
+ const c = /* @__PURE__ */ ve(() => o && "ResizeObserver" in o), r = () => {
1082
+ 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(
1087
+ l,
1088
+ (f) => {
1089
+ if (r(), c.value && o) {
1090
+ s = new ResizeObserver(e);
1091
+ for (const d of f)
1092
+ d && s.observe(d, i);
1093
+ }
1094
+ },
1095
+ { immediate: !0, flush: "post" }
1096
+ ), u = () => {
1097
+ r(), a();
1098
+ };
1099
+ return K(u), {
1100
+ isSupported: c,
1101
+ stop: u
1102
+ };
1103
+ }
1104
+ function Fn(t, e = {}) {
1105
+ const {
1106
+ reset: n = !0,
1107
+ windowResize: o = !0,
1108
+ windowScroll: i = !0,
1109
+ 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);
1114
+ 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);
1116
+ return;
1117
+ }
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;
1120
+ }
1121
+ function m() {
1122
+ c === "sync" ? w() : c === "next-frame" && requestAnimationFrame(() => w());
1123
+ }
1124
+ return $n(t, m), P(() => _(t), (h) => !h && m()), ge(t, m, {
1125
+ attributeFilter: ["style", "class"]
1126
+ }), i && ut("scroll", m, { capture: !0, passive: !0 }), o && ut("resize", m, { passive: !0 }), In(() => {
1127
+ s && m();
1128
+ }), {
1129
+ height: r,
1130
+ bottom: l,
1131
+ left: a,
1132
+ right: u,
1133
+ top: f,
1134
+ width: d,
1135
+ x: p,
1136
+ y: v,
1137
+ update: m
1138
+ };
1139
+ }
1140
+ function Ut(t, e = {}) {
1141
+ const {
1142
+ delayEnter: n = 0,
1143
+ 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;
1151
+ };
1152
+ return s && (ut(t, "mouseenter", () => l(!0), { passive: !0 }), ut(t, "mouseleave", () => l(!1), { passive: !0 }), i && _n(
1153
+ C(() => _(t)),
1154
+ () => l(!1)
1155
+ )), c;
1156
+ }
1157
+ const we = Lt ? window : void 0;
1158
+ function tt(t) {
1159
+ var e;
1160
+ const n = O(t);
1161
+ return (e = n?.$el) != null ? e : n;
1162
+ }
1163
+ function st(...t) {
1164
+ 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(
1170
+ () => {
1171
+ var r, l;
1172
+ 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])),
1176
+ // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
1177
+ O(i.value ? t[3] : t[2])
1178
+ ];
1179
+ },
1180
+ ([r, l, a, u]) => {
1181
+ if (n(), !r?.length || !l?.length || !a?.length)
1182
+ return;
1183
+ const f = me(u) ? { ...u } : u;
1184
+ e.push(
1185
+ ...r.flatMap(
1186
+ (d) => l.flatMap(
1187
+ (p) => a.map((v) => o(d, p, v, f))
1188
+ )
1189
+ )
1190
+ );
1191
+ },
1192
+ { flush: "post" }
1193
+ ), c = () => {
1194
+ s(), n();
1195
+ };
1196
+ return K(n), c;
1197
+ }
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;
1201
+ 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);
1207
+ }
1208
+ let l = !0;
1209
+ const a = (m) => O(i).some((h) => {
1210
+ if (typeof h == "string")
1211
+ return Array.from(o.document.querySelectorAll(h)).some((g) => g === m.target || m.composedPath().includes(g));
1212
+ {
1213
+ const g = tt(h);
1214
+ return g && (m.target === g || m.composedPath().includes(g));
1215
+ }
1216
+ });
1217
+ function u(m) {
1218
+ const h = O(m);
1219
+ return h && h.$.subTree.shapeFlag === 16;
1220
+ }
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));
1224
+ }
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) {
1229
+ l = !0;
1230
+ return;
1231
+ }
1232
+ e(m);
1233
+ }
1234
+ };
1235
+ let p = !1;
1236
+ const v = [
1237
+ st(o, "click", (m) => {
1238
+ p || (p = !0, setTimeout(() => {
1239
+ p = !1;
1240
+ }, 0), d(m));
1241
+ }, { passive: !0, capture: s }),
1242
+ st(o, "pointerdown", (m) => {
1243
+ const h = tt(t);
1244
+ l = !a(m) && !!(h && !m.composedPath().includes(h));
1245
+ }, { passive: !0 }),
1246
+ c && st(o, "blur", (m) => {
1247
+ setTimeout(() => {
1248
+ 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);
1251
+ }, 0);
1252
+ }, { passive: !0 })
1253
+ ].filter(Boolean), w = () => v.forEach((m) => m());
1254
+ return r ? {
1255
+ stop: w,
1256
+ cancel: () => {
1257
+ l = !1;
1258
+ },
1259
+ trigger: (m) => {
1260
+ l = !0, d(m), l = !1;
1261
+ }
1262
+ } : w;
1263
+ }
1264
+ const yt = /* @__PURE__ */ new WeakMap(), jn = {
1265
+ mounted(t, e) {
1266
+ const n = !e.modifiers.bubble;
1267
+ let o;
1268
+ if (typeof e.value == "function")
1269
+ o = Zt(t, e.value, { capture: n });
1270
+ else {
1271
+ const [i, s] = e.value;
1272
+ o = Zt(t, i, Object.assign({ capture: n }, s));
1273
+ }
1274
+ yt.set(t, o);
1275
+ },
1276
+ unmounted(t) {
1277
+ const e = yt.get(t);
1278
+ e && typeof e == "function" ? e() : e?.stop(), yt.delete(t);
1279
+ }
1280
+ };
1281
+ function bt(t) {
1282
+ return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
1283
+ }
1284
+ function ye(t) {
1285
+ const e = window.getComputedStyle(t);
1286
+ if (e.overflowX === "scroll" || e.overflowY === "scroll" || e.overflowX === "auto" && t.clientWidth < t.scrollWidth || e.overflowY === "auto" && t.clientHeight < t.scrollHeight)
1287
+ return !0;
1288
+ {
1289
+ const n = t.parentNode;
1290
+ return !n || n.tagName === "BODY" ? !1 : ye(n);
1291
+ }
1292
+ }
1293
+ function Hn(t) {
1294
+ 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));
1303
+ 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")
1306
+ return n.value = !0;
1307
+ if (n.value)
1308
+ return a.style.overflow = "hidden";
1309
+ }
1310
+ }, {
1311
+ immediate: !0
1312
+ });
1313
+ const s = () => {
1314
+ const r = bt(O(t));
1315
+ !r || n.value || (Et && (o = st(
1316
+ r,
1317
+ "touchmove",
1318
+ (l) => {
1319
+ Hn(l);
1320
+ },
1321
+ { 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);
1326
+ };
1327
+ return K(c), C({
1328
+ get() {
1329
+ return n.value;
1330
+ },
1331
+ set(r) {
1332
+ r ? s() : c();
1333
+ }
1334
+ });
1335
+ }
1336
+ function Xn() {
1337
+ let t = !1;
1338
+ const e = E(!1);
1339
+ return (n, o) => {
1340
+ if (e.value = o.value, t)
1341
+ return;
1342
+ t = !0;
1343
+ const i = zn(n, o.value);
1344
+ P(e, (s) => i.value = s);
1345
+ };
1346
+ }
1347
+ Xn();
1348
+ const Yn = { style: { width: "fit-content" } }, qn = /* @__PURE__ */ Ae({
1349
+ __name: "PvPopoverV2",
1350
+ props: /* @__PURE__ */ Re({
1351
+ disableAutoPlacement: { type: Boolean, default: !1 },
1352
+ position: { default: "bottom-left", type: String },
1353
+ positioningStrategy: { default: "absolute", type: String },
1354
+ showOnHover: { type: Boolean, default: !1 },
1355
+ disableInteractive: { type: Boolean, default: !1 },
1356
+ useTeleport: { type: Boolean, default: !1 },
1357
+ disableClickOutsideToClose: { type: Boolean, default: !1 },
1358
+ delay: { default: 25, type: Number },
1359
+ zIndex: { default: 10, type: Number },
1360
+ teleportLocation: { default: "body", type: String },
1361
+ offset: { type: Number }
1362
+ }, {
1363
+ modelValue: { type: Boolean },
1364
+ modelModifiers: {}
1365
+ }),
1366
+ emits: ["update:modelValue"],
1367
+ 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 = {
1369
+ "top-center": "top",
1370
+ "bottom-center": "bottom",
1371
+ "center-left": "left",
1372
+ "center-right": "right",
1373
+ "top-left": "top-start",
1374
+ "top-right": "top-end",
1375
+ "bottom-left": "bottom-start",
1376
+ "bottom-right": "bottom-end"
1377
+ };
1378
+ At(() => {
1379
+ o.value && (i.value = o.value.firstElementChild);
1380
+ });
1381
+ const a = [];
1382
+ e.disableAutoPlacement || a?.push(
1383
+ An({
1384
+ fallbackStrategy: "initialPlacement"
1385
+ })
1386
+ ), e.offset && a?.push(En(e.offset));
1387
+ const { floatingStyles: u, update: f } = Tn(i, s, {
1388
+ placement: l[e.position],
1389
+ strategy: e.positioningStrategy,
1390
+ middleware: a
1391
+ });
1392
+ P(n, (y) => {
1393
+ y && i.value && s.value && f();
1394
+ });
1395
+ const d = Fn(i), p = /* @__PURE__ */ Jt(() => {
1396
+ n.value && f();
1397
+ }, 5);
1398
+ P([d.top, d.left, d.width, d.height], p);
1399
+ const v = C(() => ({
1400
+ ...u.value,
1401
+ zIndex: e.zIndex ?? 10
1402
+ })), w = /* @__PURE__ */ Jt(
1403
+ (y) => {
1404
+ n.value = y;
1405
+ },
1406
+ () => 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);
1411
+ };
1412
+ return P(m, (y) => {
1413
+ e.showOnHover && w(y);
1414
+ }), (y, b) => Bt((Nt(), Te("div", Yn, [
1415
+ It(
1416
+ "div",
1417
+ {
1418
+ ref_key: "triggerWrapper",
1419
+ ref: o,
1420
+ onClick: h
1421
+ },
1422
+ [
1423
+ Vt(y.$slots, "trigger")
1424
+ ],
1425
+ 512
1426
+ /* NEED_PATCH */
1427
+ ),
1428
+ y.$slots.content ? (Nt(), ke(De, {
1429
+ key: 0,
1430
+ to: t.teleportLocation,
1431
+ disabled: !e.useTeleport
1432
+ }, [
1433
+ Bt(It(
1434
+ "div",
1435
+ {
1436
+ class: "pv-floating",
1437
+ ref_key: "floating",
1438
+ ref: s,
1439
+ style: Me(v.value)
1440
+ },
1441
+ [
1442
+ Vt(y.$slots, "content")
1443
+ ],
1444
+ 4
1445
+ /* STYLE */
1446
+ ), [
1447
+ [We, n.value]
1448
+ ])
1449
+ ], 8, ["to", "disabled"])) : Le("v-if", !0)
1450
+ ])), [
1451
+ [ft(jn), [g, { ignore: [".pv-floating"] }]]
1452
+ ]);
1453
+ }
1454
+ }), Gn = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
1455
+ function Jn(t) {
1456
+ return !Gn.has(t);
1457
+ }
1458
+ function Ot(t, e) {
1459
+ const n = document.querySelector('link[href*="' + e + '"]');
1460
+ if (!t.shadowRoot)
1461
+ return !1;
1462
+ if (n && t.shadowRoot) {
1463
+ const o = n.href;
1464
+ if (t.shadowRoot.querySelector(`link[href="${o}"]`))
1465
+ return;
1466
+ const i = document.createElement("link");
1467
+ return i.rel = "stylesheet", i.href = o, t.shadowRoot.prepend(i), !0;
1468
+ }
1469
+ return !1;
1470
+ }
1471
+ function Un(t) {
1472
+ if (!Ot(t, "pit-viper-v2")) {
1473
+ if (Ot(t, "pit-viper")) {
1474
+ Ot(t, "pit-viper-v2-scoped");
1475
+ return;
1476
+ }
1477
+ console.warn(
1478
+ "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
1479
+ );
1480
+ }
1481
+ }
1482
+ const Kn = (t) => ({ shadowRoot: Jn(t) });
1483
+ function Zn(t, e) {
1484
+ return e === null ? !1 : e === "" || e === "true" ? !0 : (e === "false" || console.warn(
1485
+ `Invalid boolean attribute value for "${t}": "${e}". Expected "true", "false", or empty string.`
1486
+ ), !1);
1487
+ }
1488
+ function Qn(t, e) {
1489
+ const n = Number(e);
1490
+ return isNaN(n) && console.warn(`Invalid number attribute value for "${t}": "${e}". Expected a valid number.`), n;
1491
+ }
1492
+ function to(t) {
1493
+ 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);
1496
+ }), { booleanProps: e, numberProps: n, jsonProps: o };
1497
+ }
1498
+ function Qt(t, e) {
1499
+ try {
1500
+ return JSON.parse(e);
1501
+ } catch (n) {
1502
+ return console.warn(
1503
+ `Invalid JSON attribute value for "${t}": "${e}". Error: ${n instanceof Error ? n.message : String(n)}`
1504
+ ), null;
1505
+ }
1506
+ }
1507
+ function eo(t) {
1508
+ const e = t.__name || t.name;
1509
+ if (!e)
1510
+ 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 {
1513
+ _hiddenInput = null;
1514
+ constructor() {
1515
+ super(), this._parseAttributes();
1516
+ }
1517
+ disconnectedCallback() {
1518
+ this._hiddenInput?.remove(), super.disconnectedCallback?.();
1519
+ }
1520
+ /**
1521
+ * Update the hidden input value
1522
+ * Call this from the Vue component to sync form value
1523
+ */
1524
+ setHiddenInputValue(l) {
1525
+ this._hiddenInput && (this._hiddenInput.value = l ?? "");
1526
+ }
1527
+ _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);
1539
+ }
1540
+ });
1541
+ 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);
1548
+ }
1549
+ if (d !== null && !this[f]) {
1550
+ const p = Qt(f, d);
1551
+ p !== null && (this[f] = p);
1552
+ }
1553
+ });
1554
+ }
1555
+ connectedCallback() {
1556
+ this._parseAttributes(), super.connectedCallback?.(), Un(this);
1557
+ const l = this.getAttribute("name");
1558
+ l && (this._hiddenInput = document.createElement("input"), this._hiddenInput.type = "hidden", this._hiddenInput.name = l, this.after(this._hiddenInput));
1559
+ }
1560
+ }
1561
+ return c;
1562
+ }
1563
+ function no(t) {
1564
+ return t.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
1565
+ }
1566
+ function oo(t) {
1567
+ const e = t.__name || t.name;
1568
+ if (!e)
1569
+ throw new Error("Component must have a __name or name property");
1570
+ const n = no(e), o = eo(t);
1571
+ customElements.get(n) || customElements.define(n, o);
1572
+ }
1573
+ oo(qn);