@vc-shell/framework 2.0.0-alpha.30 → 2.0.0-alpha.31

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 (120) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/ai-agent/index.js +2 -2
  3. package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-D3sixNg-.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-CEHpWiBV.js} +270 -271
  4. package/dist/chunks/{VcTableAdapter.vue_vue_type_style_index_0_lang-CR4ei-0r.js → VcTableAdapter.vue_vue_type_style_index_0_lang-ByeZ_FRv.js} +7324 -7040
  5. package/dist/chunks/{index-BzpX90RF.js → index-B0X7STCw.js} +2 -2
  6. package/dist/chunks/{index-BZeKYd8J.js → index-COv5_72w.js} +1 -1
  7. package/dist/chunks/{vc-toast.vue_vue_type_style_index_0_lang-DsKZR5xz.js → vc-toast.vue_vue_type_style_index_0_lang-8VHs_4Pe.js} +1 -1
  8. package/dist/chunks/vendor-sortablejs-Bsvu-FKn.js +1276 -0
  9. package/dist/chunks/{vendor-swiper-1bp0oJwt.js → vendor-swiper-D1fVhFeH.js} +1150 -810
  10. package/dist/chunks/{vendor-vueuse-components-C3DWJalC.js → vendor-vueuse-components-DRdTsx6e.js} +1 -1
  11. package/dist/chunks/vendor-vueuse-core-DaNNrqjn.js +586 -0
  12. package/dist/chunks/{vendor-vueuse-shared-Byno6iDO.js → vendor-vueuse-shared-PQ04AyOW.js} +3 -3
  13. package/dist/core/blade-navigation/types/index.d.ts +26 -63
  14. package/dist/core/blade-navigation/types/index.d.ts.map +1 -1
  15. package/dist/core/composables/{useBladeContext.d.ts → bladeContext/index.d.ts} +1 -1
  16. package/dist/core/composables/bladeContext/index.d.ts.map +1 -0
  17. package/dist/core/composables/index.d.ts +1 -1
  18. package/dist/core/composables/index.d.ts.map +1 -1
  19. package/dist/core/composables/useBladeForm/index.d.ts +17 -0
  20. package/dist/core/composables/useBladeForm/index.d.ts.map +1 -0
  21. package/dist/core/composables/useBladeForm/types.d.ts +39 -0
  22. package/dist/core/composables/useBladeForm/types.d.ts.map +1 -0
  23. package/dist/core/composables/{useBladeWidgets.d.ts → useBladeWidgets/index.d.ts} +3 -3
  24. package/dist/core/composables/useBladeWidgets/index.d.ts.map +1 -0
  25. package/dist/core/composables/useDynamicProperties/index.d.ts +3 -69
  26. package/dist/core/composables/useDynamicProperties/index.d.ts.map +1 -1
  27. package/dist/core/composables/useDynamicProperties/strategies/boolean.d.ts +3 -0
  28. package/dist/core/composables/useDynamicProperties/strategies/boolean.d.ts.map +1 -0
  29. package/dist/core/composables/useDynamicProperties/strategies/color.d.ts +3 -0
  30. package/dist/core/composables/useDynamicProperties/strategies/color.d.ts.map +1 -0
  31. package/dist/core/composables/useDynamicProperties/strategies/dictionary.d.ts +3 -0
  32. package/dist/core/composables/useDynamicProperties/strategies/dictionary.d.ts.map +1 -0
  33. package/dist/core/composables/useDynamicProperties/strategies/index.d.ts +4 -0
  34. package/dist/core/composables/useDynamicProperties/strategies/index.d.ts.map +1 -0
  35. package/dist/core/composables/useDynamicProperties/strategies/measure.d.ts +3 -0
  36. package/dist/core/composables/useDynamicProperties/strategies/measure.d.ts.map +1 -0
  37. package/dist/core/composables/useDynamicProperties/strategies/regular.d.ts +3 -0
  38. package/dist/core/composables/useDynamicProperties/strategies/regular.d.ts.map +1 -0
  39. package/dist/core/composables/useDynamicProperties/strategies/types.d.ts +16 -0
  40. package/dist/core/composables/useDynamicProperties/strategies/types.d.ts.map +1 -0
  41. package/dist/core/composables/useDynamicProperties/types.d.ts +70 -0
  42. package/dist/core/composables/useDynamicProperties/types.d.ts.map +1 -0
  43. package/dist/core/composables/useDynamicProperties/utils.d.ts +10 -0
  44. package/dist/core/composables/useDynamicProperties/utils.d.ts.map +1 -0
  45. package/dist/core/composables/{useMenuExpanded.d.ts → useMenuExpanded/index.d.ts} +1 -1
  46. package/dist/core/composables/useMenuExpanded/index.d.ts.map +1 -0
  47. package/dist/core/composables/useTheme/index.d.ts.map +1 -1
  48. package/dist/core/types/index.d.ts +1 -2
  49. package/dist/core/types/index.d.ts.map +1 -1
  50. package/dist/core/utilities/assets.d.ts +3 -2
  51. package/dist/core/utilities/assets.d.ts.map +1 -1
  52. package/dist/core/utilities/index.d.ts +1 -0
  53. package/dist/core/utilities/index.d.ts.map +1 -1
  54. package/dist/core/utilities/thumbnail/index.d.ts +42 -0
  55. package/dist/core/utilities/thumbnail/index.d.ts.map +1 -0
  56. package/dist/framework.js +2497 -2519
  57. package/dist/index.css +1 -1
  58. package/dist/index.d.ts +1 -0
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/injection-keys.d.ts +2 -4
  61. package/dist/injection-keys.d.ts.map +1 -1
  62. package/dist/locales/de.js +8 -2
  63. package/dist/locales/en.js +8 -2
  64. package/dist/locales/en.json +8 -2
  65. package/dist/locales/types.d.ts +6 -0
  66. package/dist/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
  67. package/dist/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
  68. package/dist/shell/_internal/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts.map +1 -1
  69. package/dist/tsconfig.tsbuildinfo +1 -1
  70. package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts +3 -0
  71. package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts.map +1 -1
  72. package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts.map +1 -1
  73. package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts +2 -21
  74. package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts.map +1 -1
  75. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
  76. package/dist/ui/components/molecules/vc-image-tile/vc-image-tile.vue.d.ts +3 -0
  77. package/dist/ui/components/molecules/vc-image-tile/vc-image-tile.vue.d.ts.map +1 -1
  78. package/dist/ui/components/organisms/vc-app/composables/useShellBootstrap.d.ts.map +1 -1
  79. package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts.map +1 -1
  80. package/dist/ui/components/organisms/vc-blade/_internal/BladeStatusBanners.vue.d.ts.map +1 -1
  81. package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbarSkeleton.vue.d.ts.map +1 -1
  82. package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerDesktop.vue.d.ts.map +1 -1
  83. package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerMobile.vue.d.ts.map +1 -1
  84. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  85. package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
  86. package/dist/ui/components/organisms/vc-data-table/components/DataTableCellRenderer.vue.d.ts.map +1 -1
  87. package/dist/ui/components/organisms/vc-data-table/components/TableColumnSwitcher.vue.d.ts +2 -0
  88. package/dist/ui/components/organisms/vc-data-table/components/TableColumnSwitcher.vue.d.ts.map +1 -1
  89. package/dist/ui/components/organisms/vc-data-table/components/_internal/TableSkeletonRows.vue.d.ts.map +1 -1
  90. package/dist/ui/components/organisms/vc-data-table/components/cells/CellImage.vue.d.ts.map +1 -1
  91. package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts +1 -0
  92. package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts.map +1 -1
  93. package/dist/ui/components/organisms/vc-data-table/composables/useDataTableState.d.ts +1 -0
  94. package/dist/ui/components/organisms/vc-data-table/composables/useDataTableState.d.ts.map +1 -1
  95. package/dist/ui/components/organisms/vc-data-table/composables/useTableColumns.d.ts.map +1 -1
  96. package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts +12 -2
  97. package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts.map +1 -1
  98. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts +39 -0
  99. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts.map +1 -0
  100. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -0
  101. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts.map +1 -1
  102. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -0
  103. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
  104. package/dist/ui/components/organisms/vc-gallery/composables/index.d.ts +1 -0
  105. package/dist/ui/components/organisms/vc-gallery/composables/index.d.ts.map +1 -1
  106. package/dist/ui/components/organisms/vc-gallery/composables/useGalleryFilmstrip.d.ts +16 -0
  107. package/dist/ui/components/organisms/vc-gallery/composables/useGalleryFilmstrip.d.ts.map +1 -0
  108. package/dist/ui/components/organisms/vc-gallery/composables/useGalleryReorder.d.ts +4 -9
  109. package/dist/ui/components/organisms/vc-gallery/composables/useGalleryReorder.d.ts.map +1 -1
  110. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +20 -5
  111. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
  112. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
  113. package/dist/ui/index.js +3 -3
  114. package/package.json +6 -4
  115. package/dist/chunks/vendor-vueuse-core-CPOkeLul.js +0 -530
  116. package/dist/core/composables/useBladeContext.d.ts.map +0 -1
  117. package/dist/core/composables/useBladeWidgets.d.ts.map +0 -1
  118. package/dist/core/composables/useGlobalSearch/index.d.ts +0 -5
  119. package/dist/core/composables/useGlobalSearch/index.d.ts.map +0 -1
  120. package/dist/core/composables/useMenuExpanded.d.ts.map +0 -1
