@hybridcore/ui 1.6.13 → 1.6.16

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 (100) hide show
  1. package/dist/AccordionSummary-DUtr16g6.js +781 -0
  2. package/dist/Add-Bk8R160M.js +403 -0
  3. package/dist/Button-Cem3nbwc.js +357 -0
  4. package/dist/ButtonBase-DObmf4Q_.js +886 -0
  5. package/dist/Delete-CVJ6FeDn.js +203 -0
  6. package/dist/FormGroup-BRj1o7-E.js +89 -0
  7. package/dist/InputLabel-CjD30ZHz.js +341 -0
  8. package/dist/MenuItem-BKvRGLvM.js +233 -0
  9. package/dist/Modal-BVYydOr5.js +1156 -0
  10. package/dist/Paper-B1HV8GyO.js +582 -0
  11. package/dist/Select-Bfhvigsx.js +3914 -0
  12. package/dist/Source-BSZST_GH.js +4410 -0
  13. package/dist/SwitchBase-BEK49kdS.js +235 -0
  14. package/dist/Text-ChJRuaD8.js +2197 -0
  15. package/dist/TextField-Ca9ykixI.js +696 -0
  16. package/dist/TransitionGroupContext-Ja2CgIob.js +96 -0
  17. package/dist/Typography-D3X-Y5fh.js +178 -0
  18. package/dist/Vector-BmuhQO4p.js +3606 -0
  19. package/dist/Vector-DfTqQEln.js +1735 -0
  20. package/dist/WKT-2wsDT-nq.js +2310 -0
  21. package/dist/{_commonjsHelpers-BVfed4GL.js → _commonjsHelpers-BkfeUUK-.js} +2 -2
  22. package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
  23. package/dist/assets/index.css +1 -1
  24. package/dist/assets/index2.css +1 -1
  25. package/dist/assets/index3.css +1 -0
  26. package/dist/assets/index4.css +1 -0
  27. package/dist/clsx-OuTLNxxd.js +16 -0
  28. package/dist/components/button/styled.js +1 -1
  29. package/dist/components/charts/_common/format.js +126 -82
  30. package/dist/components/charts/_common/tooltip.js +44 -35
  31. package/dist/components/charts/chart-wrapper/index.js +44 -43
  32. package/dist/components/charts/donut-chart/logic.js +53 -40
  33. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1 -1
  34. package/dist/components/charts/xy-chart/logic.js +135 -134
  35. package/dist/components/collapsible-card/index.js +30 -21
  36. package/dist/components/collapsible-card/styled.js +14 -16
  37. package/dist/components/color-picker/index.js +3358 -2228
  38. package/dist/components/color-picker/styled.js +7 -87
  39. package/dist/components/confirm/dialog.js +7 -89
  40. package/dist/components/confirm/index.js +1 -1
  41. package/dist/components/data-map/index.js +1 -1
  42. package/dist/components/data-map/logic.js +20 -20
  43. package/dist/components/data-security-selectors/dissemination-list/index.js +3117 -32
  44. package/dist/components/date-range-picker/index.js +454 -466
  45. package/dist/components/document-viewer/components/viewer/index.js +1 -1
  46. package/dist/components/duration-select/index.js +10 -10
  47. package/dist/components/duration-select/styled.js +1 -1
  48. package/dist/components/geometry-picker/coordinate/index.js +14 -14
  49. package/dist/components/geometry-picker/edit/index.js +1 -1
  50. package/dist/components/geometry-picker/geometry/index.js +1 -1
  51. package/dist/components/geometry-picker/kml/index.js +11 -11
  52. package/dist/components/geometry-picker/map/logic.js +3656 -145
  53. package/dist/components/geometry-picker/map/style.js +17 -18
  54. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1255 -43
  55. package/dist/components/heat-map/index.js +1 -1
  56. package/dist/components/heat-map/logic.js +1924 -77
  57. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +8737 -8722
  58. package/dist/components/instance-hierarchy-table/styled.js +16 -18
  59. package/dist/components/map/helpers/mapbox.js +15 -17
  60. package/dist/components/map/helpers/ol.js +27 -386
  61. package/dist/components/map/index.js +10 -11
  62. package/dist/components/map/logic.js +22 -22
  63. package/dist/components/map/styled.js +27 -31
  64. package/dist/components/phone-input/index.js +9 -10
  65. package/dist/components/property-mapping/index.js +1 -1
  66. package/dist/components/prr-map/index.js +1 -1
  67. package/dist/components/prr-map/logic.js +26 -27
  68. package/dist/components/raster-grid-map/index.js +1 -1
  69. package/dist/components/raster-grid-map/logic.js +57 -60
  70. package/dist/components/sortable-list/index.js +1264 -1091
  71. package/dist/components/template-form/components/property-list/index.js +32 -36
  72. package/dist/components/template-form/components/property-list/property-list-columns.js +17 -19
  73. package/dist/components/template-form/components/property-list/property-list-form.js +600 -137
  74. package/dist/components/template-form/components/recognition-property-list/index.js +36 -40
  75. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +9 -11
  76. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +64 -57
  77. package/dist/components/tree-select/index.js +16 -16
  78. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  79. package/dist/createSvgIcon-BghzB2Y9.js +93 -0
  80. package/dist/createSvgIcon-D7U1nd99.js +185 -0
  81. package/dist/debounce-46wSf_lW.js +15 -0
  82. package/dist/dialog-BtJhjyF5.js +664 -0
  83. package/dist/extends-C3382pL0.js +22 -0
  84. package/dist/formControlState-vgaj2ksH.js +10 -0
  85. package/dist/generateUtilityClasses-Cc-owZ4J.js +2971 -0
  86. package/dist/{index-C__OZmYy.js → index-CblbdqjE.js} +1 -1
  87. package/dist/index-DH6qsPBn.js +153 -0
  88. package/dist/index.esm-DAf19hyR.js +318 -0
  89. package/dist/main.d.ts +9 -1
  90. package/dist/math-Bvt2Ubuz.js +704 -0
  91. package/dist/ol-yOE-NV0X.js +7465 -0
  92. package/dist/ownerWindow-wg6foiOE.js +10 -0
  93. package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
  94. package/dist/styled-DD4BkuVf.js +350 -0
  95. package/dist/useControlled-BYdyS7Pn.js +31 -0
  96. package/dist/useFormControl-CatNKXAi.js +10 -0
  97. package/dist/useId-BW-oWmul.js +19 -0
  98. package/dist/useSlot-u4t0X96G.js +42 -0
  99. package/package.json +1 -1
  100. package/dist/index.esm-UfGMjYOL.js +0 -197
