@eox/layercontrol 0.17.0 → 0.17.1

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.
@@ -588,7 +588,7 @@ wn == null || wn({ LitElement: et });
588
588
  * Copyright 2021 Google LLC
589
589
  * SPDX-License-Identifier: BSD-3-Clause
590
590
  */
591
- function lt(e, t, n) {
591
+ function ot(e, t, n) {
592
592
  return e ? t(e) : n == null ? void 0 : n(e);
593
593
  }
594
594
  /**
@@ -1496,7 +1496,7 @@ function Le(e, t) {
1496
1496
  function Kr(e) {
1497
1497
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
1498
1498
  }
1499
- function at(e, t, n, i) {
1499
+ function lt(e, t, n, i) {
1500
1500
  if (e) {
1501
1501
  n = n || document;
1502
1502
  do {
@@ -1590,7 +1590,7 @@ function gi(e, t, n) {
1590
1590
  }
1591
1591
  function Zt(e, t, n, i) {
1592
1592
  for (var o = 0, r = 0, s = e.children; r < s.length; ) {
1593
- if (s[r].style.display !== "none" && s[r] !== v.ghost && (i || s[r] !== v.dragged) && at(s[r], n.draggable, e, !1)) {
1593
+ if (s[r].style.display !== "none" && s[r] !== v.ghost && (i || s[r] !== v.dragged) && lt(s[r], n.draggable, e, !1)) {
1594
1594
  if (o === t)
1595
1595
  return s[r];
1596
1596
  o++;
@@ -1682,7 +1682,7 @@ function Qi(e, t, n) {
1682
1682
  var i = {};
1683
1683
  return Array.from(e.children).forEach(function(o) {
1684
1684
  var r, s, a, l;
1685
- if (!(!at(o, t.draggable, e, !1) || o.animated || o === n)) {
1685
+ if (!(!lt(o, t.draggable, e, !1) || o.animated || o === n)) {
1686
1686
  var u = I(o);
1687
1687
  i.left = Math.min((r = i.left) !== null && r !== void 0 ? r : 1 / 0, u.left), i.top = Math.min((s = i.top) !== null && s !== void 0 ? s : 1 / 0, u.top), i.right = Math.max((a = i.right) !== null && a !== void 0 ? a : -1 / 0, u.right), i.bottom = Math.max((l = i.bottom) !== null && l !== void 0 ? l : -1 / 0, u.bottom);
1688
1688
  }
@@ -1867,7 +1867,7 @@ function q(e) {
1867
1867
  newDraggableIndex: Et
1868
1868
  }, e));
1869
1869
  }
1870
- var h, N, w, O, Ot, Oe, D, xt, Ut, Q, ae, Et, Se, k, Vt = !1, Ue = !1, ke = [], Tt, st, An, Cn, yi, bi, te, Ht, le, ue = !1, $e = !1, Re, X, Tn = [], In = !1, Fe = [], gn = typeof document < "u", _e = Xi, vi = we || yt ? "cssFloat" : "float", as = gn && !Yi && !Xi && "draggable" in document.createElement("div"), to = function() {
1870
+ var h, N, w, O, Ot, Oe, D, xt, Ut, Q, ae, Et, Se, k, Vt = !1, Ue = !1, ke = [], Tt, at, An, Cn, yi, bi, te, Ht, le, ue = !1, $e = !1, Re, X, Tn = [], In = !1, Fe = [], gn = typeof document < "u", _e = Xi, vi = we || yt ? "cssFloat" : "float", as = gn && !Yi && !Xi && "draggable" in document.createElement("div"), to = function() {
1871
1871
  if (gn) {
1872
1872
  if (yt)
1873
1873
  return !1;
@@ -2010,7 +2010,7 @@ v.prototype = /** @lends Sortable.prototype */
2010
2010
  _onTapStart: function(t) {
2011
2011
  if (t.cancelable) {
2012
2012
  var n = this, i = this.el, o = this.options, r = o.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, c = o.filter;
2013
- if (bs(i), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !u.isContentEditable && !(!this.nativeDraggable && re && l && l.tagName.toUpperCase() === "SELECT") && (l = at(l, o.draggable, i, !1), !(l && l.animated) && Oe !== l)) {
2013
+ if (bs(i), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !u.isContentEditable && !(!this.nativeDraggable && re && l && l.tagName.toUpperCase() === "SELECT") && (l = lt(l, o.draggable, i, !1), !(l && l.animated) && Oe !== l)) {
2014
2014
  if (Ut = nt(l), ae = nt(l, o.draggable), typeof c == "function") {
2015
2015
  if (c.call(this, t, l, this)) {
2016
2016
  q({
@@ -2026,7 +2026,7 @@ v.prototype = /** @lends Sortable.prototype */
2026
2026
  return;
2027
2027
  }
2028
2028
  } else if (c && (c = c.split(",").some(function(d) {
2029
- if (d = at(u, d.trim(), i, !1), d)
2029
+ if (d = lt(u, d.trim(), i, !1), d)
2030
2030
  return q({
2031
2031
  sortable: n,
2032
2032
  rootEl: d,
@@ -2041,7 +2041,7 @@ v.prototype = /** @lends Sortable.prototype */
2041
2041
  r && t.cancelable && t.preventDefault();
2042
2042
  return;
2043
2043
  }
2044
- o.handle && !at(u, o.handle, i, !1) || this._prepareDragStart(t, a, l);
2044
+ o.handle && !lt(u, o.handle, i, !1) || this._prepareDragStart(t, a, l);
2045
2045
  }
2046
2046
  }
2047
2047
  },
@@ -2114,17 +2114,17 @@ v.prototype = /** @lends Sortable.prototype */
2114
2114
  this._nulling();
2115
2115
  },
2116
2116
  _emulateDragOver: function() {
2117
- if (st) {
2118
- this._lastX = st.clientX, this._lastY = st.clientY, io();
2119
- for (var t = document.elementFromPoint(st.clientX, st.clientY), n = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(st.clientX, st.clientY), t !== n); )
2117
+ if (at) {
2118
+ this._lastX = at.clientX, this._lastY = at.clientY, io();
2119
+ for (var t = document.elementFromPoint(at.clientX, at.clientY), n = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(at.clientX, at.clientY), t !== n); )
2120
2120
  n = t;
2121
2121
  if (h.parentNode[tt]._isOutsideThisEl(t), n)
2122
2122
  do {
2123
2123
  if (n[tt]) {
2124
2124
  var i = void 0;
2125
2125
  if (i = n[tt]._onDragOver({
2126
- clientX: st.clientX,
2127
- clientY: st.clientY,
2126
+ clientX: at.clientX,
2127
+ clientY: at.clientY,
2128
2128
  target: t,
2129
2129
  rootEl: n
2130
2130
  }), i && !this.options.dragoverBubble)
@@ -2153,7 +2153,7 @@ v.prototype = /** @lends Sortable.prototype */
2153
2153
  f: d
2154
2154
  };
2155
2155
  var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
2156
- b(w, "webkitTransform", p), b(w, "mozTransform", p), b(w, "msTransform", p), b(w, "transform", p), An = c, Cn = d, st = r;
2156
+ b(w, "webkitTransform", p), b(w, "mozTransform", p), b(w, "msTransform", p), b(w, "transform", p), An = c, Cn = d, at = r;
2157
2157
  }
2158
2158
  t.cancelable && t.preventDefault();
2159
2159
  }
@@ -2227,7 +2227,7 @@ v.prototype = /** @lends Sortable.prototype */
2227
2227
  originalEvent: t
2228
2228
  });
2229
2229
  }
2230
- if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i = at(i, a.draggable, n, !0), P("dragOver"), v.eventCanceled)
2230
+ if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i = lt(i, a.draggable, n, !0), P("dragOver"), v.eventCanceled)
2231
2231
  return y;
2232
2232
  if (h.contains(t.target) || i.animated && i.animatingX && i.animatingY || g._ignoreWhileAnimating === i)
2233
2233
  return B(!1);
@@ -2243,15 +2243,15 @@ v.prototype = /** @lends Sortable.prototype */
2243
2243
  if (Y && n === t.target && (i = Y), i && (r = I(i)), Ae(O, n, h, o, i, r, t, !!i) !== !1)
2244
2244
  return L(), Y && Y.nextSibling ? n.insertBefore(h, Y.nextSibling) : n.appendChild(h), N = n, J(), B(!0);
2245
2245
  } else if (Y && ps(t, f, this)) {
2246
- var ot = Zt(n, 0, a, !0);
2247
- if (ot === h)
2246
+ var rt = Zt(n, 0, a, !0);
2247
+ if (rt === h)
2248
2248
  return B(!1);
2249
- if (i = ot, r = I(i), Ae(O, n, h, o, i, r, t, !1) !== !1)
2250
- return L(), n.insertBefore(h, ot), N = n, J(), B(!0);
2249
+ if (i = rt, r = I(i), Ae(O, n, h, o, i, r, t, !1) !== !1)
2250
+ return L(), n.insertBefore(h, rt), N = n, J(), B(!0);
2251
2251
  } else if (i.parentNode === n) {
2252
2252
  r = I(i);
2253
- var C = 0, z, rt = h.parentNode !== n, Z = !ls(h.animated && h.toRect || o, i.animated && i.toRect || r, f), Yt = f ? "top" : "left", bt = gi(i, "top", "top") || gi(h, "top", "top"), qt = bt ? bt.scrollTop : void 0;
2254
- Ht !== i && (z = r[Yt], ue = !1, $e = !Z && a.invertSwap || rt), C = gs(t, i, r, f, Z ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, $e, Ht === i);
2253
+ var C = 0, z, st = h.parentNode !== n, Z = !ls(h.animated && h.toRect || o, i.animated && i.toRect || r, f), Yt = f ? "top" : "left", bt = gi(i, "top", "top") || gi(h, "top", "top"), qt = bt ? bt.scrollTop : void 0;
2254
+ Ht !== i && (z = r[Yt], ue = !1, $e = !Z && a.invertSwap || st), C = gs(t, i, r, f, Z ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, $e, Ht === i);
2255
2255
  var ct;
2256
2256
  if (C !== 0) {
2257
2257
  var _t = nt(h);
@@ -2336,7 +2336,7 @@ v.prototype = /** @lends Sortable.prototype */
2336
2336
  }), this.save()))), this._nulling();
2337
2337
  },