@@ -0,0 +1,1276 @@
1
+ /**!
2
+ * Sortable 1.15.7
3
+ * @author RubaXa <trash@rubaxa.org>
4
+ * @author owenm <owen23355@gmail.com>
5
+ * @license MIT
6
+ */
7
+ function Me(o, t, e) {
8
+ return (t = Ye(t)) in o ? Object.defineProperty(o, t, {
9
+ value: e,
10
+ enumerable: !0,
11
+ configurable: !0,
12
+ writable: !0
13
+ }) : o[t] = e, o;
14
+ }
15
+ function q() {
16
+ return q = Object.assign ? Object.assign.bind() : function(o) {
17
+ for (var t = 1; t < arguments.length; t++) {
18
+ var e = arguments[t];
19
+ for (var n in e) ({}).hasOwnProperty.call(e, n) && (o[n] = e[n]);
20
+ }
21
+ return o;
22
+ }, q.apply(null, arguments);
23
+ }
24
+ function se(o, t) {
25
+ var e = Object.keys(o);
26
+ if (Object.getOwnPropertySymbols) {
27
+ var n = Object.getOwnPropertySymbols(o);
28
+ t && (n = n.filter(function(i) {
29
+ return Object.getOwnPropertyDescriptor(o, i).enumerable;
30
+ })), e.push.apply(e, n);
31
+ }
32
+ return e;
33
+ }
34
+ function L(o) {
35
+ for (var t = 1; t < arguments.length; t++) {
36
+ var e = arguments[t] != null ? arguments[t] : {};
37
+ t % 2 ? se(Object(e), !0).forEach(function(n) {
38
+ Me(o, n, e[n]);
39
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(e)) : se(Object(e)).forEach(function(n) {
40
+ Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(e, n));
41
+ });
42
+ }
43
+ return o;
44
+ }
45
+ function Fe(o, t) {
46
+ if (o == null) return {};
47
+ var e, n, i = Re(o, t);
48
+ if (Object.getOwnPropertySymbols) {
49
+ var r = Object.getOwnPropertySymbols(o);
50
+ for (n = 0; n < r.length; n++) e = r[n], t.indexOf(e) === -1 && {}.propertyIsEnumerable.call(o, e) && (i[e] = o[e]);
51
+ }
52
+ return i;
53
+ }
54
+ function Re(o, t) {
55
+ if (o == null) return {};
56
+ var e = {};
57
+ for (var n in o) if ({}.hasOwnProperty.call(o, n)) {
58
+ if (t.indexOf(n) !== -1) continue;
59
+ e[n] = o[n];
60
+ }
61
+ return e;
62
+ }
63
+ function Xe(o, t) {
64
+ if (typeof o != "object" || !o) return o;
65
+ var e = o[Symbol.toPrimitive];
66
+ if (e !== void 0) {
67
+ var n = e.call(o, t);
68
+ if (typeof n != "object") return n;
69
+ throw new TypeError("@@toPrimitive must return a primitive value.");
70
+ }
71
+ return (t === "string" ? String : Number)(o);
72
+ }
73
+ function Ye(o) {
74
+ var t = Xe(o, "string");
75
+ return typeof t == "symbol" ? t : t + "";
76
+ }
77
+ function Qt(o) {
78
+ "@babel/helpers - typeof";
79
+ return Qt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
80
+ return typeof t;
81
+ } : function(t) {
82
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
83
+ }, Qt(o);
84
+ }
85
+ var ke = "1.15.7";
86
+ function U(o) {
87
+ if (typeof window < "u" && window.navigator)
88
+ return !!/* @__PURE__ */ navigator.userAgent.match(o);
89
+ }
90
+ var V = U(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ct = U(/Edge/i), ue = U(/firefox/i), wt = U(/safari/i) && !U(/chrome/i) && !U(/android/i), oe = U(/iP(ad|od|hone)/i), ve = U(/chrome/i) && U(/android/i), be = {
91
+ capture: !1,
92
+ passive: !1
93
+ };
94
+ function v(o, t, e) {
95
+ o.addEventListener(t, e, !V && be);
96
+ }
97
+ function m(o, t, e) {
98
+ o.removeEventListener(t, e, !V && be);
99
+ }
100
+ function Yt(o, t) {
101
+ if (t) {
102
+ if (t[0] === ">" && (t = t.substring(1)), o)
103
+ try {
104
+ if (o.matches)
105
+ return o.matches(t);
106
+ if (o.msMatchesSelector)
107
+ return o.msMatchesSelector(t);
108
+ if (o.webkitMatchesSelector)
109
+ return o.webkitMatchesSelector(t);
110
+ } catch {
111
+ return !1;
112
+ }
113
+ return !1;
114
+ }
115
+ }
116
+ function ye(o) {
117
+ return o.host && o !== document && o.host.nodeType && o.host !== o ? o.host : o.parentNode;
118
+ }
119
+ function H(o, t, e, n) {
120
+ if (o) {
121
+ e = e || document;
122
+ do {
123
+ if (t != null && (t[0] === ">" ? o.parentNode === e && Yt(o, t) : Yt(o, t)) || n && o === e)
124
+ return o;
125
+ if (o === e) break;
126
+ } while (o = ye(o));
127
+ }
128
+ return null;
129
+ }
130
+ var fe = /\s+/g;
131
+ function R(o, t, e) {
132
+ if (o && t)
133
+ if (o.classList)
134
+ o.classList[e ? "add" : "remove"](t);
135
+ else {
136
+ var n = (" " + o.className + " ").replace(fe, " ").replace(" " + t + " ", " ");
137
+ o.className = (n + (e ? " " + t : "")).replace(fe, " ");
138
+ }
139
+ }
140
+ function h(o, t, e) {
141
+ var n = o && o.style;
142
+ if (n) {
143
+ if (e === void 0)
144
+ return document.defaultView && document.defaultView.getComputedStyle ? e = document.defaultView.getComputedStyle(o, "") : o.currentStyle && (e = o.currentStyle), t === void 0 ? e : e[t];
145
+ !(t in n) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), n[t] = e + (typeof e == "string" ? "" : "px");
146
+ }
147
+ }
148
+ function ct(o, t) {
149
+ var e = "";
150
+ if (typeof o == "string")
151
+ e = o;
152
+ else
153
+ do {
154
+ var n = h(o, "transform");
155
+ n && n !== "none" && (e = n + " " + e);
156
+ } while (!t && (o = o.parentNode));
157
+ var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
158
+ return i && new i(e);
159
+ }
160
+ function Ee(o, t, e) {
161
+ if (o) {
162
+ var n = o.getElementsByTagName(t), i = 0, r = n.length;
163
+ if (e)
164
+ for (; i < r; i++)
165
+ e(n[i], i);
166
+ return n;
167
+ }
168
+ return [];
169
+ }
170
+ function G() {
171
+ var o = document.scrollingElement;
172
+ return o || document.documentElement;
173
+ }
174
+ function C(o, t, e, n, i) {
175
+ if (!(!o.getBoundingClientRect && o !== window)) {
176
+ var r, a, l, s, u, d, c;
177
+ if (o !== window && o.parentNode && o !== G() ? (r = o.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, u = r.right, d = r.height, c = r.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, d = window.innerHeight, c = window.innerWidth), (t || e) && o !== window && (i = i || o.parentNode, !V))
178
+ do
179
+ if (i && i.getBoundingClientRect && (h(i, "transform") !== "none" || e && h(i, "position") !== "static")) {
180
+ var b = i.getBoundingClientRect();
181
+ a -= b.top + parseInt(h(i, "border-top-width")), l -= b.left + parseInt(h(i, "border-left-width")), s = a + r.height, u = l + r.width;
182
+ break;
183
+ }
184
+ while (i = i.parentNode);
185
+ if (n && o !== window) {
186
+ var w = ct(i || o), y = w && w.a, E = w && w.d;
187
+ w && (a /= E, l /= y, c /= y, d /= E, s = a + d, u = l + c);
188
+ }
189
+ return {
190
+ top: a,
191
+ left: l,
192
+ bottom: s,
193
+ right: u,
194
+ width: c,
195
+ height: d
196
+ };
197
+ }
198
+ }
199
+ function ce(o, t, e) {
200
+ for (var n = tt(o, !0), i = C(o)[t]; n; ) {
201
+ var r = C(n)[e], a = void 0;
202
+ if (a = i >= r, !a) return n;
203
+ if (n === G()) break;
204
+ n = tt(n, !1);
205
+ }
206
+ return !1;
207
+ }
208
+ function dt(o, t, e, n) {
209
+ for (var i = 0, r = 0, a = o.children; r < a.length; ) {
210
+ if (a[r].style.display !== "none" && a[r] !== p.ghost && (n || a[r] !== p.dragged) && H(a[r], e.draggable, o, !1)) {
211
+ if (i === t)
212
+ return a[r];
213
+ i++;
214
+ }
215
+ r++;
216
+ }
217
+ return null;
218
+ }
219
+ function ie(o, t) {
220
+ for (var e = o.lastElementChild; e && (e === p.ghost || h(e, "display") === "none" || t && !Yt(e, t)); )
221
+ e = e.previousElementSibling;
222
+ return e || null;
223
+ }
224
+ function Y(o, t) {
225
+ var e = 0;
226
+ if (!o || !o.parentNode)
227
+ return -1;
228
+ for (; o = o.previousElementSibling; )
229
+ o.nodeName.toUpperCase() !== "TEMPLATE" && o !== p.clone && (!t || Yt(o, t)) && e++;
230
+ return e;
231
+ }
232
+ function de(o) {
233
+ var t = 0, e = 0, n = G();
234
+ if (o)
235
+ do {
236
+ var i = ct(o), r = i.a, a = i.d;
237
+ t += o.scrollLeft * r, e += o.scrollTop * a;
238
+ } while (o !== n && (o = o.parentNode));
239
+ return [t, e];
240
+ }
241
+ function Be(o, t) {
242
+ for (var e in o)
243
+ if (o.hasOwnProperty(e)) {
244
+ for (var n in t)
245
+ if (t.hasOwnProperty(n) && t[n] === o[e][n]) return Number(e);
246
+ }
247
+ return -1;
248
+ }
249
+ function tt(o, t) {
250
+ if (!o || !o.getBoundingClientRect) return G();
251
+ var e = o, n = !1;
252
+ do
253
+ if (e.clientWidth < e.scrollWidth || e.clientHeight < e.scrollHeight) {
254
+ var i = h(e);
255
+ if (e.clientWidth < e.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || e.clientHeight < e.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
256
+ if (!e.getBoundingClientRect || e === document.body) return G();
257
+ if (n || t) return e;
258
+ n = !0;
259
+ }
260
+ }
261
+ while (e = e.parentNode);
262
+ return G();
263
+ }
264
+ function je(o, t) {
265
+ if (o && t)
266
+ for (var e in t)
267
+ t.hasOwnProperty(e) && (o[e] = t[e]);
268
+ return o;
269
+ }
270
+ function Gt(o, t) {
271
+ return Math.round(o.top) === Math.round(t.top) && Math.round(o.left) === Math.round(t.left) && Math.round(o.height) === Math.round(t.height) && Math.round(o.width) === Math.round(t.width);
272
+ }
273
+ var _t;
274
+ function we(o, t) {
275
+ return function() {
276
+ if (!_t) {
277
+ var e = arguments, n = this;
278
+ e.length === 1 ? o.call(n, e[0]) : o.apply(n, e), _t = setTimeout(function() {
279
+ _t = void 0;
280
+ }, t);
281
+ }
282
+ };
283
+ }
284
+ function He() {
285
+ clearTimeout(_t), _t = void 0;
286
+ }
287
+ function _e(o, t, e) {
288
+ o.scrollLeft += t, o.scrollTop += e;
289
+ }
290
+ function De(o) {
291
+ var t = window.Polymer, e = window.jQuery || window.Zepto;
292
+ return t && t.dom ? t.dom(o).cloneNode(!0) : e ? e(o).clone(!0)[0] : o.cloneNode(!0);
293
+ }
294
+ function Se(o, t, e) {
295
+ var n = {};
296
+ return Array.from(o.children).forEach(function(i) {
297
+ var r, a, l, s;
298
+ if (!(!H(i, t.draggable, o, !1) || i.animated || i === e)) {
299
+ var u = C(i);
300
+ n.left = Math.min((r = n.left) !== null && r !== void 0 ? r : 1 / 0, u.left), n.top = Math.min((a = n.top) !== null && a !== void 0 ? a : 1 / 0, u.top), n.right = Math.max((l = n.right) !== null && l !== void 0 ? l : -1 / 0, u.right), n.bottom = Math.max((s = n.bottom) !== null && s !== void 0 ? s : -1 / 0, u.bottom);
301
+ }
302
+ }), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
303
+ }
304
+ var N = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
305
+ function We() {
306
+ var o = [], t;
307
+ return {
308
+ captureAnimationState: function() {
309
+ if (o = [], !!this.options.animation) {
310
+ var n = [].slice.call(this.el.children);
311
+ n.forEach(function(i) {
312
+ if (!(h(i, "display") === "none" || i === p.ghost)) {
313
+ o.push({
314
+ target: i,
315
+ rect: C(i)
316
+ });
317
+ var r = L({}, o[o.length - 1].rect);
318
+ if (i.thisAnimationDuration) {
319
+ var a = ct(i, !0);
320
+ a && (r.top -= a.f, r.left -= a.e);
321
+ }
322
+ i.fromRect = r;
323
+ }
324
+ });
325
+ }
326
+ },
327
+ addAnimationState: function(n) {
328
+ o.push(n);
329
+ },
330
+ removeAnimationState: function(n) {
331
+ o.splice(Be(o, {
332
+ target: n
333
+ }), 1);
334
+ },
335
+ animateAll: function(n) {
336
+ var i = this;
337
+ if (!this.options.animation) {
338
+ clearTimeout(t), typeof n == "function" && n();
339
+ return;
340
+ }
341
+ var r = !1, a = 0;
342
+ o.forEach(function(l) {
343
+ var s = 0, u = l.target, d = u.fromRect, c = C(u), b = u.prevFromRect, w = u.prevToRect, y = l.rect, E = ct(u, !0);
344
+ E && (c.top -= E.f, c.left -= E.e), u.toRect = c, u.thisAnimationDuration && Gt(b, c) && !Gt(d, c) && // Make sure animatingRect is on line between toRect & fromRect
345
+ (y.top - c.top) / (y.left - c.left) === (d.top - c.top) / (d.left - c.left) && (s = Le(y, b, w, i.options)), Gt(c, d) || (u.prevFromRect = d, u.prevToRect = c, s || (s = i.options.animation), i.animate(u, y, c, s)), s && (r = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
346
+ u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
347
+ }, s), u.thisAnimationDuration = s);
348
+ }), clearTimeout(t), r ? t = setTimeout(function() {
349
+ typeof n == "function" && n();
350
+ }, a) : typeof n == "function" && n(), o = [];
351
+ },
352
+ animate: function(n, i, r, a) {
353
+ if (a) {
354
+ h(n, "transition", ""), h(n, "transform", "");
355
+ var l = ct(this.el), s = l && l.a, u = l && l.d, d = (i.left - r.left) / (s || 1), c = (i.top - r.top) / (u || 1);
356
+ n.animatingX = !!d, n.animatingY = !!c, h(n, "transform", "translate3d(" + d + "px," + c + "px,0)"), this.forRepaintDummy = Ge(n), h(n, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), h(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
357
+ h(n, "transition", ""), h(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
358
+ }, a);
359
+ }
360
+ }
361
+ };
362
+ }
363
+ function Ge(o) {
364
+ return o.offsetWidth;
365
+ }
366
+ function Le(o, t, e, n) {
367
+ return Math.sqrt(Math.pow(t.top - o.top, 2) + Math.pow(t.left - o.left, 2)) / Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) * n.animation;
368
+ }
369
+ var lt = [], Lt = {
370
+ initializeByDefault: !0
371
+ }, Ot = {
372
+ mount: function(t) {
373
+ for (var e in Lt)
374
+ Lt.hasOwnProperty(e) && !(e in t) && (t[e] = Lt[e]);
375
+ lt.forEach(function(n) {
376
+ if (n.pluginName === t.pluginName)
377
+ throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
378
+ }), lt.push(t);
379
+ },
380
+ pluginEvent: function(t, e, n) {
381
+ var i = this;
382
+ this.eventCanceled = !1, n.cancel = function() {
383
+ i.eventCanceled = !0;
384
+ };
385
+ var r = t + "Global";
386
+ lt.forEach(function(a) {
387
+ e[a.pluginName] && (e[a.pluginName][r] && e[a.pluginName][r](L({
388
+ sortable: e
389
+ }, n)), e.options[a.pluginName] && e[a.pluginName][t] && e[a.pluginName][t](L({
390
+ sortable: e
391
+ }, n)));
392
+ });
393
+ },
394
+ initializePlugins: function(t, e, n, i) {
395
+ lt.forEach(function(l) {
396
+ var s = l.pluginName;
397
+ if (!(!t.options[s] && !l.initializeByDefault)) {
398
+ var u = new l(t, e, t.options);
399
+ u.sortable = t, u.options = t.options, t[s] = u, q(n, u.defaults);
400
+ }
401
+ });
402
+ for (var r in t.options)
403
+ if (t.options.hasOwnProperty(r)) {
404
+ var a = this.modifyOption(t, r, t.options[r]);
405
+ typeof a < "u" && (t.options[r] = a);
406
+ }
407
+ },
408
+ getEventProperties: function(t, e) {
409
+ var n = {};
410
+ return lt.forEach(function(i) {
411
+ typeof i.eventProperties == "function" && q(n, i.eventProperties.call(e[i.pluginName], t));
412
+ }), n;
413
+ },
414
+ modifyOption: function(t, e, n) {
415
+ var i;
416
+ return lt.forEach(function(r) {
417
+ t[r.pluginName] && r.optionListeners && typeof r.optionListeners[e] == "function" && (i = r.optionListeners[e].call(t[r.pluginName], n));
418
+ }), i;
419
+ }
420
+ };
421
+ function ze(o) {
422
+ var t = o.sortable, e = o.rootEl, n = o.name, i = o.targetEl, r = o.cloneEl, a = o.toEl, l = o.fromEl, s = o.oldIndex, u = o.newIndex, d = o.oldDraggableIndex, c = o.newDraggableIndex, b = o.originalEvent, w = o.putSortable, y = o.extraEventProperties;
423
+ if (t = t || e && e[N], !!t) {
424
+ var E, k = t.options, z = "on" + n.charAt(0).toUpperCase() + n.substr(1);
425
+ window.CustomEvent && !V && !Ct ? E = new CustomEvent(n, {
426
+ bubbles: !0,
427
+ cancelable: !0
428
+ }) : (E = document.createEvent("Event"), E.initEvent(n, !0, !0)), E.to = a || e, E.from = l || e, E.item = i || e, E.clone = r, E.oldIndex = s, E.newIndex = u, E.oldDraggableIndex = d, E.newDraggableIndex = c, E.originalEvent = b, E.pullMode = w ? w.lastPutMode : void 0;
429
+ var P = L(L({}, y), Ot.getEventProperties(n, t));
430
+ for (var B in P)
431
+ E[B] = P[B];
432
+ e && e.dispatchEvent(E), k[z] && k[z].call(t, E);
433
+ }
434
+ }
435
+ var $e = ["evt"], x = function(t, e) {
436
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = n.evt, r = Fe(n, $e);
437
+ Ot.pluginEvent.bind(p)(t, e, L({
438
+ dragEl: f,
439
+ parentEl: S,
440
+ ghostEl: g,
441
+ rootEl: _,
442
+ nextEl: at,
443
+ lastDownEl: Mt,
444
+ cloneEl: D,
445
+ cloneHidden: J,
446
+ dragStarted: bt,
447
+ putSortable: O,
448
+ activeSortable: p.active,
449
+ originalEvent: i,
450
+ oldIndex: ft,
451
+ oldDraggableIndex: Dt,
452
+ newIndex: X,
453
+ newDraggableIndex: Q,
454
+ hideGhostForTarget: Ie,
455
+ unhideGhostForTarget: Pe,
456
+ cloneNowHidden: function() {
457
+ J = !0;
458
+ },
459
+ cloneNowShown: function() {
460
+ J = !1;
461
+ },
462
+ dispatchSortableEvent: function(l) {
463
+ A({
464
+ sortable: e,
465
+ name: l,
466
+ originalEvent: i
467
+ });
468
+ }
469
+ }, r));
470
+ };
471
+ function A(o) {
472
+ ze(L({
473
+ putSortable: O,
474
+ cloneEl: D,
475
+ targetEl: f,
476
+ rootEl: _,
477
+ oldIndex: ft,
478
+ oldDraggableIndex: Dt,
479
+ newIndex: X,
480
+ newDraggableIndex: Q
481
+ }, o));
482
+ }
483
+ var f, S, g, _, at, Mt, D, J, ft, X, Dt, Q, Pt, O, ut = !1, kt = !1, Bt = [], it, j, zt, $t, he, pe, bt, st, St, Tt = !1, At = !1, Ft, I, Ut = [], Jt = !1, jt = [], Wt = typeof document < "u", xt = oe, ge = Ct || V ? "cssFloat" : "float", Ue = Wt && !ve && !oe && "draggable" in document.createElement("div"), Te = (function() {
484
+ if (Wt) {
485
+ if (V)
486
+ return !1;
487
+ var o = document.createElement("x");
488
+ return o.style.cssText = "pointer-events:auto", o.style.pointerEvents === "auto";
489
+ }
490
+ })(), Ce = function(t, e) {
491
+ var n = h(t), i = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), r = dt(t, 0, e), a = dt(t, 1, e), l = r && h(r), s = a && h(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + C(r).width, d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + C(a).width;
492
+ if (n.display === "flex")
493
+ return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
494
+ if (n.display === "grid")
495
+ return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
496
+ if (r && l.float && l.float !== "none") {
497
+ var c = l.float === "left" ? "left" : "right";
498
+ return a && (s.clear === "both" || s.clear === c) ? "vertical" : "horizontal";
499
+ }
500
+ return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= i && n[ge] === "none" || a && n[ge] === "none" && u + d > i) ? "vertical" : "horizontal";
501
+ }, qe = function(t, e, n) {
502
+ var i = n ? t.left : t.top, r = n ? t.right : t.bottom, a = n ? t.width : t.height, l = n ? e.left : e.top, s = n ? e.right : e.bottom, u = n ? e.width : e.height;
503
+ return i === l || r === s || i + a / 2 === l + u / 2;
504
+ }, Ve = function(t, e) {
505
+ var n;
506
+ return Bt.some(function(i) {
507
+ var r = i[N].options.emptyInsertThreshold;
508
+ if (!(!r || ie(i))) {
509
+ var a = C(i), l = t >= a.left - r && t <= a.right + r, s = e >= a.top - r && e <= a.bottom + r;
510
+ if (l && s)
511
+ return n = i;
512
+ }
513
+ }), n;
514
+ }, Oe = function(t) {
515
+ function e(r, a) {
516
+ return function(l, s, u, d) {
517
+ var c = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
518
+ if (r == null && (a || c))
519
+ return !0;
520
+ if (r == null || r === !1)
521
+ return !1;
522
+ if (a && r === "clone")
523
+ return r;
524
+ if (typeof r == "function")
525
+ return e(r(l, s, u, d), a)(l, s, u, d);
526
+ var b = (a ? l : s).options.group.name;
527
+ return r === !0 || typeof r == "string" && r === b || r.join && r.indexOf(b) > -1;
528
+ };
529
+ }
530
+ var n = {}, i = t.group;
531
+ (!i || Qt(i) != "object") && (i = {
532
+ name: i
533
+ }), n.name = i.name, n.checkPull = e(i.pull, !0), n.checkPut = e(i.put), n.revertClone = i.revertClone, t.group = n;
534
+ }, Ie = function() {
535
+ !Te && g && h(g, "display", "none");
536
+ }, Pe = function() {
537
+ !Te && g && h(g, "display", "");
538
+ };
539
+ Wt && !ve && document.addEventListener("click", function(o) {
540
+ if (kt)
541
+ return o.preventDefault(), o.stopPropagation && o.stopPropagation(), o.stopImmediatePropagation && o.stopImmediatePropagation(), kt = !1, !1;
542
+ }, !0);
543
+ var rt = function(t) {
544
+ if (f) {
545
+ t = t.touches ? t.touches[0] : t;
546
+ var e = Ve(t.clientX, t.clientY);
547
+ if (e) {
548
+ var n = {};
549
+ for (var i in t)
550
+ t.hasOwnProperty(i) && (n[i] = t[i]);
551
+ n.target = n.rootEl = e, n.preventDefault = void 0, n.stopPropagation = void 0, e[N]._onDragOver(n);
552
+ }
553
+ }
554
+ }, Ke = function(t) {
555
+ f && f.parentNode[N]._isOutsideThisEl(t.target);
556
+ };
557
+ function p(o, t) {
558
+ if (!(o && o.nodeType && o.nodeType === 1))
559
+ throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));
560
+ this.el = o, this.options = t = q({}, t), o[N] = this;
561
+ var e = {
562
+ group: null,
563
+ sort: !0,
564
+ disabled: !1,
565
+ store: null,
566
+ handle: null,
567
+ draggable: /^[uo]l$/i.test(o.nodeName) ? ">li" : ">*",
568
+ swapThreshold: 1,
569
+ // percentage; 0 <= x <= 1
570
+ invertSwap: !1,
571
+ // invert always
572
+ invertedSwapThreshold: null,
573
+ // will be set to same as swapThreshold if default
574
+ removeCloneOnHide: !0,
575
+ direction: function() {
576
+ return Ce(o, this.options);
577
+ },
578
+ ghostClass: "sortable-ghost",
579
+ chosenClass: "sortable-chosen",
580
+ dragClass: "sortable-drag",
581
+ ignore: "a, img",
582
+ filter: null,
583
+ preventOnFilter: !0,
584
+ animation: 0,
585
+ easing: null,
586
+ setData: function(a, l) {
587
+ a.setData("Text", l.textContent);
588
+ },
589
+ dropBubble: !1,
590
+ dragoverBubble: !1,
591
+ dataIdAttr: "data-id",
592
+ delay: 0,
593
+ delayOnTouchOnly: !1,
594
+ touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
595
+ forceFallback: !1,
596
+ fallbackClass: "sortable-fallback",
597
+ fallbackOnBody: !1,
598
+ fallbackTolerance: 0,
599
+ fallbackOffset: {
600
+ x: 0,
601
+ y: 0
602
+ },
603
+ // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
604
+ supportPointer: p.supportPointer !== !1 && "PointerEvent" in window && (!wt || oe),
605
+ emptyInsertThreshold: 5
606
+ };
607
+ Ot.initializePlugins(this, o, e);
608
+ for (var n in e)
609
+ !(n in t) && (t[n] = e[n]);
610
+ Oe(t);
611
+ for (var i in this)
612
+ i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
613
+ this.nativeDraggable = t.forceFallback ? !1 : Ue, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? v(o, "pointerdown", this._onTapStart) : (v(o, "mousedown", this._onTapStart), v(o, "touchstart", this._onTapStart)), this.nativeDraggable && (v(o, "dragover", this), v(o, "dragenter", this)), Bt.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), q(this, We());
614
+ }
615
+ p.prototype = /** @lends Sortable.prototype */
616
+ {
617
+ constructor: p,
618
+ _isOutsideThisEl: function(t) {
619
+ !this.el.contains(t) && t !== this.el && (st = null);
620
+ },
621
+ _getDirection: function(t, e) {
622
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, f) : this.options.direction;
623
+ },
624
+ _onTapStart: function(t) {
625
+ if (t.cancelable) {
626
+ var e = this, n = this.el, i = this.options, r = i.preventOnFilter, a = t.type, l = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, s = (l || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || s, d = i.filter;
627
+ if (rn(n), !f && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && wt && s && s.tagName.toUpperCase() === "SELECT") && (s = H(s, i.draggable, n, !1), !(s && s.animated) && Mt !== s)) {
628
+ if (ft = Y(s), Dt = Y(s, i.draggable), typeof d == "function") {
629
+ if (d.call(this, t, s, this)) {
630
+ A({
631
+ sortable: e,
632
+ rootEl: u,
633
+ name: "filter",
634
+ targetEl: s,
635
+ toEl: n,
636
+ fromEl: n
637
+ }), x("filter", e, {
638
+ evt: t
639
+ }), r && t.preventDefault();
640
+ return;
641
+ }
642
+ } else if (d && (d = d.split(",").some(function(c) {
643
+ if (c = H(u, c.trim(), n, !1), c)
644
+ return A({
645
+ sortable: e,
646
+ rootEl: c,
647
+ name: "filter",
648
+ targetEl: s,
649
+ fromEl: n,
650
+ toEl: n
651
+ }), x("filter", e, {
652
+ evt: t
653
+ }), !0;
654
+ }), d)) {
655
+ r && t.preventDefault();
656
+ return;
657
+ }
658
+ i.handle && !H(u, i.handle, n, !1) || this._prepareDragStart(t, l, s);
659
+ }
660
+ }
661
+ },
662
+ _prepareDragStart: function(t, e, n) {
663
+ var i = this, r = i.el, a = i.options, l = r.ownerDocument, s;
664
+ if (n && !f && n.parentNode === r) {
665
+ var u = C(n);
666
+ if (_ = r, f = n, S = f.parentNode, at = f.nextSibling, Mt = n, Pt = a.group, p.dragged = f, it = {
667
+ target: f,
668
+ clientX: (e || t).clientX,
669
+ clientY: (e || t).clientY
670
+ }, he = it.clientX - u.left, pe = it.clientY - u.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, f.style["will-change"] = "all", s = function() {
671
+ if (x("delayEnded", i, {
672
+ evt: t
673
+ }), p.eventCanceled) {
674
+ i._onDrop();
675
+ return;
676
+ }
677
+ i._disableDelayedDragEvents(), !ue && i.nativeDraggable && (f.draggable = !0), i._triggerDragStart(t, e), A({
678
+ sortable: i,
679
+ name: "choose",
680
+ originalEvent: t
681
+ }), R(f, a.chosenClass, !0);
682
+ }, a.ignore.split(",").forEach(function(d) {
683
+ Ee(f, d.trim(), qt);
684
+ }), v(l, "dragover", rt), v(l, "mousemove", rt), v(l, "touchmove", rt), a.supportPointer ? (v(l, "pointerup", i._onDrop), !this.nativeDraggable && v(l, "pointercancel", i._onDrop)) : (v(l, "mouseup", i._onDrop), v(l, "touchend", i._onDrop), v(l, "touchcancel", i._onDrop)), ue && this.nativeDraggable && (this.options.touchStartThreshold = 4, f.draggable = !0), x("delayStart", this, {
685
+ evt: t
686
+ }), a.delay && (!a.delayOnTouchOnly || e) && (!this.nativeDraggable || !(Ct || V))) {
687
+ if (p.eventCanceled) {
688
+ this._onDrop();
689
+ return;
690
+ }
691
+ a.supportPointer ? (v(l, "pointerup", i._disableDelayedDrag), v(l, "pointercancel", i._disableDelayedDrag)) : (v(l, "mouseup", i._disableDelayedDrag), v(l, "touchend", i._disableDelayedDrag), v(l, "touchcancel", i._disableDelayedDrag)), v(l, "mousemove", i._delayedDragTouchMoveHandler), v(l, "touchmove", i._delayedDragTouchMoveHandler), a.supportPointer && v(l, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(s, a.delay);
692
+ } else
693
+ s();
694
+ }
695
+ },
696
+ _delayedDragTouchMoveHandler: function(t) {
697
+ var e = t.touches ? t.touches[0] : t;
698
+ Math.max(Math.abs(e.clientX - this._lastX), Math.abs(e.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
699
+ },
700
+ _disableDelayedDrag: function() {
701
+ f && qt(f), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
702
+ },
703
+ _disableDelayedDragEvents: function() {
704
+ var t = this.el.ownerDocument;
705
+ m(t, "mouseup", this._disableDelayedDrag), m(t, "touchend", this._disableDelayedDrag), m(t, "touchcancel", this._disableDelayedDrag), m(t, "pointerup", this._disableDelayedDrag), m(t, "pointercancel", this._disableDelayedDrag), m(t, "mousemove", this._delayedDragTouchMoveHandler), m(t, "touchmove", this._delayedDragTouchMoveHandler), m(t, "pointermove", this._delayedDragTouchMoveHandler);
706
+ },
707
+ _triggerDragStart: function(t, e) {
708
+ e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? v(document, "pointermove", this._onTouchMove) : e ? v(document, "touchmove", this._onTouchMove) : v(document, "mousemove", this._onTouchMove) : (v(f, "dragend", this), v(_, "dragstart", this._onDragStart));
709
+ try {
710
+ document.selection ? Rt(function() {
711
+ document.selection.empty();
712
+ }) : window.getSelection().removeAllRanges();
713
+ } catch {
714
+ }
715
+ },
716
+ _dragStarted: function(t, e) {
717
+ if (ut = !1, _ && f) {
718
+ x("dragStarted", this, {
719
+ evt: e
720
+ }), this.nativeDraggable && v(document, "dragover", Ke);
721
+ var n = this.options;
722
+ !t && R(f, n.dragClass, !1), R(f, n.ghostClass, !0), p.active = this, t && this._appendGhost(), A({
723
+ sortable: this,
724
+ name: "start",
725
+ originalEvent: e
726
+ });
727
+ } else
728
+ this._nulling();
729
+ },
730
+ _emulateDragOver: function() {
731
+ if (j) {
732
+ this._lastX = j.clientX, this._lastY = j.clientY, Ie();
733
+ for (var t = document.elementFromPoint(j.clientX, j.clientY), e = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(j.clientX, j.clientY), t !== e); )
734
+ e = t;
735
+ if (f.parentNode[N]._isOutsideThisEl(t), e)
736
+ do {
737
+ if (e[N]) {
738
+ var n = void 0;
739
+ if (n = e[N]._onDragOver({
740
+ clientX: j.clientX,
741
+ clientY: j.clientY,
742
+ target: t,
743
+ rootEl: e
744
+ }), n && !this.options.dragoverBubble)
745
+ break;
746
+ }
747
+ t = e;
748
+ } while (e = ye(e));
749
+ Pe();
750
+ }
751
+ },
752
+ _onTouchMove: function(t) {
753
+ if (it) {
754
+ var e = this.options, n = e.fallbackTolerance, i = e.fallbackOffset, r = t.touches ? t.touches[0] : t, a = g && ct(g, !0), l = g && a && a.a, s = g && a && a.d, u = xt && I && de(I), d = (r.clientX - it.clientX + i.x) / (l || 1) + (u ? u[0] - Ut[0] : 0) / (l || 1), c = (r.clientY - it.clientY + i.y) / (s || 1) + (u ? u[1] - Ut[1] : 0) / (s || 1);
755
+ if (!p.active && !ut) {
756
+ if (n && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < n)
757
+ return;
758
+ this._onDragStart(t, !0);
759
+ }
760
+ if (g) {
761
+ a ? (a.e += d - (zt || 0), a.f += c - ($t || 0)) : a = {
762
+ a: 1,
763
+ b: 0,
764
+ c: 0,
765
+ d: 1,
766
+ e: d,
767
+ f: c
768
+ };
769
+ var b = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
770
+ h(g, "webkitTransform", b), h(g, "mozTransform", b), h(g, "msTransform", b), h(g, "transform", b), zt = d, $t = c, j = r;
771
+ }
772
+ t.cancelable && t.preventDefault();
773
+ }
774
+ },
775
+ _appendGhost: function() {
776
+ if (!g) {
777
+ var t = this.options.fallbackOnBody ? document.body : _, e = C(f, !0, xt, !0, t), n = this.options;
778
+ if (xt) {
779
+ for (I = t; h(I, "position") === "static" && h(I, "transform") === "none" && I !== document; )
780
+ I = I.parentNode;
781
+ I !== document.body && I !== document.documentElement ? (I === document && (I = G()), e.top += I.scrollTop, e.left += I.scrollLeft) : I = G(), Ut = de(I);
782
+ }
783
+ g = f.cloneNode(!0), R(g, n.ghostClass, !1), R(g, n.fallbackClass, !0), R(g, n.dragClass, !0), h(g, "transition", ""), h(g, "transform", ""), h(g, "box-sizing", "border-box"), h(g, "margin", 0), h(g, "top", e.top), h(g, "left", e.left), h(g, "width", e.width), h(g, "height", e.height), h(g, "opacity", "0.8"), h(g, "position", xt ? "absolute" : "fixed"), h(g, "zIndex", "100000"), h(g, "pointerEvents", "none"), p.ghost = g, t.appendChild(g), h(g, "transform-origin", he / parseInt(g.style.width) * 100 + "% " + pe / parseInt(g.style.height) * 100 + "%");
784
+ }
785
+ },
786
+ _onDragStart: function(t, e) {
787
+ var n = this, i = t.dataTransfer, r = n.options;
788
+ if (x("dragStart", this, {
789
+ evt: t
790
+ }), p.eventCanceled) {
791
+ this._onDrop();
792
+ return;
793
+ }
794
+ x("setupClone", this), p.eventCanceled || (D = De(f), D.removeAttribute("id"), D.draggable = !1, D.style["will-change"] = "", this._hideClone(), R(D, this.options.chosenClass, !1), p.clone = D), n.cloneId = Rt(function() {
795
+ x("clone", n), !p.eventCanceled && (n.options.removeCloneOnHide || _.insertBefore(D, f), n._hideClone(), A({
796
+ sortable: n,
797
+ name: "clone"
798
+ }));
799
+ }), !e && R(f, r.dragClass, !0), e ? (kt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (m(document, "mouseup", n._onDrop), m(document, "touchend", n._onDrop), m(document, "touchcancel", n._onDrop), i && (i.effectAllowed = "move", r.setData && r.setData.call(n, i, f)), v(document, "drop", n), h(f, "transform", "translateZ(0)")), ut = !0, n._dragStartId = Rt(n._dragStarted.bind(n, e, t)), v(document, "selectstart", n), bt = !0, window.getSelection().removeAllRanges(), wt && h(document.body, "user-select", "none");
800
+ },
801
+ // Returns true - if no further action is needed (either inserted or another condition)
802
+ _onDragOver: function(t) {
803
+ var e = this.el, n = t.target, i, r, a, l = this.options, s = l.group, u = p.active, d = Pt === s, c = l.sort, b = O || u, w, y = this, E = !1;
804
+ if (Jt) return;
805
+ function k(vt, xe) {
806
+ x(vt, y, L({
807
+ evt: t,
808
+ isOwner: d,
809
+ axis: w ? "vertical" : "horizontal",
810
+ revert: a,
811
+ dragRect: i,
812
+ targetRect: r,
813
+ canSort: c,
814
+ fromSortable: b,
815
+ target: n,
816
+ completed: P,
817
+ onMove: function(le, Ne) {
818
+ return Nt(_, e, f, i, le, C(le), t, Ne);
819
+ },
820
+ changed: B
821
+ }, xe));
822
+ }
823
+ function z() {
824
+ k("dragOverAnimationCapture"), y.captureAnimationState(), y !== b && b.captureAnimationState();
825
+ }
826
+ function P(vt) {
827
+ return k("dragOverCompleted", {
828
+ insertion: vt
829
+ }), vt && (d ? u._hideClone() : u._showClone(y), y !== b && (R(f, O ? O.options.ghostClass : u.options.ghostClass, !1), R(f, l.ghostClass, !0)), O !== y && y !== p.active ? O = y : y === p.active && O && (O = null), b === y && (y._ignoreWhileAnimating = n), y.animateAll(function() {
830
+ k("dragOverAnimationComplete"), y._ignoreWhileAnimating = null;
831
+ }), y !== b && (b.animateAll(), b._ignoreWhileAnimating = null)), (n === f && !f.animated || n === e && !n.animated) && (st = null), !l.dragoverBubble && !t.rootEl && n !== document && (f.parentNode[N]._isOutsideThisEl(t.target), !vt && rt(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), E = !0;
832
+ }
833
+ function B() {
834
+ X = Y(f), Q = Y(f, l.draggable), A({
835
+ sortable: y,
836
+ name: "change",
837
+ toEl: e,
838
+ newIndex: X,
839
+ newDraggableIndex: Q,
840
+ originalEvent: t
841
+ });
842
+ }
843
+ if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = H(n, l.draggable, e, !0), k("dragOver"), p.eventCanceled) return E;
844
+ if (f.contains(t.target) || n.animated && n.animatingX && n.animatingY || y._ignoreWhileAnimating === n)
845
+ return P(!1);
846
+ if (kt = !1, u && !l.disabled && (d ? c || (a = S !== _) : O === this || (this.lastPutMode = Pt.checkPull(this, u, f, t)) && s.checkPut(this, u, f, t))) {
847
+ if (w = this._getDirection(t, n) === "vertical", i = C(f), k("dragOverValid"), p.eventCanceled) return E;
848
+ if (a)
849
+ return S = _, z(), this._hideClone(), k("revert"), p.eventCanceled || (at ? _.insertBefore(f, at) : _.appendChild(f)), P(!0);
850
+ var M = ie(e, l.draggable);
851
+ if (!M || tn(t, w, this) && !M.animated) {
852
+ if (M === f)
853
+ return P(!1);
854
+ if (M && e === t.target && (n = M), n && (r = C(n)), Nt(_, e, f, i, n, r, t, !!n) !== !1)
855
+ return z(), M && M.nextSibling ? e.insertBefore(f, M.nextSibling) : e.appendChild(f), S = e, B(), P(!0);
856
+ } else if (M && Je(t, w, this)) {
857
+ var et = dt(e, 0, l, !0);
858
+ if (et === f)
859
+ return P(!1);
860
+ if (n = et, r = C(n), Nt(_, e, f, i, n, r, t, !1) !== !1)
861
+ return z(), e.insertBefore(f, et), S = e, B(), P(!0);
862
+ } else if (n.parentNode === e) {
863
+ r = C(n);
864
+ var W = 0, nt, ht = f.parentNode !== e, F = !qe(f.animated && f.toRect || i, n.animated && n.toRect || r, w), pt = w ? "top" : "left", K = ce(n, "top", "top") || ce(f, "top", "top"), gt = K ? K.scrollTop : void 0;
865
+ st !== n && (nt = r[pt], Tt = !1, At = !F && l.invertSwap || ht), W = en(t, n, r, w, F ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, At, st === n);
866
+ var $;
867
+ if (W !== 0) {
868
+ var ot = Y(f);
869
+ do
870
+ ot -= W, $ = S.children[ot];
871
+ while ($ && (h($, "display") === "none" || $ === g));
872
+ }
873
+ if (W === 0 || $ === n)
874
+ return P(!1);
875
+ st = n, St = W;
876
+ var mt = n.nextElementSibling, Z = !1;
877
+ Z = W === 1;
878
+ var It = Nt(_, e, f, i, n, r, t, Z);
879
+ if (It !== !1)
880
+ return (It === 1 || It === -1) && (Z = It === 1), Jt = !0, setTimeout(Qe, 30), z(), Z && !mt ? e.appendChild(f) : n.parentNode.insertBefore(f, Z ? mt : n), K && _e(K, 0, gt - K.scrollTop), S = f.parentNode, nt !== void 0 && !At && (Ft = Math.abs(nt - C(n)[pt])), B(), P(!0);
881
+ }
882
+ if (e.contains(f))
883
+ return P(!1);
884
+ }
885
+ return !1;
886
+ },
887
+ _ignoreWhileAnimating: null,
888
+ _offMoveEvents: function() {
889
+ m(document, "mousemove", this._onTouchMove), m(document, "touchmove", this._onTouchMove), m(document, "pointermove", this._onTouchMove), m(document, "dragover", rt), m(document, "mousemove", rt), m(document, "touchmove", rt);
890
+ },
891
+ _offUpEvents: function() {
892
+ var t = this.el.ownerDocument;
893
+ m(t, "mouseup", this._onDrop), m(t, "touchend", this._onDrop), m(t, "pointerup", this._onDrop), m(t, "pointercancel", this._onDrop), m(t, "touchcancel", this._onDrop), m(document, "selectstart", this);
894
+ },
895
+ _onDrop: function(t) {
896
+ var e = this.el, n = this.options;
897
+ if (X = Y(f), Q = Y(f, n.draggable), x("drop", this, {
898
+ evt: t
899
+ }), S = f && f.parentNode, X = Y(f), Q = Y(f, n.draggable), p.eventCanceled) {
900
+ this._nulling();
901
+ return;
902
+ }
903
+ ut = !1, At = !1, Tt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), te(this.cloneId), te(this._dragStartId), this.nativeDraggable && (m(document, "drop", this), m(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), wt && h(document.body, "user-select", ""), h(f, "transform", ""), t && (bt && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), g && g.parentNode && g.parentNode.removeChild(g), (_ === S || O && O.lastPutMode !== "clone") && D && D.parentNode && D.parentNode.removeChild(D), f && (this.nativeDraggable && m(f, "dragend", this), qt(f), f.style["will-change"] = "", bt && !ut && R(f, O ? O.options.ghostClass : this.options.ghostClass, !1), R(f, this.options.chosenClass, !1), A({
904
+ sortable: this,
905
+ name: "unchoose",
906
+ toEl: S,
907
+ newIndex: null,
908
+ newDraggableIndex: null,
909
+ originalEvent: t
910
+ }), _ !== S ? (X >= 0 && (A({
911
+ rootEl: S,
912
+ name: "add",
913
+ toEl: S,
914
+ fromEl: _,
915
+ originalEvent: t
916
+ }), A({
917
+ sortable: this,
918
+ name: "remove",
919
+ toEl: S,
920
+ originalEvent: t
921
+ }), A({
922
+ rootEl: S,
923
+ name: "sort",
924
+ toEl: S,
925
+ fromEl: _,
926
+ originalEvent: t
927
+ }), A({
928
+ sortable: this,
929
+ name: "sort",
930
+ toEl: S,
931
+ originalEvent: t
932
+ })), O && O.save()) : X !== ft && X >= 0 && (A({
933
+ sortable: this,
934
+ name: "update",
935
+ toEl: S,
936
+ originalEvent: t
937
+ }), A({
938
+ sortable: this,
939
+ name: "sort",
940
+ toEl: S,
941
+ originalEvent: t
942
+ })), p.active && ((X == null || X === -1) && (X = ft, Q = Dt), A({
943
+ sortable: this,
944
+ name: "end",
945
+ toEl: S,
946
+ originalEvent: t
947
+ }), this.save()))), this._nulling();
948
+ },
949
+ _nulling: function() {
950
+ x("nulling", this), _ = f = S = g = at = D = Mt = J = it = j = bt = X = Q = ft = Dt = st = St = O = Pt = p.dragged = p.ghost = p.clone = p.active = null;
951
+ var t = this.el;
952
+ jt.forEach(function(e) {
953
+ t.contains(e) && (e.checked = !0);
954
+ }), jt.length = zt = $t = 0;
955
+ },
956
+ handleEvent: function(t) {
957
+ switch (t.type) {
958
+ case "drop":
959
+ case "dragend":
960
+ this._onDrop(t);
961
+ break;
962
+ case "dragenter":
963
+ case "dragover":
964
+ f && (this._onDragOver(t), Ze(t));
965
+ break;
966
+ case "selectstart":
967
+ t.preventDefault();
968
+ break;
969
+ }
970
+ },
971
+ /**
972
+ * Serializes the item into an array of string.
973
+ * @returns {String[]}
974
+ */
975
+ toArray: function() {
976
+ for (var t = [], e, n = this.el.children, i = 0, r = n.length, a = this.options; i < r; i++)
977
+ e = n[i], H(e, a.draggable, this.el, !1) && t.push(e.getAttribute(a.dataIdAttr) || on(e));
978
+ return t;
979
+ },
980
+ /**
981
+ * Sorts the elements according to the array.
982
+ * @param {String[]} order order of the items
983
+ */
984
+ sort: function(t, e) {
985
+ var n = {}, i = this.el;
986
+ this.toArray().forEach(function(r, a) {
987
+ var l = i.children[a];
988
+ H(l, this.options.draggable, i, !1) && (n[r] = l);
989
+ }, this), e && this.captureAnimationState(), t.forEach(function(r) {
990
+ n[r] && (i.removeChild(n[r]), i.appendChild(n[r]));
991
+ }), e && this.animateAll();
992
+ },
993
+ /**
994
+ * Save the current sorting
995
+ */
996
+ save: function() {
997
+ var t = this.options.store;
998
+ t && t.set && t.set(this);
999
+ },
1000
+ /**
1001
+ * 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.
1002
+ * @param {HTMLElement} el
1003
+ * @param {String} [selector] default: `options.draggable`
1004
+ * @returns {HTMLElement|null}
1005
+ */
1006
+ closest: function(t, e) {
1007
+ return H(t, e || this.options.draggable, this.el, !1);
1008
+ },
1009
+ /**
1010
+ * Set/get option
1011
+ * @param {string} name
1012
+ * @param {*} [value]
1013
+ * @returns {*}
1014
+ */
1015
+ option: function(t, e) {
1016
+ var n = this.options;
1017
+ if (e === void 0)
1018
+ return n[t];
1019
+ var i = Ot.modifyOption(this, t, e);
1020
+ typeof i < "u" ? n[t] = i : n[t] = e, t === "group" && Oe(n);
1021
+ },
1022
+ /**
1023
+ * Destroy
1024
+ */
1025
+ destroy: function() {
1026
+ x("destroy", this);
1027
+ var t = this.el;
1028
+ t[N] = null, m(t, "mousedown", this._onTapStart), m(t, "touchstart", this._onTapStart), m(t, "pointerdown", this._onTapStart), this.nativeDraggable && (m(t, "dragover", this), m(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(e) {
1029
+ e.removeAttribute("draggable");
1030
+ }), this._onDrop(), this._disableDelayedDragEvents(), Bt.splice(Bt.indexOf(this.el), 1), this.el = t = null;
1031
+ },
1032
+ _hideClone: function() {
1033
+ if (!J) {
1034
+ if (x("hideClone", this), p.eventCanceled) return;
1035
+ h(D, "display", "none"), this.options.removeCloneOnHide && D.parentNode && D.parentNode.removeChild(D), J = !0;
1036
+ }
1037
+ },
1038
+ _showClone: function(t) {
1039
+ if (t.lastPutMode !== "clone") {
1040
+ this._hideClone();
1041
+ return;
1042
+ }
1043
+ if (J) {
1044
+ if (x("showClone", this), p.eventCanceled) return;
1045
+ f.parentNode == _ && !this.options.group.revertClone ? _.insertBefore(D, f) : at ? _.insertBefore(D, at) : _.appendChild(D), this.options.group.revertClone && this.animate(f, D), h(D, "display", ""), J = !1;
1046
+ }
1047
+ }
1048
+ };
1049
+ function Ze(o) {
1050
+ o.dataTransfer && (o.dataTransfer.dropEffect = "move"), o.cancelable && o.preventDefault();
1051
+ }
1052
+ function Nt(o, t, e, n, i, r, a, l) {
1053
+ var s, u = o[N], d = u.options.onMove, c;
1054
+ return window.CustomEvent && !V && !Ct ? s = new CustomEvent("move", {
1055
+ bubbles: !0,
1056
+ cancelable: !0
1057
+ }) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = t, s.from = o, s.dragged = e, s.draggedRect = n, s.related = i || t, s.relatedRect = r || C(t), s.willInsertAfter = l, s.originalEvent = a, o.dispatchEvent(s), d && (c = d.call(u, s, a)), c;
1058
+ }
1059
+ function qt(o) {
1060
+ o.draggable = !1;
1061
+ }
1062
+ function Qe() {
1063
+ Jt = !1;
1064
+ }
1065
+ function Je(o, t, e) {
1066
+ var n = C(dt(e.el, 0, e.options, !0)), i = Se(e.el, e.options, g), r = 10;
1067
+ return t ? o.clientX < i.left - r || o.clientY < n.top && o.clientX < n.right : o.clientY < i.top - r || o.clientY < n.bottom && o.clientX < n.left;
1068
+ }
1069
+ function tn(o, t, e) {
1070
+ var n = C(ie(e.el, e.options.draggable)), i = Se(e.el, e.options, g), r = 10;
1071
+ return t ? o.clientX > i.right + r || o.clientY > n.bottom && o.clientX > n.left : o.clientY > i.bottom + r || o.clientX > n.right && o.clientY > n.top;
1072
+ }
1073
+ function en(o, t, e, n, i, r, a, l) {
1074
+ var s = n ? o.clientY : o.clientX, u = n ? e.height : e.width, d = n ? e.top : e.left, c = n ? e.bottom : e.right, b = !1;
1075
+ if (!a) {
1076
+ if (l && Ft < u * i) {
1077
+ if (!Tt && (St === 1 ? s > d + u * r / 2 : s < c - u * r / 2) && (Tt = !0), Tt)
1078
+ b = !0;
1079
+ else if (St === 1 ? s < d + Ft : s > c - Ft)
1080
+ return -St;
1081
+ } else if (s > d + u * (1 - i) / 2 && s < c - u * (1 - i) / 2)
1082
+ return nn(t);
1083
+ }
1084
+ return b = b || a, b && (s < d + u * r / 2 || s > c - u * r / 2) ? s > d + u / 2 ? 1 : -1 : 0;
1085
+ }
1086
+ function nn(o) {
1087
+ return Y(f) < Y(o) ? 1 : -1;
1088
+ }
1089
+ function on(o) {
1090
+ for (var t = o.tagName + o.className + o.src + o.href + o.textContent, e = t.length, n = 0; e--; )
1091
+ n += t.charCodeAt(e);
1092
+ return n.toString(36);
1093
+ }
1094
+ function rn(o) {
1095
+ jt.length = 0;
1096
+ for (var t = o.getElementsByTagName("input"), e = t.length; e--; ) {
1097
+ var n = t[e];
1098
+ n.checked && jt.push(n);
1099
+ }
1100
+ }
1101
+ function Rt(o) {
1102
+ return setTimeout(o, 0);
1103
+ }
1104
+ function te(o) {
1105
+ return clearTimeout(o);
1106
+ }
1107
+ Wt && v(document, "touchmove", function(o) {
1108
+ (p.active || ut) && o.cancelable && o.preventDefault();
1109
+ });
1110
+ p.utils = {
1111
+ on: v,
1112
+ off: m,
1113
+ css: h,
1114
+ find: Ee,
1115
+ is: function(t, e) {
1116
+ return !!H(t, e, t, !1);
1117
+ },
1118
+ extend: je,
1119
+ throttle: we,
1120
+ closest: H,
1121
+ toggleClass: R,
1122
+ clone: De,
1123
+ index: Y,
1124
+ nextTick: Rt,
1125
+ cancelNextTick: te,
1126
+ detectDirection: Ce,
1127
+ getChild: dt,
1128
+ expando: N
1129
+ };
1130
+ p.get = function(o) {
1131
+ return o[N];
1132
+ };
1133
+ p.mount = function() {
1134
+ for (var o = arguments.length, t = new Array(o), e = 0; e < o; e++)
1135
+ t[e] = arguments[e];
1136
+ t[0].constructor === Array && (t = t[0]), t.forEach(function(n) {
1137
+ if (!n.prototype || !n.prototype.constructor)
1138
+ throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
1139
+ n.utils && (p.utils = L(L({}, p.utils), n.utils)), Ot.mount(n);
1140
+ });
1141
+ };
1142
+ p.create = function(o, t) {
1143
+ return new p(o, t);
1144
+ };
1145
+ p.version = ke;
1146
+ var T = [], yt, ee, ne = !1, Vt, Kt, Ht, Et;
1147
+ function an() {
1148
+ function o() {
1149
+ this.defaults = {
1150
+ scroll: !0,
1151
+ forceAutoScrollFallback: !1,
1152
+ scrollSensitivity: 30,
1153
+ scrollSpeed: 10,
1154
+ bubbleScroll: !0
1155
+ };
1156
+ for (var t in this)
1157
+ t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
1158
+ }
1159
+ return o.prototype = {
1160
+ dragStarted: function(e) {
1161
+ var n = e.originalEvent;
1162
+ this.sortable.nativeDraggable ? v(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? v(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? v(document, "touchmove", this._handleFallbackAutoScroll) : v(document, "mousemove", this._handleFallbackAutoScroll);
1163
+ },
1164
+ dragOverCompleted: function(e) {
1165
+ var n = e.originalEvent;
1166
+ !this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
1167
+ },
1168
+ drop: function() {
1169
+ this.sortable.nativeDraggable ? m(document, "dragover", this._handleAutoScroll) : (m(document, "pointermove", this._handleFallbackAutoScroll), m(document, "touchmove", this._handleFallbackAutoScroll), m(document, "mousemove", this._handleFallbackAutoScroll)), me(), Xt(), He();
1170
+ },
1171
+ nulling: function() {
1172
+ Ht = ee = yt = ne = Et = Vt = Kt = null, T.length = 0;
1173
+ },
1174
+ _handleFallbackAutoScroll: function(e) {
1175
+ this._handleAutoScroll(e, !0);
1176
+ },
1177
+ _handleAutoScroll: function(e, n) {
1178
+ var i = this, r = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, l = document.elementFromPoint(r, a);
1179
+ if (Ht = e, n || this.options.forceAutoScrollFallback || Ct || V || wt) {
1180
+ Zt(e, this.options, l, n);
1181
+ var s = tt(l, !0);
1182
+ ne && (!Et || r !== Vt || a !== Kt) && (Et && me(), Et = setInterval(function() {
1183
+ var u = tt(document.elementFromPoint(r, a), !0);
1184
+ u !== s && (s = u, Xt()), Zt(e, i.options, u, n);
1185
+ }, 10), Vt = r, Kt = a);
1186
+ } else {
1187
+ if (!this.options.bubbleScroll || tt(l, !0) === G()) {
1188
+ Xt();
1189
+ return;
1190
+ }
1191
+ Zt(e, this.options, tt(l, !1), !1);
1192
+ }
1193
+ }
1194
+ }, q(o, {
1195
+ pluginName: "scroll",
1196
+ initializeByDefault: !0
1197
+ });
1198
+ }
1199
+ function Xt() {
1200
+ T.forEach(function(o) {
1201
+ clearInterval(o.pid);
1202
+ }), T = [];
1203
+ }
1204
+ function me() {
1205
+ clearInterval(Et);
1206
+ }
1207
+ var Zt = we(function(o, t, e, n) {
1208
+ if (t.scroll) {
1209
+ var i = (o.touches ? o.touches[0] : o).clientX, r = (o.touches ? o.touches[0] : o).clientY, a = t.scrollSensitivity, l = t.scrollSpeed, s = G(), u = !1, d;
1210
+ ee !== e && (ee = e, Xt(), yt = t.scroll, d = t.scrollFn, yt === !0 && (yt = tt(e, !0)));
1211
+ var c = 0, b = yt;
1212
+ do {
1213
+ var w = b, y = C(w), E = y.top, k = y.bottom, z = y.left, P = y.right, B = y.width, M = y.height, et = void 0, W = void 0, nt = w.scrollWidth, ht = w.scrollHeight, F = h(w), pt = w.scrollLeft, K = w.scrollTop;
1214
+ w === s ? (et = B < nt && (F.overflowX === "auto" || F.overflowX === "scroll" || F.overflowX === "visible"), W = M < ht && (F.overflowY === "auto" || F.overflowY === "scroll" || F.overflowY === "visible")) : (et = B < nt && (F.overflowX === "auto" || F.overflowX === "scroll"), W = M < ht && (F.overflowY === "auto" || F.overflowY === "scroll"));
1215
+ var gt = et && (Math.abs(P - i) <= a && pt + B < nt) - (Math.abs(z - i) <= a && !!pt), $ = W && (Math.abs(k - r) <= a && K + M < ht) - (Math.abs(E - r) <= a && !!K);
1216
+ if (!T[c])
1217
+ for (var ot = 0; ot <= c; ot++)
1218
+ T[ot] || (T[ot] = {});
1219
+ (T[c].vx != gt || T[c].vy != $ || T[c].el !== w) && (T[c].el = w, T[c].vx = gt, T[c].vy = $, clearInterval(T[c].pid), (gt != 0 || $ != 0) && (u = !0, T[c].pid = setInterval(function() {
1220
+ n && this.layer === 0 && p.active._onTouchMove(Ht);
1221
+ var mt = T[this.layer].vy ? T[this.layer].vy * l : 0, Z = T[this.layer].vx ? T[this.layer].vx * l : 0;
1222
+ typeof d == "function" && d.call(p.dragged.parentNode[N], Z, mt, o, Ht, T[this.layer].el) !== "continue" || _e(T[this.layer].el, Z, mt);
1223
+ }.bind({
1224
+ layer: c
1225
+ }), 24))), c++;
1226
+ } while (t.bubbleScroll && b !== s && (b = tt(b, !1)));
1227
+ ne = u;
1228
+ }
1229
+ }, 30), Ae = function(t) {
1230
+ var e = t.originalEvent, n = t.putSortable, i = t.dragEl, r = t.activeSortable, a = t.dispatchSortableEvent, l = t.hideGhostForTarget, s = t.unhideGhostForTarget;
1231
+ if (e) {
1232
+ var u = n || r;
1233
+ l();
1234
+ var d = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, c = document.elementFromPoint(d.clientX, d.clientY);
1235
+ s(), u && !u.el.contains(c) && (a("spill"), this.onSpill({
1236
+ dragEl: i,
1237
+ putSortable: n
1238
+ }));
1239
+ }
1240
+ };
1241
+ function re() {
1242
+ }
1243
+ re.prototype = {
1244
+ startIndex: null,
1245
+ dragStart: function(t) {
1246
+ var e = t.oldDraggableIndex;
1247
+ this.startIndex = e;
1248
+ },
1249
+ onSpill: function(t) {
1250
+ var e = t.dragEl, n = t.putSortable;
1251
+ this.sortable.captureAnimationState(), n && n.captureAnimationState();
1252
+ var i = dt(this.sortable.el, this.startIndex, this.options);
1253
+ i ? this.sortable.el.insertBefore(e, i) : this.sortable.el.appendChild(e), this.sortable.animateAll(), n && n.animateAll();
1254
+ },
1255
+ drop: Ae
1256
+ };
1257
+ q(re, {
1258
+ pluginName: "revertOnSpill"
1259
+ });
1260
+ function ae() {
1261
+ }
1262
+ ae.prototype = {
1263
+ onSpill: function(t) {
1264
+ var e = t.dragEl, n = t.putSortable, i = n || this.sortable;
1265
+ i.captureAnimationState(), e.parentNode && e.parentNode.removeChild(e), i.animateAll();
1266
+ },
1267
+ drop: Ae
1268
+ };
1269
+ q(ae, {
1270
+ pluginName: "removeOnSpill"
1271
+ });
1272
+ p.mount(new an());
1273
+ p.mount(ae, re);
1274
+ export {
1275
+ p as S
1276
+ };