@eox/layercontrol 0.6.5 → 0.6.7

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.
@@ -40,7 +40,7 @@ const Ji = (i) => new Qi(typeof i == "string" ? i : i + "", void 0, bi), tn = (i
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
41
  */
42
42
  var be;
43
- const ue = window, Qe = ue.trustedTypes, en = Qe ? Qe.emptyScript : "", Je = ue.reactiveElementPolyfillSupport, ke = { toAttribute(i, t) {
43
+ const ce = window, Qe = ce.trustedTypes, en = Qe ? Qe.emptyScript : "", Je = ce.reactiveElementPolyfillSupport, ke = { toAttribute(i, t) {
44
44
  switch (t) {
45
45
  case Boolean:
46
46
  i = i ? en : null;
@@ -69,7 +69,7 @@ const ue = window, Qe = ue.trustedTypes, en = Qe ? Qe.emptyScript : "", Je = ue.
69
69
  }
70
70
  return e;
71
71
  } }, _i = (i, t) => t !== i && (t == t || i == i), _e = { attribute: !0, type: String, converter: ke, reflect: !1, hasChanged: _i }, Ne = "finalized";
72
- let At = class extends HTMLElement {
72
+ let xt = 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
  }
@@ -248,73 +248,73 @@ let At = class extends HTMLElement {
248
248
  firstUpdated(t) {
249
249
  }
250
250
  };
251
- At[Ne] = !0, At.elementProperties = /* @__PURE__ */ new Map(), At.elementStyles = [], At.shadowRootOptions = { mode: "open" }, Je == null || Je({ ReactiveElement: At }), ((be = ue.reactiveElementVersions) !== null && be !== void 0 ? be : ue.reactiveElementVersions = []).push("1.6.2");
251
+ xt[Ne] = !0, xt.elementProperties = /* @__PURE__ */ new Map(), xt.elementStyles = [], xt.shadowRootOptions = { mode: "open" }, Je == null || Je({ ReactiveElement: xt }), ((be = ce.reactiveElementVersions) !== null && be !== void 0 ? be : ce.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 Ee;
258
- const ce = window, Tt = ce.trustedTypes, ti = Tt ? Tt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, he = "$lit$", tt = `lit$${(Math.random() + "").slice(9)}$`, Ye = "?" + tt, nn = `<${Ye}>`, bt = document, Wt = () => bt.createComment(""), Gt = (i) => i === null || typeof i != "object" && typeof i != "function", Ei = Array.isArray, wi = (i) => Ei(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", we = `[
259
- \f\r]`, Nt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ei = /-->/g, ii = />/g, ht = RegExp(`>|${we}(?:([^\\s"'>=/]+)(${we}*=${we}*(?:[^
258
+ const ue = window, Dt = ue.trustedTypes, ti = Dt ? Dt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, he = "$lit$", tt = `lit$${(Math.random() + "").slice(9)}$`, Ye = "?" + tt, nn = `<${Ye}>`, bt = document, Xt = () => bt.createComment(""), Wt = (i) => i === null || typeof i != "object" && typeof i != "function", Ei = Array.isArray, wi = (i) => Ei(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", we = `[
259
+ \f\r]`, kt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ei = /-->/g, ii = />/g, ht = RegExp(`>|${we}(?:([^\\s"'>=/]+)(${we}*=${we}*(?:[^
260
260
  \f\r"'\`<>=]|("|')|))|$)`, "g"), ni = /'/g, ri = /"/g, xi = /^(?:script|style|textarea|title)$/i, rn = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), H = rn(1), W = Symbol.for("lit-noChange"), w = Symbol.for("lit-nothing"), oi = /* @__PURE__ */ new WeakMap(), yt = bt.createTreeWalker(bt, 129, null, !1), Ai = (i, t) => {
261
261
  const e = i.length - 1, n = [];
262
- let r, o = t === 2 ? "<svg>" : "", a = Nt;
262
+ let r, o = t === 2 ? "<svg>" : "", a = kt;
263
263
  for (let l = 0; l < e; l++) {
264
264
  const d = i[l];
265
- let p, u, h = -1, g = 0;
266
- for (; g < d.length && (a.lastIndex = g, u = a.exec(d), u !== null); )
267
- g = a.lastIndex, a === Nt ? u[1] === "!--" ? a = ei : u[1] !== void 0 ? a = ii : u[2] !== void 0 ? (xi.test(u[2]) && (r = RegExp("</" + u[2], "g")), a = ht) : u[3] !== void 0 && (a = ht) : a === ht ? u[0] === ">" ? (a = r ?? Nt, h = -1) : u[1] === void 0 ? h = -2 : (h = a.lastIndex - u[2].length, p = u[1], a = u[3] === void 0 ? ht : u[3] === '"' ? ri : ni) : a === ri || a === ni ? a = ht : a === ei || a === ii ? a = Nt : (a = ht, r = void 0);
265
+ let u, c, p = -1, g = 0;
266
+ for (; g < d.length && (a.lastIndex = g, c = a.exec(d), c !== null); )
267
+ g = a.lastIndex, a === kt ? c[1] === "!--" ? a = ei : c[1] !== void 0 ? a = ii : c[2] !== void 0 ? (xi.test(c[2]) && (r = RegExp("</" + c[2], "g")), a = ht) : c[3] !== void 0 && (a = ht) : a === ht ? c[0] === ">" ? (a = r ?? kt, p = -1) : c[1] === void 0 ? p = -2 : (p = a.lastIndex - c[2].length, u = c[1], a = c[3] === void 0 ? ht : c[3] === '"' ? ri : ni) : a === ri || a === ni ? a = ht : a === ei || a === ii ? a = kt : (a = ht, r = void 0);
268
268
  const f = a === ht && i[l + 1].startsWith("/>") ? " " : "";
269
- o += a === Nt ? d + nn : h >= 0 ? (n.push(p), d.slice(0, h) + he + d.slice(h) + tt + f) : d + tt + (h === -2 ? (n.push(void 0), l) : f);
269
+ o += a === kt ? d + nn : p >= 0 ? (n.push(u), d.slice(0, p) + he + d.slice(p) + tt + f) : d + tt + (p === -2 ? (n.push(void 0), l) : f);
270
270
  }
271
271
  const s = o + (i[e] || "<?>") + (t === 2 ? "</svg>" : "");
272
272
  if (!Array.isArray(i) || !i.hasOwnProperty("raw"))
273
273
  throw Error("invalid template strings array");
274
274
  return [ti !== void 0 ? ti.createHTML(s) : s, n];
275
275
  };
276
- class Zt {
276
+ class Gt {
277
277
  constructor({ strings: t, _$litType$: e }, n) {
278
278
  let r;
279
279
  this.parts = [];
280
280
  let o = 0, a = 0;
281
- const s = t.length - 1, l = this.parts, [d, p] = Ai(t, e);
282
- if (this.el = Zt.createElement(d, n), yt.currentNode = this.el.content, e === 2) {
283
- const u = this.el.content, h = u.firstChild;
284
- h.remove(), u.append(...h.childNodes);
281
+ const s = t.length - 1, l = this.parts, [d, u] = Ai(t, e);
282
+ if (this.el = Gt.createElement(d, n), yt.currentNode = this.el.content, e === 2) {
283
+ const c = this.el.content, p = c.firstChild;
284
+ p.remove(), c.append(...p.childNodes);
285
285
  }
286
286
  for (; (r = yt.nextNode()) !== null && l.length < s; ) {
287
287
  if (r.nodeType === 1) {
288
288
  if (r.hasAttributes()) {
289
- const u = [];
290
- for (const h of r.getAttributeNames())
291
- if (h.endsWith(he) || h.startsWith(tt)) {
292
- const g = p[a++];
293
- if (u.push(h), g !== void 0) {
289
+ const c = [];
290
+ for (const p of r.getAttributeNames())
291
+ if (p.endsWith(he) || p.startsWith(tt)) {
292
+ const g = u[a++];
293
+ if (c.push(p), g !== void 0) {
294
294
  const f = r.getAttribute(g.toLowerCase() + he).split(tt), m = /([.?@])?(.*)/.exec(g);
295
- l.push({ type: 1, index: o, name: m[2], strings: f, ctor: m[1] === "." ? $i : m[1] === "?" ? Si : m[1] === "@" ? Di : qt });
295
+ l.push({ type: 1, index: o, name: m[2], strings: f, ctor: m[1] === "." ? $i : m[1] === "?" ? Si : m[1] === "@" ? Di : Zt });
296
296
  } else
297
297
  l.push({ type: 6, index: o });
298
298
  }
299
- for (const h of u)
300
- r.removeAttribute(h);
299
+ for (const p of c)
300
+ r.removeAttribute(p);
301
301
  }
302
302
  if (xi.test(r.tagName)) {
303
- const u = r.textContent.split(tt), h = u.length - 1;
304
- if (h > 0) {
305
- r.textContent = Tt ? Tt.emptyScript : "";
306
- for (let g = 0; g < h; g++)
307
- r.append(u[g], Wt()), yt.nextNode(), l.push({ type: 2, index: ++o });
308
- r.append(u[h], Wt());
303
+ const c = r.textContent.split(tt), p = c.length - 1;
304
+ if (p > 0) {
305
+ r.textContent = Dt ? Dt.emptyScript : "";
306
+ for (let g = 0; g < p; g++)
307
+ r.append(c[g], Xt()), yt.nextNode(), l.push({ type: 2, index: ++o });
308
+ r.append(c[p], Xt());
309
309
  }
310
310
  }
311
311
  } else if (r.nodeType === 8)
312
312
  if (r.data === Ye)
313
313
  l.push({ type: 2, index: o });
314
314
  else {
315
- let u = -1;
316
- for (; (u = r.data.indexOf(tt, u + 1)) !== -1; )
317
- l.push({ type: 7, index: o }), u += tt.length - 1;
315
+ let c = -1;
316
+ for (; (c = r.data.indexOf(tt, c + 1)) !== -1; )
317
+ l.push({ type: 7, index: o }), c += tt.length - 1;
318
318
  }
319
319
  o++;
320
320
  }
@@ -329,7 +329,7 @@ function _t(i, t, e = i, n) {
329
329
  if (t === W)
330
330
  return t;
331
331
  let l = n !== void 0 ? (r = e._$Co) === null || r === void 0 ? void 0 : r[n] : e._$Cl;
332
- const d = Gt(t) ? void 0 : t._$litDirective$;
332
+ const d = Wt(t) ? void 0 : t._$litDirective$;
333
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 ? ((a = (s = e)._$Co) !== null && a !== void 0 ? a : s._$Co = [])[n] = l : e._$Cl = l), l !== void 0 && (t = _t(i, l._$AS(i, t.values), l, n)), t;
334
334
  }
335
335
  class Ci {
@@ -349,8 +349,8 @@ class Ci {
349
349
  let a = yt.nextNode(), s = 0, l = 0, d = r[0];
350
350
  for (; d !== void 0; ) {
351
351
  if (s === d.index) {
352
- let p;
353
- d.type === 2 ? p = new Lt(a, a.nextSibling, this, t) : d.type === 1 ? p = new d.ctor(a, d.name, d.strings, this, t) : d.type === 6 && (p = new Ti(a, this, t)), this._$AV.push(p), d = r[++l];
352
+ let u;
353
+ d.type === 2 ? u = new Ot(a, a.nextSibling, this, t) : d.type === 1 ? u = new d.ctor(a, d.name, d.strings, this, t) : d.type === 6 && (u = new Ti(a, this, t)), this._$AV.push(u), d = r[++l];
354
354
  }
355
355
  s !== (d == null ? void 0 : d.index) && (a = yt.nextNode(), s++);
356
356
  }
@@ -362,7 +362,7 @@ class Ci {
362
362
  n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, e), e += n.strings.length - 2) : n._$AI(t[e])), e++;
363
363
  }
364
364
  }
365
- class Lt {
365
+ class Ot {
366
366
  constructor(t, e, n, r) {
367
367
  var o;
368
368
  this.type = 2, this._$AH = w, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = r, this._$Cp = (o = r == null ? void 0 : r.isConnected) === null || o === void 0 || o;
@@ -383,7 +383,7 @@ class Lt {
383
383
  return this._$AB;
384
384
  }
385
385
  _$AI(t, e = this) {
386
- t = _t(this, t, e), Gt(t) ? t === w || t == null || t === "" ? (this._$AH !== w && this._$AR(), this._$AH = w) : t !== this._$AH && t !== W && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : wi(t) ? this.T(t) : this._(t);
386
+ t = _t(this, t, e), Wt(t) ? t === w || t == null || t === "" ? (this._$AH !== w && this._$AR(), this._$AH = w) : t !== this._$AH && t !== W && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : wi(t) ? this.T(t) : this._(t);
387
387
  }
388
388
  k(t) {
389
389
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -392,11 +392,11 @@ class Lt {
392
392
  this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
393
393
  }
394
394
  _(t) {
395
- this._$AH !== w && Gt(this._$AH) ? this._$AA.nextSibling.data = t : this.$(bt.createTextNode(t)), this._$AH = t;
395
+ this._$AH !== w && Wt(this._$AH) ? this._$AA.nextSibling.data = t : this.$(bt.createTextNode(t)), this._$AH = t;
396
396
  }
397
397
  g(t) {
398
398
  var e;
399
- const { values: n, _$litType$: r } = t, o = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = Zt.createElement(r.h, this.options)), r);
399
+ const { values: n, _$litType$: r } = t, o = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = Gt.createElement(r.h, this.options)), r);
400
400
  if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === o)
401
401
  this._$AH.v(n);
402
402
  else {
@@ -406,14 +406,14 @@ class Lt {
406
406
  }
407
407
  _$AC(t) {
408
408
  let e = oi.get(t.strings);
409
- return e === void 0 && oi.set(t.strings, e = new Zt(t)), e;
409
+ return e === void 0 && oi.set(t.strings, e = new Gt(t)), e;
410
410
  }
411
411
  T(t) {
412
412
  Ei(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 Lt(this.k(Wt()), this.k(Wt()), this, this.options)) : n = e[r], n._$AI(o), r++;
416
+ r === e.length ? e.push(n = new Ot(this.k(Xt()), this.k(Xt()), 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 Lt {
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 qt {
431
+ class Zt {
432
432
  constructor(t, e, n, r, o) {
433
433
  this.type = 1, this._$AH = w, 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 = w;
434
434
  }
@@ -442,12 +442,12 @@ class qt {
442
442
  const o = this.strings;
443
443
  let a = !1;
444
444
  if (o === void 0)
445
- t = _t(this, t, e, 0), a = !Gt(t) || t !== this._$AH && t !== W, a && (this._$AH = t);
445
+ t = _t(this, t, e, 0), a = !Wt(t) || t !== this._$AH && t !== W, a && (this._$AH = t);
446
446
  else {
447
447
  const s = t;
448
448
  let l, d;
449
449
  for (t = o[0], l = 0; l < o.length - 1; l++)
450
- d = _t(this, s[n + l], e, l), d === W && (d = this._$AH[l]), a || (a = !Gt(d) || d !== this._$AH[l]), d === w ? t = w : t !== w && (t += (d ?? "") + o[l + 1]), this._$AH[l] = d;
450
+ d = _t(this, s[n + l], e, l), d === W && (d = this._$AH[l]), a || (a = !Wt(d) || d !== this._$AH[l]), d === w ? t = w : t !== w && (t += (d ?? "") + o[l + 1]), this._$AH[l] = d;
451
451
  }
452
452
  a && !r && this.j(t);
453
453
  }
@@ -455,7 +455,7 @@ class qt {
455
455
  t === w ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
456
456
  }
457
457
  }
458
- class $i extends qt {
458
+ class $i extends Zt {
459
459
  constructor() {
460
460
  super(...arguments), this.type = 3;
461
461
  }
@@ -463,8 +463,8 @@ class $i extends qt {
463
463
  this.element[this.name] = t === w ? void 0 : t;
464
464
  }
465
465
  }
466
- const on = Tt ? Tt.emptyScript : "";
467
- class Si extends qt {
466
+ const on = Dt ? Dt.emptyScript : "";
467
+ class Si extends Zt {
468
468
  constructor() {
469
469
  super(...arguments), this.type = 4;
470
470
  }
@@ -472,7 +472,7 @@ class Si extends qt {
472
472
  t && t !== w ? this.element.setAttribute(this.name, on) : this.element.removeAttribute(this.name);
473
473
  }
474
474
  }
475
- class Di extends qt {
475
+ class Di extends Zt {
476
476
  constructor(t, e, n, r, o) {
477
477
  super(t, e, n, r, o), this.type = 5;
478
478
  }
@@ -499,15 +499,15 @@ class Ti {
499
499
  _t(this, t);
500
500
  }
501
501
  }
502
- const an = { O: he, P: tt, A: Ye, C: 1, M: Ai, L: Ci, D: wi, R: _t, I: Lt, V: qt, H: Si, N: Di, U: $i, F: Ti }, ai = ce.litHtmlPolyfillSupport;
503
- ai == null || ai(Zt, Lt), ((Ee = ce.litHtmlVersions) !== null && Ee !== void 0 ? Ee : ce.litHtmlVersions = []).push("2.7.4");
502
+ const an = { O: he, P: tt, A: Ye, C: 1, M: Ai, L: Ci, D: wi, R: _t, I: Ot, V: Zt, H: Si, N: Di, U: $i, F: Ti }, ai = ue.litHtmlPolyfillSupport;
503
+ ai == null || ai(Gt, Ot), ((Ee = ue.litHtmlVersions) !== null && Ee !== void 0 ? Ee : ue.litHtmlVersions = []).push("2.7.4");
504
504
  const sn = (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
507
  let a = o._$litPart$;
508
508
  if (a === void 0) {
509
509
  const s = (r = e == null ? void 0 : e.renderBefore) !== null && r !== void 0 ? r : null;
510
- o._$litPart$ = a = new Lt(t.insertBefore(Wt(), s), s, void 0, e ?? {});
510
+ o._$litPart$ = a = new Ot(t.insertBefore(Xt(), s), s, void 0, e ?? {});
511
511
  }
512
512
  return a._$AI(i), a;
513
513
  };
@@ -517,7 +517,7 @@ const sn = (i, t, e) => {
517
517
  * SPDX-License-Identifier: BSD-3-Clause
518
518
  */
519
519
  var xe, Ae;
520
- let St = class extends At {
520
+ let $t = class extends xt {
521
521
  constructor() {
522
522
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
523
523
  }
@@ -542,9 +542,9 @@ let St = class extends At {
542
542
  return W;
543
543
  }
544
544
  };
545
- St.finalized = !0, St._$litElement$ = !0, (xe = globalThis.litElementHydrateSupport) === null || xe === void 0 || xe.call(globalThis, { LitElement: St });
545
+ $t.finalized = !0, $t._$litElement$ = !0, (xe = globalThis.litElementHydrateSupport) === null || xe === void 0 || xe.call(globalThis, { LitElement: $t });
546
546
  const si = globalThis.litElementPolyfillSupport;
547
- si == null || si({ LitElement: St });
547
+ si == null || si({ LitElement: $t });
548
548
  ((Ae = globalThis.litElementVersions) !== null && Ae !== void 0 ? Ae : globalThis.litElementVersions = []).push("3.3.2");
549
549
  /**
550
550
  * @license
@@ -571,7 +571,7 @@ const ln = (i, t) => t.kind === "method" && t.descriptor && !("value" in t.descr
571
571
  } }, dn = (i, t, e) => {
572
572
  t.constructor.createProperty(e, i);
573
573
  };
574
- function N(i) {
574
+ function k(i) {
575
575
  return (t, e) => e !== void 0 ? dn(i, t, e) : ln(i, t);
576
576
  }
577
577
  /**
@@ -579,8 +579,8 @@ function N(i) {
579
579
  * Copyright 2017 Google LLC
580
580
  * SPDX-License-Identifier: BSD-3-Clause
581
581
  */
582
- function Et(i) {
583
- return N({ ...i, state: !0 });
582
+ function qt(i) {
583
+ return k({ ...i, state: !0 });
584
584
  }
585
585
  /**
586
586
  * @license
@@ -616,12 +616,12 @@ class Hi {
616
616
  * Copyright 2020 Google LLC
617
617
  * SPDX-License-Identifier: BSD-3-Clause
618
618
  */
619
- const { I: un } = an, cn = (i) => i.strings === void 0, li = () => document.createComment(""), Vt = (i, t, e) => {
619
+ const { I: cn } = an, un = (i) => i.strings === void 0, li = () => document.createComment(""), Nt = (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
623
  const a = r.insertBefore(li(), o), s = r.insertBefore(li(), o);
624
- e = new un(a, s, i, i.options);
624
+ e = new cn(a, s, i, i.options);
625
625
  } else {
626
626
  const a = e._$AB.nextSibling, s = e._$AM, l = s !== i;
627
627
  if (l) {
@@ -631,8 +631,8 @@ const { I: un } = an, cn = (i) => i.strings === void 0, li = () => document.crea
631
631
  if (a !== o || l) {
632
632
  let d = e._$AA;
633
633
  for (; d !== a; ) {
634
- const p = d.nextSibling;
635
- r.insertBefore(d, o), d = p;
634
+ const u = d.nextSibling;
635
+ r.insertBefore(d, o), d = u;
636
636
  }
637
637
  }
638
638
  }
@@ -680,40 +680,40 @@ const di = (i, t, e) => {
680
680
  if (!Array.isArray(o))
681
681
  return this.ht = s, a;
682
682
  const l = (r = this.ht) !== null && r !== void 0 ? r : this.ht = [], d = [];
683
- let p, u, h = 0, g = o.length - 1, f = 0, m = a.length - 1;
684
- for (; h <= g && f <= m; )
685
- if (o[h] === null)
686
- h++;
683
+ let u, c, p = 0, g = o.length - 1, f = 0, m = a.length - 1;
684
+ for (; p <= g && f <= m; )
685
+ if (o[p] === null)
686
+ p++;
687
687
  else if (o[g] === null)
688
688
  g--;
689
- else if (l[h] === s[f])
690
- d[f] = pt(o[h], a[f]), h++, f++;
689
+ else if (l[p] === s[f])
690
+ d[f] = pt(o[p], a[f]), p++, f++;
691
691
  else if (l[g] === s[m])
692
692
  d[m] = pt(o[g], a[m]), g--, m--;
693
- else if (l[h] === s[m])
694
- d[m] = pt(o[h], a[m]), Vt(i, d[m + 1], o[h]), h++, m--;
693
+ else if (l[p] === s[m])
694
+ d[m] = pt(o[p], a[m]), Nt(i, d[m + 1], o[p]), p++, m--;
695
695
  else if (l[g] === s[f])
696
- d[f] = pt(o[g], a[f]), Vt(i, o[h], o[g]), g--, f++;
697
- else if (p === void 0 && (p = di(s, f, m), u = di(l, h, g)), p.has(l[h]))
698
- if (p.has(l[g])) {
699
- const S = u.get(s[f]), V = S !== void 0 ? o[S] : null;
700
- if (V === null) {
701
- const O = Vt(i, o[h]);
696
+ d[f] = pt(o[g], a[f]), Nt(i, o[p], o[g]), g--, f++;
697
+ else if (u === void 0 && (u = di(s, f, m), c = di(l, p, g)), u.has(l[p]))
698
+ if (u.has(l[g])) {
699
+ const $ = c.get(s[f]), N = $ !== void 0 ? o[$] : null;
700
+ if (N === null) {
701
+ const O = Nt(i, o[p]);
702
702
  pt(O, a[f]), d[f] = O;
703
703
  } else
704
- d[f] = pt(V, a[f]), Vt(i, o[h], V), o[S] = null;
704
+ d[f] = pt(N, a[f]), Nt(i, o[p], N), o[$] = null;
705
705
  f++;
706
706
  } else
707
707
  $e(o[g]), g--;
708
708
  else
709
- $e(o[h]), h++;
709
+ $e(o[p]), p++;
710
710
  for (; f <= m; ) {
711
- const S = Vt(i, d[m + 1]);
712
- pt(S, a[f]), d[f++] = S;
711
+ const $ = Nt(i, d[m + 1]);
712
+ pt($, a[f]), d[f++] = $;
713
713
  }
714
- for (; h <= g; ) {
715
- const S = o[h++];
716
- S !== null && $e(S);
714
+ for (; p <= g; ) {
715
+ const $ = o[p++];
716
+ $ !== null && $e($);
717
717
  }
718
718
  return this.ht = s, Ii(i, d), W;
719
719
  }
@@ -727,7 +727,7 @@ const Be = Li(class extends Hi {
727
727
  constructor(i) {
728
728
  if (super(i), i.type !== mt.PROPERTY && i.type !== mt.ATTRIBUTE && i.type !== mt.BOOLEAN_ATTRIBUTE)
729
729
  throw Error("The `live` directive is not allowed on child or event bindings");
730
- if (!cn(i))
730
+ if (!un(i))
731
731
  throw Error("`live` bindings can only contain a single expression");
732
732
  }
733
733
  render(i) {
@@ -753,7 +753,7 @@ const Be = Li(class extends Hi {
753
753
  * Copyright 2021 Google LLC
754
754
  * SPDX-License-Identifier: BSD-3-Clause
755
755
  */
756
- function Pi(i, t, e) {
756
+ function Mi(i, t, e) {
757
757
  return i ? t() : e == null ? void 0 : e();
758
758
  }
759
759
  /**!
@@ -762,7 +762,7 @@ function Pi(i, t, e) {
762
762
  * @author owenm <owen23355@gmail.com>
763
763
  * @license MIT
764
764
  */
765
- function ui(i, t) {
765
+ function ci(i, t) {
766
766
  var e = Object.keys(i);
767
767
  if (Object.getOwnPropertySymbols) {
768
768
  var n = Object.getOwnPropertySymbols(i);
@@ -775,9 +775,9 @@ function ui(i, t) {
775
775
  function K(i) {
776
776
  for (var t = 1; t < arguments.length; t++) {
777
777
  var e = arguments[t] != null ? arguments[t] : {};
778
- t % 2 ? ui(Object(e), !0).forEach(function(n) {
778
+ t % 2 ? ci(Object(e), !0).forEach(function(n) {
779
779
  fn(i, n, e[n]);
780
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(e)) : ui(Object(e)).forEach(function(n) {
780
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(e)) : ci(Object(e)).forEach(function(n) {
781
781
  Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(e, n));
782
782
  });
783
783
  }
@@ -833,7 +833,7 @@ function et(i) {
833
833
  if (typeof window < "u" && window.navigator)
834
834
  return !!/* @__PURE__ */ navigator.userAgent.match(i);
835
835
  }
836
- var nt = et(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Kt = et(/Edge/i), ci = et(/firefox/i), Ut = et(/safari/i) && !et(/chrome/i) && !et(/android/i), Mi = et(/iP(ad|od|hone)/i), ki = et(/chrome/i) && et(/android/i), Ni = {
836
+ var nt = et(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Kt = et(/Edge/i), ui = et(/firefox/i), Ft = et(/safari/i) && !et(/chrome/i) && !et(/android/i), Pi = et(/iP(ad|od|hone)/i), ki = et(/chrome/i) && et(/android/i), Ni = {
837
837
  capture: !1,
838
838
  passive: !1
839
839
  };
@@ -875,7 +875,7 @@ function Z(i, t, e, n) {
875
875
  return null;
876
876
  }
877
877
  var hi = /\s+/g;
878
- function F(i, t, e) {
878
+ function R(i, t, e) {
879
879
  if (i && t)
880
880
  if (i.classList)
881
881
  i.classList[e ? "add" : "remove"](t);
@@ -892,7 +892,7 @@ function v(i, t, e) {
892
892
  !(t in n) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), n[t] = e + (typeof e == "string" ? "" : "px");
893
893
  }
894
894
  }
895
- function Dt(i, t) {
895
+ function St(i, t) {
896
896
  var e = "";
897
897
  if (typeof i == "string")
898
898
  e = i;
@@ -920,26 +920,26 @@ function q() {
920
920
  }
921
921
  function T(i, t, e, n, r) {
922
922
  if (!(!i.getBoundingClientRect && i !== window)) {
923
- var o, a, s, l, d, p, u;
924
- if (i !== window && i.parentNode && i !== q() ? (o = i.getBoundingClientRect(), a = o.top, s = o.left, l = o.bottom, d = o.right, p = o.height, u = o.width) : (a = 0, s = 0, l = window.innerHeight, d = window.innerWidth, p = window.innerHeight, u = window.innerWidth), (t || e) && i !== window && (r = r || i.parentNode, !nt))
923
+ var o, a, s, l, d, u, c;
924
+ if (i !== window && i.parentNode && i !== q() ? (o = i.getBoundingClientRect(), a = o.top, s = o.left, l = o.bottom, d = o.right, u = o.height, c = o.width) : (a = 0, s = 0, l = window.innerHeight, d = window.innerWidth, u = window.innerHeight, c = window.innerWidth), (t || e) && i !== window && (r = r || i.parentNode, !nt))
925
925
  do
926
926
  if (r && r.getBoundingClientRect && (v(r, "transform") !== "none" || e && v(r, "position") !== "static")) {
927
- var h = r.getBoundingClientRect();
928
- a -= h.top + parseInt(v(r, "border-top-width")), s -= h.left + parseInt(v(r, "border-left-width")), l = a + o.height, d = s + o.width;
927
+ var p = r.getBoundingClientRect();
928
+ a -= p.top + parseInt(v(r, "border-top-width")), s -= p.left + parseInt(v(r, "border-left-width")), l = a + o.height, d = s + o.width;
929
929
  break;
930
930
  }
931
931
  while (r = r.parentNode);
932
932
  if (n && i !== window) {
933
- var g = Dt(r || i), f = g && g.a, m = g && g.d;
934
- g && (a /= m, s /= f, u /= f, p /= m, l = a + p, d = s + u);
933
+ var g = St(r || i), f = g && g.a, m = g && g.d;
934
+ g && (a /= m, s /= f, c /= f, u /= m, l = a + u, d = s + c);
935
935
  }
936
936
  return {
937
937
  top: a,
938
938
  left: s,
939
939
  bottom: l,
940
940
  right: d,
941
- width: u,
942
- height: p
941
+ width: c,
942
+ height: u
943
943
  };
944
944
  }
945
945
  }
@@ -954,7 +954,7 @@ function pi(i, t, e) {
954
954
  }
955
955
  return !1;
956
956
  }
957
- function Ot(i, t, e, n) {
957
+ function Tt(i, t, e, n) {
958
958
  for (var r = 0, o = 0, a = i.children; o < a.length; ) {
959
959
  if (a[o].style.display !== "none" && a[o] !== y.ghost && (n || a[o] !== y.dragged) && Z(a[o], e.draggable, i, !1)) {
960
960
  if (r === t)
@@ -970,7 +970,7 @@ function Xe(i, t) {
970
970
  e = e.previousElementSibling;
971
971
  return e || null;
972
972
  }
973
- function j(i, t) {
973
+ function z(i, t) {
974
974
  var e = 0;
975
975
  if (!i || !i.parentNode)
976
976
  return -1;
@@ -982,7 +982,7 @@ function fi(i) {
982
982
  var t = 0, e = 0, n = q();
983
983
  if (i)
984
984
  do {
985
- var r = Dt(i), o = r.a, a = r.d;
985
+ var r = St(i), o = r.a, a = r.d;
986
986
  t += i.scrollLeft * o, e += i.scrollTop * a;
987
987
  } while (i !== n && (i = i.parentNode));
988
988
  return [t, e];
@@ -1023,19 +1023,19 @@ function _n(i, t) {
1023
1023
  function Se(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
- var zt;
1026
+ var Ut;
1027
1027
  function Bi(i, t) {
1028
1028
  return function() {
1029
- if (!zt) {
1029
+ if (!Ut) {
1030
1030
  var e = arguments, n = this;
1031
- e.length === 1 ? i.call(n, e[0]) : i.apply(n, e), zt = setTimeout(function() {
1032
- zt = void 0;
1031
+ e.length === 1 ? i.call(n, e[0]) : i.apply(n, e), Ut = setTimeout(function() {
1032
+ Ut = void 0;
1033
1033
  }, t);
1034
1034
  }
1035
1035
  };
1036
1036
  }
1037
1037
  function En() {
1038
- clearTimeout(zt), zt = void 0;
1038
+ clearTimeout(Ut), Ut = void 0;
1039
1039
  }
1040
1040
  function Ri(i, t, e) {
1041
1041
  i.scrollLeft += t, i.scrollTop += e;
@@ -1044,7 +1044,7 @@ function Fi(i) {
1044
1044
  var t = window.Polymer, e = window.jQuery || window.Zepto;
1045
1045
  return t && t.dom ? t.dom(i).cloneNode(!0) : e ? e(i).clone(!0)[0] : i.cloneNode(!0);
1046
1046
  }
1047
- var z = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
1047
+ var U = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
1048
1048
  function wn() {
1049
1049
  var i = [], t;
1050
1050
  return {
@@ -1059,7 +1059,7 @@ function wn() {
1059
1059
  });
1060
1060
  var o = K({}, i[i.length - 1].rect);
1061
1061
  if (r.thisAnimationDuration) {
1062
- var a = Dt(r, !0);
1062
+ var a = St(r, !0);
1063
1063
  a && (o.top -= a.f, o.left -= a.e);
1064
1064
  }
1065
1065
  r.fromRect = o;
@@ -1083,9 +1083,9 @@ function wn() {
1083
1083
  }
1084
1084
  var o = !1, a = 0;
1085
1085
  i.forEach(function(s) {
1086
- var l = 0, d = s.target, p = d.fromRect, u = T(d), h = d.prevFromRect, g = d.prevToRect, f = s.rect, m = Dt(d, !0);
1087
- m && (u.top -= m.f, u.left -= m.e), d.toRect = u, d.thisAnimationDuration && Se(h, u) && !Se(p, u) && // Make sure animatingRect is on line between toRect & fromRect
1088
- (f.top - u.top) / (f.left - u.left) === (p.top - u.top) / (p.left - u.left) && (l = An(f, h, g, r.options)), Se(u, p) || (d.prevFromRect = p, d.prevToRect = u, l || (l = r.options.animation), r.animate(d, f, u, l)), l && (o = !0, a = Math.max(a, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
1086
+ var l = 0, d = s.target, u = d.fromRect, c = T(d), p = d.prevFromRect, g = d.prevToRect, f = s.rect, m = St(d, !0);
1087
+ m && (c.top -= m.f, c.left -= m.e), d.toRect = c, d.thisAnimationDuration && Se(p, c) && !Se(u, c) && // Make sure animatingRect is on line between toRect & fromRect
1088
+ (f.top - c.top) / (f.left - c.left) === (u.top - c.top) / (u.left - c.left) && (l = An(f, p, g, r.options)), Se(c, u) || (d.prevFromRect = u, d.prevToRect = c, l || (l = r.options.animation), r.animate(d, f, c, l)), l && (o = !0, a = Math.max(a, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
1089
1089
  d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
1090
1090
  }, l), d.thisAnimationDuration = l);
1091
1091
  }), clearTimeout(t), o ? t = setTimeout(function() {
@@ -1095,8 +1095,8 @@ function wn() {
1095
1095
  animate: function(n, r, o, a) {
1096
1096
  if (a) {
1097
1097
  v(n, "transition", ""), v(n, "transform", "");
1098
- var s = Dt(this.el), l = s && s.a, d = s && s.d, p = (r.left - o.left) / (l || 1), u = (r.top - o.top) / (d || 1);
1099
- n.animatingX = !!p, n.animatingY = !!u, v(n, "transform", "translate3d(" + p + "px," + u + "px,0)"), this.forRepaintDummy = xn(n), v(n, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
1098
+ var s = St(this.el), l = s && s.a, d = s && s.d, u = (r.left - o.left) / (l || 1), c = (r.top - o.top) / (d || 1);
1099
+ n.animatingX = !!u, n.animatingY = !!c, v(n, "transform", "translate3d(" + u + "px," + c + "px,0)"), this.forRepaintDummy = xn(n), v(n, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
1100
1100
  v(n, "transition", ""), v(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
1101
1101
  }, a);
1102
1102
  }
@@ -1109,16 +1109,16 @@ function xn(i) {
1109
1109
  function An(i, t, e, n) {
1110
1110
  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;
1111
1111
  }
1112
- var wt = [], De = {
1112
+ var Et = [], De = {
1113
1113
  initializeByDefault: !0
1114
1114
  }, Qt = {
1115
1115
  mount: function(t) {
1116
1116
  for (var e in De)
1117
1117
  De.hasOwnProperty(e) && !(e in t) && (t[e] = De[e]);
1118
- wt.forEach(function(n) {
1118
+ Et.forEach(function(n) {
1119
1119
  if (n.pluginName === t.pluginName)
1120
1120
  throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
1121
- }), wt.push(t);
1121
+ }), Et.push(t);
1122
1122
  },
1123
1123
  pluginEvent: function(t, e, n) {
1124
1124
  var r = this;
@@ -1126,7 +1126,7 @@ var wt = [], De = {
1126
1126
  r.eventCanceled = !0;
1127
1127
  };
1128
1128
  var o = t + "Global";
1129
- wt.forEach(function(a) {
1129
+ Et.forEach(function(a) {
1130
1130
  e[a.pluginName] && (e[a.pluginName][o] && e[a.pluginName][o](K({
1131
1131
  sortable: e
1132
1132
  }, n)), e.options[a.pluginName] && e[a.pluginName][t] && e[a.pluginName][t](K({
@@ -1135,7 +1135,7 @@ var wt = [], De = {
1135
1135
  });
1136
1136
  },
1137
1137
  initializePlugins: function(t, e, n, r) {
1138
- wt.forEach(function(s) {
1138
+ Et.forEach(function(s) {
1139
1139
  var l = s.pluginName;
1140
1140
  if (!(!t.options[l] && !s.initializeByDefault)) {
1141
1141
  var d = new s(t, e, t.options);
@@ -1150,35 +1150,35 @@ var wt = [], De = {
1150
1150
  },
1151
1151
  getEventProperties: function(t, e) {
1152
1152
  var n = {};
1153
- return wt.forEach(function(r) {
1153
+ return Et.forEach(function(r) {
1154
1154
  typeof r.eventProperties == "function" && it(n, r.eventProperties.call(e[r.pluginName], t));
1155
1155
  }), n;
1156
1156
  },
1157
1157
  modifyOption: function(t, e, n) {
1158
1158
  var r;
1159
- return wt.forEach(function(o) {
1159
+ return Et.forEach(function(o) {
1160
1160
  t[o.pluginName] && o.optionListeners && typeof o.optionListeners[e] == "function" && (r = o.optionListeners[e].call(t[o.pluginName], n));
1161
1161
  }), r;
1162
1162
  }
1163
1163
  };
1164
1164
  function Cn(i) {
1165
- var t = i.sortable, e = i.rootEl, n = i.name, r = i.targetEl, o = i.cloneEl, a = i.toEl, s = i.fromEl, l = i.oldIndex, d = i.newIndex, p = i.oldDraggableIndex, u = i.newDraggableIndex, h = i.originalEvent, g = i.putSortable, f = i.extraEventProperties;
1166
- if (t = t || e && e[z], !!t) {
1167
- var m, S = t.options, V = "on" + n.charAt(0).toUpperCase() + n.substr(1);
1165
+ var t = i.sortable, e = i.rootEl, n = i.name, r = i.targetEl, o = i.cloneEl, a = i.toEl, s = i.fromEl, l = i.oldIndex, d = i.newIndex, u = i.oldDraggableIndex, c = i.newDraggableIndex, p = i.originalEvent, g = i.putSortable, f = i.extraEventProperties;
1166
+ if (t = t || e && e[U], !!t) {
1167
+ var m, $ = t.options, N = "on" + n.charAt(0).toUpperCase() + n.substr(1);
1168
1168
  window.CustomEvent && !nt && !Kt ? m = new CustomEvent(n, {
1169
1169
  bubbles: !0,
1170
1170
  cancelable: !0
1171
- }) : (m = document.createEvent("Event"), m.initEvent(n, !0, !0)), m.to = a || e, m.from = s || e, m.item = r || e, m.clone = o, m.oldIndex = l, m.newIndex = d, m.oldDraggableIndex = p, m.newDraggableIndex = u, m.originalEvent = h, m.pullMode = g ? g.lastPutMode : void 0;
1171
+ }) : (m = document.createEvent("Event"), m.initEvent(n, !0, !0)), m.to = a || e, m.from = s || e, m.item = r || e, m.clone = o, m.oldIndex = l, m.newIndex = d, m.oldDraggableIndex = u, m.newDraggableIndex = c, m.originalEvent = p, m.pullMode = g ? g.lastPutMode : void 0;
1172
1172
  var O = K(K({}, f), Qt.getEventProperties(n, t));
1173
1173
  for (var Y in O)
1174
1174
  m[Y] = O[Y];
1175
- e && e.dispatchEvent(m), S[V] && S[V].call(t, m);
1175
+ e && e.dispatchEvent(m), $[N] && $[N].call(t, m);
1176
1176
  }
1177
1177
  }
1178
- var $n = ["evt"], M = function(t, e) {
1178
+ var $n = ["evt"], P = function(t, e) {
1179
1179
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = mn(n, $n);
1180
1180
  Qt.pluginEvent.bind(y)(t, e, K({
1181
- dragEl: c,
1181
+ dragEl: h,
1182
1182
  parentEl: C,
1183
1183
  ghostEl: b,
1184
1184
  rootEl: x,
@@ -1186,13 +1186,13 @@ var $n = ["evt"], M = function(t, e) {
1186
1186
  lastDownEl: ae,
1187
1187
  cloneEl: A,
1188
1188
  cloneHidden: st,
1189
- dragStarted: Bt,
1189
+ dragStarted: Vt,
1190
1190
  putSortable: L,
1191
1191
  activeSortable: y.active,
1192
1192
  originalEvent: r,
1193
- oldIndex: $t,
1194
- oldDraggableIndex: jt,
1195
- newIndex: U,
1193
+ oldIndex: Ct,
1194
+ oldDraggableIndex: zt,
1195
+ newIndex: F,
1196
1196
  newDraggableIndex: at,
1197
1197
  hideGhostForTarget: Yi,
1198
1198
  unhideGhostForTarget: Xi,
@@ -1203,7 +1203,7 @@ var $n = ["evt"], M = function(t, e) {
1203
1203
  st = !1;
1204
1204
  },
1205
1205
  dispatchSortableEvent: function(s) {
1206
- P({
1206
+ M({
1207
1207
  sortable: e,
1208
1208
  name: s,
1209
1209
  originalEvent: r
@@ -1211,19 +1211,19 @@ var $n = ["evt"], M = function(t, e) {
1211
1211
  }
1212
1212
  }, o));
1213
1213
  };
1214
- function P(i) {
1214
+ function M(i) {
1215
1215
  Cn(K({
1216
1216
  putSortable: L,
1217
1217
  cloneEl: A,
1218
- targetEl: c,
1218
+ targetEl: h,
1219
1219
  rootEl: x,
1220
- oldIndex: $t,
1221
- oldDraggableIndex: jt,
1222
- newIndex: U,
1220
+ oldIndex: Ct,
1221
+ oldDraggableIndex: zt,
1222
+ newIndex: F,
1223
1223
  newDraggableIndex: at
1224
1224
  }, i));
1225
1225
  }
1226
- var c, C, b, x, vt, ae, A, st, $t, U, jt, at, te, L, Ct = !1, fe = !1, ge = [], ft, X, Te, Oe, gi, mi, Bt, xt, Yt, Xt = !1, ee = !1, se, I, Le = [], Re = !1, me = [], ye = typeof document < "u", ie = Mi, vi = Kt || nt ? "cssFloat" : "float", Sn = ye && !ki && !Mi && "draggable" in document.createElement("div"), Ui = function() {
1226
+ var h, C, b, x, vt, ae, A, st, Ct, F, zt, at, te, L, At = !1, fe = !1, ge = [], ft, X, Te, Oe, gi, mi, Vt, wt, jt, Yt = !1, ee = !1, se, I, Le = [], Re = !1, me = [], ye = typeof document < "u", ie = Pi, vi = Kt || nt ? "cssFloat" : "float", Sn = ye && !ki && !Pi && "draggable" in document.createElement("div"), Ui = function() {
1227
1227
  if (ye) {
1228
1228
  if (nt)
1229
1229
  return !1;
@@ -1231,23 +1231,23 @@ var c, C, b, x, vt, ae, A, st, $t, U, jt, at, te, L, Ct = !1, fe = !1, ge = [],
1231
1231
  return i.style.cssText = "pointer-events:auto", i.style.pointerEvents === "auto";
1232
1232
  }
1233
1233
  }(), zi = function(t, e) {
1234
- var n = v(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = Ot(t, 0, e), a = Ot(t, 1, e), s = o && v(o), l = a && v(a), d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + T(o).width, p = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + T(a).width;
1234
+ var n = v(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = Tt(t, 0, e), a = Tt(t, 1, e), s = o && v(o), l = a && v(a), d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + T(o).width, u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + T(a).width;
1235
1235
  if (n.display === "flex")
1236
1236
  return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
1237
1237
  if (n.display === "grid")
1238
1238
  return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
1239
1239
  if (o && s.float && s.float !== "none") {
1240
- var u = s.float === "left" ? "left" : "right";
1241
- return a && (l.clear === "both" || l.clear === u) ? "vertical" : "horizontal";
1240
+ var c = s.float === "left" ? "left" : "right";
1241
+ return a && (l.clear === "both" || l.clear === c) ? "vertical" : "horizontal";
1242
1242
  }
1243
- return o && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || d >= r && n[vi] === "none" || a && n[vi] === "none" && d + p > r) ? "vertical" : "horizontal";
1243
+ return o && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || d >= r && n[vi] === "none" || a && n[vi] === "none" && d + u > r) ? "vertical" : "horizontal";
1244
1244
  }, Dn = function(t, e, n) {
1245
1245
  var r = n ? t.left : t.top, o = n ? t.right : t.bottom, a = n ? t.width : t.height, s = n ? e.left : e.top, l = n ? e.right : e.bottom, d = n ? e.width : e.height;
1246
1246
  return r === s || o === l || r + a / 2 === s + d / 2;
1247
1247
  }, Tn = function(t, e) {
1248
1248
  var n;
1249
1249
  return ge.some(function(r) {
1250
- var o = r[z].options.emptyInsertThreshold;
1250
+ var o = r[U].options.emptyInsertThreshold;
1251
1251
  if (!(!o || Xe(r))) {
1252
1252
  var a = T(r), s = t >= a.left - o && t <= a.right + o, l = e >= a.top - o && e <= a.bottom + o;
1253
1253
  if (s && l)
@@ -1256,18 +1256,18 @@ var c, C, b, x, vt, ae, A, st, $t, U, jt, at, te, L, Ct = !1, fe = !1, ge = [],
1256
1256
  }), n;
1257
1257
  }, ji = function(t) {
1258
1258
  function e(o, a) {
1259
- return function(s, l, d, p) {
1260
- var u = s.options.group.name && l.options.group.name && s.options.group.name === l.options.group.name;
1261
- if (o == null && (a || u))
1259
+ return function(s, l, d, u) {
1260
+ var c = s.options.group.name && l.options.group.name && s.options.group.name === l.options.group.name;
1261
+ if (o == null && (a || c))
1262
1262
  return !0;
1263
1263
  if (o == null || o === !1)
1264
1264
  return !1;
1265
1265
  if (a && o === "clone")
1266
1266
  return o;
1267
1267
  if (typeof o == "function")
1268
- return e(o(s, l, d, p), a)(s, l, d, p);
1269
- var h = (a ? s : l).options.group.name;
1270
- return o === !0 || typeof o == "string" && o === h || o.join && o.indexOf(h) > -1;
1268
+ return e(o(s, l, d, u), a)(s, l, d, u);
1269
+ var p = (a ? s : l).options.group.name;
1270
+ return o === !0 || typeof o == "string" && o === p || o.join && o.indexOf(p) > -1;
1271
1271
  };
1272
1272
  }
1273
1273
  var n = {}, r = t.group;
@@ -1284,23 +1284,23 @@ ye && !ki && document.addEventListener("click", function(i) {
1284
1284
  return i.preventDefault(), i.stopPropagation && i.stopPropagation(), i.stopImmediatePropagation && i.stopImmediatePropagation(), fe = !1, !1;
1285
1285
  }, !0);
1286
1286
  var gt = function(t) {
1287
- if (c) {
1287
+ if (h) {
1288
1288
  t = t.touches ? t.touches[0] : t;
1289
1289
  var e = Tn(t.clientX, t.clientY);
1290
1290
  if (e) {
1291
1291
  var n = {};
1292
1292
  for (var r in t)
1293
1293
  t.hasOwnProperty(r) && (n[r] = t[r]);
1294
- n.target = n.rootEl = e, n.preventDefault = void 0, n.stopPropagation = void 0, e[z]._onDragOver(n);
1294
+ n.target = n.rootEl = e, n.preventDefault = void 0, n.stopPropagation = void 0, e[U]._onDragOver(n);
1295
1295
  }
1296
1296
  }
1297
1297
  }, On = function(t) {
1298
- c && c.parentNode[z]._isOutsideThisEl(t.target);
1298
+ h && h.parentNode[U]._isOutsideThisEl(t.target);
1299
1299
  };
1300
1300
  function y(i, t) {
1301
1301
  if (!(i && i.nodeType && i.nodeType === 1))
1302
1302
  throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));
1303
- this.el = i, this.options = t = it({}, t), i[z] = this;
1303
+ this.el = i, this.options = t = it({}, t), i[U] = this;
1304
1304
  var e = {
1305
1305
  group: null,
1306
1306
  sort: !0,
@@ -1343,7 +1343,7 @@ function y(i, t) {
1343
1343
  x: 0,
1344
1344
  y: 0
1345
1345
  },
1346
- supportPointer: y.supportPointer !== !1 && "PointerEvent" in window && !Ut,
1346
+ supportPointer: y.supportPointer !== !1 && "PointerEvent" in window && !Ft,
1347
1347
  emptyInsertThreshold: 5
1348
1348
  };
1349
1349
  Qt.initializePlugins(this, i, e);
@@ -1358,42 +1358,42 @@ y.prototype = /** @lends Sortable.prototype */
1358
1358
  {
1359
1359
  constructor: y,
1360
1360
  _isOutsideThisEl: function(t) {
1361
- !this.el.contains(t) && t !== this.el && (xt = null);
1361
+ !this.el.contains(t) && t !== this.el && (wt = null);
1362
1362
  },
1363
1363
  _getDirection: function(t, e) {
1364
- return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, c) : this.options.direction;
1364
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, h) : this.options.direction;
1365
1365
  },
1366
1366
  _onTapStart: function(t) {
1367
1367
  if (t.cancelable) {
1368
- var e = this, n = this.el, r = this.options, o = r.preventOnFilter, a = t.type, s = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (s || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, p = r.filter;
1369
- if (Vn(n), !c && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && Ut && l && l.tagName.toUpperCase() === "SELECT") && (l = Z(l, r.draggable, n, !1), !(l && l.animated) && ae !== l)) {
1370
- if ($t = j(l), jt = j(l, r.draggable), typeof p == "function") {
1371
- if (p.call(this, t, l, this)) {
1372
- P({
1368
+ var e = this, n = this.el, r = this.options, o = r.preventOnFilter, a = t.type, s = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (s || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, u = r.filter;
1369
+ if (Vn(n), !h && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && Ft && l && l.tagName.toUpperCase() === "SELECT") && (l = Z(l, r.draggable, n, !1), !(l && l.animated) && ae !== l)) {
1370
+ if (Ct = z(l), zt = z(l, r.draggable), typeof u == "function") {
1371
+ if (u.call(this, t, l, this)) {
1372
+ M({
1373
1373
  sortable: e,
1374
1374
  rootEl: d,
1375
1375
  name: "filter",
1376
1376
  targetEl: l,
1377
1377
  toEl: n,
1378
1378
  fromEl: n
1379
- }), M("filter", e, {
1379
+ }), P("filter", e, {
1380
1380
  evt: t
1381
1381
  }), o && t.cancelable && t.preventDefault();
1382
1382
  return;
1383
1383
  }
1384
- } else if (p && (p = p.split(",").some(function(u) {
1385
- if (u = Z(d, u.trim(), n, !1), u)
1386
- return P({
1384
+ } else if (u && (u = u.split(",").some(function(c) {
1385
+ if (c = Z(d, c.trim(), n, !1), c)
1386
+ return M({
1387
1387
  sortable: e,
1388
- rootEl: u,
1388
+ rootEl: c,
1389
1389
  name: "filter",
1390
1390
  targetEl: l,
1391
1391
  fromEl: n,
1392
1392
  toEl: n
1393
- }), M("filter", e, {
1393
+ }), P("filter", e, {
1394
1394
  evt: t
1395
1395
  }), !0;
1396
- }), p)) {
1396
+ }), u)) {
1397
1397
  o && t.cancelable && t.preventDefault();
1398
1398
  return;
1399
1399
  }
@@ -1403,27 +1403,27 @@ y.prototype = /** @lends Sortable.prototype */
1403
1403
  },
1404
1404
  _prepareDragStart: function(t, e, n) {
1405
1405
  var r = this, o = r.el, a = r.options, s = o.ownerDocument, l;
1406
- if (n && !c && n.parentNode === o) {
1406
+ if (n && !h && n.parentNode === o) {
1407
1407
  var d = T(n);
1408
- if (x = o, c = n, C = c.parentNode, vt = c.nextSibling, ae = n, te = a.group, y.dragged = c, ft = {
1409
- target: c,
1408
+ if (x = o, h = n, C = h.parentNode, vt = h.nextSibling, ae = n, te = a.group, y.dragged = h, ft = {
1409
+ target: h,
1410
1410
  clientX: (e || t).clientX,
1411
1411
  clientY: (e || t).clientY
1412
- }, gi = ft.clientX - d.left, mi = ft.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, c.style["will-change"] = "all", l = function() {
1413
- if (M("delayEnded", r, {
1412
+ }, gi = ft.clientX - d.left, mi = ft.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, h.style["will-change"] = "all", l = function() {
1413
+ if (P("delayEnded", r, {
1414
1414
  evt: t
1415
1415
  }), y.eventCanceled) {
1416
1416
  r._onDrop();
1417
1417
  return;
1418
1418
  }
1419
- r._disableDelayedDragEvents(), !ci && r.nativeDraggable && (c.draggable = !0), r._triggerDragStart(t, e), P({
1419
+ r._disableDelayedDragEvents(), !ui && r.nativeDraggable && (h.draggable = !0), r._triggerDragStart(t, e), M({
1420
1420
  sortable: r,
1421
1421
  name: "choose",
1422
1422
  originalEvent: t
1423
- }), F(c, a.chosenClass, !0);
1424
- }, a.ignore.split(",").forEach(function(p) {
1425
- Vi(c, p.trim(), He);
1426
- }), E(s, "dragover", gt), E(s, "mousemove", gt), E(s, "touchmove", gt), E(s, "mouseup", r._onDrop), E(s, "touchend", r._onDrop), E(s, "touchcancel", r._onDrop), ci && this.nativeDraggable && (this.options.touchStartThreshold = 4, c.draggable = !0), M("delayStart", this, {
1423
+ }), R(h, a.chosenClass, !0);
1424
+ }, a.ignore.split(",").forEach(function(u) {
1425
+ Vi(h, u.trim(), He);
1426
+ }), E(s, "dragover", gt), E(s, "mousemove", gt), E(s, "touchmove", gt), E(s, "mouseup", r._onDrop), E(s, "touchend", r._onDrop), E(s, "touchcancel", r._onDrop), ui && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), P("delayStart", this, {
1427
1427
  evt: t
1428
1428
  }), a.delay && (!a.delayOnTouchOnly || e) && (!this.nativeDraggable || !(Kt || nt))) {
1429
1429
  if (y.eventCanceled) {
@@ -1440,14 +1440,14 @@ y.prototype = /** @lends Sortable.prototype */
1440
1440
  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();
1441
1441
  },
1442
1442
  _disableDelayedDrag: function() {
1443
- c && He(c), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
1443
+ h && He(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
1444
1444
  },
1445
1445
  _disableDelayedDragEvents: function() {
1446
1446
  var t = this.el.ownerDocument;
1447
1447
  _(t, "mouseup", this._disableDelayedDrag), _(t, "touchend", this._disableDelayedDrag), _(t, "touchcancel", this._disableDelayedDrag), _(t, "mousemove", this._delayedDragTouchMoveHandler), _(t, "touchmove", this._delayedDragTouchMoveHandler), _(t, "pointermove", this._delayedDragTouchMoveHandler);
1448
1448
  },
1449
1449
  _triggerDragStart: function(t, e) {
1450
- e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? E(document, "pointermove", this._onTouchMove) : e ? E(document, "touchmove", this._onTouchMove) : E(document, "mousemove", this._onTouchMove) : (E(c, "dragend", this), E(x, "dragstart", this._onDragStart));
1450
+ e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? E(document, "pointermove", this._onTouchMove) : e ? E(document, "touchmove", this._onTouchMove) : E(document, "mousemove", this._onTouchMove) : (E(h, "dragend", this), E(x, "dragstart", this._onDragStart));
1451
1451
  try {
1452
1452
  document.selection ? le(function() {
1453
1453
  document.selection.empty();
@@ -1456,12 +1456,12 @@ y.prototype = /** @lends Sortable.prototype */
1456
1456
  }
1457
1457
  },
1458
1458
  _dragStarted: function(t, e) {
1459
- if (Ct = !1, x && c) {
1460
- M("dragStarted", this, {
1459
+ if (At = !1, x && h) {
1460
+ P("dragStarted", this, {
1461
1461
  evt: e
1462
1462
  }), this.nativeDraggable && E(document, "dragover", On);
1463
1463
  var n = this.options;
1464
- !t && F(c, n.dragClass, !1), F(c, n.ghostClass, !0), y.active = this, t && this._appendGhost(), P({
1464
+ !t && R(h, n.dragClass, !1), R(h, n.ghostClass, !0), y.active = this, t && this._appendGhost(), M({
1465
1465
  sortable: this,
1466
1466
  name: "start",
1467
1467
  originalEvent: e
@@ -1474,11 +1474,11 @@ y.prototype = /** @lends Sortable.prototype */
1474
1474
  this._lastX = X.clientX, this._lastY = X.clientY, Yi();
1475
1475
  for (var t = document.elementFromPoint(X.clientX, X.clientY), e = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(X.clientX, X.clientY), t !== e); )
1476
1476
  e = t;
1477
- if (c.parentNode[z]._isOutsideThisEl(t), e)
1477
+ if (h.parentNode[U]._isOutsideThisEl(t), e)
1478
1478
  do {
1479
- if (e[z]) {
1479
+ if (e[U]) {
1480
1480
  var n = void 0;
1481
- if (n = e[z]._onDragOver({
1481
+ if (n = e[U]._onDragOver({
1482
1482
  clientX: X.clientX,
1483
1483
  clientY: X.clientY,
1484
1484
  target: t,
@@ -1493,138 +1493,138 @@ y.prototype = /** @lends Sortable.prototype */
1493
1493
  },
1494
1494
  _onTouchMove: function(t) {
1495
1495
  if (ft) {
1496
- var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, a = b && Dt(b, !0), s = b && a && a.a, l = b && a && a.d, d = ie && I && fi(I), p = (o.clientX - ft.clientX + r.x) / (s || 1) + (d ? d[0] - Le[0] : 0) / (s || 1), u = (o.clientY - ft.clientY + r.y) / (l || 1) + (d ? d[1] - Le[1] : 0) / (l || 1);
1497
- if (!y.active && !Ct) {
1496
+ var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, a = b && St(b, !0), s = b && a && a.a, l = b && a && a.d, d = ie && I && fi(I), u = (o.clientX - ft.clientX + r.x) / (s || 1) + (d ? d[0] - Le[0] : 0) / (s || 1), c = (o.clientY - ft.clientY + r.y) / (l || 1) + (d ? d[1] - Le[1] : 0) / (l || 1);
1497
+ if (!y.active && !At) {
1498
1498
  if (n && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < n)
1499
1499
  return;
1500
1500
  this._onDragStart(t, !0);
1501
1501
  }
1502
1502
  if (b) {
1503
- a ? (a.e += p - (Te || 0), a.f += u - (Oe || 0)) : a = {
1503
+ a ? (a.e += u - (Te || 0), a.f += c - (Oe || 0)) : a = {
1504
1504
  a: 1,
1505
1505
  b: 0,
1506
1506
  c: 0,
1507
1507
  d: 1,
1508
- e: p,
1509
- f: u
1508
+ e: u,
1509
+ f: c
1510
1510
  };
1511
- var h = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
1512
- v(b, "webkitTransform", h), v(b, "mozTransform", h), v(b, "msTransform", h), v(b, "transform", h), Te = p, Oe = u, X = o;
1511
+ var p = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
1512
+ v(b, "webkitTransform", p), v(b, "mozTransform", p), v(b, "msTransform", p), v(b, "transform", p), Te = u, Oe = c, X = o;
1513
1513
  }
1514
1514
  t.cancelable && t.preventDefault();
1515
1515
  }
1516
1516
  },
1517
1517
  _appendGhost: function() {
1518
1518
  if (!b) {
1519
- var t = this.options.fallbackOnBody ? document.body : x, e = T(c, !0, ie, !0, t), n = this.options;
1519
+ var t = this.options.fallbackOnBody ? document.body : x, e = T(h, !0, ie, !0, t), n = this.options;
1520
1520
  if (ie) {
1521
1521
  for (I = t; v(I, "position") === "static" && v(I, "transform") === "none" && I !== document; )
1522
1522
  I = I.parentNode;
1523
1523
  I !== document.body && I !== document.documentElement ? (I === document && (I = q()), e.top += I.scrollTop, e.left += I.scrollLeft) : I = q(), Le = fi(I);
1524
1524
  }
1525
- b = c.cloneNode(!0), F(b, n.ghostClass, !1), F(b, n.fallbackClass, !0), F(b, n.dragClass, !0), v(b, "transition", ""), v(b, "transform", ""), v(b, "box-sizing", "border-box"), v(b, "margin", 0), v(b, "top", e.top), v(b, "left", e.left), v(b, "width", e.width), v(b, "height", e.height), v(b, "opacity", "0.8"), v(b, "position", ie ? "absolute" : "fixed"), v(b, "zIndex", "100000"), v(b, "pointerEvents", "none"), y.ghost = b, t.appendChild(b), v(b, "transform-origin", gi / parseInt(b.style.width) * 100 + "% " + mi / parseInt(b.style.height) * 100 + "%");
1525
+ b = h.cloneNode(!0), R(b, n.ghostClass, !1), R(b, n.fallbackClass, !0), R(b, n.dragClass, !0), v(b, "transition", ""), v(b, "transform", ""), v(b, "box-sizing", "border-box"), v(b, "margin", 0), v(b, "top", e.top), v(b, "left", e.left), v(b, "width", e.width), v(b, "height", e.height), v(b, "opacity", "0.8"), v(b, "position", ie ? "absolute" : "fixed"), v(b, "zIndex", "100000"), v(b, "pointerEvents", "none"), y.ghost = b, t.appendChild(b), v(b, "transform-origin", gi / parseInt(b.style.width) * 100 + "% " + mi / parseInt(b.style.height) * 100 + "%");
1526
1526
  }
1527
1527
  },
1528
1528
  _onDragStart: function(t, e) {
1529
1529
  var n = this, r = t.dataTransfer, o = n.options;
1530
- if (M("dragStart", this, {
1530
+ if (P("dragStart", this, {
1531
1531
  evt: t
1532
1532
  }), y.eventCanceled) {
1533
1533
  this._onDrop();
1534
1534
  return;
1535
1535
  }
1536
- M("setupClone", this), y.eventCanceled || (A = Fi(c), A.removeAttribute("id"), A.draggable = !1, A.style["will-change"] = "", this._hideClone(), F(A, this.options.chosenClass, !1), y.clone = A), n.cloneId = le(function() {
1537
- M("clone", n), !y.eventCanceled && (n.options.removeCloneOnHide || x.insertBefore(A, c), n._hideClone(), P({
1536
+ P("setupClone", this), y.eventCanceled || (A = Fi(h), A.removeAttribute("id"), A.draggable = !1, A.style["will-change"] = "", this._hideClone(), R(A, this.options.chosenClass, !1), y.clone = A), n.cloneId = le(function() {
1537
+ P("clone", n), !y.eventCanceled && (n.options.removeCloneOnHide || x.insertBefore(A, h), n._hideClone(), M({
1538
1538
  sortable: n,
1539
1539
  name: "clone"
1540
1540
  }));
1541
- }), !e && F(c, o.dragClass, !0), e ? (fe = !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, c)), E(document, "drop", n), v(c, "transform", "translateZ(0)")), Ct = !0, n._dragStartId = le(n._dragStarted.bind(n, e, t)), E(document, "selectstart", n), Bt = !0, Ut && v(document.body, "user-select", "none");
1541
+ }), !e && R(h, o.dragClass, !0), e ? (fe = !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, h)), E(document, "drop", n), v(h, "transform", "translateZ(0)")), At = !0, n._dragStartId = le(n._dragStarted.bind(n, e, t)), E(document, "selectstart", n), Vt = !0, Ft && v(document.body, "user-select", "none");
1542
1542
  },
1543
1543
  // Returns true - if no further action is needed (either inserted or another condition)
1544
1544
  _onDragOver: function(t) {
1545
- var e = this.el, n = t.target, r, o, a, s = this.options, l = s.group, d = y.active, p = te === l, u = s.sort, h = L || d, g, f = this, m = !1;
1545
+ var e = this.el, n = t.target, r, o, a, s = this.options, l = s.group, d = y.active, u = te === l, c = s.sort, p = L || d, g, f = this, m = !1;
1546
1546
  if (Re)
1547
1547
  return;
1548
- function S(kt, qi) {
1549
- M(kt, f, K({
1548
+ function $(Pt, qi) {
1549
+ P(Pt, f, K({
1550
1550
  evt: t,
1551
- isOwner: p,
1551
+ isOwner: u,
1552
1552
  axis: g ? "vertical" : "horizontal",
1553
1553
  revert: a,
1554
1554
  dragRect: r,
1555
1555
  targetRect: o,
1556
- canSort: u,
1557
- fromSortable: h,
1556
+ canSort: c,
1557
+ fromSortable: p,
1558
1558
  target: n,
1559
1559
  completed: O,
1560
1560
  onMove: function(Ze, Ki) {
1561
- return ne(x, e, c, r, Ze, T(Ze), t, Ki);
1561
+ return ne(x, e, h, r, Ze, T(Ze), t, Ki);
1562
1562
  },
1563
1563
  changed: Y
1564
1564
  }, qi));
1565
1565
  }
1566
- function V() {
1567
- S("dragOverAnimationCapture"), f.captureAnimationState(), f !== h && h.captureAnimationState();
1566
+ function N() {
1567
+ $("dragOverAnimationCapture"), f.captureAnimationState(), f !== p && p.captureAnimationState();
1568
1568
  }
1569
- function O(kt) {
1570
- return S("dragOverCompleted", {
1571
- insertion: kt
1572
- }), kt && (p ? d._hideClone() : d._showClone(f), f !== h && (F(c, L ? L.options.ghostClass : d.options.ghostClass, !1), F(c, s.ghostClass, !0)), L !== f && f !== y.active ? L = f : f === y.active && L && (L = null), h === f && (f._ignoreWhileAnimating = n), f.animateAll(function() {
1573
- S("dragOverAnimationComplete"), f._ignoreWhileAnimating = null;
1574
- }), f !== h && (h.animateAll(), h._ignoreWhileAnimating = null)), (n === c && !c.animated || n === e && !n.animated) && (xt = null), !s.dragoverBubble && !t.rootEl && n !== document && (c.parentNode[z]._isOutsideThisEl(t.target), !kt && gt(t)), !s.dragoverBubble && t.stopPropagation && t.stopPropagation(), m = !0;
1569
+ function O(Pt) {
1570
+ return $("dragOverCompleted", {
1571
+ insertion: Pt
1572
+ }), Pt && (u ? d._hideClone() : d._showClone(f), f !== p && (R(h, L ? L.options.ghostClass : d.options.ghostClass, !1), R(h, s.ghostClass, !0)), L !== f && f !== y.active ? L = f : f === y.active && L && (L = null), p === f && (f._ignoreWhileAnimating = n), f.animateAll(function() {
1573
+ $("dragOverAnimationComplete"), f._ignoreWhileAnimating = null;
1574
+ }), f !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (wt = null), !s.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[U]._isOutsideThisEl(t.target), !Pt && gt(t)), !s.dragoverBubble && t.stopPropagation && t.stopPropagation(), m = !0;
1575
1575
  }
1576
1576
  function Y() {
1577
- U = j(c), at = j(c, s.draggable), P({
1577
+ F = z(h), at = z(h, s.draggable), M({
1578
1578
  sortable: f,
1579
1579
  name: "change",
1580
1580
  toEl: e,
1581
- newIndex: U,
1581
+ newIndex: F,
1582
1582
  newDraggableIndex: at,
1583
1583
  originalEvent: t
1584
1584
  });
1585
1585
  }
1586
- if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = Z(n, s.draggable, e, !0), S("dragOver"), y.eventCanceled)
1586
+ if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = Z(n, s.draggable, e, !0), $("dragOver"), y.eventCanceled)
1587
1587
  return m;
1588
- if (c.contains(t.target) || n.animated && n.animatingX && n.animatingY || f._ignoreWhileAnimating === n)
1588
+ if (h.contains(t.target) || n.animated && n.animatingX && n.animatingY || f._ignoreWhileAnimating === n)
1589
1589
  return O(!1);
1590
- if (fe = !1, d && !s.disabled && (p ? u || (a = C !== x) : L === this || (this.lastPutMode = te.checkPull(this, d, c, t)) && l.checkPut(this, d, c, t))) {
1591
- if (g = this._getDirection(t, n) === "vertical", r = T(c), S("dragOverValid"), y.eventCanceled)
1590
+ if (fe = !1, d && !s.disabled && (u ? c || (a = C !== x) : L === this || (this.lastPutMode = te.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
1591
+ if (g = this._getDirection(t, n) === "vertical", r = T(h), $("dragOverValid"), y.eventCanceled)
1592
1592
  return m;
1593
1593
  if (a)
1594
- return C = x, V(), this._hideClone(), S("revert"), y.eventCanceled || (vt ? x.insertBefore(c, vt) : x.appendChild(c)), O(!0);
1595
- var B = Xe(e, s.draggable);
1596
- if (!B || Pn(t, g, this) && !B.animated) {
1597
- if (B === c)
1594
+ return C = x, N(), this._hideClone(), $("revert"), y.eventCanceled || (vt ? x.insertBefore(h, vt) : x.appendChild(h)), O(!0);
1595
+ var V = Xe(e, s.draggable);
1596
+ if (!V || Mn(t, g, this) && !V.animated) {
1597
+ if (V === h)
1598
1598
  return O(!1);
1599
- if (B && e === t.target && (n = B), n && (o = T(n)), ne(x, e, c, r, n, o, t, !!n) !== !1)
1600
- return V(), B && B.nextSibling ? e.insertBefore(c, B.nextSibling) : e.appendChild(c), C = e, Y(), O(!0);
1601
- } else if (B && In(t, g, this)) {
1602
- var dt = Ot(e, 0, s, !0);
1603
- if (dt === c)
1599
+ if (V && e === t.target && (n = V), n && (o = T(n)), ne(x, e, h, r, n, o, t, !!n) !== !1)
1600
+ return N(), V && V.nextSibling ? e.insertBefore(h, V.nextSibling) : e.appendChild(h), C = e, Y(), O(!0);
1601
+ } else if (V && In(t, g, this)) {
1602
+ var dt = Tt(e, 0, s, !0);
1603
+ if (dt === h)
1604
1604
  return O(!1);
1605
- if (n = dt, o = T(n), ne(x, e, c, r, n, o, t, !1) !== !1)
1606
- return V(), e.insertBefore(c, dt), C = e, Y(), O(!0);
1605
+ if (n = dt, o = T(n), ne(x, e, h, r, n, o, t, !1) !== !1)
1606
+ return N(), e.insertBefore(h, dt), C = e, Y(), O(!0);
1607
1607
  } else if (n.parentNode === e) {
1608
1608
  o = T(n);
1609
- var G = 0, ut, Ht = c.parentNode !== e, R = !Dn(c.animated && c.toRect || r, n.animated && n.toRect || o, g), It = g ? "top" : "left", rt = pi(n, "top", "top") || pi(c, "top", "top"), Pt = rt ? rt.scrollTop : void 0;
1610
- xt !== n && (ut = o[It], Xt = !1, ee = !R && s.invertSwap || Ht), G = Mn(t, n, o, g, R ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, ee, xt === n);
1609
+ var G = 0, ct, Lt = h.parentNode !== e, B = !Dn(h.animated && h.toRect || r, n.animated && n.toRect || o, g), Ht = g ? "top" : "left", rt = pi(n, "top", "top") || pi(h, "top", "top"), It = rt ? rt.scrollTop : void 0;
1610
+ wt !== n && (ct = o[Ht], Yt = !1, ee = !B && s.invertSwap || Lt), G = Pn(t, n, o, g, B ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, ee, wt === n);
1611
1611
  var J;
1612
1612
  if (G !== 0) {
1613
- var ct = j(c);
1613
+ var ut = z(h);
1614
1614
  do
1615
- ct -= G, J = C.children[ct];
1615
+ ut -= G, J = C.children[ut];
1616
1616
  while (J && (v(J, "display") === "none" || J === b));
1617
1617
  }
1618
1618
  if (G === 0 || J === n)
1619
1619
  return O(!1);
1620
- xt = n, Yt = G;
1620
+ wt = n, jt = G;
1621
1621
  var Mt = n.nextElementSibling, ot = !1;
1622
1622
  ot = G === 1;
1623
- var Jt = ne(x, e, c, r, n, o, t, ot);
1623
+ var Jt = ne(x, e, h, r, n, o, t, ot);
1624
1624
  if (Jt !== !1)
1625
- return (Jt === 1 || Jt === -1) && (ot = Jt === 1), Re = !0, setTimeout(Hn, 30), V(), ot && !Mt ? e.appendChild(c) : n.parentNode.insertBefore(c, ot ? Mt : n), rt && Ri(rt, 0, Pt - rt.scrollTop), C = c.parentNode, ut !== void 0 && !ee && (se = Math.abs(ut - T(n)[It])), Y(), O(!0);
1625
+ return (Jt === 1 || Jt === -1) && (ot = Jt === 1), Re = !0, setTimeout(Hn, 30), N(), ot && !Mt ? e.appendChild(h) : n.parentNode.insertBefore(h, ot ? Mt : n), rt && Ri(rt, 0, It - rt.scrollTop), C = h.parentNode, ct !== void 0 && !ee && (se = Math.abs(ct - T(n)[Ht])), Y(), O(!0);
1626
1626
  }
1627
- if (e.contains(c))
1627
+ if (e.contains(h))
1628
1628
  return O(!1);
1629
1629
  }
1630
1630
  return !1;
@@ -1639,52 +1639,52 @@ y.prototype = /** @lends Sortable.prototype */
1639
1639
  },
1640
1640
  _onDrop: function(t) {
1641
1641
  var e = this.el, n = this.options;
1642
- if (U = j(c), at = j(c, n.draggable), M("drop", this, {
1642
+ if (F = z(h), at = z(h, n.draggable), P("drop", this, {
1643
1643
  evt: t
1644
- }), C = c && c.parentNode, U = j(c), at = j(c, n.draggable), y.eventCanceled) {
1644
+ }), C = h && h.parentNode, F = z(h), at = z(h, n.draggable), y.eventCanceled) {
1645
1645
  this._nulling();
1646
1646
  return;
1647
1647
  }
1648
- Ct = !1, ee = !1, Xt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Fe(this.cloneId), Fe(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ut && v(document.body, "user-select", ""), v(c, "transform", ""), t && (Bt && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), b && b.parentNode && b.parentNode.removeChild(b), (x === C || L && L.lastPutMode !== "clone") && A && A.parentNode && A.parentNode.removeChild(A), c && (this.nativeDraggable && _(c, "dragend", this), He(c), c.style["will-change"] = "", Bt && !Ct && F(c, L ? L.options.ghostClass : this.options.ghostClass, !1), F(c, this.options.chosenClass, !1), P({
1648
+ At = !1, ee = !1, Yt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Fe(this.cloneId), Fe(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ft && v(document.body, "user-select", ""), v(h, "transform", ""), t && (Vt && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), b && b.parentNode && b.parentNode.removeChild(b), (x === C || L && L.lastPutMode !== "clone") && A && A.parentNode && A.parentNode.removeChild(A), h && (this.nativeDraggable && _(h, "dragend", this), He(h), h.style["will-change"] = "", Vt && !At && R(h, L ? L.options.ghostClass : this.options.ghostClass, !1), R(h, this.options.chosenClass, !1), M({
1649
1649
  sortable: this,
1650
1650
  name: "unchoose",
1651
1651
  toEl: C,
1652
1652
  newIndex: null,
1653
1653
  newDraggableIndex: null,
1654
1654
  originalEvent: t
1655
- }), x !== C ? (U >= 0 && (P({
1655
+ }), x !== C ? (F >= 0 && (M({
1656
1656
  rootEl: C,
1657
1657
  name: "add",
1658
1658
  toEl: C,
1659
1659
  fromEl: x,
1660
1660
  originalEvent: t
1661
- }), P({
1661
+ }), M({
1662
1662
  sortable: this,
1663
1663
  name: "remove",
1664
1664
  toEl: C,
1665
1665
  originalEvent: t
1666
- }), P({
1666
+ }), M({
1667
1667
  rootEl: C,
1668
1668
  name: "sort",
1669
1669
  toEl: C,
1670
1670
  fromEl: x,
1671
1671
  originalEvent: t
1672
- }), P({
1672
+ }), M({
1673
1673
  sortable: this,
1674
1674
  name: "sort",
1675
1675
  toEl: C,
1676
1676
  originalEvent: t
1677
- })), L && L.save()) : U !== $t && U >= 0 && (P({
1677
+ })), L && L.save()) : F !== Ct && F >= 0 && (M({
1678
1678
  sortable: this,
1679
1679
  name: "update",
1680
1680
  toEl: C,
1681
1681
  originalEvent: t
1682
- }), P({
1682
+ }), M({
1683
1683
  sortable: this,
1684
1684
  name: "sort",
1685
1685
  toEl: C,
1686
1686
  originalEvent: t
1687
- })), y.active && ((U == null || U === -1) && (U = $t, at = jt), P({
1687
+ })), y.active && ((F == null || F === -1) && (F = Ct, at = zt), M({
1688
1688
  sortable: this,
1689
1689
  name: "end",
1690
1690
  toEl: C,
@@ -1692,7 +1692,7 @@ y.prototype = /** @lends Sortable.prototype */
1692
1692
  }), this.save()))), this._nulling();
1693
1693
  },
1694
1694
  _nulling: function() {
1695
- M("nulling", this), x = c = C = b = vt = A = ae = st = ft = X = Bt = U = at = $t = jt = xt = Yt = L = te = y.dragged = y.ghost = y.clone = y.active = null, me.forEach(function(t) {
1695
+ P("nulling", this), x = h = C = b = vt = A = ae = st = ft = X = Vt = F = at = Ct = zt = wt = jt = L = te = y.dragged = y.ghost = y.clone = y.active = null, me.forEach(function(t) {
1696
1696
  t.checked = !0;
1697
1697
  }), me.length = Te = Oe = 0;
1698
1698
  },
@@ -1704,7 +1704,7 @@ y.prototype = /** @lends Sortable.prototype */
1704
1704
  break;
1705
1705
  case "dragenter":
1706
1706
  case "dragover":
1707
- c && (this._onDragOver(t), Ln(t));
1707
+ h && (this._onDragOver(t), Ln(t));
1708
1708
  break;
1709
1709
  case "selectstart":
1710
1710
  t.preventDefault();
@@ -1766,15 +1766,15 @@ y.prototype = /** @lends Sortable.prototype */
1766
1766
  * Destroy
1767
1767
  */
1768
1768
  destroy: function() {
1769
- M("destroy", this);
1769
+ P("destroy", this);
1770
1770
  var t = this.el;
1771
- t[z] = 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) {
1771
+ t[U] = 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) {
1772
1772
  e.removeAttribute("draggable");
1773
1773
  }), this._onDrop(), this._disableDelayedDragEvents(), ge.splice(ge.indexOf(this.el), 1), this.el = t = null;
1774
1774
  },
1775
1775
  _hideClone: function() {
1776
1776
  if (!st) {
1777
- if (M("hideClone", this), y.eventCanceled)
1777
+ if (P("hideClone", this), y.eventCanceled)
1778
1778
  return;
1779
1779
  v(A, "display", "none"), this.options.removeCloneOnHide && A.parentNode && A.parentNode.removeChild(A), st = !0;
1780
1780
  }
@@ -1785,9 +1785,9 @@ y.prototype = /** @lends Sortable.prototype */
1785
1785
  return;
1786
1786
  }
1787
1787
  if (st) {
1788
- if (M("showClone", this), y.eventCanceled)
1788
+ if (P("showClone", this), y.eventCanceled)
1789
1789
  return;
1790
- c.parentNode == x && !this.options.group.revertClone ? x.insertBefore(A, c) : vt ? x.insertBefore(A, vt) : x.appendChild(A), this.options.group.revertClone && this.animate(c, A), v(A, "display", ""), st = !1;
1790
+ h.parentNode == x && !this.options.group.revertClone ? x.insertBefore(A, h) : vt ? x.insertBefore(A, vt) : x.appendChild(A), this.options.group.revertClone && this.animate(h, A), v(A, "display", ""), st = !1;
1791
1791
  }
1792
1792
  }
1793
1793
  };
@@ -1795,11 +1795,11 @@ function Ln(i) {
1795
1795
  i.dataTransfer && (i.dataTransfer.dropEffect = "move"), i.cancelable && i.preventDefault();
1796
1796
  }
1797
1797
  function ne(i, t, e, n, r, o, a, s) {
1798
- var l, d = i[z], p = d.options.onMove, u;
1798
+ var l, d = i[U], u = d.options.onMove, c;
1799
1799
  return window.CustomEvent && !nt && !Kt ? l = new CustomEvent("move", {
1800
1800
  bubbles: !0,
1801
1801
  cancelable: !0
1802
- }) : (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 = s, l.originalEvent = a, i.dispatchEvent(l), p && (u = p.call(d, l, a)), u;
1802
+ }) : (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 = s, l.originalEvent = a, i.dispatchEvent(l), u && (c = u.call(d, l, a)), c;
1803
1803
  }
1804
1804
  function He(i) {
1805
1805
  i.draggable = !1;
@@ -1808,28 +1808,28 @@ function Hn() {
1808
1808
  Re = !1;
1809
1809
  }
1810
1810
  function In(i, t, e) {
1811
- var n = T(Ot(e.el, 0, e.options, !0)), r = 10;
1811
+ var n = T(Tt(e.el, 0, e.options, !0)), r = 10;
1812
1812
  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;
1813
1813
  }
1814
- function Pn(i, t, e) {
1814
+ function Mn(i, t, e) {
1815
1815
  var n = T(Xe(e.el, e.options.draggable)), r = 10;
1816
1816
  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;
1817
1817
  }
1818
- function Mn(i, t, e, n, r, o, a, s) {
1819
- var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width, p = n ? e.top : e.left, u = n ? e.bottom : e.right, h = !1;
1818
+ function Pn(i, t, e, n, r, o, a, s) {
1819
+ var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width, u = n ? e.top : e.left, c = n ? e.bottom : e.right, p = !1;
1820
1820
  if (!a) {
1821
1821
  if (s && se < d * r) {
1822
- if (!Xt && (Yt === 1 ? l > p + d * o / 2 : l < u - d * o / 2) && (Xt = !0), Xt)
1823
- h = !0;
1824
- else if (Yt === 1 ? l < p + se : l > u - se)
1825
- return -Yt;
1826
- } else if (l > p + d * (1 - r) / 2 && l < u - d * (1 - r) / 2)
1822
+ if (!Yt && (jt === 1 ? l > u + d * o / 2 : l < c - d * o / 2) && (Yt = !0), Yt)
1823
+ p = !0;
1824
+ else if (jt === 1 ? l < u + se : l > c - se)
1825
+ return -jt;
1826
+ } else if (l > u + d * (1 - r) / 2 && l < c - d * (1 - r) / 2)
1827
1827
  return kn(t);
1828
1828
  }
1829
- return h = h || a, h && (l < p + d * o / 2 || l > u - d * o / 2) ? l > p + d / 2 ? 1 : -1 : 0;
1829
+ return p = p || a, p && (l < u + d * o / 2 || l > c - d * o / 2) ? l > u + d / 2 ? 1 : -1 : 0;
1830
1830
  }
1831
1831
  function kn(i) {
1832
- return j(c) < j(i) ? 1 : -1;
1832
+ return z(h) < z(i) ? 1 : -1;
1833
1833
  }
1834
1834
  function Nn(i) {
1835
1835
  for (var t = i.tagName + i.className + i.src + i.href + i.textContent, e = t.length, n = 0; e--; )
@@ -1850,7 +1850,7 @@ function Fe(i) {
1850
1850
  return clearTimeout(i);
1851
1851
  }
1852
1852
  ye && E(document, "touchmove", function(i) {
1853
- (y.active || Ct) && i.cancelable && i.preventDefault();
1853
+ (y.active || At) && i.cancelable && i.preventDefault();
1854
1854
  });
1855
1855
  y.utils = {
1856
1856
  on: E,
@@ -1863,16 +1863,16 @@ y.utils = {
1863
1863
  extend: _n,
1864
1864
  throttle: Bi,
1865
1865
  closest: Z,
1866
- toggleClass: F,
1866
+ toggleClass: R,
1867
1867
  clone: Fi,
1868
- index: j,
1868
+ index: z,
1869
1869
  nextTick: le,
1870
1870
  cancelNextTick: Fe,
1871
1871
  detectDirection: zi,
1872
- getChild: Ot
1872
+ getChild: Tt
1873
1873
  };
1874
1874
  y.get = function(i) {
1875
- return i[z];
1875
+ return i[U];
1876
1876
  };
1877
1877
  y.mount = function() {
1878
1878
  for (var i = arguments.length, t = new Array(i), e = 0; e < i; e++)
@@ -1887,7 +1887,7 @@ y.create = function(i, t) {
1887
1887
  return new y(i, t);
1888
1888
  };
1889
1889
  y.version = vn;
1890
- var D = [], Rt, Ue, ze = !1, Ie, Pe, ve, Ft;
1890
+ var S = [], Bt, Ue, ze = !1, Ie, Me, ve, Rt;
1891
1891
  function Bn() {
1892
1892
  function i() {
1893
1893
  this.defaults = {
@@ -1913,26 +1913,26 @@ function Bn() {
1913
1913
  this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : (_(document, "pointermove", this._handleFallbackAutoScroll), _(document, "touchmove", this._handleFallbackAutoScroll), _(document, "mousemove", this._handleFallbackAutoScroll)), yi(), de(), En();
1914
1914
  },
1915
1915
  nulling: function() {
1916
- ve = Ue = Rt = ze = Ft = Ie = Pe = null, D.length = 0;
1916
+ ve = Ue = Bt = ze = Rt = Ie = Me = null, S.length = 0;
1917
1917
  },
1918
1918
  _handleFallbackAutoScroll: function(e) {
1919
1919
  this._handleAutoScroll(e, !0);
1920
1920
  },
1921
1921
  _handleAutoScroll: function(e, n) {
1922
1922
  var r = this, o = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, s = document.elementFromPoint(o, a);
1923
- if (ve = e, n || this.options.forceAutoScrollFallback || Kt || nt || Ut) {
1924
- Me(e, this.options, s, n);
1923
+ if (ve = e, n || this.options.forceAutoScrollFallback || Kt || nt || Ft) {
1924
+ Pe(e, this.options, s, n);
1925
1925
  var l = lt(s, !0);
1926
- ze && (!Ft || o !== Ie || a !== Pe) && (Ft && yi(), Ft = setInterval(function() {
1926
+ ze && (!Rt || o !== Ie || a !== Me) && (Rt && yi(), Rt = setInterval(function() {
1927
1927
  var d = lt(document.elementFromPoint(o, a), !0);
1928
- d !== l && (l = d, de()), Me(e, r.options, d, n);
1929
- }, 10), Ie = o, Pe = a);
1928
+ d !== l && (l = d, de()), Pe(e, r.options, d, n);
1929
+ }, 10), Ie = o, Me = a);
1930
1930
  } else {
1931
1931
  if (!this.options.bubbleScroll || lt(s, !0) === q()) {
1932
1932
  de();
1933
1933
  return;
1934
1934
  }
1935
- Me(e, this.options, lt(s, !1), !1);
1935
+ Pe(e, this.options, lt(s, !1), !1);
1936
1936
  }
1937
1937
  }
1938
1938
  }, it(i, {
@@ -1941,33 +1941,33 @@ function Bn() {
1941
1941
  });
1942
1942
  }
1943
1943
  function de() {
1944
- D.forEach(function(i) {
1944
+ S.forEach(function(i) {
1945
1945
  clearInterval(i.pid);
1946
- }), D = [];
1946
+ }), S = [];
1947
1947
  }
1948
1948
  function yi() {
1949
- clearInterval(Ft);
1949
+ clearInterval(Rt);
1950
1950
  }
1951
- var Me = Bi(function(i, t, e, n) {
1951
+ var Pe = Bi(function(i, t, e, n) {
1952
1952
  if (t.scroll) {
1953
- var r = (i.touches ? i.touches[0] : i).clientX, o = (i.touches ? i.touches[0] : i).clientY, a = t.scrollSensitivity, s = t.scrollSpeed, l = q(), d = !1, p;
1954
- Ue !== e && (Ue = e, de(), Rt = t.scroll, p = t.scrollFn, Rt === !0 && (Rt = lt(e, !0)));
1955
- var u = 0, h = Rt;
1953
+ var r = (i.touches ? i.touches[0] : i).clientX, o = (i.touches ? i.touches[0] : i).clientY, a = t.scrollSensitivity, s = t.scrollSpeed, l = q(), d = !1, u;
1954
+ Ue !== e && (Ue = e, de(), Bt = t.scroll, u = t.scrollFn, Bt === !0 && (Bt = lt(e, !0)));
1955
+ var c = 0, p = Bt;
1956
1956
  do {
1957
- var g = h, f = T(g), m = f.top, S = f.bottom, V = f.left, O = f.right, Y = f.width, B = f.height, dt = void 0, G = void 0, ut = g.scrollWidth, Ht = g.scrollHeight, R = v(g), It = g.scrollLeft, rt = g.scrollTop;
1958
- g === l ? (dt = Y < ut && (R.overflowX === "auto" || R.overflowX === "scroll" || R.overflowX === "visible"), G = B < Ht && (R.overflowY === "auto" || R.overflowY === "scroll" || R.overflowY === "visible")) : (dt = Y < ut && (R.overflowX === "auto" || R.overflowX === "scroll"), G = B < Ht && (R.overflowY === "auto" || R.overflowY === "scroll"));
1959
- var Pt = dt && (Math.abs(O - r) <= a && It + Y < ut) - (Math.abs(V - r) <= a && !!It), J = G && (Math.abs(S - o) <= a && rt + B < Ht) - (Math.abs(m - o) <= a && !!rt);
1960
- if (!D[u])
1961
- for (var ct = 0; ct <= u; ct++)
1962
- D[ct] || (D[ct] = {});
1963
- (D[u].vx != Pt || D[u].vy != J || D[u].el !== g) && (D[u].el = g, D[u].vx = Pt, D[u].vy = J, clearInterval(D[u].pid), (Pt != 0 || J != 0) && (d = !0, D[u].pid = setInterval(function() {
1957
+ var g = p, f = T(g), m = f.top, $ = f.bottom, N = f.left, O = f.right, Y = f.width, V = f.height, dt = void 0, G = void 0, ct = g.scrollWidth, Lt = g.scrollHeight, B = v(g), Ht = g.scrollLeft, rt = g.scrollTop;
1958
+ g === l ? (dt = Y < ct && (B.overflowX === "auto" || B.overflowX === "scroll" || B.overflowX === "visible"), G = V < Lt && (B.overflowY === "auto" || B.overflowY === "scroll" || B.overflowY === "visible")) : (dt = Y < ct && (B.overflowX === "auto" || B.overflowX === "scroll"), G = V < Lt && (B.overflowY === "auto" || B.overflowY === "scroll"));
1959
+ var It = dt && (Math.abs(O - r) <= a && Ht + Y < ct) - (Math.abs(N - r) <= a && !!Ht), J = G && (Math.abs($ - o) <= a && rt + V < Lt) - (Math.abs(m - o) <= a && !!rt);
1960
+ if (!S[c])
1961
+ for (var ut = 0; ut <= c; ut++)
1962
+ S[ut] || (S[ut] = {});
1963
+ (S[c].vx != It || S[c].vy != J || S[c].el !== g) && (S[c].el = g, S[c].vx = It, S[c].vy = J, clearInterval(S[c].pid), (It != 0 || J != 0) && (d = !0, S[c].pid = setInterval(function() {
1964
1964
  n && this.layer === 0 && y.active._onTouchMove(ve);
1965
- var Mt = D[this.layer].vy ? D[this.layer].vy * s : 0, ot = D[this.layer].vx ? D[this.layer].vx * s : 0;
1966
- typeof p == "function" && p.call(y.dragged.parentNode[z], ot, Mt, i, ve, D[this.layer].el) !== "continue" || Ri(D[this.layer].el, ot, Mt);
1965
+ var Mt = S[this.layer].vy ? S[this.layer].vy * s : 0, ot = S[this.layer].vx ? S[this.layer].vx * s : 0;
1966
+ typeof u == "function" && u.call(y.dragged.parentNode[U], ot, Mt, i, ve, S[this.layer].el) !== "continue" || Ri(S[this.layer].el, ot, Mt);
1967
1967
  }.bind({
1968
- layer: u
1969
- }), 24))), u++;
1970
- } while (t.bubbleScroll && h !== l && (h = lt(h, !1)));
1968
+ layer: c
1969
+ }), 24))), c++;
1970
+ } while (t.bubbleScroll && p !== l && (p = lt(p, !1)));
1971
1971
  ze = d;
1972
1972
  }
1973
1973
  }, 30), Wi = function(t) {
@@ -1975,8 +1975,8 @@ var Me = Bi(function(i, t, e, n) {
1975
1975
  if (e) {
1976
1976
  var d = n || o;
1977
1977
  s();
1978
- var p = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, u = document.elementFromPoint(p.clientX, p.clientY);
1979
- l(), d && !d.el.contains(u) && (a("spill"), this.onSpill({
1978
+ var u = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, c = document.elementFromPoint(u.clientX, u.clientY);
1979
+ l(), d && !d.el.contains(c) && (a("spill"), this.onSpill({
1980
1980
  dragEl: r,
1981
1981
  putSortable: n
1982
1982
  }));
@@ -1993,7 +1993,7 @@ We.prototype = {
1993
1993
  onSpill: function(t) {
1994
1994
  var e = t.dragEl, n = t.putSortable;
1995
1995
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
1996
- var r = Ot(this.sortable.el, this.startIndex, this.options);
1996
+ var r = Tt(this.sortable.el, this.startIndex, this.options);
1997
1997
  r ? this.sortable.el.insertBefore(e, r) : this.sortable.el.appendChild(e), this.sortable.animateAll(), n && n.animateAll();
1998
1998
  },
1999
1999
  drop: Wi
@@ -2190,12 +2190,20 @@ input::-moz-focus-inner, input::-moz-focus-outer {
2190
2190
  `, Un = `
2191
2191
  input[type=radio] {
2192
2192
  appearance: none;
2193
+ -webkit-appearance: none;
2193
2194
  margin: 0;
2194
2195
  cursor: pointer;
2195
2196
  display: flex;
2196
2197
  flex-direction: row;
2197
2198
  align-items: center;
2199
+ width: 24px;
2200
+ height: 24px;
2198
2201
  }
2202
+
2203
+ label span {
2204
+ font-size: small;
2205
+ }
2206
+
2199
2207
  input[type=radio]:after {
2200
2208
  display: block;
2201
2209
  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");
@@ -2210,11 +2218,14 @@ input[type=radio]:checked:after {
2210
2218
  `, zn = `
2211
2219
  input[type=checkbox] {
2212
2220
  appearance: none;
2221
+ -webkit-appearance: none;
2213
2222
  margin: 0;
2214
2223
  cursor: pointer;
2215
2224
  display: flex;
2216
2225
  flex-direction: row;
2217
2226
  align-items: center;
2227
+ width: 24px;
2228
+ height: 24px;
2218
2229
  }
2219
2230
  input[type=checkbox]:after {
2220
2231
  display: block;
@@ -2247,7 +2258,6 @@ summary > .layer {
2247
2258
 
2248
2259
  ul[data-group] {
2249
2260
  overflow-y: auto;
2250
- max-height: calc(var(--container-height) * 0.3);
2251
2261
  }
2252
2262
 
2253
2263
  [data-type=group] .title {
@@ -2277,6 +2287,24 @@ ul[data-group] {
2277
2287
  margin-top: 9px;
2278
2288
  }
2279
2289
 
2290
+ button.delete {
2291
+ height: 24px;
2292
+ width: 32px;
2293
+ padding: 0;
2294
+ display: flex;
2295
+ justify-content: center;
2296
+ font-size: 13px;
2297
+ margin-left: 5%;
2298
+ background: #fdd;
2299
+ color: white;
2300
+ }
2301
+
2302
+ button.delete::before {
2303
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23a22' viewBox='0 0 24 24'%3E%3Ctitle%3Edelete-outline%3C/title%3E%3Cpath d='M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8,9H16V19H8V9M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z' /%3E%3C/svg%3E");
2304
+ height: 20px;
2305
+ width: 20px;
2306
+ }
2307
+
2280
2308
  label[for=optional] {
2281
2309
  font-size: 21px;
2282
2310
  font-weight: 400;
@@ -2475,12 +2503,12 @@ li.sortable-drag {
2475
2503
  li.sortable-ghost {
2476
2504
  }
2477
2505
  `;
2478
- var jn = Object.defineProperty, Yn = Object.getOwnPropertyDescriptor, $ = (i, t, e, n) => {
2506
+ var jn = Object.defineProperty, Yn = Object.getOwnPropertyDescriptor, D = (i, t, e, n) => {
2479
2507
  for (var r = n > 1 ? void 0 : n ? Yn(t, e) : t, o = i.length - 1, a; o >= 0; o--)
2480
2508
  (a = i[o]) && (r = (n ? a(t, e, r) : a(r)) || r);
2481
2509
  return n && r && jn(t, e, r), r;
2482
2510
  };
2483
- let k = class extends St {
2511
+ let j = class extends $t {
2484
2512
  constructor() {
2485
2513
  super(...arguments), this.for = "eox-map", this.layerIdentifier = "id", this.layerTitle = "title", this.sortBy = "layerOrder", this.layerConfig = ["opacity"], this.externalLayerConfig = void 0, this.filterLayers = (i, t, e) => {
2486
2514
  let n = [];
@@ -2507,16 +2535,19 @@ let k = class extends St {
2507
2535
  };
2508
2536
  }
2509
2537
  _updateControl(i) {
2510
- const t = (e) => {
2511
- e.forEach((n) => {
2512
- n.get(this.layerIdentifier) || n.set(this.layerIdentifier, n.ol_uid), n.get(this.layerTitle) || n.set(this.layerTitle, `layer ${n.ol_uid}`), n.getLayers && t(n.getLayers().getArray());
2538
+ const t = (e, n) => {
2539
+ e.forEach((r) => {
2540
+ n && r.set("_group_id", n), r.get(this.layerIdentifier) || r.set(this.layerIdentifier, r.ol_uid), r.get(this.layerTitle) || r.set(this.layerTitle, `layer ${r.ol_uid}`), r.getLayers && t(
2541
+ r.getLayers().getArray(),
2542
+ r.get("id") || r.ol_uid
2543
+ );
2513
2544
  });
2514
2545
  };
2515
2546
  t(i.getArray()), this.layerCollection = i, this.optionalLayerArray = this.filterLayers(
2516
2547
  i.getArray(),
2517
2548
  "layerControlOptional",
2518
2549
  !0
2519
- ), this.requestUpdate();
2550
+ );
2520
2551
  }
2521
2552
  _emitLayerconfig(i) {
2522
2553
  const t = {
@@ -2554,56 +2585,56 @@ let k = class extends St {
2554
2585
  (n) => n.get(this.layerIdentifier) !== i.get(this.layerIdentifier) && n.get("layerControlExclusive")
2555
2586
  ), e.forEach((n) => {
2556
2587
  n.setVisible(!1);
2557
- });
2588
+ }), this.requestUpdate();
2558
2589
  }
2559
- this.requestUpdate();
2560
- }
2561
- // Set up Resize Observer
2562
- firstUpdated() {
2563
- this.resizeObserver = new ResizeObserver((i) => {
2564
- for (let t of i)
2565
- t.target === this && (this.style.setProperty(
2566
- "--container-height",
2567
- `${t.contentRect.height}px`
2568
- ), this.requestUpdate());
2569
- }), this.resizeObserver.observe(this);
2570
- }
2571
- // Deinitialize Resize Observer
2572
- disconnectedCallback() {
2573
- this.resizeObserver && (this.resizeObserver.disconnect(), this.resizeObserver = null), super.disconnectedCallback();
2574
2590
  }
2575
2591
  render() {
2576
- var r;
2592
+ var a;
2577
2593
  const i = document.querySelector(this.for);
2578
2594
  if (i && (i.map ? this.olMap = i.map : this.olMap = i), !this.olMap)
2579
2595
  return w;
2580
2596
  const t = this.olMap.getLayers();
2581
- this._updateControl(t), t.on("change:length", () => {
2582
- this._currentlySorting || this._updateControl(t);
2583
- });
2584
- const e = (o, a) => {
2585
- var s;
2597
+ this._updateControl(t);
2598
+ const e = (s) => {
2599
+ s.on("change:length", () => {
2600
+ this._currentlySorting || setTimeout(() => {
2601
+ this._updateControl(s);
2602
+ });
2603
+ });
2604
+ };
2605
+ e(t);
2606
+ const n = (s) => {
2607
+ s.getArray().forEach((l) => {
2608
+ if (l.getLayers) {
2609
+ const d = l.getLayers();
2610
+ e(d), n(d);
2611
+ }
2612
+ });
2613
+ };
2614
+ n(t);
2615
+ const r = (s, l, d) => {
2616
+ var u;
2586
2617
  return H`
2587
- <details open="${o.get("layerControlExpanded") ? !0 : w}">
2618
+ <details open="${s.get("layerControlExpanded") ? !0 : w}">
2588
2619
  <summary>
2589
2620
  <div class="layer">
2590
2621
  <div class="left">
2591
2622
  <input
2592
- type="${o.get("layerControlExclusive") ? "radio" : "checkbox"}"
2593
- .checked="${Be(o.getVisible())}"
2623
+ type="${s.get("layerControlExclusive") ? "radio" : "checkbox"}"
2624
+ .checked="${Be(s.getVisible())}"
2594
2625
  @click=${() => {
2595
- this.toggleLayerVisibility(o, a);
2626
+ this.toggleLayerVisibility(s, l);
2596
2627
  }}
2597
2628
  />
2598
2629
  <span class="title"
2599
2630
  ><span
2600
- >${o.get(this.layerTitle) || `${o.get(this.layerIdentifier)}`}</span
2631
+ >${s.get(this.layerTitle) || `${s.get(this.layerIdentifier)}`}</span
2601
2632
  >
2602
2633
  </span>
2603
2634
  </div>
2604
2635
  <div class="right">
2605
2636
  ${this.sortBy === "layerOrder" && !this.unstyled ? H` <div
2606
- class="drag-handle ${o.get("layerControlDisable") ? "disabled" : ""}"
2637
+ class="drag-handle ${s.get("layerControlDisable") ? "disabled" : ""}"
2607
2638
  >
2608
2639
  <span>=</span>
2609
2640
  </div>` : w}
@@ -2614,43 +2645,51 @@ let k = class extends St {
2614
2645
  <eox-layerconfig
2615
2646
  .layerConfig="${this.layerConfig}"
2616
2647
  .layerControl="${this}"
2617
- .layer=${o}
2648
+ .layer=${s}
2618
2649
  .external=${this.externalLayerConfig}
2619
2650
  .unstyled="${this.unstyled}"
2651
+ @removeLayer=${() => {
2652
+ d.remove(s);
2653
+ const c = this.renderRoot.querySelector(
2654
+ `[data-layer='${s.get(this.layerIdentifier)}'`
2655
+ );
2656
+ c.parentNode.removeChild(c);
2657
+ }}
2620
2658
  ></eox-layerconfig>
2621
2659
  ` : w}
2622
- ${this.externalLayerConfig && ((s = o.style_) != null && s.color) ? H`
2623
- <button @click=${() => this._emitLayerconfig(o)}>
2660
+ ${this.externalLayerConfig && ((u = s.style_) != null && u.color) ? H`
2661
+ <button @click=${() => this._emitLayerconfig(s)}>
2624
2662
  configure
2625
2663
  </button>
2626
2664
  ` : w}
2627
- ${o.getLayers ? H`
2628
- ${n(
2665
+ ${s.getLayers ? H`
2666
+ ${o(
2629
2667
  this.preFilterLayers(
2630
2668
  [
2631
- ...o.getLayers().getArray()
2669
+ ...s.getLayers().getArray()
2632
2670
  ].reverse()
2633
2671
  ),
2634
- o.get(this.layerIdentifier)
2672
+ s.get(this.layerIdentifier),
2673
+ s.getLayers()
2635
2674
  )}
2636
2675
  ` : w}
2637
2676
  </details>
2638
2677
  `;
2639
- }, n = (o, a) => H`
2640
- <ul data-group="${a ?? w}">
2678
+ }, o = (s, l, d) => H`
2679
+ <ul data-group="${l ?? w}">
2641
2680
  ${Ve(
2642
- o,
2643
- (s) => s.get(this.layerIdentifier),
2644
- (s) => {
2645
- var l;
2681
+ s,
2682
+ (u) => u.get(this.layerIdentifier),
2683
+ (u) => {
2684
+ var c;
2646
2685
  return H`
2647
2686
  <li
2648
- data-layer="${s.get(this.layerIdentifier)}"
2649
- data-disabled="${s.get("layerControlDisable") || w}"
2650
- data-type="${this.getLayerType(s, this.olMap)}"
2651
- data-layerconfig="${((l = this.layerConfig) == null ? void 0 : l.length) > 0}"
2687
+ data-layer="${u.get(this.layerIdentifier)}"
2688
+ data-disabled="${u.get("layerControlDisable") || w}"
2689
+ data-type="${this.getLayerType(u, this.olMap)}"
2690
+ data-layerconfig="${((c = this.layerConfig) == null ? void 0 : c.length) > 0}"
2652
2691
  >
2653
- ${e(s, a)}
2692
+ ${r(u, l, d)}
2654
2693
  </li>
2655
2694
  `;
2656
2695
  }
@@ -2666,12 +2705,14 @@ let k = class extends St {
2666
2705
  <slot></slot>
2667
2706
  ${this.layerCollection.getArray().length > 10 ? H`<input type="text" placeholder="Find layer" />` : w}
2668
2707
  <div class="layers">
2669
- ${n(
2670
- this.preFilterLayers(t.getArray())
2708
+ ${o(
2709
+ this.preFilterLayers(t.getArray()),
2710
+ null,
2711
+ this.layerCollection
2671
2712
  )}
2672
2713
  </div>
2673
- ${Pi(
2674
- ((r = this.optionalLayerArray) == null ? void 0 : r.length) > 0,
2714
+ ${Mi(
2715
+ ((a = this.optionalLayerArray) == null ? void 0 : a.length) > 0,
2675
2716
  () => H`
2676
2717
  <label for="optional">Optional layers</label>
2677
2718
 
@@ -2680,30 +2721,30 @@ let k = class extends St {
2680
2721
  -- select an optional layer to add --
2681
2722
  </option>
2682
2723
  ${this.optionalLayerArray.map(
2683
- (o) => H`
2684
- <option value="${o.get(this.layerIdentifier)}">
2685
- ${o.get(this.layerTitle) || `layer ${o.get(this.layerIdentifier)}`}
2724
+ (s) => H`
2725
+ <option value="${s.get(this.layerIdentifier)}">
2726
+ ${s.get(this.layerTitle) || `layer ${s.get(this.layerIdentifier)}`}
2686
2727
  </option>
2687
2728
  `
2688
2729
  )}
2689
2730
  </select>
2690
2731
  <button
2691
2732
  @click="${() => {
2692
- const o = this.optionalLayerArray.find(
2693
- (a) => a.get(this.layerIdentifier) === this.shadowRoot.querySelector("select[name=optional]").value
2733
+ const s = this.optionalLayerArray.find(
2734
+ (l) => l.get(this.layerIdentifier) === this.shadowRoot.querySelector("select[name=optional]").value
2694
2735
  );
2695
- if (o.get("group")) {
2696
- const a = this.findLayerById(
2736
+ if (s.get("_group_id")) {
2737
+ const l = this.findLayerById(
2697
2738
  this.layerCollection.getArray(),
2698
- o.get("group")
2739
+ s.get("_group_id")
2699
2740
  );
2700
- a.getLayers().remove(o), a.getLayers().insertAt(a.getLayers().getLength(), o);
2741
+ l.getLayers().remove(s), l.getLayers().insertAt(l.getLayers().getLength(), s);
2701
2742
  } else
2702
- this.layerCollection.remove(o), this.layerCollection.insertAt(
2743
+ this.layerCollection.remove(s), this.layerCollection.insertAt(
2703
2744
  this.layerCollection.getLength(),
2704
- o
2745
+ s
2705
2746
  );
2706
- o.set("layerControlOptional", !1), o.setVisible(!0);
2747
+ s.set("layerControlOptional", !1), s.setVisible(!0);
2707
2748
  }}"
2708
2749
  >
2709
2750
  add
@@ -2724,21 +2765,30 @@ let k = class extends St {
2724
2765
  animation: 150,
2725
2766
  easing: "cubic-bezier(1, 0, 0, 1)",
2726
2767
  store: {
2727
- get: () => e ? [
2728
- ...this.findLayerById(
2729
- this.layerCollection.getArray(),
2730
- e
2731
- ).getLayers().getArray().map((o) => o.get(this.layerIdentifier))
2732
- ].reverse() : [
2733
- ...this.layerCollection.getArray().map((n) => n.get(this.layerIdentifier))
2734
- ].reverse(),
2768
+ get: () => {
2769
+ if (e) {
2770
+ const n = this.findLayerById(
2771
+ this.layerCollection.getArray(),
2772
+ e
2773
+ );
2774
+ return n ? [
2775
+ ...n.getLayers().getArray().map((o) => o.get(this.layerIdentifier))
2776
+ ].reverse() : void 0;
2777
+ } else
2778
+ return [
2779
+ ...this.layerCollection.getArray().map((n) => n.get(this.layerIdentifier))
2780
+ ].reverse();
2781
+ },
2735
2782
  set: (n) => {
2736
2783
  n.toArray().reverse().forEach((o, a) => {
2737
2784
  if (e) {
2738
- const l = this.findLayerById(
2785
+ const s = this.findLayerById(
2739
2786
  this.layerCollection.getArray(),
2740
2787
  e
2741
- ).getLayers(), d = this.findLayerById(
2788
+ );
2789
+ if (!s)
2790
+ return;
2791
+ const l = s.getLayers(), d = this.findLayerById(
2742
2792
  l.getArray(),
2743
2793
  o
2744
2794
  );
@@ -2758,46 +2808,40 @@ let k = class extends St {
2758
2808
  });
2759
2809
  }
2760
2810
  };
2761
- $([
2762
- Et()
2763
- ], k.prototype, "olMap", 2);
2764
- $([
2765
- Et()
2766
- ], k.prototype, "layerCollection", 2);
2767
- $([
2768
- Et()
2769
- ], k.prototype, "layerArray", 2);
2770
- $([
2771
- Et()
2772
- ], k.prototype, "optionalLayerArray", 2);
2773
- $([
2774
- Et()
2775
- ], k.prototype, "resizeObserver", 2);
2776
- $([
2777
- N()
2778
- ], k.prototype, "for", 2);
2779
- $([
2780
- N()
2781
- ], k.prototype, "layerIdentifier", 2);
2782
- $([
2783
- N()
2784
- ], k.prototype, "layerTitle", 2);
2785
- $([
2786
- N()
2787
- ], k.prototype, "sortBy", 2);
2788
- $([
2789
- N({ type: Array })
2790
- ], k.prototype, "layerConfig", 2);
2791
- $([
2792
- N({ type: Boolean })
2793
- ], k.prototype, "externalLayerConfig", 2);
2794
- $([
2795
- N({ type: Boolean })
2796
- ], k.prototype, "unstyled", 2);
2797
- k = $([
2811
+ D([
2812
+ qt()
2813
+ ], j.prototype, "olMap", 2);
2814
+ D([
2815
+ qt()
2816
+ ], j.prototype, "layerCollection", 2);
2817
+ D([
2818
+ qt()
2819
+ ], j.prototype, "optionalLayerArray", 2);
2820
+ D([
2821
+ k()
2822
+ ], j.prototype, "for", 2);
2823
+ D([
2824
+ k()
2825
+ ], j.prototype, "layerIdentifier", 2);
2826
+ D([
2827
+ k()
2828
+ ], j.prototype, "layerTitle", 2);
2829
+ D([
2830
+ k()
2831
+ ], j.prototype, "sortBy", 2);
2832
+ D([
2833
+ k({ type: Array })
2834
+ ], j.prototype, "layerConfig", 2);
2835
+ D([
2836
+ k({ type: Boolean })
2837
+ ], j.prototype, "externalLayerConfig", 2);
2838
+ D([
2839
+ k({ type: Boolean })
2840
+ ], j.prototype, "unstyled", 2);
2841
+ j = D([
2798
2842
  Oi("eox-layercontrol")
2799
- ], k);
2800
- let Q = class extends St {
2843
+ ], j);
2844
+ let Q = class extends $t {
2801
2845
  constructor() {
2802
2846
  super(...arguments), this._configList = {};
2803
2847
  }
@@ -2828,11 +2872,18 @@ let Q = class extends St {
2828
2872
  ${Gi}
2829
2873
  ${!this.unstyled && Zi}
2830
2874
  </style>
2831
- ${Pi(
2875
+ ${Mi(
2832
2876
  this._currentLayer,
2833
2877
  () => H`
2834
2878
  <div>
2835
2879
  <slot></slot>
2880
+ <div class="slider-control">
2881
+ <div class="slider-property">Remove</div>
2882
+ <button
2883
+ class="delete"
2884
+ @click="${() => this.dispatchEvent(new CustomEvent("removeLayer"))}"
2885
+ ></button>
2886
+ </div>
2836
2887
  ${this.for ? H`layer: ${this._currentLayer.get("name")}` : w}
2837
2888
  ${Ve(
2838
2889
  this.layerConfig.filter(
@@ -2880,34 +2931,34 @@ let Q = class extends St {
2880
2931
  `;
2881
2932
  }
2882
2933
  };
2883
- $([
2884
- N()
2934
+ D([
2935
+ k()
2885
2936
  ], Q.prototype, "for", 2);
2886
- $([
2887
- N({ type: Array })
2937
+ D([
2938
+ k({ type: Array })
2888
2939
  ], Q.prototype, "layerConfig", 2);
2889
- $([
2890
- N({ type: Object, attribute: !1 })
2940
+ D([
2941
+ k({ type: Object, attribute: !1 })
2891
2942
  ], Q.prototype, "layerControl", 2);
2892
- $([
2893
- N({ type: Object, attribute: !1 })
2943
+ D([
2944
+ k({ type: Object, attribute: !1 })
2894
2945
  ], Q.prototype, "layer", 2);
2895
- $([
2896
- N({ type: Boolean })
2946
+ D([
2947
+ k({ type: Boolean })
2897
2948
  ], Q.prototype, "external", 2);
2898
- $([
2899
- N({ type: Boolean })
2949
+ D([
2950
+ k({ type: Boolean })
2900
2951
  ], Q.prototype, "unstyled", 2);
2901
- $([
2902
- Et()
2952
+ D([
2953
+ qt()
2903
2954
  ], Q.prototype, "_currentLayer", 2);
2904
- $([
2905
- Et()
2955
+ D([
2956
+ qt()
2906
2957
  ], Q.prototype, "_configList", 2);
2907
- Q = $([
2958
+ Q = D([
2908
2959
  Oi("eox-layerconfig")
2909
2960
  ], Q);
2910
2961
  export {
2911
2962
  Q as EOxLayerConfig,
2912
- k as EOxLayerControl
2963
+ j as EOxLayerControl
2913
2964
  };