@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,1792 @@
1
+ import { onMounted as cn, nextTick as yt, getCurrentScope as fn, onScopeDispose as dn, getCurrentInstance as pn, watch as Ke, toRef as hn, readonly as gn, ref as ue, customRef as mn, toValue as j, isRef as vn, defineComponent as Xt, useTemplateRef as bn, createElementBlock as Ge, openBlock as Oe, normalizeStyle as Tt, renderSlot as ze, computed as pe, unref as Wt, shallowRef as $t, withDirectives as yn, createElementVNode as wn, createBlock as En, normalizeClass as It, createTextVNode as Sn, Teleport as _n, createVNode as Dn, withCtx as Cn, createCommentVNode as On, defineCustomElement as Tn } from "vue";
2
+ function wt(t) {
3
+ return fn() ? (dn(t), !0) : !1;
4
+ }
5
+ const Et = typeof window < "u" && typeof document < "u";
6
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
7
+ const In = Object.prototype.toString, Pn = (t) => In.call(t) === "[object Object]", le = () => {
8
+ }, ht = /* @__PURE__ */ An();
9
+ function An() {
10
+ var t, e;
11
+ 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));
12
+ }
13
+ function Nn(...t) {
14
+ if (t.length !== 1)
15
+ return hn(...t);
16
+ const e = t[0];
17
+ return typeof e == "function" ? gn(mn(() => ({ get: e, set: le }))) : ue(e);
18
+ }
19
+ function et(t) {
20
+ return Array.isArray(t) ? t : [t];
21
+ }
22
+ function xn(t) {
23
+ return pn();
24
+ }
25
+ function kn(t, e = !0, n) {
26
+ xn() ? cn(t, n) : e ? t() : yt(t);
27
+ }
28
+ function Mn(t, e, n) {
29
+ return Ke(
30
+ t,
31
+ e,
32
+ {
33
+ ...n,
34
+ immediate: !0
35
+ }
36
+ );
37
+ }
38
+ const Rn = Et ? window.document : void 0;
39
+ function Ln(t) {
40
+ var e;
41
+ const n = j(t);
42
+ return (e = n?.$el) != null ? e : n;
43
+ }
44
+ /**!
45
+ * Sortable 1.15.6
46
+ * @author RubaXa <trash@rubaxa.org>
47
+ * @author owenm <owen23355@gmail.com>
48
+ * @license MIT
49
+ */
50
+ function Pt(t, e) {
51
+ var n = Object.keys(t);
52
+ if (Object.getOwnPropertySymbols) {
53
+ var o = Object.getOwnPropertySymbols(t);
54
+ e && (o = o.filter(function(r) {
55
+ return Object.getOwnPropertyDescriptor(t, r).enumerable;
56
+ })), n.push.apply(n, o);
57
+ }
58
+ return n;
59
+ }
60
+ function z(t) {
61
+ for (var e = 1; e < arguments.length; e++) {
62
+ var n = arguments[e] != null ? arguments[e] : {};
63
+ e % 2 ? Pt(Object(n), !0).forEach(function(o) {
64
+ Fn(t, o, n[o]);
65
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Pt(Object(n)).forEach(function(o) {
66
+ Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(n, o));
67
+ });
68
+ }
69
+ return t;
70
+ }
71
+ function Ye(t) {
72
+ "@babel/helpers - typeof";
73
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ye = function(e) {
74
+ return typeof e;
75
+ } : Ye = function(e) {
76
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
77
+ }, Ye(t);
78
+ }
79
+ function Fn(t, e, n) {
80
+ return e in t ? Object.defineProperty(t, e, {
81
+ value: n,
82
+ enumerable: !0,
83
+ configurable: !0,
84
+ writable: !0
85
+ }) : t[e] = n, t;
86
+ }
87
+ function q() {
88
+ return q = Object.assign || function(t) {
89
+ for (var e = 1; e < arguments.length; e++) {
90
+ var n = arguments[e];
91
+ for (var o in n)
92
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
93
+ }
94
+ return t;
95
+ }, q.apply(this, arguments);
96
+ }
97
+ function Bn(t, e) {
98
+ if (t == null) return {};
99
+ var n = {}, o = Object.keys(t), r, i;
100
+ for (i = 0; i < o.length; i++)
101
+ r = o[i], !(e.indexOf(r) >= 0) && (n[r] = t[r]);
102
+ return n;
103
+ }
104
+ function Yn(t, e) {
105
+ if (t == null) return {};
106
+ var n = Bn(t, e), o, r;
107
+ if (Object.getOwnPropertySymbols) {
108
+ var i = Object.getOwnPropertySymbols(t);
109
+ for (r = 0; r < i.length; r++)
110
+ o = i[r], !(e.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(t, o) && (n[o] = t[o]);
111
+ }
112
+ return n;
113
+ }
114
+ var jn = "1.15.6";
115
+ function V(t) {
116
+ if (typeof window < "u" && window.navigator)
117
+ return !!/* @__PURE__ */ navigator.userAgent.match(t);
118
+ }
119
+ var Z = V(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), xe = V(/Edge/i), At = V(/firefox/i), Te = V(/safari/i) && !V(/chrome/i) && !V(/android/i), St = V(/iP(ad|od|hone)/i), Ht = V(/chrome/i) && V(/android/i), Gt = {
120
+ capture: !1,
121
+ passive: !1
122
+ };
123
+ function S(t, e, n) {
124
+ t.addEventListener(e, n, !Z && Gt);
125
+ }
126
+ function E(t, e, n) {
127
+ t.removeEventListener(e, n, !Z && Gt);
128
+ }
129
+ function Ue(t, e) {
130
+ if (e) {
131
+ if (e[0] === ">" && (e = e.substring(1)), t)
132
+ try {
133
+ if (t.matches)
134
+ return t.matches(e);
135
+ if (t.msMatchesSelector)
136
+ return t.msMatchesSelector(e);
137
+ if (t.webkitMatchesSelector)
138
+ return t.webkitMatchesSelector(e);
139
+ } catch {
140
+ return !1;
141
+ }
142
+ return !1;
143
+ }
144
+ }
145
+ function zt(t) {
146
+ return t.host && t !== document && t.host.nodeType ? t.host : t.parentNode;
147
+ }
148
+ function $(t, e, n, o) {
149
+ if (t) {
150
+ n = n || document;
151
+ do {
152
+ if (e != null && (e[0] === ">" ? t.parentNode === n && Ue(t, e) : Ue(t, e)) || o && t === n)
153
+ return t;
154
+ if (t === n) break;
155
+ } while (t = zt(t));
156
+ }
157
+ return null;
158
+ }
159
+ var Nt = /\s+/g;
160
+ function B(t, e, n) {
161
+ if (t && e)
162
+ if (t.classList)
163
+ t.classList[n ? "add" : "remove"](e);
164
+ else {
165
+ var o = (" " + t.className + " ").replace(Nt, " ").replace(" " + e + " ", " ");
166
+ t.className = (o + (n ? " " + e : "")).replace(Nt, " ");
167
+ }
168
+ }
169
+ function p(t, e, n) {
170
+ var o = t && t.style;
171
+ if (o) {
172
+ if (n === void 0)
173
+ return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(t, "") : t.currentStyle && (n = t.currentStyle), e === void 0 ? n : n[e];
174
+ !(e in o) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), o[e] = n + (typeof n == "string" ? "" : "px");
175
+ }
176
+ }
177
+ function ge(t, e) {
178
+ var n = "";
179
+ if (typeof t == "string")
180
+ n = t;
181
+ else
182
+ do {
183
+ var o = p(t, "transform");
184
+ o && o !== "none" && (n = o + " " + n);
185
+ } while (!e && (t = t.parentNode));
186
+ var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
187
+ return r && new r(n);
188
+ }
189
+ function Ut(t, e, n) {
190
+ if (t) {
191
+ var o = t.getElementsByTagName(e), r = 0, i = o.length;
192
+ if (n)
193
+ for (; r < i; r++)
194
+ n(o[r], r);
195
+ return o;
196
+ }
197
+ return [];
198
+ }
199
+ function G() {
200
+ var t = document.scrollingElement;
201
+ return t || document.documentElement;
202
+ }
203
+ function P(t, e, n, o, r) {
204
+ if (!(!t.getBoundingClientRect && t !== window)) {
205
+ var i, s, a, l, u, c, d;
206
+ if (t !== window && t.parentNode && t !== G() ? (i = t.getBoundingClientRect(), s = i.top, a = i.left, l = i.bottom, u = i.right, c = i.height, d = i.width) : (s = 0, a = 0, l = window.innerHeight, u = window.innerWidth, c = window.innerHeight, d = window.innerWidth), (e || n) && t !== window && (r = r || t.parentNode, !Z))
207
+ do
208
+ if (r && r.getBoundingClientRect && (p(r, "transform") !== "none" || n && p(r, "position") !== "static")) {
209
+ var g = r.getBoundingClientRect();
210
+ s -= g.top + parseInt(p(r, "border-top-width")), a -= g.left + parseInt(p(r, "border-left-width")), l = s + i.height, u = a + i.width;
211
+ break;
212
+ }
213
+ while (r = r.parentNode);
214
+ if (o && t !== window) {
215
+ var v = ge(r || t), w = v && v.a, _ = v && v.d;
216
+ v && (s /= _, a /= w, d /= w, c /= _, l = s + c, u = a + d);
217
+ }
218
+ return {
219
+ top: s,
220
+ left: a,
221
+ bottom: l,
222
+ right: u,
223
+ width: d,
224
+ height: c
225
+ };
226
+ }
227
+ }
228
+ function xt(t, e, n) {
229
+ for (var o = te(t, !0), r = P(t)[e]; o; ) {
230
+ var i = P(o)[n], s = void 0;
231
+ if (s = r >= i, !s) return o;
232
+ if (o === G()) break;
233
+ o = te(o, !1);
234
+ }
235
+ return !1;
236
+ }
237
+ function me(t, e, n, o) {
238
+ for (var r = 0, i = 0, s = t.children; i < s.length; ) {
239
+ if (s[i].style.display !== "none" && s[i] !== h.ghost && (o || s[i] !== h.dragged) && $(s[i], n.draggable, t, !1)) {
240
+ if (r === e)
241
+ return s[i];
242
+ r++;
243
+ }
244
+ i++;
245
+ }
246
+ return null;
247
+ }
248
+ function _t(t, e) {
249
+ for (var n = t.lastElementChild; n && (n === h.ghost || p(n, "display") === "none" || e && !Ue(n, e)); )
250
+ n = n.previousElementSibling;
251
+ return n || null;
252
+ }
253
+ function X(t, e) {
254
+ var n = 0;
255
+ if (!t || !t.parentNode)
256
+ return -1;
257
+ for (; t = t.previousElementSibling; )
258
+ t.nodeName.toUpperCase() !== "TEMPLATE" && t !== h.clone && (!e || Ue(t, e)) && n++;
259
+ return n;
260
+ }
261
+ function kt(t) {
262
+ var e = 0, n = 0, o = G();
263
+ if (t)
264
+ do {
265
+ var r = ge(t), i = r.a, s = r.d;
266
+ e += t.scrollLeft * i, n += t.scrollTop * s;
267
+ } while (t !== o && (t = t.parentNode));
268
+ return [e, n];
269
+ }
270
+ function Xn(t, e) {
271
+ for (var n in t)
272
+ if (t.hasOwnProperty(n)) {
273
+ for (var o in e)
274
+ if (e.hasOwnProperty(o) && e[o] === t[n][o]) return Number(n);
275
+ }
276
+ return -1;
277
+ }
278
+ function te(t, e) {
279
+ if (!t || !t.getBoundingClientRect) return G();
280
+ var n = t, o = !1;
281
+ do
282
+ if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
283
+ var r = p(n);
284
+ if (n.clientWidth < n.scrollWidth && (r.overflowX == "auto" || r.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (r.overflowY == "auto" || r.overflowY == "scroll")) {
285
+ if (!n.getBoundingClientRect || n === document.body) return G();
286
+ if (o || e) return n;
287
+ o = !0;
288
+ }
289
+ }
290
+ while (n = n.parentNode);
291
+ return G();
292
+ }
293
+ function Wn(t, e) {
294
+ if (t && e)
295
+ for (var n in e)
296
+ e.hasOwnProperty(n) && (t[n] = e[n]);
297
+ return t;
298
+ }
299
+ function tt(t, e) {
300
+ return Math.round(t.top) === Math.round(e.top) && Math.round(t.left) === Math.round(e.left) && Math.round(t.height) === Math.round(e.height) && Math.round(t.width) === Math.round(e.width);
301
+ }
302
+ var Ie;
303
+ function Vt(t, e) {
304
+ return function() {
305
+ if (!Ie) {
306
+ var n = arguments, o = this;
307
+ n.length === 1 ? t.call(o, n[0]) : t.apply(o, n), Ie = setTimeout(function() {
308
+ Ie = void 0;
309
+ }, e);
310
+ }
311
+ };
312
+ }
313
+ function $n() {
314
+ clearTimeout(Ie), Ie = void 0;
315
+ }
316
+ function qt(t, e, n) {
317
+ t.scrollLeft += e, t.scrollTop += n;
318
+ }
319
+ function Zt(t) {
320
+ var e = window.Polymer, n = window.jQuery || window.Zepto;
321
+ return e && e.dom ? e.dom(t).cloneNode(!0) : n ? n(t).clone(!0)[0] : t.cloneNode(!0);
322
+ }
323
+ function Jt(t, e, n) {
324
+ var o = {};
325
+ return Array.from(t.children).forEach(function(r) {
326
+ var i, s, a, l;
327
+ if (!(!$(r, e.draggable, t, !1) || r.animated || r === n)) {
328
+ var u = P(r);
329
+ o.left = Math.min((i = o.left) !== null && i !== void 0 ? i : 1 / 0, u.left), o.top = Math.min((s = o.top) !== null && s !== void 0 ? s : 1 / 0, u.top), o.right = Math.max((a = o.right) !== null && a !== void 0 ? a : -1 / 0, u.right), o.bottom = Math.max((l = o.bottom) !== null && l !== void 0 ? l : -1 / 0, u.bottom);
330
+ }
331
+ }), o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
332
+ }
333
+ var L = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
334
+ function Hn() {
335
+ var t = [], e;
336
+ return {
337
+ captureAnimationState: function() {
338
+ if (t = [], !!this.options.animation) {
339
+ var o = [].slice.call(this.el.children);
340
+ o.forEach(function(r) {
341
+ if (!(p(r, "display") === "none" || r === h.ghost)) {
342
+ t.push({
343
+ target: r,
344
+ rect: P(r)
345
+ });
346
+ var i = z({}, t[t.length - 1].rect);
347
+ if (r.thisAnimationDuration) {
348
+ var s = ge(r, !0);
349
+ s && (i.top -= s.f, i.left -= s.e);
350
+ }
351
+ r.fromRect = i;
352
+ }
353
+ });
354
+ }
355
+ },
356
+ addAnimationState: function(o) {
357
+ t.push(o);
358
+ },
359
+ removeAnimationState: function(o) {
360
+ t.splice(Xn(t, {
361
+ target: o
362
+ }), 1);
363
+ },
364
+ animateAll: function(o) {
365
+ var r = this;
366
+ if (!this.options.animation) {
367
+ clearTimeout(e), typeof o == "function" && o();
368
+ return;
369
+ }
370
+ var i = !1, s = 0;
371
+ t.forEach(function(a) {
372
+ var l = 0, u = a.target, c = u.fromRect, d = P(u), g = u.prevFromRect, v = u.prevToRect, w = a.rect, _ = ge(u, !0);
373
+ _ && (d.top -= _.f, d.left -= _.e), u.toRect = d, u.thisAnimationDuration && tt(g, d) && !tt(c, d) && // Make sure animatingRect is on line between toRect & fromRect
374
+ (w.top - d.top) / (w.left - d.left) === (c.top - d.top) / (c.left - d.left) && (l = zn(w, g, v, r.options)), tt(d, c) || (u.prevFromRect = c, u.prevToRect = d, l || (l = r.options.animation), r.animate(u, w, d, l)), l && (i = !0, s = Math.max(s, l), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
375
+ u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
376
+ }, l), u.thisAnimationDuration = l);
377
+ }), clearTimeout(e), i ? e = setTimeout(function() {
378
+ typeof o == "function" && o();
379
+ }, s) : typeof o == "function" && o(), t = [];
380
+ },
381
+ animate: function(o, r, i, s) {
382
+ if (s) {
383
+ p(o, "transition", ""), p(o, "transform", "");
384
+ var a = ge(this.el), l = a && a.a, u = a && a.d, c = (r.left - i.left) / (l || 1), d = (r.top - i.top) / (u || 1);
385
+ o.animatingX = !!c, o.animatingY = !!d, p(o, "transform", "translate3d(" + c + "px," + d + "px,0)"), this.forRepaintDummy = Gn(o), p(o, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), p(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
386
+ p(o, "transition", ""), p(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
387
+ }, s);
388
+ }
389
+ }
390
+ };
391
+ }
392
+ function Gn(t) {
393
+ return t.offsetWidth;
394
+ }
395
+ function zn(t, e, n, o) {
396
+ return Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) / Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) * o.animation;
397
+ }
398
+ var ce = [], nt = {
399
+ initializeByDefault: !0
400
+ }, ke = {
401
+ mount: function(e) {
402
+ for (var n in nt)
403
+ nt.hasOwnProperty(n) && !(n in e) && (e[n] = nt[n]);
404
+ ce.forEach(function(o) {
405
+ if (o.pluginName === e.pluginName)
406
+ throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
407
+ }), ce.push(e);
408
+ },
409
+ pluginEvent: function(e, n, o) {
410
+ var r = this;
411
+ this.eventCanceled = !1, o.cancel = function() {
412
+ r.eventCanceled = !0;
413
+ };
414
+ var i = e + "Global";
415
+ ce.forEach(function(s) {
416
+ n[s.pluginName] && (n[s.pluginName][i] && n[s.pluginName][i](z({
417
+ sortable: n
418
+ }, o)), n.options[s.pluginName] && n[s.pluginName][e] && n[s.pluginName][e](z({
419
+ sortable: n
420
+ }, o)));
421
+ });
422
+ },
423
+ initializePlugins: function(e, n, o, r) {
424
+ ce.forEach(function(a) {
425
+ var l = a.pluginName;
426
+ if (!(!e.options[l] && !a.initializeByDefault)) {
427
+ var u = new a(e, n, e.options);
428
+ u.sortable = e, u.options = e.options, e[l] = u, q(o, u.defaults);
429
+ }
430
+ });
431
+ for (var i in e.options)
432
+ if (e.options.hasOwnProperty(i)) {
433
+ var s = this.modifyOption(e, i, e.options[i]);
434
+ typeof s < "u" && (e.options[i] = s);
435
+ }
436
+ },
437
+ getEventProperties: function(e, n) {
438
+ var o = {};
439
+ return ce.forEach(function(r) {
440
+ typeof r.eventProperties == "function" && q(o, r.eventProperties.call(n[r.pluginName], e));
441
+ }), o;
442
+ },
443
+ modifyOption: function(e, n, o) {
444
+ var r;
445
+ return ce.forEach(function(i) {
446
+ e[i.pluginName] && i.optionListeners && typeof i.optionListeners[n] == "function" && (r = i.optionListeners[n].call(e[i.pluginName], o));
447
+ }), r;
448
+ }
449
+ };
450
+ function Un(t) {
451
+ var e = t.sortable, n = t.rootEl, o = t.name, r = t.targetEl, i = t.cloneEl, s = t.toEl, a = t.fromEl, l = t.oldIndex, u = t.newIndex, c = t.oldDraggableIndex, d = t.newDraggableIndex, g = t.originalEvent, v = t.putSortable, w = t.extraEventProperties;
452
+ if (e = e || n && n[L], !!e) {
453
+ var _, m = e.options, y = "on" + o.charAt(0).toUpperCase() + o.substr(1);
454
+ window.CustomEvent && !Z && !xe ? _ = new CustomEvent(o, {
455
+ bubbles: !0,
456
+ cancelable: !0
457
+ }) : (_ = document.createEvent("Event"), _.initEvent(o, !0, !0)), _.to = s || n, _.from = a || n, _.item = r || n, _.clone = i, _.oldIndex = l, _.newIndex = u, _.oldDraggableIndex = c, _.newDraggableIndex = d, _.originalEvent = g, _.pullMode = v ? v.lastPutMode : void 0;
458
+ var D = z(z({}, w), ke.getEventProperties(o, e));
459
+ for (var A in D)
460
+ _[A] = D[A];
461
+ n && n.dispatchEvent(_), m[y] && m[y].call(e, _);
462
+ }
463
+ }
464
+ var Vn = ["evt"], R = function(e, n) {
465
+ var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = o.evt, i = Yn(o, Vn);
466
+ ke.pluginEvent.bind(h)(e, n, z({
467
+ dragEl: f,
468
+ parentEl: T,
469
+ ghostEl: b,
470
+ rootEl: C,
471
+ nextEl: se,
472
+ lastDownEl: je,
473
+ cloneEl: O,
474
+ cloneHidden: ee,
475
+ dragStarted: Se,
476
+ putSortable: N,
477
+ activeSortable: h.active,
478
+ originalEvent: r,
479
+ oldIndex: he,
480
+ oldDraggableIndex: Pe,
481
+ newIndex: Y,
482
+ newDraggableIndex: Q,
483
+ hideGhostForTarget: tn,
484
+ unhideGhostForTarget: nn,
485
+ cloneNowHidden: function() {
486
+ ee = !0;
487
+ },
488
+ cloneNowShown: function() {
489
+ ee = !1;
490
+ },
491
+ dispatchSortableEvent: function(a) {
492
+ M({
493
+ sortable: n,
494
+ name: a,
495
+ originalEvent: r
496
+ });
497
+ }
498
+ }, i));
499
+ };
500
+ function M(t) {
501
+ Un(z({
502
+ putSortable: N,
503
+ cloneEl: O,
504
+ targetEl: f,
505
+ rootEl: C,
506
+ oldIndex: he,
507
+ oldDraggableIndex: Pe,
508
+ newIndex: Y,
509
+ newDraggableIndex: Q
510
+ }, t));
511
+ }
512
+ var f, T, b, C, se, je, O, ee, he, Y, Pe, Q, Re, N, de = !1, Ve = !1, qe = [], ie, W, ot, rt, Mt, Rt, Se, fe, Ae, Ne = !1, Le = !1, Xe, k, it = [], gt = !1, Ze = [], Qe = typeof document < "u", Fe = St, Lt = xe || Z ? "cssFloat" : "float", qn = Qe && !Ht && !St && "draggable" in document.createElement("div"), Kt = (function() {
513
+ if (Qe) {
514
+ if (Z)
515
+ return !1;
516
+ var t = document.createElement("x");
517
+ return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
518
+ }
519
+ })(), Qt = function(e, n) {
520
+ var o = p(e), r = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), i = me(e, 0, n), s = me(e, 1, n), a = i && p(i), l = s && p(s), u = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + P(i).width, c = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + P(s).width;
521
+ if (o.display === "flex")
522
+ return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
523
+ if (o.display === "grid")
524
+ return o.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
525
+ if (i && a.float && a.float !== "none") {
526
+ var d = a.float === "left" ? "left" : "right";
527
+ return s && (l.clear === "both" || l.clear === d) ? "vertical" : "horizontal";
528
+ }
529
+ return i && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= r && o[Lt] === "none" || s && o[Lt] === "none" && u + c > r) ? "vertical" : "horizontal";
530
+ }, Zn = function(e, n, o) {
531
+ var r = o ? e.left : e.top, i = o ? e.right : e.bottom, s = o ? e.width : e.height, a = o ? n.left : n.top, l = o ? n.right : n.bottom, u = o ? n.width : n.height;
532
+ return r === a || i === l || r + s / 2 === a + u / 2;
533
+ }, Jn = function(e, n) {
534
+ var o;
535
+ return qe.some(function(r) {
536
+ var i = r[L].options.emptyInsertThreshold;
537
+ if (!(!i || _t(r))) {
538
+ var s = P(r), a = e >= s.left - i && e <= s.right + i, l = n >= s.top - i && n <= s.bottom + i;
539
+ if (a && l)
540
+ return o = r;
541
+ }
542
+ }), o;
543
+ }, en = function(e) {
544
+ function n(i, s) {
545
+ return function(a, l, u, c) {
546
+ var d = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
547
+ if (i == null && (s || d))
548
+ return !0;
549
+ if (i == null || i === !1)
550
+ return !1;
551
+ if (s && i === "clone")
552
+ return i;
553
+ if (typeof i == "function")
554
+ return n(i(a, l, u, c), s)(a, l, u, c);
555
+ var g = (s ? a : l).options.group.name;
556
+ return i === !0 || typeof i == "string" && i === g || i.join && i.indexOf(g) > -1;
557
+ };
558
+ }
559
+ var o = {}, r = e.group;
560
+ (!r || Ye(r) != "object") && (r = {
561
+ name: r
562
+ }), o.name = r.name, o.checkPull = n(r.pull, !0), o.checkPut = n(r.put), o.revertClone = r.revertClone, e.group = o;
563
+ }, tn = function() {
564
+ !Kt && b && p(b, "display", "none");
565
+ }, nn = function() {
566
+ !Kt && b && p(b, "display", "");
567
+ };
568
+ Qe && !Ht && document.addEventListener("click", function(t) {
569
+ if (Ve)
570
+ return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), Ve = !1, !1;
571
+ }, !0);
572
+ var ae = function(e) {
573
+ if (f) {
574
+ e = e.touches ? e.touches[0] : e;
575
+ var n = Jn(e.clientX, e.clientY);
576
+ if (n) {
577
+ var o = {};
578
+ for (var r in e)
579
+ e.hasOwnProperty(r) && (o[r] = e[r]);
580
+ o.target = o.rootEl = n, o.preventDefault = void 0, o.stopPropagation = void 0, n[L]._onDragOver(o);
581
+ }
582
+ }
583
+ }, Kn = function(e) {
584
+ f && f.parentNode[L]._isOutsideThisEl(e.target);
585
+ };
586
+ function h(t, e) {
587
+ if (!(t && t.nodeType && t.nodeType === 1))
588
+ throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));
589
+ this.el = t, this.options = e = q({}, e), t[L] = this;
590
+ var n = {
591
+ group: null,
592
+ sort: !0,
593
+ disabled: !1,
594
+ store: null,
595
+ handle: null,
596
+ draggable: /^[uo]l$/i.test(t.nodeName) ? ">li" : ">*",
597
+ swapThreshold: 1,
598
+ // percentage; 0 <= x <= 1
599
+ invertSwap: !1,
600
+ // invert always
601
+ invertedSwapThreshold: null,
602
+ // will be set to same as swapThreshold if default
603
+ removeCloneOnHide: !0,
604
+ direction: function() {
605
+ return Qt(t, this.options);
606
+ },
607
+ ghostClass: "sortable-ghost",
608
+ chosenClass: "sortable-chosen",
609
+ dragClass: "sortable-drag",
610
+ ignore: "a, img",
611
+ filter: null,
612
+ preventOnFilter: !0,
613
+ animation: 0,
614
+ easing: null,
615
+ setData: function(s, a) {
616
+ s.setData("Text", a.textContent);
617
+ },
618
+ dropBubble: !1,
619
+ dragoverBubble: !1,
620
+ dataIdAttr: "data-id",
621
+ delay: 0,
622
+ delayOnTouchOnly: !1,
623
+ touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
624
+ forceFallback: !1,
625
+ fallbackClass: "sortable-fallback",
626
+ fallbackOnBody: !1,
627
+ fallbackTolerance: 0,
628
+ fallbackOffset: {
629
+ x: 0,
630
+ y: 0
631
+ },
632
+ // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
633
+ supportPointer: h.supportPointer !== !1 && "PointerEvent" in window && (!Te || St),
634
+ emptyInsertThreshold: 5
635
+ };
636
+ ke.initializePlugins(this, t, n);
637
+ for (var o in n)
638
+ !(o in e) && (e[o] = n[o]);
639
+ en(e);
640
+ for (var r in this)
641
+ r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
642
+ this.nativeDraggable = e.forceFallback ? !1 : qn, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? S(t, "pointerdown", this._onTapStart) : (S(t, "mousedown", this._onTapStart), S(t, "touchstart", this._onTapStart)), this.nativeDraggable && (S(t, "dragover", this), S(t, "dragenter", this)), qe.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), q(this, Hn());
643
+ }
644
+ h.prototype = /** @lends Sortable.prototype */
645
+ {
646
+ constructor: h,
647
+ _isOutsideThisEl: function(e) {
648
+ !this.el.contains(e) && e !== this.el && (fe = null);
649
+ },
650
+ _getDirection: function(e, n) {
651
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, e, n, f) : this.options.direction;
652
+ },
653
+ _onTapStart: function(e) {
654
+ if (e.cancelable) {
655
+ var n = this, o = this.el, r = this.options, i = r.preventOnFilter, s = e.type, a = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, l = (a || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || l, c = r.filter;
656
+ if (ao(o), !f && !(/mousedown|pointerdown/.test(s) && e.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Te && l && l.tagName.toUpperCase() === "SELECT") && (l = $(l, r.draggable, o, !1), !(l && l.animated) && je !== l)) {
657
+ if (he = X(l), Pe = X(l, r.draggable), typeof c == "function") {
658
+ if (c.call(this, e, l, this)) {
659
+ M({
660
+ sortable: n,
661
+ rootEl: u,
662
+ name: "filter",
663
+ targetEl: l,
664
+ toEl: o,
665
+ fromEl: o
666
+ }), R("filter", n, {
667
+ evt: e
668
+ }), i && e.preventDefault();
669
+ return;
670
+ }
671
+ } else if (c && (c = c.split(",").some(function(d) {
672
+ if (d = $(u, d.trim(), o, !1), d)
673
+ return M({
674
+ sortable: n,
675
+ rootEl: d,
676
+ name: "filter",
677
+ targetEl: l,
678
+ fromEl: o,
679
+ toEl: o
680
+ }), R("filter", n, {
681
+ evt: e
682
+ }), !0;
683
+ }), c)) {
684
+ i && e.preventDefault();
685
+ return;
686
+ }
687
+ r.handle && !$(u, r.handle, o, !1) || this._prepareDragStart(e, a, l);
688
+ }
689
+ }
690
+ },
691
+ _prepareDragStart: function(e, n, o) {
692
+ var r = this, i = r.el, s = r.options, a = i.ownerDocument, l;
693
+ if (o && !f && o.parentNode === i) {
694
+ var u = P(o);
695
+ if (C = i, f = o, T = f.parentNode, se = f.nextSibling, je = o, Re = s.group, h.dragged = f, ie = {
696
+ target: f,
697
+ clientX: (n || e).clientX,
698
+ clientY: (n || e).clientY
699
+ }, Mt = ie.clientX - u.left, Rt = ie.clientY - u.top, this._lastX = (n || e).clientX, this._lastY = (n || e).clientY, f.style["will-change"] = "all", l = function() {
700
+ if (R("delayEnded", r, {
701
+ evt: e
702
+ }), h.eventCanceled) {
703
+ r._onDrop();
704
+ return;
705
+ }
706
+ r._disableDelayedDragEvents(), !At && r.nativeDraggable && (f.draggable = !0), r._triggerDragStart(e, n), M({
707
+ sortable: r,
708
+ name: "choose",
709
+ originalEvent: e
710
+ }), B(f, s.chosenClass, !0);
711
+ }, s.ignore.split(",").forEach(function(c) {
712
+ Ut(f, c.trim(), at);
713
+ }), S(a, "dragover", ae), S(a, "mousemove", ae), S(a, "touchmove", ae), s.supportPointer ? (S(a, "pointerup", r._onDrop), !this.nativeDraggable && S(a, "pointercancel", r._onDrop)) : (S(a, "mouseup", r._onDrop), S(a, "touchend", r._onDrop), S(a, "touchcancel", r._onDrop)), At && this.nativeDraggable && (this.options.touchStartThreshold = 4, f.draggable = !0), R("delayStart", this, {
714
+ evt: e
715
+ }), s.delay && (!s.delayOnTouchOnly || n) && (!this.nativeDraggable || !(xe || Z))) {
716
+ if (h.eventCanceled) {
717
+ this._onDrop();
718
+ return;
719
+ }
720
+ s.supportPointer ? (S(a, "pointerup", r._disableDelayedDrag), S(a, "pointercancel", r._disableDelayedDrag)) : (S(a, "mouseup", r._disableDelayedDrag), S(a, "touchend", r._disableDelayedDrag), S(a, "touchcancel", r._disableDelayedDrag)), S(a, "mousemove", r._delayedDragTouchMoveHandler), S(a, "touchmove", r._delayedDragTouchMoveHandler), s.supportPointer && S(a, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(l, s.delay);
721
+ } else
722
+ l();
723
+ }
724
+ },
725
+ _delayedDragTouchMoveHandler: function(e) {
726
+ var n = e.touches ? e.touches[0] : e;
727
+ Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
728
+ },
729
+ _disableDelayedDrag: function() {
730
+ f && at(f), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
731
+ },
732
+ _disableDelayedDragEvents: function() {
733
+ var e = this.el.ownerDocument;
734
+ E(e, "mouseup", this._disableDelayedDrag), E(e, "touchend", this._disableDelayedDrag), E(e, "touchcancel", this._disableDelayedDrag), E(e, "pointerup", this._disableDelayedDrag), E(e, "pointercancel", this._disableDelayedDrag), E(e, "mousemove", this._delayedDragTouchMoveHandler), E(e, "touchmove", this._delayedDragTouchMoveHandler), E(e, "pointermove", this._delayedDragTouchMoveHandler);
735
+ },
736
+ _triggerDragStart: function(e, n) {
737
+ n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ? S(document, "pointermove", this._onTouchMove) : n ? S(document, "touchmove", this._onTouchMove) : S(document, "mousemove", this._onTouchMove) : (S(f, "dragend", this), S(C, "dragstart", this._onDragStart));
738
+ try {
739
+ document.selection ? We(function() {
740
+ document.selection.empty();
741
+ }) : window.getSelection().removeAllRanges();
742
+ } catch {
743
+ }
744
+ },
745
+ _dragStarted: function(e, n) {
746
+ if (de = !1, C && f) {
747
+ R("dragStarted", this, {
748
+ evt: n
749
+ }), this.nativeDraggable && S(document, "dragover", Kn);
750
+ var o = this.options;
751
+ !e && B(f, o.dragClass, !1), B(f, o.ghostClass, !0), h.active = this, e && this._appendGhost(), M({
752
+ sortable: this,
753
+ name: "start",
754
+ originalEvent: n
755
+ });
756
+ } else
757
+ this._nulling();
758
+ },
759
+ _emulateDragOver: function() {
760
+ if (W) {
761
+ this._lastX = W.clientX, this._lastY = W.clientY, tn();
762
+ for (var e = document.elementFromPoint(W.clientX, W.clientY), n = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(W.clientX, W.clientY), e !== n); )
763
+ n = e;
764
+ if (f.parentNode[L]._isOutsideThisEl(e), n)
765
+ do {
766
+ if (n[L]) {
767
+ var o = void 0;
768
+ if (o = n[L]._onDragOver({
769
+ clientX: W.clientX,
770
+ clientY: W.clientY,
771
+ target: e,
772
+ rootEl: n
773
+ }), o && !this.options.dragoverBubble)
774
+ break;
775
+ }
776
+ e = n;
777
+ } while (n = zt(n));
778
+ nn();
779
+ }
780
+ },
781
+ _onTouchMove: function(e) {
782
+ if (ie) {
783
+ var n = this.options, o = n.fallbackTolerance, r = n.fallbackOffset, i = e.touches ? e.touches[0] : e, s = b && ge(b, !0), a = b && s && s.a, l = b && s && s.d, u = Fe && k && kt(k), c = (i.clientX - ie.clientX + r.x) / (a || 1) + (u ? u[0] - it[0] : 0) / (a || 1), d = (i.clientY - ie.clientY + r.y) / (l || 1) + (u ? u[1] - it[1] : 0) / (l || 1);
784
+ if (!h.active && !de) {
785
+ if (o && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < o)
786
+ return;
787
+ this._onDragStart(e, !0);
788
+ }
789
+ if (b) {
790
+ s ? (s.e += c - (ot || 0), s.f += d - (rt || 0)) : s = {
791
+ a: 1,
792
+ b: 0,
793
+ c: 0,
794
+ d: 1,
795
+ e: c,
796
+ f: d
797
+ };
798
+ var g = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
799
+ p(b, "webkitTransform", g), p(b, "mozTransform", g), p(b, "msTransform", g), p(b, "transform", g), ot = c, rt = d, W = i;
800
+ }
801
+ e.cancelable && e.preventDefault();
802
+ }
803
+ },
804
+ _appendGhost: function() {
805
+ if (!b) {
806
+ var e = this.options.fallbackOnBody ? document.body : C, n = P(f, !0, Fe, !0, e), o = this.options;
807
+ if (Fe) {
808
+ for (k = e; p(k, "position") === "static" && p(k, "transform") === "none" && k !== document; )
809
+ k = k.parentNode;
810
+ k !== document.body && k !== document.documentElement ? (k === document && (k = G()), n.top += k.scrollTop, n.left += k.scrollLeft) : k = G(), it = kt(k);
811
+ }
812
+ b = f.cloneNode(!0), B(b, o.ghostClass, !1), B(b, o.fallbackClass, !0), B(b, o.dragClass, !0), p(b, "transition", ""), p(b, "transform", ""), p(b, "box-sizing", "border-box"), p(b, "margin", 0), p(b, "top", n.top), p(b, "left", n.left), p(b, "width", n.width), p(b, "height", n.height), p(b, "opacity", "0.8"), p(b, "position", Fe ? "absolute" : "fixed"), p(b, "zIndex", "100000"), p(b, "pointerEvents", "none"), h.ghost = b, e.appendChild(b), p(b, "transform-origin", Mt / parseInt(b.style.width) * 100 + "% " + Rt / parseInt(b.style.height) * 100 + "%");
813
+ }
814
+ },
815
+ _onDragStart: function(e, n) {
816
+ var o = this, r = e.dataTransfer, i = o.options;
817
+ if (R("dragStart", this, {
818
+ evt: e
819
+ }), h.eventCanceled) {
820
+ this._onDrop();
821
+ return;
822
+ }
823
+ R("setupClone", this), h.eventCanceled || (O = Zt(f), O.removeAttribute("id"), O.draggable = !1, O.style["will-change"] = "", this._hideClone(), B(O, this.options.chosenClass, !1), h.clone = O), o.cloneId = We(function() {
824
+ R("clone", o), !h.eventCanceled && (o.options.removeCloneOnHide || C.insertBefore(O, f), o._hideClone(), M({
825
+ sortable: o,
826
+ name: "clone"
827
+ }));
828
+ }), !n && B(f, i.dragClass, !0), n ? (Ve = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (E(document, "mouseup", o._onDrop), E(document, "touchend", o._onDrop), E(document, "touchcancel", o._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(o, r, f)), S(document, "drop", o), p(f, "transform", "translateZ(0)")), de = !0, o._dragStartId = We(o._dragStarted.bind(o, n, e)), S(document, "selectstart", o), Se = !0, window.getSelection().removeAllRanges(), Te && p(document.body, "user-select", "none");
829
+ },
830
+ // Returns true - if no further action is needed (either inserted or another condition)
831
+ _onDragOver: function(e) {
832
+ var n = this.el, o = e.target, r, i, s, a = this.options, l = a.group, u = h.active, c = Re === l, d = a.sort, g = N || u, v, w = this, _ = !1;
833
+ if (gt) return;
834
+ function m(Ee, sn) {
835
+ R(Ee, w, z({
836
+ evt: e,
837
+ isOwner: c,
838
+ axis: v ? "vertical" : "horizontal",
839
+ revert: s,
840
+ dragRect: r,
841
+ targetRect: i,
842
+ canSort: d,
843
+ fromSortable: g,
844
+ target: o,
845
+ completed: D,
846
+ onMove: function(Ot, un) {
847
+ return Be(C, n, f, r, Ot, P(Ot), e, un);
848
+ },
849
+ changed: A
850
+ }, sn));
851
+ }
852
+ function y() {
853
+ m("dragOverAnimationCapture"), w.captureAnimationState(), w !== g && g.captureAnimationState();
854
+ }
855
+ function D(Ee) {
856
+ return m("dragOverCompleted", {
857
+ insertion: Ee
858
+ }), Ee && (c ? u._hideClone() : u._showClone(w), w !== g && (B(f, N ? N.options.ghostClass : u.options.ghostClass, !1), B(f, a.ghostClass, !0)), N !== w && w !== h.active ? N = w : w === h.active && N && (N = null), g === w && (w._ignoreWhileAnimating = o), w.animateAll(function() {
859
+ m("dragOverAnimationComplete"), w._ignoreWhileAnimating = null;
860
+ }), w !== g && (g.animateAll(), g._ignoreWhileAnimating = null)), (o === f && !f.animated || o === n && !o.animated) && (fe = null), !a.dragoverBubble && !e.rootEl && o !== document && (f.parentNode[L]._isOutsideThisEl(e.target), !Ee && ae(e)), !a.dragoverBubble && e.stopPropagation && e.stopPropagation(), _ = !0;
861
+ }
862
+ function A() {
863
+ Y = X(f), Q = X(f, a.draggable), M({
864
+ sortable: w,
865
+ name: "change",
866
+ toEl: n,
867
+ newIndex: Y,
868
+ newDraggableIndex: Q,
869
+ originalEvent: e
870
+ });
871
+ }
872
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = $(o, a.draggable, n, !0), m("dragOver"), h.eventCanceled) return _;
873
+ if (f.contains(e.target) || o.animated && o.animatingX && o.animatingY || w._ignoreWhileAnimating === o)
874
+ return D(!1);
875
+ if (Ve = !1, u && !a.disabled && (c ? d || (s = T !== C) : N === this || (this.lastPutMode = Re.checkPull(this, u, f, e)) && l.checkPut(this, u, f, e))) {
876
+ if (v = this._getDirection(e, o) === "vertical", r = P(f), m("dragOverValid"), h.eventCanceled) return _;
877
+ if (s)
878
+ return T = C, y(), this._hideClone(), m("revert"), h.eventCanceled || (se ? C.insertBefore(f, se) : C.appendChild(f)), D(!0);
879
+ var x = _t(n, a.draggable);
880
+ if (!x || no(e, v, this) && !x.animated) {
881
+ if (x === f)
882
+ return D(!1);
883
+ if (x && n === e.target && (o = x), o && (i = P(o)), Be(C, n, f, r, o, i, e, !!o) !== !1)
884
+ return y(), x && x.nextSibling ? n.insertBefore(f, x.nextSibling) : n.appendChild(f), T = n, A(), D(!0);
885
+ } else if (x && to(e, v, this)) {
886
+ var ne = me(n, 0, a, !0);
887
+ if (ne === f)
888
+ return D(!1);
889
+ if (o = ne, i = P(o), Be(C, n, f, r, o, i, e, !1) !== !1)
890
+ return y(), n.insertBefore(f, ne), T = n, A(), D(!0);
891
+ } else if (o.parentNode === n) {
892
+ i = P(o);
893
+ var H = 0, oe, ve = f.parentNode !== n, F = !Zn(f.animated && f.toRect || r, o.animated && o.toRect || i, v), be = v ? "top" : "left", J = xt(o, "top", "top") || xt(f, "top", "top"), ye = J ? J.scrollTop : void 0;
894
+ fe !== o && (oe = i[be], Ne = !1, Le = !F && a.invertSwap || ve), H = oo(e, o, i, v, F ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Le, fe === o);
895
+ var U;
896
+ if (H !== 0) {
897
+ var re = X(f);
898
+ do
899
+ re -= H, U = T.children[re];
900
+ while (U && (p(U, "display") === "none" || U === b));
901
+ }
902
+ if (H === 0 || U === o)
903
+ return D(!1);
904
+ fe = o, Ae = H;
905
+ var we = o.nextElementSibling, K = !1;
906
+ K = H === 1;
907
+ var Me = Be(C, n, f, r, o, i, e, K);
908
+ if (Me !== !1)
909
+ return (Me === 1 || Me === -1) && (K = Me === 1), gt = !0, setTimeout(eo, 30), y(), K && !we ? n.appendChild(f) : o.parentNode.insertBefore(f, K ? we : o), J && qt(J, 0, ye - J.scrollTop), T = f.parentNode, oe !== void 0 && !Le && (Xe = Math.abs(oe - P(o)[be])), A(), D(!0);
910
+ }
911
+ if (n.contains(f))
912
+ return D(!1);
913
+ }
914
+ return !1;
915
+ },
916
+ _ignoreWhileAnimating: null,
917
+ _offMoveEvents: function() {
918
+ E(document, "mousemove", this._onTouchMove), E(document, "touchmove", this._onTouchMove), E(document, "pointermove", this._onTouchMove), E(document, "dragover", ae), E(document, "mousemove", ae), E(document, "touchmove", ae);
919
+ },
920
+ _offUpEvents: function() {
921
+ var e = this.el.ownerDocument;
922
+ E(e, "mouseup", this._onDrop), E(e, "touchend", this._onDrop), E(e, "pointerup", this._onDrop), E(e, "pointercancel", this._onDrop), E(e, "touchcancel", this._onDrop), E(document, "selectstart", this);
923
+ },
924
+ _onDrop: function(e) {
925
+ var n = this.el, o = this.options;
926
+ if (Y = X(f), Q = X(f, o.draggable), R("drop", this, {
927
+ evt: e
928
+ }), T = f && f.parentNode, Y = X(f), Q = X(f, o.draggable), h.eventCanceled) {
929
+ this._nulling();
930
+ return;
931
+ }
932
+ de = !1, Le = !1, Ne = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), mt(this.cloneId), mt(this._dragStartId), this.nativeDraggable && (E(document, "drop", this), E(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Te && p(document.body, "user-select", ""), p(f, "transform", ""), e && (Se && (e.cancelable && e.preventDefault(), !o.dropBubble && e.stopPropagation()), b && b.parentNode && b.parentNode.removeChild(b), (C === T || N && N.lastPutMode !== "clone") && O && O.parentNode && O.parentNode.removeChild(O), f && (this.nativeDraggable && E(f, "dragend", this), at(f), f.style["will-change"] = "", Se && !de && B(f, N ? N.options.ghostClass : this.options.ghostClass, !1), B(f, this.options.chosenClass, !1), M({
933
+ sortable: this,
934
+ name: "unchoose",
935
+ toEl: T,
936
+ newIndex: null,
937
+ newDraggableIndex: null,
938
+ originalEvent: e
939
+ }), C !== T ? (Y >= 0 && (M({
940
+ rootEl: T,
941
+ name: "add",
942
+ toEl: T,
943
+ fromEl: C,
944
+ originalEvent: e
945
+ }), M({
946
+ sortable: this,
947
+ name: "remove",
948
+ toEl: T,
949
+ originalEvent: e
950
+ }), M({
951
+ rootEl: T,
952
+ name: "sort",
953
+ toEl: T,
954
+ fromEl: C,
955
+ originalEvent: e
956
+ }), M({
957
+ sortable: this,
958
+ name: "sort",
959
+ toEl: T,
960
+ originalEvent: e
961
+ })), N && N.save()) : Y !== he && Y >= 0 && (M({
962
+ sortable: this,
963
+ name: "update",
964
+ toEl: T,
965
+ originalEvent: e
966
+ }), M({
967
+ sortable: this,
968
+ name: "sort",
969
+ toEl: T,
970
+ originalEvent: e
971
+ })), h.active && ((Y == null || Y === -1) && (Y = he, Q = Pe), M({
972
+ sortable: this,
973
+ name: "end",
974
+ toEl: T,
975
+ originalEvent: e
976
+ }), this.save()))), this._nulling();
977
+ },
978
+ _nulling: function() {
979
+ R("nulling", this), C = f = T = b = se = O = je = ee = ie = W = Se = Y = Q = he = Pe = fe = Ae = N = Re = h.dragged = h.ghost = h.clone = h.active = null, Ze.forEach(function(e) {
980
+ e.checked = !0;
981
+ }), Ze.length = ot = rt = 0;
982
+ },
983
+ handleEvent: function(e) {
984
+ switch (e.type) {
985
+ case "drop":
986
+ case "dragend":
987
+ this._onDrop(e);
988
+ break;
989
+ case "dragenter":
990
+ case "dragover":
991
+ f && (this._onDragOver(e), Qn(e));
992
+ break;
993
+ case "selectstart":
994
+ e.preventDefault();
995
+ break;
996
+ }
997
+ },
998
+ /**
999
+ * Serializes the item into an array of string.
1000
+ * @returns {String[]}
1001
+ */
1002
+ toArray: function() {
1003
+ for (var e = [], n, o = this.el.children, r = 0, i = o.length, s = this.options; r < i; r++)
1004
+ n = o[r], $(n, s.draggable, this.el, !1) && e.push(n.getAttribute(s.dataIdAttr) || io(n));
1005
+ return e;
1006
+ },
1007
+ /**
1008
+ * Sorts the elements according to the array.
1009
+ * @param {String[]} order order of the items
1010
+ */
1011
+ sort: function(e, n) {
1012
+ var o = {}, r = this.el;
1013
+ this.toArray().forEach(function(i, s) {
1014
+ var a = r.children[s];
1015
+ $(a, this.options.draggable, r, !1) && (o[i] = a);
1016
+ }, this), n && this.captureAnimationState(), e.forEach(function(i) {
1017
+ o[i] && (r.removeChild(o[i]), r.appendChild(o[i]));
1018
+ }), n && this.animateAll();
1019
+ },
1020
+ /**
1021
+ * Save the current sorting
1022
+ */
1023
+ save: function() {
1024
+ var e = this.options.store;
1025
+ e && e.set && e.set(this);
1026
+ },
1027
+ /**
1028
+ * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
1029
+ * @param {HTMLElement} el
1030
+ * @param {String} [selector] default: `options.draggable`
1031
+ * @returns {HTMLElement|null}
1032
+ */
1033
+ closest: function(e, n) {
1034
+ return $(e, n || this.options.draggable, this.el, !1);
1035
+ },
1036
+ /**
1037
+ * Set/get option
1038
+ * @param {string} name
1039
+ * @param {*} [value]
1040
+ * @returns {*}
1041
+ */
1042
+ option: function(e, n) {
1043
+ var o = this.options;
1044
+ if (n === void 0)
1045
+ return o[e];
1046
+ var r = ke.modifyOption(this, e, n);
1047
+ typeof r < "u" ? o[e] = r : o[e] = n, e === "group" && en(o);
1048
+ },
1049
+ /**
1050
+ * Destroy
1051
+ */
1052
+ destroy: function() {
1053
+ R("destroy", this);
1054
+ var e = this.el;
1055
+ e[L] = null, E(e, "mousedown", this._onTapStart), E(e, "touchstart", this._onTapStart), E(e, "pointerdown", this._onTapStart), this.nativeDraggable && (E(e, "dragover", this), E(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(n) {
1056
+ n.removeAttribute("draggable");
1057
+ }), this._onDrop(), this._disableDelayedDragEvents(), qe.splice(qe.indexOf(this.el), 1), this.el = e = null;
1058
+ },
1059
+ _hideClone: function() {
1060
+ if (!ee) {
1061
+ if (R("hideClone", this), h.eventCanceled) return;
1062
+ p(O, "display", "none"), this.options.removeCloneOnHide && O.parentNode && O.parentNode.removeChild(O), ee = !0;
1063
+ }
1064
+ },
1065
+ _showClone: function(e) {
1066
+ if (e.lastPutMode !== "clone") {
1067
+ this._hideClone();
1068
+ return;
1069
+ }
1070
+ if (ee) {
1071
+ if (R("showClone", this), h.eventCanceled) return;
1072
+ f.parentNode == C && !this.options.group.revertClone ? C.insertBefore(O, f) : se ? C.insertBefore(O, se) : C.appendChild(O), this.options.group.revertClone && this.animate(f, O), p(O, "display", ""), ee = !1;
1073
+ }
1074
+ }
1075
+ };
1076
+ function Qn(t) {
1077
+ t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
1078
+ }
1079
+ function Be(t, e, n, o, r, i, s, a) {
1080
+ var l, u = t[L], c = u.options.onMove, d;
1081
+ return window.CustomEvent && !Z && !xe ? l = new CustomEvent("move", {
1082
+ bubbles: !0,
1083
+ cancelable: !0
1084
+ }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = e, l.from = t, l.dragged = n, l.draggedRect = o, l.related = r || e, l.relatedRect = i || P(e), l.willInsertAfter = a, l.originalEvent = s, t.dispatchEvent(l), c && (d = c.call(u, l, s)), d;
1085
+ }
1086
+ function at(t) {
1087
+ t.draggable = !1;
1088
+ }
1089
+ function eo() {
1090
+ gt = !1;
1091
+ }
1092
+ function to(t, e, n) {
1093
+ var o = P(me(n.el, 0, n.options, !0)), r = Jt(n.el, n.options, b), i = 10;
1094
+ return e ? t.clientX < r.left - i || t.clientY < o.top && t.clientX < o.right : t.clientY < r.top - i || t.clientY < o.bottom && t.clientX < o.left;
1095
+ }
1096
+ function no(t, e, n) {
1097
+ var o = P(_t(n.el, n.options.draggable)), r = Jt(n.el, n.options, b), i = 10;
1098
+ return e ? t.clientX > r.right + i || t.clientY > o.bottom && t.clientX > o.left : t.clientY > r.bottom + i || t.clientX > o.right && t.clientY > o.top;
1099
+ }
1100
+ function oo(t, e, n, o, r, i, s, a) {
1101
+ var l = o ? t.clientY : t.clientX, u = o ? n.height : n.width, c = o ? n.top : n.left, d = o ? n.bottom : n.right, g = !1;
1102
+ if (!s) {
1103
+ if (a && Xe < u * r) {
1104
+ if (!Ne && (Ae === 1 ? l > c + u * i / 2 : l < d - u * i / 2) && (Ne = !0), Ne)
1105
+ g = !0;
1106
+ else if (Ae === 1 ? l < c + Xe : l > d - Xe)
1107
+ return -Ae;
1108
+ } else if (l > c + u * (1 - r) / 2 && l < d - u * (1 - r) / 2)
1109
+ return ro(e);
1110
+ }
1111
+ return g = g || s, g && (l < c + u * i / 2 || l > d - u * i / 2) ? l > c + u / 2 ? 1 : -1 : 0;
1112
+ }
1113
+ function ro(t) {
1114
+ return X(f) < X(t) ? 1 : -1;
1115
+ }
1116
+ function io(t) {
1117
+ for (var e = t.tagName + t.className + t.src + t.href + t.textContent, n = e.length, o = 0; n--; )
1118
+ o += e.charCodeAt(n);
1119
+ return o.toString(36);
1120
+ }
1121
+ function ao(t) {
1122
+ Ze.length = 0;
1123
+ for (var e = t.getElementsByTagName("input"), n = e.length; n--; ) {
1124
+ var o = e[n];
1125
+ o.checked && Ze.push(o);
1126
+ }
1127
+ }
1128
+ function We(t) {
1129
+ return setTimeout(t, 0);
1130
+ }
1131
+ function mt(t) {
1132
+ return clearTimeout(t);
1133
+ }
1134
+ Qe && S(document, "touchmove", function(t) {
1135
+ (h.active || de) && t.cancelable && t.preventDefault();
1136
+ });
1137
+ h.utils = {
1138
+ on: S,
1139
+ off: E,
1140
+ css: p,
1141
+ find: Ut,
1142
+ is: function(e, n) {
1143
+ return !!$(e, n, e, !1);
1144
+ },
1145
+ extend: Wn,
1146
+ throttle: Vt,
1147
+ closest: $,
1148
+ toggleClass: B,
1149
+ clone: Zt,
1150
+ index: X,
1151
+ nextTick: We,
1152
+ cancelNextTick: mt,
1153
+ detectDirection: Qt,
1154
+ getChild: me,
1155
+ expando: L
1156
+ };
1157
+ h.get = function(t) {
1158
+ return t[L];
1159
+ };
1160
+ h.mount = function() {
1161
+ for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
1162
+ e[n] = arguments[n];
1163
+ e[0].constructor === Array && (e = e[0]), e.forEach(function(o) {
1164
+ if (!o.prototype || !o.prototype.constructor)
1165
+ throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
1166
+ o.utils && (h.utils = z(z({}, h.utils), o.utils)), ke.mount(o);
1167
+ });
1168
+ };
1169
+ h.create = function(t, e) {
1170
+ return new h(t, e);
1171
+ };
1172
+ h.version = jn;
1173
+ var I = [], _e, vt, bt = !1, lt, st, Je, De;
1174
+ function lo() {
1175
+ function t() {
1176
+ this.defaults = {
1177
+ scroll: !0,
1178
+ forceAutoScrollFallback: !1,
1179
+ scrollSensitivity: 30,
1180
+ scrollSpeed: 10,
1181
+ bubbleScroll: !0
1182
+ };
1183
+ for (var e in this)
1184
+ e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
1185
+ }
1186
+ return t.prototype = {
1187
+ dragStarted: function(n) {
1188
+ var o = n.originalEvent;
1189
+ this.sortable.nativeDraggable ? S(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? S(document, "pointermove", this._handleFallbackAutoScroll) : o.touches ? S(document, "touchmove", this._handleFallbackAutoScroll) : S(document, "mousemove", this._handleFallbackAutoScroll);
1190
+ },
1191
+ dragOverCompleted: function(n) {
1192
+ var o = n.originalEvent;
1193
+ !this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
1194
+ },
1195
+ drop: function() {
1196
+ this.sortable.nativeDraggable ? E(document, "dragover", this._handleAutoScroll) : (E(document, "pointermove", this._handleFallbackAutoScroll), E(document, "touchmove", this._handleFallbackAutoScroll), E(document, "mousemove", this._handleFallbackAutoScroll)), Ft(), $e(), $n();
1197
+ },
1198
+ nulling: function() {
1199
+ Je = vt = _e = bt = De = lt = st = null, I.length = 0;
1200
+ },
1201
+ _handleFallbackAutoScroll: function(n) {
1202
+ this._handleAutoScroll(n, !0);
1203
+ },
1204
+ _handleAutoScroll: function(n, o) {
1205
+ var r = this, i = (n.touches ? n.touches[0] : n).clientX, s = (n.touches ? n.touches[0] : n).clientY, a = document.elementFromPoint(i, s);
1206
+ if (Je = n, o || this.options.forceAutoScrollFallback || xe || Z || Te) {
1207
+ ut(n, this.options, a, o);
1208
+ var l = te(a, !0);
1209
+ bt && (!De || i !== lt || s !== st) && (De && Ft(), De = setInterval(function() {
1210
+ var u = te(document.elementFromPoint(i, s), !0);
1211
+ u !== l && (l = u, $e()), ut(n, r.options, u, o);
1212
+ }, 10), lt = i, st = s);
1213
+ } else {
1214
+ if (!this.options.bubbleScroll || te(a, !0) === G()) {
1215
+ $e();
1216
+ return;
1217
+ }
1218
+ ut(n, this.options, te(a, !1), !1);
1219
+ }
1220
+ }
1221
+ }, q(t, {
1222
+ pluginName: "scroll",
1223
+ initializeByDefault: !0
1224
+ });
1225
+ }
1226
+ function $e() {
1227
+ I.forEach(function(t) {
1228
+ clearInterval(t.pid);
1229
+ }), I = [];
1230
+ }
1231
+ function Ft() {
1232
+ clearInterval(De);
1233
+ }
1234
+ var ut = Vt(function(t, e, n, o) {
1235
+ if (e.scroll) {
1236
+ var r = (t.touches ? t.touches[0] : t).clientX, i = (t.touches ? t.touches[0] : t).clientY, s = e.scrollSensitivity, a = e.scrollSpeed, l = G(), u = !1, c;
1237
+ vt !== n && (vt = n, $e(), _e = e.scroll, c = e.scrollFn, _e === !0 && (_e = te(n, !0)));
1238
+ var d = 0, g = _e;
1239
+ do {
1240
+ var v = g, w = P(v), _ = w.top, m = w.bottom, y = w.left, D = w.right, A = w.width, x = w.height, ne = void 0, H = void 0, oe = v.scrollWidth, ve = v.scrollHeight, F = p(v), be = v.scrollLeft, J = v.scrollTop;
1241
+ v === l ? (ne = A < oe && (F.overflowX === "auto" || F.overflowX === "scroll" || F.overflowX === "visible"), H = x < ve && (F.overflowY === "auto" || F.overflowY === "scroll" || F.overflowY === "visible")) : (ne = A < oe && (F.overflowX === "auto" || F.overflowX === "scroll"), H = x < ve && (F.overflowY === "auto" || F.overflowY === "scroll"));
1242
+ var ye = ne && (Math.abs(D - r) <= s && be + A < oe) - (Math.abs(y - r) <= s && !!be), U = H && (Math.abs(m - i) <= s && J + x < ve) - (Math.abs(_ - i) <= s && !!J);
1243
+ if (!I[d])
1244
+ for (var re = 0; re <= d; re++)
1245
+ I[re] || (I[re] = {});
1246
+ (I[d].vx != ye || I[d].vy != U || I[d].el !== v) && (I[d].el = v, I[d].vx = ye, I[d].vy = U, clearInterval(I[d].pid), (ye != 0 || U != 0) && (u = !0, I[d].pid = setInterval(function() {
1247
+ o && this.layer === 0 && h.active._onTouchMove(Je);
1248
+ var we = I[this.layer].vy ? I[this.layer].vy * a : 0, K = I[this.layer].vx ? I[this.layer].vx * a : 0;
1249
+ typeof c == "function" && c.call(h.dragged.parentNode[L], K, we, t, Je, I[this.layer].el) !== "continue" || qt(I[this.layer].el, K, we);
1250
+ }.bind({
1251
+ layer: d
1252
+ }), 24))), d++;
1253
+ } while (e.bubbleScroll && g !== l && (g = te(g, !1)));
1254
+ bt = u;
1255
+ }
1256
+ }, 30), on = function(e) {
1257
+ var n = e.originalEvent, o = e.putSortable, r = e.dragEl, i = e.activeSortable, s = e.dispatchSortableEvent, a = e.hideGhostForTarget, l = e.unhideGhostForTarget;
1258
+ if (n) {
1259
+ var u = o || i;
1260
+ a();
1261
+ var c = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, d = document.elementFromPoint(c.clientX, c.clientY);
1262
+ l(), u && !u.el.contains(d) && (s("spill"), this.onSpill({
1263
+ dragEl: r,
1264
+ putSortable: o
1265
+ }));
1266
+ }
1267
+ };
1268
+ function Dt() {
1269
+ }
1270
+ Dt.prototype = {
1271
+ startIndex: null,
1272
+ dragStart: function(e) {
1273
+ var n = e.oldDraggableIndex;
1274
+ this.startIndex = n;
1275
+ },
1276
+ onSpill: function(e) {
1277
+ var n = e.dragEl, o = e.putSortable;
1278
+ this.sortable.captureAnimationState(), o && o.captureAnimationState();
1279
+ var r = me(this.sortable.el, this.startIndex, this.options);
1280
+ r ? this.sortable.el.insertBefore(n, r) : this.sortable.el.appendChild(n), this.sortable.animateAll(), o && o.animateAll();
1281
+ },
1282
+ drop: on
1283
+ };
1284
+ q(Dt, {
1285
+ pluginName: "revertOnSpill"
1286
+ });
1287
+ function Ct() {
1288
+ }
1289
+ Ct.prototype = {
1290
+ onSpill: function(e) {
1291
+ var n = e.dragEl, o = e.putSortable, r = o || this.sortable;
1292
+ r.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), r.animateAll();
1293
+ },
1294
+ drop: on
1295
+ };
1296
+ q(Ct, {
1297
+ pluginName: "removeOnSpill"
1298
+ });
1299
+ h.mount(new lo());
1300
+ h.mount(Ct, Dt);
1301
+ function so(t, e, n = {}) {
1302
+ let o;
1303
+ const { document: r = Rn, ...i } = n, s = {
1304
+ onUpdate: (c) => {
1305
+ fo(e, c.oldIndex, c.newIndex, c);
1306
+ }
1307
+ }, a = () => {
1308
+ const c = typeof t == "string" ? r?.querySelector(t) : Ln(t);
1309
+ !c || o !== void 0 || (o = new h(c, { ...s, ...i }));
1310
+ }, l = () => {
1311
+ o?.destroy(), o = void 0;
1312
+ }, u = (c, d) => {
1313
+ if (d !== void 0)
1314
+ o?.option(c, d);
1315
+ else
1316
+ return o?.option(c);
1317
+ };
1318
+ return kn(a), wt(l), {
1319
+ stop: l,
1320
+ start: a,
1321
+ option: u
1322
+ };
1323
+ }
1324
+ function uo(t, e, n) {
1325
+ const o = t.children[n];
1326
+ t.insertBefore(e, o);
1327
+ }
1328
+ function co(t) {
1329
+ t.parentNode && t.parentNode.removeChild(t);
1330
+ }
1331
+ function fo(t, e, n, o = null) {
1332
+ o != null && (co(o.item), uo(o.from, o.item, e));
1333
+ const r = vn(t), i = r ? [...j(t)] : j(t);
1334
+ if (n >= 0 && n < i.length) {
1335
+ const s = i.splice(e, 1)[0];
1336
+ yt(() => {
1337
+ i.splice(n, 0, s), r && (t.value = i);
1338
+ });
1339
+ }
1340
+ }
1341
+ const po = ["data-align"], ho = /* @__PURE__ */ Xt({
1342
+ __name: "PvPopover",
1343
+ props: {
1344
+ alignment: { default: void 0, type: null },
1345
+ cssCustomProperties: { default: () => ({}), type: Object },
1346
+ cssCustomListProperties: { type: Object },
1347
+ isList: { type: Boolean, default: !1 },
1348
+ isSortable: { type: Boolean }
1349
+ },
1350
+ emits: ["list-order-updated"],
1351
+ setup(t, { expose: e, emit: n }) {
1352
+ const o = ue(null), r = bn("popoverList"), i = t, s = n;
1353
+ return i.isSortable && i.isList && so(r, [], {
1354
+ animation: 150,
1355
+ onUpdate: () => {
1356
+ const a = Array.from(r.value?.children || []).map(
1357
+ (l) => l.id
1358
+ );
1359
+ s("list-order-updated", a);
1360
+ }
1361
+ }), e({ popoverRoot: o }), (a, l) => (Oe(), Ge("div", {
1362
+ ref_key: "popoverRoot",
1363
+ ref: o,
1364
+ class: "pv-popover",
1365
+ "data-testid": "pv-popover",
1366
+ "data-align": t.alignment,
1367
+ style: Tt(t.cssCustomProperties)
1368
+ }, [
1369
+ t.isList ? (Oe(), Ge(
1370
+ "ul",
1371
+ {
1372
+ key: 0,
1373
+ ref: "popoverList",
1374
+ role: "list",
1375
+ class: "pv-popover-list",
1376
+ style: Tt(t.cssCustomListProperties)
1377
+ },
1378
+ [
1379
+ ze(a.$slots, "default", {}, void 0, !0)
1380
+ ],
1381
+ 4
1382
+ /* STYLE */
1383
+ )) : ze(a.$slots, "default", { key: 1 }, void 0, !0)
1384
+ ], 12, po));
1385
+ }
1386
+ }), go = ".pv-popover-list[data-v-cda1af8c]{font-size:14px}", rn = (t, e) => {
1387
+ const n = t.__vccOpts || t;
1388
+ for (const [o, r] of e)
1389
+ n[o] = r;
1390
+ return n;
1391
+ }, mo = /* @__PURE__ */ rn(ho, [["styles", [go]], ["__scopeId", "data-v-cda1af8c"]]), an = Et ? window : void 0;
1392
+ function Ce(t) {
1393
+ var e;
1394
+ const n = j(t);
1395
+ return (e = n?.$el) != null ? e : n;
1396
+ }
1397
+ function He(...t) {
1398
+ const e = [], n = () => {
1399
+ e.forEach((a) => a()), e.length = 0;
1400
+ }, o = (a, l, u, c) => (a.addEventListener(l, u, c), () => a.removeEventListener(l, u, c)), r = pe(() => {
1401
+ const a = et(j(t[0])).filter((l) => l != null);
1402
+ return a.every((l) => typeof l != "string") ? a : void 0;
1403
+ }), i = Mn(
1404
+ () => {
1405
+ var a, l;
1406
+ return [
1407
+ (l = (a = r.value) == null ? void 0 : a.map((u) => Ce(u))) != null ? l : [an].filter((u) => u != null),
1408
+ et(j(r.value ? t[1] : t[0])),
1409
+ et(Wt(r.value ? t[2] : t[1])),
1410
+ // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
1411
+ j(r.value ? t[3] : t[2])
1412
+ ];
1413
+ },
1414
+ ([a, l, u, c]) => {
1415
+ if (n(), !a?.length || !l?.length || !u?.length)
1416
+ return;
1417
+ const d = Pn(c) ? { ...c } : c;
1418
+ e.push(
1419
+ ...a.flatMap(
1420
+ (g) => l.flatMap(
1421
+ (v) => u.map((w) => o(g, v, w, d))
1422
+ )
1423
+ )
1424
+ );
1425
+ },
1426
+ { flush: "post" }
1427
+ ), s = () => {
1428
+ i(), n();
1429
+ };
1430
+ return wt(n), s;
1431
+ }
1432
+ let Bt = !1;
1433
+ function Yt(t, e, n = {}) {
1434
+ const { window: o = an, ignore: r = [], capture: i = !0, detectIframe: s = !1, controls: a = !1 } = n;
1435
+ if (!o)
1436
+ return a ? { stop: le, cancel: le, trigger: le } : le;
1437
+ if (ht && !Bt) {
1438
+ Bt = !0;
1439
+ const m = { passive: !0 };
1440
+ Array.from(o.document.body.children).forEach((y) => y.addEventListener("click", le, m)), o.document.documentElement.addEventListener("click", le, m);
1441
+ }
1442
+ let l = !0;
1443
+ const u = (m) => j(r).some((y) => {
1444
+ if (typeof y == "string")
1445
+ return Array.from(o.document.querySelectorAll(y)).some((D) => D === m.target || m.composedPath().includes(D));
1446
+ {
1447
+ const D = Ce(y);
1448
+ return D && (m.target === D || m.composedPath().includes(D));
1449
+ }
1450
+ });
1451
+ function c(m) {
1452
+ const y = j(m);
1453
+ return y && y.$.subTree.shapeFlag === 16;
1454
+ }
1455
+ function d(m, y) {
1456
+ const D = j(m), A = D.$.subTree && D.$.subTree.children;
1457
+ return A == null || !Array.isArray(A) ? !1 : A.some((x) => x.el === y.target || y.composedPath().includes(x.el));
1458
+ }
1459
+ const g = (m) => {
1460
+ const y = Ce(t);
1461
+ if (m.target != null && !(!(y instanceof Element) && c(t) && d(t, m)) && !(!y || y === m.target || m.composedPath().includes(y))) {
1462
+ if ("detail" in m && m.detail === 0 && (l = !u(m)), !l) {
1463
+ l = !0;
1464
+ return;
1465
+ }
1466
+ e(m);
1467
+ }
1468
+ };
1469
+ let v = !1;
1470
+ const w = [
1471
+ He(o, "click", (m) => {
1472
+ v || (v = !0, setTimeout(() => {
1473
+ v = !1;
1474
+ }, 0), g(m));
1475
+ }, { passive: !0, capture: i }),
1476
+ He(o, "pointerdown", (m) => {
1477
+ const y = Ce(t);
1478
+ l = !u(m) && !!(y && !m.composedPath().includes(y));
1479
+ }, { passive: !0 }),
1480
+ s && He(o, "blur", (m) => {
1481
+ setTimeout(() => {
1482
+ var y;
1483
+ const D = Ce(t);
1484
+ ((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !D?.contains(o.document.activeElement) && e(m);
1485
+ }, 0);
1486
+ }, { passive: !0 })
1487
+ ].filter(Boolean), _ = () => w.forEach((m) => m());
1488
+ return a ? {
1489
+ stop: _,
1490
+ cancel: () => {
1491
+ l = !1;
1492
+ },
1493
+ trigger: (m) => {
1494
+ l = !0, g(m), l = !1;
1495
+ }
1496
+ } : _;
1497
+ }
1498
+ const ct = /* @__PURE__ */ new WeakMap(), vo = {
1499
+ mounted(t, e) {
1500
+ const n = !e.modifiers.bubble;
1501
+ let o;
1502
+ if (typeof e.value == "function")
1503
+ o = Yt(t, e.value, { capture: n });
1504
+ else {
1505
+ const [r, i] = e.value;
1506
+ o = Yt(t, r, Object.assign({ capture: n }, i));
1507
+ }
1508
+ ct.set(t, o);
1509
+ },
1510
+ unmounted(t) {
1511
+ const e = ct.get(t);
1512
+ e && typeof e == "function" ? e() : e?.stop(), ct.delete(t);
1513
+ }
1514
+ };
1515
+ function ft(t) {
1516
+ return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
1517
+ }
1518
+ function ln(t) {
1519
+ const e = window.getComputedStyle(t);
1520
+ if (e.overflowX === "scroll" || e.overflowY === "scroll" || e.overflowX === "auto" && t.clientWidth < t.scrollWidth || e.overflowY === "auto" && t.clientHeight < t.scrollHeight)
1521
+ return !0;
1522
+ {
1523
+ const n = t.parentNode;
1524
+ return !n || n.tagName === "BODY" ? !1 : ln(n);
1525
+ }
1526
+ }
1527
+ function bo(t) {
1528
+ const e = t || window.event, n = e.target;
1529
+ return ln(n) ? !1 : e.touches.length > 1 ? !0 : (e.preventDefault && e.preventDefault(), !1);
1530
+ }
1531
+ const dt = /* @__PURE__ */ new WeakMap();
1532
+ function yo(t, e = !1) {
1533
+ const n = $t(e);
1534
+ let o = null, r = "";
1535
+ Ke(Nn(t), (a) => {
1536
+ const l = ft(j(a));
1537
+ if (l) {
1538
+ const u = l;
1539
+ if (dt.get(u) || dt.set(u, u.style.overflow), u.style.overflow !== "hidden" && (r = u.style.overflow), u.style.overflow === "hidden")
1540
+ return n.value = !0;
1541
+ if (n.value)
1542
+ return u.style.overflow = "hidden";
1543
+ }
1544
+ }, {
1545
+ immediate: !0
1546
+ });
1547
+ const i = () => {
1548
+ const a = ft(j(t));
1549
+ !a || n.value || (ht && (o = He(
1550
+ a,
1551
+ "touchmove",
1552
+ (l) => {
1553
+ bo(l);
1554
+ },
1555
+ { passive: !1 }
1556
+ )), a.style.overflow = "hidden", n.value = !0);
1557
+ }, s = () => {
1558
+ const a = ft(j(t));
1559
+ !a || !n.value || (ht && o?.(), a.style.overflow = r, dt.delete(a), n.value = !1);
1560
+ };
1561
+ return wt(s), pe({
1562
+ get() {
1563
+ return n.value;
1564
+ },
1565
+ set(a) {
1566
+ a ? i() : s();
1567
+ }
1568
+ });
1569
+ }
1570
+ function wo() {
1571
+ let t = !1;
1572
+ const e = $t(!1);
1573
+ return (n, o) => {
1574
+ if (e.value = o.value, t)
1575
+ return;
1576
+ t = !0;
1577
+ const r = yo(n, o.value);
1578
+ Ke(e, (i) => r.value = i);
1579
+ };
1580
+ }
1581
+ wo();
1582
+ const Eo = {
1583
+ class: "pv-relative",
1584
+ style: { width: "fit-content" }
1585
+ }, So = ["disabled"], _o = {
1586
+ key: 0,
1587
+ class: "pv-shimmer"
1588
+ }, Do = /* @__PURE__ */ Xt({
1589
+ __name: "PvDropdown",
1590
+ props: {
1591
+ defaultOpen: { type: Boolean, default: !1 },
1592
+ popoverCssProperties: { type: Object },
1593
+ alignment: { default: void 0, type: null },
1594
+ isList: { type: Boolean, default: !1 },
1595
+ isSortable: { type: Boolean },
1596
+ icon: { type: Boolean },
1597
+ disabled: { type: Boolean, default: !1 },
1598
+ isLoading: { type: Boolean, default: !1 },
1599
+ useTeleport: { type: Boolean, default: !1 },
1600
+ teleportLocation: { default: "body", type: String }
1601
+ },
1602
+ emits: ["dropdown-open", "dropdown-closed", "list-order-updated"],
1603
+ setup(t, { expose: e, emit: n }) {
1604
+ const o = t, r = n, i = ue(o.defaultOpen), s = ue(null), a = ue(null), l = ue(null), u = ue(null), c = () => {
1605
+ s.value && (l.value = s.value.getBoundingClientRect()), a.value?.popoverRoot && (u.value = a.value.popoverRoot.getBoundingClientRect());
1606
+ }, d = pe(() => ({
1607
+ "pv-hide": !i.value
1608
+ })), g = (y) => {
1609
+ i.value = !i.value;
1610
+ }, v = () => {
1611
+ i.value = !1;
1612
+ };
1613
+ e({
1614
+ closeDropdown: v
1615
+ }), Ke(i, (y) => {
1616
+ y ? yt(() => {
1617
+ c(), r("dropdown-open");
1618
+ }) : r("dropdown-closed");
1619
+ });
1620
+ const w = pe(() => !l.value || !u.value ? 0 : o.alignment === "right" || o.alignment === "top right" ? l.value.left + l.value.width - u.value.width : l.value.left), _ = pe(() => !l.value || !u.value ? 0 : o.alignment === "top" || o.alignment === "top right" ? l.value.top - u.value.height : l.value.top + window.scrollY + l.value.height), m = pe(() => o.useTeleport ? {
1621
+ ...{
1622
+ position: "absolute",
1623
+ left: `${w.value}px`,
1624
+ top: `${_.value}px`,
1625
+ zIndex: 10
1626
+ },
1627
+ ...o.popoverCssProperties
1628
+ } : o.popoverCssProperties);
1629
+ return (y, D) => yn((Oe(), Ge("div", Eo, [
1630
+ wn("button", {
1631
+ ref_key: "triggerRef",
1632
+ ref: s,
1633
+ class: It({ "pv-select": !t.icon, "pv-icon-button": t.icon }),
1634
+ style: { width: "auto" },
1635
+ onClick: g,
1636
+ disabled: t.disabled
1637
+ }, [
1638
+ ze(y.$slots, "trigger", {}, () => [
1639
+ D[1] || (D[1] = Sn(
1640
+ "Open",
1641
+ -1
1642
+ /* CACHED */
1643
+ ))
1644
+ ], !0)
1645
+ ], 10, So),
1646
+ (Oe(), En(_n, {
1647
+ to: t.teleportLocation,
1648
+ disabled: !t.useTeleport
1649
+ }, [
1650
+ Dn(mo, {
1651
+ ref_key: "popoverRef",
1652
+ ref: a,
1653
+ class: It(d.value),
1654
+ "css-custom-properties": m.value,
1655
+ alignment: t.alignment,
1656
+ isList: t.isList,
1657
+ isSortable: t.isSortable,
1658
+ onListOrderUpdated: D[0] || (D[0] = (A) => y.$emit("list-order-updated", A))
1659
+ }, {
1660
+ default: Cn(() => [
1661
+ ze(y.$slots, "default", {}, () => [
1662
+ t.isLoading ? (Oe(), Ge("span", _o, "Loading...")) : On("v-if", !0)
1663
+ ], !0)
1664
+ ]),
1665
+ _: 3
1666
+ /* FORWARDED */
1667
+ }, 8, ["class", "css-custom-properties", "alignment", "isList", "isSortable"])
1668
+ ], 8, ["to", "disabled"]))
1669
+ ])), [
1670
+ [Wt(vo), v]
1671
+ ]);
1672
+ }
1673
+ }), Co = ".pv-icon-button[data-v-79a7def3]{background-color:transparent;border:none}.pv-icon-button[data-v-79a7def3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-79a7def3]{padding-top:4px;padding-bottom:4px}", Oo = /* @__PURE__ */ rn(Do, [["styles", [Co]], ["__scopeId", "data-v-79a7def3"]]), To = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
1674
+ function Io(t) {
1675
+ return !To.has(t);
1676
+ }
1677
+ function pt(t, e) {
1678
+ const n = document.querySelector('link[href*="' + e + '"]');
1679
+ if (!t.shadowRoot)
1680
+ return !1;
1681
+ if (n && t.shadowRoot) {
1682
+ const o = n.href;
1683
+ if (t.shadowRoot.querySelector(`link[href="${o}"]`))
1684
+ return;
1685
+ const r = document.createElement("link");
1686
+ return r.rel = "stylesheet", r.href = o, t.shadowRoot.prepend(r), !0;
1687
+ }
1688
+ return !1;
1689
+ }
1690
+ function Po(t) {
1691
+ if (!pt(t, "pit-viper-v2")) {
1692
+ if (pt(t, "pit-viper")) {
1693
+ pt(t, "pit-viper-v2-scoped");
1694
+ return;
1695
+ }
1696
+ console.warn(
1697
+ "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
1698
+ );
1699
+ }
1700
+ }
1701
+ const Ao = (t) => ({ shadowRoot: Io(t) });
1702
+ function No(t, e) {
1703
+ return e === null ? !1 : e === "" || e === "true" ? !0 : (e === "false" || console.warn(
1704
+ `Invalid boolean attribute value for "${t}": "${e}". Expected "true", "false", or empty string.`
1705
+ ), !1);
1706
+ }
1707
+ function xo(t, e) {
1708
+ const n = Number(e);
1709
+ return isNaN(n) && console.warn(`Invalid number attribute value for "${t}": "${e}". Expected a valid number.`), n;
1710
+ }
1711
+ function ko(t) {
1712
+ const e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), i = (t.__vccOpts || t).props;
1713
+ return i && typeof i == "object" && Object.entries(i).forEach(([s, a]) => {
1714
+ a === Boolean || a && a.type === Boolean ? e.add(s) : a === Number || a && a.type === Number ? n.add(s) : (a === Object || a === Array || a && (a.type === Object || a.type === Array)) && o.add(s);
1715
+ }), { booleanProps: e, numberProps: n, jsonProps: o };
1716
+ }
1717
+ function jt(t, e) {
1718
+ try {
1719
+ return JSON.parse(e);
1720
+ } catch (n) {
1721
+ return console.warn(
1722
+ `Invalid JSON attribute value for "${t}": "${e}". Error: ${n instanceof Error ? n.message : String(n)}`
1723
+ ), null;
1724
+ }
1725
+ }
1726
+ function Mo(t) {
1727
+ const e = t.__name || t.name;
1728
+ if (!e)
1729
+ throw new Error("Component must have a __name or name property");
1730
+ const n = Tn(t, Ao(e)), { booleanProps: o, numberProps: r, jsonProps: i } = ko(t);
1731
+ class s extends n {
1732
+ _hiddenInput = null;
1733
+ constructor() {
1734
+ super(), this._parseAttributes();
1735
+ }
1736
+ disconnectedCallback() {
1737
+ this._hiddenInput?.remove(), super.disconnectedCallback?.();
1738
+ }
1739
+ /**
1740
+ * Update the hidden input value
1741
+ * Call this from the Vue component to sync form value
1742
+ */
1743
+ setHiddenInputValue(l) {
1744
+ this._hiddenInput && (this._hiddenInput.value = l ?? "");
1745
+ }
1746
+ _parseAttributes() {
1747
+ o.forEach((u) => {
1748
+ const c = this.getAttribute(u);
1749
+ this[u] = No(u, c);
1750
+ }), r.forEach((u) => {
1751
+ const c = this.getAttribute(u);
1752
+ c !== null && (this[u] = xo(u, c));
1753
+ }), i.forEach((u) => {
1754
+ const c = this.getAttribute(u);
1755
+ if (c !== null) {
1756
+ const d = jt(u, c);
1757
+ d !== null && (this[u] = d);
1758
+ }
1759
+ });
1760
+ const l = this.getAttribute("data-json-props");
1761
+ l && l.split(",").map((c) => c.trim()).filter(Boolean).forEach((c) => {
1762
+ const d = c.replace(/-([a-z])/g, (v) => v[1].toUpperCase());
1763
+ let g = this.getAttribute(c);
1764
+ if (g === null) {
1765
+ const v = d.replace(/([A-Z])/g, "-$1").toLowerCase();
1766
+ g = this.getAttribute(v);
1767
+ }
1768
+ if (g !== null && !this[d]) {
1769
+ const v = jt(d, g);
1770
+ v !== null && (this[d] = v);
1771
+ }
1772
+ });
1773
+ }
1774
+ connectedCallback() {
1775
+ this._parseAttributes(), super.connectedCallback?.(), Po(this);
1776
+ const l = this.getAttribute("name");
1777
+ l && (this._hiddenInput = document.createElement("input"), this._hiddenInput.type = "hidden", this._hiddenInput.name = l, this.after(this._hiddenInput));
1778
+ }
1779
+ }
1780
+ return s;
1781
+ }
1782
+ function Ro(t) {
1783
+ return t.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
1784
+ }
1785
+ function Lo(t) {
1786
+ const e = t.__name || t.name;
1787
+ if (!e)
1788
+ throw new Error("Component must have a __name or name property");
1789
+ const n = Ro(e), o = Mo(t);
1790
+ customElements.get(n) || customElements.define(n, o);
1791
+ }
1792
+ Lo(Oo);