2338
2338
  _nulling: function() {
2339
- W("nulling", this), O = h = N = w = Ot = D = Oe = xt = Tt = st = te = Q = Et = Ut = ae = Ht = le = k = Se = v.dragged = v.ghost = v.clone = v.active = null, Fe.forEach(function(t) {
2339
+ W("nulling", this), O = h = N = w = Ot = D = Oe = xt = Tt = at = te = Q = Et = Ut = ae = Ht = le = k = Se = v.dragged = v.ghost = v.clone = v.active = null, Fe.forEach(function(t) {
2340
2340
  t.checked = !0;
2341
2341
  }), Fe.length = An = Cn = 0;
2342
2342
  },
@@ -2361,7 +2361,7 @@ v.prototype = /** @lends Sortable.prototype */
2361
2361
  */
2362
2362
  toArray: function() {
2363
2363
  for (var t = [], n, i = this.el.children, o = 0, r = i.length, s = this.options; o < r; o++)
2364
- n = i[o], at(n, s.draggable, this.el, !1) && t.push(n.getAttribute(s.dataIdAttr) || ys(n));
2364
+ n = i[o], lt(n, s.draggable, this.el, !1) && t.push(n.getAttribute(s.dataIdAttr) || ys(n));
2365
2365
  return t;
2366
2366
  },
2367
2367
  /**
@@ -2372,7 +2372,7 @@ v.prototype = /** @lends Sortable.prototype */
2372
2372
  var i = {}, o = this.el;
2373
2373
  this.toArray().forEach(function(r, s) {
2374
2374
  var a = o.children[s];
2375
- at(a, this.options.draggable, o, !1) && (i[r] = a);
2375
+ lt(a, this.options.draggable, o, !1) && (i[r] = a);
2376
2376
  }, this), n && this.captureAnimationState(), t.forEach(function(r) {
2377
2377
  i[r] && (o.removeChild(i[r]), o.appendChild(i[r]));
2378
2378
  }), n && this.animateAll();
@@ -2391,7 +2391,7 @@ v.prototype = /** @lends Sortable.prototype */
2391
2391
  * @returns {HTMLElement|null}
2392
2392
  */
2393
2393
  closest: function(t, n) {
2394
- return at(t, n || this.options.draggable, this.el, !1);
2394
+ return lt(t, n || this.options.draggable, this.el, !1);
2395
2395
  },
2396
2396
  /**
2397
2397
  * Set/get option
@@ -2502,11 +2502,11 @@ v.utils = {
2502
2502
  css: b,
2503
2503
  find: Wi,
2504
2504
  is: function(t, n) {
2505
- return !!at(t, n, t, !1);
2505
+ return !!lt(t, n, t, !1);
2506
2506
  },
2507
2507
  extend: ts,
2508
2508
  throttle: Gi,
2509
- closest: at,
2509
+ closest: lt,
2510
2510
  toggleClass: K,
2511
2511
  clone: Ki,
2512
2512
  index: nt,
@@ -2598,9 +2598,9 @@ var Dn = Gi(function(e, t, n, i) {
2598
2598
  Bn !== n && (Bn = n, Ne(), ee = t.scroll, c = t.scrollFn, ee === !0 && (ee = St(n, !0)));
2599
2599
  var d = 0, p = ee;
2600
2600
  do {
2601
- var f = p, g = I(f), y = g.top, P = g.bottom, L = g.left, B = g.right, J = g.width, Y = g.height, ot = void 0, C = void 0, z = f.scrollWidth, rt = f.scrollHeight, Z = b(f), Yt = f.scrollLeft, bt = f.scrollTop;
2602
- f === l ? (ot = J < z && (Z.overflowX === "auto" || Z.overflowX === "scroll" || Z.overflowX === "visible"), C = Y < rt && (Z.overflowY === "auto" || Z.overflowY === "scroll" || Z.overflowY === "visible")) : (ot = J < z && (Z.overflowX === "auto" || Z.overflowX === "scroll"), C = Y < rt && (Z.overflowY === "auto" || Z.overflowY === "scroll"));
2603
- var qt = ot && (Math.abs(B - o) <= s && Yt + J < z) - (Math.abs(L - o) <= s && !!Yt), ct = C && (Math.abs(P - r) <= s && bt + Y < rt) - (Math.abs(y - r) <= s && !!bt);
2601
+ var f = p, g = I(f), y = g.top, P = g.bottom, L = g.left, B = g.right, J = g.width, Y = g.height, rt = void 0, C = void 0, z = f.scrollWidth, st = f.scrollHeight, Z = b(f), Yt = f.scrollLeft, bt = f.scrollTop;
2602
+ f === l ? (rt = J < z && (Z.overflowX === "auto" || Z.overflowX === "scroll" || Z.overflowX === "visible"), C = Y < st && (Z.overflowY === "auto" || Z.overflowY === "scroll" || Z.overflowY === "visible")) : (rt = J < z && (Z.overflowX === "auto" || Z.overflowX === "scroll"), C = Y < st && (Z.overflowY === "auto" || Z.overflowY === "scroll"));
2603
+ var qt = rt && (Math.abs(B - o) <= s && Yt + J < z) - (Math.abs(L - o) <= s && !!Yt), ct = C && (Math.abs(P - r) <= s && bt + Y < st) - (Math.abs(y - r) <= s && !!bt);
2604
2604
  if (!M[d])
2605
2605
  for (var _t = 0; _t <= d; _t++)
2606
2606
  M[_t] || (M[_t] = {});
@@ -2899,19 +2899,19 @@ function Ws(e, t, n) {
2899
2899
  throw new TypeError(Is);
2900
2900
  t = xi(t) || 0, Un(n) && (c = !!n.leading, d = "maxWait" in n, r = d ? Ys(xi(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
2901
2901
  function f(C) {
2902
- var z = i, rt = o;
2903
- return i = o = void 0, u = C, s = e.apply(rt, z), s;
2902
+ var z = i, st = o;
2903
+ return i = o = void 0, u = C, s = e.apply(st, z), s;
2904
2904
  }
2905
2905
  function g(C) {
2906
2906
  return u = C, a = setTimeout(L, t), c ? f(C) : s;
2907
2907
  }
2908
2908
  function y(C) {
2909
- var z = C - l, rt = C - u, Z = t - z;
2910
- return d ? qs(Z, r - rt) : Z;
2909
+ var z = C - l, st = C - u, Z = t - z;
2910
+ return d ? qs(Z, r - st) : Z;
2911
2911
  }
2912
2912
  function P(C) {
2913
- var z = C - l, rt = C - u;
2914
- return l === void 0 || z >= t || z < 0 || d && rt >= r;
2913
+ var z = C - l, st = C - u;
2914
+ return l === void 0 || z >= t || z < 0 || d && st >= r;
2915
2915
  }
2916
2916
  function L() {
2917
2917
  var C = Nn();
@@ -2928,7 +2928,7 @@ function Ws(e, t, n) {
2928
2928
  function Y() {
2929
2929
  return a === void 0 ? s : B(Nn());
2930
2930
  }
2931
- function ot() {
2931
+ function rt() {
2932
2932
  var C = Nn(), z = P(C);
2933
2933
  if (i = arguments, o = this, l = C, z) {
2934
2934
  if (a === void 0)
@@ -2938,7 +2938,7 @@ function Ws(e, t, n) {
2938
2938
  }
2939
2939
  return a === void 0 && (a = setTimeout(L, t)), s;
2940
2940
  }
2941
- return ot.cancel = J, ot.flush = Y, ot;
2941
+ return rt.cancel = J, rt.flush = Y, rt;
2942
2942
  }
2943
2943
  function Un(e) {
2944
2944
  var t = typeof e;
@@ -3022,7 +3022,7 @@ class ho extends et {
3022
3022
  ${R(this, Ze)}
3023
3023
  ${!this.unstyled && R(this, Xe)}
3024
3024
  </style>
3025
- ${lt(
3025
+ ${ot(
3026
3026
  this.layerConfig,
3027
3027
  () => x`
3028
3028
  <!-- Render a JSON form for layer configuration -->
@@ -3124,7 +3124,7 @@ class fo extends et {
3124
3124
  </style>
3125
3125
  <div class="tabbed">
3126
3126
  <!-- Navigation for tabs and actions -->
3127
- ${lt(
3127
+ ${ot(
3128
3128
  o,
3129
3129
  () => x`
3130
3130
  <nav>
@@ -3554,10 +3554,10 @@ class mo extends et {
3554
3554
  ${R(this, We)}
3555
3555
  ${!this.unstyled && R(this, Ge)}
3556
3556
  </style>
3557
- ${lt(
3557
+ ${ot(
3558
3558
  s + a > 0,
3559
3559
  () => x`
3560
- ${lt(
3560
+ ${ot(
3561
3561
  s === 1 && a === 0,
3562
3562
  () => x`
3563
3563
  <div class="single-action-container">
@@ -3599,14 +3599,19 @@ class mo extends et {
3599
3599
  </div>
3600
3600
  <div slot="config-content">
3601
3601
  <!-- Layer configuration -->
3602
- <eox-layercontrol-layerconfig
3603
- slot="config-content"
3604
- .layer=${this.layer}
3605
- .noShadow=${!0}
3606
- .layerConfig=${this.layer.get("layerConfig")}
3607
- .unstyled=${this.unstyled}
3608
- @changed=${() => this.requestUpdate()}
3609
- ></eox-layercontrol-layerconfig>
3602
+ ${ot(
3603
+ this.layer.get("layerConfig"),
3604
+ () => x`
3605
+ <eox-layercontrol-layerconfig
3606
+ slot="config-content"
3607
+ .layer=${this.layer}
3608
+ .noShadow=${!0}
3609
+ .layerConfig=${this.layer.get("layerConfig")}
3610
+ .unstyled=${this.unstyled}
3611
+ @changed=${() => this.requestUpdate()}
3612
+ ></eox-layercontrol-layerconfig>
3613
+ `
3614
+ )}
3610
3615
  </div>
3611
3616
  <div slot="remove-icon">${this._removeButton()}</div>
3612
3617
  <div slot="sort-icon">${this._sortButton()}</div>
@@ -3752,7 +3757,7 @@ class yo extends et {
3752
3757
  ${R(this, Ke)}
3753
3758
  ${!this.unstyled && R(this, Qe)}
3754
3759
  </style>
3755
- ${lt(
3760
+ ${ot(
3756
3761
  this.layer,
3757
3762
  () => x`
3758
3763
  <!-- Render the layer -->
@@ -3767,7 +3772,7 @@ class yo extends et {
3767
3772
 
3768
3773
  <!-- Layer title -->
3769
3774
  <span class="title">${U(this, Ft, Ie).call(this, this.titleProperty)}</span>
3770
- ${lt(
3775
+ ${ot(
3771
3776
  a,
3772
3777
  () => x`<span class="tools-placeholder"></span>`
3773
3778
  )}
@@ -3855,7 +3860,7 @@ class vo extends et {
3855
3860
  ${R(this, tn)}
3856
3861
  ${!this.unstyled && R(this, en)}
3857
3862
  </style>
3858
- ${lt(
3863
+ ${ot(
3859
3864
  this.group,
3860
3865
  () => x`
3861
3866
  <!-- Render the details element with the layer control -->
@@ -3995,7 +4000,7 @@ class wo extends et {
3995
4000
  ${!this.unstyled && R(this, on)}
3996
4001
  </style>
3997
4002
  <ul>
3998
- ${lt(
4003
+ ${ot(
3999
4004
  this.layers,
4000
4005
  () => x`
4001
4006
  ${Ko(
@@ -4591,7 +4596,7 @@ class To extends et {
4591
4596
  </style>
4592
4597
 
4593
4598
  <!-- Conditional rendering of add layers component -->
4594
- ${lt(
4599
+ ${ot(
4595
4600
  this.addExternalLayers && ((s = R(this, zt)) == null ? void 0 : s.addOrUpdateLayer),
4596
4601
  () => x`
4597
4602
  <eox-layercontrol-add-layers
@@ -4603,7 +4608,7 @@ class To extends et {
4603
4608
  )}
4604
4609
 
4605
4610
  <!-- Conditional rendering of layer list component -->
4606
- ${lt(
4611
+ ${ot(
4607
4612
  this.map,
4608
4613
  () => x`
4609
4614
  <eox-layercontrol-layer-list
@@ -4622,7 +4627,7 @@ class To extends et {
4622
4627
  )}
4623
4628
 
4624
4629
  <!-- Conditional rendering of optional list component -->
4625
- ${lt(
4630
+ ${ot(
4626
4631
  i,
4627
4632
  () => x`
4628
4633
  <eox-layercontrol-optional-list
@@ -20,7 +20,7 @@
20
20
  * @license
21
21
  * Copyright 2021 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */function at(e,t,n){return e?t(e):n==null?void 0:n(e)}/**
23
+ */function st(e,t,n){return e?t(e):n==null?void 0:n(e)}/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
@@ -42,7 +42,7 @@
42
42
  * @author RubaXa <trash@rubaxa.org>
43
43
  * @author owenm <owen23355@gmail.com>
44
44
  * @license MIT
45
- */function Mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mi(Object(n),!0).forEach(function(i){Zr(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Pe(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pe=function(t){return typeof t}:Pe=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pe(e)}function Zr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yt(){return yt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},yt.apply(this,arguments)}function Xr(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,r;for(r=0;r<i.length;r++)o=i[r],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Yr(e,t){if(e==null)return{};var n=Xr(e,t),i,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}var qr="1.15.2";function bt(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var vt=bt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),se=bt(/Edge/i),Ii=bt(/firefox/i),ae=bt(/safari/i)&&!bt(/chrome/i)&&!bt(/android/i),Hi=bt(/iP(ad|od|hone)/i),Bi=bt(/chrome/i)&&bt(/android/i),Vi={capture:!1,passive:!1};function C(e,t,n){e.addEventListener(t,n,!vt&&Vi)}function S(e,t,n){e.removeEventListener(t,n,!vt&&Vi)}function Oe(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Wr(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function lt(e,t,n,i){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&Oe(e,t):Oe(e,t))||i&&e===n)return e;if(e===n)break}while(e=Wr(e))}return null}var Li=/\s+/g;function et(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(Li," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(Li," ")}}function b(e,t,n){var i=e&&e.style;if(i){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in i)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),i[t]=n+(typeof n=="string"?"":"px")}}function kt(e,t){var n="";if(typeof e=="string")n=e;else do{var i=b(e,"transform");i&&i!=="none"&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function Ui(e,t,n){if(e){var i=e.getElementsByTagName(t),o=0,r=i.length;if(n)for(;o<r;o++)n(i[o],o);return i}return[]}function pt(){var e=document.scrollingElement;return e||document.documentElement}function B(e,t,n,i,o){if(!(!e.getBoundingClientRect&&e!==window)){var r,s,a,l,u,c,d;if(e!==window&&e.parentNode&&e!==pt()?(r=e.getBoundingClientRect(),s=r.top,a=r.left,l=r.bottom,u=r.right,c=r.height,d=r.width):(s=0,a=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!vt))do if(o&&o.getBoundingClientRect&&(b(o,"transform")!=="none"||n&&b(o,"position")!=="static")){var p=o.getBoundingClientRect();s-=p.top+parseInt(b(o,"border-top-width")),a-=p.left+parseInt(b(o,"border-left-width")),l=s+r.height,u=a+r.width;break}while(o=o.parentNode);if(i&&e!==window){var f=kt(o||e),g=f&&f.a,y=f&&f.d;f&&(s/=y,a/=g,d/=g,c/=y,l=s+c,u=a+d)}return{top:s,left:a,bottom:l,right:u,width:d,height:c}}}function ki(e,t,n){for(var i=St(e,!0),o=B(e)[t];i;){var r=B(i)[n],s=void 0;if(n==="top"||n==="left"?s=o>=r:s=o<=r,!s)return i;if(i===pt())break;i=St(i,!1)}return!1}function Ft(e,t,n,i){for(var o=0,r=0,s=e.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==v.ghost&&(i||s[r]!==v.dragged)&&lt(s[r],n.draggable,e,!1)){if(o===t)return s[r];o++}r++}return null}function Nn(e,t){for(var n=e.lastElementChild;n&&(n===v.ghost||b(n,"display")==="none"||t&&!Oe(n,t));)n=n.previousElementSibling;return n||null}function st(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==v.clone&&(!t||Oe(e,t))&&n++;return n}function Fi(e){var t=0,n=0,i=pt();if(e)do{var o=kt(e),r=o.a,s=o.d;t+=e.scrollLeft*r,n+=e.scrollTop*s}while(e!==i&&(e=e.parentNode));return[t,n]}function Gr(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n)}return-1}function St(e,t){if(!e||!e.getBoundingClientRect)return pt();var n=e,i=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=b(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return pt();if(i||t)return n;i=!0}}while(n=n.parentNode);return pt()}function Jr(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Mn(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var le;function ji(e,t){return function(){if(!le){var n=arguments,i=this;n.length===1?e.call(i,n[0]):e.apply(i,n),le=setTimeout(function(){le=void 0},t)}}}function Kr(){clearTimeout(le),le=void 0}function zi(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Zi(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Xi(e,t,n){var i={};return Array.from(e.children).forEach(function(o){var r,s,a,l;if(!(!lt(o,t.draggable,e,!1)||o.animated||o===n)){var u=B(o);i.left=Math.min((r=i.left)!==null&&r!==void 0?r:1/0,u.left),i.top=Math.min((s=i.top)!==null&&s!==void 0?s:1/0,u.top),i.right=Math.max((a=i.right)!==null&&a!==void 0?a:-1/0,u.right),i.bottom=Math.max((l=i.bottom)!==null&&l!==void 0?l:-1/0,u.bottom)}}),i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}var nt="Sortable"+new Date().getTime();function Qr(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(o){if(!(b(o,"display")==="none"||o===v.ghost)){e.push({target:o,rect:B(o)});var r=ht({},e[e.length-1].rect);if(o.thisAnimationDuration){var s=kt(o,!0);s&&(r.top-=s.f,r.left-=s.e)}o.fromRect=r}})}},addAnimationState:function(i){e.push(i)},removeAnimationState:function(i){e.splice(Gr(e,{target:i}),1)},animateAll:function(i){var o=this;if(!this.options.animation){clearTimeout(t),typeof i=="function"&&i();return}var r=!1,s=0;e.forEach(function(a){var l=0,u=a.target,c=u.fromRect,d=B(u),p=u.prevFromRect,f=u.prevToRect,g=a.rect,y=kt(u,!0);y&&(d.top-=y.f,d.left-=y.e),u.toRect=d,u.thisAnimationDuration&&Mn(p,d)&&!Mn(c,d)&&(g.top-d.top)/(g.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(l=es(g,p,f,o.options)),Mn(d,c)||(u.prevFromRect=c,u.prevToRect=d,l||(l=o.options.animation),o.animate(u,g,d,l)),l&&(r=!0,s=Math.max(s,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(t),r?t=setTimeout(function(){typeof i=="function"&&i()},s):typeof i=="function"&&i(),e=[]},animate:function(i,o,r,s){if(s){b(i,"transition",""),b(i,"transform","");var a=kt(this.el),l=a&&a.a,u=a&&a.d,c=(o.left-r.left)/(l||1),d=(o.top-r.top)/(u||1);i.animatingX=!!c,i.animatingY=!!d,b(i,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=ts(i),b(i,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),b(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){b(i,"transition",""),b(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},s)}}}}function ts(e){return e.offsetWidth}function es(e,t,n,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*i.animation}var jt=[],In={initializeByDefault:!0},ue={mount:function(t){for(var n in In)In.hasOwnProperty(n)&&!(n in t)&&(t[n]=In[n]);jt.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),jt.push(t)},pluginEvent:function(t,n,i){var o=this;this.eventCanceled=!1,i.cancel=function(){o.eventCanceled=!0};var r=t+"Global";jt.forEach(function(s){n[s.pluginName]&&(n[s.pluginName][r]&&n[s.pluginName][r](ht({sortable:n},i)),n.options[s.pluginName]&&n[s.pluginName][t]&&n[s.pluginName][t](ht({sortable:n},i)))})},initializePlugins:function(t,n,i,o){jt.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var u=new a(t,n,t.options);u.sortable=t,u.options=t.options,t[l]=u,yt(i,u.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var s=this.modifyOption(t,r,t.options[r]);typeof s<"u"&&(t.options[r]=s)}},getEventProperties:function(t,n){var i={};return jt.forEach(function(o){typeof o.eventProperties=="function"&&yt(i,o.eventProperties.call(n[o.pluginName],t))}),i},modifyOption:function(t,n,i){var o;return jt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[n]=="function"&&(o=r.optionListeners[n].call(t[r.pluginName],i))}),o}};function ns(e){var t=e.sortable,n=e.rootEl,i=e.name,o=e.targetEl,r=e.cloneEl,s=e.toEl,a=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,p=e.originalEvent,f=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[nt],!!t){var y,D=t.options,Z="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!vt&&!se?y=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(i,!0,!0)),y.to=s||n,y.from=a||n,y.item=o||n,y.clone=r,y.oldIndex=l,y.newIndex=u,y.oldDraggableIndex=c,y.newDraggableIndex=d,y.originalEvent=p,y.pullMode=f?f.lastPutMode:void 0;var k=ht(ht({},g),ue.getEventProperties(i,t));for(var ot in k)y[ot]=k[ot];n&&n.dispatchEvent(y),D[Z]&&D[Z].call(t,y)}}var is=["evt"],Q=function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.evt,r=Yr(i,is);ue.pluginEvent.bind(v)(t,n,ht({dragEl:h,parentEl:H,ghostEl:w,rootEl:R,nextEl:Mt,lastDownEl:Re,cloneEl:N,cloneHidden:$t,dragStarted:ce,putSortable:z,activeSortable:v.active,originalEvent:o,oldIndex:zt,oldDraggableIndex:de,newIndex:it,newDraggableIndex:_t,hideGhostForTarget:Qi,unhideGhostForTarget:to,cloneNowHidden:function(){$t=!0},cloneNowShown:function(){$t=!1},dispatchSortableEvent:function(a){G({sortable:n,name:a,originalEvent:o})}},r))};function G(e){ns(ht({putSortable:z,cloneEl:N,targetEl:h,rootEl:R,oldIndex:zt,oldDraggableIndex:de,newIndex:it,newDraggableIndex:_t},e))}var h,H,w,R,Mt,Re,N,$t,zt,it,de,_t,De,z,Zt=!1,Ne=!1,Me=[],It,ut,Hn,Bn,Yi,qi,ce,Xt,he,pe=!1,Ie=!1,He,Y,Vn=[],Ln=!1,Be=[],Ve=typeof document<"u",Le=Hi,Wi=se||vt?"cssFloat":"float",os=Ve&&!Bi&&!Hi&&"draggable"in document.createElement("div"),Gi=function(){if(Ve){if(vt)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Ji=function(t,n){var i=b(t),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=Ft(t,0,n),s=Ft(t,1,n),a=r&&b(r),l=s&&b(s),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+B(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+B(s).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||u>=o&&i[Wi]==="none"||s&&i[Wi]==="none"&&u+c>o)?"vertical":"horizontal"},rs=function(t,n,i){var o=i?t.left:t.top,r=i?t.right:t.bottom,s=i?t.width:t.height,a=i?n.left:n.top,l=i?n.right:n.bottom,u=i?n.width:n.height;return o===a||r===l||o+s/2===a+u/2},ss=function(t,n){var i;return Me.some(function(o){var r=o[nt].options.emptyInsertThreshold;if(!(!r||Nn(o))){var s=B(o),a=t>=s.left-r&&t<=s.right+r,l=n>=s.top-r&&n<=s.bottom+r;if(a&&l)return i=o}}),i},Ki=function(t){function n(r,s){return function(a,l,u,c){var d=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(r==null&&(s||d))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return n(r(a,l,u,c),s)(a,l,u,c);var p=(s?a:l).options.group.name;return r===!0||typeof r=="string"&&r===p||r.join&&r.indexOf(p)>-1}}var i={},o=t.group;(!o||Pe(o)!="object")&&(o={name:o}),i.name=o.name,i.checkPull=n(o.pull,!0),i.checkPut=n(o.put),i.revertClone=o.revertClone,t.group=i},Qi=function(){!Gi&&w&&b(w,"display","none")},to=function(){!Gi&&w&&b(w,"display","")};Ve&&!Bi&&document.addEventListener("click",function(e){if(Ne)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ne=!1,!1},!0);var Ht=function(t){if(h){t=t.touches?t.touches[0]:t;var n=ss(t.clientX,t.clientY);if(n){var i={};for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o]);i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[nt]._onDragOver(i)}}},as=function(t){h&&h.parentNode[nt]._isOutsideThisEl(t.target)};function v(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=yt({},t),e[nt]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ji(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,a){s.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:v.supportPointer!==!1&&"PointerEvent"in window&&!ae,emptyInsertThreshold:5};ue.initializePlugins(this,e,n);for(var i in n)!(i in t)&&(t[i]=n[i]);Ki(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:os,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?C(e,"pointerdown",this._onTapStart):(C(e,"mousedown",this._onTapStart),C(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(C(e,"dragover",this),C(e,"dragenter",this)),Me.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),yt(this,Qr())}v.prototype={constructor:v,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Xt=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,h):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,i=this.el,o=this.options,r=o.preventOnFilter,s=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(a||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=o.filter;if(gs(i),!h&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&ae&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=lt(l,o.draggable,i,!1),!(l&&l.animated)&&Re!==l)){if(zt=st(l),de=st(l,o.draggable),typeof c=="function"){if(c.call(this,t,l,this)){G({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:i,fromEl:i}),Q("filter",n,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=lt(u,d.trim(),i,!1),d)return G({sortable:n,rootEl:d,name:"filter",targetEl:l,fromEl:i,toEl:i}),Q("filter",n,{evt:t}),!0}),c)){r&&t.cancelable&&t.preventDefault();return}o.handle&&!lt(u,o.handle,i,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,n,i){var o=this,r=o.el,s=o.options,a=r.ownerDocument,l;if(i&&!h&&i.parentNode===r){var u=B(i);if(R=r,h=i,H=h.parentNode,Mt=h.nextSibling,Re=i,De=s.group,v.dragged=h,It={target:h,clientX:(n||t).clientX,clientY:(n||t).clientY},Yi=It.clientX-u.left,qi=It.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,h.style["will-change"]="all",l=function(){if(Q("delayEnded",o,{evt:t}),v.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Ii&&o.nativeDraggable&&(h.draggable=!0),o._triggerDragStart(t,n),G({sortable:o,name:"choose",originalEvent:t}),et(h,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){Ui(h,c.trim(),Un)}),C(a,"dragover",Ht),C(a,"mousemove",Ht),C(a,"touchmove",Ht),C(a,"mouseup",o._onDrop),C(a,"touchend",o._onDrop),C(a,"touchcancel",o._onDrop),Ii&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),Q("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(se||vt))){if(v.eventCanceled){this._onDrop();return}C(a,"mouseup",o._disableDelayedDrag),C(a,"touchend",o._disableDelayedDrag),C(a,"touchcancel",o._disableDelayedDrag),C(a,"mousemove",o._delayedDragTouchMoveHandler),C(a,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&C(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){h&&Un(h),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;S(t,"mouseup",this._disableDelayedDrag),S(t,"touchend",this._disableDelayedDrag),S(t,"touchcancel",this._disableDelayedDrag),S(t,"mousemove",this._delayedDragTouchMoveHandler),S(t,"touchmove",this._delayedDragTouchMoveHandler),S(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?C(document,"pointermove",this._onTouchMove):n?C(document,"touchmove",this._onTouchMove):C(document,"mousemove",this._onTouchMove):(C(h,"dragend",this),C(R,"dragstart",this._onDragStart));try{document.selection?ke(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Zt=!1,R&&h){Q("dragStarted",this,{evt:n}),this.nativeDraggable&&C(document,"dragover",as);var i=this.options;!t&&et(h,i.dragClass,!1),et(h,i.ghostClass,!0),v.active=this,t&&this._appendGhost(),G({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ut){this._lastX=ut.clientX,this._lastY=ut.clientY,Qi();for(var t=document.elementFromPoint(ut.clientX,ut.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ut.clientX,ut.clientY),t!==n);)n=t;if(h.parentNode[nt]._isOutsideThisEl(t),n)do{if(n[nt]){var i=void 0;if(i=n[nt]._onDragOver({clientX:ut.clientX,clientY:ut.clientY,target:t,rootEl:n}),i&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);to()}},_onTouchMove:function(t){if(It){var n=this.options,i=n.fallbackTolerance,o=n.fallbackOffset,r=t.touches?t.touches[0]:t,s=w&&kt(w,!0),a=w&&s&&s.a,l=w&&s&&s.d,u=Le&&Y&&Fi(Y),c=(r.clientX-It.clientX+o.x)/(a||1)+(u?u[0]-Vn[0]:0)/(a||1),d=(r.clientY-It.clientY+o.y)/(l||1)+(u?u[1]-Vn[1]:0)/(l||1);if(!v.active&&!Zt){if(i&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(w){s?(s.e+=c-(Hn||0),s.f+=d-(Bn||0)):s={a:1,b:0,c:0,d:1,e:c,f:d};var p="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");b(w,"webkitTransform",p),b(w,"mozTransform",p),b(w,"msTransform",p),b(w,"transform",p),Hn=c,Bn=d,ut=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!w){var t=this.options.fallbackOnBody?document.body:R,n=B(h,!0,Le,!0,t),i=this.options;if(Le){for(Y=t;b(Y,"position")==="static"&&b(Y,"transform")==="none"&&Y!==document;)Y=Y.parentNode;Y!==document.body&&Y!==document.documentElement?(Y===document&&(Y=pt()),n.top+=Y.scrollTop,n.left+=Y.scrollLeft):Y=pt(),Vn=Fi(Y)}w=h.cloneNode(!0),et(w,i.ghostClass,!1),et(w,i.fallbackClass,!0),et(w,i.dragClass,!0),b(w,"transition",""),b(w,"transform",""),b(w,"box-sizing","border-box"),b(w,"margin",0),b(w,"top",n.top),b(w,"left",n.left),b(w,"width",n.width),b(w,"height",n.height),b(w,"opacity","0.8"),b(w,"position",Le?"absolute":"fixed"),b(w,"zIndex","100000"),b(w,"pointerEvents","none"),v.ghost=w,t.appendChild(w),b(w,"transform-origin",Yi/parseInt(w.style.width)*100+"% "+qi/parseInt(w.style.height)*100+"%")}},_onDragStart:function(t,n){var i=this,o=t.dataTransfer,r=i.options;if(Q("dragStart",this,{evt:t}),v.eventCanceled){this._onDrop();return}Q("setupClone",this),v.eventCanceled||(N=Zi(h),N.removeAttribute("id"),N.draggable=!1,N.style["will-change"]="",this._hideClone(),et(N,this.options.chosenClass,!1),v.clone=N),i.cloneId=ke(function(){Q("clone",i),!v.eventCanceled&&(i.options.removeCloneOnHide||R.insertBefore(N,h),i._hideClone(),G({sortable:i,name:"clone"}))}),!n&&et(h,r.dragClass,!0),n?(Ne=!0,i._loopId=setInterval(i._emulateDragOver,50)):(S(document,"mouseup",i._onDrop),S(document,"touchend",i._onDrop),S(document,"touchcancel",i._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(i,o,h)),C(document,"drop",i),b(h,"transform","translateZ(0)")),Zt=!0,i._dragStartId=ke(i._dragStarted.bind(i,n,t)),C(document,"selectstart",i),ce=!0,ae&&b(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,i=t.target,o,r,s,a=this.options,l=a.group,u=v.active,c=De===l,d=a.sort,p=z||u,f,g=this,y=!1;if(Ln)return;function D($e,ha){Q($e,g,ht({evt:t,isOwner:c,axis:f?"vertical":"horizontal",revert:s,dragRect:o,targetRect:r,canSort:d,fromSortable:p,target:i,completed:k,onMove:function(xo,pa){return Ue(R,n,h,o,xo,B(xo),t,pa)},changed:ot},ha))}function Z(){D("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function k($e){return D("dragOverCompleted",{insertion:$e}),$e&&(c?u._hideClone():u._showClone(g),g!==p&&(et(h,z?z.options.ghostClass:u.options.ghostClass,!1),et(h,a.ghostClass,!0)),z!==g&&g!==v.active?z=g:g===v.active&&z&&(z=null),p===g&&(g._ignoreWhileAnimating=i),g.animateAll(function(){D("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===h&&!h.animated||i===n&&!i.animated)&&(Xt=null),!a.dragoverBubble&&!t.rootEl&&i!==document&&(h.parentNode[nt]._isOutsideThisEl(t.target),!$e&&Ht(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function ot(){it=st(h),_t=st(h,a.draggable),G({sortable:g,name:"change",toEl:n,newIndex:it,newDraggableIndex:_t,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=lt(i,a.draggable,n,!0),D("dragOver"),v.eventCanceled)return y;if(h.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||g._ignoreWhileAnimating===i)return k(!1);if(Ne=!1,u&&!a.disabled&&(c?d||(s=H!==R):z===this||(this.lastPutMode=De.checkPull(this,u,h,t))&&l.checkPut(this,u,h,t))){if(f=this._getDirection(t,i)==="vertical",o=B(h),D("dragOverValid"),v.eventCanceled)return y;if(s)return H=R,Z(),this._hideClone(),D("revert"),v.eventCanceled||(Mt?R.insertBefore(h,Mt):R.appendChild(h)),k(!0);var J=Nn(n,a.draggable);if(!J||cs(t,f,this)&&!J.animated){if(J===h)return k(!1);if(J&&n===t.target&&(i=J),i&&(r=B(i)),Ue(R,n,h,o,i,r,t,!!i)!==!1)return Z(),J&&J.nextSibling?n.insertBefore(h,J.nextSibling):n.appendChild(h),H=n,ot(),k(!0)}else if(J&&ds(t,f,this)){var dt=Ft(n,0,a,!0);if(dt===h)return k(!1);if(i=dt,r=B(i),Ue(R,n,h,o,i,r,t,!1)!==!1)return Z(),n.insertBefore(h,dt),H=n,ot(),k(!0)}else if(i.parentNode===n){r=B(i);var P=0,q,ct=h.parentNode!==n,W=!rs(h.animated&&h.toRect||o,i.animated&&i.toRect||r,f),Ee=f?"top":"left",At=ki(i,"top","top")||ki(h,"top","top"),xe=At?At.scrollTop:void 0;Xt!==i&&(q=r[Ee],pe=!1,Ie=!W&&a.invertSwap||ct),P=hs(t,i,r,f,W?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Ie,Xt===i);var wt;if(P!==0){var Bt=st(h);do Bt-=P,wt=H.children[Bt];while(wt&&(b(wt,"display")==="none"||wt===w))}if(P===0||wt===i)return k(!1);Xt=i,he=P;var Se=i.nextElementSibling,Ct=!1;Ct=P===1;var mn=Ue(R,n,h,o,i,r,t,Ct);if(mn!==!1)return(mn===1||mn===-1)&&(Ct=mn===1),Ln=!0,setTimeout(us,30),Z(),Ct&&!Se?n.appendChild(h):i.parentNode.insertBefore(h,Ct?Se:i),At&&zi(At,0,xe-At.scrollTop),H=h.parentNode,q!==void 0&&!Ie&&(He=Math.abs(q-B(i)[Ee])),ot(),k(!0)}if(n.contains(h))return k(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){S(document,"mousemove",this._onTouchMove),S(document,"touchmove",this._onTouchMove),S(document,"pointermove",this._onTouchMove),S(document,"dragover",Ht),S(document,"mousemove",Ht),S(document,"touchmove",Ht)},_offUpEvents:function(){var t=this.el.ownerDocument;S(t,"mouseup",this._onDrop),S(t,"touchend",this._onDrop),S(t,"pointerup",this._onDrop),S(t,"touchcancel",this._onDrop),S(document,"selectstart",this)},_onDrop:function(t){var n=this.el,i=this.options;if(it=st(h),_t=st(h,i.draggable),Q("drop",this,{evt:t}),H=h&&h.parentNode,it=st(h),_t=st(h,i.draggable),v.eventCanceled){this._nulling();return}Zt=!1,Ie=!1,pe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),kn(this.cloneId),kn(this._dragStartId),this.nativeDraggable&&(S(document,"drop",this),S(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ae&&b(document.body,"user-select",""),b(h,"transform",""),t&&(ce&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),w&&w.parentNode&&w.parentNode.removeChild(w),(R===H||z&&z.lastPutMode!=="clone")&&N&&N.parentNode&&N.parentNode.removeChild(N),h&&(this.nativeDraggable&&S(h,"dragend",this),Un(h),h.style["will-change"]="",ce&&!Zt&&et(h,z?z.options.ghostClass:this.options.ghostClass,!1),et(h,this.options.chosenClass,!1),G({sortable:this,name:"unchoose",toEl:H,newIndex:null,newDraggableIndex:null,originalEvent:t}),R!==H?(it>=0&&(G({rootEl:H,name:"add",toEl:H,fromEl:R,originalEvent:t}),G({sortable:this,name:"remove",toEl:H,originalEvent:t}),G({rootEl:H,name:"sort",toEl:H,fromEl:R,originalEvent:t}),G({sortable:this,name:"sort",toEl:H,originalEvent:t})),z&&z.save()):it!==zt&&it>=0&&(G({sortable:this,name:"update",toEl:H,originalEvent:t}),G({sortable:this,name:"sort",toEl:H,originalEvent:t})),v.active&&((it==null||it===-1)&&(it=zt,_t=de),G({sortable:this,name:"end",toEl:H,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Q("nulling",this),R=h=H=w=Mt=N=Re=$t=It=ut=ce=it=_t=zt=de=Xt=he=z=De=v.dragged=v.ghost=v.clone=v.active=null,Be.forEach(function(t){t.checked=!0}),Be.length=Hn=Bn=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),ls(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,i=this.el.children,o=0,r=i.length,s=this.options;o<r;o++)n=i[o],lt(n,s.draggable,this.el,!1)&&t.push(n.getAttribute(s.dataIdAttr)||fs(n));return t},sort:function(t,n){var i={},o=this.el;this.toArray().forEach(function(r,s){var a=o.children[s];lt(a,this.options.draggable,o,!1)&&(i[r]=a)},this),n&&this.captureAnimationState(),t.forEach(function(r){i[r]&&(o.removeChild(i[r]),o.appendChild(i[r]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return lt(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var i=this.options;if(n===void 0)return i[t];var o=ue.modifyOption(this,t,n);typeof o<"u"?i[t]=o:i[t]=n,t==="group"&&Ki(i)},destroy:function(){Q("destroy",this);var t=this.el;t[nt]=null,S(t,"mousedown",this._onTapStart),S(t,"touchstart",this._onTapStart),S(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(S(t,"dragover",this),S(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Me.splice(Me.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!$t){if(Q("hideClone",this),v.eventCanceled)return;b(N,"display","none"),this.options.removeCloneOnHide&&N.parentNode&&N.parentNode.removeChild(N),$t=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if($t){if(Q("showClone",this),v.eventCanceled)return;h.parentNode==R&&!this.options.group.revertClone?R.insertBefore(N,h):Mt?R.insertBefore(N,Mt):R.appendChild(N),this.options.group.revertClone&&this.animate(h,N),b(N,"display",""),$t=!1}}};function ls(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Ue(e,t,n,i,o,r,s,a){var l,u=e[nt],c=u.options.onMove,d;return window.CustomEvent&&!vt&&!se?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=i,l.related=o||t,l.relatedRect=r||B(t),l.willInsertAfter=a,l.originalEvent=s,e.dispatchEvent(l),c&&(d=c.call(u,l,s)),d}function Un(e){e.draggable=!1}function us(){Ln=!1}function ds(e,t,n){var i=B(Ft(n.el,0,n.options,!0)),o=Xi(n.el,n.options,w),r=10;return t?e.clientX<o.left-r||e.clientY<i.top&&e.clientX<i.right:e.clientY<o.top-r||e.clientY<i.bottom&&e.clientX<i.left}function cs(e,t,n){var i=B(Nn(n.el,n.options.draggable)),o=Xi(n.el,n.options,w),r=10;return t?e.clientX>o.right+r||e.clientY>i.bottom&&e.clientX>i.left:e.clientY>o.bottom+r||e.clientX>i.right&&e.clientY>i.top}function hs(e,t,n,i,o,r,s,a){var l=i?e.clientY:e.clientX,u=i?n.height:n.width,c=i?n.top:n.left,d=i?n.bottom:n.right,p=!1;if(!s){if(a&&He<u*o){if(!pe&&(he===1?l>c+u*r/2:l<d-u*r/2)&&(pe=!0),pe)p=!0;else if(he===1?l<c+He:l>d-He)return-he}else if(l>c+u*(1-o)/2&&l<d-u*(1-o)/2)return ps(t)}return p=p||s,p&&(l<c+u*r/2||l>d-u*r/2)?l>c+u/2?1:-1:0}function ps(e){return st(h)<st(e)?1:-1}function fs(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function gs(e){Be.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&Be.push(i)}}function ke(e){return setTimeout(e,0)}function kn(e){return clearTimeout(e)}Ve&&C(document,"touchmove",function(e){(v.active||Zt)&&e.cancelable&&e.preventDefault()}),v.utils={on:C,off:S,css:b,find:Ui,is:function(t,n){return!!lt(t,n,t,!1)},extend:Jr,throttle:ji,closest:lt,toggleClass:et,clone:Zi,index:st,nextTick:ke,cancelNextTick:kn,detectDirection:Ji,getChild:Ft},v.get=function(e){return e[nt]},v.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(v.utils=ht(ht({},v.utils),i.utils)),ue.mount(i)})},v.create=function(e,t){return new v(e,t)},v.version=qr;var V=[],fe,Fn,jn=!1,zn,Zn,Fe,ge;function ms(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var i=n.originalEvent;this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):this.options.supportPointer?C(document,"pointermove",this._handleFallbackAutoScroll):i.touches?C(document,"touchmove",this._handleFallbackAutoScroll):C(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var i=n.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?S(document,"dragover",this._handleAutoScroll):(S(document,"pointermove",this._handleFallbackAutoScroll),S(document,"touchmove",this._handleFallbackAutoScroll),S(document,"mousemove",this._handleFallbackAutoScroll)),eo(),je(),Kr()},nulling:function(){Fe=Fn=fe=jn=ge=zn=Zn=null,V.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,i){var o=this,r=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,a=document.elementFromPoint(r,s);if(Fe=n,i||this.options.forceAutoScrollFallback||se||vt||ae){Xn(n,this.options,a,i);var l=St(a,!0);jn&&(!ge||r!==zn||s!==Zn)&&(ge&&eo(),ge=setInterval(function(){var u=St(document.elementFromPoint(r,s),!0);u!==l&&(l=u,je()),Xn(n,o.options,u,i)},10),zn=r,Zn=s)}else{if(!this.options.bubbleScroll||St(a,!0)===pt()){je();return}Xn(n,this.options,St(a,!1),!1)}}},yt(e,{pluginName:"scroll",initializeByDefault:!0})}function je(){V.forEach(function(e){clearInterval(e.pid)}),V=[]}function eo(){clearInterval(ge)}var Xn=ji(function(e,t,n,i){if(t.scroll){var o=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=pt(),u=!1,c;Fn!==n&&(Fn=n,je(),fe=t.scroll,c=t.scrollFn,fe===!0&&(fe=St(n,!0)));var d=0,p=fe;do{var f=p,g=B(f),y=g.top,D=g.bottom,Z=g.left,k=g.right,ot=g.width,J=g.height,dt=void 0,P=void 0,q=f.scrollWidth,ct=f.scrollHeight,W=b(f),Ee=f.scrollLeft,At=f.scrollTop;f===l?(dt=ot<q&&(W.overflowX==="auto"||W.overflowX==="scroll"||W.overflowX==="visible"),P=J<ct&&(W.overflowY==="auto"||W.overflowY==="scroll"||W.overflowY==="visible")):(dt=ot<q&&(W.overflowX==="auto"||W.overflowX==="scroll"),P=J<ct&&(W.overflowY==="auto"||W.overflowY==="scroll"));var xe=dt&&(Math.abs(k-o)<=s&&Ee+ot<q)-(Math.abs(Z-o)<=s&&!!Ee),wt=P&&(Math.abs(D-r)<=s&&At+J<ct)-(Math.abs(y-r)<=s&&!!At);if(!V[d])for(var Bt=0;Bt<=d;Bt++)V[Bt]||(V[Bt]={});(V[d].vx!=xe||V[d].vy!=wt||V[d].el!==f)&&(V[d].el=f,V[d].vx=xe,V[d].vy=wt,clearInterval(V[d].pid),(xe!=0||wt!=0)&&(u=!0,V[d].pid=setInterval((function(){i&&this.layer===0&&v.active._onTouchMove(Fe);var Se=V[this.layer].vy?V[this.layer].vy*a:0,Ct=V[this.layer].vx?V[this.layer].vx*a:0;typeof c=="function"&&c.call(v.dragged.parentNode[nt],Ct,Se,e,Fe,V[this.layer].el)!=="continue"||zi(V[this.layer].el,Ct,Se)}).bind({layer:d}),24))),d++}while(t.bubbleScroll&&p!==l&&(p=St(p,!1)));jn=u}},30),no=function(t){var n=t.originalEvent,i=t.putSortable,o=t.dragEl,r=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(n){var u=i||r;a();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(c.clientX,c.clientY);l(),u&&!u.el.contains(d)&&(s("spill"),this.onSpill({dragEl:o,putSortable:i}))}};function Yn(){}Yn.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var o=Ft(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),i&&i.animateAll()},drop:no},yt(Yn,{pluginName:"revertOnSpill"});function qn(){}qn.prototype={onSpill:function(t){var n=t.dragEl,i=t.putSortable,o=i||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:no},yt(qn,{pluginName:"removeOnSpill"}),v.mount(new ms),v.mount(qn,Yn);const ys=e=>{const t=e.item;let n=Array.prototype.slice.call(t.parentNode.childNodes);return n=n.filter(i=>i.nodeType!=Node.ELEMENT_NODE||!i.classList.contains("sortable-fallback")),n},bs=(e,t,n,i,o,r)=>{const a=e.item.parentNode;for(const y of n)a.appendChild(y);if(e.oldIndex==e.newIndex)return;const l=i.getArray(),u=e.item.querySelector("eox-layercontrol-layer").layer.get(o),c=l.find(y=>y.get(o)===u),d=r.dataset.layer,p=l.find(y=>y.get(o)==d);let f,g;for(f=0;f<l.length;f++)if(l[f]==c){i.removeAt(f);break}for(g=0;g<l.length;g++)if(l[g]===p){f>g?i.insertAt(g,c):i.insertAt(g+1,c);break}t.requestUpdate()};function vs(e,t,n,i){let o=[],r=null;e._sortable=v.create(e,{handle:".drag-handle",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",onStart:s=>o=ys(s),onMove:s=>{r=s.related},onEnd:s=>bs(s,i,o,t,n,r)})}function ws(e,t,n,i){const o=e.getArray();let r=!1;o.forEach(s=>{const a=s.ol_uid;s.get(t)||(s.set(t,a),r=!0),s.get(n)||(s.set(n,`layer ${a}`),r=!0),r&&i.requestUpdate()})}function Wn(e,t,n){let i=[];const o=(r,s,a)=>{i=[...i,...r.filter(u=>u.get(s)===a)];const l=r.filter(u=>u.getLayers);return l.length>0&&l.forEach(u=>o(u.getLayers().getArray(),s,a)),i};return o(e,t,n),i}function Es(e,t,n){if(!e||!t)return!1;if(!io(e,n))return!0;const i=e.get("minZoom"),o=e.get("maxZoom"),r=t.getView().getZoom();return r>i&&r<o}function io(e,t){const n=e.get("minZoom"),i=e.get("maxZoom");return!!(t&&(n!==-1/0||i!==1/0))}function xs(e,t){var o,r,s;return!e||!t?void 0:e.getLayers?"group":((s=(o=t.getInteractions().getArray().filter(a=>a.freehand_!==void 0).map(a=>a.source_))==null?void 0:o.ol_uid)==null?void 0:s.includes(e.getSource?(r=e.getSource())==null?void 0:r.ol_uid:void 0))?"draw":e.declutter_!==void 0?"vector":"raster"}function oo(e,t){var i;let n={};for(const o in e){const r=e[o].type;if(r&&r!=="object")n[o]=r==="number"?Number(t[o]):t[o];else if(typeof e[o]=="object"&&((i=e[o])!=null&&i.properties)){const s=oo(e[o].properties,t);Object.keys(s).length>0&&(n[o]=s)}}return n}function Ss(e,t){var r;if(!t||!e.getSource().getTileUrlFunction())return null;const n=new URL(e.getSource().getTileUrlFunction()([0,0,0])),i=Object.fromEntries(n.searchParams.entries()),o=oo(((r=t.schema)==null?void 0:r.properties)||t.schema,i);return Object.keys(o).length?o:null}const $s=(e,t)=>e==null?void 0:e.filter(n=>["remove","sort"].filter(i=>t!=null&&t.get("layerControlDisable")?i!=="sort":!0).includes(n)),_s=(e,t)=>e==null?void 0:e.filter(n=>{let i=!0;return["remove","sort"].includes(n)&&(i=!1),n==="info"&&(i=t.get("description")),n==="config"&&(i=t.get("layerConfig")),i}),As=(e,t)=>x`
45
+ */function Mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mi(Object(n),!0).forEach(function(i){Zr(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Pe(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pe=function(t){return typeof t}:Pe=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pe(e)}function Zr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yt(){return yt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},yt.apply(this,arguments)}function Xr(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,r;for(r=0;r<i.length;r++)o=i[r],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Yr(e,t){if(e==null)return{};var n=Xr(e,t),i,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}var qr="1.15.2";function bt(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var vt=bt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),se=bt(/Edge/i),Ii=bt(/firefox/i),ae=bt(/safari/i)&&!bt(/chrome/i)&&!bt(/android/i),Hi=bt(/iP(ad|od|hone)/i),Bi=bt(/chrome/i)&&bt(/android/i),Vi={capture:!1,passive:!1};function C(e,t,n){e.addEventListener(t,n,!vt&&Vi)}function S(e,t,n){e.removeEventListener(t,n,!vt&&Vi)}function Oe(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Wr(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function lt(e,t,n,i){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&Oe(e,t):Oe(e,t))||i&&e===n)return e;if(e===n)break}while(e=Wr(e))}return null}var Li=/\s+/g;function et(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(Li," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(Li," ")}}function b(e,t,n){var i=e&&e.style;if(i){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in i)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),i[t]=n+(typeof n=="string"?"":"px")}}function kt(e,t){var n="";if(typeof e=="string")n=e;else do{var i=b(e,"transform");i&&i!=="none"&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function Ui(e,t,n){if(e){var i=e.getElementsByTagName(t),o=0,r=i.length;if(n)for(;o<r;o++)n(i[o],o);return i}return[]}function pt(){var e=document.scrollingElement;return e||document.documentElement}function B(e,t,n,i,o){if(!(!e.getBoundingClientRect&&e!==window)){var r,s,a,l,u,c,d;if(e!==window&&e.parentNode&&e!==pt()?(r=e.getBoundingClientRect(),s=r.top,a=r.left,l=r.bottom,u=r.right,c=r.height,d=r.width):(s=0,a=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!vt))do if(o&&o.getBoundingClientRect&&(b(o,"transform")!=="none"||n&&b(o,"position")!=="static")){var p=o.getBoundingClientRect();s-=p.top+parseInt(b(o,"border-top-width")),a-=p.left+parseInt(b(o,"border-left-width")),l=s+r.height,u=a+r.width;break}while(o=o.parentNode);if(i&&e!==window){var f=kt(o||e),g=f&&f.a,y=f&&f.d;f&&(s/=y,a/=g,d/=g,c/=y,l=s+c,u=a+d)}return{top:s,left:a,bottom:l,right:u,width:d,height:c}}}function ki(e,t,n){for(var i=St(e,!0),o=B(e)[t];i;){var r=B(i)[n],s=void 0;if(n==="top"||n==="left"?s=o>=r:s=o<=r,!s)return i;if(i===pt())break;i=St(i,!1)}return!1}function Ft(e,t,n,i){for(var o=0,r=0,s=e.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==v.ghost&&(i||s[r]!==v.dragged)&&lt(s[r],n.draggable,e,!1)){if(o===t)return s[r];o++}r++}return null}function Nn(e,t){for(var n=e.lastElementChild;n&&(n===v.ghost||b(n,"display")==="none"||t&&!Oe(n,t));)n=n.previousElementSibling;return n||null}function at(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==v.clone&&(!t||Oe(e,t))&&n++;return n}function Fi(e){var t=0,n=0,i=pt();if(e)do{var o=kt(e),r=o.a,s=o.d;t+=e.scrollLeft*r,n+=e.scrollTop*s}while(e!==i&&(e=e.parentNode));return[t,n]}function Gr(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n)}return-1}function St(e,t){if(!e||!e.getBoundingClientRect)return pt();var n=e,i=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=b(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return pt();if(i||t)return n;i=!0}}while(n=n.parentNode);return pt()}function Jr(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Mn(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var le;function ji(e,t){return function(){if(!le){var n=arguments,i=this;n.length===1?e.call(i,n[0]):e.apply(i,n),le=setTimeout(function(){le=void 0},t)}}}function Kr(){clearTimeout(le),le=void 0}function zi(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Zi(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Xi(e,t,n){var i={};return Array.from(e.children).forEach(function(o){var r,s,a,l;if(!(!lt(o,t.draggable,e,!1)||o.animated||o===n)){var u=B(o);i.left=Math.min((r=i.left)!==null&&r!==void 0?r:1/0,u.left),i.top=Math.min((s=i.top)!==null&&s!==void 0?s:1/0,u.top),i.right=Math.max((a=i.right)!==null&&a!==void 0?a:-1/0,u.right),i.bottom=Math.max((l=i.bottom)!==null&&l!==void 0?l:-1/0,u.bottom)}}),i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}var nt="Sortable"+new Date().getTime();function Qr(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(o){if(!(b(o,"display")==="none"||o===v.ghost)){e.push({target:o,rect:B(o)});var r=ht({},e[e.length-1].rect);if(o.thisAnimationDuration){var s=kt(o,!0);s&&(r.top-=s.f,r.left-=s.e)}o.fromRect=r}})}},addAnimationState:function(i){e.push(i)},removeAnimationState:function(i){e.splice(Gr(e,{target:i}),1)},animateAll:function(i){var o=this;if(!this.options.animation){clearTimeout(t),typeof i=="function"&&i();return}var r=!1,s=0;e.forEach(function(a){var l=0,u=a.target,c=u.fromRect,d=B(u),p=u.prevFromRect,f=u.prevToRect,g=a.rect,y=kt(u,!0);y&&(d.top-=y.f,d.left-=y.e),u.toRect=d,u.thisAnimationDuration&&Mn(p,d)&&!Mn(c,d)&&(g.top-d.top)/(g.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(l=es(g,p,f,o.options)),Mn(d,c)||(u.prevFromRect=c,u.prevToRect=d,l||(l=o.options.animation),o.animate(u,g,d,l)),l&&(r=!0,s=Math.max(s,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(t),r?t=setTimeout(function(){typeof i=="function"&&i()},s):typeof i=="function"&&i(),e=[]},animate:function(i,o,r,s){if(s){b(i,"transition",""),b(i,"transform","");var a=kt(this.el),l=a&&a.a,u=a&&a.d,c=(o.left-r.left)/(l||1),d=(o.top-r.top)/(u||1);i.animatingX=!!c,i.animatingY=!!d,b(i,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=ts(i),b(i,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),b(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){b(i,"transition",""),b(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},s)}}}}function ts(e){return e.offsetWidth}function es(e,t,n,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*i.animation}var jt=[],In={initializeByDefault:!0},ue={mount:function(t){for(var n in In)In.hasOwnProperty(n)&&!(n in t)&&(t[n]=In[n]);jt.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),jt.push(t)},pluginEvent:function(t,n,i){var o=this;this.eventCanceled=!1,i.cancel=function(){o.eventCanceled=!0};var r=t+"Global";jt.forEach(function(s){n[s.pluginName]&&(n[s.pluginName][r]&&n[s.pluginName][r](ht({sortable:n},i)),n.options[s.pluginName]&&n[s.pluginName][t]&&n[s.pluginName][t](ht({sortable:n},i)))})},initializePlugins:function(t,n,i,o){jt.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var u=new a(t,n,t.options);u.sortable=t,u.options=t.options,t[l]=u,yt(i,u.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var s=this.modifyOption(t,r,t.options[r]);typeof s<"u"&&(t.options[r]=s)}},getEventProperties:function(t,n){var i={};return jt.forEach(function(o){typeof o.eventProperties=="function"&&yt(i,o.eventProperties.call(n[o.pluginName],t))}),i},modifyOption:function(t,n,i){var o;return jt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[n]=="function"&&(o=r.optionListeners[n].call(t[r.pluginName],i))}),o}};function ns(e){var t=e.sortable,n=e.rootEl,i=e.name,o=e.targetEl,r=e.cloneEl,s=e.toEl,a=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,p=e.originalEvent,f=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[nt],!!t){var y,D=t.options,Z="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!vt&&!se?y=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(i,!0,!0)),y.to=s||n,y.from=a||n,y.item=o||n,y.clone=r,y.oldIndex=l,y.newIndex=u,y.oldDraggableIndex=c,y.newDraggableIndex=d,y.originalEvent=p,y.pullMode=f?f.lastPutMode:void 0;var k=ht(ht({},g),ue.getEventProperties(i,t));for(var ot in k)y[ot]=k[ot];n&&n.dispatchEvent(y),D[Z]&&D[Z].call(t,y)}}var is=["evt"],Q=function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.evt,r=Yr(i,is);ue.pluginEvent.bind(v)(t,n,ht({dragEl:h,parentEl:H,ghostEl:w,rootEl:R,nextEl:Mt,lastDownEl:Re,cloneEl:N,cloneHidden:$t,dragStarted:ce,putSortable:z,activeSortable:v.active,originalEvent:o,oldIndex:zt,oldDraggableIndex:de,newIndex:it,newDraggableIndex:_t,hideGhostForTarget:Qi,unhideGhostForTarget:to,cloneNowHidden:function(){$t=!0},cloneNowShown:function(){$t=!1},dispatchSortableEvent:function(a){G({sortable:n,name:a,originalEvent:o})}},r))};function G(e){ns(ht({putSortable:z,cloneEl:N,targetEl:h,rootEl:R,oldIndex:zt,oldDraggableIndex:de,newIndex:it,newDraggableIndex:_t},e))}var h,H,w,R,Mt,Re,N,$t,zt,it,de,_t,De,z,Zt=!1,Ne=!1,Me=[],It,ut,Hn,Bn,Yi,qi,ce,Xt,he,pe=!1,Ie=!1,He,Y,Vn=[],Ln=!1,Be=[],Ve=typeof document<"u",Le=Hi,Wi=se||vt?"cssFloat":"float",os=Ve&&!Bi&&!Hi&&"draggable"in document.createElement("div"),Gi=function(){if(Ve){if(vt)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Ji=function(t,n){var i=b(t),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=Ft(t,0,n),s=Ft(t,1,n),a=r&&b(r),l=s&&b(s),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+B(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+B(s).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||u>=o&&i[Wi]==="none"||s&&i[Wi]==="none"&&u+c>o)?"vertical":"horizontal"},rs=function(t,n,i){var o=i?t.left:t.top,r=i?t.right:t.bottom,s=i?t.width:t.height,a=i?n.left:n.top,l=i?n.right:n.bottom,u=i?n.width:n.height;return o===a||r===l||o+s/2===a+u/2},ss=function(t,n){var i;return Me.some(function(o){var r=o[nt].options.emptyInsertThreshold;if(!(!r||Nn(o))){var s=B(o),a=t>=s.left-r&&t<=s.right+r,l=n>=s.top-r&&n<=s.bottom+r;if(a&&l)return i=o}}),i},Ki=function(t){function n(r,s){return function(a,l,u,c){var d=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(r==null&&(s||d))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return n(r(a,l,u,c),s)(a,l,u,c);var p=(s?a:l).options.group.name;return r===!0||typeof r=="string"&&r===p||r.join&&r.indexOf(p)>-1}}var i={},o=t.group;(!o||Pe(o)!="object")&&(o={name:o}),i.name=o.name,i.checkPull=n(o.pull,!0),i.checkPut=n(o.put),i.revertClone=o.revertClone,t.group=i},Qi=function(){!Gi&&w&&b(w,"display","none")},to=function(){!Gi&&w&&b(w,"display","")};Ve&&!Bi&&document.addEventListener("click",function(e){if(Ne)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ne=!1,!1},!0);var Ht=function(t){if(h){t=t.touches?t.touches[0]:t;var n=ss(t.clientX,t.clientY);if(n){var i={};for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o]);i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[nt]._onDragOver(i)}}},as=function(t){h&&h.parentNode[nt]._isOutsideThisEl(t.target)};function v(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=yt({},t),e[nt]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ji(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,a){s.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:v.supportPointer!==!1&&"PointerEvent"in window&&!ae,emptyInsertThreshold:5};ue.initializePlugins(this,e,n);for(var i in n)!(i in t)&&(t[i]=n[i]);Ki(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:os,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?C(e,"pointerdown",this._onTapStart):(C(e,"mousedown",this._onTapStart),C(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(C(e,"dragover",this),C(e,"dragenter",this)),Me.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),yt(this,Qr())}v.prototype={constructor:v,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Xt=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,h):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,i=this.el,o=this.options,r=o.preventOnFilter,s=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(a||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=o.filter;if(gs(i),!h&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&ae&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=lt(l,o.draggable,i,!1),!(l&&l.animated)&&Re!==l)){if(zt=at(l),de=at(l,o.draggable),typeof c=="function"){if(c.call(this,t,l,this)){G({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:i,fromEl:i}),Q("filter",n,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=lt(u,d.trim(),i,!1),d)return G({sortable:n,rootEl:d,name:"filter",targetEl:l,fromEl:i,toEl:i}),Q("filter",n,{evt:t}),!0}),c)){r&&t.cancelable&&t.preventDefault();return}o.handle&&!lt(u,o.handle,i,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,n,i){var o=this,r=o.el,s=o.options,a=r.ownerDocument,l;if(i&&!h&&i.parentNode===r){var u=B(i);if(R=r,h=i,H=h.parentNode,Mt=h.nextSibling,Re=i,De=s.group,v.dragged=h,It={target:h,clientX:(n||t).clientX,clientY:(n||t).clientY},Yi=It.clientX-u.left,qi=It.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,h.style["will-change"]="all",l=function(){if(Q("delayEnded",o,{evt:t}),v.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Ii&&o.nativeDraggable&&(h.draggable=!0),o._triggerDragStart(t,n),G({sortable:o,name:"choose",originalEvent:t}),et(h,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){Ui(h,c.trim(),Un)}),C(a,"dragover",Ht),C(a,"mousemove",Ht),C(a,"touchmove",Ht),C(a,"mouseup",o._onDrop),C(a,"touchend",o._onDrop),C(a,"touchcancel",o._onDrop),Ii&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),Q("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(se||vt))){if(v.eventCanceled){this._onDrop();return}C(a,"mouseup",o._disableDelayedDrag),C(a,"touchend",o._disableDelayedDrag),C(a,"touchcancel",o._disableDelayedDrag),C(a,"mousemove",o._delayedDragTouchMoveHandler),C(a,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&C(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){h&&Un(h),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;S(t,"mouseup",this._disableDelayedDrag),S(t,"touchend",this._disableDelayedDrag),S(t,"touchcancel",this._disableDelayedDrag),S(t,"mousemove",this._delayedDragTouchMoveHandler),S(t,"touchmove",this._delayedDragTouchMoveHandler),S(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?C(document,"pointermove",this._onTouchMove):n?C(document,"touchmove",this._onTouchMove):C(document,"mousemove",this._onTouchMove):(C(h,"dragend",this),C(R,"dragstart",this._onDragStart));try{document.selection?ke(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Zt=!1,R&&h){Q("dragStarted",this,{evt:n}),this.nativeDraggable&&C(document,"dragover",as);var i=this.options;!t&&et(h,i.dragClass,!1),et(h,i.ghostClass,!0),v.active=this,t&&this._appendGhost(),G({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ut){this._lastX=ut.clientX,this._lastY=ut.clientY,Qi();for(var t=document.elementFromPoint(ut.clientX,ut.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ut.clientX,ut.clientY),t!==n);)n=t;if(h.parentNode[nt]._isOutsideThisEl(t),n)do{if(n[nt]){var i=void 0;if(i=n[nt]._onDragOver({clientX:ut.clientX,clientY:ut.clientY,target:t,rootEl:n}),i&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);to()}},_onTouchMove:function(t){if(It){var n=this.options,i=n.fallbackTolerance,o=n.fallbackOffset,r=t.touches?t.touches[0]:t,s=w&&kt(w,!0),a=w&&s&&s.a,l=w&&s&&s.d,u=Le&&Y&&Fi(Y),c=(r.clientX-It.clientX+o.x)/(a||1)+(u?u[0]-Vn[0]:0)/(a||1),d=(r.clientY-It.clientY+o.y)/(l||1)+(u?u[1]-Vn[1]:0)/(l||1);if(!v.active&&!Zt){if(i&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(w){s?(s.e+=c-(Hn||0),s.f+=d-(Bn||0)):s={a:1,b:0,c:0,d:1,e:c,f:d};var p="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");b(w,"webkitTransform",p),b(w,"mozTransform",p),b(w,"msTransform",p),b(w,"transform",p),Hn=c,Bn=d,ut=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!w){var t=this.options.fallbackOnBody?document.body:R,n=B(h,!0,Le,!0,t),i=this.options;if(Le){for(Y=t;b(Y,"position")==="static"&&b(Y,"transform")==="none"&&Y!==document;)Y=Y.parentNode;Y!==document.body&&Y!==document.documentElement?(Y===document&&(Y=pt()),n.top+=Y.scrollTop,n.left+=Y.scrollLeft):Y=pt(),Vn=Fi(Y)}w=h.cloneNode(!0),et(w,i.ghostClass,!1),et(w,i.fallbackClass,!0),et(w,i.dragClass,!0),b(w,"transition",""),b(w,"transform",""),b(w,"box-sizing","border-box"),b(w,"margin",0),b(w,"top",n.top),b(w,"left",n.left),b(w,"width",n.width),b(w,"height",n.height),b(w,"opacity","0.8"),b(w,"position",Le?"absolute":"fixed"),b(w,"zIndex","100000"),b(w,"pointerEvents","none"),v.ghost=w,t.appendChild(w),b(w,"transform-origin",Yi/parseInt(w.style.width)*100+"% "+qi/parseInt(w.style.height)*100+"%")}},_onDragStart:function(t,n){var i=this,o=t.dataTransfer,r=i.options;if(Q("dragStart",this,{evt:t}),v.eventCanceled){this._onDrop();return}Q("setupClone",this),v.eventCanceled||(N=Zi(h),N.removeAttribute("id"),N.draggable=!1,N.style["will-change"]="",this._hideClone(),et(N,this.options.chosenClass,!1),v.clone=N),i.cloneId=ke(function(){Q("clone",i),!v.eventCanceled&&(i.options.removeCloneOnHide||R.insertBefore(N,h),i._hideClone(),G({sortable:i,name:"clone"}))}),!n&&et(h,r.dragClass,!0),n?(Ne=!0,i._loopId=setInterval(i._emulateDragOver,50)):(S(document,"mouseup",i._onDrop),S(document,"touchend",i._onDrop),S(document,"touchcancel",i._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(i,o,h)),C(document,"drop",i),b(h,"transform","translateZ(0)")),Zt=!0,i._dragStartId=ke(i._dragStarted.bind(i,n,t)),C(document,"selectstart",i),ce=!0,ae&&b(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,i=t.target,o,r,s,a=this.options,l=a.group,u=v.active,c=De===l,d=a.sort,p=z||u,f,g=this,y=!1;if(Ln)return;function D($e,ha){Q($e,g,ht({evt:t,isOwner:c,axis:f?"vertical":"horizontal",revert:s,dragRect:o,targetRect:r,canSort:d,fromSortable:p,target:i,completed:k,onMove:function(xo,pa){return Ue(R,n,h,o,xo,B(xo),t,pa)},changed:ot},ha))}function Z(){D("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function k($e){return D("dragOverCompleted",{insertion:$e}),$e&&(c?u._hideClone():u._showClone(g),g!==p&&(et(h,z?z.options.ghostClass:u.options.ghostClass,!1),et(h,a.ghostClass,!0)),z!==g&&g!==v.active?z=g:g===v.active&&z&&(z=null),p===g&&(g._ignoreWhileAnimating=i),g.animateAll(function(){D("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===h&&!h.animated||i===n&&!i.animated)&&(Xt=null),!a.dragoverBubble&&!t.rootEl&&i!==document&&(h.parentNode[nt]._isOutsideThisEl(t.target),!$e&&Ht(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function ot(){it=at(h),_t=at(h,a.draggable),G({sortable:g,name:"change",toEl:n,newIndex:it,newDraggableIndex:_t,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=lt(i,a.draggable,n,!0),D("dragOver"),v.eventCanceled)return y;if(h.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||g._ignoreWhileAnimating===i)return k(!1);if(Ne=!1,u&&!a.disabled&&(c?d||(s=H!==R):z===this||(this.lastPutMode=De.checkPull(this,u,h,t))&&l.checkPut(this,u,h,t))){if(f=this._getDirection(t,i)==="vertical",o=B(h),D("dragOverValid"),v.eventCanceled)return y;if(s)return H=R,Z(),this._hideClone(),D("revert"),v.eventCanceled||(Mt?R.insertBefore(h,Mt):R.appendChild(h)),k(!0);var J=Nn(n,a.draggable);if(!J||cs(t,f,this)&&!J.animated){if(J===h)return k(!1);if(J&&n===t.target&&(i=J),i&&(r=B(i)),Ue(R,n,h,o,i,r,t,!!i)!==!1)return Z(),J&&J.nextSibling?n.insertBefore(h,J.nextSibling):n.appendChild(h),H=n,ot(),k(!0)}else if(J&&ds(t,f,this)){var dt=Ft(n,0,a,!0);if(dt===h)return k(!1);if(i=dt,r=B(i),Ue(R,n,h,o,i,r,t,!1)!==!1)return Z(),n.insertBefore(h,dt),H=n,ot(),k(!0)}else if(i.parentNode===n){r=B(i);var P=0,q,ct=h.parentNode!==n,W=!rs(h.animated&&h.toRect||o,i.animated&&i.toRect||r,f),Ee=f?"top":"left",At=ki(i,"top","top")||ki(h,"top","top"),xe=At?At.scrollTop:void 0;Xt!==i&&(q=r[Ee],pe=!1,Ie=!W&&a.invertSwap||ct),P=hs(t,i,r,f,W?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Ie,Xt===i);var wt;if(P!==0){var Bt=at(h);do Bt-=P,wt=H.children[Bt];while(wt&&(b(wt,"display")==="none"||wt===w))}if(P===0||wt===i)return k(!1);Xt=i,he=P;var Se=i.nextElementSibling,Ct=!1;Ct=P===1;var mn=Ue(R,n,h,o,i,r,t,Ct);if(mn!==!1)return(mn===1||mn===-1)&&(Ct=mn===1),Ln=!0,setTimeout(us,30),Z(),Ct&&!Se?n.appendChild(h):i.parentNode.insertBefore(h,Ct?Se:i),At&&zi(At,0,xe-At.scrollTop),H=h.parentNode,q!==void 0&&!Ie&&(He=Math.abs(q-B(i)[Ee])),ot(),k(!0)}if(n.contains(h))return k(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){S(document,"mousemove",this._onTouchMove),S(document,"touchmove",this._onTouchMove),S(document,"pointermove",this._onTouchMove),S(document,"dragover",Ht),S(document,"mousemove",Ht),S(document,"touchmove",Ht)},_offUpEvents:function(){var t=this.el.ownerDocument;S(t,"mouseup",this._onDrop),S(t,"touchend",this._onDrop),S(t,"pointerup",this._onDrop),S(t,"touchcancel",this._onDrop),S(document,"selectstart",this)},_onDrop:function(t){var n=this.el,i=this.options;if(it=at(h),_t=at(h,i.draggable),Q("drop",this,{evt:t}),H=h&&h.parentNode,it=at(h),_t=at(h,i.draggable),v.eventCanceled){this._nulling();return}Zt=!1,Ie=!1,pe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),kn(this.cloneId),kn(this._dragStartId),this.nativeDraggable&&(S(document,"drop",this),S(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ae&&b(document.body,"user-select",""),b(h,"transform",""),t&&(ce&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),w&&w.parentNode&&w.parentNode.removeChild(w),(R===H||z&&z.lastPutMode!=="clone")&&N&&N.parentNode&&N.parentNode.removeChild(N),h&&(this.nativeDraggable&&S(h,"dragend",this),Un(h),h.style["will-change"]="",ce&&!Zt&&et(h,z?z.options.ghostClass:this.options.ghostClass,!1),et(h,this.options.chosenClass,!1),G({sortable:this,name:"unchoose",toEl:H,newIndex:null,newDraggableIndex:null,originalEvent:t}),R!==H?(it>=0&&(G({rootEl:H,name:"add",toEl:H,fromEl:R,originalEvent:t}),G({sortable:this,name:"remove",toEl:H,originalEvent:t}),G({rootEl:H,name:"sort",toEl:H,fromEl:R,originalEvent:t}),G({sortable:this,name:"sort",toEl:H,originalEvent:t})),z&&z.save()):it!==zt&&it>=0&&(G({sortable:this,name:"update",toEl:H,originalEvent:t}),G({sortable:this,name:"sort",toEl:H,originalEvent:t})),v.active&&((it==null||it===-1)&&(it=zt,_t=de),G({sortable:this,name:"end",toEl:H,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Q("nulling",this),R=h=H=w=Mt=N=Re=$t=It=ut=ce=it=_t=zt=de=Xt=he=z=De=v.dragged=v.ghost=v.clone=v.active=null,Be.forEach(function(t){t.checked=!0}),Be.length=Hn=Bn=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),ls(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,i=this.el.children,o=0,r=i.length,s=this.options;o<r;o++)n=i[o],lt(n,s.draggable,this.el,!1)&&t.push(n.getAttribute(s.dataIdAttr)||fs(n));return t},sort:function(t,n){var i={},o=this.el;this.toArray().forEach(function(r,s){var a=o.children[s];lt(a,this.options.draggable,o,!1)&&(i[r]=a)},this),n&&this.captureAnimationState(),t.forEach(function(r){i[r]&&(o.removeChild(i[r]),o.appendChild(i[r]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return lt(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var i=this.options;if(n===void 0)return i[t];var o=ue.modifyOption(this,t,n);typeof o<"u"?i[t]=o:i[t]=n,t==="group"&&Ki(i)},destroy:function(){Q("destroy",this);var t=this.el;t[nt]=null,S(t,"mousedown",this._onTapStart),S(t,"touchstart",this._onTapStart),S(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(S(t,"dragover",this),S(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Me.splice(Me.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!$t){if(Q("hideClone",this),v.eventCanceled)return;b(N,"display","none"),this.options.removeCloneOnHide&&N.parentNode&&N.parentNode.removeChild(N),$t=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if($t){if(Q("showClone",this),v.eventCanceled)return;h.parentNode==R&&!this.options.group.revertClone?R.insertBefore(N,h):Mt?R.insertBefore(N,Mt):R.appendChild(N),this.options.group.revertClone&&this.animate(h,N),b(N,"display",""),$t=!1}}};function ls(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Ue(e,t,n,i,o,r,s,a){var l,u=e[nt],c=u.options.onMove,d;return window.CustomEvent&&!vt&&!se?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=i,l.related=o||t,l.relatedRect=r||B(t),l.willInsertAfter=a,l.originalEvent=s,e.dispatchEvent(l),c&&(d=c.call(u,l,s)),d}function Un(e){e.draggable=!1}function us(){Ln=!1}function ds(e,t,n){var i=B(Ft(n.el,0,n.options,!0)),o=Xi(n.el,n.options,w),r=10;return t?e.clientX<o.left-r||e.clientY<i.top&&e.clientX<i.right:e.clientY<o.top-r||e.clientY<i.bottom&&e.clientX<i.left}function cs(e,t,n){var i=B(Nn(n.el,n.options.draggable)),o=Xi(n.el,n.options,w),r=10;return t?e.clientX>o.right+r||e.clientY>i.bottom&&e.clientX>i.left:e.clientY>o.bottom+r||e.clientX>i.right&&e.clientY>i.top}function hs(e,t,n,i,o,r,s,a){var l=i?e.clientY:e.clientX,u=i?n.height:n.width,c=i?n.top:n.left,d=i?n.bottom:n.right,p=!1;if(!s){if(a&&He<u*o){if(!pe&&(he===1?l>c+u*r/2:l<d-u*r/2)&&(pe=!0),pe)p=!0;else if(he===1?l<c+He:l>d-He)return-he}else if(l>c+u*(1-o)/2&&l<d-u*(1-o)/2)return ps(t)}return p=p||s,p&&(l<c+u*r/2||l>d-u*r/2)?l>c+u/2?1:-1:0}function ps(e){return at(h)<at(e)?1:-1}function fs(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function gs(e){Be.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&Be.push(i)}}function ke(e){return setTimeout(e,0)}function kn(e){return clearTimeout(e)}Ve&&C(document,"touchmove",function(e){(v.active||Zt)&&e.cancelable&&e.preventDefault()}),v.utils={on:C,off:S,css:b,find:Ui,is:function(t,n){return!!lt(t,n,t,!1)},extend:Jr,throttle:ji,closest:lt,toggleClass:et,clone:Zi,index:at,nextTick:ke,cancelNextTick:kn,detectDirection:Ji,getChild:Ft},v.get=function(e){return e[nt]},v.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(v.utils=ht(ht({},v.utils),i.utils)),ue.mount(i)})},v.create=function(e,t){return new v(e,t)},v.version=qr;var V=[],fe,Fn,jn=!1,zn,Zn,Fe,ge;function ms(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var i=n.originalEvent;this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):this.options.supportPointer?C(document,"pointermove",this._handleFallbackAutoScroll):i.touches?C(document,"touchmove",this._handleFallbackAutoScroll):C(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var i=n.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?S(document,"dragover",this._handleAutoScroll):(S(document,"pointermove",this._handleFallbackAutoScroll),S(document,"touchmove",this._handleFallbackAutoScroll),S(document,"mousemove",this._handleFallbackAutoScroll)),eo(),je(),Kr()},nulling:function(){Fe=Fn=fe=jn=ge=zn=Zn=null,V.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,i){var o=this,r=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,a=document.elementFromPoint(r,s);if(Fe=n,i||this.options.forceAutoScrollFallback||se||vt||ae){Xn(n,this.options,a,i);var l=St(a,!0);jn&&(!ge||r!==zn||s!==Zn)&&(ge&&eo(),ge=setInterval(function(){var u=St(document.elementFromPoint(r,s),!0);u!==l&&(l=u,je()),Xn(n,o.options,u,i)},10),zn=r,Zn=s)}else{if(!this.options.bubbleScroll||St(a,!0)===pt()){je();return}Xn(n,this.options,St(a,!1),!1)}}},yt(e,{pluginName:"scroll",initializeByDefault:!0})}function je(){V.forEach(function(e){clearInterval(e.pid)}),V=[]}function eo(){clearInterval(ge)}var Xn=ji(function(e,t,n,i){if(t.scroll){var o=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=pt(),u=!1,c;Fn!==n&&(Fn=n,je(),fe=t.scroll,c=t.scrollFn,fe===!0&&(fe=St(n,!0)));var d=0,p=fe;do{var f=p,g=B(f),y=g.top,D=g.bottom,Z=g.left,k=g.right,ot=g.width,J=g.height,dt=void 0,P=void 0,q=f.scrollWidth,ct=f.scrollHeight,W=b(f),Ee=f.scrollLeft,At=f.scrollTop;f===l?(dt=ot<q&&(W.overflowX==="auto"||W.overflowX==="scroll"||W.overflowX==="visible"),P=J<ct&&(W.overflowY==="auto"||W.overflowY==="scroll"||W.overflowY==="visible")):(dt=ot<q&&(W.overflowX==="auto"||W.overflowX==="scroll"),P=J<ct&&(W.overflowY==="auto"||W.overflowY==="scroll"));var xe=dt&&(Math.abs(k-o)<=s&&Ee+ot<q)-(Math.abs(Z-o)<=s&&!!Ee),wt=P&&(Math.abs(D-r)<=s&&At+J<ct)-(Math.abs(y-r)<=s&&!!At);if(!V[d])for(var Bt=0;Bt<=d;Bt++)V[Bt]||(V[Bt]={});(V[d].vx!=xe||V[d].vy!=wt||V[d].el!==f)&&(V[d].el=f,V[d].vx=xe,V[d].vy=wt,clearInterval(V[d].pid),(xe!=0||wt!=0)&&(u=!0,V[d].pid=setInterval((function(){i&&this.layer===0&&v.active._onTouchMove(Fe);var Se=V[this.layer].vy?V[this.layer].vy*a:0,Ct=V[this.layer].vx?V[this.layer].vx*a:0;typeof c=="function"&&c.call(v.dragged.parentNode[nt],Ct,Se,e,Fe,V[this.layer].el)!=="continue"||zi(V[this.layer].el,Ct,Se)}).bind({layer:d}),24))),d++}while(t.bubbleScroll&&p!==l&&(p=St(p,!1)));jn=u}},30),no=function(t){var n=t.originalEvent,i=t.putSortable,o=t.dragEl,r=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(n){var u=i||r;a();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(c.clientX,c.clientY);l(),u&&!u.el.contains(d)&&(s("spill"),this.onSpill({dragEl:o,putSortable:i}))}};function Yn(){}Yn.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var o=Ft(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),i&&i.animateAll()},drop:no},yt(Yn,{pluginName:"revertOnSpill"});function qn(){}qn.prototype={onSpill:function(t){var n=t.dragEl,i=t.putSortable,o=i||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:no},yt(qn,{pluginName:"removeOnSpill"}),v.mount(new ms),v.mount(qn,Yn);const ys=e=>{const t=e.item;let n=Array.prototype.slice.call(t.parentNode.childNodes);return n=n.filter(i=>i.nodeType!=Node.ELEMENT_NODE||!i.classList.contains("sortable-fallback")),n},bs=(e,t,n,i,o,r)=>{const a=e.item.parentNode;for(const y of n)a.appendChild(y);if(e.oldIndex==e.newIndex)return;const l=i.getArray(),u=e.item.querySelector("eox-layercontrol-layer").layer.get(o),c=l.find(y=>y.get(o)===u),d=r.dataset.layer,p=l.find(y=>y.get(o)==d);let f,g;for(f=0;f<l.length;f++)if(l[f]==c){i.removeAt(f);break}for(g=0;g<l.length;g++)if(l[g]===p){f>g?i.insertAt(g,c):i.insertAt(g+1,c);break}t.requestUpdate()};function vs(e,t,n,i){let o=[],r=null;e._sortable=v.create(e,{handle:".drag-handle",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",onStart:s=>o=ys(s),onMove:s=>{r=s.related},onEnd:s=>bs(s,i,o,t,n,r)})}function ws(e,t,n,i){const o=e.getArray();let r=!1;o.forEach(s=>{const a=s.ol_uid;s.get(t)||(s.set(t,a),r=!0),s.get(n)||(s.set(n,`layer ${a}`),r=!0),r&&i.requestUpdate()})}function Wn(e,t,n){let i=[];const o=(r,s,a)=>{i=[...i,...r.filter(u=>u.get(s)===a)];const l=r.filter(u=>u.getLayers);return l.length>0&&l.forEach(u=>o(u.getLayers().getArray(),s,a)),i};return o(e,t,n),i}function Es(e,t,n){if(!e||!t)return!1;if(!io(e,n))return!0;const i=e.get("minZoom"),o=e.get("maxZoom"),r=t.getView().getZoom();return r>i&&r<o}function io(e,t){const n=e.get("minZoom"),i=e.get("maxZoom");return!!(t&&(n!==-1/0||i!==1/0))}function xs(e,t){var o,r,s;return!e||!t?void 0:e.getLayers?"group":((s=(o=t.getInteractions().getArray().filter(a=>a.freehand_!==void 0).map(a=>a.source_))==null?void 0:o.ol_uid)==null?void 0:s.includes(e.getSource?(r=e.getSource())==null?void 0:r.ol_uid:void 0))?"draw":e.declutter_!==void 0?"vector":"raster"}function oo(e,t){var i;let n={};for(const o in e){const r=e[o].type;if(r&&r!=="object")n[o]=r==="number"?Number(t[o]):t[o];else if(typeof e[o]=="object"&&((i=e[o])!=null&&i.properties)){const s=oo(e[o].properties,t);Object.keys(s).length>0&&(n[o]=s)}}return n}function Ss(e,t){var r;if(!t||!e.getSource().getTileUrlFunction())return null;const n=new URL(e.getSource().getTileUrlFunction()([0,0,0])),i=Object.fromEntries(n.searchParams.entries()),o=oo(((r=t.schema)==null?void 0:r.properties)||t.schema,i);return Object.keys(o).length?o:null}const $s=(e,t)=>e==null?void 0:e.filter(n=>["remove","sort"].filter(i=>t!=null&&t.get("layerControlDisable")?i!=="sort":!0).includes(n)),_s=(e,t)=>e==null?void 0:e.filter(n=>{let i=!0;return["remove","sort"].includes(n)&&(i=!1),n==="info"&&(i=t.get("description")),n==="config"&&(i=t.get("layerConfig")),i}),As=(e,t)=>x`
46
46
  <button slot="${e}-icon" class="icon">${t?e:T}</button>
47
47
  `,Cs=e=>x`
48
48
  <button
@@ -72,7 +72,7 @@
72
72
  ${M(this,Ye)}
73
73
  ${!this.unstyled&&M(this,qe)}
74
74
  </style>
75
- ${at(this.layerConfig,()=>x`
75
+ ${st(this.layerConfig,()=>x`
76
76
  <!-- Render a JSON form for layer configuration -->
77
77
  <eox-jsonform
78
78
  .schema=${this.layerConfig.schema}
@@ -129,7 +129,7 @@
129
129
  </style>
130
130
  <div class="tabbed">
131
131
  <!-- Navigation for tabs and actions -->
132
- ${at(o,()=>x`
132
+ ${st(o,()=>x`
133
133
  <nav>
134
134
  <div>
135
135
  <!-- Labels for tabs -->
@@ -502,8 +502,8 @@ input::-moz-focus-inner, input::-moz-focus-outer {
502
502
  ${M(this,Je)}
503
503
  ${!this.unstyled&&M(this,Ke)}
504
504
  </style>
505
- ${at(s+a>0,()=>x`
506
- ${at(s===1&&a===0,()=>x`
505
+ ${st(s+a>0,()=>x`
506
+ ${st(s===1&&a===0,()=>x`
507
507
  <div class="single-action-container">
508
508
  <div class="single-action">${o}</div>
509
509
  </div>
@@ -540,14 +540,16 @@ input::-moz-focus-inner, input::-moz-focus-outer {
540
540
  </div>
541
541
  <div slot="config-content">
542
542
  <!-- Layer configuration -->
543
- <eox-layercontrol-layerconfig
544
- slot="config-content"
545
- .layer=${this.layer}
546
- .noShadow=${!0}
547
- .layerConfig=${this.layer.get("layerConfig")}
548
- .unstyled=${this.unstyled}
549
- @changed=${()=>this.requestUpdate()}
550
- ></eox-layercontrol-layerconfig>
543
+ ${st(this.layer.get("layerConfig"),()=>x`
544
+ <eox-layercontrol-layerconfig
545
+ slot="config-content"
546
+ .layer=${this.layer}
547
+ .noShadow=${!0}
548
+ .layerConfig=${this.layer.get("layerConfig")}
549
+ .unstyled=${this.unstyled}
550
+ @changed=${()=>this.requestUpdate()}
551
+ ></eox-layercontrol-layerconfig>
552
+ `)}
551
553
  </div>
552
554
  <div slot="remove-icon">${this._removeButton()}</div>
553
555
  <div slot="sort-icon">${this._sortButton()}</div>
@@ -601,7 +603,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
601
603
  ${M(this,tn)}
602
604
  ${!this.unstyled&&M(this,en)}
603
605
  </style>
604
- ${at(this.layer,()=>x`
606
+ ${st(this.layer,()=>x`
605
607
  <!-- Render the layer -->
606
608
  <div class="layer ${i} ${o}">
607
609
  <label class="drag-handle ${r}">
@@ -614,7 +616,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
614
616
 
615
617
  <!-- Layer title -->
616
618
  <span class="title">${X(this,Yt,yn).call(this,this.titleProperty)}</span>
617
- ${at(a,()=>x`<span class="tools-placeholder"></span>`)}
619
+ ${st(a,()=>x`<span class="tools-placeholder"></span>`)}
618
620
  </label>
619
621
  </div>
620
622
 
@@ -655,7 +657,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
655
657
  ${M(this,nn)}
656
658
  ${!this.unstyled&&M(this,on)}
657
659
  </style>
658
- ${at(this.group,()=>x`
660
+ ${st(this.group,()=>x`
659
661
  <!-- Render the details element with the layer control -->
660
662
  <details
661
663
  open=${n||T}
@@ -723,7 +725,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
723
725
  ${!this.unstyled&&M(this,sn)}
724
726
  </style>
725
727
  <ul>
726
- ${at(this.layers,()=>x`
728
+ ${st(this.layers,()=>x`
727
729
  ${Wo(n,i=>i,i=>x`
728
730
  <li
729
731
  data-layer="${i.get(this.idProperty)}"
@@ -1010,7 +1012,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
1010
1012
  </style>
1011
1013
 
1012
1014
  <!-- Conditional rendering of add layers component -->
1013
- ${at(this.addExternalLayers&&((s=M(this,Wt))==null?void 0:s.addOrUpdateLayer),()=>x`
1015
+ ${st(this.addExternalLayers&&((s=M(this,Wt))==null?void 0:s.addOrUpdateLayer),()=>x`
1014
1016
  <eox-layercontrol-add-layers
1015
1017
  .noShadow=${!0}
1016
1018
  .eoxMap=${M(this,Wt)}
@@ -1019,7 +1021,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
1019
1021
  `)}
1020
1022
 
1021
1023
  <!-- Conditional rendering of layer list component -->
1022
- ${at(this.map,()=>x`
1024
+ ${st(this.map,()=>x`
1023
1025
  <eox-layercontrol-layer-list
1024
1026
  .noShadow=${!0}
1025
1027
  class="layers"
@@ -1035,7 +1037,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
1035
1037
  `)}
1036
1038
 
1037
1039
  <!-- Conditional rendering of optional list component -->
1038
- ${at(i,()=>x`
1040
+ ${st(i,()=>x`
1039
1041
  <eox-layercontrol-optional-list
1040
1042
  .noShadow=${!0}
1041
1043
  .idProperty=${this.idProperty}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eox/layercontrol",
3
- "version": "0.17.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "devDependencies": {
6
6
  "@eox/eslint-config": "^1.0.0",