@eox/layercontrol 0.5.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,8 +3,8 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const jt = window, De = jt.ShadowRoot && (jt.ShadyCSS === void 0 || jt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ri = Symbol(), Me = /* @__PURE__ */ new WeakMap();
7
- let Ri = class {
6
+ const zt = window, Se = zt.ShadowRoot && (zt.ShadyCSS === void 0 || zt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ri = Symbol(), Me = /* @__PURE__ */ new WeakMap();
7
+ let Bi = class {
8
8
  constructor(t, e, n) {
9
9
  if (this._$cssResult$ = !0, n !== ri)
10
10
  throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -13,7 +13,7 @@ let Ri = class {
13
13
  get styleSheet() {
14
14
  let t = this.o;
15
15
  const e = this.t;
16
- if (De && t === void 0) {
16
+ if (Se && t === void 0) {
17
17
  const n = e !== void 0 && e.length === 1;
18
18
  n && (t = Me.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && Me.set(e, t));
19
19
  }
@@ -23,27 +23,27 @@ let Ri = class {
23
23
  return this.cssText;
24
24
  }
25
25
  };
26
- const ki = (i) => new Ri(typeof i == "string" ? i : i + "", void 0, ri), Ui = (i, t) => {
27
- De ? i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
28
- const n = document.createElement("style"), r = jt.litNonce;
26
+ const Ri = (i) => new Bi(typeof i == "string" ? i : i + "", void 0, ri), Ui = (i, t) => {
27
+ Se ? i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
28
+ const n = document.createElement("style"), r = zt.litNonce;
29
29
  r !== void 0 && n.setAttribute("nonce", r), n.textContent = e.cssText, i.appendChild(n);
30
30
  });
31
- }, He = De ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
31
+ }, Ne = Se ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
32
32
  let e = "";
33
33
  for (const n of t.cssRules)
34
34
  e += n.cssText;
35
- return ki(e);
35
+ return Ri(e);
36
36
  })(i) : i;
37
37
  /**
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
41
  */
42
- var se;
43
- const qt = window, Be = qt.trustedTypes, Vi = Be ? Be.emptyScript : "", Re = qt.reactiveElementPolyfillSupport, Ee = { toAttribute(i, t) {
42
+ var ae;
43
+ const Zt = window, ke = Zt.trustedTypes, Fi = ke ? ke.emptyScript : "", Ve = Zt.reactiveElementPolyfillSupport, Ee = { toAttribute(i, t) {
44
44
  switch (t) {
45
45
  case Boolean:
46
- i = i ? Vi : null;
46
+ i = i ? Fi : null;
47
47
  break;
48
48
  case Object:
49
49
  case Array:
@@ -68,8 +68,8 @@ const qt = window, Be = qt.trustedTypes, Vi = Be ? Be.emptyScript : "", Re = qt.
68
68
  }
69
69
  }
70
70
  return e;
71
- } }, oi = (i, t) => t !== i && (t == t || i == i), ae = { attribute: !0, type: String, converter: Ee, reflect: !1, hasChanged: oi }, $e = "finalized";
72
- let pt = class extends HTMLElement {
71
+ } }, oi = (i, t) => t !== i && (t == t || i == i), se = { attribute: !0, type: String, converter: Ee, reflect: !1, hasChanged: oi }, we = "finalized";
72
+ let ft = class extends HTMLElement {
73
73
  constructor() {
74
74
  super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this.u();
75
75
  }
@@ -85,7 +85,7 @@ let pt = class extends HTMLElement {
85
85
  r !== void 0 && (this._$Ev.set(r, n), t.push(r));
86
86
  }), t;
87
87
  }
88
- static createProperty(t, e = ae) {
88
+ static createProperty(t, e = se) {
89
89
  if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
90
90
  const n = typeof t == "symbol" ? Symbol() : "__" + t, r = this.getPropertyDescriptor(t, n, e);
91
91
  r !== void 0 && Object.defineProperty(this.prototype, t, r);
@@ -100,12 +100,12 @@ let pt = class extends HTMLElement {
100
100
  }, configurable: !0, enumerable: !0 };
101
101
  }
102
102
  static getPropertyOptions(t) {
103
- return this.elementProperties.get(t) || ae;
103
+ return this.elementProperties.get(t) || se;
104
104
  }
105
105
  static finalize() {
106
- if (this.hasOwnProperty($e))
106
+ if (this.hasOwnProperty(we))
107
107
  return !1;
108
- this[$e] = !0;
108
+ this[we] = !0;
109
109
  const t = Object.getPrototypeOf(this);
110
110
  if (t.finalize(), t.h !== void 0 && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
111
111
  const e = this.properties, n = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];
@@ -119,9 +119,9 @@ let pt = class extends HTMLElement {
119
119
  if (Array.isArray(t)) {
120
120
  const n = new Set(t.flat(1 / 0).reverse());
121
121
  for (const r of n)
122
- e.unshift(He(r));
122
+ e.unshift(Ne(r));
123
123
  } else
124
- t !== void 0 && e.push(He(t));
124
+ t !== void 0 && e.push(Ne(t));
125
125
  return e;
126
126
  }
127
127
  static _$Ep(t, e) {
@@ -169,20 +169,20 @@ let pt = class extends HTMLElement {
169
169
  attributeChangedCallback(t, e, n) {
170
170
  this._$AK(t, n);
171
171
  }
172
- _$EO(t, e, n = ae) {
172
+ _$EO(t, e, n = se) {
173
173
  var r;
174
174
  const o = this.constructor._$Ep(t, n);
175
175
  if (o !== void 0 && n.reflect === !0) {
176
- const s = (((r = n.converter) === null || r === void 0 ? void 0 : r.toAttribute) !== void 0 ? n.converter : Ee).toAttribute(e, n.type);
177
- this._$El = t, s == null ? this.removeAttribute(o) : this.setAttribute(o, s), this._$El = null;
176
+ const a = (((r = n.converter) === null || r === void 0 ? void 0 : r.toAttribute) !== void 0 ? n.converter : Ee).toAttribute(e, n.type);
177
+ this._$El = t, a == null ? this.removeAttribute(o) : this.setAttribute(o, a), this._$El = null;
178
178
  }
179
179
  }
180
180
  _$AK(t, e) {
181
181
  var n;
182
182
  const r = this.constructor, o = r._$Ev.get(t);
183
183
  if (o !== void 0 && this._$El !== o) {
184
- const s = r.getPropertyOptions(o), a = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((n = s.converter) === null || n === void 0 ? void 0 : n.fromAttribute) !== void 0 ? s.converter : Ee;
185
- this._$El = o, this[o] = a.fromAttribute(e, s.type), this._$El = null;
184
+ const a = r.getPropertyOptions(o), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((n = a.converter) === null || n === void 0 ? void 0 : n.fromAttribute) !== void 0 ? a.converter : Ee;
185
+ this._$El = o, this[o] = l.fromAttribute(e, a.type), this._$El = null;
186
186
  }
187
187
  }
188
188
  requestUpdate(t, e, n) {
@@ -248,73 +248,73 @@ let pt = class extends HTMLElement {
248
248
  firstUpdated(t) {
249
249
  }
250
250
  };
251
- pt[$e] = !0, pt.elementProperties = /* @__PURE__ */ new Map(), pt.elementStyles = [], pt.shadowRootOptions = { mode: "open" }, Re == null || Re({ ReactiveElement: pt }), ((se = qt.reactiveElementVersions) !== null && se !== void 0 ? se : qt.reactiveElementVersions = []).push("1.6.2");
251
+ ft[we] = !0, ft.elementProperties = /* @__PURE__ */ new Map(), ft.elementStyles = [], ft.shadowRootOptions = { mode: "open" }, Ve == null || Ve({ ReactiveElement: ft }), ((ae = Zt.reactiveElementVersions) !== null && ae !== void 0 ? ae : Zt.reactiveElementVersions = []).push("1.6.2");
252
252
  /**
253
253
  * @license
254
254
  * Copyright 2017 Google LLC
255
255
  * SPDX-License-Identifier: BSD-3-Clause
256
256
  */
257
257
  var le;
258
- const Zt = window, _t = Zt.trustedTypes, ke = _t ? _t.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Kt = "$lit$", W = `lit$${(Math.random() + "").slice(9)}$`, Te = "?" + W, Fi = `<${Te}>`, dt = document, Nt = () => dt.createComment(""), Lt = (i) => i === null || typeof i != "object" && typeof i != "function", si = Array.isArray, ai = (i) => si(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", de = `[
259
- \f\r]`, Dt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ue = /-->/g, Ve = />/g, it = RegExp(`>|${de}(?:([^\\s"'>=/]+)(${de}*=${de}*(?:[^
260
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Fe = /'/g, je = /"/g, li = /^(?:script|style|textarea|title)$/i, ji = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), N = ji(1), j = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), ze = /* @__PURE__ */ new WeakMap(), lt = dt.createTreeWalker(dt, 129, null, !1), di = (i, t) => {
258
+ const qt = window, bt = qt.trustedTypes, Be = bt ? bt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Kt = "$lit$", G = `lit$${(Math.random() + "").slice(9)}$`, De = "?" + G, zi = `<${De}>`, dt = document, Pt = () => dt.createComment(""), It = (i) => i === null || typeof i != "object" && typeof i != "function", ai = Array.isArray, si = (i) => ai(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", de = `[
259
+ \f\r]`, St = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Re = /-->/g, Ue = />/g, it = RegExp(`>|${de}(?:([^\\s"'>=/]+)(${de}*=${de}*(?:[^
260
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Fe = /'/g, ze = /"/g, li = /^(?:script|style|textarea|title)$/i, ji = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), L = ji(1), z = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), je = /* @__PURE__ */ new WeakMap(), lt = dt.createTreeWalker(dt, 129, null, !1), di = (i, t) => {
261
261
  const e = i.length - 1, n = [];
262
- let r, o = t === 2 ? "<svg>" : "", s = Dt;
263
- for (let l = 0; l < e; l++) {
264
- const d = i[l];
265
- let f, u, c = -1, v = 0;
266
- for (; v < d.length && (s.lastIndex = v, u = s.exec(d), u !== null); )
267
- v = s.lastIndex, s === Dt ? u[1] === "!--" ? s = Ue : u[1] !== void 0 ? s = Ve : u[2] !== void 0 ? (li.test(u[2]) && (r = RegExp("</" + u[2], "g")), s = it) : u[3] !== void 0 && (s = it) : s === it ? u[0] === ">" ? (s = r ?? Dt, c = -1) : u[1] === void 0 ? c = -2 : (c = s.lastIndex - u[2].length, f = u[1], s = u[3] === void 0 ? it : u[3] === '"' ? je : Fe) : s === je || s === Fe ? s = it : s === Ue || s === Ve ? s = Dt : (s = it, r = void 0);
268
- const p = s === it && i[l + 1].startsWith("/>") ? " " : "";
269
- o += s === Dt ? d + Fi : c >= 0 ? (n.push(f), d.slice(0, c) + Kt + d.slice(c) + W + p) : d + W + (c === -2 ? (n.push(void 0), l) : p);
270
- }
271
- const a = o + (i[e] || "<?>") + (t === 2 ? "</svg>" : "");
262
+ let r, o = t === 2 ? "<svg>" : "", a = St;
263
+ for (let s = 0; s < e; s++) {
264
+ const d = i[s];
265
+ let p, h, c = -1, m = 0;
266
+ for (; m < d.length && (a.lastIndex = m, h = a.exec(d), h !== null); )
267
+ m = a.lastIndex, a === St ? h[1] === "!--" ? a = Re : h[1] !== void 0 ? a = Ue : h[2] !== void 0 ? (li.test(h[2]) && (r = RegExp("</" + h[2], "g")), a = it) : h[3] !== void 0 && (a = it) : a === it ? h[0] === ">" ? (a = r ?? St, c = -1) : h[1] === void 0 ? c = -2 : (c = a.lastIndex - h[2].length, p = h[1], a = h[3] === void 0 ? it : h[3] === '"' ? ze : Fe) : a === ze || a === Fe ? a = it : a === Re || a === Ue ? a = St : (a = it, r = void 0);
268
+ const f = a === it && i[s + 1].startsWith("/>") ? " " : "";
269
+ o += a === St ? d + zi : c >= 0 ? (n.push(p), d.slice(0, c) + Kt + d.slice(c) + G + f) : d + G + (c === -2 ? (n.push(void 0), s) : f);
270
+ }
271
+ const l = o + (i[e] || "<?>") + (t === 2 ? "</svg>" : "");
272
272
  if (!Array.isArray(i) || !i.hasOwnProperty("raw"))
273
273
  throw Error("invalid template strings array");
274
- return [ke !== void 0 ? ke.createHTML(a) : a, n];
274
+ return [Be !== void 0 ? Be.createHTML(l) : l, n];
275
275
  };
276
276
  class Mt {
277
277
  constructor({ strings: t, _$litType$: e }, n) {
278
278
  let r;
279
279
  this.parts = [];
280
- let o = 0, s = 0;
281
- const a = t.length - 1, l = this.parts, [d, f] = di(t, e);
280
+ let o = 0, a = 0;
281
+ const l = t.length - 1, s = this.parts, [d, p] = di(t, e);
282
282
  if (this.el = Mt.createElement(d, n), lt.currentNode = this.el.content, e === 2) {
283
- const u = this.el.content, c = u.firstChild;
284
- c.remove(), u.append(...c.childNodes);
283
+ const h = this.el.content, c = h.firstChild;
284
+ c.remove(), h.append(...c.childNodes);
285
285
  }
286
- for (; (r = lt.nextNode()) !== null && l.length < a; ) {
286
+ for (; (r = lt.nextNode()) !== null && s.length < l; ) {
287
287
  if (r.nodeType === 1) {
288
288
  if (r.hasAttributes()) {
289
- const u = [];
289
+ const h = [];
290
290
  for (const c of r.getAttributeNames())
291
- if (c.endsWith(Kt) || c.startsWith(W)) {
292
- const v = f[s++];
293
- if (u.push(c), v !== void 0) {
294
- const p = r.getAttribute(v.toLowerCase() + Kt).split(W), m = /([.?@])?(.*)/.exec(v);
295
- l.push({ type: 1, index: o, name: m[2], strings: p, ctor: m[1] === "." ? ui : m[1] === "?" ? ci : m[1] === "@" ? fi : Ht });
291
+ if (c.endsWith(Kt) || c.startsWith(G)) {
292
+ const m = p[a++];
293
+ if (h.push(c), m !== void 0) {
294
+ const f = r.getAttribute(m.toLowerCase() + Kt).split(G), v = /([.?@])?(.*)/.exec(m);
295
+ s.push({ type: 1, index: o, name: v[2], strings: f, ctor: v[1] === "." ? hi : v[1] === "?" ? ci : v[1] === "@" ? pi : Nt });
296
296
  } else
297
- l.push({ type: 6, index: o });
297
+ s.push({ type: 6, index: o });
298
298
  }
299
- for (const c of u)
299
+ for (const c of h)
300
300
  r.removeAttribute(c);
301
301
  }
302
302
  if (li.test(r.tagName)) {
303
- const u = r.textContent.split(W), c = u.length - 1;
303
+ const h = r.textContent.split(G), c = h.length - 1;
304
304
  if (c > 0) {
305
- r.textContent = _t ? _t.emptyScript : "";
306
- for (let v = 0; v < c; v++)
307
- r.append(u[v], Nt()), lt.nextNode(), l.push({ type: 2, index: ++o });
308
- r.append(u[c], Nt());
305
+ r.textContent = bt ? bt.emptyScript : "";
306
+ for (let m = 0; m < c; m++)
307
+ r.append(h[m], Pt()), lt.nextNode(), s.push({ type: 2, index: ++o });
308
+ r.append(h[c], Pt());
309
309
  }
310
310
  }
311
311
  } else if (r.nodeType === 8)
312
- if (r.data === Te)
313
- l.push({ type: 2, index: o });
312
+ if (r.data === De)
313
+ s.push({ type: 2, index: o });
314
314
  else {
315
- let u = -1;
316
- for (; (u = r.data.indexOf(W, u + 1)) !== -1; )
317
- l.push({ type: 7, index: o }), u += W.length - 1;
315
+ let h = -1;
316
+ for (; (h = r.data.indexOf(G, h + 1)) !== -1; )
317
+ s.push({ type: 7, index: o }), h += G.length - 1;
318
318
  }
319
319
  o++;
320
320
  }
@@ -324,15 +324,15 @@ class Mt {
324
324
  return n.innerHTML = t, n;
325
325
  }
326
326
  }
327
- function ht(i, t, e = i, n) {
328
- var r, o, s, a;
329
- if (t === j)
327
+ function ut(i, t, e = i, n) {
328
+ var r, o, a, l;
329
+ if (t === z)
330
330
  return t;
331
- let l = n !== void 0 ? (r = e._$Co) === null || r === void 0 ? void 0 : r[n] : e._$Cl;
332
- const d = Lt(t) ? void 0 : t._$litDirective$;
333
- return (l == null ? void 0 : l.constructor) !== d && ((o = l == null ? void 0 : l._$AO) === null || o === void 0 || o.call(l, !1), d === void 0 ? l = void 0 : (l = new d(i), l._$AT(i, e, n)), n !== void 0 ? ((s = (a = e)._$Co) !== null && s !== void 0 ? s : a._$Co = [])[n] = l : e._$Cl = l), l !== void 0 && (t = ht(i, l._$AS(i, t.values), l, n)), t;
331
+ let s = n !== void 0 ? (r = e._$Co) === null || r === void 0 ? void 0 : r[n] : e._$Cl;
332
+ const d = It(t) ? void 0 : t._$litDirective$;
333
+ return (s == null ? void 0 : s.constructor) !== d && ((o = s == null ? void 0 : s._$AO) === null || o === void 0 || o.call(s, !1), d === void 0 ? s = void 0 : (s = new d(i), s._$AT(i, e, n)), n !== void 0 ? ((a = (l = e)._$Co) !== null && a !== void 0 ? a : l._$Co = [])[n] = s : e._$Cl = s), s !== void 0 && (t = ut(i, s._$AS(i, t.values), s, n)), t;
334
334
  }
335
- class hi {
335
+ class ui {
336
336
  constructor(t, e) {
337
337
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
338
338
  }
@@ -346,13 +346,13 @@ class hi {
346
346
  var e;
347
347
  const { el: { content: n }, parts: r } = this._$AD, o = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : dt).importNode(n, !0);
348
348
  lt.currentNode = o;
349
- let s = lt.nextNode(), a = 0, l = 0, d = r[0];
349
+ let a = lt.nextNode(), l = 0, s = 0, d = r[0];
350
350
  for (; d !== void 0; ) {
351
- if (a === d.index) {
352
- let f;
353
- d.type === 2 ? f = new Et(s, s.nextSibling, this, t) : d.type === 1 ? f = new d.ctor(s, d.name, d.strings, this, t) : d.type === 6 && (f = new pi(s, this, t)), this._$AV.push(f), d = r[++l];
351
+ if (l === d.index) {
352
+ let p;
353
+ d.type === 2 ? p = new Et(a, a.nextSibling, this, t) : d.type === 1 ? p = new d.ctor(a, d.name, d.strings, this, t) : d.type === 6 && (p = new fi(a, this, t)), this._$AV.push(p), d = r[++s];
354
354
  }
355
- a !== (d == null ? void 0 : d.index) && (s = lt.nextNode(), a++);
355
+ l !== (d == null ? void 0 : d.index) && (a = lt.nextNode(), l++);
356
356
  }
357
357
  return lt.currentNode = dt, o;
358
358
  }
@@ -383,7 +383,7 @@ class Et {
383
383
  return this._$AB;
384
384
  }
385
385
  _$AI(t, e = this) {
386
- t = ht(this, t, e), Lt(t) ? t === E || t == null || t === "" ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== j && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : ai(t) ? this.T(t) : this._(t);
386
+ t = ut(this, t, e), It(t) ? t === E || t == null || t === "" ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== z && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : si(t) ? this.T(t) : this._(t);
387
387
  }
388
388
  k(t) {
389
389
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -392,7 +392,7 @@ class Et {
392
392
  this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
393
393
  }
394
394
  _(t) {
395
- this._$AH !== E && Lt(this._$AH) ? this._$AA.nextSibling.data = t : this.$(dt.createTextNode(t)), this._$AH = t;
395
+ this._$AH !== E && It(this._$AH) ? this._$AA.nextSibling.data = t : this.$(dt.createTextNode(t)), this._$AH = t;
396
396
  }
397
397
  g(t) {
398
398
  var e;
@@ -400,20 +400,20 @@ class Et {
400
400
  if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === o)
401
401
  this._$AH.v(n);
402
402
  else {
403
- const s = new hi(o, this), a = s.u(this.options);
404
- s.v(n), this.$(a), this._$AH = s;
403
+ const a = new ui(o, this), l = a.u(this.options);
404
+ a.v(n), this.$(l), this._$AH = a;
405
405
  }
406
406
  }
407
407
  _$AC(t) {
408
- let e = ze.get(t.strings);
409
- return e === void 0 && ze.set(t.strings, e = new Mt(t)), e;
408
+ let e = je.get(t.strings);
409
+ return e === void 0 && je.set(t.strings, e = new Mt(t)), e;
410
410
  }
411
411
  T(t) {
412
- si(this._$AH) || (this._$AH = [], this._$AR());
412
+ ai(this._$AH) || (this._$AH = [], this._$AR());
413
413
  const e = this._$AH;
414
414
  let n, r = 0;
415
415
  for (const o of t)
416
- r === e.length ? e.push(n = new Et(this.k(Nt()), this.k(Nt()), this, this.options)) : n = e[r], n._$AI(o), r++;
416
+ r === e.length ? e.push(n = new Et(this.k(Pt()), this.k(Pt()), this, this.options)) : n = e[r], n._$AI(o), r++;
417
417
  r < e.length && (this._$AR(n && n._$AB.nextSibling, r), e.length = r);
418
418
  }
419
419
  _$AR(t = this._$AA.nextSibling, e) {
@@ -428,7 +428,7 @@ class Et {
428
428
  this._$AM === void 0 && (this._$Cp = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
429
429
  }
430
430
  }
431
- class Ht {
431
+ class Nt {
432
432
  constructor(t, e, n, r, o) {
433
433
  this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = o, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = E;
434
434
  }
@@ -440,22 +440,22 @@ class Ht {
440
440
  }
441
441
  _$AI(t, e = this, n, r) {
442
442
  const o = this.strings;
443
- let s = !1;
443
+ let a = !1;
444
444
  if (o === void 0)
445
- t = ht(this, t, e, 0), s = !Lt(t) || t !== this._$AH && t !== j, s && (this._$AH = t);
445
+ t = ut(this, t, e, 0), a = !It(t) || t !== this._$AH && t !== z, a && (this._$AH = t);
446
446
  else {
447
- const a = t;
448
- let l, d;
449
- for (t = o[0], l = 0; l < o.length - 1; l++)
450
- d = ht(this, a[n + l], e, l), d === j && (d = this._$AH[l]), s || (s = !Lt(d) || d !== this._$AH[l]), d === E ? t = E : t !== E && (t += (d ?? "") + o[l + 1]), this._$AH[l] = d;
447
+ const l = t;
448
+ let s, d;
449
+ for (t = o[0], s = 0; s < o.length - 1; s++)
450
+ d = ut(this, l[n + s], e, s), d === z && (d = this._$AH[s]), a || (a = !It(d) || d !== this._$AH[s]), d === E ? t = E : t !== E && (t += (d ?? "") + o[s + 1]), this._$AH[s] = d;
451
451
  }
452
- s && !r && this.j(t);
452
+ a && !r && this.j(t);
453
453
  }
454
454
  j(t) {
455
455
  t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
456
456
  }
457
457
  }
458
- class ui extends Ht {
458
+ class hi extends Nt {
459
459
  constructor() {
460
460
  super(...arguments), this.type = 3;
461
461
  }
@@ -463,32 +463,32 @@ class ui extends Ht {
463
463
  this.element[this.name] = t === E ? void 0 : t;
464
464
  }
465
465
  }
466
- const zi = _t ? _t.emptyScript : "";
467
- class ci extends Ht {
466
+ const Xi = bt ? bt.emptyScript : "";
467
+ class ci extends Nt {
468
468
  constructor() {
469
469
  super(...arguments), this.type = 4;
470
470
  }
471
471
  j(t) {
472
- t && t !== E ? this.element.setAttribute(this.name, zi) : this.element.removeAttribute(this.name);
472
+ t && t !== E ? this.element.setAttribute(this.name, Xi) : this.element.removeAttribute(this.name);
473
473
  }
474
474
  }
475
- class fi extends Ht {
475
+ class pi extends Nt {
476
476
  constructor(t, e, n, r, o) {
477
477
  super(t, e, n, r, o), this.type = 5;
478
478
  }
479
479
  _$AI(t, e = this) {
480
480
  var n;
481
- if ((t = (n = ht(this, t, e, 0)) !== null && n !== void 0 ? n : E) === j)
481
+ if ((t = (n = ut(this, t, e, 0)) !== null && n !== void 0 ? n : E) === z)
482
482
  return;
483
- const r = this._$AH, o = t === E && r !== E || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, s = t !== E && (r === E || o);
484
- o && this.element.removeEventListener(this.name, this, r), s && this.element.addEventListener(this.name, this, t), this._$AH = t;
483
+ const r = this._$AH, o = t === E && r !== E || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, a = t !== E && (r === E || o);
484
+ o && this.element.removeEventListener(this.name, this, r), a && this.element.addEventListener(this.name, this, t), this._$AH = t;
485
485
  }
486
486
  handleEvent(t) {
487
487
  var e, n;
488
488
  typeof this._$AH == "function" ? this._$AH.call((n = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && n !== void 0 ? n : this.element, t) : this._$AH.handleEvent(t);
489
489
  }
490
490
  }
491
- class pi {
491
+ class fi {
492
492
  constructor(t, e, n) {
493
493
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = n;
494
494
  }
@@ -496,28 +496,28 @@ class pi {
496
496
  return this._$AM._$AU;
497
497
  }
498
498
  _$AI(t) {
499
- ht(this, t);
499
+ ut(this, t);
500
500
  }
501
501
  }
502
- const Xi = { O: Kt, P: W, A: Te, C: 1, M: di, L: hi, D: ai, R: ht, I: Et, V: Ht, H: ci, N: fi, U: ui, F: pi }, Xe = Zt.litHtmlPolyfillSupport;
503
- Xe == null || Xe(Mt, Et), ((le = Zt.litHtmlVersions) !== null && le !== void 0 ? le : Zt.litHtmlVersions = []).push("2.7.4");
504
- const Yi = (i, t, e) => {
502
+ const Yi = { O: Kt, P: G, A: De, C: 1, M: di, L: ui, D: si, R: ut, I: Et, V: Nt, H: ci, N: pi, U: hi, F: fi }, Xe = qt.litHtmlPolyfillSupport;
503
+ Xe == null || Xe(Mt, Et), ((le = qt.litHtmlVersions) !== null && le !== void 0 ? le : qt.litHtmlVersions = []).push("2.7.4");
504
+ const Wi = (i, t, e) => {
505
505
  var n, r;
506
506
  const o = (n = e == null ? void 0 : e.renderBefore) !== null && n !== void 0 ? n : t;
507
- let s = o._$litPart$;
508
- if (s === void 0) {
509
- const a = (r = e == null ? void 0 : e.renderBefore) !== null && r !== void 0 ? r : null;
510
- o._$litPart$ = s = new Et(t.insertBefore(Nt(), a), a, void 0, e ?? {});
507
+ let a = o._$litPart$;
508
+ if (a === void 0) {
509
+ const l = (r = e == null ? void 0 : e.renderBefore) !== null && r !== void 0 ? r : null;
510
+ o._$litPart$ = a = new Et(t.insertBefore(Pt(), l), l, void 0, e ?? {});
511
511
  }
512
- return s._$AI(i), s;
512
+ return a._$AI(i), a;
513
513
  };
514
514
  /**
515
515
  * @license
516
516
  * Copyright 2017 Google LLC
517
517
  * SPDX-License-Identifier: BSD-3-Clause
518
518
  */
519
- var he, ue;
520
- let mt = class extends pt {
519
+ var ue, he;
520
+ let vt = class extends ft {
521
521
  constructor() {
522
522
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
523
523
  }
@@ -528,7 +528,7 @@ let mt = class extends pt {
528
528
  }
529
529
  update(t) {
530
530
  const e = this.render();
531
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Yi(e, this.renderRoot, this.renderOptions);
531
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Wi(e, this.renderRoot, this.renderOptions);
532
532
  }
533
533
  connectedCallback() {
534
534
  var t;
@@ -539,13 +539,13 @@ let mt = class extends pt {
539
539
  super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
540
540
  }
541
541
  render() {
542
- return j;
542
+ return z;
543
543
  }
544
544
  };
545
- mt.finalized = !0, mt._$litElement$ = !0, (he = globalThis.litElementHydrateSupport) === null || he === void 0 || he.call(globalThis, { LitElement: mt });
545
+ vt.finalized = !0, vt._$litElement$ = !0, (ue = globalThis.litElementHydrateSupport) === null || ue === void 0 || ue.call(globalThis, { LitElement: vt });
546
546
  const Ye = globalThis.litElementPolyfillSupport;
547
- Ye == null || Ye({ LitElement: mt });
548
- ((ue = globalThis.litElementVersions) !== null && ue !== void 0 ? ue : globalThis.litElementVersions = []).push("3.3.2");
547
+ Ye == null || Ye({ LitElement: vt });
548
+ ((he = globalThis.litElementVersions) !== null && he !== void 0 ? he : globalThis.litElementVersions = []).push("3.3.2");
549
549
  /**
550
550
  * @license
551
551
  * Copyright 2017 Google LLC
@@ -553,8 +553,8 @@ Ye == null || Ye({ LitElement: mt });
553
553
  */
554
554
  const gi = (i) => (t) => typeof t == "function" ? ((e, n) => (customElements.define(e, n), n))(i, t) : ((e, n) => {
555
555
  const { kind: r, elements: o } = n;
556
- return { kind: r, elements: o, finisher(s) {
557
- customElements.define(e, s);
556
+ return { kind: r, elements: o, finisher(a) {
557
+ customElements.define(e, a);
558
558
  } };
559
559
  })(i, t);
560
560
  /**
@@ -562,25 +562,25 @@ const gi = (i) => (t) => typeof t == "function" ? ((e, n) => (customElements.def
562
562
  * Copyright 2017 Google LLC
563
563
  * SPDX-License-Identifier: BSD-3-Clause
564
564
  */
565
- const Wi = (i, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(e) {
565
+ const Gi = (i, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(e) {
566
566
  e.createProperty(t.key, i);
567
567
  } } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
568
568
  typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
569
569
  }, finisher(e) {
570
570
  e.createProperty(t.key, i);
571
- } }, Gi = (i, t, e) => {
571
+ } }, Zi = (i, t, e) => {
572
572
  t.constructor.createProperty(e, i);
573
573
  };
574
- function R(i) {
575
- return (t, e) => e !== void 0 ? Gi(i, t, e) : Wi(i, t);
574
+ function M(i) {
575
+ return (t, e) => e !== void 0 ? Zi(i, t, e) : Gi(i, t);
576
576
  }
577
577
  /**
578
578
  * @license
579
579
  * Copyright 2017 Google LLC
580
580
  * SPDX-License-Identifier: BSD-3-Clause
581
581
  */
582
- function $t(i) {
583
- return R({ ...i, state: !0 });
582
+ function wt(i) {
583
+ return M({ ...i, state: !0 });
584
584
  }
585
585
  /**
586
586
  * @license
@@ -594,8 +594,8 @@ var ce;
594
594
  * Copyright 2017 Google LLC
595
595
  * SPDX-License-Identifier: BSD-3-Clause
596
596
  */
597
- const st = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, vi = (i) => (...t) => ({ _$litDirective$: i, values: t });
598
- class mi {
597
+ const at = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, mi = (i) => (...t) => ({ _$litDirective$: i, values: t });
598
+ class vi {
599
599
  constructor(t) {
600
600
  }
601
601
  get _$AU() {
@@ -616,28 +616,28 @@ class mi {
616
616
  * Copyright 2020 Google LLC
617
617
  * SPDX-License-Identifier: BSD-3-Clause
618
618
  */
619
- const { I: qi } = Xi, Zi = (i) => i.strings === void 0, We = () => document.createComment(""), Tt = (i, t, e) => {
619
+ const { I: qi } = Yi, Ki = (i) => i.strings === void 0, We = () => document.createComment(""), Dt = (i, t, e) => {
620
620
  var n;
621
621
  const r = i._$AA.parentNode, o = t === void 0 ? i._$AB : t._$AA;
622
622
  if (e === void 0) {
623
- const s = r.insertBefore(We(), o), a = r.insertBefore(We(), o);
624
- e = new qi(s, a, i, i.options);
623
+ const a = r.insertBefore(We(), o), l = r.insertBefore(We(), o);
624
+ e = new qi(a, l, i, i.options);
625
625
  } else {
626
- const s = e._$AB.nextSibling, a = e._$AM, l = a !== i;
627
- if (l) {
626
+ const a = e._$AB.nextSibling, l = e._$AM, s = l !== i;
627
+ if (s) {
628
628
  let d;
629
- (n = e._$AQ) === null || n === void 0 || n.call(e, i), e._$AM = i, e._$AP !== void 0 && (d = i._$AU) !== a._$AU && e._$AP(d);
629
+ (n = e._$AQ) === null || n === void 0 || n.call(e, i), e._$AM = i, e._$AP !== void 0 && (d = i._$AU) !== l._$AU && e._$AP(d);
630
630
  }
631
- if (s !== o || l) {
631
+ if (a !== o || s) {
632
632
  let d = e._$AA;
633
- for (; d !== s; ) {
634
- const f = d.nextSibling;
635
- r.insertBefore(d, o), d = f;
633
+ for (; d !== a; ) {
634
+ const p = d.nextSibling;
635
+ r.insertBefore(d, o), d = p;
636
636
  }
637
637
  }
638
638
  }
639
639
  return e;
640
- }, nt = (i, t, e = i) => (i._$AI(t, e), i), Ki = {}, yi = (i, t = Ki) => i._$AH = t, Qi = (i) => i._$AH, fe = (i) => {
640
+ }, nt = (i, t, e = i) => (i._$AI(t, e), i), Qi = {}, yi = (i, t = Qi) => i._$AH = t, Ji = (i) => i._$AH, pe = (i) => {
641
641
  var t;
642
642
  (t = i._$AP) === null || t === void 0 || t.call(i, !1, !0);
643
643
  let e = i._$AA;
@@ -657,18 +657,18 @@ const Ge = (i, t, e) => {
657
657
  for (let r = t; r <= e; r++)
658
658
  n.set(i[r], r);
659
659
  return n;
660
- }, we = vi(class extends mi {
660
+ }, Ce = mi(class extends vi {
661
661
  constructor(i) {
662
- if (super(i), i.type !== st.CHILD)
662
+ if (super(i), i.type !== at.CHILD)
663
663
  throw Error("repeat() can only be used in text expressions");
664
664
  }
665
665
  dt(i, t, e) {
666
666
  let n;
667
667
  e === void 0 ? e = t : t !== void 0 && (n = t);
668
668
  const r = [], o = [];
669
- let s = 0;
670
- for (const a of i)
671
- r[s] = n ? n(a, s) : s, o[s] = e(a, s), s++;
669
+ let a = 0;
670
+ for (const l of i)
671
+ r[a] = n ? n(l, a) : a, o[a] = e(l, a), a++;
672
672
  return { values: o, keys: r };
673
673
  }
674
674
  render(i, t, e) {
@@ -676,46 +676,46 @@ const Ge = (i, t, e) => {
676
676
  }
677
677
  update(i, [t, e, n]) {
678
678
  var r;
679
- const o = Qi(i), { values: s, keys: a } = this.dt(t, e, n);
679
+ const o = Ji(i), { values: a, keys: l } = this.dt(t, e, n);
680
680
  if (!Array.isArray(o))
681
- return this.ht = a, s;
682
- const l = (r = this.ht) !== null && r !== void 0 ? r : this.ht = [], d = [];
683
- let f, u, c = 0, v = o.length - 1, p = 0, m = s.length - 1;
684
- for (; c <= v && p <= m; )
681
+ return this.ht = l, a;
682
+ const s = (r = this.ht) !== null && r !== void 0 ? r : this.ht = [], d = [];
683
+ let p, h, c = 0, m = o.length - 1, f = 0, v = a.length - 1;
684
+ for (; c <= m && f <= v; )
685
685
  if (o[c] === null)
686
686
  c++;
687
- else if (o[v] === null)
688
- v--;
689
- else if (l[c] === a[p])
690
- d[p] = nt(o[c], s[p]), c++, p++;
691
- else if (l[v] === a[m])
692
- d[m] = nt(o[v], s[m]), v--, m--;
693
- else if (l[c] === a[m])
694
- d[m] = nt(o[c], s[m]), Tt(i, d[m + 1], o[c]), c++, m--;
695
- else if (l[v] === a[p])
696
- d[p] = nt(o[v], s[p]), Tt(i, o[c], o[v]), v--, p++;
697
- else if (f === void 0 && (f = Ge(a, p, m), u = Ge(l, c, v)), f.has(l[c]))
698
- if (f.has(l[v])) {
699
- const D = u.get(a[p]), V = D !== void 0 ? o[D] : null;
700
- if (V === null) {
701
- const O = Tt(i, o[c]);
702
- nt(O, s[p]), d[p] = O;
687
+ else if (o[m] === null)
688
+ m--;
689
+ else if (s[c] === l[f])
690
+ d[f] = nt(o[c], a[f]), c++, f++;
691
+ else if (s[m] === l[v])
692
+ d[v] = nt(o[m], a[v]), m--, v--;
693
+ else if (s[c] === l[v])
694
+ d[v] = nt(o[c], a[v]), Dt(i, d[v + 1], o[c]), c++, v--;
695
+ else if (s[m] === l[f])
696
+ d[f] = nt(o[m], a[f]), Dt(i, o[c], o[m]), m--, f++;
697
+ else if (p === void 0 && (p = Ge(l, f, v), h = Ge(s, c, m)), p.has(s[c]))
698
+ if (p.has(s[m])) {
699
+ const S = h.get(l[f]), U = S !== void 0 ? o[S] : null;
700
+ if (U === null) {
701
+ const O = Dt(i, o[c]);
702
+ nt(O, a[f]), d[f] = O;
703
703
  } else
704
- d[p] = nt(V, s[p]), Tt(i, o[c], V), o[D] = null;
705
- p++;
704
+ d[f] = nt(U, a[f]), Dt(i, o[c], U), o[S] = null;
705
+ f++;
706
706
  } else
707
- fe(o[v]), v--;
707
+ pe(o[m]), m--;
708
708
  else
709
- fe(o[c]), c++;
710
- for (; p <= m; ) {
711
- const D = Tt(i, d[m + 1]);
712
- nt(D, s[p]), d[p++] = D;
709
+ pe(o[c]), c++;
710
+ for (; f <= v; ) {
711
+ const S = Dt(i, d[v + 1]);
712
+ nt(S, a[f]), d[f++] = S;
713
713
  }
714
- for (; c <= v; ) {
715
- const D = o[c++];
716
- D !== null && fe(D);
714
+ for (; c <= m; ) {
715
+ const S = o[c++];
716
+ S !== null && pe(S);
717
717
  }
718
- return this.ht = a, yi(i, d), j;
718
+ return this.ht = l, yi(i, d), z;
719
719
  }
720
720
  });
721
721
  /**
@@ -723,28 +723,28 @@ const Ge = (i, t, e) => {
723
723
  * Copyright 2020 Google LLC
724
724
  * SPDX-License-Identifier: BSD-3-Clause
725
725
  */
726
- const Ce = vi(class extends mi {
726
+ const $e = mi(class extends vi {
727
727
  constructor(i) {
728
- if (super(i), i.type !== st.PROPERTY && i.type !== st.ATTRIBUTE && i.type !== st.BOOLEAN_ATTRIBUTE)
728
+ if (super(i), i.type !== at.PROPERTY && i.type !== at.ATTRIBUTE && i.type !== at.BOOLEAN_ATTRIBUTE)
729
729
  throw Error("The `live` directive is not allowed on child or event bindings");
730
- if (!Zi(i))
730
+ if (!Ki(i))
731
731
  throw Error("`live` bindings can only contain a single expression");
732
732
  }
733
733
  render(i) {
734
734
  return i;
735
735
  }
736
736
  update(i, [t]) {
737
- if (t === j || t === E)
737
+ if (t === z || t === E)
738
738
  return t;
739
739
  const e = i.element, n = i.name;
740
- if (i.type === st.PROPERTY) {
740
+ if (i.type === at.PROPERTY) {
741
741
  if (t === e[n])
742
- return j;
743
- } else if (i.type === st.BOOLEAN_ATTRIBUTE) {
742
+ return z;
743
+ } else if (i.type === at.BOOLEAN_ATTRIBUTE) {
744
744
  if (!!t === e.hasAttribute(n))
745
- return j;
746
- } else if (i.type === st.ATTRIBUTE && e.getAttribute(n) === t + "")
747
- return j;
745
+ return z;
746
+ } else if (i.type === at.ATTRIBUTE && e.getAttribute(n) === t + "")
747
+ return z;
748
748
  return yi(i), t;
749
749
  }
750
750
  });
@@ -753,7 +753,7 @@ const Ce = vi(class extends mi {
753
753
  * Copyright 2021 Google LLC
754
754
  * SPDX-License-Identifier: BSD-3-Clause
755
755
  */
756
- function _i(i, t, e) {
756
+ function bi(i, t, e) {
757
757
  return i ? t() : e == null ? void 0 : e();
758
758
  }
759
759
  /**!
@@ -762,7 +762,7 @@ function _i(i, t, e) {
762
762
  * @author owenm <owen23355@gmail.com>
763
763
  * @license MIT
764
764
  */
765
- function qe(i, t) {
765
+ function Ze(i, t) {
766
766
  var e = Object.keys(i);
767
767
  if (Object.getOwnPropertySymbols) {
768
768
  var n = Object.getOwnPropertySymbols(i);
@@ -775,23 +775,23 @@ function qe(i, t) {
775
775
  function X(i) {
776
776
  for (var t = 1; t < arguments.length; t++) {
777
777
  var e = arguments[t] != null ? arguments[t] : {};
778
- t % 2 ? qe(Object(e), !0).forEach(function(n) {
779
- Ji(i, n, e[n]);
780
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(e)) : qe(Object(e)).forEach(function(n) {
778
+ t % 2 ? Ze(Object(e), !0).forEach(function(n) {
779
+ tn(i, n, e[n]);
780
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(e)) : Ze(Object(e)).forEach(function(n) {
781
781
  Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(e, n));
782
782
  });
783
783
  }
784
784
  return i;
785
785
  }
786
- function zt(i) {
786
+ function jt(i) {
787
787
  "@babel/helpers - typeof";
788
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? zt = function(t) {
788
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? jt = function(t) {
789
789
  return typeof t;
790
- } : zt = function(t) {
790
+ } : jt = function(t) {
791
791
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
792
- }, zt(i);
792
+ }, jt(i);
793
793
  }
794
- function Ji(i, t, e) {
794
+ function tn(i, t, e) {
795
795
  return t in i ? Object.defineProperty(i, t, {
796
796
  value: e,
797
797
  enumerable: !0,
@@ -809,7 +809,7 @@ function J() {
809
809
  return i;
810
810
  }, J.apply(this, arguments);
811
811
  }
812
- function tn(i, t) {
812
+ function en(i, t) {
813
813
  if (i == null)
814
814
  return {};
815
815
  var e = {}, n = Object.keys(i), r, o;
@@ -817,10 +817,10 @@ function tn(i, t) {
817
817
  r = n[o], !(t.indexOf(r) >= 0) && (e[r] = i[r]);
818
818
  return e;
819
819
  }
820
- function en(i, t) {
820
+ function nn(i, t) {
821
821
  if (i == null)
822
822
  return {};
823
- var e = tn(i, t), n, r;
823
+ var e = en(i, t), n, r;
824
824
  if (Object.getOwnPropertySymbols) {
825
825
  var o = Object.getOwnPropertySymbols(i);
826
826
  for (r = 0; r < o.length; r++)
@@ -828,20 +828,20 @@ function en(i, t) {
828
828
  }
829
829
  return e;
830
830
  }
831
- var nn = "1.15.0";
832
- function G(i) {
831
+ var rn = "1.15.0";
832
+ function Z(i) {
833
833
  if (typeof window < "u" && window.navigator)
834
834
  return !!/* @__PURE__ */ navigator.userAgent.match(i);
835
835
  }
836
- var tt = G(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ie = G(/Edge/i), Ze = G(/firefox/i), Xt = G(/safari/i) && !G(/chrome/i) && !G(/android/i), bi = G(/iP(ad|od|hone)/i), Ei = G(/chrome/i) && G(/android/i), $i = {
836
+ var tt = Z(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ie = Z(/Edge/i), qe = Z(/firefox/i), Xt = Z(/safari/i) && !Z(/chrome/i) && !Z(/android/i), _i = Z(/iP(ad|od|hone)/i), Ei = Z(/chrome/i) && Z(/android/i), wi = {
837
837
  capture: !1,
838
838
  passive: !1
839
839
  };
840
- function $(i, t, e) {
841
- i.addEventListener(t, e, !tt && $i);
840
+ function w(i, t, e) {
841
+ i.addEventListener(t, e, !tt && wi);
842
842
  }
843
- function b(i, t, e) {
844
- i.removeEventListener(t, e, !tt && $i);
843
+ function _(i, t, e) {
844
+ i.removeEventListener(t, e, !tt && wi);
845
845
  }
846
846
  function Qt(i, t) {
847
847
  if (t) {
@@ -859,10 +859,10 @@ function Qt(i, t) {
859
859
  return !1;
860
860
  }
861
861
  }
862
- function rn(i) {
862
+ function on(i) {
863
863
  return i.host && i !== document && i.host.nodeType ? i.host : i.parentNode;
864
864
  }
865
- function z(i, t, e, n) {
865
+ function j(i, t, e, n) {
866
866
  if (i) {
867
867
  e = e || document;
868
868
  do {
@@ -870,12 +870,12 @@ function z(i, t, e, n) {
870
870
  return i;
871
871
  if (i === e)
872
872
  break;
873
- } while (i = rn(i));
873
+ } while (i = on(i));
874
874
  }
875
875
  return null;
876
876
  }
877
877
  var Ke = /\s+/g;
878
- function M(i, t, e) {
878
+ function N(i, t, e) {
879
879
  if (i && t)
880
880
  if (i.classList)
881
881
  i.classList[e ? "add" : "remove"](t);
@@ -904,7 +904,7 @@ function yt(i, t) {
904
904
  var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
905
905
  return r && new r(e);
906
906
  }
907
- function wi(i, t, e) {
907
+ function Ci(i, t, e) {
908
908
  if (i) {
909
909
  var n = i.getElementsByTagName(t), r = 0, o = n.length;
910
910
  if (e)
@@ -918,35 +918,35 @@ function Q() {
918
918
  var i = document.scrollingElement;
919
919
  return i || document.documentElement;
920
920
  }
921
- function T(i, t, e, n, r) {
921
+ function D(i, t, e, n, r) {
922
922
  if (!(!i.getBoundingClientRect && i !== window)) {
923
- var o, s, a, l, d, f, u;
924
- if (i !== window && i.parentNode && i !== Q() ? (o = i.getBoundingClientRect(), s = o.top, a = o.left, l = o.bottom, d = o.right, f = o.height, u = o.width) : (s = 0, a = 0, l = window.innerHeight, d = window.innerWidth, f = window.innerHeight, u = window.innerWidth), (t || e) && i !== window && (r = r || i.parentNode, !tt))
923
+ var o, a, l, s, d, p, h;
924
+ if (i !== window && i.parentNode && i !== Q() ? (o = i.getBoundingClientRect(), a = o.top, l = o.left, s = o.bottom, d = o.right, p = o.height, h = o.width) : (a = 0, l = 0, s = window.innerHeight, d = window.innerWidth, p = window.innerHeight, h = window.innerWidth), (t || e) && i !== window && (r = r || i.parentNode, !tt))
925
925
  do
926
926
  if (r && r.getBoundingClientRect && (g(r, "transform") !== "none" || e && g(r, "position") !== "static")) {
927
927
  var c = r.getBoundingClientRect();
928
- s -= c.top + parseInt(g(r, "border-top-width")), a -= c.left + parseInt(g(r, "border-left-width")), l = s + o.height, d = a + o.width;
928
+ a -= c.top + parseInt(g(r, "border-top-width")), l -= c.left + parseInt(g(r, "border-left-width")), s = a + o.height, d = l + o.width;
929
929
  break;
930
930
  }
931
931
  while (r = r.parentNode);
932
932
  if (n && i !== window) {
933
- var v = yt(r || i), p = v && v.a, m = v && v.d;
934
- v && (s /= m, a /= p, u /= p, f /= m, l = s + f, d = a + u);
933
+ var m = yt(r || i), f = m && m.a, v = m && m.d;
934
+ m && (a /= v, l /= f, h /= f, p /= v, s = a + p, d = l + h);
935
935
  }
936
936
  return {
937
- top: s,
938
- left: a,
939
- bottom: l,
937
+ top: a,
938
+ left: l,
939
+ bottom: s,
940
940
  right: d,
941
- width: u,
942
- height: f
941
+ width: h,
942
+ height: p
943
943
  };
944
944
  }
945
945
  }
946
946
  function Qe(i, t, e) {
947
- for (var n = ti(i, !0), r = T(i)[t]; n; ) {
948
- var o = T(n)[e], s = void 0;
949
- if (e === "top" || e === "left" ? s = r >= o : s = r <= o, !s)
947
+ for (var n = ti(i, !0), r = D(i)[t]; n; ) {
948
+ var o = D(n)[e], a = void 0;
949
+ if (e === "top" || e === "left" ? a = r >= o : a = r <= o, !a)
950
950
  return n;
951
951
  if (n === Q())
952
952
  break;
@@ -954,23 +954,23 @@ function Qe(i, t, e) {
954
954
  }
955
955
  return !1;
956
956
  }
957
- function bt(i, t, e, n) {
958
- for (var r = 0, o = 0, s = i.children; o < s.length; ) {
959
- if (s[o].style.display !== "none" && s[o] !== y.ghost && (n || s[o] !== y.dragged) && z(s[o], e.draggable, i, !1)) {
957
+ function _t(i, t, e, n) {
958
+ for (var r = 0, o = 0, a = i.children; o < a.length; ) {
959
+ if (a[o].style.display !== "none" && a[o] !== y.ghost && (n || a[o] !== y.dragged) && j(a[o], e.draggable, i, !1)) {
960
960
  if (r === t)
961
- return s[o];
961
+ return a[o];
962
962
  r++;
963
963
  }
964
964
  o++;
965
965
  }
966
966
  return null;
967
967
  }
968
- function xe(i, t) {
968
+ function Te(i, t) {
969
969
  for (var e = i.lastElementChild; e && (e === y.ghost || g(e, "display") === "none" || t && !Qt(e, t)); )
970
970
  e = e.previousElementSibling;
971
971
  return e || null;
972
972
  }
973
- function k(i, t) {
973
+ function B(i, t) {
974
974
  var e = 0;
975
975
  if (!i || !i.parentNode)
976
976
  return -1;
@@ -982,12 +982,12 @@ function Je(i) {
982
982
  var t = 0, e = 0, n = Q();
983
983
  if (i)
984
984
  do {
985
- var r = yt(i), o = r.a, s = r.d;
986
- t += i.scrollLeft * o, e += i.scrollTop * s;
985
+ var r = yt(i), o = r.a, a = r.d;
986
+ t += i.scrollLeft * o, e += i.scrollTop * a;
987
987
  } while (i !== n && (i = i.parentNode));
988
988
  return [t, e];
989
989
  }
990
- function on(i, t) {
990
+ function an(i, t) {
991
991
  for (var e in i)
992
992
  if (i.hasOwnProperty(e)) {
993
993
  for (var n in t)
@@ -1020,11 +1020,11 @@ function sn(i, t) {
1020
1020
  t.hasOwnProperty(e) && (i[e] = t[e]);
1021
1021
  return i;
1022
1022
  }
1023
- function pe(i, t) {
1023
+ function fe(i, t) {
1024
1024
  return Math.round(i.top) === Math.round(t.top) && Math.round(i.left) === Math.round(t.left) && Math.round(i.height) === Math.round(t.height) && Math.round(i.width) === Math.round(t.width);
1025
1025
  }
1026
1026
  var ge;
1027
- function an(i, t) {
1027
+ function ln(i, t) {
1028
1028
  return function() {
1029
1029
  if (!ge) {
1030
1030
  var e = arguments, n = this;
@@ -1034,15 +1034,15 @@ function an(i, t) {
1034
1034
  }
1035
1035
  };
1036
1036
  }
1037
- function ln(i, t, e) {
1037
+ function dn(i, t, e) {
1038
1038
  i.scrollLeft += t, i.scrollTop += e;
1039
1039
  }
1040
- function Ci(i) {
1040
+ function $i(i) {
1041
1041
  var t = window.Polymer, e = window.jQuery || window.Zepto;
1042
1042
  return t && t.dom ? t.dom(i).cloneNode(!0) : e ? e(i).clone(!0)[0] : i.cloneNode(!0);
1043
1043
  }
1044
- var U = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
1045
- function dn() {
1044
+ var R = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
1045
+ function un() {
1046
1046
  var i = [], t;
1047
1047
  return {
1048
1048
  captureAnimationState: function() {
@@ -1052,12 +1052,12 @@ function dn() {
1052
1052
  if (!(g(r, "display") === "none" || r === y.ghost)) {
1053
1053
  i.push({
1054
1054
  target: r,
1055
- rect: T(r)
1055
+ rect: D(r)
1056
1056
  });
1057
1057
  var o = X({}, i[i.length - 1].rect);
1058
1058
  if (r.thisAnimationDuration) {
1059
- var s = yt(r, !0);
1060
- s && (o.top -= s.f, o.left -= s.e);
1059
+ var a = yt(r, !0);
1060
+ a && (o.top -= a.f, o.left -= a.e);
1061
1061
  }
1062
1062
  r.fromRect = o;
1063
1063
  }
@@ -1068,7 +1068,7 @@ function dn() {
1068
1068
  i.push(n);
1069
1069
  },
1070
1070
  removeAnimationState: function(n) {
1071
- i.splice(on(i, {
1071
+ i.splice(an(i, {
1072
1072
  target: n
1073
1073
  }), 1);
1074
1074
  },
@@ -1078,24 +1078,24 @@ function dn() {
1078
1078
  clearTimeout(t), typeof n == "function" && n();
1079
1079
  return;
1080
1080
  }
1081
- var o = !1, s = 0;
1082
- i.forEach(function(a) {
1083
- var l = 0, d = a.target, f = d.fromRect, u = T(d), c = d.prevFromRect, v = d.prevToRect, p = a.rect, m = yt(d, !0);
1084
- m && (u.top -= m.f, u.left -= m.e), d.toRect = u, d.thisAnimationDuration && pe(c, u) && !pe(f, u) && // Make sure animatingRect is on line between toRect & fromRect
1085
- (p.top - u.top) / (p.left - u.left) === (f.top - u.top) / (f.left - u.left) && (l = un(p, c, v, r.options)), pe(u, f) || (d.prevFromRect = f, d.prevToRect = u, l || (l = r.options.animation), r.animate(d, p, u, l)), l && (o = !0, s = Math.max(s, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
1081
+ var o = !1, a = 0;
1082
+ i.forEach(function(l) {
1083
+ var s = 0, d = l.target, p = d.fromRect, h = D(d), c = d.prevFromRect, m = d.prevToRect, f = l.rect, v = yt(d, !0);
1084
+ v && (h.top -= v.f, h.left -= v.e), d.toRect = h, d.thisAnimationDuration && fe(c, h) && !fe(p, h) && // Make sure animatingRect is on line between toRect & fromRect
1085
+ (f.top - h.top) / (f.left - h.left) === (p.top - h.top) / (p.left - h.left) && (s = cn(f, c, m, r.options)), fe(h, p) || (d.prevFromRect = p, d.prevToRect = h, s || (s = r.options.animation), r.animate(d, f, h, s)), s && (o = !0, a = Math.max(a, s), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
1086
1086
  d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
1087
- }, l), d.thisAnimationDuration = l);
1087
+ }, s), d.thisAnimationDuration = s);
1088
1088
  }), clearTimeout(t), o ? t = setTimeout(function() {
1089
1089
  typeof n == "function" && n();
1090
- }, s) : typeof n == "function" && n(), i = [];
1090
+ }, a) : typeof n == "function" && n(), i = [];
1091
1091
  },
1092
- animate: function(n, r, o, s) {
1093
- if (s) {
1092
+ animate: function(n, r, o, a) {
1093
+ if (a) {
1094
1094
  g(n, "transition", ""), g(n, "transform", "");
1095
- var a = yt(this.el), l = a && a.a, d = a && a.d, f = (r.left - o.left) / (l || 1), u = (r.top - o.top) / (d || 1);
1096
- n.animatingX = !!f, n.animatingY = !!u, g(n, "transform", "translate3d(" + f + "px," + u + "px,0)"), this.forRepaintDummy = hn(n), g(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), g(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
1095
+ var l = yt(this.el), s = l && l.a, d = l && l.d, p = (r.left - o.left) / (s || 1), h = (r.top - o.top) / (d || 1);
1096
+ n.animatingX = !!p, n.animatingY = !!h, g(n, "transform", "translate3d(" + p + "px," + h + "px,0)"), this.forRepaintDummy = hn(n), g(n, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), g(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
1097
1097
  g(n, "transition", ""), g(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
1098
- }, s);
1098
+ }, a);
1099
1099
  }
1100
1100
  }
1101
1101
  };
@@ -1103,15 +1103,15 @@ function dn() {
1103
1103
  function hn(i) {
1104
1104
  return i.offsetWidth;
1105
1105
  }
1106
- function un(i, t, e, n) {
1106
+ function cn(i, t, e, n) {
1107
1107
  return Math.sqrt(Math.pow(t.top - i.top, 2) + Math.pow(t.left - i.left, 2)) / Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) * n.animation;
1108
1108
  }
1109
- var ct = [], ve = {
1109
+ var ct = [], me = {
1110
1110
  initializeByDefault: !0
1111
- }, Bt = {
1111
+ }, kt = {
1112
1112
  mount: function(t) {
1113
- for (var e in ve)
1114
- ve.hasOwnProperty(e) && !(e in t) && (t[e] = ve[e]);
1113
+ for (var e in me)
1114
+ me.hasOwnProperty(e) && !(e in t) && (t[e] = me[e]);
1115
1115
  ct.forEach(function(n) {
1116
1116
  if (n.pluginName === t.pluginName)
1117
1117
  throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
@@ -1123,26 +1123,26 @@ var ct = [], ve = {
1123
1123
  r.eventCanceled = !0;
1124
1124
  };
1125
1125
  var o = t + "Global";
1126
- ct.forEach(function(s) {
1127
- e[s.pluginName] && (e[s.pluginName][o] && e[s.pluginName][o](X({
1126
+ ct.forEach(function(a) {
1127
+ e[a.pluginName] && (e[a.pluginName][o] && e[a.pluginName][o](X({
1128
1128
  sortable: e
1129
- }, n)), e.options[s.pluginName] && e[s.pluginName][t] && e[s.pluginName][t](X({
1129
+ }, n)), e.options[a.pluginName] && e[a.pluginName][t] && e[a.pluginName][t](X({
1130
1130
  sortable: e
1131
1131
  }, n)));
1132
1132
  });
1133
1133
  },
1134
1134
  initializePlugins: function(t, e, n, r) {
1135
- ct.forEach(function(a) {
1136
- var l = a.pluginName;
1137
- if (!(!t.options[l] && !a.initializeByDefault)) {
1138
- var d = new a(t, e, t.options);
1139
- d.sortable = t, d.options = t.options, t[l] = d, J(n, d.defaults);
1135
+ ct.forEach(function(l) {
1136
+ var s = l.pluginName;
1137
+ if (!(!t.options[s] && !l.initializeByDefault)) {
1138
+ var d = new l(t, e, t.options);
1139
+ d.sortable = t, d.options = t.options, t[s] = d, J(n, d.defaults);
1140
1140
  }
1141
1141
  });
1142
1142
  for (var o in t.options)
1143
1143
  if (t.options.hasOwnProperty(o)) {
1144
- var s = this.modifyOption(t, o, t.options[o]);
1145
- typeof s < "u" && (t.options[o] = s);
1144
+ var a = this.modifyOption(t, o, t.options[o]);
1145
+ typeof a < "u" && (t.options[o] = a);
1146
1146
  }
1147
1147
  },
1148
1148
  getEventProperties: function(t, e) {
@@ -1158,146 +1158,146 @@ var ct = [], ve = {
1158
1158
  }), r;
1159
1159
  }
1160
1160
  };
1161
- function cn(i) {
1162
- var t = i.sortable, e = i.rootEl, n = i.name, r = i.targetEl, o = i.cloneEl, s = i.toEl, a = i.fromEl, l = i.oldIndex, d = i.newIndex, f = i.oldDraggableIndex, u = i.newDraggableIndex, c = i.originalEvent, v = i.putSortable, p = i.extraEventProperties;
1163
- if (t = t || e && e[U], !!t) {
1164
- var m, D = t.options, V = "on" + n.charAt(0).toUpperCase() + n.substr(1);
1165
- window.CustomEvent && !tt && !ie ? m = new CustomEvent(n, {
1161
+ function pn(i) {
1162
+ var t = i.sortable, e = i.rootEl, n = i.name, r = i.targetEl, o = i.cloneEl, a = i.toEl, l = i.fromEl, s = i.oldIndex, d = i.newIndex, p = i.oldDraggableIndex, h = i.newDraggableIndex, c = i.originalEvent, m = i.putSortable, f = i.extraEventProperties;
1163
+ if (t = t || e && e[R], !!t) {
1164
+ var v, S = t.options, U = "on" + n.charAt(0).toUpperCase() + n.substr(1);
1165
+ window.CustomEvent && !tt && !ie ? v = new CustomEvent(n, {
1166
1166
  bubbles: !0,
1167
1167
  cancelable: !0
1168
- }) : (m = document.createEvent("Event"), m.initEvent(n, !0, !0)), m.to = s || e, m.from = a || e, m.item = r || e, m.clone = o, m.oldIndex = l, m.newIndex = d, m.oldDraggableIndex = f, m.newDraggableIndex = u, m.originalEvent = c, m.pullMode = v ? v.lastPutMode : void 0;
1169
- var O = X(X({}, p), Bt.getEventProperties(n, t));
1168
+ }) : (v = document.createEvent("Event"), v.initEvent(n, !0, !0)), v.to = a || e, v.from = l || e, v.item = r || e, v.clone = o, v.oldIndex = s, v.newIndex = d, v.oldDraggableIndex = p, v.newDraggableIndex = h, v.originalEvent = c, v.pullMode = m ? m.lastPutMode : void 0;
1169
+ var O = X(X({}, f), kt.getEventProperties(n, t));
1170
1170
  for (var et in O)
1171
- m[et] = O[et];
1172
- e && e.dispatchEvent(m), D[V] && D[V].call(t, m);
1171
+ v[et] = O[et];
1172
+ e && e.dispatchEvent(v), S[U] && S[U].call(t, v);
1173
1173
  }
1174
1174
  }
1175
- var fn = ["evt"], L = function(t, e) {
1176
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = en(n, fn);
1177
- Bt.pluginEvent.bind(y)(t, e, X({
1178
- dragEl: h,
1175
+ var fn = ["evt"], I = function(t, e) {
1176
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = nn(n, fn);
1177
+ kt.pluginEvent.bind(y)(t, e, X({
1178
+ dragEl: u,
1179
1179
  parentEl: A,
1180
- ghostEl: _,
1181
- rootEl: w,
1182
- nextEl: at,
1180
+ ghostEl: b,
1181
+ rootEl: C,
1182
+ nextEl: st,
1183
1183
  lastDownEl: Yt,
1184
- cloneEl: C,
1184
+ cloneEl: $,
1185
1185
  cloneHidden: K,
1186
- dragStarted: xt,
1187
- putSortable: x,
1186
+ dragStarted: Tt,
1187
+ putSortable: T,
1188
1188
  activeSortable: y.active,
1189
1189
  originalEvent: r,
1190
- oldIndex: vt,
1190
+ oldIndex: mt,
1191
1191
  oldDraggableIndex: Ot,
1192
- newIndex: H,
1193
- newDraggableIndex: Z,
1194
- hideGhostForTarget: Ti,
1195
- unhideGhostForTarget: xi,
1192
+ newIndex: k,
1193
+ newDraggableIndex: q,
1194
+ hideGhostForTarget: Di,
1195
+ unhideGhostForTarget: Ti,
1196
1196
  cloneNowHidden: function() {
1197
1197
  K = !0;
1198
1198
  },
1199
1199
  cloneNowShown: function() {
1200
1200
  K = !1;
1201
1201
  },
1202
- dispatchSortableEvent: function(a) {
1203
- I({
1202
+ dispatchSortableEvent: function(l) {
1203
+ P({
1204
1204
  sortable: e,
1205
- name: a,
1205
+ name: l,
1206
1206
  originalEvent: r
1207
1207
  });
1208
1208
  }
1209
1209
  }, o));
1210
1210
  };
1211
- function I(i) {
1212
- cn(X({
1213
- putSortable: x,
1214
- cloneEl: C,
1215
- targetEl: h,
1216
- rootEl: w,
1217
- oldIndex: vt,
1211
+ function P(i) {
1212
+ pn(X({
1213
+ putSortable: T,
1214
+ cloneEl: $,
1215
+ targetEl: u,
1216
+ rootEl: C,
1217
+ oldIndex: mt,
1218
1218
  oldDraggableIndex: Ot,
1219
- newIndex: H,
1220
- newDraggableIndex: Z
1219
+ newIndex: k,
1220
+ newDraggableIndex: q
1221
1221
  }, i));
1222
1222
  }
1223
- var h, A, _, w, at, Yt, C, K, vt, H, Ot, Z, kt, x, gt = !1, Jt = !1, te = [], rt, F, me, ye, ei, ii, xt, ft, Pt, It = !1, Ut = !1, Wt, P, _e = [], Ae = !1, ee = [], ne = typeof document < "u", Vt = bi, ni = ie || tt ? "cssFloat" : "float", pn = ne && !Ei && !bi && "draggable" in document.createElement("div"), Ai = function() {
1223
+ var u, A, b, C, st, Yt, $, K, mt, k, Ot, q, Bt, T, gt = !1, Jt = !1, te = [], rt, F, ve, ye, ei, ii, Tt, pt, Ht, Lt = !1, Rt = !1, Wt, H, be = [], Ae = !1, ee = [], ne = typeof document < "u", Ut = _i, ni = ie || tt ? "cssFloat" : "float", gn = ne && !Ei && !_i && "draggable" in document.createElement("div"), Ai = function() {
1224
1224
  if (ne) {
1225
1225
  if (tt)
1226
1226
  return !1;
1227
1227
  var i = document.createElement("x");
1228
1228
  return i.style.cssText = "pointer-events:auto", i.style.pointerEvents === "auto";
1229
1229
  }
1230
- }(), Si = function(t, e) {
1231
- var n = g(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = bt(t, 0, e), s = bt(t, 1, e), a = o && g(o), l = s && g(s), d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + T(o).width, f = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + T(s).width;
1230
+ }(), xi = function(t, e) {
1231
+ var n = g(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = _t(t, 0, e), a = _t(t, 1, e), l = o && g(o), s = a && g(a), d = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + D(o).width, p = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + D(a).width;
1232
1232
  if (n.display === "flex")
1233
1233
  return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
1234
1234
  if (n.display === "grid")
1235
1235
  return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
1236
- if (o && a.float && a.float !== "none") {
1237
- var u = a.float === "left" ? "left" : "right";
1238
- return s && (l.clear === "both" || l.clear === u) ? "vertical" : "horizontal";
1239
- }
1240
- return o && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || d >= r && n[ni] === "none" || s && n[ni] === "none" && d + f > r) ? "vertical" : "horizontal";
1241
- }, gn = function(t, e, n) {
1242
- var r = n ? t.left : t.top, o = n ? t.right : t.bottom, s = n ? t.width : t.height, a = n ? e.left : e.top, l = n ? e.right : e.bottom, d = n ? e.width : e.height;
1243
- return r === a || o === l || r + s / 2 === a + d / 2;
1236
+ if (o && l.float && l.float !== "none") {
1237
+ var h = l.float === "left" ? "left" : "right";
1238
+ return a && (s.clear === "both" || s.clear === h) ? "vertical" : "horizontal";
1239
+ }
1240
+ return o && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || d >= r && n[ni] === "none" || a && n[ni] === "none" && d + p > r) ? "vertical" : "horizontal";
1241
+ }, mn = function(t, e, n) {
1242
+ var r = n ? t.left : t.top, o = n ? t.right : t.bottom, a = n ? t.width : t.height, l = n ? e.left : e.top, s = n ? e.right : e.bottom, d = n ? e.width : e.height;
1243
+ return r === l || o === s || r + a / 2 === l + d / 2;
1244
1244
  }, vn = function(t, e) {
1245
1245
  var n;
1246
1246
  return te.some(function(r) {
1247
- var o = r[U].options.emptyInsertThreshold;
1248
- if (!(!o || xe(r))) {
1249
- var s = T(r), a = t >= s.left - o && t <= s.right + o, l = e >= s.top - o && e <= s.bottom + o;
1250
- if (a && l)
1247
+ var o = r[R].options.emptyInsertThreshold;
1248
+ if (!(!o || Te(r))) {
1249
+ var a = D(r), l = t >= a.left - o && t <= a.right + o, s = e >= a.top - o && e <= a.bottom + o;
1250
+ if (l && s)
1251
1251
  return n = r;
1252
1252
  }
1253
1253
  }), n;
1254
- }, Di = function(t) {
1255
- function e(o, s) {
1256
- return function(a, l, d, f) {
1257
- var u = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
1258
- if (o == null && (s || u))
1254
+ }, Si = function(t) {
1255
+ function e(o, a) {
1256
+ return function(l, s, d, p) {
1257
+ var h = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
1258
+ if (o == null && (a || h))
1259
1259
  return !0;
1260
1260
  if (o == null || o === !1)
1261
1261
  return !1;
1262
- if (s && o === "clone")
1262
+ if (a && o === "clone")
1263
1263
  return o;
1264
1264
  if (typeof o == "function")
1265
- return e(o(a, l, d, f), s)(a, l, d, f);
1266
- var c = (s ? a : l).options.group.name;
1265
+ return e(o(l, s, d, p), a)(l, s, d, p);
1266
+ var c = (a ? l : s).options.group.name;
1267
1267
  return o === !0 || typeof o == "string" && o === c || o.join && o.indexOf(c) > -1;
1268
1268
  };
1269
1269
  }
1270
1270
  var n = {}, r = t.group;
1271
- (!r || zt(r) != "object") && (r = {
1271
+ (!r || jt(r) != "object") && (r = {
1272
1272
  name: r
1273
1273
  }), n.name = r.name, n.checkPull = e(r.pull, !0), n.checkPut = e(r.put), n.revertClone = r.revertClone, t.group = n;
1274
+ }, Di = function() {
1275
+ !Ai && b && g(b, "display", "none");
1274
1276
  }, Ti = function() {
1275
- !Ai && _ && g(_, "display", "none");
1276
- }, xi = function() {
1277
- !Ai && _ && g(_, "display", "");
1277
+ !Ai && b && g(b, "display", "");
1278
1278
  };
1279
1279
  ne && !Ei && document.addEventListener("click", function(i) {
1280
1280
  if (Jt)
1281
1281
  return i.preventDefault(), i.stopPropagation && i.stopPropagation(), i.stopImmediatePropagation && i.stopImmediatePropagation(), Jt = !1, !1;
1282
1282
  }, !0);
1283
1283
  var ot = function(t) {
1284
- if (h) {
1284
+ if (u) {
1285
1285
  t = t.touches ? t.touches[0] : t;
1286
1286
  var e = vn(t.clientX, t.clientY);
1287
1287
  if (e) {
1288
1288
  var n = {};
1289
1289
  for (var r in t)
1290
1290
  t.hasOwnProperty(r) && (n[r] = t[r]);
1291
- n.target = n.rootEl = e, n.preventDefault = void 0, n.stopPropagation = void 0, e[U]._onDragOver(n);
1291
+ n.target = n.rootEl = e, n.preventDefault = void 0, n.stopPropagation = void 0, e[R]._onDragOver(n);
1292
1292
  }
1293
1293
  }
1294
- }, mn = function(t) {
1295
- h && h.parentNode[U]._isOutsideThisEl(t.target);
1294
+ }, yn = function(t) {
1295
+ u && u.parentNode[R]._isOutsideThisEl(t.target);
1296
1296
  };
1297
1297
  function y(i, t) {
1298
1298
  if (!(i && i.nodeType && i.nodeType === 1))
1299
1299
  throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));
1300
- this.el = i, this.options = t = J({}, t), i[U] = this;
1300
+ this.el = i, this.options = t = J({}, t), i[R] = this;
1301
1301
  var e = {
1302
1302
  group: null,
1303
1303
  sort: !0,
@@ -1313,7 +1313,7 @@ function y(i, t) {
1313
1313
  // will be set to same as swapThreshold if default
1314
1314
  removeCloneOnHide: !0,
1315
1315
  direction: function() {
1316
- return Si(i, this.options);
1316
+ return xi(i, this.options);
1317
1317
  },
1318
1318
  ghostClass: "sortable-ghost",
1319
1319
  chosenClass: "sortable-chosen",
@@ -1323,8 +1323,8 @@ function y(i, t) {
1323
1323
  preventOnFilter: !0,
1324
1324
  animation: 0,
1325
1325
  easing: null,
1326
- setData: function(s, a) {
1327
- s.setData("Text", a.textContent);
1326
+ setData: function(a, l) {
1327
+ a.setData("Text", l.textContent);
1328
1328
  },
1329
1329
  dropBubble: !1,
1330
1330
  dragoverBubble: !1,
@@ -1343,93 +1343,93 @@ function y(i, t) {
1343
1343
  supportPointer: y.supportPointer !== !1 && "PointerEvent" in window && !Xt,
1344
1344
  emptyInsertThreshold: 5
1345
1345
  };
1346
- Bt.initializePlugins(this, i, e);
1346
+ kt.initializePlugins(this, i, e);
1347
1347
  for (var n in e)
1348
1348
  !(n in t) && (t[n] = e[n]);
1349
- Di(t);
1349
+ Si(t);
1350
1350
  for (var r in this)
1351
1351
  r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
1352
- this.nativeDraggable = t.forceFallback ? !1 : pn, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? $(i, "pointerdown", this._onTapStart) : ($(i, "mousedown", this._onTapStart), $(i, "touchstart", this._onTapStart)), this.nativeDraggable && ($(i, "dragover", this), $(i, "dragenter", this)), te.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), J(this, dn());
1352
+ this.nativeDraggable = t.forceFallback ? !1 : gn, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? w(i, "pointerdown", this._onTapStart) : (w(i, "mousedown", this._onTapStart), w(i, "touchstart", this._onTapStart)), this.nativeDraggable && (w(i, "dragover", this), w(i, "dragenter", this)), te.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), J(this, un());
1353
1353
  }
1354
1354
  y.prototype = /** @lends Sortable.prototype */
1355
1355
  {
1356
1356
  constructor: y,
1357
1357
  _isOutsideThisEl: function(t) {
1358
- !this.el.contains(t) && t !== this.el && (ft = null);
1358
+ !this.el.contains(t) && t !== this.el && (pt = null);
1359
1359
  },
1360
1360
  _getDirection: function(t, e) {
1361
- return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, h) : this.options.direction;
1361
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, u) : this.options.direction;
1362
1362
  },
1363
1363
  _onTapStart: function(t) {
1364
1364
  if (t.cancelable) {
1365
- var e = this, n = this.el, r = this.options, o = r.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, f = r.filter;
1366
- if (An(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && Xt && l && l.tagName.toUpperCase() === "SELECT") && (l = z(l, r.draggable, n, !1), !(l && l.animated) && Yt !== l)) {
1367
- if (vt = k(l), Ot = k(l, r.draggable), typeof f == "function") {
1368
- if (f.call(this, t, l, this)) {
1369
- I({
1365
+ var e = this, n = this.el, r = this.options, o = r.preventOnFilter, a = t.type, l = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, s = (l || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || s, p = r.filter;
1366
+ if (xn(n), !u && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && Xt && s && s.tagName.toUpperCase() === "SELECT") && (s = j(s, r.draggable, n, !1), !(s && s.animated) && Yt !== s)) {
1367
+ if (mt = B(s), Ot = B(s, r.draggable), typeof p == "function") {
1368
+ if (p.call(this, t, s, this)) {
1369
+ P({
1370
1370
  sortable: e,
1371
1371
  rootEl: d,
1372
1372
  name: "filter",
1373
- targetEl: l,
1373
+ targetEl: s,
1374
1374
  toEl: n,
1375
1375
  fromEl: n
1376
- }), L("filter", e, {
1376
+ }), I("filter", e, {
1377
1377
  evt: t
1378
1378
  }), o && t.cancelable && t.preventDefault();
1379
1379
  return;
1380
1380
  }
1381
- } else if (f && (f = f.split(",").some(function(u) {
1382
- if (u = z(d, u.trim(), n, !1), u)
1383
- return I({
1381
+ } else if (p && (p = p.split(",").some(function(h) {
1382
+ if (h = j(d, h.trim(), n, !1), h)
1383
+ return P({
1384
1384
  sortable: e,
1385
- rootEl: u,
1385
+ rootEl: h,
1386
1386
  name: "filter",
1387
- targetEl: l,
1387
+ targetEl: s,
1388
1388
  fromEl: n,
1389
1389
  toEl: n
1390
- }), L("filter", e, {
1390
+ }), I("filter", e, {
1391
1391
  evt: t
1392
1392
  }), !0;
1393
- }), f)) {
1393
+ }), p)) {
1394
1394
  o && t.cancelable && t.preventDefault();
1395
1395
  return;
1396
1396
  }
1397
- r.handle && !z(d, r.handle, n, !1) || this._prepareDragStart(t, a, l);
1397
+ r.handle && !j(d, r.handle, n, !1) || this._prepareDragStart(t, l, s);
1398
1398
  }
1399
1399
  }
1400
1400
  },
1401
1401
  _prepareDragStart: function(t, e, n) {
1402
- var r = this, o = r.el, s = r.options, a = o.ownerDocument, l;
1403
- if (n && !h && n.parentNode === o) {
1404
- var d = T(n);
1405
- if (w = o, h = n, A = h.parentNode, at = h.nextSibling, Yt = n, kt = s.group, y.dragged = h, rt = {
1406
- target: h,
1402
+ var r = this, o = r.el, a = r.options, l = o.ownerDocument, s;
1403
+ if (n && !u && n.parentNode === o) {
1404
+ var d = D(n);
1405
+ if (C = o, u = n, A = u.parentNode, st = u.nextSibling, Yt = n, Bt = a.group, y.dragged = u, rt = {
1406
+ target: u,
1407
1407
  clientX: (e || t).clientX,
1408
1408
  clientY: (e || t).clientY
1409
- }, ei = rt.clientX - d.left, ii = rt.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, h.style["will-change"] = "all", l = function() {
1410
- if (L("delayEnded", r, {
1409
+ }, ei = rt.clientX - d.left, ii = rt.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, u.style["will-change"] = "all", s = function() {
1410
+ if (I("delayEnded", r, {
1411
1411
  evt: t
1412
1412
  }), y.eventCanceled) {
1413
1413
  r._onDrop();
1414
1414
  return;
1415
1415
  }
1416
- r._disableDelayedDragEvents(), !Ze && r.nativeDraggable && (h.draggable = !0), r._triggerDragStart(t, e), I({
1416
+ r._disableDelayedDragEvents(), !qe && r.nativeDraggable && (u.draggable = !0), r._triggerDragStart(t, e), P({
1417
1417
  sortable: r,
1418
1418
  name: "choose",
1419
1419
  originalEvent: t
1420
- }), M(h, s.chosenClass, !0);
1421
- }, s.ignore.split(",").forEach(function(f) {
1422
- wi(h, f.trim(), be);
1423
- }), $(a, "dragover", ot), $(a, "mousemove", ot), $(a, "touchmove", ot), $(a, "mouseup", r._onDrop), $(a, "touchend", r._onDrop), $(a, "touchcancel", r._onDrop), Ze && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), L("delayStart", this, {
1420
+ }), N(u, a.chosenClass, !0);
1421
+ }, a.ignore.split(",").forEach(function(p) {
1422
+ Ci(u, p.trim(), _e);
1423
+ }), w(l, "dragover", ot), w(l, "mousemove", ot), w(l, "touchmove", ot), w(l, "mouseup", r._onDrop), w(l, "touchend", r._onDrop), w(l, "touchcancel", r._onDrop), qe && this.nativeDraggable && (this.options.touchStartThreshold = 4, u.draggable = !0), I("delayStart", this, {
1424
1424
  evt: t
1425
- }), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(ie || tt))) {
1425
+ }), a.delay && (!a.delayOnTouchOnly || e) && (!this.nativeDraggable || !(ie || tt))) {
1426
1426
  if (y.eventCanceled) {
1427
1427
  this._onDrop();
1428
1428
  return;
1429
1429
  }
1430
- $(a, "mouseup", r._disableDelayedDrag), $(a, "touchend", r._disableDelayedDrag), $(a, "touchcancel", r._disableDelayedDrag), $(a, "mousemove", r._delayedDragTouchMoveHandler), $(a, "touchmove", r._delayedDragTouchMoveHandler), s.supportPointer && $(a, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(l, s.delay);
1430
+ w(l, "mouseup", r._disableDelayedDrag), w(l, "touchend", r._disableDelayedDrag), w(l, "touchcancel", r._disableDelayedDrag), w(l, "mousemove", r._delayedDragTouchMoveHandler), w(l, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && w(l, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
1431
1431
  } else
1432
- l();
1432
+ s();
1433
1433
  }
1434
1434
  },
1435
1435
  _delayedDragTouchMoveHandler: function(t) {
@@ -1437,14 +1437,14 @@ y.prototype = /** @lends Sortable.prototype */
1437
1437
  Math.max(Math.abs(e.clientX - this._lastX), Math.abs(e.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
1438
1438
  },
1439
1439
  _disableDelayedDrag: function() {
1440
- h && be(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
1440
+ u && _e(u), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
1441
1441
  },
1442
1442
  _disableDelayedDragEvents: function() {
1443
1443
  var t = this.el.ownerDocument;
1444
- b(t, "mouseup", this._disableDelayedDrag), b(t, "touchend", this._disableDelayedDrag), b(t, "touchcancel", this._disableDelayedDrag), b(t, "mousemove", this._delayedDragTouchMoveHandler), b(t, "touchmove", this._delayedDragTouchMoveHandler), b(t, "pointermove", this._delayedDragTouchMoveHandler);
1444
+ _(t, "mouseup", this._disableDelayedDrag), _(t, "touchend", this._disableDelayedDrag), _(t, "touchcancel", this._disableDelayedDrag), _(t, "mousemove", this._delayedDragTouchMoveHandler), _(t, "touchmove", this._delayedDragTouchMoveHandler), _(t, "pointermove", this._delayedDragTouchMoveHandler);
1445
1445
  },
1446
1446
  _triggerDragStart: function(t, e) {
1447
- e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? $(document, "pointermove", this._onTouchMove) : e ? $(document, "touchmove", this._onTouchMove) : $(document, "mousemove", this._onTouchMove) : ($(h, "dragend", this), $(w, "dragstart", this._onDragStart));
1447
+ e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? w(document, "pointermove", this._onTouchMove) : e ? w(document, "touchmove", this._onTouchMove) : w(document, "mousemove", this._onTouchMove) : (w(u, "dragend", this), w(C, "dragstart", this._onDragStart));
1448
1448
  try {
1449
1449
  document.selection ? Gt(function() {
1450
1450
  document.selection.empty();
@@ -1453,12 +1453,12 @@ y.prototype = /** @lends Sortable.prototype */
1453
1453
  }
1454
1454
  },
1455
1455
  _dragStarted: function(t, e) {
1456
- if (gt = !1, w && h) {
1457
- L("dragStarted", this, {
1456
+ if (gt = !1, C && u) {
1457
+ I("dragStarted", this, {
1458
1458
  evt: e
1459
- }), this.nativeDraggable && $(document, "dragover", mn);
1459
+ }), this.nativeDraggable && w(document, "dragover", yn);
1460
1460
  var n = this.options;
1461
- !t && M(h, n.dragClass, !1), M(h, n.ghostClass, !0), y.active = this, t && this._appendGhost(), I({
1461
+ !t && N(u, n.dragClass, !1), N(u, n.ghostClass, !0), y.active = this, t && this._appendGhost(), P({
1462
1462
  sortable: this,
1463
1463
  name: "start",
1464
1464
  originalEvent: e
@@ -1468,14 +1468,14 @@ y.prototype = /** @lends Sortable.prototype */
1468
1468
  },
1469
1469
  _emulateDragOver: function() {
1470
1470
  if (F) {
1471
- this._lastX = F.clientX, this._lastY = F.clientY, Ti();
1471
+ this._lastX = F.clientX, this._lastY = F.clientY, Di();
1472
1472
  for (var t = document.elementFromPoint(F.clientX, F.clientY), e = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(F.clientX, F.clientY), t !== e); )
1473
1473
  e = t;
1474
- if (h.parentNode[U]._isOutsideThisEl(t), e)
1474
+ if (u.parentNode[R]._isOutsideThisEl(t), e)
1475
1475
  do {
1476
- if (e[U]) {
1476
+ if (e[R]) {
1477
1477
  var n = void 0;
1478
- if (n = e[U]._onDragOver({
1478
+ if (n = e[R]._onDragOver({
1479
1479
  clientX: F.clientX,
1480
1480
  clientY: F.clientY,
1481
1481
  target: t,
@@ -1485,203 +1485,203 @@ y.prototype = /** @lends Sortable.prototype */
1485
1485
  }
1486
1486
  t = e;
1487
1487
  } while (e = e.parentNode);
1488
- xi();
1488
+ Ti();
1489
1489
  }
1490
1490
  },
1491
1491
  _onTouchMove: function(t) {
1492
1492
  if (rt) {
1493
- var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, s = _ && yt(_, !0), a = _ && s && s.a, l = _ && s && s.d, d = Vt && P && Je(P), f = (o.clientX - rt.clientX + r.x) / (a || 1) + (d ? d[0] - _e[0] : 0) / (a || 1), u = (o.clientY - rt.clientY + r.y) / (l || 1) + (d ? d[1] - _e[1] : 0) / (l || 1);
1493
+ var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, a = b && yt(b, !0), l = b && a && a.a, s = b && a && a.d, d = Ut && H && Je(H), p = (o.clientX - rt.clientX + r.x) / (l || 1) + (d ? d[0] - be[0] : 0) / (l || 1), h = (o.clientY - rt.clientY + r.y) / (s || 1) + (d ? d[1] - be[1] : 0) / (s || 1);
1494
1494
  if (!y.active && !gt) {
1495
1495
  if (n && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < n)
1496
1496
  return;
1497
1497
  this._onDragStart(t, !0);
1498
1498
  }
1499
- if (_) {
1500
- s ? (s.e += f - (me || 0), s.f += u - (ye || 0)) : s = {
1499
+ if (b) {
1500
+ a ? (a.e += p - (ve || 0), a.f += h - (ye || 0)) : a = {
1501
1501
  a: 1,
1502
1502
  b: 0,
1503
1503
  c: 0,
1504
1504
  d: 1,
1505
- e: f,
1506
- f: u
1505
+ e: p,
1506
+ f: h
1507
1507
  };
1508
- var c = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
1509
- g(_, "webkitTransform", c), g(_, "mozTransform", c), g(_, "msTransform", c), g(_, "transform", c), me = f, ye = u, F = o;
1508
+ var c = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
1509
+ g(b, "webkitTransform", c), g(b, "mozTransform", c), g(b, "msTransform", c), g(b, "transform", c), ve = p, ye = h, F = o;
1510
1510
  }
1511
1511
  t.cancelable && t.preventDefault();
1512
1512
  }
1513
1513
  },
1514
1514
  _appendGhost: function() {
1515
- if (!_) {
1516
- var t = this.options.fallbackOnBody ? document.body : w, e = T(h, !0, Vt, !0, t), n = this.options;
1517
- if (Vt) {
1518
- for (P = t; g(P, "position") === "static" && g(P, "transform") === "none" && P !== document; )
1519
- P = P.parentNode;
1520
- P !== document.body && P !== document.documentElement ? (P === document && (P = Q()), e.top += P.scrollTop, e.left += P.scrollLeft) : P = Q(), _e = Je(P);
1515
+ if (!b) {
1516
+ var t = this.options.fallbackOnBody ? document.body : C, e = D(u, !0, Ut, !0, t), n = this.options;
1517
+ if (Ut) {
1518
+ for (H = t; g(H, "position") === "static" && g(H, "transform") === "none" && H !== document; )
1519
+ H = H.parentNode;
1520
+ H !== document.body && H !== document.documentElement ? (H === document && (H = Q()), e.top += H.scrollTop, e.left += H.scrollLeft) : H = Q(), be = Je(H);
1521
1521
  }
1522
- _ = h.cloneNode(!0), M(_, n.ghostClass, !1), M(_, n.fallbackClass, !0), M(_, n.dragClass, !0), g(_, "transition", ""), g(_, "transform", ""), g(_, "box-sizing", "border-box"), g(_, "margin", 0), g(_, "top", e.top), g(_, "left", e.left), g(_, "width", e.width), g(_, "height", e.height), g(_, "opacity", "0.8"), g(_, "position", Vt ? "absolute" : "fixed"), g(_, "zIndex", "100000"), g(_, "pointerEvents", "none"), y.ghost = _, t.appendChild(_), g(_, "transform-origin", ei / parseInt(_.style.width) * 100 + "% " + ii / parseInt(_.style.height) * 100 + "%");
1522
+ b = u.cloneNode(!0), N(b, n.ghostClass, !1), N(b, n.fallbackClass, !0), N(b, n.dragClass, !0), g(b, "transition", ""), g(b, "transform", ""), g(b, "box-sizing", "border-box"), g(b, "margin", 0), g(b, "top", e.top), g(b, "left", e.left), g(b, "width", e.width), g(b, "height", e.height), g(b, "opacity", "0.8"), g(b, "position", Ut ? "absolute" : "fixed"), g(b, "zIndex", "100000"), g(b, "pointerEvents", "none"), y.ghost = b, t.appendChild(b), g(b, "transform-origin", ei / parseInt(b.style.width) * 100 + "% " + ii / parseInt(b.style.height) * 100 + "%");
1523
1523
  }
1524
1524
  },
1525
1525
  _onDragStart: function(t, e) {
1526
1526
  var n = this, r = t.dataTransfer, o = n.options;
1527
- if (L("dragStart", this, {
1527
+ if (I("dragStart", this, {
1528
1528
  evt: t
1529
1529
  }), y.eventCanceled) {
1530
1530
  this._onDrop();
1531
1531
  return;
1532
1532
  }
1533
- L("setupClone", this), y.eventCanceled || (C = Ci(h), C.removeAttribute("id"), C.draggable = !1, C.style["will-change"] = "", this._hideClone(), M(C, this.options.chosenClass, !1), y.clone = C), n.cloneId = Gt(function() {
1534
- L("clone", n), !y.eventCanceled && (n.options.removeCloneOnHide || w.insertBefore(C, h), n._hideClone(), I({
1533
+ I("setupClone", this), y.eventCanceled || ($ = $i(u), $.removeAttribute("id"), $.draggable = !1, $.style["will-change"] = "", this._hideClone(), N($, this.options.chosenClass, !1), y.clone = $), n.cloneId = Gt(function() {
1534
+ I("clone", n), !y.eventCanceled && (n.options.removeCloneOnHide || C.insertBefore($, u), n._hideClone(), P({
1535
1535
  sortable: n,
1536
1536
  name: "clone"
1537
1537
  }));
1538
- }), !e && M(h, o.dragClass, !0), e ? (Jt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (b(document, "mouseup", n._onDrop), b(document, "touchend", n._onDrop), b(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, h)), $(document, "drop", n), g(h, "transform", "translateZ(0)")), gt = !0, n._dragStartId = Gt(n._dragStarted.bind(n, e, t)), $(document, "selectstart", n), xt = !0, Xt && g(document.body, "user-select", "none");
1538
+ }), !e && N(u, o.dragClass, !0), e ? (Jt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (_(document, "mouseup", n._onDrop), _(document, "touchend", n._onDrop), _(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, u)), w(document, "drop", n), g(u, "transform", "translateZ(0)")), gt = !0, n._dragStartId = Gt(n._dragStarted.bind(n, e, t)), w(document, "selectstart", n), Tt = !0, Xt && g(document.body, "user-select", "none");
1539
1539
  },
1540
1540
  // Returns true - if no further action is needed (either inserted or another condition)
1541
1541
  _onDragOver: function(t) {
1542
- var e = this.el, n = t.target, r, o, s, a = this.options, l = a.group, d = y.active, f = kt === l, u = a.sort, c = x || d, v, p = this, m = !1;
1542
+ var e = this.el, n = t.target, r, o, a, l = this.options, s = l.group, d = y.active, p = Bt === s, h = l.sort, c = T || d, m, f = this, v = !1;
1543
1543
  if (Ae)
1544
1544
  return;
1545
- function D(St, Hi) {
1546
- L(St, p, X({
1545
+ function S(xt, ki) {
1546
+ I(xt, f, X({
1547
1547
  evt: t,
1548
- isOwner: f,
1549
- axis: v ? "vertical" : "horizontal",
1550
- revert: s,
1548
+ isOwner: p,
1549
+ axis: m ? "vertical" : "horizontal",
1550
+ revert: a,
1551
1551
  dragRect: r,
1552
1552
  targetRect: o,
1553
- canSort: u,
1553
+ canSort: h,
1554
1554
  fromSortable: c,
1555
1555
  target: n,
1556
1556
  completed: O,
1557
- onMove: function(Le, Bi) {
1558
- return Ft(w, e, h, r, Le, T(Le), t, Bi);
1557
+ onMove: function(Ie, Vi) {
1558
+ return Ft(C, e, u, r, Ie, D(Ie), t, Vi);
1559
1559
  },
1560
1560
  changed: et
1561
- }, Hi));
1561
+ }, ki));
1562
1562
  }
1563
- function V() {
1564
- D("dragOverAnimationCapture"), p.captureAnimationState(), p !== c && c.captureAnimationState();
1563
+ function U() {
1564
+ S("dragOverAnimationCapture"), f.captureAnimationState(), f !== c && c.captureAnimationState();
1565
1565
  }
1566
- function O(St) {
1567
- return D("dragOverCompleted", {
1568
- insertion: St
1569
- }), St && (f ? d._hideClone() : d._showClone(p), p !== c && (M(h, x ? x.options.ghostClass : d.options.ghostClass, !1), M(h, a.ghostClass, !0)), x !== p && p !== y.active ? x = p : p === y.active && x && (x = null), c === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
1570
- D("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
1571
- }), p !== c && (c.animateAll(), c._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (ft = null), !a.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[U]._isOutsideThisEl(t.target), !St && ot(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), m = !0;
1566
+ function O(xt) {
1567
+ return S("dragOverCompleted", {
1568
+ insertion: xt
1569
+ }), xt && (p ? d._hideClone() : d._showClone(f), f !== c && (N(u, T ? T.options.ghostClass : d.options.ghostClass, !1), N(u, l.ghostClass, !0)), T !== f && f !== y.active ? T = f : f === y.active && T && (T = null), c === f && (f._ignoreWhileAnimating = n), f.animateAll(function() {
1570
+ S("dragOverAnimationComplete"), f._ignoreWhileAnimating = null;
1571
+ }), f !== c && (c.animateAll(), c._ignoreWhileAnimating = null)), (n === u && !u.animated || n === e && !n.animated) && (pt = null), !l.dragoverBubble && !t.rootEl && n !== document && (u.parentNode[R]._isOutsideThisEl(t.target), !xt && ot(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), v = !0;
1572
1572
  }
1573
1573
  function et() {
1574
- H = k(h), Z = k(h, a.draggable), I({
1575
- sortable: p,
1574
+ k = B(u), q = B(u, l.draggable), P({
1575
+ sortable: f,
1576
1576
  name: "change",
1577
1577
  toEl: e,
1578
- newIndex: H,
1579
- newDraggableIndex: Z,
1578
+ newIndex: k,
1579
+ newDraggableIndex: q,
1580
1580
  originalEvent: t
1581
1581
  });
1582
1582
  }
1583
- if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = z(n, a.draggable, e, !0), D("dragOver"), y.eventCanceled)
1584
- return m;
1585
- if (h.contains(t.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n)
1583
+ if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = j(n, l.draggable, e, !0), S("dragOver"), y.eventCanceled)
1584
+ return v;
1585
+ if (u.contains(t.target) || n.animated && n.animatingX && n.animatingY || f._ignoreWhileAnimating === n)
1586
1586
  return O(!1);
1587
- if (Jt = !1, d && !a.disabled && (f ? u || (s = A !== w) : x === this || (this.lastPutMode = kt.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
1588
- if (v = this._getDirection(t, n) === "vertical", r = T(h), D("dragOverValid"), y.eventCanceled)
1589
- return m;
1590
- if (s)
1591
- return A = w, V(), this._hideClone(), D("revert"), y.eventCanceled || (at ? w.insertBefore(h, at) : w.appendChild(h)), O(!0);
1592
- var Y = xe(e, a.draggable);
1593
- if (!Y || En(t, v, this) && !Y.animated) {
1594
- if (Y === h)
1587
+ if (Jt = !1, d && !l.disabled && (p ? h || (a = A !== C) : T === this || (this.lastPutMode = Bt.checkPull(this, d, u, t)) && s.checkPut(this, d, u, t))) {
1588
+ if (m = this._getDirection(t, n) === "vertical", r = D(u), S("dragOverValid"), y.eventCanceled)
1589
+ return v;
1590
+ if (a)
1591
+ return A = C, U(), this._hideClone(), S("revert"), y.eventCanceled || (st ? C.insertBefore(u, st) : C.appendChild(u)), O(!0);
1592
+ var W = Te(e, l.draggable);
1593
+ if (!W || wn(t, m, this) && !W.animated) {
1594
+ if (W === u)
1595
1595
  return O(!1);
1596
- if (Y && e === t.target && (n = Y), n && (o = T(n)), Ft(w, e, h, r, n, o, t, !!n) !== !1)
1597
- return V(), Y && Y.nextSibling ? e.insertBefore(h, Y.nextSibling) : e.appendChild(h), A = e, et(), O(!0);
1598
- } else if (Y && bn(t, v, this)) {
1599
- var re = bt(e, 0, a, !0);
1600
- if (re === h)
1596
+ if (W && e === t.target && (n = W), n && (o = D(n)), Ft(C, e, u, r, n, o, t, !!n) !== !1)
1597
+ return U(), W && W.nextSibling ? e.insertBefore(u, W.nextSibling) : e.appendChild(u), A = e, et(), O(!0);
1598
+ } else if (W && En(t, m, this)) {
1599
+ var re = _t(e, 0, l, !0);
1600
+ if (re === u)
1601
1601
  return O(!1);
1602
- if (n = re, o = T(n), Ft(w, e, h, r, n, o, t, !1) !== !1)
1603
- return V(), e.insertBefore(h, re), A = e, et(), O(!0);
1602
+ if (n = re, o = D(n), Ft(C, e, u, r, n, o, t, !1) !== !1)
1603
+ return U(), e.insertBefore(u, re), A = e, et(), O(!0);
1604
1604
  } else if (n.parentNode === e) {
1605
- o = T(n);
1606
- var ut = 0, oe, Li = h.parentNode !== e, Oe = !gn(h.animated && h.toRect || r, n.animated && n.toRect || o, v), Pe = v ? "top" : "left", wt = Qe(n, "top", "top") || Qe(h, "top", "top"), Mi = wt ? wt.scrollTop : void 0;
1607
- ft !== n && (oe = o[Pe], It = !1, Ut = !Oe && a.invertSwap || Li), ut = $n(t, n, o, v, Oe ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ut, ft === n);
1608
- var Ct;
1609
- if (ut !== 0) {
1610
- var Ie = k(h);
1605
+ o = D(n);
1606
+ var ht = 0, oe, Mi = u.parentNode !== e, Oe = !mn(u.animated && u.toRect || r, n.animated && n.toRect || o, m), He = m ? "top" : "left", Ct = Qe(n, "top", "top") || Qe(u, "top", "top"), Ni = Ct ? Ct.scrollTop : void 0;
1607
+ pt !== n && (oe = o[He], Lt = !1, Rt = !Oe && l.invertSwap || Mi), ht = Cn(t, n, o, m, Oe ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Rt, pt === n);
1608
+ var $t;
1609
+ if (ht !== 0) {
1610
+ var Le = B(u);
1611
1611
  do
1612
- Ie -= ut, Ct = A.children[Ie];
1613
- while (Ct && (g(Ct, "display") === "none" || Ct === _));
1612
+ Le -= ht, $t = A.children[Le];
1613
+ while ($t && (g($t, "display") === "none" || $t === b));
1614
1614
  }
1615
- if (ut === 0 || Ct === n)
1615
+ if (ht === 0 || $t === n)
1616
1616
  return O(!1);
1617
- ft = n, Pt = ut;
1618
- var Ne = n.nextElementSibling, At = !1;
1619
- At = ut === 1;
1620
- var Rt = Ft(w, e, h, r, n, o, t, At);
1621
- if (Rt !== !1)
1622
- return (Rt === 1 || Rt === -1) && (At = Rt === 1), Ae = !0, setTimeout(_n, 30), V(), At && !Ne ? e.appendChild(h) : n.parentNode.insertBefore(h, At ? Ne : n), wt && ln(wt, 0, Mi - wt.scrollTop), A = h.parentNode, oe !== void 0 && !Ut && (Wt = Math.abs(oe - T(n)[Pe])), et(), O(!0);
1617
+ pt = n, Ht = ht;
1618
+ var Pe = n.nextElementSibling, At = !1;
1619
+ At = ht === 1;
1620
+ var Vt = Ft(C, e, u, r, n, o, t, At);
1621
+ if (Vt !== !1)
1622
+ return (Vt === 1 || Vt === -1) && (At = Vt === 1), Ae = !0, setTimeout(_n, 30), U(), At && !Pe ? e.appendChild(u) : n.parentNode.insertBefore(u, At ? Pe : n), Ct && dn(Ct, 0, Ni - Ct.scrollTop), A = u.parentNode, oe !== void 0 && !Rt && (Wt = Math.abs(oe - D(n)[He])), et(), O(!0);
1623
1623
  }
1624
- if (e.contains(h))
1624
+ if (e.contains(u))
1625
1625
  return O(!1);
1626
1626
  }
1627
1627
  return !1;
1628
1628
  },
1629
1629
  _ignoreWhileAnimating: null,
1630
1630
  _offMoveEvents: function() {
1631
- b(document, "mousemove", this._onTouchMove), b(document, "touchmove", this._onTouchMove), b(document, "pointermove", this._onTouchMove), b(document, "dragover", ot), b(document, "mousemove", ot), b(document, "touchmove", ot);
1631
+ _(document, "mousemove", this._onTouchMove), _(document, "touchmove", this._onTouchMove), _(document, "pointermove", this._onTouchMove), _(document, "dragover", ot), _(document, "mousemove", ot), _(document, "touchmove", ot);
1632
1632
  },
1633
1633
  _offUpEvents: function() {
1634
1634
  var t = this.el.ownerDocument;
1635
- b(t, "mouseup", this._onDrop), b(t, "touchend", this._onDrop), b(t, "pointerup", this._onDrop), b(t, "touchcancel", this._onDrop), b(document, "selectstart", this);
1635
+ _(t, "mouseup", this._onDrop), _(t, "touchend", this._onDrop), _(t, "pointerup", this._onDrop), _(t, "touchcancel", this._onDrop), _(document, "selectstart", this);
1636
1636
  },
1637
1637
  _onDrop: function(t) {
1638
1638
  var e = this.el, n = this.options;
1639
- if (H = k(h), Z = k(h, n.draggable), L("drop", this, {
1639
+ if (k = B(u), q = B(u, n.draggable), I("drop", this, {
1640
1640
  evt: t
1641
- }), A = h && h.parentNode, H = k(h), Z = k(h, n.draggable), y.eventCanceled) {
1641
+ }), A = u && u.parentNode, k = B(u), q = B(u, n.draggable), y.eventCanceled) {
1642
1642
  this._nulling();
1643
1643
  return;
1644
1644
  }
1645
- gt = !1, Ut = !1, It = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Se(this.cloneId), Se(this._dragStartId), this.nativeDraggable && (b(document, "drop", this), b(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Xt && g(document.body, "user-select", ""), g(h, "transform", ""), t && (xt && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), _ && _.parentNode && _.parentNode.removeChild(_), (w === A || x && x.lastPutMode !== "clone") && C && C.parentNode && C.parentNode.removeChild(C), h && (this.nativeDraggable && b(h, "dragend", this), be(h), h.style["will-change"] = "", xt && !gt && M(h, x ? x.options.ghostClass : this.options.ghostClass, !1), M(h, this.options.chosenClass, !1), I({
1645
+ gt = !1, Rt = !1, Lt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), xe(this.cloneId), xe(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Xt && g(document.body, "user-select", ""), g(u, "transform", ""), t && (Tt && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), b && b.parentNode && b.parentNode.removeChild(b), (C === A || T && T.lastPutMode !== "clone") && $ && $.parentNode && $.parentNode.removeChild($), u && (this.nativeDraggable && _(u, "dragend", this), _e(u), u.style["will-change"] = "", Tt && !gt && N(u, T ? T.options.ghostClass : this.options.ghostClass, !1), N(u, this.options.chosenClass, !1), P({
1646
1646
  sortable: this,
1647
1647
  name: "unchoose",
1648
1648
  toEl: A,
1649
1649
  newIndex: null,
1650
1650
  newDraggableIndex: null,
1651
1651
  originalEvent: t
1652
- }), w !== A ? (H >= 0 && (I({
1652
+ }), C !== A ? (k >= 0 && (P({
1653
1653
  rootEl: A,
1654
1654
  name: "add",
1655
1655
  toEl: A,
1656
- fromEl: w,
1656
+ fromEl: C,
1657
1657
  originalEvent: t
1658
- }), I({
1658
+ }), P({
1659
1659
  sortable: this,
1660
1660
  name: "remove",
1661
1661
  toEl: A,
1662
1662
  originalEvent: t
1663
- }), I({
1663
+ }), P({
1664
1664
  rootEl: A,
1665
1665
  name: "sort",
1666
1666
  toEl: A,
1667
- fromEl: w,
1667
+ fromEl: C,
1668
1668
  originalEvent: t
1669
- }), I({
1669
+ }), P({
1670
1670
  sortable: this,
1671
1671
  name: "sort",
1672
1672
  toEl: A,
1673
1673
  originalEvent: t
1674
- })), x && x.save()) : H !== vt && H >= 0 && (I({
1674
+ })), T && T.save()) : k !== mt && k >= 0 && (P({
1675
1675
  sortable: this,
1676
1676
  name: "update",
1677
1677
  toEl: A,
1678
1678
  originalEvent: t
1679
- }), I({
1679
+ }), P({
1680
1680
  sortable: this,
1681
1681
  name: "sort",
1682
1682
  toEl: A,
1683
1683
  originalEvent: t
1684
- })), y.active && ((H == null || H === -1) && (H = vt, Z = Ot), I({
1684
+ })), y.active && ((k == null || k === -1) && (k = mt, q = Ot), P({
1685
1685
  sortable: this,
1686
1686
  name: "end",
1687
1687
  toEl: A,
@@ -1689,9 +1689,9 @@ y.prototype = /** @lends Sortable.prototype */
1689
1689
  }), this.save()))), this._nulling();
1690
1690
  },
1691
1691
  _nulling: function() {
1692
- L("nulling", this), w = h = A = _ = at = C = Yt = K = rt = F = xt = H = Z = vt = Ot = ft = Pt = x = kt = y.dragged = y.ghost = y.clone = y.active = null, ee.forEach(function(t) {
1692
+ I("nulling", this), C = u = A = b = st = $ = Yt = K = rt = F = Tt = k = q = mt = Ot = pt = Ht = T = Bt = y.dragged = y.ghost = y.clone = y.active = null, ee.forEach(function(t) {
1693
1693
  t.checked = !0;
1694
- }), ee.length = me = ye = 0;
1694
+ }), ee.length = ve = ye = 0;
1695
1695
  },
1696
1696
  handleEvent: function(t) {
1697
1697
  switch (t.type) {
@@ -1701,7 +1701,7 @@ y.prototype = /** @lends Sortable.prototype */
1701
1701
  break;
1702
1702
  case "dragenter":
1703
1703
  case "dragover":
1704
- h && (this._onDragOver(t), yn(t));
1704
+ u && (this._onDragOver(t), bn(t));
1705
1705
  break;
1706
1706
  case "selectstart":
1707
1707
  t.preventDefault();
@@ -1713,8 +1713,8 @@ y.prototype = /** @lends Sortable.prototype */
1713
1713
  * @returns {String[]}
1714
1714
  */
1715
1715
  toArray: function() {
1716
- for (var t = [], e, n = this.el.children, r = 0, o = n.length, s = this.options; r < o; r++)
1717
- e = n[r], z(e, s.draggable, this.el, !1) && t.push(e.getAttribute(s.dataIdAttr) || Cn(e));
1716
+ for (var t = [], e, n = this.el.children, r = 0, o = n.length, a = this.options; r < o; r++)
1717
+ e = n[r], j(e, a.draggable, this.el, !1) && t.push(e.getAttribute(a.dataIdAttr) || An(e));
1718
1718
  return t;
1719
1719
  },
1720
1720
  /**
@@ -1723,9 +1723,9 @@ y.prototype = /** @lends Sortable.prototype */
1723
1723
  */
1724
1724
  sort: function(t, e) {
1725
1725
  var n = {}, r = this.el;
1726
- this.toArray().forEach(function(o, s) {
1727
- var a = r.children[s];
1728
- z(a, this.options.draggable, r, !1) && (n[o] = a);
1726
+ this.toArray().forEach(function(o, a) {
1727
+ var l = r.children[a];
1728
+ j(l, this.options.draggable, r, !1) && (n[o] = l);
1729
1729
  }, this), e && this.captureAnimationState(), t.forEach(function(o) {
1730
1730
  n[o] && (r.removeChild(n[o]), r.appendChild(n[o]));
1731
1731
  }), e && this.animateAll();
@@ -1744,7 +1744,7 @@ y.prototype = /** @lends Sortable.prototype */
1744
1744
  * @returns {HTMLElement|null}
1745
1745
  */
1746
1746
  closest: function(t, e) {
1747
- return z(t, e || this.options.draggable, this.el, !1);
1747
+ return j(t, e || this.options.draggable, this.el, !1);
1748
1748
  },
1749
1749
  /**
1750
1750
  * Set/get option
@@ -1756,24 +1756,24 @@ y.prototype = /** @lends Sortable.prototype */
1756
1756
  var n = this.options;
1757
1757
  if (e === void 0)
1758
1758
  return n[t];
1759
- var r = Bt.modifyOption(this, t, e);
1760
- typeof r < "u" ? n[t] = r : n[t] = e, t === "group" && Di(n);
1759
+ var r = kt.modifyOption(this, t, e);
1760
+ typeof r < "u" ? n[t] = r : n[t] = e, t === "group" && Si(n);
1761
1761
  },
1762
1762
  /**
1763
1763
  * Destroy
1764
1764
  */
1765
1765
  destroy: function() {
1766
- L("destroy", this);
1766
+ I("destroy", this);
1767
1767
  var t = this.el;
1768
- t[U] = null, b(t, "mousedown", this._onTapStart), b(t, "touchstart", this._onTapStart), b(t, "pointerdown", this._onTapStart), this.nativeDraggable && (b(t, "dragover", this), b(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(e) {
1768
+ t[R] = null, _(t, "mousedown", this._onTapStart), _(t, "touchstart", this._onTapStart), _(t, "pointerdown", this._onTapStart), this.nativeDraggable && (_(t, "dragover", this), _(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(e) {
1769
1769
  e.removeAttribute("draggable");
1770
1770
  }), this._onDrop(), this._disableDelayedDragEvents(), te.splice(te.indexOf(this.el), 1), this.el = t = null;
1771
1771
  },
1772
1772
  _hideClone: function() {
1773
1773
  if (!K) {
1774
- if (L("hideClone", this), y.eventCanceled)
1774
+ if (I("hideClone", this), y.eventCanceled)
1775
1775
  return;
1776
- g(C, "display", "none"), this.options.removeCloneOnHide && C.parentNode && C.parentNode.removeChild(C), K = !0;
1776
+ g($, "display", "none"), this.options.removeCloneOnHide && $.parentNode && $.parentNode.removeChild($), K = !0;
1777
1777
  }
1778
1778
  },
1779
1779
  _showClone: function(t) {
@@ -1782,58 +1782,58 @@ y.prototype = /** @lends Sortable.prototype */
1782
1782
  return;
1783
1783
  }
1784
1784
  if (K) {
1785
- if (L("showClone", this), y.eventCanceled)
1785
+ if (I("showClone", this), y.eventCanceled)
1786
1786
  return;
1787
- h.parentNode == w && !this.options.group.revertClone ? w.insertBefore(C, h) : at ? w.insertBefore(C, at) : w.appendChild(C), this.options.group.revertClone && this.animate(h, C), g(C, "display", ""), K = !1;
1787
+ u.parentNode == C && !this.options.group.revertClone ? C.insertBefore($, u) : st ? C.insertBefore($, st) : C.appendChild($), this.options.group.revertClone && this.animate(u, $), g($, "display", ""), K = !1;
1788
1788
  }
1789
1789
  }
1790
1790
  };
1791
- function yn(i) {
1791
+ function bn(i) {
1792
1792
  i.dataTransfer && (i.dataTransfer.dropEffect = "move"), i.cancelable && i.preventDefault();
1793
1793
  }
1794
- function Ft(i, t, e, n, r, o, s, a) {
1795
- var l, d = i[U], f = d.options.onMove, u;
1796
- return window.CustomEvent && !tt && !ie ? l = new CustomEvent("move", {
1794
+ function Ft(i, t, e, n, r, o, a, l) {
1795
+ var s, d = i[R], p = d.options.onMove, h;
1796
+ return window.CustomEvent && !tt && !ie ? s = new CustomEvent("move", {
1797
1797
  bubbles: !0,
1798
1798
  cancelable: !0
1799
- }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = i, l.dragged = e, l.draggedRect = n, l.related = r || t, l.relatedRect = o || T(t), l.willInsertAfter = a, l.originalEvent = s, i.dispatchEvent(l), f && (u = f.call(d, l, s)), u;
1799
+ }) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = t, s.from = i, s.dragged = e, s.draggedRect = n, s.related = r || t, s.relatedRect = o || D(t), s.willInsertAfter = l, s.originalEvent = a, i.dispatchEvent(s), p && (h = p.call(d, s, a)), h;
1800
1800
  }
1801
- function be(i) {
1801
+ function _e(i) {
1802
1802
  i.draggable = !1;
1803
1803
  }
1804
1804
  function _n() {
1805
1805
  Ae = !1;
1806
1806
  }
1807
- function bn(i, t, e) {
1808
- var n = T(bt(e.el, 0, e.options, !0)), r = 10;
1807
+ function En(i, t, e) {
1808
+ var n = D(_t(e.el, 0, e.options, !0)), r = 10;
1809
1809
  return t ? i.clientX < n.left - r || i.clientY < n.top && i.clientX < n.right : i.clientY < n.top - r || i.clientY < n.bottom && i.clientX < n.left;
1810
1810
  }
1811
- function En(i, t, e) {
1812
- var n = T(xe(e.el, e.options.draggable)), r = 10;
1811
+ function wn(i, t, e) {
1812
+ var n = D(Te(e.el, e.options.draggable)), r = 10;
1813
1813
  return t ? i.clientX > n.right + r || i.clientX <= n.right && i.clientY > n.bottom && i.clientX >= n.left : i.clientX > n.right && i.clientY > n.top || i.clientX <= n.right && i.clientY > n.bottom + r;
1814
1814
  }
1815
- function $n(i, t, e, n, r, o, s, a) {
1816
- var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width, f = n ? e.top : e.left, u = n ? e.bottom : e.right, c = !1;
1817
- if (!s) {
1818
- if (a && Wt < d * r) {
1819
- if (!It && (Pt === 1 ? l > f + d * o / 2 : l < u - d * o / 2) && (It = !0), It)
1815
+ function Cn(i, t, e, n, r, o, a, l) {
1816
+ var s = n ? i.clientY : i.clientX, d = n ? e.height : e.width, p = n ? e.top : e.left, h = n ? e.bottom : e.right, c = !1;
1817
+ if (!a) {
1818
+ if (l && Wt < d * r) {
1819
+ if (!Lt && (Ht === 1 ? s > p + d * o / 2 : s < h - d * o / 2) && (Lt = !0), Lt)
1820
1820
  c = !0;
1821
- else if (Pt === 1 ? l < f + Wt : l > u - Wt)
1822
- return -Pt;
1823
- } else if (l > f + d * (1 - r) / 2 && l < u - d * (1 - r) / 2)
1824
- return wn(t);
1821
+ else if (Ht === 1 ? s < p + Wt : s > h - Wt)
1822
+ return -Ht;
1823
+ } else if (s > p + d * (1 - r) / 2 && s < h - d * (1 - r) / 2)
1824
+ return $n(t);
1825
1825
  }
1826
- return c = c || s, c && (l < f + d * o / 2 || l > u - d * o / 2) ? l > f + d / 2 ? 1 : -1 : 0;
1826
+ return c = c || a, c && (s < p + d * o / 2 || s > h - d * o / 2) ? s > p + d / 2 ? 1 : -1 : 0;
1827
1827
  }
1828
- function wn(i) {
1829
- return k(h) < k(i) ? 1 : -1;
1828
+ function $n(i) {
1829
+ return B(u) < B(i) ? 1 : -1;
1830
1830
  }
1831
- function Cn(i) {
1831
+ function An(i) {
1832
1832
  for (var t = i.tagName + i.className + i.src + i.href + i.textContent, e = t.length, n = 0; e--; )
1833
1833
  n += t.charCodeAt(e);
1834
1834
  return n.toString(36);
1835
1835
  }
1836
- function An(i) {
1836
+ function xn(i) {
1837
1837
  ee.length = 0;
1838
1838
  for (var t = i.getElementsByTagName("input"), e = t.length; e--; ) {
1839
1839
  var n = t[e];
@@ -1843,33 +1843,33 @@ function An(i) {
1843
1843
  function Gt(i) {
1844
1844
  return setTimeout(i, 0);
1845
1845
  }
1846
- function Se(i) {
1846
+ function xe(i) {
1847
1847
  return clearTimeout(i);
1848
1848
  }
1849
- ne && $(document, "touchmove", function(i) {
1849
+ ne && w(document, "touchmove", function(i) {
1850
1850
  (y.active || gt) && i.cancelable && i.preventDefault();
1851
1851
  });
1852
1852
  y.utils = {
1853
- on: $,
1854
- off: b,
1853
+ on: w,
1854
+ off: _,
1855
1855
  css: g,
1856
- find: wi,
1856
+ find: Ci,
1857
1857
  is: function(t, e) {
1858
- return !!z(t, e, t, !1);
1858
+ return !!j(t, e, t, !1);
1859
1859
  },
1860
1860
  extend: sn,
1861
- throttle: an,
1862
- closest: z,
1863
- toggleClass: M,
1864
- clone: Ci,
1865
- index: k,
1861
+ throttle: ln,
1862
+ closest: j,
1863
+ toggleClass: N,
1864
+ clone: $i,
1865
+ index: B,
1866
1866
  nextTick: Gt,
1867
- cancelNextTick: Se,
1868
- detectDirection: Si,
1869
- getChild: bt
1867
+ cancelNextTick: xe,
1868
+ detectDirection: xi,
1869
+ getChild: _t
1870
1870
  };
1871
1871
  y.get = function(i) {
1872
- return i[U];
1872
+ return i[R];
1873
1873
  };
1874
1874
  y.mount = function() {
1875
1875
  for (var i = arguments.length, t = new Array(i), e = 0; e < i; e++)
@@ -1877,28 +1877,28 @@ y.mount = function() {
1877
1877
  t[0].constructor === Array && (t = t[0]), t.forEach(function(n) {
1878
1878
  if (!n.prototype || !n.prototype.constructor)
1879
1879
  throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
1880
- n.utils && (y.utils = X(X({}, y.utils), n.utils)), Bt.mount(n);
1880
+ n.utils && (y.utils = X(X({}, y.utils), n.utils)), kt.mount(n);
1881
1881
  });
1882
1882
  };
1883
1883
  y.create = function(i, t) {
1884
1884
  return new y(i, t);
1885
1885
  };
1886
- y.version = nn;
1886
+ y.version = rn;
1887
1887
  var Oi = function(t) {
1888
- var e = t.originalEvent, n = t.putSortable, r = t.dragEl, o = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
1888
+ var e = t.originalEvent, n = t.putSortable, r = t.dragEl, o = t.activeSortable, a = t.dispatchSortableEvent, l = t.hideGhostForTarget, s = t.unhideGhostForTarget;
1889
1889
  if (e) {
1890
1890
  var d = n || o;
1891
- a();
1892
- var f = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, u = document.elementFromPoint(f.clientX, f.clientY);
1893
- l(), d && !d.el.contains(u) && (s("spill"), this.onSpill({
1891
+ l();
1892
+ var p = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, h = document.elementFromPoint(p.clientX, p.clientY);
1893
+ s(), d && !d.el.contains(h) && (a("spill"), this.onSpill({
1894
1894
  dragEl: r,
1895
1895
  putSortable: n
1896
1896
  }));
1897
1897
  }
1898
1898
  };
1899
- function Pi() {
1899
+ function Hi() {
1900
1900
  }
1901
- Pi.prototype = {
1901
+ Hi.prototype = {
1902
1902
  startIndex: null,
1903
1903
  dragStart: function(t) {
1904
1904
  var e = t.oldDraggableIndex;
@@ -1907,128 +1907,421 @@ Pi.prototype = {
1907
1907
  onSpill: function(t) {
1908
1908
  var e = t.dragEl, n = t.putSortable;
1909
1909
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
1910
- var r = bt(this.sortable.el, this.startIndex, this.options);
1910
+ var r = _t(this.sortable.el, this.startIndex, this.options);
1911
1911
  r ? this.sortable.el.insertBefore(e, r) : this.sortable.el.appendChild(e), this.sortable.animateAll(), n && n.animateAll();
1912
1912
  },
1913
1913
  drop: Oi
1914
1914
  };
1915
- J(Pi, {
1915
+ J(Hi, {
1916
1916
  pluginName: "revertOnSpill"
1917
1917
  });
1918
- function Ii() {
1918
+ function Li() {
1919
1919
  }
1920
- Ii.prototype = {
1920
+ Li.prototype = {
1921
1921
  onSpill: function(t) {
1922
1922
  var e = t.dragEl, n = t.putSortable, r = n || this.sortable;
1923
1923
  r.captureAnimationState(), e.parentNode && e.parentNode.removeChild(e), r.animateAll();
1924
1924
  },
1925
1925
  drop: Oi
1926
1926
  };
1927
- J(Ii, {
1927
+ J(Li, {
1928
1928
  pluginName: "removeOnSpill"
1929
1929
  });
1930
- const Ni = `
1930
+ const Pi = `
1931
1931
  :host {
1932
1932
  display: block;
1933
1933
  }
1934
1934
  .layer {
1935
- display: flex;
1935
+ display: inline-flex;
1936
1936
  justify-content: space-between;
1937
1937
  }
1938
- .drag-handle {
1939
- cursor: ns-resize;
1940
- }
1941
1938
  ul[data-group] {
1942
1939
  padding-inline-start: 40px;
1943
1940
  }
1944
1941
  `, Sn = `
1945
- ul {
1942
+ button {
1943
+ /* TODO: why does this only work here and not from :root? */
1944
+ --primary-color: #004170;
1945
+ --primary-color-hover: #004170CC;
1946
+ --error-color: #FF5252;
1947
+
1948
+ display: inline-flex;
1949
+ align-items: center;
1950
+ color: #fff;
1951
+ border-width: 0;
1952
+ outline: none;
1953
+ border-radius: 4px;
1954
+ padding: 16px;
1955
+ height: 36px;
1956
+ cursor: pointer;
1957
+ font-family: inherit;
1958
+ font-size: 0.875rem;
1959
+ text-transform: uppercase;
1960
+ letter-spacing: 1.25px;
1961
+ font-weight: 500;
1962
+ box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
1963
+ transition-property: box-shadow, transform, opacity, background;
1964
+ transition-duration: 0.28s;
1965
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1966
+ }
1967
+
1968
+ button:hover {
1969
+ box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
1970
+ background: var(--primary-color-hover);
1971
+ }
1972
+
1973
+ button, button:active {
1974
+ background: var(--primary-color);
1975
+ }
1976
+
1977
+ button.outline {
1978
+ background: transparent;
1979
+ box-shadow: none;
1980
+ color: var(--primary-color);
1981
+ outline: 1px solid var(--primary-color);
1982
+ }
1983
+
1984
+ button.outline:hover {
1985
+ background: transparent;
1986
+ }
1987
+
1988
+ button.icon {
1989
+ background: transparent;
1990
+ border: none;
1991
+ box-shadow: none;
1946
1992
  padding: 0;
1993
+ border-radius: 50%;
1994
+ width: 24px;
1947
1995
  }
1948
- li {
1949
- list-style: none;
1996
+
1997
+ button.icon-text {
1998
+ text-indent: 26px;
1999
+ }
2000
+
2001
+ button.icon:before, button.icon-text:before {
2002
+ position: absolute;
2003
+ text-indent: 0;
2004
+ line-height: initial;
2005
+ }
2006
+
2007
+ button.icon:before {
2008
+ width: 24px;
2009
+ height: 24px;
2010
+ margin-right: 0;
1950
2011
  }
1951
- li > .layer > label {
2012
+
2013
+ button.icon-text:before {
2014
+ width: 18px;
2015
+ height: 18px;
2016
+ }
2017
+ `, Dn = `
2018
+ input[type="range"] {
2019
+ -webkit-appearance: none;
2020
+ width: 90%;
2021
+ margin-left: 5%;
2022
+ height: 6px;
2023
+ border-radius: 5px;
2024
+ background: #d7dcdf;
2025
+ outline: none;
2026
+ padding: 0;
2027
+ }
2028
+ input[type="range"]::-webkit-slider-thumb {
2029
+ appearance: none;
2030
+ width: 15px;
2031
+ height: 15px;
2032
+ border-radius: 50%;
2033
+ background: #2c3e50;
2034
+ cursor: pointer;
2035
+ transition: background 0.15s ease-in-out;
2036
+ }
2037
+ .range-slider {
2038
+ margin: 60px 0 0 0;
2039
+ }
2040
+ .range-slider {
2041
+ width: 100%;
2042
+ }
2043
+ input[type="range"]::-webkit-slider-thumb:hover {
2044
+ background: #00416F;
2045
+ }
2046
+ input[type="range"]:active::-webkit-slider-thumb {
2047
+ background: #00416F;
2048
+ }
2049
+ input[type="range"]::-moz-range-thumb {
2050
+ width: 15px;
2051
+ height: 15px;
2052
+ border: 0;
2053
+ border-radius: 50%;
2054
+ background: #2c3e50;
2055
+ cursor: pointer;
2056
+ transition: background 0.15s ease-in-out;
2057
+ }
2058
+ input[type="range"]::-moz-range-thumb:hover {
2059
+ background: #00416F;
2060
+ }
2061
+ input[type="range"]:active::-moz-range-thumb {
2062
+ background: #00416F;
2063
+ }
2064
+ input[type="range"]:focus::-webkit-slider-thumb {
2065
+ box-shadow: 0 0 0 3px #fff0, 0 0 0 6px #00416F00;
2066
+ }
2067
+ .range-slider__value {
2068
+ display: inline-block;
2069
+ position: relative;
2070
+ width: 60px;
2071
+ color: #fff;
2072
+ line-height: 20px;
2073
+ text-align: center;
2074
+ border-radius: 3px;
2075
+ background: #2c3e50;
2076
+ padding: 5px 10px;
2077
+ margin-left: 8px;
2078
+ }
2079
+ .range-slider__value:after {
2080
+ position: absolute;
2081
+ top: 8px;
2082
+ left: -7px;
2083
+ width: 0;
2084
+ height: 0;
2085
+ border-top: 7px solid transparent;
2086
+ border-right: 7px solid #2c3e50;
2087
+ border-bottom: 7px solid transparent;
2088
+ content: '';
2089
+ }
2090
+
2091
+ input::-moz-focus-inner, input::-moz-focus-outer {
2092
+ border: 0;
2093
+ }
2094
+ `, Tn = `
2095
+ input[type=radio] {
2096
+ appearance: none;
2097
+ margin: 0;
1952
2098
  cursor: pointer;
1953
2099
  display: flex;
2100
+ flex-direction: row;
1954
2101
  align-items: center;
1955
2102
  }
1956
- li label > input[type=checkbox] {
2103
+ input[type=radio]:after {
2104
+ display: block;
2105
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E");
2106
+ width: 20px;
2107
+ height: 20px;
2108
+ margin-right: 4px;
2109
+ }
2110
+ input[type=radio]:checked:after {
2111
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");
2112
+
2113
+ }
2114
+ `, On = `
2115
+ input[type=checkbox] {
1957
2116
  appearance: none;
1958
2117
  margin: 0;
2118
+ cursor: pointer;
2119
+ display: flex;
2120
+ flex-direction: row;
2121
+ align-items: center;
1959
2122
  }
1960
- li label > input[type=checkbox]:after {
2123
+ input[type=checkbox]:after {
1961
2124
  display: block;
1962
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Eeye-off-outline%3C/title%3E%3Cpath fill='%23004170' d='M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z' /%3E%3C/svg%3E");
1963
- width: 24px;
1964
- height: 24px;
2125
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E");
2126
+ width: 20px;
2127
+ height: 20px;
1965
2128
  margin-right: 4px;
1966
2129
  }
1967
- li label > input[type=checkbox]:checked:after {
1968
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Eeye%3C/title%3E%3Cpath fill='%23004170' d='M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z' /%3E%3C/svg%3E");
2130
+ input[type=checkbox]:checked:after {
2131
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");
2132
+
1969
2133
  }
1970
- .drag-handle span {
1971
- display: none;
2134
+ `, Ii = `
2135
+ * {
2136
+ font-family: Roboto, sans-serif;
1972
2137
  }
1973
- .drag-handle {
1974
- background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Edrag%3C/title%3E%3Cpath fill='%23004170' d='M7,19V17H9V19H7M11,19V17H13V19H11M15,19V17H17V19H15M7,15V13H9V15H7M11,15V13H13V15H11M15,15V13H17V15H15M7,11V9H9V11H7M11,11V9H13V11H11M15,11V9H17V11H15M7,7V5H9V7H7M11,7V5H13V7H11M15,7V5H17V7H15Z' /%3E%3C/svg%3E");
2138
+
2139
+ ${Sn}
2140
+ ${Dn}
2141
+ ${Tn}
2142
+ ${On}
2143
+
2144
+ summary > .layer {
2145
+ height: 36px;
2146
+ border-bottom: 1px solid #00417000;
2147
+ display: flex;
2148
+ align-items: center;
2149
+ padding-right: 12px;
2150
+ }
2151
+
2152
+ [data-type=group] .title {
2153
+ font-style: italic;
2154
+ }
2155
+
2156
+
2157
+ [data-type] .title::before {
1975
2158
  width: 24px;
1976
2159
  height: 24px;
2160
+ margin-right: 6px;
2161
+ margin-left: -1px;
1977
2162
  }
1978
- li.sortable-chosen {
1979
- background: #eeea;
2163
+
2164
+ [data-type=group] .title::before {
2165
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236889A0' viewBox='0 0 24 24'%3E%3Ctitle%3Efolder-outline%3C/title%3E%3Cpath d='M20,18H4V8H20M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z' /%3E%3C/svg%3E");
1980
2166
  }
1981
- li.sortable-drag {
1982
- opacity: 0;
2167
+
2168
+ li[data-type=raster] .title::before {
2169
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236889A0' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckerboard%3C/title%3E%3Cpath d='M2 2V22H22V2H2M20 12H16V16H20V20H16V16H12V20H8V16H4V12H8V8H4V4H8V8H12V4H16V8H20V12M16 8V12H12V8H16M12 12V16H8V12H12Z' /%3E%3C/svg%3E");
1983
2170
  }
1984
- li.sortable-ghost {
2171
+
2172
+ li[data-type=vector] .title::before {
2173
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236889A0' viewBox='0 0 24 24'%3E%3Ctitle%3Eshape-outline%3C/title%3E%3Cpath d='M11,13.5V21.5H3V13.5H11M9,15.5H5V19.5H9V15.5M12,2L17.5,11H6.5L12,2M12,5.86L10.08,9H13.92L12,5.86M17.5,13C20,13 22,15 22,17.5C22,20 20,22 17.5,22C15,22 13,20 13,17.5C13,15 15,13 17.5,13M17.5,15A2.5,2.5 0 0,0 15,17.5A2.5,2.5 0 0,0 17.5,20A2.5,2.5 0 0,0 20,17.5A2.5,2.5 0 0,0 17.5,15Z' /%3E%3C/svg%3E");
2174
+ }
2175
+
2176
+ li[data-type=draw] .title::before {
2177
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236889A0' viewBox='0 0 24 24'%3E%3Ctitle%3Evector-square-edit%3C/title%3E%3Cpath d='M22.7 14.4L21.7 15.4L19.6 13.3L20.6 12.3C20.8 12.1 21.2 12.1 21.4 12.3L22.7 13.6C22.9 13.8 22.9 14.1 22.7 14.4M13 19.9L19.1 13.8L21.2 15.9L15.1 22H13V19.9M11 19.9V19.1L11.6 18.5L12.1 18H8V16H6V8H8V6H16V8H18V12.1L19.1 11L19.3 10.8C19.5 10.6 19.8 10.4 20.1 10.3V8H22.1V2H16.1V4H8V2H2V8H4V16H2V22H8V20L11 19.9M18 4H20V6H18V4M4 4H6V6H4V4M6 20H4V18H6V20Z' /%3E%3C/svg%3E");
2178
+ }
2179
+
2180
+ [data-type]:not([data-type=group]) .title {
2181
+ font-style: normal;
2182
+ }
2183
+
2184
+ details summary { list-style-type: none; } /* Firefox */
2185
+ details summary::-webkit-details-marker { display: none; } /* Chrome */
2186
+ details summary::marker { display: none; }
2187
+
2188
+ .layers > ul > li {
2189
+ background: #F1F5F900;
1985
2190
  }
1986
- details.group-details {
2191
+
2192
+ summary {
1987
2193
  position: relative;
1988
2194
  }
1989
- details.group-details > summary {
2195
+ summary details, summary li, summary ul {
2196
+ width: 100%;
2197
+ }
2198
+
2199
+ input[type="text"] {
2200
+ --search-padding-left: 32px;
2201
+ width: calc(100% - var(--search-padding-left) - 4px);
2202
+ height: 32px;
2203
+ padding-left: var(--search-padding-left);
2204
+ font-size: 15px;
2205
+ }
2206
+
2207
+ input[type="text"]::before {
2208
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Emagnify%3C/title%3E%3Cpath d='M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z' /%3E%3C/svg%3E");
2209
+ }
2210
+
2211
+ ul {
2212
+ padding: 0;
2213
+ background: #D7E2EE;
2214
+ background: #CFDDEB00;
2215
+ }
2216
+ li {
1990
2217
  list-style: none;
1991
- position: absolute;
1992
- right: 20px;
1993
- top: -64px;
1994
- font-size: 0;
2218
+ cursor: pointer;
2219
+ background: #CFDDEB00;
2220
+ border-top: 1px solid #00417033;
1995
2221
  }
1996
- details.group-details > summary:after {
1997
- display: block;
1998
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Eplus%3C/title%3E%3Cpath d='M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z' /%3E%3C/svg%3E");
2222
+ li summary {
2223
+ display: flex;
2224
+ }
2225
+
2226
+ .slider-control {
2227
+ display: flex;
2228
+ flex-direction: row;
2229
+ align-items: center;
2230
+ margin-top: 9px;
2231
+ margin-left: 64px;
2232
+ margin-bottom: 12px;
2233
+ }
2234
+
2235
+ .slider-control input[type=range] {
2236
+ max-width: 120px;
2237
+ }
2238
+
2239
+ .slider-control .slider-property {
2240
+ width: 80px;
2241
+ color: #3B6289;
2242
+ font-size: 14px;
2243
+ }
2244
+
2245
+ .slider-control > * {
2246
+ text-transform: capitalize;
2247
+ }
2248
+
2249
+ /* Expansible Section Chevron */
2250
+ li summary:before {
2251
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echevron-right%3C/title%3E%3Cpath d='M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z' /%3E%3C/svg%3E");
2252
+ font-size: 13px;
1999
2253
  width: 24px;
2000
2254
  height: 24px;
2255
+ margin-right: 6px;
2256
+ margin-left: -1px;
2257
+
2258
+ margin-top: 5px;
2259
+ }
2260
+ li details[open] > summary:before {
2261
+ transform: rotate(90deg);
2262
+ }
2263
+ li[data-layerconfig=false]:not([data-type=group]) summary:before {
2264
+ display: none;
2265
+ }
2266
+ li .layer {
2267
+ width: 100%;
2268
+ }
2269
+ li .layer .left,
2270
+ li .layer .right {
2271
+ display: flex;
2272
+ }
2273
+ li .layer .left span {
2001
2274
  cursor: pointer;
2275
+ display: flex;
2276
+ align-items: center;
2277
+ margin-left: 6px;
2002
2278
  }
2003
- details[open].group-details > summary:after {
2004
- display: block;
2005
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Eminus%3C/title%3E%3Cpath d='M19,13H5V11H19V13Z' /%3E%3C/svg%3E");
2279
+ .drag-handle span {
2280
+ display: none;
2281
+ }
2282
+ .drag-handle {
2283
+ cursor: ns-resize;
2284
+ background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Edrag%3C/title%3E%3Cpath fill='%23004170' d='M7,19V17H9V19H7M11,19V17H13V19H11M15,19V17H17V19H15M7,15V13H9V15H7M11,15V13H13V15H11M15,15V13H17V15H15M7,11V9H9V11H7M11,11V9H13V11H11M15,11V9H17V11H15M7,7V5H9V7H7M11,7V5H13V7H11M15,7V5H17V7H15Z' /%3E%3C/svg%3E");
2006
2285
  width: 24px;
2007
2286
  height: 24px;
2008
- cursor: pointer;
2287
+ }
2288
+ .drag-handle.disabled {
2289
+ cursor: not-allowed;
2290
+ opacity: 0.3;
2291
+ }
2292
+ li.sortable-chosen {
2293
+ background: #eeea;
2294
+ }
2295
+ li.sortable-drag {
2296
+ opacity: 0;
2297
+ }
2298
+ li.sortable-ghost {
2009
2299
  }
2010
2300
  `;
2011
- var Dn = Object.defineProperty, Tn = Object.getOwnPropertyDescriptor, S = (i, t, e, n) => {
2012
- for (var r = n > 1 ? void 0 : n ? Tn(t, e) : t, o = i.length - 1, s; o >= 0; o--)
2013
- (s = i[o]) && (r = (n ? s(t, e, r) : s(r)) || r);
2014
- return n && r && Dn(t, e, r), r;
2301
+ var Hn = Object.defineProperty, Ln = Object.getOwnPropertyDescriptor, x = (i, t, e, n) => {
2302
+ for (var r = n > 1 ? void 0 : n ? Ln(t, e) : t, o = i.length - 1, a; o >= 0; o--)
2303
+ (a = i[o]) && (r = (n ? a(t, e, r) : a(r)) || r);
2304
+ return n && r && Hn(t, e, r), r;
2015
2305
  };
2016
- let B = class extends mt {
2306
+ let V = class extends vt {
2017
2307
  constructor() {
2018
2308
  super(...arguments), this.layerIdentifier = "ol_uid", this.layerTitle = "title", this.sortBy = "layerOrder", this.layerConfig = ["opacity"], this.externalLayerConfig = void 0, this.filterLayers = (i, t, e) => {
2019
2309
  let n = [];
2020
- const r = (o, s, a) => {
2021
- n = [...n, ...o.filter((d) => d.get(s) === a)];
2022
- const l = o.filter((d) => d.getLayers);
2023
- return l.length > 0 && l.forEach(
2310
+ const r = (o, a, l) => {
2311
+ n = [...n, ...o.filter((d) => d.get(a) === l)];
2312
+ const s = o.filter((d) => d.getLayers);
2313
+ return s.length > 0 && s.forEach(
2024
2314
  (d) => (
2025
2315
  // @ts-ignore
2026
- r(d.getLayers().getArray(), s, a)
2316
+ r(d.getLayers().getArray(), a, l)
2027
2317
  )
2028
2318
  ), n;
2029
2319
  };
2030
2320
  return r(i, t, e), n;
2031
- }, this.findLayerById = (i, t) => this.filterLayers(i, "id", t)[0];
2321
+ }, this.findLayerById = (i, t) => this.filterLayers(i, "id", t)[0], this.getLayerType = (i, t) => i.getLayers ? "group" : t.getInteractions().getArray().filter((e) => e.freehand_ !== void 0).map((e) => e.source_.ol_uid).includes(i.getSource ? i.getSource().ol_uid : !1) ? "draw" : (
2322
+ // @ts-ignore
2323
+ i.declutter_ !== void 0 ? "vector" : "raster"
2324
+ );
2032
2325
  }
2033
2326
  _updateControl(i) {
2034
2327
  this.layerCollection = i, this.optionalLayerArray = this.filterLayers(
@@ -2079,89 +2372,104 @@ let B = class extends mt {
2079
2372
  this.requestUpdate();
2080
2373
  }
2081
2374
  render() {
2082
- var r;
2083
- const i = document.querySelector(this.for), e = (i.map || i).getLayers();
2375
+ var o;
2376
+ const i = document.querySelector(this.for), t = i.map || i, e = t.getLayers();
2084
2377
  this._updateControl(e), e.on("change:length", () => {
2085
2378
  this._currentlySorting || this._updateControl(e);
2086
2379
  });
2087
- const n = (o, s) => N`
2088
- <ul data-group="${s ?? E}">
2089
- ${we(
2090
- o,
2091
- (a) => a.get(this.layerIdentifier),
2092
- (a) => N`
2093
- <li
2094
- data-layer="${//@ts-ignore
2095
- a.get(this.layerIdentifier)}"
2096
- data-disabled="${a.get("layerControlDisable") || E}"
2097
- >
2098
- <div class="layer">
2099
- <label>
2100
- <input
2101
- type="${a.get("layerControlExclusive") ? "radio" : "checkbox"}"
2102
- .checked="${Ce(a.getVisible())}"
2103
- @click=${() => {
2104
- this.toggleLayerVisibility(a, s);
2380
+ const n = (a, l) => {
2381
+ var s;
2382
+ return L`
2383
+ <details>
2384
+ <summary>
2385
+ <div class="layer">
2386
+ <div class="left">
2387
+ <input
2388
+ type="${a.get("layerControlExclusive") ? "radio" : "checkbox"}"
2389
+ .checked="${$e(a.getVisible())}"
2390
+ @click=${() => {
2391
+ this.toggleLayerVisibility(a, l);
2105
2392
  }}
2106
- />
2107
- <span class="title"
2108
- >${a.get(this.layerTitle) || `${// @ts-ignore
2109
- a.get(this.layerIdentifier)}`}</span
2393
+ />
2394
+ <span class="title"
2395
+ >${a.get(this.layerTitle) || `${// @ts-ignore
2396
+ a.get(this.layerIdentifier)}`}
2397
+ </span>
2398
+ </div>
2399
+ <div class="right">
2400
+ ${this.sortBy === "layerOrder" && !this.unstyled ? L` <div
2401
+ class="drag-handle ${a.get("layerControlDisable") ? "disabled" : ""}"
2110
2402
  >
2111
- </label>
2112
- ${this.sortBy === "layerOrder" && !a.get("layerControlDisable") ? N`<div class="drag-handle">
2113
- <span>=</span>
2114
- </div>` : E}
2115
- </div>
2116
- ${this.layerConfig ? N`
2117
- <eox-layerconfig
2118
- .layerConfig="${this.layerConfig}"
2119
- .layerControl="${this}"
2120
- .layer=${a}
2121
- .external=${this.externalLayerConfig}
2122
- ></eox-layerconfig>
2123
- ` : E}
2124
- ${// @ts-ignore
2125
- this.externalLayerConfig && a.style_ ? N`
2126
- <button
2127
- @click=${() => this._emitLayerconfig(a)}
2128
- >
2129
- configure
2130
- </button>
2131
- ` : E}
2132
- ${// @ts-ignore
2133
- a.getLayers ? N`
2134
- <details open class="group-details">
2135
- <summary>Layers</summary>
2136
- ${n(
2403
+ <span>=</span>
2404
+ </div>` : E}
2405
+ </div>
2406
+ </div>
2407
+ </summary>
2408
+ ${this.layerConfig ? L`
2409
+ <eox-layerconfig
2410
+ .layerConfig="${this.layerConfig}"
2411
+ .layerControl="${this}"
2412
+ .layer=${a}
2413
+ .external=${this.externalLayerConfig}
2414
+ .unstyled="${this.unstyled}"
2415
+ ></eox-layerconfig>
2416
+ ` : E}
2417
+ ${// @ts-ignore
2418
+ this.externalLayerConfig && ((s = a.style_) != null && s.color) ? L`
2419
+ <button @click=${() => this._emitLayerconfig(a)}>
2420
+ configure
2421
+ </button>
2422
+ ` : E}
2423
+ ${// @ts-ignore
2424
+ a.getLayers ? L`
2425
+ ${r(
2137
2426
  this.preFilterLayers(
2138
2427
  // @ts-ignore
2139
2428
  [...a.getLayers().getArray()].reverse()
2140
2429
  ),
2141
2430
  a.get("id")
2142
2431
  )}
2143
- </details>
2144
- ` : E}
2432
+ ` : E}
2433
+ </details>
2434
+ `;
2435
+ }, r = (a, l) => L`
2436
+ <ul data-group="${l ?? E}">
2437
+ ${Ce(
2438
+ a,
2439
+ (s) => s.get(this.layerIdentifier),
2440
+ (s) => {
2441
+ var d;
2442
+ return L`
2443
+ <li
2444
+ data-layer="${//@ts-ignore
2445
+ s.get(this.layerIdentifier)}"
2446
+ data-disabled="${s.get("layerControlDisable") || E}"
2447
+ data-type="${this.getLayerType(s, t)}"
2448
+ data-layerconfig="${((d = this.layerConfig) == null ? void 0 : d.length) > 0}"
2449
+ >
2450
+ ${n(s, l)}
2145
2451
  </li>
2146
- `
2452
+ `;
2453
+ }
2147
2454
  )}
2148
2455
  </ul>
2149
2456
  `;
2150
- return N`
2457
+ return L`
2151
2458
  <style>
2152
- ${Ni}
2153
- ${!this.unstyled && Sn}
2459
+ ${Pi}
2460
+ ${!this.unstyled && Ii}
2154
2461
  </style>
2155
2462
  <div>
2156
2463
  <slot></slot>
2157
- <div>
2158
- ${n(
2464
+ <input type="text" placeholder="Find layer" />
2465
+ <div class="layers">
2466
+ ${r(
2159
2467
  this.preFilterLayers(e.getArray())
2160
2468
  )}
2161
2469
  </div>
2162
- ${_i(
2163
- ((r = this.optionalLayerArray) == null ? void 0 : r.length) > 0,
2164
- () => N`
2470
+ ${bi(
2471
+ ((o = this.optionalLayerArray) == null ? void 0 : o.length) > 0,
2472
+ () => L`
2165
2473
  <label for="optional">Optional layers</label>
2166
2474
 
2167
2475
  <select name="optional">
@@ -2169,36 +2477,36 @@ let B = class extends mt {
2169
2477
  -- select an optional layer to add --
2170
2478
  </option>
2171
2479
  ${this.optionalLayerArray.map(
2172
- (o) => N`
2480
+ (a) => L`
2173
2481
  <option
2174
2482
  value="${// @ts-ignore
2175
- o.get(this.layerIdentifier)}"
2483
+ a.get(this.layerIdentifier)}"
2176
2484
  >
2177
- ${o.get(this.layerTitle) || `layer ${// @ts-ignore
2178
- o.get(this.layerIdentifier)}`}
2485
+ ${a.get(this.layerTitle) || `layer ${// @ts-ignore
2486
+ a.get(this.layerIdentifier)}`}
2179
2487
  </option>
2180
2488
  `
2181
2489
  )}
2182
2490
  </select>
2183
2491
  <button
2184
2492
  @click="${() => {
2185
- const o = this.optionalLayerArray.find(
2493
+ const a = this.optionalLayerArray.find(
2186
2494
  // @ts-ignore
2187
- (s) => s.get(this.layerIdentifier) === // @ts-ignore
2495
+ (l) => l.get(this.layerIdentifier) === // @ts-ignore
2188
2496
  this.shadowRoot.querySelector("select[name=optional]").value
2189
2497
  );
2190
- if (o.get("group")) {
2191
- const s = this.findLayerById(
2498
+ if (a.get("group")) {
2499
+ const l = this.findLayerById(
2192
2500
  this.layerCollection.getArray(),
2193
- o.get("group")
2501
+ a.get("group")
2194
2502
  );
2195
- s.getLayers().remove(o), s.getLayers().insertAt(s.getLayers().getLength(), o);
2503
+ l.getLayers().remove(a), l.getLayers().insertAt(l.getLayers().getLength(), a);
2196
2504
  } else
2197
- this.layerCollection.remove(o), this.layerCollection.insertAt(
2505
+ this.layerCollection.remove(a), this.layerCollection.insertAt(
2198
2506
  this.layerCollection.getLength(),
2199
- o
2507
+ a
2200
2508
  );
2201
- o.set("layerControlOptional", !1), o.setVisible(!0);
2509
+ a.set("layerControlOptional", !1), a.setVisible(!0);
2202
2510
  }}"
2203
2511
  >
2204
2512
  add
@@ -2212,9 +2520,9 @@ let B = class extends mt {
2212
2520
  this.sortBy == "layerOrder" && this.renderRoot.querySelectorAll("ul").forEach((t) => {
2213
2521
  const e = t.dataset.group;
2214
2522
  y.create(t, {
2215
- handle: ".drag-handle",
2523
+ handle: this.unstyled ? "summary" : ".drag-handle",
2216
2524
  dataIdAttr: "data-layer",
2217
- filter: "data-disabled",
2525
+ filter: ".drag-handle.disabled",
2218
2526
  swapThreshold: 0.5,
2219
2527
  animation: 150,
2220
2528
  easing: "cubic-bezier(1, 0, 0, 1)",
@@ -2229,22 +2537,22 @@ let B = class extends mt {
2229
2537
  ].reverse(),
2230
2538
  set: (n) => {
2231
2539
  var r = n.toArray().reverse();
2232
- r.forEach((o, s) => {
2540
+ r.forEach((o, a) => {
2233
2541
  if (e) {
2234
- const l = this.findLayerById(
2542
+ const s = this.findLayerById(
2235
2543
  this.layerCollection.getArray(),
2236
2544
  e
2237
2545
  ).getLayers(), d = this.findLayerById(
2238
- l.getArray(),
2546
+ s.getArray(),
2239
2547
  o
2240
2548
  );
2241
- l.remove(d), l.insertAt(s, d);
2549
+ s.remove(d), s.insertAt(a, d);
2242
2550
  } else {
2243
- const a = this.findLayerById(
2551
+ const l = this.findLayerById(
2244
2552
  this.layerCollection.getArray(),
2245
2553
  o
2246
2554
  );
2247
- this.layerCollection.remove(a), this.layerCollection.insertAt(s, a);
2555
+ this.layerCollection.remove(l), this.layerCollection.insertAt(a, l);
2248
2556
  }
2249
2557
  });
2250
2558
  }
@@ -2254,43 +2562,43 @@ let B = class extends mt {
2254
2562
  });
2255
2563
  }
2256
2564
  };
2257
- S([
2258
- $t()
2259
- ], B.prototype, "olMap", 2);
2260
- S([
2261
- $t()
2262
- ], B.prototype, "layerCollection", 2);
2263
- S([
2264
- $t()
2265
- ], B.prototype, "layerArray", 2);
2266
- S([
2267
- $t()
2268
- ], B.prototype, "optionalLayerArray", 2);
2269
- S([
2270
- R()
2271
- ], B.prototype, "for", 2);
2272
- S([
2273
- R()
2274
- ], B.prototype, "layerIdentifier", 2);
2275
- S([
2276
- R()
2277
- ], B.prototype, "layerTitle", 2);
2278
- S([
2279
- R()
2280
- ], B.prototype, "sortBy", 2);
2281
- S([
2282
- R({ type: Array })
2283
- ], B.prototype, "layerConfig", 2);
2284
- S([
2285
- R({ type: Boolean })
2286
- ], B.prototype, "externalLayerConfig", 2);
2287
- S([
2288
- R({ type: Boolean })
2289
- ], B.prototype, "unstyled", 2);
2290
- B = S([
2565
+ x([
2566
+ wt()
2567
+ ], V.prototype, "olMap", 2);
2568
+ x([
2569
+ wt()
2570
+ ], V.prototype, "layerCollection", 2);
2571
+ x([
2572
+ wt()
2573
+ ], V.prototype, "layerArray", 2);
2574
+ x([
2575
+ wt()
2576
+ ], V.prototype, "optionalLayerArray", 2);
2577
+ x([
2578
+ M()
2579
+ ], V.prototype, "for", 2);
2580
+ x([
2581
+ M()
2582
+ ], V.prototype, "layerIdentifier", 2);
2583
+ x([
2584
+ M()
2585
+ ], V.prototype, "layerTitle", 2);
2586
+ x([
2587
+ M()
2588
+ ], V.prototype, "sortBy", 2);
2589
+ x([
2590
+ M({ type: Array })
2591
+ ], V.prototype, "layerConfig", 2);
2592
+ x([
2593
+ M({ type: Boolean })
2594
+ ], V.prototype, "externalLayerConfig", 2);
2595
+ x([
2596
+ M({ type: Boolean })
2597
+ ], V.prototype, "unstyled", 2);
2598
+ V = x([
2291
2599
  gi("eox-layercontrol")
2292
- ], B);
2293
- let q = class extends mt {
2600
+ ], V);
2601
+ let Y = class extends vt {
2294
2602
  constructor() {
2295
2603
  super(...arguments), this._configList = {};
2296
2604
  }
@@ -2316,47 +2624,50 @@ let q = class extends mt {
2316
2624
  }))) : (this._layerControlElement = this.layerControl, this._currentLayer = this.layer, this._parseConfigs(this._currentLayer));
2317
2625
  }
2318
2626
  render() {
2319
- return N`
2627
+ return L`
2320
2628
  <style>
2321
- ${Ni}
2629
+ ${Pi}
2630
+ ${!this.unstyled && Ii}
2322
2631
  </style>
2323
- ${_i(
2632
+ ${bi(
2324
2633
  this._currentLayer,
2325
- () => N`
2634
+ () => L`
2326
2635
  <div>
2327
2636
  <slot></slot>
2328
- ${this.for ? N`layer: ${this._currentLayer.get("name")}` : E}
2329
- ${we(
2637
+ ${this.for ? L`layer: ${this._currentLayer.get("name")}` : E}
2638
+ ${Ce(
2330
2639
  this.layerConfig.filter(
2331
2640
  (i) => this.for ? i !== "opacity" : !0
2332
2641
  ),
2333
2642
  (i) => i,
2334
- (i) => N`
2335
- <div>${i}</div>
2336
- <input
2337
- type="range"
2338
- min="0"
2339
- max="1"
2340
- step="0.01"
2341
- value="${Ce(this._currentLayer.getOpacity())}"
2342
- @input=${(t) => this._handleInput(t, i)}
2343
- />
2643
+ (i) => L`
2644
+ <div class="slider-control">
2645
+ <div class="slider-property">${i}</div>
2646
+ <input
2647
+ type="range"
2648
+ min="0"
2649
+ max="1"
2650
+ step="0.01"
2651
+ value="${$e(this._currentLayer.getOpacity())}"
2652
+ @input=${(t) => this._handleInput(t, i)}
2653
+ />
2654
+ </div>
2344
2655
  `
2345
2656
  )}
2346
- ${Object.keys(this._configList).length > 0 && !this.external ? N`
2657
+ ${Object.keys(this._configList).length > 0 && !this.external ? L`
2347
2658
  <details open="${this.for ? !0 : E}">
2348
2659
  <summary>Layer config</summary>
2349
2660
  <ul>
2350
- ${we(
2661
+ ${Ce(
2351
2662
  Object.keys(this._configList),
2352
2663
  (i) => i,
2353
- (i) => N` <li>
2664
+ (i) => L` <li>
2354
2665
  <div>${i}</div>
2355
2666
  <input
2356
2667
  type="range"
2357
2668
  min="${["red", "green", "blue"].includes(i) ? 1 : 2e3}"
2358
2669
  max="${["red", "green", "blue"].includes(i) ? 4 : 5e3}"
2359
- value="${Ce(
2670
+ value="${$e(
2360
2671
  // @ts-ignore
2361
2672
  this._configList[i]
2362
2673
  )}"
@@ -2373,31 +2684,34 @@ let q = class extends mt {
2373
2684
  `;
2374
2685
  }
2375
2686
  };
2376
- S([
2377
- R()
2378
- ], q.prototype, "for", 2);
2379
- S([
2380
- R({ type: Array })
2381
- ], q.prototype, "layerConfig", 2);
2382
- S([
2383
- R({ type: Object, attribute: !1 })
2384
- ], q.prototype, "layerControl", 2);
2385
- S([
2386
- R({ type: Object, attribute: !1 })
2387
- ], q.prototype, "layer", 2);
2388
- S([
2389
- R({ type: Boolean })
2390
- ], q.prototype, "external", 2);
2391
- S([
2392
- $t()
2393
- ], q.prototype, "_currentLayer", 2);
2394
- S([
2395
- $t()
2396
- ], q.prototype, "_configList", 2);
2397
- q = S([
2687
+ x([
2688
+ M()
2689
+ ], Y.prototype, "for", 2);
2690
+ x([
2691
+ M({ type: Array })
2692
+ ], Y.prototype, "layerConfig", 2);
2693
+ x([
2694
+ M({ type: Object, attribute: !1 })
2695
+ ], Y.prototype, "layerControl", 2);
2696
+ x([
2697
+ M({ type: Object, attribute: !1 })
2698
+ ], Y.prototype, "layer", 2);
2699
+ x([
2700
+ M({ type: Boolean })
2701
+ ], Y.prototype, "external", 2);
2702
+ x([
2703
+ M({ type: Boolean })
2704
+ ], Y.prototype, "unstyled", 2);
2705
+ x([
2706
+ wt()
2707
+ ], Y.prototype, "_currentLayer", 2);
2708
+ x([
2709
+ wt()
2710
+ ], Y.prototype, "_configList", 2);
2711
+ Y = x([
2398
2712
  gi("eox-layerconfig")
2399
- ], q);
2713
+ ], Y);
2400
2714
  export {
2401
- q as EOxLayerConfig,
2402
- B as EOxLayerControl
2715
+ Y as EOxLayerConfig,
2716
+ V as EOxLayerControl
2403
2717
  };