@@ -1,611 +1,784 @@
1
- var an = Object.defineProperty;
2
- var ln = (o, e, t) => e in o ? an(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
- var At = (o, e, t) => ln(o, typeof e != "symbol" ? e + "" : e, t);
4
- import { jsx as Ge } from "react/jsx-runtime";
5
- import sn from "@mui/material/CardHeader";
6
- import { g as Yt } from "../../_commonjsHelpers-BVfed4GL.js";
7
- import cn from "react";
8
- import { useSortableListLogic as un } from "./logic.js";
9
- import { SortableListRoot as dn, SortableListItem as fn } from "./styled.js";
10
- var Bt = { exports: {} };
1
+ var pn = Object.defineProperty;
2
+ var hn = (n, e, t) => e in n ? pn(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var $t = (n, e, t) => hn(n, typeof e != "symbol" ? e + "" : e, t);
4
+ import { jsx as ge, jsxs as Rt } from "react/jsx-runtime";
5
+ import { a as Kt } from "../../_commonjsHelpers-BkfeUUK-.js";
6
+ import * as gn from "react";
7
+ import mn from "react";
8
+ import { useSortableListLogic as bn } from "./logic.js";
9
+ import { SortableListRoot as vn, SortableListItem as yn } from "./styled.js";
10
+ import { a as Me, _ as wn } from "../../extends-C3382pL0.js";
11
+ import { P as z } from "../../index-CblbdqjE.js";
12
+ import { c as En } from "../../clsx-OuTLNxxd.js";
13
+ import { g as Sn, a as Dn, s as ct, u as _n, c as Cn } from "../../generateUtilityClasses-Cc-owZ4J.js";
14
+ import { T as We } from "../../Typography-D3X-Y5fh.js";
15
+ function xn(n) {
16
+ return Dn("MuiCardHeader", n);
17
+ }
18
+ const Ht = Sn("MuiCardHeader", ["root", "avatar", "action", "content", "title", "subheader"]), On = ["action", "avatar", "className", "component", "disableTypography", "subheader", "subheaderTypographyProps", "title", "titleTypographyProps"], In = (n) => {
19
+ const {
20
+ classes: e
21
+ } = n;
22
+ return Cn({
23
+ root: ["root"],
24
+ avatar: ["avatar"],
25
+ action: ["action"],
26
+ content: ["content"],
27
+ title: ["title"],
28
+ subheader: ["subheader"]
29
+ }, xn, e);
30
+ }, Tn = ct("div", {
31
+ name: "MuiCardHeader",
32
+ slot: "Root",
33
+ overridesResolver: (n, e) => Me({
34
+ [`& .${Ht.title}`]: e.title,
35
+ [`& .${Ht.subheader}`]: e.subheader
36
+ }, e.root)
37
+ })({
38
+ display: "flex",
39
+ alignItems: "center",
40
+ padding: 16
41
+ }), An = ct("div", {
42
+ name: "MuiCardHeader",
43
+ slot: "Avatar",
44
+ overridesResolver: (n, e) => e.avatar
45
+ })({
46
+ display: "flex",
47
+ flex: "0 0 auto",
48
+ marginRight: 16
49
+ }), Pn = ct("div", {
50
+ name: "MuiCardHeader",
51
+ slot: "Action",
52
+ overridesResolver: (n, e) => e.action
53
+ })({
54
+ flex: "0 0 auto",
55
+ alignSelf: "flex-start",
56
+ marginTop: -4,
57
+ marginRight: -8,
58
+ marginBottom: -4
59
+ }), Nn = ct("div", {
60
+ name: "MuiCardHeader",
61
+ slot: "Content",
62
+ overridesResolver: (n, e) => e.content
63
+ })({
64
+ flex: "1 1 auto"
65
+ }), qt = /* @__PURE__ */ gn.forwardRef(function(e, t) {
66
+ const o = _n({
67
+ props: e,
68
+ name: "MuiCardHeader"
69
+ }), {
70
+ action: r,
71
+ avatar: i,
72
+ className: a,
73
+ component: s = "div",
74
+ disableTypography: l = !1,
75
+ subheader: c,
76
+ subheaderTypographyProps: p,
77
+ title: f,
78
+ titleTypographyProps: v
79
+ } = o, A = wn(o, On), E = Me({}, o, {
80
+ component: s,
81
+ disableTypography: l
82
+ }), _ = In(E);
83
+ let R = f;
84
+ R != null && R.type !== We && !l && (R = /* @__PURE__ */ ge(We, Me({
85
+ variant: i ? "body2" : "h5",
86
+ className: _.title,
87
+ component: "span",
88
+ display: "block"
89
+ }, v, {
90
+ children: R
91
+ })));
92
+ let Y = c;
93
+ return Y != null && Y.type !== We && !l && (Y = /* @__PURE__ */ ge(We, Me({
94
+ variant: i ? "body2" : "body1",
95
+ className: _.subheader,
96
+ color: "text.secondary",
97
+ component: "span",
98
+ display: "block"
99
+ }, p, {
100
+ children: Y
101
+ }))), /* @__PURE__ */ Rt(Tn, Me({
102
+ className: En(_.root, a),
103
+ as: s,
104
+ ref: t,
105
+ ownerState: E
106
+ }, A, {
107
+ children: [i && /* @__PURE__ */ ge(An, {
108
+ className: _.avatar,
109
+ ownerState: E,
110
+ children: i
111
+ }), /* @__PURE__ */ Rt(Nn, {
112
+ className: _.content,
113
+ ownerState: E,
114
+ children: [R, Y]
115
+ }), r && /* @__PURE__ */ ge(Pn, {
116
+ className: _.action,
117
+ ownerState: E,
118
+ children: r
119
+ })]
120
+ }));
121
+ });
122
+ process.env.NODE_ENV !== "production" && (qt.propTypes = {
123
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
124
+ // │ These PropTypes are generated from the TypeScript type definitions. │
125
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
126
+ // └─────────────────────────────────────────────────────────────────────┘
127
+ /**
128
+ * The action to display in the card header.
129
+ */
130
+ action: z.node,
131
+ /**
132
+ * The Avatar element to display.
133
+ */
134
+ avatar: z.node,
135
+ /**
136
+ * @ignore
137
+ */
138
+ children: z.node,
139
+ /**
140
+ * Override or extend the styles applied to the component.
141
+ */
142
+ classes: z.object,
143
+ /**
144
+ * @ignore
145
+ */
146
+ className: z.string,
147
+ /**
148
+ * The component used for the root node.
149
+ * Either a string to use a HTML element or a component.
150
+ */
151
+ component: z.elementType,
152
+ /**
153
+ * If `true`, `subheader` and `title` won't be wrapped by a Typography component.
154
+ * This can be useful to render an alternative Typography variant by wrapping
155
+ * the `title` text, and optional `subheader` text
156
+ * with the Typography component.
157
+ * @default false
158
+ */
159
+ disableTypography: z.bool,
160
+ /**
161
+ * The content of the component.
162
+ */
163
+ subheader: z.node,
164
+ /**
165
+ * These props will be forwarded to the subheader
166
+ * (as long as disableTypography is not `true`).
167
+ */
168
+ subheaderTypographyProps: z.object,
169
+ /**
170
+ * The system prop that allows defining system overrides as well as additional CSS styles.
171
+ */
172
+ sx: z.oneOfType([z.arrayOf(z.oneOfType([z.func, z.object, z.bool])), z.func, z.object]),
173
+ /**
174
+ * The content of the component.
175
+ */
176
+ title: z.node,
177
+ /**
178
+ * These props will be forwarded to the title
179
+ * (as long as disableTypography is not `true`).
180
+ */
181
+ titleTypographyProps: z.object
182
+ });
183
+ var Vt = { exports: {} };
11
184
  /**!
12
185
  * Sortable 1.15.7
13
186
  * @author RubaXa <trash@rubaxa.org>
14
187
  * @author owenm <owen23355@gmail.com>
15
188
  * @license MIT
16
189
  */
17
- function vt(o, e) {
18
- (e == null || e > o.length) && (e = o.length);
19
- for (var t = 0, n = Array(e); t < e; t++) n[t] = o[t];
20
- return n;
190
+ function St(n, e) {
191
+ (e == null || e > n.length) && (e = n.length);
192
+ for (var t = 0, o = Array(e); t < e; t++) o[t] = n[t];
193
+ return o;
21
194
  }
22
- function hn(o) {
23
- if (Array.isArray(o)) return vt(o);
195
+ function Mn(n) {
196
+ if (Array.isArray(n)) return St(n);
24
197
  }
25
- function pn(o, e, t) {
26
- return (e = En(e)) in o ? Object.defineProperty(o, e, {
198
+ function $n(n, e, t) {
199
+ return (e = Bn(e)) in n ? Object.defineProperty(n, e, {
27
200
  value: t,
28
201
  enumerable: !0,
29
202
  configurable: !0,
30
203
  writable: !0
31
- }) : o[e] = t, o;
204
+ }) : n[e] = t, n;
32
205
  }
33
- function oe() {
34
- return oe = Object.assign ? Object.assign.bind() : function(o) {
206
+ function re() {
207
+ return re = Object.assign ? Object.assign.bind() : function(n) {
35
208
  for (var e = 1; e < arguments.length; e++) {
36
209
  var t = arguments[e];
37
- for (var n in t) ({}).hasOwnProperty.call(t, n) && (o[n] = t[n]);
210
+ for (var o in t) ({}).hasOwnProperty.call(t, o) && (n[o] = t[o]);
38
211
  }
39
- return o;
40
- }, oe.apply(null, arguments);
212
+ return n;
213
+ }, re.apply(null, arguments);
41
214
  }
42
- function gn(o) {
43
- if (typeof Symbol < "u" && o[Symbol.iterator] != null || o["@@iterator"] != null) return Array.from(o);
215
+ function Rn(n) {
216
+ if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
44
217
  }
45
- function mn() {
218
+ function Hn() {
46
219
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
47
220
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
48
221
  }
49
- function Pt(o, e) {
50
- var t = Object.keys(o);
222
+ function Lt(n, e) {
223
+ var t = Object.keys(n);
51
224
  if (Object.getOwnPropertySymbols) {
52
- var n = Object.getOwnPropertySymbols(o);
53
- e && (n = n.filter(function(i) {
54
- return Object.getOwnPropertyDescriptor(o, i).enumerable;
55
- })), t.push.apply(t, n);
225
+ var o = Object.getOwnPropertySymbols(n);
226
+ e && (o = o.filter(function(r) {
227
+ return Object.getOwnPropertyDescriptor(n, r).enumerable;
228
+ })), t.push.apply(t, o);
56
229
  }
57
230
  return t;
58
231
  }
59
- function ce(o) {
232
+ function ue(n) {
60
233
  for (var e = 1; e < arguments.length; e++) {
61
234
  var t = arguments[e] != null ? arguments[e] : {};
62
- e % 2 ? Pt(Object(t), !0).forEach(function(n) {
63
- pn(o, n, t[n]);
64
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : Pt(Object(t)).forEach(function(n) {
65
- Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
235
+ e % 2 ? Lt(Object(t), !0).forEach(function(o) {
236
+ $n(n, o, t[o]);
237
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Lt(Object(t)).forEach(function(o) {
238
+ Object.defineProperty(n, o, Object.getOwnPropertyDescriptor(t, o));
66
239
  });
67
240
  }
68
- return o;
241
+ return n;
69
242
  }
70
- function bn(o, e) {
71
- if (o == null) return {};
72
- var t, n, i = vn(o, e);
243
+ function Ln(n, e) {
244
+ if (n == null) return {};
245
+ var t, o, r = jn(n, e);
73
246
  if (Object.getOwnPropertySymbols) {
74
- var r = Object.getOwnPropertySymbols(o);
75
- for (n = 0; n < r.length; n++) t = r[n], e.indexOf(t) === -1 && {}.propertyIsEnumerable.call(o, t) && (i[t] = o[t]);
247
+ var i = Object.getOwnPropertySymbols(n);
248
+ for (o = 0; o < i.length; o++) t = i[o], e.indexOf(t) === -1 && {}.propertyIsEnumerable.call(n, t) && (r[t] = n[t]);
76
249
  }
77
- return i;
250
+ return r;
78
251
  }
79
- function vn(o, e) {
80
- if (o == null) return {};
252
+ function jn(n, e) {
253
+ if (n == null) return {};
81
254
  var t = {};
82
- for (var n in o) if ({}.hasOwnProperty.call(o, n)) {
83
- if (e.indexOf(n) !== -1) continue;
84
- t[n] = o[n];
255
+ for (var o in n) if ({}.hasOwnProperty.call(n, o)) {
256
+ if (e.indexOf(o) !== -1) continue;
257
+ t[o] = n[o];
85
258
  }
86
259
  return t;
87
260
  }
88
- function wn(o) {
89
- return hn(o) || gn(o) || Sn(o) || mn();
261
+ function Fn(n) {
262
+ return Mn(n) || Rn(n) || Xn(n) || Hn();
90
263
  }
91
- function yn(o, e) {
92
- if (typeof o != "object" || !o) return o;
93
- var t = o[Symbol.toPrimitive];
264
+ function kn(n, e) {
265
+ if (typeof n != "object" || !n) return n;
266
+ var t = n[Symbol.toPrimitive];
94
267
  if (t !== void 0) {
95
- var n = t.call(o, e || "default");
96
- if (typeof n != "object") return n;
268
+ var o = t.call(n, e || "default");
269
+ if (typeof o != "object") return o;
97
270
  throw new TypeError("@@toPrimitive must return a primitive value.");
98
271
  }
99
- return (e === "string" ? String : Number)(o);
272
+ return (e === "string" ? String : Number)(n);
100
273
  }
101
- function En(o) {
102
- var e = yn(o, "string");
274
+ function Bn(n) {
275
+ var e = kn(n, "string");
103
276
  return typeof e == "symbol" ? e : e + "";
104
277
  }
105
- function wt(o) {
278
+ function Dt(n) {
106
279
  "@babel/helpers - typeof";
107
- return wt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
280
+ return Dt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
108
281
  return typeof e;
109
282
  } : function(e) {
110
283
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
111
- }, wt(o);
284
+ }, Dt(n);
112
285
  }
113
- function Sn(o, e) {
114
- if (o) {
115
- if (typeof o == "string") return vt(o, e);
116
- var t = {}.toString.call(o).slice(8, -1);
117
- return t === "Object" && o.constructor && (t = o.constructor.name), t === "Map" || t === "Set" ? Array.from(o) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? vt(o, e) : void 0;
286
+ function Xn(n, e) {
287
+ if (n) {
288
+ if (typeof n == "string") return St(n, e);
289
+ var t = {}.toString.call(n).slice(8, -1);
290
+ return t === "Object" && n.constructor && (t = n.constructor.name), t === "Map" || t === "Set" ? Array.from(n) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? St(n, e) : void 0;
118
291
  }
119
292
  }
120
- var Dn = "1.15.7";
121
- function ue(o) {
293
+ var Yn = "1.15.7";
294
+ function de(n) {
122
295
  if (typeof window < "u" && window.navigator)
123
- return !!/* @__PURE__ */ navigator.userAgent.match(o);
296
+ return !!/* @__PURE__ */ navigator.userAgent.match(n);
124
297
  }
125
- var de = ue(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), He = ue(/Edge/i), Mt = ue(/firefox/i), Re = ue(/safari/i) && !ue(/chrome/i) && !ue(/android/i), _t = ue(/iP(ad|od|hone)/i), Gt = ue(/chrome/i) && ue(/android/i), Ut = {
298
+ var fe = de(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ye = de(/Edge/i), jt = de(/firefox/i), je = de(/safari/i) && !de(/chrome/i) && !de(/android/i), It = de(/iP(ad|od|hone)/i), Zt = de(/chrome/i) && de(/android/i), Jt = {
126
299
  capture: !1,
127
300
  passive: !1
128
301
  };
129
- function x(o, e, t) {
130
- o.addEventListener(e, t, !de && Ut);
302
+ function I(n, e, t) {
303
+ n.addEventListener(e, t, !fe && Jt);
131
304
  }
132
- function C(o, e, t) {
133
- o.removeEventListener(e, t, !de && Ut);
305
+ function x(n, e, t) {
306
+ n.removeEventListener(e, t, !fe && Jt);
134
307
  }
135
- function tt(o, e) {
308
+ function rt(n, e) {
136
309
  if (e) {
137
- if (e[0] === ">" && (e = e.substring(1)), o)
310
+ if (e[0] === ">" && (e = e.substring(1)), n)
138
311
  try {
139
- if (o.matches)
140
- return o.matches(e);
141
- if (o.msMatchesSelector)
142
- return o.msMatchesSelector(e);
143
- if (o.webkitMatchesSelector)
144
- return o.webkitMatchesSelector(e);
312
+ if (n.matches)
313
+ return n.matches(e);
314
+ if (n.msMatchesSelector)
315
+ return n.msMatchesSelector(e);
316
+ if (n.webkitMatchesSelector)
317
+ return n.webkitMatchesSelector(e);
145
318
  } catch {
146
319
  return !1;
147
320
  }
148
321
  return !1;
149
322
  }
150
323
  }
151
- function zt(o) {
152
- return o.host && o !== document && o.host.nodeType && o.host !== o ? o.host : o.parentNode;
324
+ function Qt(n) {
325
+ return n.host && n !== document && n.host.nodeType && n.host !== n ? n.host : n.parentNode;
153
326
  }
154
- function Q(o, e, t, n) {
155
- if (o) {
327
+ function ee(n, e, t, o) {
328
+ if (n) {
156
329
  t = t || document;
157
330
  do {
158
- if (e != null && (e[0] === ">" ? o.parentNode === t && tt(o, e) : tt(o, e)) || n && o === t)
159
- return o;
160
- if (o === t) break;
161
- } while (o = zt(o));
331
+ if (e != null && (e[0] === ">" ? n.parentNode === t && rt(n, e) : rt(n, e)) || o && n === t)
332
+ return n;
333
+ if (n === t) break;
334
+ } while (n = Qt(n));
162
335
  }
163
336
  return null;
164
337
  }
165
- var Nt = /\s+/g;
166
- function F(o, e, t) {
167
- if (o && e)
168
- if (o.classList)
169
- o.classList[t ? "add" : "remove"](e);
338
+ var Ft = /\s+/g;
339
+ function j(n, e, t) {
340
+ if (n && e)
341
+ if (n.classList)
342
+ n.classList[t ? "add" : "remove"](e);
170
343
  else {
171
- var n = (" " + o.className + " ").replace(Nt, " ").replace(" " + e + " ", " ");
172
- o.className = (n + (t ? " " + e : "")).replace(Nt, " ");
344
+ var o = (" " + n.className + " ").replace(Ft, " ").replace(" " + e + " ", " ");
345
+ n.className = (o + (t ? " " + e : "")).replace(Ft, " ");
173
346
  }
174
347
  }
175
- function b(o, e, t) {
176
- var n = o && o.style;
177
- if (n) {
348
+ function b(n, e, t) {
349
+ var o = n && n.style;
350
+ if (o) {
178
351
  if (t === void 0)
179
- return document.defaultView && document.defaultView.getComputedStyle ? t = document.defaultView.getComputedStyle(o, "") : o.currentStyle && (t = o.currentStyle), e === void 0 ? t : t[e];
180
- !(e in n) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), n[e] = t + (typeof t == "string" ? "" : "px");
352
+ return document.defaultView && document.defaultView.getComputedStyle ? t = document.defaultView.getComputedStyle(n, "") : n.currentStyle && (t = n.currentStyle), e === void 0 ? t : t[e];
353
+ !(e in o) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), o[e] = t + (typeof t == "string" ? "" : "px");
181
354
  }
182
355
  }
183
- function we(o, e) {
356
+ function Ee(n, e) {
184
357
  var t = "";
185
- if (typeof o == "string")
186
- t = o;
358
+ if (typeof n == "string")
359
+ t = n;
187
360
  else
188
361
  do {
189
- var n = b(o, "transform");
190
- n && n !== "none" && (t = n + " " + t);
191
- } while (!e && (o = o.parentNode));
192
- var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
193
- return i && new i(t);
362
+ var o = b(n, "transform");
363
+ o && o !== "none" && (t = o + " " + t);
364
+ } while (!e && (n = n.parentNode));
365
+ var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
366
+ return r && new r(t);
194
367
  }
195
- function Wt(o, e, t) {
196
- if (o) {
197
- var n = o.getElementsByTagName(e), i = 0, r = n.length;
368
+ function en(n, e, t) {
369
+ if (n) {
370
+ var o = n.getElementsByTagName(e), r = 0, i = o.length;
198
371
  if (t)
199
- for (; i < r; i++)
200
- t(n[i], i);
201
- return n;
372
+ for (; r < i; r++)
373
+ t(o[r], r);
374
+ return o;
202
375
  }
203
376
  return [];
204
377
  }
205
- function se() {
206
- var o = document.scrollingElement;
207
- return o || document.documentElement;
378
+ function ce() {
379
+ var n = document.scrollingElement;
380
+ return n || document.documentElement;
208
381
  }
209
- function $(o, e, t, n, i) {
210
- if (!(!o.getBoundingClientRect && o !== window)) {
211
- var r, a, l, s, c, h, f;
212
- if (o !== window && o.parentNode && o !== se() ? (r = o.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, c = r.right, h = r.height, f = r.width) : (a = 0, l = 0, s = window.innerHeight, c = window.innerWidth, h = window.innerHeight, f = window.innerWidth), (e || t) && o !== window && (i = i || o.parentNode, !de))
382
+ function $(n, e, t, o, r) {
383
+ if (!(!n.getBoundingClientRect && n !== window)) {
384
+ var i, a, s, l, c, p, f;
385
+ if (n !== window && n.parentNode && n !== ce() ? (i = n.getBoundingClientRect(), a = i.top, s = i.left, l = i.bottom, c = i.right, p = i.height, f = i.width) : (a = 0, s = 0, l = window.innerHeight, c = window.innerWidth, p = window.innerHeight, f = window.innerWidth), (e || t) && n !== window && (r = r || n.parentNode, !fe))
213
386
  do
214
- if (i && i.getBoundingClientRect && (b(i, "transform") !== "none" || t && b(i, "position") !== "static")) {
215
- var v = i.getBoundingClientRect();
216
- a -= v.top + parseInt(b(i, "border-top-width")), l -= v.left + parseInt(b(i, "border-left-width")), s = a + r.height, c = l + r.width;
387
+ if (r && r.getBoundingClientRect && (b(r, "transform") !== "none" || t && b(r, "position") !== "static")) {
388
+ var v = r.getBoundingClientRect();
389
+ a -= v.top + parseInt(b(r, "border-top-width")), s -= v.left + parseInt(b(r, "border-left-width")), l = a + i.height, c = s + i.width;
217
390
  break;
218
391
  }
219
- while (i = i.parentNode);
220
- if (n && o !== window) {
221
- var T = we(i || o), D = T && T.a, A = T && T.d;
222
- T && (a /= A, l /= D, f /= D, h /= A, s = a + h, c = l + f);
392
+ while (r = r.parentNode);
393
+ if (o && n !== window) {
394
+ var A = Ee(r || n), E = A && A.a, _ = A && A.d;
395
+ A && (a /= _, s /= E, f /= E, p /= _, l = a + p, c = s + f);
223
396
  }
224
397
  return {
225
398
  top: a,
226
- left: l,
227
- bottom: s,
399
+ left: s,
400
+ bottom: l,
228
401
  right: c,
229
402
  width: f,
230
- height: h
403
+ height: p
231
404
  };
232
405
  }
233
406
  }
234
- function $t(o, e, t) {
235
- for (var n = pe(o, !0), i = $(o)[e]; n; ) {
236
- var r = $(n)[t], a = void 0;
237
- if (a = i >= r, !a) return n;
238
- if (n === se()) break;
239
- n = pe(n, !1);
407
+ function kt(n, e, t) {
408
+ for (var o = me(n, !0), r = $(n)[e]; o; ) {
409
+ var i = $(o)[t], a = void 0;
410
+ if (a = r >= i, !a) return o;
411
+ if (o === ce()) break;
412
+ o = me(o, !1);
240
413
  }
241
414
  return !1;
242
415
  }
243
- function Ce(o, e, t, n) {
244
- for (var i = 0, r = 0, a = o.children; r < a.length; ) {
245
- if (a[r].style.display !== "none" && a[r] !== y.ghost && (n || a[r] !== y.dragged) && Q(a[r], t.draggable, o, !1)) {
246
- if (i === e)
247
- return a[r];
248
- i++;
416
+ function Oe(n, e, t, o) {
417
+ for (var r = 0, i = 0, a = n.children; i < a.length; ) {
418
+ if (a[i].style.display !== "none" && a[i] !== w.ghost && (o || a[i] !== w.dragged) && ee(a[i], t.draggable, n, !1)) {
419
+ if (r === e)
420
+ return a[i];
421
+ r++;
249
422
  }
250
- r++;
423
+ i++;
251
424
  }
252
425
  return null;
253
426
  }
254
- function Ct(o, e) {
255
- for (var t = o.lastElementChild; t && (t === y.ghost || b(t, "display") === "none" || e && !tt(t, e)); )
427
+ function Tt(n, e) {
428
+ for (var t = n.lastElementChild; t && (t === w.ghost || b(t, "display") === "none" || e && !rt(t, e)); )
256
429
  t = t.previousElementSibling;
257
430
  return t || null;
258
431
  }
259
- function H(o, e) {
432
+ function B(n, e) {
260
433
  var t = 0;
261
- if (!o || !o.parentNode)
434
+ if (!n || !n.parentNode)
262
435
  return -1;
263
- for (; o = o.previousElementSibling; )
264
- o.nodeName.toUpperCase() !== "TEMPLATE" && o !== y.clone && (!e || tt(o, e)) && t++;
436
+ for (; n = n.previousElementSibling; )
437
+ n.nodeName.toUpperCase() !== "TEMPLATE" && n !== w.clone && (!e || rt(n, e)) && t++;
265
438
  return t;
266
439
  }
267
- function Rt(o) {
268
- var e = 0, t = 0, n = se();
269
- if (o)
440
+ function Bt(n) {
441
+ var e = 0, t = 0, o = ce();
442
+ if (n)
270
443
  do {
271
- var i = we(o), r = i.a, a = i.d;
272
- e += o.scrollLeft * r, t += o.scrollTop * a;
273
- } while (o !== n && (o = o.parentNode));
444
+ var r = Ee(n), i = r.a, a = r.d;
445
+ e += n.scrollLeft * i, t += n.scrollTop * a;
446
+ } while (n !== o && (n = n.parentNode));
274
447
  return [e, t];
275
448
  }
276
- function _n(o, e) {
277
- for (var t in o)
278
- if (o.hasOwnProperty(t)) {
279
- for (var n in e)
280
- if (e.hasOwnProperty(n) && e[n] === o[t][n]) return Number(t);
449
+ function Un(n, e) {
450
+ for (var t in n)
451
+ if (n.hasOwnProperty(t)) {
452
+ for (var o in e)
453
+ if (e.hasOwnProperty(o) && e[o] === n[t][o]) return Number(t);
281
454
  }
282
455
  return -1;
283
456
  }
284
- function pe(o, e) {
285
- if (!o || !o.getBoundingClientRect) return se();
286
- var t = o, n = !1;
457
+ function me(n, e) {
458
+ if (!n || !n.getBoundingClientRect) return ce();
459
+ var t = n, o = !1;
287
460
  do
288
461
  if (t.clientWidth < t.scrollWidth || t.clientHeight < t.scrollHeight) {
289
- var i = b(t);
290
- if (t.clientWidth < t.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || t.clientHeight < t.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
291
- if (!t.getBoundingClientRect || t === document.body) return se();
292
- if (n || e) return t;
293
- n = !0;
462
+ var r = b(t);
463
+ if (t.clientWidth < t.scrollWidth && (r.overflowX == "auto" || r.overflowX == "scroll") || t.clientHeight < t.scrollHeight && (r.overflowY == "auto" || r.overflowY == "scroll")) {
464
+ if (!t.getBoundingClientRect || t === document.body) return ce();
465
+ if (o || e) return t;
466
+ o = !0;
294
467
  }
295
468
  }
296
469
  while (t = t.parentNode);
297
- return se();
470
+ return ce();
298
471
  }
299
- function Cn(o, e) {
300
- if (o && e)
472
+ function Gn(n, e) {
473
+ if (n && e)
301
474
  for (var t in e)
302
- e.hasOwnProperty(t) && (o[t] = e[t]);
303
- return o;
475
+ e.hasOwnProperty(t) && (n[t] = e[t]);
476
+ return n;
304
477
  }
305
- function lt(o, e) {
306
- return Math.round(o.top) === Math.round(e.top) && Math.round(o.left) === Math.round(e.left) && Math.round(o.height) === Math.round(e.height) && Math.round(o.width) === Math.round(e.width);
478
+ function dt(n, e) {
479
+ return Math.round(n.top) === Math.round(e.top) && Math.round(n.left) === Math.round(e.left) && Math.round(n.height) === Math.round(e.height) && Math.round(n.width) === Math.round(e.width);
307
480
  }
308
- var Le;
309
- function Kt(o, e) {
481
+ var Fe;
482
+ function tn(n, e) {
310
483
  return function() {
311
- if (!Le) {
312
- var t = arguments, n = this;
313
- t.length === 1 ? o.call(n, t[0]) : o.apply(n, t), Le = setTimeout(function() {
314
- Le = void 0;
484
+ if (!Fe) {
485
+ var t = arguments, o = this;
486
+ t.length === 1 ? n.call(o, t[0]) : n.apply(o, t), Fe = setTimeout(function() {
487
+ Fe = void 0;
315
488
  }, e);
316
489
  }
317
490
  };
318
491
  }
319
- function On() {
320
- clearTimeout(Le), Le = void 0;
492
+ function zn() {
493
+ clearTimeout(Fe), Fe = void 0;
321
494
  }
322
- function qt(o, e, t) {
323
- o.scrollLeft += e, o.scrollTop += t;
495
+ function nn(n, e, t) {
496
+ n.scrollLeft += e, n.scrollTop += t;
324
497
  }
325
- function Ot(o) {
498
+ function At(n) {
326
499
  var e = window.Polymer, t = window.jQuery || window.Zepto;
327
- return e && e.dom ? e.dom(o).cloneNode(!0) : t ? t(o).clone(!0)[0] : o.cloneNode(!0);
500
+ return e && e.dom ? e.dom(n).cloneNode(!0) : t ? t(n).clone(!0)[0] : n.cloneNode(!0);
328
501
  }
329
- function Lt(o, e) {
330
- b(o, "position", "absolute"), b(o, "top", e.top), b(o, "left", e.left), b(o, "width", e.width), b(o, "height", e.height);
502
+ function Xt(n, e) {
503
+ b(n, "position", "absolute"), b(n, "top", e.top), b(n, "left", e.left), b(n, "width", e.width), b(n, "height", e.height);
331
504
  }
332
- function st(o) {
333
- b(o, "position", ""), b(o, "top", ""), b(o, "left", ""), b(o, "width", ""), b(o, "height", "");
505
+ function ft(n) {
506
+ b(n, "position", ""), b(n, "top", ""), b(n, "left", ""), b(n, "width", ""), b(n, "height", "");
334
507
  }
335
- function Vt(o, e, t) {
336
- var n = {};
337
- return Array.from(o.children).forEach(function(i) {
338
- var r, a, l, s;
339
- if (!(!Q(i, e.draggable, o, !1) || i.animated || i === t)) {
340
- var c = $(i);
341
- n.left = Math.min((r = n.left) !== null && r !== void 0 ? r : 1 / 0, c.left), n.top = Math.min((a = n.top) !== null && a !== void 0 ? a : 1 / 0, c.top), n.right = Math.max((l = n.right) !== null && l !== void 0 ? l : -1 / 0, c.right), n.bottom = Math.max((s = n.bottom) !== null && s !== void 0 ? s : -1 / 0, c.bottom);
508
+ function on(n, e, t) {
509
+ var o = {};
510
+ return Array.from(n.children).forEach(function(r) {
511
+ var i, a, s, l;
512
+ if (!(!ee(r, e.draggable, n, !1) || r.animated || r === t)) {
513
+ var c = $(r);
514
+ o.left = Math.min((i = o.left) !== null && i !== void 0 ? i : 1 / 0, c.left), o.top = Math.min((a = o.top) !== null && a !== void 0 ? a : 1 / 0, c.top), o.right = Math.max((s = o.right) !== null && s !== void 0 ? s : -1 / 0, c.right), o.bottom = Math.max((l = o.bottom) !== null && l !== void 0 ? l : -1 / 0, c.bottom);
342
515
  }
343
- }), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
516
+ }), o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
344
517
  }
345
- var z = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
346
- function xn() {
347
- var o = [], e;
518
+ var K = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
519
+ function Wn() {
520
+ var n = [], e;
348
521
  return {
349
522
  captureAnimationState: function() {
350
- if (o = [], !!this.options.animation) {
351
- var n = [].slice.call(this.el.children);
352
- n.forEach(function(i) {
353
- if (!(b(i, "display") === "none" || i === y.ghost)) {
354
- o.push({
355
- target: i,
356
- rect: $(i)
523
+ if (n = [], !!this.options.animation) {
524
+ var o = [].slice.call(this.el.children);
525
+ o.forEach(function(r) {
526
+ if (!(b(r, "display") === "none" || r === w.ghost)) {
527
+ n.push({
528
+ target: r,
529
+ rect: $(r)
357
530
  });
358
- var r = ce({}, o[o.length - 1].rect);
359
- if (i.thisAnimationDuration) {
360
- var a = we(i, !0);
361
- a && (r.top -= a.f, r.left -= a.e);
531
+ var i = ue({}, n[n.length - 1].rect);
532
+ if (r.thisAnimationDuration) {
533
+ var a = Ee(r, !0);
534
+ a && (i.top -= a.f, i.left -= a.e);
362
535
  }
363
- i.fromRect = r;
536
+ r.fromRect = i;
364
537
  }
365
538
  });
366
539
  }
367
540
  },
368
- addAnimationState: function(n) {
369
- o.push(n);
541
+ addAnimationState: function(o) {
542
+ n.push(o);
370
543
  },
371
- removeAnimationState: function(n) {
372
- o.splice(_n(o, {
373
- target: n
544
+ removeAnimationState: function(o) {
545
+ n.splice(Un(n, {
546
+ target: o
374
547
  }), 1);
375
548
  },
376
- animateAll: function(n) {
377
- var i = this;
549
+ animateAll: function(o) {
550
+ var r = this;
378
551
  if (!this.options.animation) {
379
- clearTimeout(e), typeof n == "function" && n();
552
+ clearTimeout(e), typeof o == "function" && o();
380
553
  return;
381
554
  }
382
- var r = !1, a = 0;
383
- o.forEach(function(l) {
384
- var s = 0, c = l.target, h = c.fromRect, f = $(c), v = c.prevFromRect, T = c.prevToRect, D = l.rect, A = we(c, !0);
385
- A && (f.top -= A.f, f.left -= A.e), c.toRect = f, c.thisAnimationDuration && lt(v, f) && !lt(h, f) && // Make sure animatingRect is on line between toRect & fromRect
386
- (D.top - f.top) / (D.left - f.left) === (h.top - f.top) / (h.left - f.left) && (s = Tn(D, v, T, i.options)), lt(f, h) || (c.prevFromRect = h, c.prevToRect = f, s || (s = i.options.animation), i.animate(c, D, f, s)), s && (r = !0, a = Math.max(a, s), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
555
+ var i = !1, a = 0;
556
+ n.forEach(function(s) {
557
+ var l = 0, c = s.target, p = c.fromRect, f = $(c), v = c.prevFromRect, A = c.prevToRect, E = s.rect, _ = Ee(c, !0);
558
+ _ && (f.top -= _.f, f.left -= _.e), c.toRect = f, c.thisAnimationDuration && dt(v, f) && !dt(p, f) && // Make sure animatingRect is on line between toRect & fromRect
559
+ (E.top - f.top) / (E.left - f.left) === (p.top - f.top) / (p.left - f.left) && (l = qn(E, v, A, r.options)), dt(f, p) || (c.prevFromRect = p, c.prevToRect = f, l || (l = r.options.animation), r.animate(c, E, f, l)), l && (i = !0, a = Math.max(a, l), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
387
560
  c.animationTime = 0, c.prevFromRect = null, c.fromRect = null, c.prevToRect = null, c.thisAnimationDuration = null;
388
- }, s), c.thisAnimationDuration = s);
389
- }), clearTimeout(e), r ? e = setTimeout(function() {
390
- typeof n == "function" && n();
391
- }, a) : typeof n == "function" && n(), o = [];
561
+ }, l), c.thisAnimationDuration = l);
562
+ }), clearTimeout(e), i ? e = setTimeout(function() {
563
+ typeof o == "function" && o();
564
+ }, a) : typeof o == "function" && o(), n = [];
392
565
  },
393
- animate: function(n, i, r, a) {
566
+ animate: function(o, r, i, a) {
394
567
  if (a) {
395
- b(n, "transition", ""), b(n, "transform", "");
396
- var l = we(this.el), s = l && l.a, c = l && l.d, h = (i.left - r.left) / (s || 1), f = (i.top - r.top) / (c || 1);
397
- n.animatingX = !!h, n.animatingY = !!f, b(n, "transform", "translate3d(" + h + "px," + f + "px,0)"), this.forRepaintDummy = In(n), b(n, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), b(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
398
- b(n, "transition", ""), b(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
568
+ b(o, "transition", ""), b(o, "transform", "");
569
+ var s = Ee(this.el), l = s && s.a, c = s && s.d, p = (r.left - i.left) / (l || 1), f = (r.top - i.top) / (c || 1);
570
+ o.animatingX = !!p, o.animatingY = !!f, b(o, "transform", "translate3d(" + p + "px," + f + "px,0)"), this.forRepaintDummy = Kn(o), b(o, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), b(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
571
+ b(o, "transition", ""), b(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
399
572
  }, a);
400
573
  }
401
574
  }
402
575
  };
403
576
  }
404
- function In(o) {
405
- return o.offsetWidth;
577
+ function Kn(n) {
578
+ return n.offsetWidth;
406
579
  }
407
- function Tn(o, e, t, n) {
408
- return Math.sqrt(Math.pow(e.top - o.top, 2) + Math.pow(e.left - o.left, 2)) / Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) * n.animation;
580
+ function qn(n, e, t, o) {
581
+ return Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) / Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) * o.animation;
409
582
  }
410
- var ye = [], ct = {
583
+ var Se = [], pt = {
411
584
  initializeByDefault: !0
412
- }, Xe = {
585
+ }, Ue = {
413
586
  mount: function(e) {
414
- for (var t in ct)
415
- ct.hasOwnProperty(t) && !(t in e) && (e[t] = ct[t]);
416
- ye.forEach(function(n) {
417
- if (n.pluginName === e.pluginName)
587
+ for (var t in pt)
588
+ pt.hasOwnProperty(t) && !(t in e) && (e[t] = pt[t]);
589
+ Se.forEach(function(o) {
590
+ if (o.pluginName === e.pluginName)
418
591
  throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
419
- }), ye.push(e);
592
+ }), Se.push(e);
420
593
  },
421
- pluginEvent: function(e, t, n) {
422
- var i = this;
423
- this.eventCanceled = !1, n.cancel = function() {
424
- i.eventCanceled = !0;
594
+ pluginEvent: function(e, t, o) {
595
+ var r = this;
596
+ this.eventCanceled = !1, o.cancel = function() {
597
+ r.eventCanceled = !0;
425
598
  };
426
- var r = e + "Global";
427
- ye.forEach(function(a) {
428
- t[a.pluginName] && (t[a.pluginName][r] && t[a.pluginName][r](ce({
599
+ var i = e + "Global";
600
+ Se.forEach(function(a) {
601
+ t[a.pluginName] && (t[a.pluginName][i] && t[a.pluginName][i](ue({
429
602
  sortable: t
430
- }, n)), t.options[a.pluginName] && t[a.pluginName][e] && t[a.pluginName][e](ce({
603
+ }, o)), t.options[a.pluginName] && t[a.pluginName][e] && t[a.pluginName][e](ue({
431
604
  sortable: t
432
- }, n)));
605
+ }, o)));
433
606
  });
434
607
  },
435
- initializePlugins: function(e, t, n, i) {
436
- ye.forEach(function(l) {
437
- var s = l.pluginName;
438
- if (!(!e.options[s] && !l.initializeByDefault)) {
439
- var c = new l(e, t, e.options);
440
- c.sortable = e, c.options = e.options, e[s] = c, oe(n, c.defaults);
608
+ initializePlugins: function(e, t, o, r) {
609
+ Se.forEach(function(s) {
610
+ var l = s.pluginName;
611
+ if (!(!e.options[l] && !s.initializeByDefault)) {
612
+ var c = new s(e, t, e.options);
613
+ c.sortable = e, c.options = e.options, e[l] = c, re(o, c.defaults);
441
614
  }
442
615
  });
443
- for (var r in e.options)
444
- if (e.options.hasOwnProperty(r)) {
445
- var a = this.modifyOption(e, r, e.options[r]);
446
- typeof a < "u" && (e.options[r] = a);
616
+ for (var i in e.options)
617
+ if (e.options.hasOwnProperty(i)) {
618
+ var a = this.modifyOption(e, i, e.options[i]);
619
+ typeof a < "u" && (e.options[i] = a);
447
620
  }
448
621
  },
449
622
  getEventProperties: function(e, t) {
450
- var n = {};
451
- return ye.forEach(function(i) {
452
- typeof i.eventProperties == "function" && oe(n, i.eventProperties.call(t[i.pluginName], e));
453
- }), n;
623
+ var o = {};
624
+ return Se.forEach(function(r) {
625
+ typeof r.eventProperties == "function" && re(o, r.eventProperties.call(t[r.pluginName], e));
626
+ }), o;
454
627
  },
455
- modifyOption: function(e, t, n) {
456
- var i;
457
- return ye.forEach(function(r) {
458
- e[r.pluginName] && r.optionListeners && typeof r.optionListeners[t] == "function" && (i = r.optionListeners[t].call(e[r.pluginName], n));
459
- }), i;
628
+ modifyOption: function(e, t, o) {
629
+ var r;
630
+ return Se.forEach(function(i) {
631
+ e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], o));
632
+ }), r;
460
633
  }
461
634
  };
462
- function Pe(o) {
463
- var e = o.sortable, t = o.rootEl, n = o.name, i = o.targetEl, r = o.cloneEl, a = o.toEl, l = o.fromEl, s = o.oldIndex, c = o.newIndex, h = o.oldDraggableIndex, f = o.newDraggableIndex, v = o.originalEvent, T = o.putSortable, D = o.extraEventProperties;
464
- if (e = e || t && t[z], !!e) {
465
- var A, G = e.options, V = "on" + n.charAt(0).toUpperCase() + n.substr(1);
466
- window.CustomEvent && !de && !He ? A = new CustomEvent(n, {
635
+ function $e(n) {
636
+ var e = n.sortable, t = n.rootEl, o = n.name, r = n.targetEl, i = n.cloneEl, a = n.toEl, s = n.fromEl, l = n.oldIndex, c = n.newIndex, p = n.oldDraggableIndex, f = n.newDraggableIndex, v = n.originalEvent, A = n.putSortable, E = n.extraEventProperties;
637
+ if (e = e || t && t[K], !!e) {
638
+ var _, R = e.options, Y = "on" + o.charAt(0).toUpperCase() + o.substr(1);
639
+ window.CustomEvent && !fe && !Ye ? _ = new CustomEvent(o, {
467
640
  bubbles: !0,
468
641
  cancelable: !0
469
- }) : (A = document.createEvent("Event"), A.initEvent(n, !0, !0)), A.to = a || t, A.from = l || t, A.item = i || t, A.clone = r, A.oldIndex = s, A.newIndex = c, A.oldDraggableIndex = h, A.newDraggableIndex = f, A.originalEvent = v, A.pullMode = T ? T.lastPutMode : void 0;
470
- var I = ce(ce({}, D), Xe.getEventProperties(n, e));
471
- for (var O in I)
472
- A[O] = I[O];
473
- t && t.dispatchEvent(A), G[V] && G[V].call(e, A);
642
+ }) : (_ = document.createEvent("Event"), _.initEvent(o, !0, !0)), _.to = a || t, _.from = s || t, _.item = r || t, _.clone = i, _.oldIndex = l, _.newIndex = c, _.oldDraggableIndex = p, _.newDraggableIndex = f, _.originalEvent = v, _.pullMode = A ? A.lastPutMode : void 0;
643
+ var T = ue(ue({}, E), Ue.getEventProperties(o, e));
644
+ for (var O in T)
645
+ _[O] = T[O];
646
+ t && t.dispatchEvent(_), R[Y] && R[Y].call(e, _);
474
647
  }
475
648
  }
476
- var An = ["evt"], Z = function(e, t) {
477
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = n.evt, r = bn(n, An);
478
- Xe.pluginEvent.bind(y)(e, t, ce({
649
+ var Vn = ["evt"], J = function(e, t) {
650
+ var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = o.evt, i = Ln(o, Vn);
651
+ Ue.pluginEvent.bind(w)(e, t, ue({
479
652
  dragEl: d,
480
- parentEl: j,
481
- ghostEl: S,
482
- rootEl: R,
483
- nextEl: ve,
484
- lastDownEl: Ze,
653
+ parentEl: k,
654
+ ghostEl: D,
655
+ rootEl: H,
656
+ nextEl: we,
657
+ lastDownEl: et,
485
658
  cloneEl: L,
486
659
  cloneHidden: he,
487
- dragStarted: Me,
488
- putSortable: U,
489
- activeSortable: y.active,
490
- originalEvent: i,
491
- oldIndex: _e,
492
- oldDraggableIndex: Fe,
493
- newIndex: te,
494
- newDraggableIndex: fe,
495
- hideGhostForTarget: en,
496
- unhideGhostForTarget: tn,
660
+ dragStarted: Re,
661
+ putSortable: W,
662
+ activeSortable: w.active,
663
+ originalEvent: r,
664
+ oldIndex: xe,
665
+ oldDraggableIndex: ke,
666
+ newIndex: ne,
667
+ newDraggableIndex: pe,
668
+ hideGhostForTarget: ln,
669
+ unhideGhostForTarget: cn,
497
670
  cloneNowHidden: function() {
498
671
  he = !0;
499
672
  },
500
673
  cloneNowShown: function() {
501
674
  he = !1;
502
675
  },
503
- dispatchSortableEvent: function(l) {
504
- q({
676
+ dispatchSortableEvent: function(s) {
677
+ Z({
505
678
  sortable: t,
506
- name: l,
507
- originalEvent: i
679
+ name: s,
680
+ originalEvent: r
508
681
  });
509
682
  }
510
- }, r));
683
+ }, i));
511
684
  };
512
- function q(o) {
513
- Pe(ce({
514
- putSortable: U,
685
+ function Z(n) {
686
+ $e(ue({
687
+ putSortable: W,
515
688
  cloneEl: L,
516
689
  targetEl: d,
517
- rootEl: R,
518
- oldIndex: _e,
519
- oldDraggableIndex: Fe,
520
- newIndex: te,
521
- newDraggableIndex: fe
522
- }, o));
523
- }
524
- var d, j, S, R, ve, Ze, L, he, _e, te, Fe, fe, Ue, U, De = !1, nt = !1, ot = [], me, ae, ut, dt, Ft, kt, Me, Ee, ke, je = !1, ze = !1, Je, W, ft = [], yt = !1, it = [], at = typeof document < "u", We = _t, jt = He || de ? "cssFloat" : "float", Pn = at && !Gt && !_t && "draggable" in document.createElement("div"), Zt = function() {
525
- if (at) {
526
- if (de)
690
+ rootEl: H,
691
+ oldIndex: xe,
692
+ oldDraggableIndex: ke,
693
+ newIndex: ne,
694
+ newDraggableIndex: pe
695
+ }, n));
696
+ }
697
+ var d, k, D, H, we, et, L, he, xe, ne, ke, pe, Ke, W, Ce = !1, it = !1, at = [], ve, se, ht, gt, Yt, Ut, Re, De, Be, Xe = !1, qe = !1, tt, q, mt = [], _t = !1, st = [], ut = typeof document < "u", Ve = It, Gt = Ye || fe ? "cssFloat" : "float", Zn = ut && !Zt && !It && "draggable" in document.createElement("div"), rn = function() {
698
+ if (ut) {
699
+ if (fe)
527
700
  return !1;
528
- var o = document.createElement("x");
529
- return o.style.cssText = "pointer-events:auto", o.style.pointerEvents === "auto";
701
+ var n = document.createElement("x");
702
+ return n.style.cssText = "pointer-events:auto", n.style.pointerEvents === "auto";
530
703
  }
531
- }(), Jt = function(e, t) {
532
- var n = b(e), i = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), r = Ce(e, 0, t), a = Ce(e, 1, t), l = r && b(r), s = a && b(a), c = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + $(r).width, h = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + $(a).width;
533
- if (n.display === "flex")
534
- return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
535
- if (n.display === "grid")
536
- return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
537
- if (r && l.float && l.float !== "none") {
538
- var f = l.float === "left" ? "left" : "right";
539
- return a && (s.clear === "both" || s.clear === f) ? "vertical" : "horizontal";
704
+ }(), an = function(e, t) {
705
+ var o = b(e), r = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), i = Oe(e, 0, t), a = Oe(e, 1, t), s = i && b(i), l = a && b(a), c = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + $(i).width, p = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + $(a).width;
706
+ if (o.display === "flex")
707
+ return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
708
+ if (o.display === "grid")
709
+ return o.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
710
+ if (i && s.float && s.float !== "none") {
711
+ var f = s.float === "left" ? "left" : "right";
712
+ return a && (l.clear === "both" || l.clear === f) ? "vertical" : "horizontal";
540
713
  }
541
- return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || c >= i && n[jt] === "none" || a && n[jt] === "none" && c + h > i) ? "vertical" : "horizontal";
542
- }, Mn = function(e, t, n) {
543
- var i = n ? e.left : e.top, r = n ? e.right : e.bottom, a = n ? e.width : e.height, l = n ? t.left : t.top, s = n ? t.right : t.bottom, c = n ? t.width : t.height;
544
- return i === l || r === s || i + a / 2 === l + c / 2;
545
- }, Nn = function(e, t) {
546
- var n;
547
- return ot.some(function(i) {
548
- var r = i[z].options.emptyInsertThreshold;
549
- if (!(!r || Ct(i))) {
550
- var a = $(i), l = e >= a.left - r && e <= a.right + r, s = t >= a.top - r && t <= a.bottom + r;
551
- if (l && s)
552
- return n = i;
714
+ return i && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || c >= r && o[Gt] === "none" || a && o[Gt] === "none" && c + p > r) ? "vertical" : "horizontal";
715
+ }, Jn = function(e, t, o) {
716
+ var r = o ? e.left : e.top, i = o ? e.right : e.bottom, a = o ? e.width : e.height, s = o ? t.left : t.top, l = o ? t.right : t.bottom, c = o ? t.width : t.height;
717
+ return r === s || i === l || r + a / 2 === s + c / 2;
718
+ }, Qn = function(e, t) {
719
+ var o;
720
+ return at.some(function(r) {
721
+ var i = r[K].options.emptyInsertThreshold;
722
+ if (!(!i || Tt(r))) {
723
+ var a = $(r), s = e >= a.left - i && e <= a.right + i, l = t >= a.top - i && t <= a.bottom + i;
724
+ if (s && l)
725
+ return o = r;
553
726
  }
554
- }), n;
555
- }, Qt = function(e) {
556
- function t(r, a) {
557
- return function(l, s, c, h) {
558
- var f = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
559
- if (r == null && (a || f))
727
+ }), o;
728
+ }, sn = function(e) {
729
+ function t(i, a) {
730
+ return function(s, l, c, p) {
731
+ var f = s.options.group.name && l.options.group.name && s.options.group.name === l.options.group.name;
732
+ if (i == null && (a || f))
560
733
  return !0;
561
- if (r == null || r === !1)
734
+ if (i == null || i === !1)
562
735
  return !1;
563
- if (a && r === "clone")
564
- return r;
565
- if (typeof r == "function")
566
- return t(r(l, s, c, h), a)(l, s, c, h);
567
- var v = (a ? l : s).options.group.name;
568
- return r === !0 || typeof r == "string" && r === v || r.join && r.indexOf(v) > -1;
736
+ if (a && i === "clone")
737
+ return i;
738
+ if (typeof i == "function")
739
+ return t(i(s, l, c, p), a)(s, l, c, p);
740
+ var v = (a ? s : l).options.group.name;
741
+ return i === !0 || typeof i == "string" && i === v || i.join && i.indexOf(v) > -1;
569
742
  };
570
743
  }
571
- var n = {}, i = e.group;
572
- (!i || wt(i) != "object") && (i = {
573
- name: i
574
- }), n.name = i.name, n.checkPull = t(i.pull, !0), n.checkPut = t(i.put), n.revertClone = i.revertClone, e.group = n;
575
- }, en = function() {
576
- !Zt && S && b(S, "display", "none");
577
- }, tn = function() {
578
- !Zt && S && b(S, "display", "");
744
+ var o = {}, r = e.group;
745
+ (!r || Dt(r) != "object") && (r = {
746
+ name: r
747
+ }), o.name = r.name, o.checkPull = t(r.pull, !0), o.checkPut = t(r.put), o.revertClone = r.revertClone, e.group = o;
748
+ }, ln = function() {
749
+ !rn && D && b(D, "display", "none");
750
+ }, cn = function() {
751
+ !rn && D && b(D, "display", "");
579
752
  };
580
- at && !Gt && document.addEventListener("click", function(o) {
581
- if (nt)
582
- return o.preventDefault(), o.stopPropagation && o.stopPropagation(), o.stopImmediatePropagation && o.stopImmediatePropagation(), nt = !1, !1;
753
+ ut && !Zt && document.addEventListener("click", function(n) {
754
+ if (it)
755
+ return n.preventDefault(), n.stopPropagation && n.stopPropagation(), n.stopImmediatePropagation && n.stopImmediatePropagation(), it = !1, !1;
583
756
  }, !0);
584
- var be = function(e) {
757
+ var ye = function(e) {
585
758
  if (d) {
586
759
  e = e.touches ? e.touches[0] : e;
587
- var t = Nn(e.clientX, e.clientY);
760
+ var t = Qn(e.clientX, e.clientY);
588
761
  if (t) {
589
- var n = {};
590
- for (var i in e)
591
- e.hasOwnProperty(i) && (n[i] = e[i]);
592
- n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[z]._onDragOver(n);
762
+ var o = {};
763
+ for (var r in e)
764
+ e.hasOwnProperty(r) && (o[r] = e[r]);
765
+ o.target = o.rootEl = t, o.preventDefault = void 0, o.stopPropagation = void 0, t[K]._onDragOver(o);
593
766
  }
594
767
  }
595
- }, $n = function(e) {
596
- d && d.parentNode[z]._isOutsideThisEl(e.target);
768
+ }, eo = function(e) {
769
+ d && d.parentNode[K]._isOutsideThisEl(e.target);
597
770
  };
598
- function y(o, e) {
599
- if (!(o && o.nodeType && o.nodeType === 1))
600
- throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));
601
- this.el = o, this.options = e = oe({}, e), o[z] = this;
771
+ function w(n, e) {
772
+ if (!(n && n.nodeType && n.nodeType === 1))
773
+ throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));
774
+ this.el = n, this.options = e = re({}, e), n[K] = this;
602
775
  var t = {
603
776
  group: null,
604
777
  sort: !0,
605
778
  disabled: !1,
606
779
  store: null,
607
780
  handle: null,
608
- draggable: /^[uo]l$/i.test(o.nodeName) ? ">li" : ">*",
781
+ draggable: /^[uo]l$/i.test(n.nodeName) ? ">li" : ">*",
609
782
  swapThreshold: 1,
610
783
  // percentage; 0 <= x <= 1
611
784
  invertSwap: !1,
@@ -614,7 +787,7 @@ function y(o, e) {
614
787
  // will be set to same as swapThreshold if default
615
788
  removeCloneOnHide: !0,
616
789
  direction: function() {
617
- return Jt(o, this.options);
790
+ return an(n, this.options);
618
791
  },
619
792
  ghostClass: "sortable-ghost",
620
793
  chosenClass: "sortable-chosen",
@@ -624,8 +797,8 @@ function y(o, e) {
624
797
  preventOnFilter: !0,
625
798
  animation: 0,
626
799
  easing: null,
627
- setData: function(a, l) {
628
- a.setData("Text", l.textContent);
800
+ setData: function(a, s) {
801
+ a.setData("Text", s.textContent);
629
802
  },
630
803
  dropBubble: !1,
631
804
  dragoverBubble: !1,
@@ -642,96 +815,96 @@ function y(o, e) {
642
815
  y: 0
643
816
  },
644
817
  // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
645
- supportPointer: y.supportPointer !== !1 && "PointerEvent" in window && (!Re || _t),
818
+ supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && (!je || It),
646
819
  emptyInsertThreshold: 5
647
820
  };
648
- Xe.initializePlugins(this, o, t);
649
- for (var n in t)
650
- !(n in e) && (e[n] = t[n]);
651
- Qt(e);
652
- for (var i in this)
653
- i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
654
- this.nativeDraggable = e.forceFallback ? !1 : Pn, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? x(o, "pointerdown", this._onTapStart) : (x(o, "mousedown", this._onTapStart), x(o, "touchstart", this._onTapStart)), this.nativeDraggable && (x(o, "dragover", this), x(o, "dragenter", this)), ot.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), oe(this, xn());
655
- }
656
- y.prototype = /** @lends Sortable.prototype */
821
+ Ue.initializePlugins(this, n, t);
822
+ for (var o in t)
823
+ !(o in e) && (e[o] = t[o]);
824
+ sn(e);
825
+ for (var r in this)
826
+ r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
827
+ this.nativeDraggable = e.forceFallback ? !1 : Zn, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? I(n, "pointerdown", this._onTapStart) : (I(n, "mousedown", this._onTapStart), I(n, "touchstart", this._onTapStart)), this.nativeDraggable && (I(n, "dragover", this), I(n, "dragenter", this)), at.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), re(this, Wn());
828
+ }
829
+ w.prototype = /** @lends Sortable.prototype */
657
830
  {
658
- constructor: y,
831
+ constructor: w,
659
832
  _isOutsideThisEl: function(e) {
660
- !this.el.contains(e) && e !== this.el && (Ee = null);
833
+ !this.el.contains(e) && e !== this.el && (De = null);
661
834
  },
662
835
  _getDirection: function(e, t) {
663
836
  return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, d) : this.options.direction;
664
837
  },
665
838
  _onTapStart: function(e) {
666
839
  if (e.cancelable) {
667
- var t = this, n = this.el, i = this.options, r = i.preventOnFilter, a = e.type, l = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (l || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, h = i.filter;
668
- if (Yn(n), !d && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || i.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Re && s && s.tagName.toUpperCase() === "SELECT") && (s = Q(s, i.draggable, n, !1), !(s && s.animated) && Ze !== s)) {
669
- if (_e = H(s), Fe = H(s, i.draggable), typeof h == "function") {
670
- if (h.call(this, e, s, this)) {
671
- q({
840
+ var t = this, o = this.el, r = this.options, i = r.preventOnFilter, a = e.type, s = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, l = (s || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || l, p = r.filter;
841
+ if (lo(o), !d && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && je && l && l.tagName.toUpperCase() === "SELECT") && (l = ee(l, r.draggable, o, !1), !(l && l.animated) && et !== l)) {
842
+ if (xe = B(l), ke = B(l, r.draggable), typeof p == "function") {
843
+ if (p.call(this, e, l, this)) {
844
+ Z({
672
845
  sortable: t,
673
846
  rootEl: c,
674
847
  name: "filter",
675
- targetEl: s,
676
- toEl: n,
677
- fromEl: n
678
- }), Z("filter", t, {
848
+ targetEl: l,
849
+ toEl: o,
850
+ fromEl: o
851
+ }), J("filter", t, {
679
852
  evt: e
680
- }), r && e.preventDefault();
853
+ }), i && e.preventDefault();
681
854
  return;
682
855
  }
683
- } else if (h && (h = h.split(",").some(function(f) {
684
- if (f = Q(c, f.trim(), n, !1), f)
685
- return q({
856
+ } else if (p && (p = p.split(",").some(function(f) {
857
+ if (f = ee(c, f.trim(), o, !1), f)
858
+ return Z({
686
859
  sortable: t,
687
860
  rootEl: f,
688
861
  name: "filter",
689
- targetEl: s,
690
- fromEl: n,
691
- toEl: n
692
- }), Z("filter", t, {
862
+ targetEl: l,
863
+ fromEl: o,
864
+ toEl: o
865
+ }), J("filter", t, {
693
866
  evt: e
694
867
  }), !0;
695
- }), h)) {
696
- r && e.preventDefault();
868
+ }), p)) {
869
+ i && e.preventDefault();
697
870
  return;
698
871
  }
699
- i.handle && !Q(c, i.handle, n, !1) || this._prepareDragStart(e, l, s);
872
+ r.handle && !ee(c, r.handle, o, !1) || this._prepareDragStart(e, s, l);
700
873
  }
701
874
  }
702
875
  },
703
- _prepareDragStart: function(e, t, n) {
704
- var i = this, r = i.el, a = i.options, l = r.ownerDocument, s;
705
- if (n && !d && n.parentNode === r) {
706
- var c = $(n);
707
- if (R = r, d = n, j = d.parentNode, ve = d.nextSibling, Ze = n, Ue = a.group, y.dragged = d, me = {
876
+ _prepareDragStart: function(e, t, o) {
877
+ var r = this, i = r.el, a = r.options, s = i.ownerDocument, l;
878
+ if (o && !d && o.parentNode === i) {
879
+ var c = $(o);
880
+ if (H = i, d = o, k = d.parentNode, we = d.nextSibling, et = o, Ke = a.group, w.dragged = d, ve = {
708
881
  target: d,
709
882
  clientX: (t || e).clientX,
710
883
  clientY: (t || e).clientY
711
- }, Ft = me.clientX - c.left, kt = me.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, d.style["will-change"] = "all", s = function() {
712
- if (Z("delayEnded", i, {
884
+ }, Yt = ve.clientX - c.left, Ut = ve.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, d.style["will-change"] = "all", l = function() {
885
+ if (J("delayEnded", r, {
713
886
  evt: e
714
- }), y.eventCanceled) {
715
- i._onDrop();
887
+ }), w.eventCanceled) {
888
+ r._onDrop();
716
889
  return;
717
890
  }
718
- i._disableDelayedDragEvents(), !Mt && i.nativeDraggable && (d.draggable = !0), i._triggerDragStart(e, t), q({
719
- sortable: i,
891
+ r._disableDelayedDragEvents(), !jt && r.nativeDraggable && (d.draggable = !0), r._triggerDragStart(e, t), Z({
892
+ sortable: r,
720
893
  name: "choose",
721
894
  originalEvent: e
722
- }), F(d, a.chosenClass, !0);
723
- }, a.ignore.split(",").forEach(function(h) {
724
- Wt(d, h.trim(), ht);
725
- }), x(l, "dragover", be), x(l, "mousemove", be), x(l, "touchmove", be), a.supportPointer ? (x(l, "pointerup", i._onDrop), !this.nativeDraggable && x(l, "pointercancel", i._onDrop)) : (x(l, "mouseup", i._onDrop), x(l, "touchend", i._onDrop), x(l, "touchcancel", i._onDrop)), Mt && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), Z("delayStart", this, {
895
+ }), j(d, a.chosenClass, !0);
896
+ }, a.ignore.split(",").forEach(function(p) {
897
+ en(d, p.trim(), bt);
898
+ }), I(s, "dragover", ye), I(s, "mousemove", ye), I(s, "touchmove", ye), a.supportPointer ? (I(s, "pointerup", r._onDrop), !this.nativeDraggable && I(s, "pointercancel", r._onDrop)) : (I(s, "mouseup", r._onDrop), I(s, "touchend", r._onDrop), I(s, "touchcancel", r._onDrop)), jt && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), J("delayStart", this, {
726
899
  evt: e
727
- }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(He || de))) {
728
- if (y.eventCanceled) {
900
+ }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Ye || fe))) {
901
+ if (w.eventCanceled) {
729
902
  this._onDrop();
730
903
  return;
731
904
  }
732
- a.supportPointer ? (x(l, "pointerup", i._disableDelayedDrag), x(l, "pointercancel", i._disableDelayedDrag)) : (x(l, "mouseup", i._disableDelayedDrag), x(l, "touchend", i._disableDelayedDrag), x(l, "touchcancel", i._disableDelayedDrag)), x(l, "mousemove", i._delayedDragTouchMoveHandler), x(l, "touchmove", i._delayedDragTouchMoveHandler), a.supportPointer && x(l, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(s, a.delay);
905
+ a.supportPointer ? (I(s, "pointerup", r._disableDelayedDrag), I(s, "pointercancel", r._disableDelayedDrag)) : (I(s, "mouseup", r._disableDelayedDrag), I(s, "touchend", r._disableDelayedDrag), I(s, "touchcancel", r._disableDelayedDrag)), I(s, "mousemove", r._delayedDragTouchMoveHandler), I(s, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && I(s, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(l, a.delay);
733
906
  } else
734
- s();
907
+ l();
735
908
  }
736
909
  },
737
910
  _delayedDragTouchMoveHandler: function(e) {
@@ -739,28 +912,28 @@ y.prototype = /** @lends Sortable.prototype */
739
912
  Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
740
913
  },
741
914
  _disableDelayedDrag: function() {
742
- d && ht(d), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
915
+ d && bt(d), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
743
916
  },
744
917
  _disableDelayedDragEvents: function() {
745
918
  var e = this.el.ownerDocument;
746
- C(e, "mouseup", this._disableDelayedDrag), C(e, "touchend", this._disableDelayedDrag), C(e, "touchcancel", this._disableDelayedDrag), C(e, "pointerup", this._disableDelayedDrag), C(e, "pointercancel", this._disableDelayedDrag), C(e, "mousemove", this._delayedDragTouchMoveHandler), C(e, "touchmove", this._delayedDragTouchMoveHandler), C(e, "pointermove", this._delayedDragTouchMoveHandler);
919
+ x(e, "mouseup", this._disableDelayedDrag), x(e, "touchend", this._disableDelayedDrag), x(e, "touchcancel", this._disableDelayedDrag), x(e, "pointerup", this._disableDelayedDrag), x(e, "pointercancel", this._disableDelayedDrag), x(e, "mousemove", this._delayedDragTouchMoveHandler), x(e, "touchmove", this._delayedDragTouchMoveHandler), x(e, "pointermove", this._delayedDragTouchMoveHandler);
747
920
  },
748
921
  _triggerDragStart: function(e, t) {
749
- t = t || e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? x(document, "pointermove", this._onTouchMove) : t ? x(document, "touchmove", this._onTouchMove) : x(document, "mousemove", this._onTouchMove) : (x(d, "dragend", this), x(R, "dragstart", this._onDragStart));
922
+ t = t || e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? I(document, "pointermove", this._onTouchMove) : t ? I(document, "touchmove", this._onTouchMove) : I(document, "mousemove", this._onTouchMove) : (I(d, "dragend", this), I(H, "dragstart", this._onDragStart));
750
923
  try {
751
- document.selection ? Qe(function() {
924
+ document.selection ? nt(function() {
752
925
  document.selection.empty();
753
926
  }) : window.getSelection().removeAllRanges();
754
927
  } catch {
755
928
  }
756
929
  },
757
930
  _dragStarted: function(e, t) {
758
- if (De = !1, R && d) {
759
- Z("dragStarted", this, {
931
+ if (Ce = !1, H && d) {
932
+ J("dragStarted", this, {
760
933
  evt: t
761
- }), this.nativeDraggable && x(document, "dragover", $n);
762
- var n = this.options;
763
- !e && F(d, n.dragClass, !1), F(d, n.ghostClass, !0), y.active = this, e && this._appendGhost(), q({
934
+ }), this.nativeDraggable && I(document, "dragover", eo);
935
+ var o = this.options;
936
+ !e && j(d, o.dragClass, !1), j(d, o.ghostClass, !0), w.active = this, e && this._appendGhost(), Z({
764
937
  sortable: this,
765
938
  name: "start",
766
939
  originalEvent: t
@@ -769,230 +942,230 @@ y.prototype = /** @lends Sortable.prototype */
769
942
  this._nulling();
770
943
  },
771
944
  _emulateDragOver: function() {
772
- if (ae) {
773
- this._lastX = ae.clientX, this._lastY = ae.clientY, en();
774
- for (var e = document.elementFromPoint(ae.clientX, ae.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(ae.clientX, ae.clientY), e !== t); )
945
+ if (se) {
946
+ this._lastX = se.clientX, this._lastY = se.clientY, ln();
947
+ for (var e = document.elementFromPoint(se.clientX, se.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(se.clientX, se.clientY), e !== t); )
775
948
  t = e;
776
- if (d.parentNode[z]._isOutsideThisEl(e), t)
949
+ if (d.parentNode[K]._isOutsideThisEl(e), t)
777
950
  do {
778
- if (t[z]) {
779
- var n = void 0;
780
- if (n = t[z]._onDragOver({
781
- clientX: ae.clientX,
782
- clientY: ae.clientY,
951
+ if (t[K]) {
952
+ var o = void 0;
953
+ if (o = t[K]._onDragOver({
954
+ clientX: se.clientX,
955
+ clientY: se.clientY,
783
956
  target: e,
784
957
  rootEl: t
785
- }), n && !this.options.dragoverBubble)
958
+ }), o && !this.options.dragoverBubble)
786
959
  break;
787
960
  }
788
961
  e = t;
789
- } while (t = zt(t));
790
- tn();
962
+ } while (t = Qt(t));
963
+ cn();
791
964
  }
792
965
  },
793
966
  _onTouchMove: function(e) {
794
- if (me) {
795
- var t = this.options, n = t.fallbackTolerance, i = t.fallbackOffset, r = e.touches ? e.touches[0] : e, a = S && we(S, !0), l = S && a && a.a, s = S && a && a.d, c = We && W && Rt(W), h = (r.clientX - me.clientX + i.x) / (l || 1) + (c ? c[0] - ft[0] : 0) / (l || 1), f = (r.clientY - me.clientY + i.y) / (s || 1) + (c ? c[1] - ft[1] : 0) / (s || 1);
796
- if (!y.active && !De) {
797
- if (n && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < n)
967
+ if (ve) {
968
+ var t = this.options, o = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = D && Ee(D, !0), s = D && a && a.a, l = D && a && a.d, c = Ve && q && Bt(q), p = (i.clientX - ve.clientX + r.x) / (s || 1) + (c ? c[0] - mt[0] : 0) / (s || 1), f = (i.clientY - ve.clientY + r.y) / (l || 1) + (c ? c[1] - mt[1] : 0) / (l || 1);
969
+ if (!w.active && !Ce) {
970
+ if (o && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < o)
798
971
  return;
799
972
  this._onDragStart(e, !0);
800
973
  }
801
- if (S) {
802
- a ? (a.e += h - (ut || 0), a.f += f - (dt || 0)) : a = {
974
+ if (D) {
975
+ a ? (a.e += p - (ht || 0), a.f += f - (gt || 0)) : a = {
803
976
  a: 1,
804
977
  b: 0,
805
978
  c: 0,
806
979
  d: 1,
807
- e: h,
980
+ e: p,
808
981
  f
809
982
  };
810
983
  var v = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
811
- b(S, "webkitTransform", v), b(S, "mozTransform", v), b(S, "msTransform", v), b(S, "transform", v), ut = h, dt = f, ae = r;
984
+ b(D, "webkitTransform", v), b(D, "mozTransform", v), b(D, "msTransform", v), b(D, "transform", v), ht = p, gt = f, se = i;
812
985
  }
813
986
  e.cancelable && e.preventDefault();
814
987
  }
815
988
  },
816
989
  _appendGhost: function() {
817
- if (!S) {
818
- var e = this.options.fallbackOnBody ? document.body : R, t = $(d, !0, We, !0, e), n = this.options;
819
- if (We) {
820
- for (W = e; b(W, "position") === "static" && b(W, "transform") === "none" && W !== document; )
821
- W = W.parentNode;
822
- W !== document.body && W !== document.documentElement ? (W === document && (W = se()), t.top += W.scrollTop, t.left += W.scrollLeft) : W = se(), ft = Rt(W);
990
+ if (!D) {
991
+ var e = this.options.fallbackOnBody ? document.body : H, t = $(d, !0, Ve, !0, e), o = this.options;
992
+ if (Ve) {
993
+ for (q = e; b(q, "position") === "static" && b(q, "transform") === "none" && q !== document; )
994
+ q = q.parentNode;
995
+ q !== document.body && q !== document.documentElement ? (q === document && (q = ce()), t.top += q.scrollTop, t.left += q.scrollLeft) : q = ce(), mt = Bt(q);
823
996
  }
824
- S = d.cloneNode(!0), F(S, n.ghostClass, !1), F(S, n.fallbackClass, !0), F(S, n.dragClass, !0), b(S, "transition", ""), b(S, "transform", ""), b(S, "box-sizing", "border-box"), b(S, "margin", 0), b(S, "top", t.top), b(S, "left", t.left), b(S, "width", t.width), b(S, "height", t.height), b(S, "opacity", "0.8"), b(S, "position", We ? "absolute" : "fixed"), b(S, "zIndex", "100000"), b(S, "pointerEvents", "none"), y.ghost = S, e.appendChild(S), b(S, "transform-origin", Ft / parseInt(S.style.width) * 100 + "% " + kt / parseInt(S.style.height) * 100 + "%");
997
+ D = d.cloneNode(!0), j(D, o.ghostClass, !1), j(D, o.fallbackClass, !0), j(D, o.dragClass, !0), b(D, "transition", ""), b(D, "transform", ""), b(D, "box-sizing", "border-box"), b(D, "margin", 0), b(D, "top", t.top), b(D, "left", t.left), b(D, "width", t.width), b(D, "height", t.height), b(D, "opacity", "0.8"), b(D, "position", Ve ? "absolute" : "fixed"), b(D, "zIndex", "100000"), b(D, "pointerEvents", "none"), w.ghost = D, e.appendChild(D), b(D, "transform-origin", Yt / parseInt(D.style.width) * 100 + "% " + Ut / parseInt(D.style.height) * 100 + "%");
825
998
  }
826
999
  },
827
1000
  _onDragStart: function(e, t) {
828
- var n = this, i = e.dataTransfer, r = n.options;
829
- if (Z("dragStart", this, {
1001
+ var o = this, r = e.dataTransfer, i = o.options;
1002
+ if (J("dragStart", this, {
830
1003
  evt: e
831
- }), y.eventCanceled) {
1004
+ }), w.eventCanceled) {
832
1005
  this._onDrop();
833
1006
  return;
834
1007
  }
835
- Z("setupClone", this), y.eventCanceled || (L = Ot(d), L.removeAttribute("id"), L.draggable = !1, L.style["will-change"] = "", this._hideClone(), F(L, this.options.chosenClass, !1), y.clone = L), n.cloneId = Qe(function() {
836
- Z("clone", n), !y.eventCanceled && (n.options.removeCloneOnHide || R.insertBefore(L, d), n._hideClone(), q({
837
- sortable: n,
1008
+ J("setupClone", this), w.eventCanceled || (L = At(d), L.removeAttribute("id"), L.draggable = !1, L.style["will-change"] = "", this._hideClone(), j(L, this.options.chosenClass, !1), w.clone = L), o.cloneId = nt(function() {
1009
+ J("clone", o), !w.eventCanceled && (o.options.removeCloneOnHide || H.insertBefore(L, d), o._hideClone(), Z({
1010
+ sortable: o,
838
1011
  name: "clone"
839
1012
  }));
840
- }), !t && F(d, r.dragClass, !0), t ? (nt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (C(document, "mouseup", n._onDrop), C(document, "touchend", n._onDrop), C(document, "touchcancel", n._onDrop), i && (i.effectAllowed = "move", r.setData && r.setData.call(n, i, d)), x(document, "drop", n), b(d, "transform", "translateZ(0)")), De = !0, n._dragStartId = Qe(n._dragStarted.bind(n, t, e)), x(document, "selectstart", n), Me = !0, window.getSelection().removeAllRanges(), Re && b(document.body, "user-select", "none");
1013
+ }), !t && j(d, i.dragClass, !0), t ? (it = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (x(document, "mouseup", o._onDrop), x(document, "touchend", o._onDrop), x(document, "touchcancel", o._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(o, r, d)), I(document, "drop", o), b(d, "transform", "translateZ(0)")), Ce = !0, o._dragStartId = nt(o._dragStarted.bind(o, t, e)), I(document, "selectstart", o), Re = !0, window.getSelection().removeAllRanges(), je && b(document.body, "user-select", "none");
841
1014
  },
842
1015
  // Returns true - if no further action is needed (either inserted or another condition)
843
1016
  _onDragOver: function(e) {
844
- var t = this.el, n = e.target, i, r, a, l = this.options, s = l.group, c = y.active, h = Ue === s, f = l.sort, v = U || c, T, D = this, A = !1;
845
- if (yt) return;
846
- function G(re, Ye) {
847
- Z(re, D, ce({
1017
+ var t = this.el, o = e.target, r, i, a, s = this.options, l = s.group, c = w.active, p = Ke === l, f = s.sort, v = W || c, A, E = this, _ = !1;
1018
+ if (_t) return;
1019
+ function R(ae, Ge) {
1020
+ J(ae, E, ue({
848
1021
  evt: e,
849
- isOwner: h,
850
- axis: T ? "vertical" : "horizontal",
1022
+ isOwner: p,
1023
+ axis: A ? "vertical" : "horizontal",
851
1024
  revert: a,
852
- dragRect: i,
853
- targetRect: r,
1025
+ dragRect: r,
1026
+ targetRect: i,
854
1027
  canSort: f,
855
1028
  fromSortable: v,
856
- target: n,
857
- completed: I,
858
- onMove: function(xe, Be) {
859
- return Ke(R, t, d, i, xe, $(xe), e, Be);
1029
+ target: o,
1030
+ completed: T,
1031
+ onMove: function(Te, ze) {
1032
+ return Ze(H, t, d, r, Te, $(Te), e, ze);
860
1033
  },
861
1034
  changed: O
862
- }, Ye));
1035
+ }, Ge));
863
1036
  }
864
- function V() {
865
- G("dragOverAnimationCapture"), D.captureAnimationState(), D !== v && v.captureAnimationState();
1037
+ function Y() {
1038
+ R("dragOverAnimationCapture"), E.captureAnimationState(), E !== v && v.captureAnimationState();
866
1039
  }
867
- function I(re) {
868
- return G("dragOverCompleted", {
869
- insertion: re
870
- }), re && (h ? c._hideClone() : c._showClone(D), D !== v && (F(d, U ? U.options.ghostClass : c.options.ghostClass, !1), F(d, l.ghostClass, !0)), U !== D && D !== y.active ? U = D : D === y.active && U && (U = null), v === D && (D._ignoreWhileAnimating = n), D.animateAll(function() {
871
- G("dragOverAnimationComplete"), D._ignoreWhileAnimating = null;
872
- }), D !== v && (v.animateAll(), v._ignoreWhileAnimating = null)), (n === d && !d.animated || n === t && !n.animated) && (Ee = null), !l.dragoverBubble && !e.rootEl && n !== document && (d.parentNode[z]._isOutsideThisEl(e.target), !re && be(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), A = !0;
1040
+ function T(ae) {
1041
+ return R("dragOverCompleted", {
1042
+ insertion: ae
1043
+ }), ae && (p ? c._hideClone() : c._showClone(E), E !== v && (j(d, W ? W.options.ghostClass : c.options.ghostClass, !1), j(d, s.ghostClass, !0)), W !== E && E !== w.active ? W = E : E === w.active && W && (W = null), v === E && (E._ignoreWhileAnimating = o), E.animateAll(function() {
1044
+ R("dragOverAnimationComplete"), E._ignoreWhileAnimating = null;
1045
+ }), E !== v && (v.animateAll(), v._ignoreWhileAnimating = null)), (o === d && !d.animated || o === t && !o.animated) && (De = null), !s.dragoverBubble && !e.rootEl && o !== document && (d.parentNode[K]._isOutsideThisEl(e.target), !ae && ye(e)), !s.dragoverBubble && e.stopPropagation && e.stopPropagation(), _ = !0;
873
1046
  }
874
1047
  function O() {
875
- te = H(d), fe = H(d, l.draggable), q({
876
- sortable: D,
1048
+ ne = B(d), pe = B(d, s.draggable), Z({
1049
+ sortable: E,
877
1050
  name: "change",
878
1051
  toEl: t,
879
- newIndex: te,
880
- newDraggableIndex: fe,
1052
+ newIndex: ne,
1053
+ newDraggableIndex: pe,
881
1054
  originalEvent: e
882
1055
  });
883
1056
  }
884
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Q(n, l.draggable, t, !0), G("dragOver"), y.eventCanceled) return A;
885
- if (d.contains(e.target) || n.animated && n.animatingX && n.animatingY || D._ignoreWhileAnimating === n)
886
- return I(!1);
887
- if (nt = !1, c && !l.disabled && (h ? f || (a = j !== R) : U === this || (this.lastPutMode = Ue.checkPull(this, c, d, e)) && s.checkPut(this, c, d, e))) {
888
- if (T = this._getDirection(e, n) === "vertical", i = $(d), G("dragOverValid"), y.eventCanceled) return A;
1057
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = ee(o, s.draggable, t, !0), R("dragOver"), w.eventCanceled) return _;
1058
+ if (d.contains(e.target) || o.animated && o.animatingX && o.animatingY || E._ignoreWhileAnimating === o)
1059
+ return T(!1);
1060
+ if (it = !1, c && !s.disabled && (p ? f || (a = k !== H) : W === this || (this.lastPutMode = Ke.checkPull(this, c, d, e)) && l.checkPut(this, c, d, e))) {
1061
+ if (A = this._getDirection(e, o) === "vertical", r = $(d), R("dragOverValid"), w.eventCanceled) return _;
889
1062
  if (a)
890
- return j = R, V(), this._hideClone(), G("revert"), y.eventCanceled || (ve ? R.insertBefore(d, ve) : R.appendChild(d)), I(!0);
891
- var X = Ct(t, l.draggable);
892
- if (!X || kn(e, T, this) && !X.animated) {
1063
+ return k = H, Y(), this._hideClone(), R("revert"), w.eventCanceled || (we ? H.insertBefore(d, we) : H.appendChild(d)), T(!0);
1064
+ var X = Tt(t, s.draggable);
1065
+ if (!X || ro(e, A, this) && !X.animated) {
893
1066
  if (X === d)
894
- return I(!1);
895
- if (X && t === e.target && (n = X), n && (r = $(n)), Ke(R, t, d, i, n, r, e, !!n) !== !1)
896
- return V(), X && X.nextSibling ? t.insertBefore(d, X.nextSibling) : t.appendChild(d), j = t, O(), I(!0);
897
- } else if (X && Fn(e, T, this)) {
898
- var ie = Ce(t, 0, l, !0);
1067
+ return T(!1);
1068
+ if (X && t === e.target && (o = X), o && (i = $(o)), Ze(H, t, d, r, o, i, e, !!o) !== !1)
1069
+ return Y(), X && X.nextSibling ? t.insertBefore(d, X.nextSibling) : t.appendChild(d), k = t, O(), T(!0);
1070
+ } else if (X && oo(e, A, this)) {
1071
+ var ie = Oe(t, 0, s, !0);
899
1072
  if (ie === d)
900
- return I(!1);
901
- if (n = ie, r = $(n), Ke(R, t, d, i, n, r, e, !1) !== !1)
902
- return V(), t.insertBefore(d, ie), j = t, O(), I(!0);
903
- } else if (n.parentNode === t) {
904
- r = $(n);
905
- var p = 0, u, m = d.parentNode !== t, g = !Mn(d.animated && d.toRect || i, n.animated && n.toRect || r, T), _ = T ? "top" : "left", w = $t(n, "top", "top") || $t(d, "top", "top"), P = w ? w.scrollTop : void 0;
906
- Ee !== n && (u = r[_], je = !1, ze = !g && l.invertSwap || m), p = jn(e, n, r, T, g ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, ze, Ee === n);
907
- var M;
908
- if (p !== 0) {
909
- var k = H(d);
1073
+ return T(!1);
1074
+ if (o = ie, i = $(o), Ze(H, t, d, r, o, i, e, !1) !== !1)
1075
+ return Y(), t.insertBefore(d, ie), k = t, O(), T(!0);
1076
+ } else if (o.parentNode === t) {
1077
+ i = $(o);
1078
+ var h = 0, u, m = d.parentNode !== t, g = !Jn(d.animated && d.toRect || r, o.animated && o.toRect || i, A), C = A ? "top" : "left", y = kt(o, "top", "top") || kt(d, "top", "top"), P = y ? y.scrollTop : void 0;
1079
+ De !== o && (u = i[C], Xe = !1, qe = !g && s.invertSwap || m), h = io(e, o, i, A, g ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, qe, De === o);
1080
+ var N;
1081
+ if (h !== 0) {
1082
+ var F = B(d);
910
1083
  do
911
- k -= p, M = j.children[k];
912
- while (M && (b(M, "display") === "none" || M === S));
1084
+ F -= h, N = k.children[F];
1085
+ while (N && (b(N, "display") === "none" || N === D));
913
1086
  }
914
- if (p === 0 || M === n)
915
- return I(!1);
916
- Ee = n, ke = p;
917
- var B = n.nextElementSibling, K = !1;
918
- K = p === 1;
919
- var ge = Ke(R, t, d, i, n, r, e, K);
920
- if (ge !== !1)
921
- return (ge === 1 || ge === -1) && (K = ge === 1), yt = !0, setTimeout(Ln, 30), V(), K && !B ? t.appendChild(d) : n.parentNode.insertBefore(d, K ? B : n), w && qt(w, 0, P - w.scrollTop), j = d.parentNode, u !== void 0 && !ze && (Je = Math.abs(u - $(n)[_])), O(), I(!0);
1087
+ if (h === 0 || N === o)
1088
+ return T(!1);
1089
+ De = o, Be = h;
1090
+ var G = o.nextElementSibling, V = !1;
1091
+ V = h === 1;
1092
+ var be = Ze(H, t, d, r, o, i, e, V);
1093
+ if (be !== !1)
1094
+ return (be === 1 || be === -1) && (V = be === 1), _t = !0, setTimeout(no, 30), Y(), V && !G ? t.appendChild(d) : o.parentNode.insertBefore(d, V ? G : o), y && nn(y, 0, P - y.scrollTop), k = d.parentNode, u !== void 0 && !qe && (tt = Math.abs(u - $(o)[C])), O(), T(!0);
922
1095
  }
923
1096
  if (t.contains(d))
924
- return I(!1);
1097
+ return T(!1);
925
1098
  }
926
1099
  return !1;
927
1100
  },
928
1101
  _ignoreWhileAnimating: null,
929
1102
  _offMoveEvents: function() {
930
- C(document, "mousemove", this._onTouchMove), C(document, "touchmove", this._onTouchMove), C(document, "pointermove", this._onTouchMove), C(document, "dragover", be), C(document, "mousemove", be), C(document, "touchmove", be);
1103
+ x(document, "mousemove", this._onTouchMove), x(document, "touchmove", this._onTouchMove), x(document, "pointermove", this._onTouchMove), x(document, "dragover", ye), x(document, "mousemove", ye), x(document, "touchmove", ye);
931
1104
  },
932
1105
  _offUpEvents: function() {
933
1106
  var e = this.el.ownerDocument;
934
- C(e, "mouseup", this._onDrop), C(e, "touchend", this._onDrop), C(e, "pointerup", this._onDrop), C(e, "pointercancel", this._onDrop), C(e, "touchcancel", this._onDrop), C(document, "selectstart", this);
1107
+ x(e, "mouseup", this._onDrop), x(e, "touchend", this._onDrop), x(e, "pointerup", this._onDrop), x(e, "pointercancel", this._onDrop), x(e, "touchcancel", this._onDrop), x(document, "selectstart", this);
935
1108
  },
936
1109
  _onDrop: function(e) {
937
- var t = this.el, n = this.options;
938
- if (te = H(d), fe = H(d, n.draggable), Z("drop", this, {
1110
+ var t = this.el, o = this.options;
1111
+ if (ne = B(d), pe = B(d, o.draggable), J("drop", this, {
939
1112
  evt: e
940
- }), j = d && d.parentNode, te = H(d), fe = H(d, n.draggable), y.eventCanceled) {
1113
+ }), k = d && d.parentNode, ne = B(d), pe = B(d, o.draggable), w.eventCanceled) {
941
1114
  this._nulling();
942
1115
  return;
943
1116
  }
944
- De = !1, ze = !1, je = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Et(this.cloneId), Et(this._dragStartId), this.nativeDraggable && (C(document, "drop", this), C(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Re && b(document.body, "user-select", ""), b(d, "transform", ""), e && (Me && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), S && S.parentNode && S.parentNode.removeChild(S), (R === j || U && U.lastPutMode !== "clone") && L && L.parentNode && L.parentNode.removeChild(L), d && (this.nativeDraggable && C(d, "dragend", this), ht(d), d.style["will-change"] = "", Me && !De && F(d, U ? U.options.ghostClass : this.options.ghostClass, !1), F(d, this.options.chosenClass, !1), q({
1117
+ Ce = !1, qe = !1, Xe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ct(this.cloneId), Ct(this._dragStartId), this.nativeDraggable && (x(document, "drop", this), x(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), je && b(document.body, "user-select", ""), b(d, "transform", ""), e && (Re && (e.cancelable && e.preventDefault(), !o.dropBubble && e.stopPropagation()), D && D.parentNode && D.parentNode.removeChild(D), (H === k || W && W.lastPutMode !== "clone") && L && L.parentNode && L.parentNode.removeChild(L), d && (this.nativeDraggable && x(d, "dragend", this), bt(d), d.style["will-change"] = "", Re && !Ce && j(d, W ? W.options.ghostClass : this.options.ghostClass, !1), j(d, this.options.chosenClass, !1), Z({
945
1118
  sortable: this,
946
1119
  name: "unchoose",
947
- toEl: j,
1120
+ toEl: k,
948
1121
  newIndex: null,
949
1122
  newDraggableIndex: null,
950
1123
  originalEvent: e
951
- }), R !== j ? (te >= 0 && (q({
952
- rootEl: j,
1124
+ }), H !== k ? (ne >= 0 && (Z({
1125
+ rootEl: k,
953
1126
  name: "add",
954
- toEl: j,
955
- fromEl: R,
1127
+ toEl: k,
1128
+ fromEl: H,
956
1129
  originalEvent: e
957
- }), q({
1130
+ }), Z({
958
1131
  sortable: this,
959
1132
  name: "remove",
960
- toEl: j,
1133
+ toEl: k,
961
1134
  originalEvent: e
962
- }), q({
963
- rootEl: j,
1135
+ }), Z({
1136
+ rootEl: k,
964
1137
  name: "sort",
965
- toEl: j,
966
- fromEl: R,
1138
+ toEl: k,
1139
+ fromEl: H,
967
1140
  originalEvent: e
968
- }), q({
1141
+ }), Z({
969
1142
  sortable: this,
970
1143
  name: "sort",
971
- toEl: j,
1144
+ toEl: k,
972
1145
  originalEvent: e
973
- })), U && U.save()) : te !== _e && te >= 0 && (q({
1146
+ })), W && W.save()) : ne !== xe && ne >= 0 && (Z({
974
1147
  sortable: this,
975
1148
  name: "update",
976
- toEl: j,
1149
+ toEl: k,
977
1150
  originalEvent: e
978
- }), q({
1151
+ }), Z({
979
1152
  sortable: this,
980
1153
  name: "sort",
981
- toEl: j,
1154
+ toEl: k,
982
1155
  originalEvent: e
983
- })), y.active && ((te == null || te === -1) && (te = _e, fe = Fe), q({
1156
+ })), w.active && ((ne == null || ne === -1) && (ne = xe, pe = ke), Z({
984
1157
  sortable: this,
985
1158
  name: "end",
986
- toEl: j,
1159
+ toEl: k,
987
1160
  originalEvent: e
988
1161
  }), this.save()))), this._nulling();
989
1162
  },
990
1163
  _nulling: function() {
991
- Z("nulling", this), R = d = j = S = ve = L = Ze = he = me = ae = Me = te = fe = _e = Fe = Ee = ke = U = Ue = y.dragged = y.ghost = y.clone = y.active = null;
1164
+ J("nulling", this), H = d = k = D = we = L = et = he = ve = se = Re = ne = pe = xe = ke = De = Be = W = Ke = w.dragged = w.ghost = w.clone = w.active = null;
992
1165
  var e = this.el;
993
- it.forEach(function(t) {
1166
+ st.forEach(function(t) {
994
1167
  e.contains(t) && (t.checked = !0);
995
- }), it.length = ut = dt = 0;
1168
+ }), st.length = ht = gt = 0;
996
1169
  },
997
1170
  handleEvent: function(e) {
998
1171
  switch (e.type) {
@@ -1002,7 +1175,7 @@ y.prototype = /** @lends Sortable.prototype */
1002
1175
  break;
1003
1176
  case "dragenter":
1004
1177
  case "dragover":
1005
- d && (this._onDragOver(e), Rn(e));
1178
+ d && (this._onDragOver(e), to(e));
1006
1179
  break;
1007
1180
  case "selectstart":
1008
1181
  e.preventDefault();
@@ -1014,8 +1187,8 @@ y.prototype = /** @lends Sortable.prototype */
1014
1187
  * @returns {String[]}
1015
1188
  */
1016
1189
  toArray: function() {
1017
- for (var e = [], t, n = this.el.children, i = 0, r = n.length, a = this.options; i < r; i++)
1018
- t = n[i], Q(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Xn(t));
1190
+ for (var e = [], t, o = this.el.children, r = 0, i = o.length, a = this.options; r < i; r++)
1191
+ t = o[r], ee(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || so(t));
1019
1192
  return e;
1020
1193
  },
1021
1194
  /**
@@ -1023,12 +1196,12 @@ y.prototype = /** @lends Sortable.prototype */
1023
1196
  * @param {String[]} order order of the items
1024
1197
  */
1025
1198
  sort: function(e, t) {
1026
- var n = {}, i = this.el;
1027
- this.toArray().forEach(function(r, a) {
1028
- var l = i.children[a];
1029
- Q(l, this.options.draggable, i, !1) && (n[r] = l);
1030
- }, this), t && this.captureAnimationState(), e.forEach(function(r) {
1031
- n[r] && (i.removeChild(n[r]), i.appendChild(n[r]));
1199
+ var o = {}, r = this.el;
1200
+ this.toArray().forEach(function(i, a) {
1201
+ var s = r.children[a];
1202
+ ee(s, this.options.draggable, r, !1) && (o[i] = s);
1203
+ }, this), t && this.captureAnimationState(), e.forEach(function(i) {
1204
+ o[i] && (r.removeChild(o[i]), r.appendChild(o[i]));
1032
1205
  }), t && this.animateAll();
1033
1206
  },
1034
1207
  /**
@@ -1045,7 +1218,7 @@ y.prototype = /** @lends Sortable.prototype */
1045
1218
  * @returns {HTMLElement|null}
1046
1219
  */
1047
1220
  closest: function(e, t) {
1048
- return Q(e, t || this.options.draggable, this.el, !1);
1221
+ return ee(e, t || this.options.draggable, this.el, !1);
1049
1222
  },
1050
1223
  /**
1051
1224
  * Set/get option
@@ -1054,25 +1227,25 @@ y.prototype = /** @lends Sortable.prototype */
1054
1227
  * @returns {*}
1055
1228
  */
1056
1229
  option: function(e, t) {
1057
- var n = this.options;
1230
+ var o = this.options;
1058
1231
  if (t === void 0)
1059
- return n[e];
1060
- var i = Xe.modifyOption(this, e, t);
1061
- typeof i < "u" ? n[e] = i : n[e] = t, e === "group" && Qt(n);
1232
+ return o[e];
1233
+ var r = Ue.modifyOption(this, e, t);
1234
+ typeof r < "u" ? o[e] = r : o[e] = t, e === "group" && sn(o);
1062
1235
  },
1063
1236
  /**
1064
1237
  * Destroy
1065
1238
  */
1066
1239
  destroy: function() {
1067
- Z("destroy", this);
1240
+ J("destroy", this);
1068
1241
  var e = this.el;
1069
- e[z] = null, C(e, "mousedown", this._onTapStart), C(e, "touchstart", this._onTapStart), C(e, "pointerdown", this._onTapStart), this.nativeDraggable && (C(e, "dragover", this), C(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(t) {
1242
+ e[K] = null, x(e, "mousedown", this._onTapStart), x(e, "touchstart", this._onTapStart), x(e, "pointerdown", this._onTapStart), this.nativeDraggable && (x(e, "dragover", this), x(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(t) {
1070
1243
  t.removeAttribute("draggable");
1071
- }), this._onDrop(), this._disableDelayedDragEvents(), ot.splice(ot.indexOf(this.el), 1), this.el = e = null;
1244
+ }), this._onDrop(), this._disableDelayedDragEvents(), at.splice(at.indexOf(this.el), 1), this.el = e = null;
1072
1245
  },
1073
1246
  _hideClone: function() {
1074
1247
  if (!he) {
1075
- if (Z("hideClone", this), y.eventCanceled) return;
1248
+ if (J("hideClone", this), w.eventCanceled) return;
1076
1249
  b(L, "display", "none"), this.options.removeCloneOnHide && L.parentNode && L.parentNode.removeChild(L), he = !0;
1077
1250
  }
1078
1251
  },
@@ -1082,111 +1255,111 @@ y.prototype = /** @lends Sortable.prototype */
1082
1255
  return;
1083
1256
  }
1084
1257
  if (he) {
1085
- if (Z("showClone", this), y.eventCanceled) return;
1086
- d.parentNode == R && !this.options.group.revertClone ? R.insertBefore(L, d) : ve ? R.insertBefore(L, ve) : R.appendChild(L), this.options.group.revertClone && this.animate(d, L), b(L, "display", ""), he = !1;
1258
+ if (J("showClone", this), w.eventCanceled) return;
1259
+ d.parentNode == H && !this.options.group.revertClone ? H.insertBefore(L, d) : we ? H.insertBefore(L, we) : H.appendChild(L), this.options.group.revertClone && this.animate(d, L), b(L, "display", ""), he = !1;
1087
1260
  }
1088
1261
  }
1089
1262
  };
1090
- function Rn(o) {
1091
- o.dataTransfer && (o.dataTransfer.dropEffect = "move"), o.cancelable && o.preventDefault();
1263
+ function to(n) {
1264
+ n.dataTransfer && (n.dataTransfer.dropEffect = "move"), n.cancelable && n.preventDefault();
1092
1265
  }
1093
- function Ke(o, e, t, n, i, r, a, l) {
1094
- var s, c = o[z], h = c.options.onMove, f;
1095
- return window.CustomEvent && !de && !He ? s = new CustomEvent("move", {
1266
+ function Ze(n, e, t, o, r, i, a, s) {
1267
+ var l, c = n[K], p = c.options.onMove, f;
1268
+ return window.CustomEvent && !fe && !Ye ? l = new CustomEvent("move", {
1096
1269
  bubbles: !0,
1097
1270
  cancelable: !0
1098
- }) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = o, s.dragged = t, s.draggedRect = n, s.related = i || e, s.relatedRect = r || $(e), s.willInsertAfter = l, s.originalEvent = a, o.dispatchEvent(s), h && (f = h.call(c, s, a)), f;
1271
+ }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = e, l.from = n, l.dragged = t, l.draggedRect = o, l.related = r || e, l.relatedRect = i || $(e), l.willInsertAfter = s, l.originalEvent = a, n.dispatchEvent(l), p && (f = p.call(c, l, a)), f;
1099
1272
  }
1100
- function ht(o) {
1101
- o.draggable = !1;
1273
+ function bt(n) {
1274
+ n.draggable = !1;
1102
1275
  }
1103
- function Ln() {
1104
- yt = !1;
1276
+ function no() {
1277
+ _t = !1;
1105
1278
  }
1106
- function Fn(o, e, t) {
1107
- var n = $(Ce(t.el, 0, t.options, !0)), i = Vt(t.el, t.options, S), r = 10;
1108
- return e ? 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;
1279
+ function oo(n, e, t) {
1280
+ var o = $(Oe(t.el, 0, t.options, !0)), r = on(t.el, t.options, D), i = 10;
1281
+ return e ? n.clientX < r.left - i || n.clientY < o.top && n.clientX < o.right : n.clientY < r.top - i || n.clientY < o.bottom && n.clientX < o.left;
1109
1282
  }
1110
- function kn(o, e, t) {
1111
- var n = $(Ct(t.el, t.options.draggable)), i = Vt(t.el, t.options, S), r = 10;
1112
- return e ? 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;
1283
+ function ro(n, e, t) {
1284
+ var o = $(Tt(t.el, t.options.draggable)), r = on(t.el, t.options, D), i = 10;
1285
+ return e ? n.clientX > r.right + i || n.clientY > o.bottom && n.clientX > o.left : n.clientY > r.bottom + i || n.clientX > o.right && n.clientY > o.top;
1113
1286
  }
1114
- function jn(o, e, t, n, i, r, a, l) {
1115
- var s = n ? o.clientY : o.clientX, c = n ? t.height : t.width, h = n ? t.top : t.left, f = n ? t.bottom : t.right, v = !1;
1287
+ function io(n, e, t, o, r, i, a, s) {
1288
+ var l = o ? n.clientY : n.clientX, c = o ? t.height : t.width, p = o ? t.top : t.left, f = o ? t.bottom : t.right, v = !1;
1116
1289
  if (!a) {
1117
- if (l && Je < c * i) {
1118
- if (!je && (ke === 1 ? s > h + c * r / 2 : s < f - c * r / 2) && (je = !0), je)
1290
+ if (s && tt < c * r) {
1291
+ if (!Xe && (Be === 1 ? l > p + c * i / 2 : l < f - c * i / 2) && (Xe = !0), Xe)
1119
1292
  v = !0;
1120
- else if (ke === 1 ? s < h + Je : s > f - Je)
1121
- return -ke;
1122
- } else if (s > h + c * (1 - i) / 2 && s < f - c * (1 - i) / 2)
1123
- return Hn(e);
1293
+ else if (Be === 1 ? l < p + tt : l > f - tt)
1294
+ return -Be;
1295
+ } else if (l > p + c * (1 - r) / 2 && l < f - c * (1 - r) / 2)
1296
+ return ao(e);
1124
1297
  }
1125
- return v = v || a, v && (s < h + c * r / 2 || s > f - c * r / 2) ? s > h + c / 2 ? 1 : -1 : 0;
1298
+ return v = v || a, v && (l < p + c * i / 2 || l > f - c * i / 2) ? l > p + c / 2 ? 1 : -1 : 0;
1126
1299
  }
1127
- function Hn(o) {
1128
- return H(d) < H(o) ? 1 : -1;
1300
+ function ao(n) {
1301
+ return B(d) < B(n) ? 1 : -1;
1129
1302
  }
1130
- function Xn(o) {
1131
- for (var e = o.tagName + o.className + o.src + o.href + o.textContent, t = e.length, n = 0; t--; )
1132
- n += e.charCodeAt(t);
1133
- return n.toString(36);
1303
+ function so(n) {
1304
+ for (var e = n.tagName + n.className + n.src + n.href + n.textContent, t = e.length, o = 0; t--; )
1305
+ o += e.charCodeAt(t);
1306
+ return o.toString(36);
1134
1307
  }
1135
- function Yn(o) {
1136
- it.length = 0;
1137
- for (var e = o.getElementsByTagName("input"), t = e.length; t--; ) {
1138
- var n = e[t];
1139
- n.checked && it.push(n);
1308
+ function lo(n) {
1309
+ st.length = 0;
1310
+ for (var e = n.getElementsByTagName("input"), t = e.length; t--; ) {
1311
+ var o = e[t];
1312
+ o.checked && st.push(o);
1140
1313
  }
1141
1314
  }
1142
- function Qe(o) {
1143
- return setTimeout(o, 0);
1315
+ function nt(n) {
1316
+ return setTimeout(n, 0);
1144
1317
  }
1145
- function Et(o) {
1146
- return clearTimeout(o);
1318
+ function Ct(n) {
1319
+ return clearTimeout(n);
1147
1320
  }
1148
- at && x(document, "touchmove", function(o) {
1149
- (y.active || De) && o.cancelable && o.preventDefault();
1321
+ ut && I(document, "touchmove", function(n) {
1322
+ (w.active || Ce) && n.cancelable && n.preventDefault();
1150
1323
  });
1151
- y.utils = {
1152
- on: x,
1153
- off: C,
1324
+ w.utils = {
1325
+ on: I,
1326
+ off: x,
1154
1327
  css: b,
1155
- find: Wt,
1328
+ find: en,
1156
1329
  is: function(e, t) {
1157
- return !!Q(e, t, e, !1);
1330
+ return !!ee(e, t, e, !1);
1158
1331
  },
1159
- extend: Cn,
1160
- throttle: Kt,
1161
- closest: Q,
1162
- toggleClass: F,
1163
- clone: Ot,
1164
- index: H,
1165
- nextTick: Qe,
1166
- cancelNextTick: Et,
1167
- detectDirection: Jt,
1168
- getChild: Ce,
1169
- expando: z
1332
+ extend: Gn,
1333
+ throttle: tn,
1334
+ closest: ee,
1335
+ toggleClass: j,
1336
+ clone: At,
1337
+ index: B,
1338
+ nextTick: nt,
1339
+ cancelNextTick: Ct,
1340
+ detectDirection: an,
1341
+ getChild: Oe,
1342
+ expando: K
1170
1343
  };
1171
- y.get = function(o) {
1172
- return o[z];
1344
+ w.get = function(n) {
1345
+ return n[K];
1173
1346
  };
1174
- y.mount = function() {
1175
- for (var o = arguments.length, e = new Array(o), t = 0; t < o; t++)
1347
+ w.mount = function() {
1348
+ for (var n = arguments.length, e = new Array(n), t = 0; t < n; t++)
1176
1349
  e[t] = arguments[t];
1177
- e[0].constructor === Array && (e = e[0]), e.forEach(function(n) {
1178
- if (!n.prototype || !n.prototype.constructor)
1179
- throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
1180
- n.utils && (y.utils = ce(ce({}, y.utils), n.utils)), Xe.mount(n);
1350
+ e[0].constructor === Array && (e = e[0]), e.forEach(function(o) {
1351
+ if (!o.prototype || !o.prototype.constructor)
1352
+ throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
1353
+ o.utils && (w.utils = ue(ue({}, w.utils), o.utils)), Ue.mount(o);
1181
1354
  });
1182
1355
  };
1183
- y.create = function(o, e) {
1184
- return new y(o, e);
1356
+ w.create = function(n, e) {
1357
+ return new w(n, e);
1185
1358
  };
1186
- y.version = Dn;
1187
- var Y = [], Ne, St, Dt = !1, pt, gt, rt, $e;
1188
- function Bn() {
1189
- function o() {
1359
+ w.version = Yn;
1360
+ var U = [], He, xt, Ot = !1, vt, yt, lt, Le;
1361
+ function co() {
1362
+ function n() {
1190
1363
  this.defaults = {
1191
1364
  scroll: !0,
1192
1365
  forceAutoScrollFallback: !1,
@@ -1197,380 +1370,380 @@ function Bn() {
1197
1370
  for (var e in this)
1198
1371
  e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
1199
1372
  }
1200
- return o.prototype = {
1373
+ return n.prototype = {
1201
1374
  dragStarted: function(t) {
1202
- var n = t.originalEvent;
1203
- this.sortable.nativeDraggable ? x(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? x(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? x(document, "touchmove", this._handleFallbackAutoScroll) : x(document, "mousemove", this._handleFallbackAutoScroll);
1375
+ var o = t.originalEvent;
1376
+ this.sortable.nativeDraggable ? I(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? I(document, "pointermove", this._handleFallbackAutoScroll) : o.touches ? I(document, "touchmove", this._handleFallbackAutoScroll) : I(document, "mousemove", this._handleFallbackAutoScroll);
1204
1377
  },
1205
1378
  dragOverCompleted: function(t) {
1206
- var n = t.originalEvent;
1207
- !this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
1379
+ var o = t.originalEvent;
1380
+ !this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
1208
1381
  },
1209
1382
  drop: function() {
1210
- this.sortable.nativeDraggable ? C(document, "dragover", this._handleAutoScroll) : (C(document, "pointermove", this._handleFallbackAutoScroll), C(document, "touchmove", this._handleFallbackAutoScroll), C(document, "mousemove", this._handleFallbackAutoScroll)), Ht(), et(), On();
1383
+ this.sortable.nativeDraggable ? x(document, "dragover", this._handleAutoScroll) : (x(document, "pointermove", this._handleFallbackAutoScroll), x(document, "touchmove", this._handleFallbackAutoScroll), x(document, "mousemove", this._handleFallbackAutoScroll)), zt(), ot(), zn();
1211
1384
  },
1212
1385
  nulling: function() {
1213
- rt = St = Ne = Dt = $e = pt = gt = null, Y.length = 0;
1386
+ lt = xt = He = Ot = Le = vt = yt = null, U.length = 0;
1214
1387
  },
1215
1388
  _handleFallbackAutoScroll: function(t) {
1216
1389
  this._handleAutoScroll(t, !0);
1217
1390
  },
1218
- _handleAutoScroll: function(t, n) {
1219
- var i = this, r = (t.touches ? t.touches[0] : t).clientX, a = (t.touches ? t.touches[0] : t).clientY, l = document.elementFromPoint(r, a);
1220
- if (rt = t, n || this.options.forceAutoScrollFallback || He || de || Re) {
1221
- mt(t, this.options, l, n);
1222
- var s = pe(l, !0);
1223
- Dt && (!$e || r !== pt || a !== gt) && ($e && Ht(), $e = setInterval(function() {
1224
- var c = pe(document.elementFromPoint(r, a), !0);
1225
- c !== s && (s = c, et()), mt(t, i.options, c, n);
1226
- }, 10), pt = r, gt = a);
1391
+ _handleAutoScroll: function(t, o) {
1392
+ var r = this, i = (t.touches ? t.touches[0] : t).clientX, a = (t.touches ? t.touches[0] : t).clientY, s = document.elementFromPoint(i, a);
1393
+ if (lt = t, o || this.options.forceAutoScrollFallback || Ye || fe || je) {
1394
+ wt(t, this.options, s, o);
1395
+ var l = me(s, !0);
1396
+ Ot && (!Le || i !== vt || a !== yt) && (Le && zt(), Le = setInterval(function() {
1397
+ var c = me(document.elementFromPoint(i, a), !0);
1398
+ c !== l && (l = c, ot()), wt(t, r.options, c, o);
1399
+ }, 10), vt = i, yt = a);
1227
1400
  } else {
1228
- if (!this.options.bubbleScroll || pe(l, !0) === se()) {
1229
- et();
1401
+ if (!this.options.bubbleScroll || me(s, !0) === ce()) {
1402
+ ot();
1230
1403
  return;
1231
1404
  }
1232
- mt(t, this.options, pe(l, !1), !1);
1405
+ wt(t, this.options, me(s, !1), !1);
1233
1406
  }
1234
1407
  }
1235
- }, oe(o, {
1408
+ }, re(n, {
1236
1409
  pluginName: "scroll",
1237
1410
  initializeByDefault: !0
1238
1411
  });
1239
1412
  }
1240
- function et() {
1241
- Y.forEach(function(o) {
1242
- clearInterval(o.pid);
1243
- }), Y = [];
1413
+ function ot() {
1414
+ U.forEach(function(n) {
1415
+ clearInterval(n.pid);
1416
+ }), U = [];
1244
1417
  }
1245
- function Ht() {
1246
- clearInterval($e);
1418
+ function zt() {
1419
+ clearInterval(Le);
1247
1420
  }
1248
- var mt = Kt(function(o, e, t, n) {
1421
+ var wt = tn(function(n, e, t, o) {
1249
1422
  if (e.scroll) {
1250
- var i = (o.touches ? o.touches[0] : o).clientX, r = (o.touches ? o.touches[0] : o).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = se(), c = !1, h;
1251
- St !== t && (St = t, et(), Ne = e.scroll, h = e.scrollFn, Ne === !0 && (Ne = pe(t, !0)));
1252
- var f = 0, v = Ne;
1423
+ var r = (n.touches ? n.touches[0] : n).clientX, i = (n.touches ? n.touches[0] : n).clientY, a = e.scrollSensitivity, s = e.scrollSpeed, l = ce(), c = !1, p;
1424
+ xt !== t && (xt = t, ot(), He = e.scroll, p = e.scrollFn, He === !0 && (He = me(t, !0)));
1425
+ var f = 0, v = He;
1253
1426
  do {
1254
- var T = v, D = $(T), A = D.top, G = D.bottom, V = D.left, I = D.right, O = D.width, X = D.height, ie = void 0, p = void 0, u = T.scrollWidth, m = T.scrollHeight, g = b(T), _ = T.scrollLeft, w = T.scrollTop;
1255
- T === s ? (ie = O < u && (g.overflowX === "auto" || g.overflowX === "scroll" || g.overflowX === "visible"), p = X < m && (g.overflowY === "auto" || g.overflowY === "scroll" || g.overflowY === "visible")) : (ie = O < u && (g.overflowX === "auto" || g.overflowX === "scroll"), p = X < m && (g.overflowY === "auto" || g.overflowY === "scroll"));
1256
- var P = ie && (Math.abs(I - i) <= a && _ + O < u) - (Math.abs(V - i) <= a && !!_), M = p && (Math.abs(G - r) <= a && w + X < m) - (Math.abs(A - r) <= a && !!w);
1257
- if (!Y[f])
1258
- for (var k = 0; k <= f; k++)
1259
- Y[k] || (Y[k] = {});
1260
- (Y[f].vx != P || Y[f].vy != M || Y[f].el !== T) && (Y[f].el = T, Y[f].vx = P, Y[f].vy = M, clearInterval(Y[f].pid), (P != 0 || M != 0) && (c = !0, Y[f].pid = setInterval((function() {
1261
- n && this.layer === 0 && y.active._onTouchMove(rt);
1262
- var B = Y[this.layer].vy ? Y[this.layer].vy * l : 0, K = Y[this.layer].vx ? Y[this.layer].vx * l : 0;
1263
- typeof h == "function" && h.call(y.dragged.parentNode[z], K, B, o, rt, Y[this.layer].el) !== "continue" || qt(Y[this.layer].el, K, B);
1427
+ var A = v, E = $(A), _ = E.top, R = E.bottom, Y = E.left, T = E.right, O = E.width, X = E.height, ie = void 0, h = void 0, u = A.scrollWidth, m = A.scrollHeight, g = b(A), C = A.scrollLeft, y = A.scrollTop;
1428
+ A === l ? (ie = O < u && (g.overflowX === "auto" || g.overflowX === "scroll" || g.overflowX === "visible"), h = X < m && (g.overflowY === "auto" || g.overflowY === "scroll" || g.overflowY === "visible")) : (ie = O < u && (g.overflowX === "auto" || g.overflowX === "scroll"), h = X < m && (g.overflowY === "auto" || g.overflowY === "scroll"));
1429
+ var P = ie && (Math.abs(T - r) <= a && C + O < u) - (Math.abs(Y - r) <= a && !!C), N = h && (Math.abs(R - i) <= a && y + X < m) - (Math.abs(_ - i) <= a && !!y);
1430
+ if (!U[f])
1431
+ for (var F = 0; F <= f; F++)
1432
+ U[F] || (U[F] = {});
1433
+ (U[f].vx != P || U[f].vy != N || U[f].el !== A) && (U[f].el = A, U[f].vx = P, U[f].vy = N, clearInterval(U[f].pid), (P != 0 || N != 0) && (c = !0, U[f].pid = setInterval((function() {
1434
+ o && this.layer === 0 && w.active._onTouchMove(lt);
1435
+ var G = U[this.layer].vy ? U[this.layer].vy * s : 0, V = U[this.layer].vx ? U[this.layer].vx * s : 0;
1436
+ typeof p == "function" && p.call(w.dragged.parentNode[K], V, G, n, lt, U[this.layer].el) !== "continue" || nn(U[this.layer].el, V, G);
1264
1437
  }).bind({
1265
1438
  layer: f
1266
1439
  }), 24))), f++;
1267
- } while (e.bubbleScroll && v !== s && (v = pe(v, !1)));
1268
- Dt = c;
1440
+ } while (e.bubbleScroll && v !== l && (v = me(v, !1)));
1441
+ Ot = c;
1269
1442
  }
1270
- }, 30), nn = function(e) {
1271
- var t = e.originalEvent, n = e.putSortable, i = e.dragEl, r = e.activeSortable, a = e.dispatchSortableEvent, l = e.hideGhostForTarget, s = e.unhideGhostForTarget;
1443
+ }, 30), un = function(e) {
1444
+ var t = e.originalEvent, o = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, s = e.hideGhostForTarget, l = e.unhideGhostForTarget;
1272
1445
  if (t) {
1273
- var c = n || r;
1274
- l();
1275
- var h = t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t, f = document.elementFromPoint(h.clientX, h.clientY);
1276
- s(), c && !c.el.contains(f) && (a("spill"), this.onSpill({
1277
- dragEl: i,
1278
- putSortable: n
1446
+ var c = o || i;
1447
+ s();
1448
+ var p = t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t, f = document.elementFromPoint(p.clientX, p.clientY);
1449
+ l(), c && !c.el.contains(f) && (a("spill"), this.onSpill({
1450
+ dragEl: r,
1451
+ putSortable: o
1279
1452
  }));
1280
1453
  }
1281
1454
  };
1282
- function xt() {
1455
+ function Pt() {
1283
1456
  }
1284
- xt.prototype = {
1457
+ Pt.prototype = {
1285
1458
  startIndex: null,
1286
1459
  dragStart: function(e) {
1287
1460
  var t = e.oldDraggableIndex;
1288
1461
  this.startIndex = t;
1289
1462
  },
1290
1463
  onSpill: function(e) {
1291
- var t = e.dragEl, n = e.putSortable;
1292
- this.sortable.captureAnimationState(), n && n.captureAnimationState();
1293
- var i = Ce(this.sortable.el, this.startIndex, this.options);
1294
- i ? this.sortable.el.insertBefore(t, i) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
1464
+ var t = e.dragEl, o = e.putSortable;
1465
+ this.sortable.captureAnimationState(), o && o.captureAnimationState();
1466
+ var r = Oe(this.sortable.el, this.startIndex, this.options);
1467
+ r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), o && o.animateAll();
1295
1468
  },
1296
- drop: nn
1469
+ drop: un
1297
1470
  };
1298
- oe(xt, {
1471
+ re(Pt, {
1299
1472
  pluginName: "revertOnSpill"
1300
1473
  });
1301
- function It() {
1474
+ function Nt() {
1302
1475
  }
1303
- It.prototype = {
1476
+ Nt.prototype = {
1304
1477
  onSpill: function(e) {
1305
- var t = e.dragEl, n = e.putSortable, i = n || this.sortable;
1306
- i.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), i.animateAll();
1478
+ var t = e.dragEl, o = e.putSortable, r = o || this.sortable;
1479
+ r.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), r.animateAll();
1307
1480
  },
1308
- drop: nn
1481
+ drop: un
1309
1482
  };
1310
- oe(It, {
1483
+ re(Nt, {
1311
1484
  pluginName: "removeOnSpill"
1312
1485
  });
1313
- var ne;
1314
- function Gn() {
1315
- function o() {
1486
+ var oe;
1487
+ function uo() {
1488
+ function n() {
1316
1489
  this.defaults = {
1317
1490
  swapClass: "sortable-swap-highlight"
1318
1491
  };
1319
1492
  }
1320
- return o.prototype = {
1493
+ return n.prototype = {
1321
1494
  dragStart: function(t) {
1322
- var n = t.dragEl;
1323
- ne = n;
1495
+ var o = t.dragEl;
1496
+ oe = o;
1324
1497
  },
1325
1498
  dragOverValid: function(t) {
1326
- var n = t.completed, i = t.target, r = t.onMove, a = t.activeSortable, l = t.changed, s = t.cancel;
1499
+ var o = t.completed, r = t.target, i = t.onMove, a = t.activeSortable, s = t.changed, l = t.cancel;
1327
1500
  if (a.options.swap) {
1328
- var c = this.sortable.el, h = this.options;
1329
- if (i && i !== c) {
1330
- var f = ne;
1331
- r(i) !== !1 ? (F(i, h.swapClass, !0), ne = i) : ne = null, f && f !== ne && F(f, h.swapClass, !1);
1501
+ var c = this.sortable.el, p = this.options;
1502
+ if (r && r !== c) {
1503
+ var f = oe;
1504
+ i(r) !== !1 ? (j(r, p.swapClass, !0), oe = r) : oe = null, f && f !== oe && j(f, p.swapClass, !1);
1332
1505
  }
1333
- l(), n(!0), s();
1506
+ s(), o(!0), l();
1334
1507
  }
1335
1508
  },
1336
1509
  drop: function(t) {
1337
- var n = t.activeSortable, i = t.putSortable, r = t.dragEl, a = i || this.sortable, l = this.options;
1338
- ne && F(ne, l.swapClass, !1), ne && (l.swap || i && i.options.swap) && r !== ne && (a.captureAnimationState(), a !== n && n.captureAnimationState(), Un(r, ne), a.animateAll(), a !== n && n.animateAll());
1510
+ var o = t.activeSortable, r = t.putSortable, i = t.dragEl, a = r || this.sortable, s = this.options;
1511
+ oe && j(oe, s.swapClass, !1), oe && (s.swap || r && r.options.swap) && i !== oe && (a.captureAnimationState(), a !== o && o.captureAnimationState(), fo(i, oe), a.animateAll(), a !== o && o.animateAll());
1339
1512
  },
1340
1513
  nulling: function() {
1341
- ne = null;
1514
+ oe = null;
1342
1515
  }
1343
- }, oe(o, {
1516
+ }, re(n, {
1344
1517
  pluginName: "swap",
1345
1518
  eventProperties: function() {
1346
1519
  return {
1347
- swapItem: ne
1520
+ swapItem: oe
1348
1521
  };
1349
1522
  }
1350
1523
  });
1351
1524
  }
1352
- function Un(o, e) {
1353
- var t = o.parentNode, n = e.parentNode, i, r;
1354
- !t || !n || t.isEqualNode(e) || n.isEqualNode(o) || (i = H(o), r = H(e), t.isEqualNode(n) && i < r && r++, t.insertBefore(e, t.children[i]), n.insertBefore(o, n.children[r]));
1525
+ function fo(n, e) {
1526
+ var t = n.parentNode, o = e.parentNode, r, i;
1527
+ !t || !o || t.isEqualNode(e) || o.isEqualNode(n) || (r = B(n), i = B(e), t.isEqualNode(o) && r < i && i++, t.insertBefore(e, t.children[r]), o.insertBefore(n, o.children[i]));
1355
1528
  }
1356
- var E = [], ee = [], Ie, le, Te = !1, J = !1, Se = !1, N, Ae, qe;
1357
- function zn() {
1358
- function o(e) {
1529
+ var S = [], te = [], Ae, le, Pe = !1, Q = !1, _e = !1, M, Ne, Je;
1530
+ function po() {
1531
+ function n(e) {
1359
1532
  for (var t in this)
1360
1533
  t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
1361
- e.options.avoidImplicitDeselect || (e.options.supportPointer ? x(document, "pointerup", this._deselectMultiDrag) : (x(document, "mouseup", this._deselectMultiDrag), x(document, "touchend", this._deselectMultiDrag))), x(document, "keydown", this._checkKeyDown), x(document, "keyup", this._checkKeyUp), this.defaults = {
1534
+ e.options.avoidImplicitDeselect || (e.options.supportPointer ? I(document, "pointerup", this._deselectMultiDrag) : (I(document, "mouseup", this._deselectMultiDrag), I(document, "touchend", this._deselectMultiDrag))), I(document, "keydown", this._checkKeyDown), I(document, "keyup", this._checkKeyUp), this.defaults = {
1362
1535
  selectedClass: "sortable-selected",
1363
1536
  multiDragKey: null,
1364
1537
  avoidImplicitDeselect: !1,
1365
- setData: function(i, r) {
1538
+ setData: function(r, i) {
1366
1539
  var a = "";
1367
- E.length && le === e ? E.forEach(function(l, s) {
1368
- a += (s ? ", " : "") + l.textContent;
1369
- }) : a = r.textContent, i.setData("Text", a);
1540
+ S.length && le === e ? S.forEach(function(s, l) {
1541
+ a += (l ? ", " : "") + s.textContent;
1542
+ }) : a = i.textContent, r.setData("Text", a);
1370
1543
  }
1371
1544
  };
1372
1545
  }
1373
- return o.prototype = {
1546
+ return n.prototype = {
1374
1547
  multiDragKeyDown: !1,
1375
1548
  isMultiDrag: !1,
1376
1549
  delayStartGlobal: function(t) {
1377
- var n = t.dragEl;
1378
- N = n;
1550
+ var o = t.dragEl;
1551
+ M = o;
1379
1552
  },
1380
1553
  delayEnded: function() {
1381
- this.isMultiDrag = ~E.indexOf(N);
1554
+ this.isMultiDrag = ~S.indexOf(M);
1382
1555
  },
1383
1556
  setupClone: function(t) {
1384
- var n = t.sortable, i = t.cancel;
1557
+ var o = t.sortable, r = t.cancel;
1385
1558
  if (this.isMultiDrag) {
1386
- for (var r = 0; r < E.length; r++)
1387
- ee.push(Ot(E[r])), ee[r].sortableIndex = E[r].sortableIndex, ee[r].draggable = !1, ee[r].style["will-change"] = "", F(ee[r], this.options.selectedClass, !1), E[r] === N && F(ee[r], this.options.chosenClass, !1);
1388
- n._hideClone(), i();
1559
+ for (var i = 0; i < S.length; i++)
1560
+ te.push(At(S[i])), te[i].sortableIndex = S[i].sortableIndex, te[i].draggable = !1, te[i].style["will-change"] = "", j(te[i], this.options.selectedClass, !1), S[i] === M && j(te[i], this.options.chosenClass, !1);
1561
+ o._hideClone(), r();
1389
1562
  }
1390
1563
  },
1391
1564
  clone: function(t) {
1392
- var n = t.sortable, i = t.rootEl, r = t.dispatchSortableEvent, a = t.cancel;
1393
- this.isMultiDrag && (this.options.removeCloneOnHide || E.length && le === n && (Xt(!0, i), r("clone"), a()));
1565
+ var o = t.sortable, r = t.rootEl, i = t.dispatchSortableEvent, a = t.cancel;
1566
+ this.isMultiDrag && (this.options.removeCloneOnHide || S.length && le === o && (Wt(!0, r), i("clone"), a()));
1394
1567
  },
1395
1568
  showClone: function(t) {
1396
- var n = t.cloneNowShown, i = t.rootEl, r = t.cancel;
1397
- this.isMultiDrag && (Xt(!1, i), ee.forEach(function(a) {
1569
+ var o = t.cloneNowShown, r = t.rootEl, i = t.cancel;
1570
+ this.isMultiDrag && (Wt(!1, r), te.forEach(function(a) {
1398
1571
  b(a, "display", "");
1399
- }), n(), qe = !1, r());
1572
+ }), o(), Je = !1, i());
1400
1573
  },
1401
1574
  hideClone: function(t) {
1402
- var n = this;
1575
+ var o = this;
1403
1576
  t.sortable;
1404
- var i = t.cloneNowHidden, r = t.cancel;
1405
- this.isMultiDrag && (ee.forEach(function(a) {
1406
- b(a, "display", "none"), n.options.removeCloneOnHide && a.parentNode && a.parentNode.removeChild(a);
1407
- }), i(), qe = !0, r());
1577
+ var r = t.cloneNowHidden, i = t.cancel;
1578
+ this.isMultiDrag && (te.forEach(function(a) {
1579
+ b(a, "display", "none"), o.options.removeCloneOnHide && a.parentNode && a.parentNode.removeChild(a);
1580
+ }), r(), Je = !0, i());
1408
1581
  },
1409
1582
  dragStartGlobal: function(t) {
1410
- t.sortable, !this.isMultiDrag && le && le.multiDrag._deselectMultiDrag(), E.forEach(function(n) {
1411
- n.sortableIndex = H(n);
1412
- }), E = E.sort(function(n, i) {
1413
- return n.sortableIndex - i.sortableIndex;
1414
- }), Se = !0;
1583
+ t.sortable, !this.isMultiDrag && le && le.multiDrag._deselectMultiDrag(), S.forEach(function(o) {
1584
+ o.sortableIndex = B(o);
1585
+ }), S = S.sort(function(o, r) {
1586
+ return o.sortableIndex - r.sortableIndex;
1587
+ }), _e = !0;
1415
1588
  },
1416
1589
  dragStarted: function(t) {
1417
- var n = this, i = t.sortable;
1590
+ var o = this, r = t.sortable;
1418
1591
  if (this.isMultiDrag) {
1419
- if (this.options.sort && (i.captureAnimationState(), this.options.animation)) {
1420
- E.forEach(function(a) {
1421
- a !== N && b(a, "position", "absolute");
1592
+ if (this.options.sort && (r.captureAnimationState(), this.options.animation)) {
1593
+ S.forEach(function(a) {
1594
+ a !== M && b(a, "position", "absolute");
1422
1595
  });
1423
- var r = $(N, !1, !0, !0);
1424
- E.forEach(function(a) {
1425
- a !== N && Lt(a, r);
1426
- }), J = !0, Te = !0;
1596
+ var i = $(M, !1, !0, !0);
1597
+ S.forEach(function(a) {
1598
+ a !== M && Xt(a, i);
1599
+ }), Q = !0, Pe = !0;
1427
1600
  }
1428
- i.animateAll(function() {
1429
- J = !1, Te = !1, n.options.animation && E.forEach(function(a) {
1430
- st(a);
1431
- }), n.options.sort && Ve();
1601
+ r.animateAll(function() {
1602
+ Q = !1, Pe = !1, o.options.animation && S.forEach(function(a) {
1603
+ ft(a);
1604
+ }), o.options.sort && Qe();
1432
1605
  });
1433
1606
  }
1434
1607
  },
1435
1608
  dragOver: function(t) {
1436
- var n = t.target, i = t.completed, r = t.cancel;
1437
- J && ~E.indexOf(n) && (i(!1), r());
1609
+ var o = t.target, r = t.completed, i = t.cancel;
1610
+ Q && ~S.indexOf(o) && (r(!1), i());
1438
1611
  },
1439
1612
  revert: function(t) {
1440
- var n = t.fromSortable, i = t.rootEl, r = t.sortable, a = t.dragRect;
1441
- E.length > 1 && (E.forEach(function(l) {
1442
- r.addAnimationState({
1443
- target: l,
1444
- rect: J ? $(l) : a
1445
- }), st(l), l.fromRect = a, n.removeAnimationState(l);
1446
- }), J = !1, Wn(!this.options.removeCloneOnHide, i));
1613
+ var o = t.fromSortable, r = t.rootEl, i = t.sortable, a = t.dragRect;
1614
+ S.length > 1 && (S.forEach(function(s) {
1615
+ i.addAnimationState({
1616
+ target: s,
1617
+ rect: Q ? $(s) : a
1618
+ }), ft(s), s.fromRect = a, o.removeAnimationState(s);
1619
+ }), Q = !1, ho(!this.options.removeCloneOnHide, r));
1447
1620
  },
1448
1621
  dragOverCompleted: function(t) {
1449
- var n = t.sortable, i = t.isOwner, r = t.insertion, a = t.activeSortable, l = t.parentEl, s = t.putSortable, c = this.options;
1450
- if (r) {
1451
- if (i && a._hideClone(), Te = !1, c.animation && E.length > 1 && (J || !i && !a.options.sort && !s)) {
1452
- var h = $(N, !1, !0, !0);
1453
- E.forEach(function(v) {
1454
- v !== N && (Lt(v, h), l.appendChild(v));
1455
- }), J = !0;
1622
+ var o = t.sortable, r = t.isOwner, i = t.insertion, a = t.activeSortable, s = t.parentEl, l = t.putSortable, c = this.options;
1623
+ if (i) {
1624
+ if (r && a._hideClone(), Pe = !1, c.animation && S.length > 1 && (Q || !r && !a.options.sort && !l)) {
1625
+ var p = $(M, !1, !0, !0);
1626
+ S.forEach(function(v) {
1627
+ v !== M && (Xt(v, p), s.appendChild(v));
1628
+ }), Q = !0;
1456
1629
  }
1457
- if (!i)
1458
- if (J || Ve(), E.length > 1) {
1459
- var f = qe;
1460
- a._showClone(n), a.options.animation && !qe && f && ee.forEach(function(v) {
1630
+ if (!r)
1631
+ if (Q || Qe(), S.length > 1) {
1632
+ var f = Je;
1633
+ a._showClone(o), a.options.animation && !Je && f && te.forEach(function(v) {
1461
1634
  a.addAnimationState({
1462
1635
  target: v,
1463
- rect: Ae
1464
- }), v.fromRect = Ae, v.thisAnimationDuration = null;
1636
+ rect: Ne
1637
+ }), v.fromRect = Ne, v.thisAnimationDuration = null;
1465
1638
  });
1466
1639
  } else
1467
- a._showClone(n);
1640
+ a._showClone(o);
1468
1641
  }
1469
1642
  },
1470
1643
  dragOverAnimationCapture: function(t) {
1471
- var n = t.dragRect, i = t.isOwner, r = t.activeSortable;
1472
- if (E.forEach(function(l) {
1473
- l.thisAnimationDuration = null;
1474
- }), r.options.animation && !i && r.multiDrag.isMultiDrag) {
1475
- Ae = oe({}, n);
1476
- var a = we(N, !0);
1477
- Ae.top -= a.f, Ae.left -= a.e;
1644
+ var o = t.dragRect, r = t.isOwner, i = t.activeSortable;
1645
+ if (S.forEach(function(s) {
1646
+ s.thisAnimationDuration = null;
1647
+ }), i.options.animation && !r && i.multiDrag.isMultiDrag) {
1648
+ Ne = re({}, o);
1649
+ var a = Ee(M, !0);
1650
+ Ne.top -= a.f, Ne.left -= a.e;
1478
1651
  }
1479
1652
  },
1480
1653
  dragOverAnimationComplete: function() {
1481
- J && (J = !1, Ve());
1654
+ Q && (Q = !1, Qe());
1482
1655
  },
1483
1656
  drop: function(t) {
1484
- var n = t.originalEvent, i = t.rootEl, r = t.parentEl, a = t.sortable, l = t.dispatchSortableEvent, s = t.oldIndex, c = t.putSortable, h = c || this.sortable;
1485
- if (n) {
1486
- var f = this.options, v = r.children;
1487
- if (!Se)
1488
- if (f.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), F(N, f.selectedClass, !~E.indexOf(N)), ~E.indexOf(N))
1489
- E.splice(E.indexOf(N), 1), Ie = null, Pe({
1657
+ var o = t.originalEvent, r = t.rootEl, i = t.parentEl, a = t.sortable, s = t.dispatchSortableEvent, l = t.oldIndex, c = t.putSortable, p = c || this.sortable;
1658
+ if (o) {
1659
+ var f = this.options, v = i.children;
1660
+ if (!_e)
1661
+ if (f.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), j(M, f.selectedClass, !~S.indexOf(M)), ~S.indexOf(M))
1662
+ S.splice(S.indexOf(M), 1), Ae = null, $e({
1490
1663
  sortable: a,
1491
- rootEl: i,
1664
+ rootEl: r,
1492
1665
  name: "deselect",
1493
- targetEl: N,
1494
- originalEvent: n
1666
+ targetEl: M,
1667
+ originalEvent: o
1495
1668
  });
1496
1669
  else {
1497
- if (E.push(N), Pe({
1670
+ if (S.push(M), $e({
1498
1671
  sortable: a,
1499
- rootEl: i,
1672
+ rootEl: r,
1500
1673
  name: "select",
1501
- targetEl: N,
1502
- originalEvent: n
1503
- }), n.shiftKey && Ie && a.el.contains(Ie)) {
1504
- var T = H(Ie), D = H(N);
1505
- ~T && ~D && T !== D && function() {
1506
- var I, O;
1507
- D > T ? (O = T, I = D) : (O = D, I = T + 1);
1508
- for (var X = f.filter; O < I; O++)
1509
- if (!~E.indexOf(v[O]) && Q(v[O], f.draggable, r, !1)) {
1510
- var ie = X && (typeof X == "function" ? X.call(a, n, v[O], a) : X.split(",").some(function(p) {
1511
- return Q(v[O], p.trim(), r, !1);
1674
+ targetEl: M,
1675
+ originalEvent: o
1676
+ }), o.shiftKey && Ae && a.el.contains(Ae)) {
1677
+ var A = B(Ae), E = B(M);
1678
+ ~A && ~E && A !== E && function() {
1679
+ var T, O;
1680
+ E > A ? (O = A, T = E) : (O = E, T = A + 1);
1681
+ for (var X = f.filter; O < T; O++)
1682
+ if (!~S.indexOf(v[O]) && ee(v[O], f.draggable, i, !1)) {
1683
+ var ie = X && (typeof X == "function" ? X.call(a, o, v[O], a) : X.split(",").some(function(h) {
1684
+ return ee(v[O], h.trim(), i, !1);
1512
1685
  }));
1513
- ie || (F(v[O], f.selectedClass, !0), E.push(v[O]), Pe({
1686
+ ie || (j(v[O], f.selectedClass, !0), S.push(v[O]), $e({
1514
1687
  sortable: a,
1515
- rootEl: i,
1688
+ rootEl: r,
1516
1689
  name: "select",
1517
1690
  targetEl: v[O],
1518
- originalEvent: n
1691
+ originalEvent: o
1519
1692
  }));
1520
1693
  }
1521
1694
  }();
1522
1695
  } else
1523
- Ie = N;
1524
- le = h;
1696
+ Ae = M;
1697
+ le = p;
1525
1698
  }
1526
- if (Se && this.isMultiDrag) {
1527
- if (J = !1, (r[z].options.sort || r !== i) && E.length > 1) {
1528
- var A = $(N), G = H(N, ":not(." + this.options.selectedClass + ")");
1529
- if (!Te && f.animation && (N.thisAnimationDuration = null), h.captureAnimationState(), !Te && (f.animation && (N.fromRect = A, E.forEach(function(I) {
1530
- if (I.thisAnimationDuration = null, I !== N) {
1531
- var O = J ? $(I) : A;
1532
- I.fromRect = O, h.addAnimationState({
1533
- target: I,
1699
+ if (_e && this.isMultiDrag) {
1700
+ if (Q = !1, (i[K].options.sort || i !== r) && S.length > 1) {
1701
+ var _ = $(M), R = B(M, ":not(." + this.options.selectedClass + ")");
1702
+ if (!Pe && f.animation && (M.thisAnimationDuration = null), p.captureAnimationState(), !Pe && (f.animation && (M.fromRect = _, S.forEach(function(T) {
1703
+ if (T.thisAnimationDuration = null, T !== M) {
1704
+ var O = Q ? $(T) : _;
1705
+ T.fromRect = O, p.addAnimationState({
1706
+ target: T,
1534
1707
  rect: O
1535
1708
  });
1536
1709
  }
1537
- })), Ve(), E.forEach(function(I) {
1538
- v[G] ? r.insertBefore(I, v[G]) : r.appendChild(I), G++;
1539
- }), s === H(N))) {
1540
- var V = !1;
1541
- E.forEach(function(I) {
1542
- if (I.sortableIndex !== H(I)) {
1543
- V = !0;
1710
+ })), Qe(), S.forEach(function(T) {
1711
+ v[R] ? i.insertBefore(T, v[R]) : i.appendChild(T), R++;
1712
+ }), l === B(M))) {
1713
+ var Y = !1;
1714
+ S.forEach(function(T) {
1715
+ if (T.sortableIndex !== B(T)) {
1716
+ Y = !0;
1544
1717
  return;
1545
1718
  }
1546
- }), V && (l("update"), l("sort"));
1719
+ }), Y && (s("update"), s("sort"));
1547
1720
  }
1548
- E.forEach(function(I) {
1549
- st(I);
1550
- }), h.animateAll();
1721
+ S.forEach(function(T) {
1722
+ ft(T);
1723
+ }), p.animateAll();
1551
1724
  }
1552
- le = h;
1725
+ le = p;
1553
1726
  }
1554
- (i === r || c && c.lastPutMode !== "clone") && ee.forEach(function(I) {
1555
- I.parentNode && I.parentNode.removeChild(I);
1727
+ (r === i || c && c.lastPutMode !== "clone") && te.forEach(function(T) {
1728
+ T.parentNode && T.parentNode.removeChild(T);
1556
1729
  });
1557
1730
  }
1558
1731
  },
1559
1732
  nullingGlobal: function() {
1560
- this.isMultiDrag = Se = !1, ee.length = 0;
1733
+ this.isMultiDrag = _e = !1, te.length = 0;
1561
1734
  },
1562
1735
  destroyGlobal: function() {
1563
- this._deselectMultiDrag(), C(document, "pointerup", this._deselectMultiDrag), C(document, "mouseup", this._deselectMultiDrag), C(document, "touchend", this._deselectMultiDrag), C(document, "keydown", this._checkKeyDown), C(document, "keyup", this._checkKeyUp);
1736
+ this._deselectMultiDrag(), x(document, "pointerup", this._deselectMultiDrag), x(document, "mouseup", this._deselectMultiDrag), x(document, "touchend", this._deselectMultiDrag), x(document, "keydown", this._checkKeyDown), x(document, "keyup", this._checkKeyUp);
1564
1737
  },
1565
1738
  _deselectMultiDrag: function(t) {
1566
- if (!(typeof Se < "u" && Se) && le === this.sortable && !(t && Q(t.target, this.options.draggable, this.sortable.el, !1)) && !(t && t.button !== 0))
1567
- for (; E.length; ) {
1568
- var n = E[0];
1569
- F(n, this.options.selectedClass, !1), E.shift(), Pe({
1739
+ if (!(typeof _e < "u" && _e) && le === this.sortable && !(t && ee(t.target, this.options.draggable, this.sortable.el, !1)) && !(t && t.button !== 0))
1740
+ for (; S.length; ) {
1741
+ var o = S[0];
1742
+ j(o, this.options.selectedClass, !1), S.shift(), $e({
1570
1743
  sortable: this.sortable,
1571
1744
  rootEl: this.sortable.el,
1572
1745
  name: "deselect",
1573
- targetEl: n,
1746
+ targetEl: o,
1574
1747
  originalEvent: t
1575
1748
  });
1576
1749
  }
@@ -1581,7 +1754,7 @@ function zn() {
1581
1754
  _checkKeyUp: function(t) {
1582
1755
  t.key === this.options.multiDragKey && (this.multiDragKeyDown = !1);
1583
1756
  }
1584
- }, oe(o, {
1757
+ }, re(n, {
1585
1758
  // Static methods & properties
1586
1759
  pluginName: "multiDrag",
1587
1760
  utils: {
@@ -1590,35 +1763,35 @@ function zn() {
1590
1763
  * @param {HTMLElement} el The element to be selected
1591
1764
  */
1592
1765
  select: function(t) {
1593
- var n = t.parentNode[z];
1594
- !n || !n.options.multiDrag || ~E.indexOf(t) || (le && le !== n && (le.multiDrag._deselectMultiDrag(), le = n), F(t, n.options.selectedClass, !0), E.push(t));
1766
+ var o = t.parentNode[K];
1767
+ !o || !o.options.multiDrag || ~S.indexOf(t) || (le && le !== o && (le.multiDrag._deselectMultiDrag(), le = o), j(t, o.options.selectedClass, !0), S.push(t));
1595
1768
  },
1596
1769
  /**
1597
1770
  * Deselects the provided multi-drag item
1598
1771
  * @param {HTMLElement} el The element to be deselected
1599
1772
  */
1600
1773
  deselect: function(t) {
1601
- var n = t.parentNode[z], i = E.indexOf(t);
1602
- !n || !n.options.multiDrag || !~i || (F(t, n.options.selectedClass, !1), E.splice(i, 1));
1774
+ var o = t.parentNode[K], r = S.indexOf(t);
1775
+ !o || !o.options.multiDrag || !~r || (j(t, o.options.selectedClass, !1), S.splice(r, 1));
1603
1776
  }
1604
1777
  },
1605
1778
  eventProperties: function() {
1606
- var t = this, n = [], i = [];
1607
- return E.forEach(function(r) {
1608
- n.push({
1609
- multiDragElement: r,
1610
- index: r.sortableIndex
1779
+ var t = this, o = [], r = [];
1780
+ return S.forEach(function(i) {
1781
+ o.push({
1782
+ multiDragElement: i,
1783
+ index: i.sortableIndex
1611
1784
  });
1612
1785
  var a;
1613
- J && r !== N ? a = -1 : J ? a = H(r, ":not(." + t.options.selectedClass + ")") : a = H(r), i.push({
1614
- multiDragElement: r,
1786
+ Q && i !== M ? a = -1 : Q ? a = B(i, ":not(." + t.options.selectedClass + ")") : a = B(i), r.push({
1787
+ multiDragElement: i,
1615
1788
  index: a
1616
1789
  });
1617
1790
  }), {
1618
- items: wn(E),
1619
- clones: [].concat(ee),
1620
- oldIndicies: n,
1621
- newIndicies: i
1791
+ items: Fn(S),
1792
+ clones: [].concat(te),
1793
+ oldIndicies: o,
1794
+ newIndicies: r
1622
1795
  };
1623
1796
  },
1624
1797
  optionListeners: {
@@ -1628,202 +1801,202 @@ function zn() {
1628
1801
  }
1629
1802
  });
1630
1803
  }
1631
- function Wn(o, e) {
1632
- E.forEach(function(t, n) {
1633
- var i = e.children[t.sortableIndex + (o ? Number(n) : 0)];
1634
- i ? e.insertBefore(t, i) : e.appendChild(t);
1804
+ function ho(n, e) {
1805
+ S.forEach(function(t, o) {
1806
+ var r = e.children[t.sortableIndex + (n ? Number(o) : 0)];
1807
+ r ? e.insertBefore(t, r) : e.appendChild(t);
1635
1808
  });
1636
1809
  }
1637
- function Xt(o, e) {
1638
- ee.forEach(function(t, n) {
1639
- var i = e.children[t.sortableIndex + (o ? Number(n) : 0)];
1640
- i ? e.insertBefore(t, i) : e.appendChild(t);
1810
+ function Wt(n, e) {
1811
+ te.forEach(function(t, o) {
1812
+ var r = e.children[t.sortableIndex + (n ? Number(o) : 0)];
1813
+ r ? e.insertBefore(t, r) : e.appendChild(t);
1641
1814
  });
1642
1815
  }
1643
- function Ve() {
1644
- E.forEach(function(o) {
1645
- o !== N && o.parentNode && o.parentNode.removeChild(o);
1816
+ function Qe() {
1817
+ S.forEach(function(n) {
1818
+ n !== M && n.parentNode && n.parentNode.removeChild(n);
1646
1819
  });
1647
1820
  }
1648
- y.mount(new Bn());
1649
- y.mount(It, xt);
1650
- const Kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1821
+ w.mount(new co());
1822
+ w.mount(Nt, Pt);
1823
+ const go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1651
1824
  __proto__: null,
1652
- MultiDrag: zn,
1653
- Sortable: y,
1654
- Swap: Gn,
1655
- default: y
1656
- }, Symbol.toStringTag, { value: "Module" })), qn = /* @__PURE__ */ Yt(Kn);
1657
- var on = { exports: {} };
1825
+ MultiDrag: po,
1826
+ Sortable: w,
1827
+ Swap: uo,
1828
+ default: w
1829
+ }, Symbol.toStringTag, { value: "Module" })), mo = /* @__PURE__ */ Kt(go);
1830
+ var dn = { exports: {} };
1658
1831
  /*!
1659
1832
  Copyright (c) 2018 Jed Watson.
1660
1833
  Licensed under the MIT License (MIT), see
1661
1834
  http://jedwatson.github.io/classnames
1662
1835
  */
1663
- (function(o) {
1836
+ (function(n) {
1664
1837
  (function() {
1665
1838
  var e = {}.hasOwnProperty;
1666
1839
  function t() {
1667
- for (var n = [], i = 0; i < arguments.length; i++) {
1668
- var r = arguments[i];
1669
- if (r) {
1670
- var a = typeof r;
1840
+ for (var o = [], r = 0; r < arguments.length; r++) {
1841
+ var i = arguments[r];
1842
+ if (i) {
1843
+ var a = typeof i;
1671
1844
  if (a === "string" || a === "number")
1672
- n.push(r);
1673
- else if (Array.isArray(r)) {
1674
- if (r.length) {
1675
- var l = t.apply(null, r);
1676
- l && n.push(l);
1845
+ o.push(i);
1846
+ else if (Array.isArray(i)) {
1847
+ if (i.length) {
1848
+ var s = t.apply(null, i);
1849
+ s && o.push(s);
1677
1850
  }
1678
1851
  } else if (a === "object")
1679
- if (r.toString === Object.prototype.toString)
1680
- for (var s in r)
1681
- e.call(r, s) && r[s] && n.push(s);
1852
+ if (i.toString === Object.prototype.toString)
1853
+ for (var l in i)
1854
+ e.call(i, l) && i[l] && o.push(l);
1682
1855
  else
1683
- n.push(r.toString());
1856
+ o.push(i.toString());
1684
1857
  }
1685
1858
  }
1686
- return n.join(" ");
1859
+ return o.join(" ");
1687
1860
  }
1688
- o.exports ? (t.default = t, o.exports = t) : window.classNames = t;
1861
+ n.exports ? (t.default = t, n.exports = t) : window.classNames = t;
1689
1862
  })();
1690
- })(on);
1691
- var Vn = on.exports, Zn = process.env.NODE_ENV === "production", bt = "Invariant failed";
1692
- function Jn(o, e) {
1693
- if (!o) {
1694
- if (Zn)
1695
- throw new Error(bt);
1696
- var t = typeof e == "function" ? e() : e, n = t ? bt + ": " + t : bt;
1697
- throw new Error(n);
1863
+ })(dn);
1864
+ var bo = dn.exports, vo = process.env.NODE_ENV === "production", Et = "Invariant failed";
1865
+ function yo(n, e) {
1866
+ if (!n) {
1867
+ if (vo)
1868
+ throw new Error(Et);
1869
+ var t = typeof e == "function" ? e() : e, o = t ? Et + ": " + t : Et;
1870
+ throw new Error(o);
1698
1871
  }
1699
1872
  }
1700
- const Qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1873
+ const wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1701
1874
  __proto__: null,
1702
- default: Jn
1703
- }, Symbol.toStringTag, { value: "Module" })), eo = /* @__PURE__ */ Yt(Qn);
1704
- (function(o) {
1705
- var e = qn, t = Vn, n = cn, i = eo;
1706
- function r(p) {
1707
- return p && p.__esModule ? p.default : p;
1875
+ default: yo
1876
+ }, Symbol.toStringTag, { value: "Module" })), Eo = /* @__PURE__ */ Kt(wo);
1877
+ (function(n) {
1878
+ var e = mo, t = bo, o = mn, r = Eo;
1879
+ function i(h) {
1880
+ return h && h.__esModule ? h.default : h;
1708
1881
  }
1709
- function a(p, u, m, g) {
1710
- Object.defineProperty(p, u, { get: m, set: g, enumerable: !0, configurable: !0 });
1882
+ function a(h, u, m, g) {
1883
+ Object.defineProperty(h, u, { get: m, set: g, enumerable: !0, configurable: !0 });
1711
1884
  }
1712
- function l(p, u) {
1885
+ function s(h, u) {
1713
1886
  return Object.keys(u).forEach(function(m) {
1714
- m === "default" || m === "__esModule" || p.hasOwnProperty(m) || Object.defineProperty(p, m, {
1887
+ m === "default" || m === "__esModule" || h.hasOwnProperty(m) || Object.defineProperty(h, m, {
1715
1888
  enumerable: !0,
1716
1889
  get: function() {
1717
1890
  return u[m];
1718
1891
  }
1719
1892
  });
1720
- }), p;
1893
+ }), h;
1721
1894
  }
1722
- a(o.exports, "Sortable", () => $882b6d93070905b3$re_export$Sortable), a(o.exports, "Direction", () => $882b6d93070905b3$re_export$Direction), a(o.exports, "DOMRect", () => $882b6d93070905b3$re_export$DOMRect), a(o.exports, "GroupOptions", () => $882b6d93070905b3$re_export$GroupOptions), a(o.exports, "MoveEvent", () => $882b6d93070905b3$re_export$MoveEvent), a(o.exports, "Options", () => $882b6d93070905b3$re_export$Options), a(o.exports, "PullResult", () => $882b6d93070905b3$re_export$PullResult), a(o.exports, "PutResult", () => $882b6d93070905b3$re_export$PutResult), a(o.exports, "SortableEvent", () => $882b6d93070905b3$re_export$SortableEvent), a(o.exports, "SortableOptions", () => $882b6d93070905b3$re_export$SortableOptions), a(o.exports, "Utils", () => $882b6d93070905b3$re_export$Utils), a(o.exports, "ReactSortable", () => X);
1723
- function s(p) {
1724
- p.parentElement !== null && p.parentElement.removeChild(p);
1895
+ a(n.exports, "Sortable", () => $882b6d93070905b3$re_export$Sortable), a(n.exports, "Direction", () => $882b6d93070905b3$re_export$Direction), a(n.exports, "DOMRect", () => $882b6d93070905b3$re_export$DOMRect), a(n.exports, "GroupOptions", () => $882b6d93070905b3$re_export$GroupOptions), a(n.exports, "MoveEvent", () => $882b6d93070905b3$re_export$MoveEvent), a(n.exports, "Options", () => $882b6d93070905b3$re_export$Options), a(n.exports, "PullResult", () => $882b6d93070905b3$re_export$PullResult), a(n.exports, "PutResult", () => $882b6d93070905b3$re_export$PutResult), a(n.exports, "SortableEvent", () => $882b6d93070905b3$re_export$SortableEvent), a(n.exports, "SortableOptions", () => $882b6d93070905b3$re_export$SortableOptions), a(n.exports, "Utils", () => $882b6d93070905b3$re_export$Utils), a(n.exports, "ReactSortable", () => X);
1896
+ function l(h) {
1897
+ h.parentElement !== null && h.parentElement.removeChild(h);
1725
1898
  }
1726
- function c(p, u, m) {
1727
- const g = p.children[m] || null;
1728
- p.insertBefore(u, g);
1899
+ function c(h, u, m) {
1900
+ const g = h.children[m] || null;
1901
+ h.insertBefore(u, g);
1729
1902
  }
1730
- function h(p) {
1731
- p.forEach((u) => s(u.element));
1903
+ function p(h) {
1904
+ h.forEach((u) => l(u.element));
1732
1905
  }
1733
- function f(p) {
1734
- p.forEach((u) => {
1906
+ function f(h) {
1907
+ h.forEach((u) => {
1735
1908
  c(u.parentElement, u.element, u.oldIndex);
1736
1909
  });
1737
1910
  }
1738
- function v(p, u) {
1739
- const m = G(p), g = {
1740
- parentElement: p.from
1911
+ function v(h, u) {
1912
+ const m = R(h), g = {
1913
+ parentElement: h.from
1741
1914
  };
1742
- let _ = [];
1915
+ let C = [];
1743
1916
  switch (m) {
1744
1917
  case "normal":
1745
- _ = [
1918
+ C = [
1746
1919
  {
1747
- element: p.item,
1748
- newIndex: p.newIndex,
1749
- oldIndex: p.oldIndex,
1750
- parentElement: p.from
1920
+ element: h.item,
1921
+ newIndex: h.newIndex,
1922
+ oldIndex: h.oldIndex,
1923
+ parentElement: h.from
1751
1924
  }
1752
1925
  ];
1753
1926
  break;
1754
1927
  case "swap":
1755
- const M = {
1756
- element: p.item,
1757
- oldIndex: p.oldIndex,
1758
- newIndex: p.newIndex,
1928
+ const N = {
1929
+ element: h.item,
1930
+ oldIndex: h.oldIndex,
1931
+ newIndex: h.newIndex,
1759
1932
  ...g
1760
- }, k = {
1761
- element: p.swapItem,
1762
- oldIndex: p.newIndex,
1763
- newIndex: p.oldIndex,
1933
+ }, F = {
1934
+ element: h.swapItem,
1935
+ oldIndex: h.newIndex,
1936
+ newIndex: h.oldIndex,
1764
1937
  ...g
1765
1938
  };
1766
- _ = [
1767
- M,
1768
- k
1939
+ C = [
1940
+ N,
1941
+ F
1769
1942
  ];
1770
1943
  break;
1771
1944
  case "multidrag":
1772
- _ = p.oldIndicies.map((B, K) => ({
1773
- element: B.multiDragElement,
1774
- oldIndex: B.index,
1775
- newIndex: p.newIndicies[K].index,
1945
+ C = h.oldIndicies.map((G, V) => ({
1946
+ element: G.multiDragElement,
1947
+ oldIndex: G.index,
1948
+ newIndex: h.newIndicies[V].index,
1776
1949
  ...g
1777
1950
  }));
1778
1951
  break;
1779
1952
  }
1780
- return V(_, u);
1953
+ return Y(C, u);
1781
1954
  }
1782
- function T(p, u) {
1783
- const m = D(p, u);
1784
- return A(p, m);
1955
+ function A(h, u) {
1956
+ const m = E(h, u);
1957
+ return _(h, m);
1785
1958
  }
1786
- function D(p, u) {
1959
+ function E(h, u) {
1787
1960
  const m = [
1788
1961
  ...u
1789
1962
  ];
1790
- return p.concat().reverse().forEach((g) => m.splice(g.oldIndex, 1)), m;
1963
+ return h.concat().reverse().forEach((g) => m.splice(g.oldIndex, 1)), m;
1791
1964
  }
1792
- function A(p, u, m, g) {
1793
- const _ = [
1965
+ function _(h, u, m, g) {
1966
+ const C = [
1794
1967
  ...u
1795
1968
  ];
1796
- return p.forEach((w) => {
1797
- const P = g && m && g(w.item, m);
1798
- _.splice(w.newIndex, 0, P || w.item);
1799
- }), _;
1969
+ return h.forEach((y) => {
1970
+ const P = g && m && g(y.item, m);
1971
+ C.splice(y.newIndex, 0, P || y.item);
1972
+ }), C;
1800
1973
  }
1801
- function G(p) {
1802
- return p.oldIndicies && p.oldIndicies.length > 0 ? "multidrag" : p.swapItem ? "swap" : "normal";
1974
+ function R(h) {
1975
+ return h.oldIndicies && h.oldIndicies.length > 0 ? "multidrag" : h.swapItem ? "swap" : "normal";
1803
1976
  }
1804
- function V(p, u) {
1805
- return p.map((g) => ({
1977
+ function Y(h, u) {
1978
+ return h.map((g) => ({
1806
1979
  ...g,
1807
1980
  item: u[g.oldIndex]
1808
- })).sort((g, _) => g.oldIndex - _.oldIndex);
1981
+ })).sort((g, C) => g.oldIndex - C.oldIndex);
1809
1982
  }
1810
- function I(p) {
1811
- const { list: u, setList: m, children: g, tag: _, style: w, className: P, clone: M, onAdd: k, onChange: B, onChoose: K, onClone: ge, onEnd: re, onFilter: Ye, onRemove: Oe, onSort: xe, onStart: Be, onUnchoose: Tt, onUpdate: no, onMove: oo, onSpill: io, onSelect: ro, onDeselect: ao, ...rn } = p;
1812
- return rn;
1983
+ function T(h) {
1984
+ const { list: u, setList: m, children: g, tag: C, style: y, className: P, clone: N, onAdd: F, onChange: G, onChoose: V, onClone: be, onEnd: ae, onFilter: Ge, onRemove: Ie, onSort: Te, onStart: ze, onUnchoose: Mt, onUpdate: Do, onMove: _o, onSpill: Co, onSelect: xo, onDeselect: Oo, ...fn } = h;
1985
+ return fn;
1813
1986
  }
1814
1987
  const O = {
1815
1988
  dragging: null
1816
1989
  };
1817
- class X extends n.Component {
1990
+ class X extends o.Component {
1818
1991
  constructor(u) {
1819
- super(u), this.ref = /* @__PURE__ */ (0, n.createRef)();
1992
+ super(u), this.ref = /* @__PURE__ */ (0, o.createRef)();
1820
1993
  const m = [
1821
1994
  ...u.list
1822
1995
  ].map((g) => Object.assign(g, {
1823
1996
  chosen: !1,
1824
1997
  selected: !1
1825
1998
  }));
1826
- u.setList(m, this.sortable, O), r(i)(
1999
+ u.setList(m, this.sortable, O), i(r)(
1827
2000
  //@ts-expect-error: Doesn't exist. Will deprecate soon.
1828
2001
  !u.plugins,
1829
2002
  `
@@ -1836,39 +2009,39 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
1836
2009
  componentDidMount() {
1837
2010
  if (this.ref.current === null) return;
1838
2011
  const u = this.makeOptions();
1839
- r(e).create(this.ref.current, u);
2012
+ i(e).create(this.ref.current, u);
1840
2013
  }
1841
2014
  componentDidUpdate(u) {
1842
2015
  u.disabled !== this.props.disabled && this.sortable && this.sortable.option("disabled", this.props.disabled);
1843
2016
  }
1844
2017
  render() {
1845
- const { tag: u, style: m, className: g, id: _ } = this.props, w = {
2018
+ const { tag: u, style: m, className: g, id: C } = this.props, y = {
1846
2019
  style: m,
1847
2020
  className: g,
1848
- id: _
2021
+ id: C
1849
2022
  }, P = !u || u === null ? "div" : u;
1850
- return /* @__PURE__ */ (0, n.createElement)(P, {
2023
+ return /* @__PURE__ */ (0, o.createElement)(P, {
1851
2024
  // @todo - find a way (perhaps with the callback) to allow AntD components to work
1852
2025
  ref: this.ref,
1853
- ...w
2026
+ ...y
1854
2027
  }, this.getChildren());
1855
2028
  }
1856
2029
  getChildren() {
1857
- const { children: u, dataIdAttr: m, selectedClass: g = "sortable-selected", chosenClass: _ = "sortable-chosen", dragClass: w = "sortable-drag", fallbackClass: P = "sortable-falback", ghostClass: M = "sortable-ghost", swapClass: k = "sortable-swap-highlight", filter: B = "sortable-filter", list: K } = this.props;
2030
+ const { children: u, dataIdAttr: m, selectedClass: g = "sortable-selected", chosenClass: C = "sortable-chosen", dragClass: y = "sortable-drag", fallbackClass: P = "sortable-falback", ghostClass: N = "sortable-ghost", swapClass: F = "sortable-swap-highlight", filter: G = "sortable-filter", list: V } = this.props;
1858
2031
  if (!u || u == null) return null;
1859
- const ge = m || "data-id";
1860
- return n.Children.map(u, (re, Ye) => {
1861
- if (re === void 0) return;
1862
- const Oe = K[Ye] || {}, { className: xe } = re.props, Be = typeof B == "string" && {
1863
- [B.replace(".", "")]: !!Oe.filtered
1864
- }, Tt = r(t)(xe, {
1865
- [g]: Oe.selected,
1866
- [_]: Oe.chosen,
1867
- ...Be
2032
+ const be = m || "data-id";
2033
+ return o.Children.map(u, (ae, Ge) => {
2034
+ if (ae === void 0) return;
2035
+ const Ie = V[Ge] || {}, { className: Te } = ae.props, ze = typeof G == "string" && {
2036
+ [G.replace(".", "")]: !!Ie.filtered
2037
+ }, Mt = i(t)(Te, {
2038
+ [g]: Ie.selected,
2039
+ [C]: Ie.chosen,
2040
+ ...ze
1868
2041
  });
1869
- return /* @__PURE__ */ (0, n.cloneElement)(re, {
1870
- [ge]: re.key,
1871
- className: Tt
2042
+ return /* @__PURE__ */ (0, o.cloneElement)(ae, {
2043
+ [be]: ae.key,
2044
+ className: Mt
1872
2045
  });
1873
2046
  });
1874
2047
  }
@@ -1897,14 +2070,14 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
1897
2070
  "onClone",
1898
2071
  "onFilter",
1899
2072
  "onSort"
1900
- ], g = I(this.props);
1901
- return u.forEach((w) => g[w] = this.prepareOnHandlerPropAndDOM(w)), m.forEach((w) => g[w] = this.prepareOnHandlerProp(w)), {
2073
+ ], g = T(this.props);
2074
+ return u.forEach((y) => g[y] = this.prepareOnHandlerPropAndDOM(y)), m.forEach((y) => g[y] = this.prepareOnHandlerProp(y)), {
1902
2075
  ...g,
1903
- onMove: (w, P) => {
1904
- const { onMove: M } = this.props, k = w.willInsertAfter || -1;
1905
- if (!M) return k;
1906
- const B = M(w, P, this.sortable, O);
1907
- return typeof B > "u" ? !1 : B;
2076
+ onMove: (y, P) => {
2077
+ const { onMove: N } = this.props, F = y.willInsertAfter || -1;
2078
+ if (!N) return F;
2079
+ const G = N(y, P, this.sortable, O);
2080
+ return typeof G > "u" ? !1 : G;
1908
2081
  }
1909
2082
  };
1910
2083
  }
@@ -1927,55 +2100,55 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
1927
2100
  }
1928
2101
  // SORTABLE DOM HANDLING
1929
2102
  onAdd(u) {
1930
- const { list: m, setList: g, clone: _ } = this.props, w = [
2103
+ const { list: m, setList: g, clone: C } = this.props, y = [
1931
2104
  ...O.dragging.props.list
1932
- ], P = v(u, w);
1933
- h(P);
1934
- const M = A(P, m, u, _).map((k) => Object.assign(k, {
2105
+ ], P = v(u, y);
2106
+ p(P);
2107
+ const N = _(P, m, u, C).map((F) => Object.assign(F, {
1935
2108
  selected: !1
1936
2109
  }));
1937
- g(M, this.sortable, O);
2110
+ g(N, this.sortable, O);
1938
2111
  }
1939
2112
  onRemove(u) {
1940
- const { list: m, setList: g } = this.props, _ = G(u), w = v(u, m);
1941
- f(w);
2113
+ const { list: m, setList: g } = this.props, C = R(u), y = v(u, m);
2114
+ f(y);
1942
2115
  let P = [
1943
2116
  ...m
1944
2117
  ];
1945
- if (u.pullMode !== "clone") P = D(w, P);
2118
+ if (u.pullMode !== "clone") P = E(y, P);
1946
2119
  else {
1947
- let M = w;
1948
- switch (_) {
2120
+ let N = y;
2121
+ switch (C) {
1949
2122
  case "multidrag":
1950
- M = w.map((k, B) => ({
1951
- ...k,
1952
- element: u.clones[B]
2123
+ N = y.map((F, G) => ({
2124
+ ...F,
2125
+ element: u.clones[G]
1953
2126
  }));
1954
2127
  break;
1955
2128
  case "normal":
1956
- M = w.map((k) => ({
1957
- ...k,
2129
+ N = y.map((F) => ({
2130
+ ...F,
1958
2131
  element: u.clone
1959
2132
  }));
1960
2133
  break;
1961
2134
  case "swap":
1962
2135
  default:
1963
- r(i)(!0, `mode "${_}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${_}" plugin`);
2136
+ i(r)(!0, `mode "${C}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${C}" plugin`);
1964
2137
  }
1965
- h(M), w.forEach((k) => {
1966
- const B = k.oldIndex, K = this.props.clone(k.item, u);
1967
- P.splice(B, 1, K);
2138
+ p(N), y.forEach((F) => {
2139
+ const G = F.oldIndex, V = this.props.clone(F.item, u);
2140
+ P.splice(G, 1, V);
1968
2141
  });
1969
2142
  }
1970
- P = P.map((M) => Object.assign(M, {
2143
+ P = P.map((N) => Object.assign(N, {
1971
2144
  selected: !1
1972
2145
  })), g(P, this.sortable, O);
1973
2146
  }
1974
2147
  onUpdate(u) {
1975
- const { list: m, setList: g } = this.props, _ = v(u, m);
1976
- h(_), f(_);
1977
- const w = T(_, m);
1978
- return g(w, this.sortable, O);
2148
+ const { list: m, setList: g } = this.props, C = v(u, m);
2149
+ p(C), f(C);
2150
+ const y = A(C, m);
2151
+ return g(y, this.sortable, O);
1979
2152
  }
1980
2153
  onStart() {
1981
2154
  O.dragging = this;
@@ -1984,73 +2157,73 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
1984
2157
  O.dragging = null;
1985
2158
  }
1986
2159
  onChoose(u) {
1987
- const { list: m, setList: g } = this.props, _ = m.map((w, P) => {
1988
- let M = w;
1989
- return P === u.oldIndex && (M = Object.assign(w, {
2160
+ const { list: m, setList: g } = this.props, C = m.map((y, P) => {
2161
+ let N = y;
2162
+ return P === u.oldIndex && (N = Object.assign(y, {
1990
2163
  chosen: !0
1991
- })), M;
2164
+ })), N;
1992
2165
  });
1993
- g(_, this.sortable, O);
2166
+ g(C, this.sortable, O);
1994
2167
  }
1995
2168
  onUnchoose(u) {
1996
- const { list: m, setList: g } = this.props, _ = m.map((w, P) => {
1997
- let M = w;
1998
- return P === u.oldIndex && (M = Object.assign(M, {
2169
+ const { list: m, setList: g } = this.props, C = m.map((y, P) => {
2170
+ let N = y;
2171
+ return P === u.oldIndex && (N = Object.assign(N, {
1999
2172
  chosen: !1
2000
- })), M;
2173
+ })), N;
2001
2174
  });
2002
- g(_, this.sortable, O);
2175
+ g(C, this.sortable, O);
2003
2176
  }
2004
2177
  onSpill(u) {
2005
2178
  const { removeOnSpill: m, revertOnSpill: g } = this.props;
2006
- m && !g && s(u.item);
2179
+ m && !g && l(u.item);
2007
2180
  }
2008
2181
  onSelect(u) {
2009
- const { list: m, setList: g } = this.props, _ = m.map((w) => Object.assign(w, {
2182
+ const { list: m, setList: g } = this.props, C = m.map((y) => Object.assign(y, {
2010
2183
  selected: !1
2011
2184
  }));
2012
- u.newIndicies.forEach((w) => {
2013
- const P = w.index;
2185
+ u.newIndicies.forEach((y) => {
2186
+ const P = y.index;
2014
2187
  if (P === -1) {
2015
- console.log(`"${u.type}" had indice of "${w.index}", which is probably -1 and doesn't usually happen here.`), console.log(u);
2188
+ console.log(`"${u.type}" had indice of "${y.index}", which is probably -1 and doesn't usually happen here.`), console.log(u);
2016
2189
  return;
2017
2190
  }
2018
- _[P].selected = !0;
2019
- }), g(_, this.sortable, O);
2191
+ C[P].selected = !0;
2192
+ }), g(C, this.sortable, O);
2020
2193
  }
2021
2194
  onDeselect(u) {
2022
- const { list: m, setList: g } = this.props, _ = m.map((w) => Object.assign(w, {
2195
+ const { list: m, setList: g } = this.props, C = m.map((y) => Object.assign(y, {
2023
2196
  selected: !1
2024
2197
  }));
2025
- u.newIndicies.forEach((w) => {
2026
- const P = w.index;
2027
- P !== -1 && (_[P].selected = !0);
2028
- }), g(_, this.sortable, O);
2198
+ u.newIndicies.forEach((y) => {
2199
+ const P = y.index;
2200
+ P !== -1 && (C[P].selected = !0);
2201
+ }), g(C, this.sortable, O);
2029
2202
  }
2030
2203
  }
2031
2204
  /* eslint-disable-next-line */
2032
- At(X, "defaultProps", {
2205
+ $t(X, "defaultProps", {
2033
2206
  clone: (u) => u
2034
2207
  });
2035
2208
  var ie = {};
2036
- l(o.exports, ie);
2037
- })(Bt);
2038
- var to = Bt.exports;
2039
- const go = (o) => {
2040
- const { actions: e } = un(o);
2041
- return /* @__PURE__ */ Ge(dn, { sx: o.sx, children: /* @__PURE__ */ Ge(
2042
- to.ReactSortable,
2209
+ s(n.exports, ie);
2210
+ })(Vt);
2211
+ var So = Vt.exports;
2212
+ const Fo = (n) => {
2213
+ const { actions: e } = bn(n);
2214
+ return /* @__PURE__ */ ge(vn, { sx: n.sx, children: /* @__PURE__ */ ge(
2215
+ So.ReactSortable,
2043
2216
  {
2044
- list: o.items,
2217
+ list: n.items,
2045
2218
  setList: e.handleSetList,
2046
- disabled: o.disabled,
2047
- children: o.items.map((t) => /* @__PURE__ */ Ge(
2048
- fn,
2219
+ disabled: n.disabled,
2220
+ children: n.items.map((t) => /* @__PURE__ */ ge(
2221
+ yn,
2049
2222
  {
2050
2223
  selected: t.selected,
2051
2224
  onClick: e.handleClick(t),
2052
- children: /* @__PURE__ */ Ge(
2053
- sn,
2225
+ children: /* @__PURE__ */ ge(
2226
+ qt,
2054
2227
  {
2055
2228
  title: t.name,
2056
2229
  avatar: t.icon,
@@ -2068,5 +2241,5 @@ const go = (o) => {
2068
2241
  ) });
2069
2242
  };
2070
2243
  export {
2071
- go as SortableList
2244
+ Fo as SortableList
2072
2245
  };