@eox/layercontrol 0.20.1-dev.1726221051.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,27 +1,27 @@
1
- var Bo = Object.defineProperty;
2
- var Kn = (e) => {
1
+ var jo = Object.defineProperty;
2
+ var ei = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var Vo = (e, t, n) => t in e ? Bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var N = (e, t, n) => Vo(e, typeof t != "symbol" ? t + "" : t, n), pn = (e, t, n) => t.has(e) || Kn("Cannot " + n);
7
- var P = (e, t, n) => (pn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), T = (e, t, n) => t.has(e) ? Kn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Kt = (e, t, n, i) => (pn(e, t, "write to private field"), i ? i.call(e, n) : t.set(e, n), n), B = (e, t, n) => (pn(e, t, "access private method"), n);
5
+ var Zo = (e, t, n) => t in e ? jo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
+ var L = (e, t, n) => Zo(e, typeof t != "symbol" ? t + "" : t, n), fn = (e, t, n) => t.has(e) || ei("Cannot " + n);
7
+ var P = (e, t, n) => (fn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), T = (e, t, n) => t.has(e) ? ei("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Qt = (e, t, n, i) => (fn(e, t, "write to private field"), i ? i.call(e, n) : t.set(e, n), n), B = (e, t, n) => (fn(e, t, "access private method"), n);
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2019 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const Ce = globalThis, Ln = Ce.ShadowRoot && (Ce.ShadyCSS === void 0 || Ce.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, _i = Symbol(), Qn = /* @__PURE__ */ new WeakMap();
14
- let Lo = class {
13
+ const Te = globalThis, Fn = Te.ShadowRoot && (Te.ShadyCSS === void 0 || Te.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Di = Symbol(), ni = /* @__PURE__ */ new WeakMap();
14
+ let zo = class {
15
15
  constructor(t, n, i) {
16
- if (this._$cssResult$ = !0, i !== _i) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
16
+ if (this._$cssResult$ = !0, i !== Di) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
17
17
  this.cssText = t, this.t = n;
18
18
  }
19
19
  get styleSheet() {
20
20
  let t = this.o;
21
21
  const n = this.t;
22
- if (Ln && t === void 0) {
22
+ if (Fn && t === void 0) {
23
23
  const i = n !== void 0 && n.length === 1;
24
- i && (t = Qn.get(n)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Qn.set(n, t));
24
+ i && (t = ni.get(n)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && ni.set(n, t));
25
25
  }
26
26
  return t;
27
27
  }
@@ -29,26 +29,26 @@ let Lo = class {
29
29
  return this.cssText;
30
30
  }
31
31
  };
32
- const Uo = (e) => new Lo(typeof e == "string" ? e : e + "", void 0, _i), ko = (e, t) => {
33
- if (Ln) e.adoptedStyleSheets = t.map((n) => n instanceof CSSStyleSheet ? n : n.styleSheet);
32
+ const Xo = (e) => new zo(typeof e == "string" ? e : e + "", void 0, Di), qo = (e, t) => {
33
+ if (Fn) e.adoptedStyleSheets = t.map((n) => n instanceof CSSStyleSheet ? n : n.styleSheet);
34
34
  else for (const n of t) {
35
- const i = document.createElement("style"), o = Ce.litNonce;
35
+ const i = document.createElement("style"), o = Te.litNonce;
36
36
  o !== void 0 && i.setAttribute("nonce", o), i.textContent = n.cssText, e.appendChild(i);
37
37
  }
38
- }, ti = Ln ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
38
+ }, ii = Fn ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
39
39
  let n = "";
40
40
  for (const i of t.cssRules) n += i.cssText;
41
- return Uo(n);
41
+ return Xo(n);
42
42
  })(e) : e;
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: Fo, defineProperty: jo, getOwnPropertyDescriptor: Zo, getOwnPropertyNames: zo, getOwnPropertySymbols: Xo, getPrototypeOf: qo } = Object, At = globalThis, ei = At.trustedTypes, Yo = ei ? ei.emptyScript : "", fn = At.reactiveElementPolyfillSupport, oe = (e, t) => e, On = { toAttribute(e, t) {
48
+ const { is: Yo, defineProperty: Wo, getOwnPropertyDescriptor: Go, getOwnPropertyNames: Jo, getOwnPropertySymbols: Ko, getPrototypeOf: Qo } = Object, Ct = globalThis, oi = Ct.trustedTypes, tr = oi ? oi.emptyScript : "", gn = Ct.reactiveElementPolyfillSupport, re = (e, t) => e, Mn = { toAttribute(e, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
- e = e ? Yo : null;
51
+ e = e ? tr : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
@@ -73,8 +73,8 @@ const { is: Fo, defineProperty: jo, getOwnPropertyDescriptor: Zo, getOwnProperty
73
73
  }
74
74
  }
75
75
  return n;
76
- } }, Ai = (e, t) => !Fo(e, t), ni = { attribute: !0, type: String, converter: On, reflect: !1, hasChanged: Ai };
77
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), At.litPropertyMetadata ?? (At.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
76
+ } }, Ri = (e, t) => !Yo(e, t), ri = { attribute: !0, type: String, converter: Mn, reflect: !1, hasChanged: Ri };
77
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Ct.litPropertyMetadata ?? (Ct.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
78
  class Ut extends HTMLElement {
79
79
  static addInitializer(t) {
80
80
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
@@ -82,14 +82,14 @@ class Ut extends HTMLElement {
82
82
  static get observedAttributes() {
83
83
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
84
  }
85
- static createProperty(t, n = ni) {
85
+ static createProperty(t, n = ri) {
86
86
  if (n.state && (n.attribute = !1), this._$Ei(), this.elementProperties.set(t, n), !n.noAccessor) {
87
87
  const i = Symbol(), o = this.getPropertyDescriptor(t, i, n);
88
- o !== void 0 && jo(this.prototype, t, o);
88
+ o !== void 0 && Wo(this.prototype, t, o);
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(t, n, i) {
92
- const { get: o, set: r } = Zo(this.prototype, t) ?? { get() {
92
+ const { get: o, set: r } = Go(this.prototype, t) ?? { get() {
93
93
  return this[n];
94
94
  }, set(s) {
95
95
  this[n] = s;
@@ -102,17 +102,17 @@ class Ut extends HTMLElement {
102
102
  }, configurable: !0, enumerable: !0 };
103
103
  }
104
104
  static getPropertyOptions(t) {
105
- return this.elementProperties.get(t) ?? ni;
105
+ return this.elementProperties.get(t) ?? ri;
106
106
  }
107
107
  static _$Ei() {
108
- if (this.hasOwnProperty(oe("elementProperties"))) return;
109
- const t = qo(this);
108
+ if (this.hasOwnProperty(re("elementProperties"))) return;
109
+ const t = Qo(this);
110
110
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
111
111
  }
112
112
  static finalize() {
113
- if (this.hasOwnProperty(oe("finalized"))) return;
114
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(oe("properties"))) {
115
- const n = this.properties, i = [...zo(n), ...Xo(n)];
113
+ if (this.hasOwnProperty(re("finalized"))) return;
114
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(re("properties"))) {
115
+ const n = this.properties, i = [...Jo(n), ...Ko(n)];
116
116
  for (const o of i) this.createProperty(o, n[o]);
117
117
  }
118
118
  const t = this[Symbol.metadata];
@@ -131,8 +131,8 @@ class Ut extends HTMLElement {
131
131
  const n = [];
132
132
  if (Array.isArray(t)) {
133
133
  const i = new Set(t.flat(1 / 0).reverse());
134
- for (const o of i) n.unshift(ti(o));
135
- } else t !== void 0 && n.push(ti(t));
134
+ for (const o of i) n.unshift(ii(o));
135
+ } else t !== void 0 && n.push(ii(t));
136
136
  return n;
137
137
  }
138
138
  static _$Eu(t, n) {
@@ -161,7 +161,7 @@ class Ut extends HTMLElement {
161
161
  }
162
162
  createRenderRoot() {
163
163
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
164
- return ko(t, this.constructor.elementStyles), t;
164
+ return qo(t, this.constructor.elementStyles), t;
165
165
  }
166
166
  connectedCallback() {
167
167
  var t;
@@ -186,7 +186,7 @@ class Ut extends HTMLElement {
186
186
  var r;
187
187
  const i = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, i);
188
188
  if (o !== void 0 && i.reflect === !0) {
189
- const s = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : On).toAttribute(n, i.type);
189
+ const s = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : Mn).toAttribute(n, i.type);
190
190
  this._$Em = t, s == null ? this.removeAttribute(o) : this.setAttribute(o, s), this._$Em = null;
191
191
  }
192
192
  }
@@ -194,13 +194,13 @@ class Ut extends HTMLElement {
194
194
  var r;
195
195
  const i = this.constructor, o = i._$Eh.get(t);
196
196
  if (o !== void 0 && this._$Em !== o) {
197
- const s = i.getPropertyOptions(o), a = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((r = s.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? s.converter : On;
197
+ const s = i.getPropertyOptions(o), a = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((r = s.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? s.converter : Mn;
198
198
  this._$Em = o, this[o] = a.fromAttribute(n, s.type), this._$Em = null;
199
199
  }
200
200
  }
201
201
  requestUpdate(t, n, i) {
202
202
  if (t !== void 0) {
203
- if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Ai)(this[t], n)) return;
203
+ if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Ri)(this[t], n)) return;
204
204
  this.P(t, n, i);
205
205
  }
206
206
  this.isUpdatePending === !1 && (this._$ES = this._$ET());
@@ -273,76 +273,76 @@ class Ut extends HTMLElement {
273
273
  firstUpdated(t) {
274
274
  }
275
275
  }
276
- Ut.elementStyles = [], Ut.shadowRootOptions = { mode: "open" }, Ut[oe("elementProperties")] = /* @__PURE__ */ new Map(), Ut[oe("finalized")] = /* @__PURE__ */ new Map(), fn == null || fn({ ReactiveElement: Ut }), (At.reactiveElementVersions ?? (At.reactiveElementVersions = [])).push("2.0.4");
276
+ Ut.elementStyles = [], Ut.shadowRootOptions = { mode: "open" }, Ut[re("elementProperties")] = /* @__PURE__ */ new Map(), Ut[re("finalized")] = /* @__PURE__ */ new Map(), gn == null || gn({ ReactiveElement: Ut }), (Ct.reactiveElementVersions ?? (Ct.reactiveElementVersions = [])).push("2.0.4");
277
277
  /**
278
278
  * @license
279
279
  * Copyright 2017 Google LLC
280
280
  * SPDX-License-Identifier: BSD-3-Clause
281
281
  */
282
- const re = globalThis, He = re.trustedTypes, ii = He ? He.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Un = "$lit$", pt = `lit$${Math.random().toFixed(9).slice(2)}$`, kn = "?" + pt, Wo = `<${kn}>`, Ht = document, ce = () => Ht.createComment(""), he = (e) => e === null || typeof e != "object" && typeof e != "function", Fn = Array.isArray, Ci = (e) => Fn(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", gn = `[
283
- \f\r]`, Qt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, oi = /-->/g, ri = />/g, Pt = RegExp(`>|${gn}(?:([^\\s"'>=/]+)(${gn}*=${gn}*(?:[^
284
- \f\r"'\`<>=]|("|')|))|$)`, "g"), si = /'/g, ai = /"/g, Ti = /^(?:script|style|textarea|title)$/i, Go = (e) => (t, ...n) => ({ _$litType$: e, strings: t, values: n }), E = Go(1), rt = Symbol.for("lit-noChange"), C = Symbol.for("lit-nothing"), li = /* @__PURE__ */ new WeakMap(), Nt = Ht.createTreeWalker(Ht, 129);
285
- function Pi(e, t) {
286
- if (!Fn(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
- return ii !== void 0 ? ii.createHTML(t) : t;
288
- }
289
- const Di = (e, t) => {
282
+ const se = globalThis, Le = se.trustedTypes, si = Le ? Le.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, jn = "$lit$", pt = `lit$${Math.random().toFixed(9).slice(2)}$`, Zn = "?" + pt, er = `<${Zn}>`, Lt = document, he = () => Lt.createComment(""), pe = (e) => e === null || typeof e != "object" && typeof e != "function", zn = Array.isArray, Mi = (e) => zn(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", mn = `[
283
+ \f\r]`, te = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ai = /-->/g, li = />/g, Ot = RegExp(`>|${mn}(?:([^\\s"'>=/]+)(${mn}*=${mn}*(?:[^
284
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), ui = /'/g, ci = /"/g, Ii = /^(?:script|style|textarea|title)$/i, nr = (e) => (t, ...n) => ({ _$litType$: e, strings: t, values: n }), x = nr(1), at = Symbol.for("lit-noChange"), C = Symbol.for("lit-nothing"), di = /* @__PURE__ */ new WeakMap(), Nt = Lt.createTreeWalker(Lt, 129);
285
+ function Ni(e, t) {
286
+ if (!zn(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
+ return si !== void 0 ? si.createHTML(t) : t;
288
+ }
289
+ const Hi = (e, t) => {
290
290
  const n = e.length - 1, i = [];
291
- let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = Qt;
291
+ let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = te;
292
292
  for (let a = 0; a < n; a++) {
293
293
  const l = e[a];
294
- let d, c, u = -1, p = 0;
295
- for (; p < l.length && (s.lastIndex = p, c = s.exec(l), c !== null); ) p = s.lastIndex, s === Qt ? c[1] === "!--" ? s = oi : c[1] !== void 0 ? s = ri : c[2] !== void 0 ? (Ti.test(c[2]) && (o = RegExp("</" + c[2], "g")), s = Pt) : c[3] !== void 0 && (s = Pt) : s === Pt ? c[0] === ">" ? (s = o ?? Qt, u = -1) : c[1] === void 0 ? u = -2 : (u = s.lastIndex - c[2].length, d = c[1], s = c[3] === void 0 ? Pt : c[3] === '"' ? ai : si) : s === ai || s === si ? s = Pt : s === oi || s === ri ? s = Qt : (s = Pt, o = void 0);
296
- const f = s === Pt && e[a + 1].startsWith("/>") ? " " : "";
297
- r += s === Qt ? l + Wo : u >= 0 ? (i.push(d), l.slice(0, u) + Un + l.slice(u) + pt + f) : l + pt + (u === -2 ? a : f);
294
+ let u, d, c = -1, p = 0;
295
+ for (; p < l.length && (s.lastIndex = p, d = s.exec(l), d !== null); ) p = s.lastIndex, s === te ? d[1] === "!--" ? s = ai : d[1] !== void 0 ? s = li : d[2] !== void 0 ? (Ii.test(d[2]) && (o = RegExp("</" + d[2], "g")), s = Ot) : d[3] !== void 0 && (s = Ot) : s === Ot ? d[0] === ">" ? (s = o ?? te, c = -1) : d[1] === void 0 ? c = -2 : (c = s.lastIndex - d[2].length, u = d[1], s = d[3] === void 0 ? Ot : d[3] === '"' ? ci : ui) : s === ci || s === ui ? s = Ot : s === ai || s === li ? s = te : (s = Ot, o = void 0);
296
+ const f = s === Ot && e[a + 1].startsWith("/>") ? " " : "";
297
+ r += s === te ? l + er : c >= 0 ? (i.push(u), l.slice(0, c) + jn + l.slice(c) + pt + f) : l + pt + (c === -2 ? a : f);
298
298
  }
299
- return [Pi(e, r + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
299
+ return [Ni(e, r + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
300
300
  };
301
- class pe {
301
+ class fe {
302
302
  constructor({ strings: t, _$litType$: n }, i) {
303
303
  let o;
304
304
  this.parts = [];
305
305
  let r = 0, s = 0;
306
- const a = t.length - 1, l = this.parts, [d, c] = Di(t, n);
307
- if (this.el = pe.createElement(d, i), Nt.currentNode = this.el.content, n === 2 || n === 3) {
308
- const u = this.el.content.firstChild;
309
- u.replaceWith(...u.childNodes);
306
+ const a = t.length - 1, l = this.parts, [u, d] = Hi(t, n);
307
+ if (this.el = fe.createElement(u, i), Nt.currentNode = this.el.content, n === 2 || n === 3) {
308
+ const c = this.el.content.firstChild;
309
+ c.replaceWith(...c.childNodes);
310
310
  }
311
311
  for (; (o = Nt.nextNode()) !== null && l.length < a; ) {
312
312
  if (o.nodeType === 1) {
313
- if (o.hasAttributes()) for (const u of o.getAttributeNames()) if (u.endsWith(Un)) {
314
- const p = c[s++], f = o.getAttribute(u).split(pt), g = /([.?@])?(.*)/.exec(p);
315
- l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Mi : g[1] === "?" ? Ni : g[1] === "@" ? Ii : be }), o.removeAttribute(u);
316
- } else u.startsWith(pt) && (l.push({ type: 6, index: r }), o.removeAttribute(u));
317
- if (Ti.test(o.tagName)) {
318
- const u = o.textContent.split(pt), p = u.length - 1;
313
+ if (o.hasAttributes()) for (const c of o.getAttributeNames()) if (c.endsWith(jn)) {
314
+ const p = d[s++], f = o.getAttribute(c).split(pt), g = /([.?@])?(.*)/.exec(p);
315
+ l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Vi : g[1] === "?" ? ki : g[1] === "@" ? Ui : we }), o.removeAttribute(c);
316
+ } else c.startsWith(pt) && (l.push({ type: 6, index: r }), o.removeAttribute(c));
317
+ if (Ii.test(o.tagName)) {
318
+ const c = o.textContent.split(pt), p = c.length - 1;
319
319
  if (p > 0) {
320
- o.textContent = He ? He.emptyScript : "";
321
- for (let f = 0; f < p; f++) o.append(u[f], ce()), Nt.nextNode(), l.push({ type: 2, index: ++r });
322
- o.append(u[p], ce());
320
+ o.textContent = Le ? Le.emptyScript : "";
321
+ for (let f = 0; f < p; f++) o.append(c[f], he()), Nt.nextNode(), l.push({ type: 2, index: ++r });
322
+ o.append(c[p], he());
323
323
  }
324
324
  }
325
- } else if (o.nodeType === 8) if (o.data === kn) l.push({ type: 2, index: r });
325
+ } else if (o.nodeType === 8) if (o.data === Zn) l.push({ type: 2, index: r });
326
326
  else {
327
- let u = -1;
328
- for (; (u = o.data.indexOf(pt, u + 1)) !== -1; ) l.push({ type: 7, index: r }), u += pt.length - 1;
327
+ let c = -1;
328
+ for (; (c = o.data.indexOf(pt, c + 1)) !== -1; ) l.push({ type: 7, index: r }), c += pt.length - 1;
329
329
  }
330
330
  r++;
331
331
  }
332
332
  }
333
333
  static createElement(t, n) {
334
- const i = Ht.createElement("template");
334
+ const i = Lt.createElement("template");
335
335
  return i.innerHTML = t, i;
336
336
  }
337
337
  }
338
338
  function Bt(e, t, n = e, i) {
339
339
  var s, a;
340
- if (t === rt) return t;
340
+ if (t === at) return t;
341
341
  let o = i !== void 0 ? (s = n.o) == null ? void 0 : s[i] : n.l;
342
- const r = he(t) ? void 0 : t._$litDirective$;
342
+ const r = pe(t) ? void 0 : t._$litDirective$;
343
343
  return (o == null ? void 0 : o.constructor) !== r && ((a = o == null ? void 0 : o._$AO) == null || a.call(o, !1), r === void 0 ? o = void 0 : (o = new r(e), o._$AT(e, n, i)), i !== void 0 ? (n.o ?? (n.o = []))[i] = o : n.l = o), o !== void 0 && (t = Bt(e, o._$AS(e, t.values), o, i)), t;
344
344
  }
345
- class Oi {
345
+ class Li {
346
346
  constructor(t, n) {
347
347
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = n;
348
348
  }
@@ -353,24 +353,24 @@ class Oi {
353
353
  return this._$AM._$AU;
354
354
  }
355
355
  u(t) {
356
- const { el: { content: n }, parts: i } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? Ht).importNode(n, !0);
356
+ const { el: { content: n }, parts: i } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? Lt).importNode(n, !0);
357
357
  Nt.currentNode = o;
358
358
  let r = Nt.nextNode(), s = 0, a = 0, l = i[0];
359
359
  for (; l !== void 0; ) {
360
360
  if (s === l.index) {
361
- let d;
362
- l.type === 2 ? d = new un(r, r.nextSibling, this, t) : l.type === 1 ? d = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (d = new Hi(r, this, t)), this._$AV.push(d), l = i[++a];
361
+ let u;
362
+ l.type === 2 ? u = new dn(r, r.nextSibling, this, t) : l.type === 1 ? u = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (u = new Fi(r, this, t)), this._$AV.push(u), l = i[++a];
363
363
  }
364
364
  s !== (l == null ? void 0 : l.index) && (r = Nt.nextNode(), s++);
365
365
  }
366
- return Nt.currentNode = Ht, o;
366
+ return Nt.currentNode = Lt, o;
367
367
  }
368
368
  p(t) {
369
369
  let n = 0;
370
370
  for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, n), n += i.strings.length - 2) : i._$AI(t[n])), n++;
371
371
  }
372
372
  }
373
- let un = class Ri {
373
+ let dn = class Bi {
374
374
  get _$AU() {
375
375
  var t;
376
376
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this.v;
@@ -390,7 +390,7 @@ let un = class Ri {
390
390
  return this._$AB;
391
391
  }
392
392
  _$AI(t, n = this) {
393
- t = Bt(this, t, n), he(t) ? t === C || t == null || t === "" ? (this._$AH !== C && this._$AR(), this._$AH = C) : t !== this._$AH && t !== rt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ci(t) ? this.k(t) : this._(t);
393
+ t = Bt(this, t, n), pe(t) ? t === C || t == null || t === "" ? (this._$AH !== C && this._$AR(), this._$AH = C) : t !== this._$AH && t !== at && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Mi(t) ? this.k(t) : this._(t);
394
394
  }
395
395
  O(t) {
396
396
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -399,26 +399,26 @@ let un = class Ri {
399
399
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
400
400
  }
401
401
  _(t) {
402
- this._$AH !== C && he(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Ht.createTextNode(t)), this._$AH = t;
402
+ this._$AH !== C && pe(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Lt.createTextNode(t)), this._$AH = t;
403
403
  }
404
404
  $(t) {
405
405
  var r;
406
- const { values: n, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = pe.createElement(Pi(i.h, i.h[0]), this.options)), i);
406
+ const { values: n, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = fe.createElement(Ni(i.h, i.h[0]), this.options)), i);
407
407
  if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(n);
408
408
  else {
409
- const s = new Oi(o, this), a = s.u(this.options);
409
+ const s = new Li(o, this), a = s.u(this.options);
410
410
  s.p(n), this.T(a), this._$AH = s;
411
411
  }
412
412
  }
413
413
  _$AC(t) {
414
- let n = li.get(t.strings);
415
- return n === void 0 && li.set(t.strings, n = new pe(t)), n;
414
+ let n = di.get(t.strings);
415
+ return n === void 0 && di.set(t.strings, n = new fe(t)), n;
416
416
  }
417
417
  k(t) {
418
- Fn(this._$AH) || (this._$AH = [], this._$AR());
418
+ zn(this._$AH) || (this._$AH = [], this._$AR());
419
419
  const n = this._$AH;
420
420
  let i, o = 0;
421
- for (const r of t) o === n.length ? n.push(i = new Ri(this.O(ce()), this.O(ce()), this, this.options)) : i = n[o], i._$AI(r), o++;
421
+ for (const r of t) o === n.length ? n.push(i = new Bi(this.O(he()), this.O(he()), this, this.options)) : i = n[o], i._$AI(r), o++;
422
422
  o < n.length && (this._$AR(i && i._$AB.nextSibling, o), n.length = o);
423
423
  }
424
424
  _$AR(t = this._$AA.nextSibling, n) {
@@ -433,7 +433,7 @@ let un = class Ri {
433
433
  this._$AM === void 0 && (this.v = t, (n = this._$AP) == null || n.call(this, t));
434
434
  }
435
435
  };
436
- class be {
436
+ class we {
437
437
  get tagName() {
438
438
  return this.element.tagName;
439
439
  }
@@ -446,11 +446,11 @@ class be {
446
446
  _$AI(t, n = this, i, o) {
447
447
  const r = this.strings;
448
448
  let s = !1;
449
- if (r === void 0) t = Bt(this, t, n, 0), s = !he(t) || t !== this._$AH && t !== rt, s && (this._$AH = t);
449
+ if (r === void 0) t = Bt(this, t, n, 0), s = !pe(t) || t !== this._$AH && t !== at, s && (this._$AH = t);
450
450
  else {
451
451
  const a = t;
452
- let l, d;
453
- for (t = r[0], l = 0; l < r.length - 1; l++) d = Bt(this, a[i + l], n, l), d === rt && (d = this._$AH[l]), s || (s = !he(d) || d !== this._$AH[l]), d === C ? t = C : t !== C && (t += (d ?? "") + r[l + 1]), this._$AH[l] = d;
452
+ let l, u;
453
+ for (t = r[0], l = 0; l < r.length - 1; l++) u = Bt(this, a[i + l], n, l), u === at && (u = this._$AH[l]), s || (s = !pe(u) || u !== this._$AH[l]), u === C ? t = C : t !== C && (t += (u ?? "") + r[l + 1]), this._$AH[l] = u;
454
454
  }
455
455
  s && !o && this.j(t);
456
456
  }
@@ -458,7 +458,7 @@ class be {
458
458
  t === C ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
459
459
  }
460
460
  }
461
- class Mi extends be {
461
+ class Vi extends we {
462
462
  constructor() {
463
463
  super(...arguments), this.type = 3;
464
464
  }
@@ -466,7 +466,7 @@ class Mi extends be {
466
466
  this.element[this.name] = t === C ? void 0 : t;
467
467
  }
468
468
  }
469
- class Ni extends be {
469
+ class ki extends we {
470
470
  constructor() {
471
471
  super(...arguments), this.type = 4;
472
472
  }
@@ -474,12 +474,12 @@ class Ni extends be {
474
474
  this.element.toggleAttribute(this.name, !!t && t !== C);
475
475
  }
476
476
  }
477
- class Ii extends be {
477
+ class Ui extends we {
478
478
  constructor(t, n, i, o, r) {
479
479
  super(t, n, i, o, r), this.type = 5;
480
480
  }
481
481
  _$AI(t, n = this) {
482
- if ((t = Bt(this, t, n, 0) ?? C) === rt) return;
482
+ if ((t = Bt(this, t, n, 0) ?? C) === at) return;
483
483
  const i = this._$AH, o = t === C && i !== C || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== C && (i === C || o);
484
484
  o && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
485
485
  }
@@ -488,7 +488,7 @@ class Ii extends be {
488
488
  typeof this._$AH == "function" ? this._$AH.call(((n = this.options) == null ? void 0 : n.host) ?? this.element, t) : this._$AH.handleEvent(t);
489
489
  }
490
490
  }
491
- class Hi {
491
+ class Fi {
492
492
  constructor(t, n, i) {
493
493
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = n, this.options = i;
494
494
  }
@@ -499,14 +499,14 @@ class Hi {
499
499
  Bt(this, t);
500
500
  }
501
501
  }
502
- const Jo = { M: Un, P: pt, A: kn, C: 1, L: Di, R: Oi, D: Ci, V: Bt, I: un, H: be, N: Ni, U: Ii, B: Mi, F: Hi }, mn = re.litHtmlPolyfillSupport;
503
- mn == null || mn(pe, un), (re.litHtmlVersions ?? (re.litHtmlVersions = [])).push("3.2.0");
504
- const Ko = (e, t, n) => {
502
+ const ir = { M: jn, P: pt, A: Zn, C: 1, L: Hi, R: Li, D: Mi, V: Bt, I: dn, H: we, N: ki, U: Ui, B: Vi, F: Fi }, yn = se.litHtmlPolyfillSupport;
503
+ yn == null || yn(fe, dn), (se.litHtmlVersions ?? (se.litHtmlVersions = [])).push("3.2.0");
504
+ const or = (e, t, n) => {
505
505
  const i = (n == null ? void 0 : n.renderBefore) ?? t;
506
506
  let o = i._$litPart$;
507
507
  if (o === void 0) {
508
508
  const r = (n == null ? void 0 : n.renderBefore) ?? null;
509
- i._$litPart$ = o = new un(t.insertBefore(ce(), r), r, void 0, n ?? {});
509
+ i._$litPart$ = o = new dn(t.insertBefore(he(), r), r, void 0, n ?? {});
510
510
  }
511
511
  return o._$AI(e), o;
512
512
  };
@@ -515,7 +515,7 @@ const Ko = (e, t, n) => {
515
515
  * Copyright 2017 Google LLC
516
516
  * SPDX-License-Identifier: BSD-3-Clause
517
517
  */
518
- class tt extends Ut {
518
+ class it extends Ut {
519
519
  constructor() {
520
520
  super(...arguments), this.renderOptions = { host: this }, this.o = void 0;
521
521
  }
@@ -526,7 +526,7 @@ class tt extends Ut {
526
526
  }
527
527
  update(t) {
528
528
  const n = this.render();
529
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this.o = Ko(n, this.renderRoot, this.renderOptions);
529
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this.o = or(n, this.renderRoot, this.renderOptions);
530
530
  }
531
531
  connectedCallback() {
532
532
  var t;
@@ -537,20 +537,20 @@ class tt extends Ut {
537
537
  super.disconnectedCallback(), (t = this.o) == null || t.setConnected(!1);
538
538
  }
539
539
  render() {
540
- return rt;
540
+ return at;
541
541
  }
542
542
  }
543
- var $i;
544
- tt._$litElement$ = !0, tt.finalized = !0, ($i = globalThis.litElementHydrateSupport) == null || $i.call(globalThis, { LitElement: tt });
545
- const yn = globalThis.litElementPolyfillSupport;
546
- yn == null || yn({ LitElement: tt });
543
+ var Oi;
544
+ it._$litElement$ = !0, it.finalized = !0, (Oi = globalThis.litElementHydrateSupport) == null || Oi.call(globalThis, { LitElement: it });
545
+ const bn = globalThis.litElementPolyfillSupport;
546
+ bn == null || bn({ LitElement: it });
547
547
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.0");
548
548
  /**
549
549
  * @license
550
550
  * Copyright 2021 Google LLC
551
551
  * SPDX-License-Identifier: BSD-3-Clause
552
552
  */
553
- function Y(e, t, n) {
553
+ function G(e, t, n) {
554
554
  return e ? t(e) : n == null ? void 0 : n(e);
555
555
  }
556
556
  /**
@@ -558,8 +558,8 @@ function Y(e, t, n) {
558
558
  * Copyright 2017 Google LLC
559
559
  * SPDX-License-Identifier: BSD-3-Clause
560
560
  */
561
- const Et = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, jn = (e) => (...t) => ({ _$litDirective$: e, values: t });
562
- class Zn {
561
+ const Et = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Xn = (e) => (...t) => ({ _$litDirective$: e, values: t });
562
+ class qn {
563
563
  constructor(t) {
564
564
  }
565
565
  get _$AU() {
@@ -580,28 +580,28 @@ class Zn {
580
580
  * Copyright 2020 Google LLC
581
581
  * SPDX-License-Identifier: BSD-3-Clause
582
582
  */
583
- const { I: Qo } = Jo, tr = (e) => e.strings === void 0, di = () => document.createComment(""), te = (e, t, n) => {
583
+ const { I: rr } = ir, sr = (e) => e.strings === void 0, hi = () => document.createComment(""), ee = (e, t, n) => {
584
584
  var r;
585
585
  const i = e._$AA.parentNode, o = t === void 0 ? e._$AB : t._$AA;
586
586
  if (n === void 0) {
587
- const s = i.insertBefore(di(), o), a = i.insertBefore(di(), o);
588
- n = new Qo(s, a, e, e.options);
587
+ const s = i.insertBefore(hi(), o), a = i.insertBefore(hi(), o);
588
+ n = new rr(s, a, e, e.options);
589
589
  } else {
590
590
  const s = n._$AB.nextSibling, a = n._$AM, l = a !== e;
591
591
  if (l) {
592
- let d;
593
- (r = n._$AQ) == null || r.call(n, e), n._$AM = e, n._$AP !== void 0 && (d = e._$AU) !== a._$AU && n._$AP(d);
592
+ let u;
593
+ (r = n._$AQ) == null || r.call(n, e), n._$AM = e, n._$AP !== void 0 && (u = e._$AU) !== a._$AU && n._$AP(u);
594
594
  }
595
595
  if (s !== o || l) {
596
- let d = n._$AA;
597
- for (; d !== s; ) {
598
- const c = d.nextSibling;
599
- i.insertBefore(d, o), d = c;
596
+ let u = n._$AA;
597
+ for (; u !== s; ) {
598
+ const d = u.nextSibling;
599
+ i.insertBefore(u, o), u = d;
600
600
  }
601
601
  }
602
602
  }
603
603
  return n;
604
- }, Dt = (e, t, n = e) => (e._$AI(t, n), e), er = {}, Bi = (e, t = er) => e._$AH = t, nr = (e) => e._$AH, bn = (e) => {
604
+ }, Dt = (e, t, n = e) => (e._$AI(t, n), e), ar = {}, ji = (e, t = ar) => e._$AH = t, lr = (e) => e._$AH, vn = (e) => {
605
605
  var i;
606
606
  (i = e._$AP) == null || i.call(e, !1, !0);
607
607
  let t = e._$AA;
@@ -616,11 +616,11 @@ const { I: Qo } = Jo, tr = (e) => e.strings === void 0, di = () => document.crea
616
616
  * Copyright 2017 Google LLC
617
617
  * SPDX-License-Identifier: BSD-3-Clause
618
618
  */
619
- const ui = (e, t, n) => {
619
+ const pi = (e, t, n) => {
620
620
  const i = /* @__PURE__ */ new Map();
621
621
  for (let o = t; o <= n; o++) i.set(e[o], o);
622
622
  return i;
623
- }, ir = jn(class extends Zn {
623
+ }, ur = Xn(class extends qn {
624
624
  constructor(e) {
625
625
  if (super(e), e.type !== Et.CHILD) throw Error("repeat() can only be used in text expressions");
626
626
  }
@@ -636,34 +636,34 @@ const ui = (e, t, n) => {
636
636
  return this.dt(e, t, n).values;
637
637
  }
638
638
  update(e, [t, n, i]) {
639
- const o = nr(e), { values: r, keys: s } = this.dt(t, n, i);
639
+ const o = lr(e), { values: r, keys: s } = this.dt(t, n, i);
640
640
  if (!Array.isArray(o)) return this.ut = s, r;
641
641
  const a = this.ut ?? (this.ut = []), l = [];
642
- let d, c, u = 0, p = o.length - 1, f = 0, g = r.length - 1;
643
- for (; u <= p && f <= g; ) if (o[u] === null) u++;
642
+ let u, d, c = 0, p = o.length - 1, f = 0, g = r.length - 1;
643
+ for (; c <= p && f <= g; ) if (o[c] === null) c++;
644
644
  else if (o[p] === null) p--;
645
- else if (a[u] === s[f]) l[f] = Dt(o[u], r[f]), u++, f++;
645
+ else if (a[c] === s[f]) l[f] = Dt(o[c], r[f]), c++, f++;
646
646
  else if (a[p] === s[g]) l[g] = Dt(o[p], r[g]), p--, g--;
647
- else if (a[u] === s[g]) l[g] = Dt(o[u], r[g]), te(e, l[g + 1], o[u]), u++, g--;
648
- else if (a[p] === s[f]) l[f] = Dt(o[p], r[f]), te(e, o[u], o[p]), p--, f++;
649
- else if (d === void 0 && (d = ui(s, f, g), c = ui(a, u, p)), d.has(a[u])) if (d.has(a[p])) {
650
- const y = c.get(s[f]), D = y !== void 0 ? o[y] : null;
651
- if (D === null) {
652
- const U = te(e, o[u]);
653
- Dt(U, r[f]), l[f] = U;
654
- } else l[f] = Dt(D, r[f]), te(e, o[u], D), o[y] = null;
647
+ else if (a[c] === s[g]) l[g] = Dt(o[c], r[g]), ee(e, l[g + 1], o[c]), c++, g--;
648
+ else if (a[p] === s[f]) l[f] = Dt(o[p], r[f]), ee(e, o[c], o[p]), p--, f++;
649
+ else if (u === void 0 && (u = pi(s, f, g), d = pi(a, c, p)), u.has(a[c])) if (u.has(a[p])) {
650
+ const y = d.get(s[f]), O = y !== void 0 ? o[y] : null;
651
+ if (O === null) {
652
+ const I = ee(e, o[c]);
653
+ Dt(I, r[f]), l[f] = I;
654
+ } else l[f] = Dt(O, r[f]), ee(e, o[c], O), o[y] = null;
655
655
  f++;
656
- } else bn(o[p]), p--;
657
- else bn(o[u]), u++;
656
+ } else vn(o[p]), p--;
657
+ else vn(o[c]), c++;
658
658
  for (; f <= g; ) {
659
- const y = te(e, l[g + 1]);
659
+ const y = ee(e, l[g + 1]);
660
660
  Dt(y, r[f]), l[f++] = y;
661
661
  }
662
- for (; u <= p; ) {
663
- const y = o[u++];
664
- y !== null && bn(y);
662
+ for (; c <= p; ) {
663
+ const y = o[c++];
664
+ y !== null && vn(y);
665
665
  }
666
- return this.ut = s, Bi(e, l), rt;
666
+ return this.ut = s, ji(e, l), at;
667
667
  }
668
668
  });
669
669
  /**
@@ -672,8 +672,8 @@ const ui = (e, t, n) => {
672
672
  * @license BSD-2-Clause
673
673
  * @preserve
674
674
  */
675
- var x = (e) => e !== void 0, Vi = (e, t, n) => t in e ? e[t] : e[t] = n;
676
- const fe = {
675
+ var S = (e) => e !== void 0, Zi = (e, t, n) => t in e ? e[t] : e[t] = n;
676
+ const ge = {
677
677
  ELEMENT: 1,
678
678
  ATTRIBUTE: 2,
679
679
  TEXT: 3,
@@ -687,7 +687,7 @@ const fe = {
687
687
  DOCUMENT_FRAGMENT: 11,
688
688
  NOTATION: 12
689
689
  };
690
- class or {
690
+ class cr {
691
691
  /**
692
692
  * XML DOM parser
693
693
  * @constructor
@@ -712,56 +712,56 @@ class or {
712
712
  * @api
713
713
  */
714
714
  getAllTextContent(t, n) {
715
- return cn(t, n).join("");
715
+ return hn(t, n).join("");
716
716
  }
717
717
  }
718
- function cn(e, t) {
719
- return Li(e, t, []).join("");
718
+ function hn(e, t) {
719
+ return zi(e, t, []).join("");
720
720
  }
721
- function Li(e, t, n) {
722
- if (e.nodeType === fe.CDATA_SECTION || e.nodeType === fe.TEXT)
721
+ function zi(e, t, n) {
722
+ if (e.nodeType === ge.CDATA_SECTION || e.nodeType === ge.TEXT)
723
723
  t ? n.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g, "")) : n.push(e.nodeValue);
724
724
  else {
725
725
  var i;
726
726
  for (i = e.firstChild; i; i = i.nextSibling)
727
- Li(i, t, n);
727
+ zi(i, t, n);
728
728
  }
729
729
  return n;
730
730
  }
731
- function rr(e, t, n, i) {
732
- for (var o = sr(t); o; o = ar(o)) {
731
+ function dr(e, t, n, i) {
732
+ for (var o = hr(t); o; o = pr(o)) {
733
733
  var r = o.namespaceURI || null, s = e[r];
734
- if (x(s)) {
734
+ if (S(s)) {
735
735
  var a = s[o.localName];
736
- x(a) && a.call(i, o, n);
736
+ S(a) && a.call(i, o, n);
737
737
  }
738
738
  }
739
739
  }
740
- function sr(e) {
740
+ function hr(e) {
741
741
  let t = e.firstElementChild || e.firstChild;
742
- for (; t && t.nodeType !== fe.ELEMENT; )
742
+ for (; t && t.nodeType !== ge.ELEMENT; )
743
743
  t = t.nextSibling;
744
744
  return t;
745
745
  }
746
- function ar(e) {
746
+ function pr(e) {
747
747
  let t = e.nextElementSibling || e.nextSibling;
748
- for (; t && t.nodeType !== fe.ELEMENT; )
748
+ for (; t && t.nodeType !== ge.ELEMENT; )
749
749
  t = t.nextSibling;
750
750
  return t;
751
751
  }
752
- function j(e, t, n) {
752
+ function q(e, t, n) {
753
753
  return (
754
754
  /** @type {Object.<string, Object.<string, XMLParser.Parser>>} */
755
- lr(e, t, n)
755
+ fr(e, t, n)
756
756
  );
757
757
  }
758
- function lr(e, t, n) {
759
- var i = x(n) ? n : {}, o, r;
758
+ function fr(e, t, n) {
759
+ var i = S(n) ? n : {}, o, r;
760
760
  for (o = 0, r = e.length; o < r; ++o)
761
761
  i[e[o]] = t;
762
762
  return i;
763
763
  }
764
- function Ui(e, t) {
764
+ function Xi(e, t) {
765
765
  return (
766
766
  /**
767
767
  * @param {Node} node Node.
@@ -769,19 +769,19 @@ function Ui(e, t) {
769
769
  */
770
770
  function(n, i) {
771
771
  var o = e.call(
772
- x(t) ? t : this,
772
+ S(t) ? t : this,
773
773
  n,
774
774
  i
775
775
  );
776
- if (x(o)) {
776
+ if (S(o)) {
777
777
  var r = i[i.length - 1];
778
778
  r.push(o);
779
779
  }
780
780
  }
781
781
  );
782
782
  }
783
- function L(e, t, n, i, o) {
784
- return i.push(e), rr(t, n, i, o), i.pop();
783
+ function F(e, t, n, i, o) {
784
+ return i.push(e), dr(t, n, i, o), i.pop();
785
785
  }
786
786
  function m(e, t, n) {
787
787
  return (
@@ -791,21 +791,21 @@ function m(e, t, n) {
791
791
  */
792
792
  function(i, o) {
793
793
  let r = e.call(
794
- x(n) ? n : this,
794
+ S(n) ? n : this,
795
795
  i,
796
796
  o
797
797
  );
798
- if (x(r)) {
798
+ if (S(r)) {
799
799
  var s = (
800
800
  /** @type {Object} */
801
801
  o[o.length - 1]
802
- ), a = x(t) ? t : i.localName;
802
+ ), a = S(t) ? t : i.localName;
803
803
  s[a] = r;
804
804
  }
805
805
  }
806
806
  );
807
807
  }
808
- function K(e, t, n) {
808
+ function et(e, t, n) {
809
809
  return (
810
810
  /**
811
811
  * @param {Node} node Node.
@@ -813,56 +813,56 @@ function K(e, t, n) {
813
813
  */
814
814
  function(i, o) {
815
815
  var r = e.call(
816
- x(n) ? n : this,
816
+ S(n) ? n : this,
817
817
  i,
818
818
  o
819
819
  );
820
- if (x(r)) {
820
+ if (S(r)) {
821
821
  var s = (
822
822
  /** @type {Object} */
823
823
  o[o.length - 1]
824
- ), a = x(t) ? t : i.localName, l = Vi(s, a, []);
824
+ ), a = S(t) ? t : i.localName, l = Zi(s, a, []);
825
825
  l.push(r);
826
826
  }
827
827
  }
828
828
  );
829
829
  }
830
- const dr = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
831
- function ur(e) {
832
- return e.replace(dr, "");
830
+ const gr = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
831
+ function mr(e) {
832
+ return e.replace(gr, "");
833
833
  }
834
- function It(e) {
834
+ function Ht(e) {
835
835
  const t = /^\s*(true|1)|(false|0)\s*$/.exec(e);
836
836
  if (t)
837
- return x(t[1]) || !1;
837
+ return S(t[1]) || !1;
838
838
  }
839
- function Ft(e) {
840
- return ft(cn(e, !1));
839
+ function jt(e) {
840
+ return ft(hn(e, !1));
841
841
  }
842
842
  function ft(e) {
843
843
  const t = /^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(e);
844
844
  if (t)
845
845
  return parseFloat(t[1]);
846
846
  }
847
- function vn(e) {
848
- return Be(cn(e, !1));
847
+ function wn(e) {
848
+ return Be(hn(e, !1));
849
849
  }
850
850
  function Be(e) {
851
851
  const t = /^\s*(\d+)\s*$/.exec(e);
852
852
  if (t)
853
853
  return parseInt(t[1], 10);
854
854
  }
855
- function $(e) {
856
- return ur(cn(e, !1));
855
+ function A(e) {
856
+ return mr(hn(e, !1));
857
857
  }
858
- const cr = "http://www.w3.org/1999/xlink";
859
- function zn(e) {
860
- return e.getAttributeNS(cr, "href");
858
+ const yr = "http://www.w3.org/1999/xlink";
859
+ function Yn(e) {
860
+ return e.getAttributeNS(yr, "href");
861
861
  }
862
- function hr(e, t) {
863
- return L({}, Lr, e, t);
862
+ function br(e, t) {
863
+ return F({}, zr, e, t);
864
864
  }
865
- function ki(e) {
865
+ function qi(e) {
866
866
  return [
867
867
  ft(e.getAttribute("minx")),
868
868
  ft(e.getAttribute("miny")),
@@ -870,8 +870,8 @@ function ki(e) {
870
870
  ft(e.getAttribute("maxy"))
871
871
  ];
872
872
  }
873
- function pr(e, t) {
874
- const n = ki(e), i = [
873
+ function vr(e, t) {
874
+ const n = qi(e), i = [
875
875
  ft(e.getAttribute("resx")),
876
876
  ft(e.getAttribute("resy"))
877
877
  ];
@@ -881,23 +881,23 @@ function pr(e, t) {
881
881
  res: i
882
882
  };
883
883
  }
884
- function fr(e, t) {
885
- const n = ki(e);
886
- if (!(!x(n[0]) || !x(n[1]) || !x(n[2]) || !x(n[3])))
884
+ function wr(e, t) {
885
+ const n = qi(e);
886
+ if (!(!S(n[0]) || !S(n[1]) || !S(n[2]) || !S(n[3])))
887
887
  return n;
888
888
  }
889
- function gr(e, t) {
889
+ function Er(e, t) {
890
890
  const n = parseFloat(e.getAttribute("min")), i = parseFloat(e.getAttribute("max"));
891
891
  return { min: n, max: i };
892
892
  }
893
- function mr(e, t) {
894
- const n = L(
893
+ function xr(e, t) {
894
+ const n = F(
895
895
  {},
896
- Ur,
896
+ Xr,
897
897
  e,
898
898
  t
899
899
  );
900
- if (!x(n)) return;
900
+ if (!S(n)) return;
901
901
  const i = (
902
902
  /** @type {number|undefined} */
903
903
  n.westBoundLongitude
@@ -911,7 +911,7 @@ function mr(e, t) {
911
911
  /** @type {number|undefined} */
912
912
  n.northBoundLatitude
913
913
  );
914
- if (!(!x(i) || !x(o) || !x(r) || !x(s)))
914
+ if (!(!S(i) || !S(o) || !S(r) || !S(s)))
915
915
  return [
916
916
  i,
917
917
  o,
@@ -919,91 +919,91 @@ function mr(e, t) {
919
919
  s
920
920
  ];
921
921
  }
922
- function yr(e, t) {
923
- return L({}, Mr, e, t);
922
+ function Sr(e, t) {
923
+ return F({}, Vr, e, t);
924
924
  }
925
- function br(e, t) {
926
- return L({}, Nr, e, t);
925
+ function $r(e, t) {
926
+ return F({}, kr, e, t);
927
927
  }
928
- function vr(e, t) {
929
- return L(
928
+ function Ar(e, t) {
929
+ return F(
930
930
  {},
931
- Ir,
931
+ Ur,
932
932
  e,
933
933
  t
934
934
  );
935
935
  }
936
- function wr(e, t) {
937
- return L(
936
+ function _r(e, t) {
937
+ return F(
938
938
  {},
939
- Hr,
939
+ Fr,
940
940
  e,
941
941
  t
942
942
  );
943
943
  }
944
- function Er(e, t) {
945
- return L(
944
+ function Cr(e, t) {
945
+ return F(
946
946
  {},
947
- Br,
947
+ jr,
948
948
  e,
949
949
  t
950
950
  );
951
951
  }
952
- function xr(e, t) {
953
- return L(
952
+ function Tr(e, t) {
953
+ return F(
954
954
  [],
955
- Vr,
955
+ Zr,
956
956
  e,
957
957
  t
958
958
  );
959
959
  }
960
- function Sr(e, t) {
961
- const n = It(e.getAttribute("queryable"));
962
- return L(
960
+ function Pr(e, t) {
961
+ const n = Ht(e.getAttribute("queryable"));
962
+ return F(
963
963
  {
964
- queryable: x(n) ? n : !1
964
+ queryable: S(n) ? n : !1
965
965
  },
966
- Zi,
966
+ Gi,
967
967
  e,
968
968
  t
969
969
  );
970
970
  }
971
- function $r(e, t) {
971
+ function Or(e, t) {
972
972
  var n = (
973
973
  /** @type {Object.<string,*>} */
974
974
  t[t.length - 1]
975
975
  );
976
976
  const i = (
977
977
  /** @type {Object.<string,*>} */
978
- L(
978
+ F(
979
979
  {},
980
- Zi,
980
+ Gi,
981
981
  e,
982
982
  t
983
983
  )
984
984
  );
985
- if (!x(i)) return;
986
- let o = It(e.getAttribute("queryable"));
987
- x(o) || (o = n.queryable), i.queryable = x(o) ? o : !1;
985
+ if (!S(i)) return;
986
+ let o = Ht(e.getAttribute("queryable"));
987
+ S(o) || (o = n.queryable), i.queryable = S(o) ? o : !1;
988
988
  let r = Be(e.getAttribute("cascaded"));
989
- x(r) || (r = n.cascaded), i.cascaded = r;
990
- let s = It(e.getAttribute("opaque"));
991
- x(s) || (s = n.opaque), i.opaque = x(s) ? s : !1;
992
- let a = It(e.getAttribute("noSubsets"));
993
- x(a) || (a = n.noSubsets), i.noSubsets = x(a) ? a : !1;
989
+ S(r) || (r = n.cascaded), i.cascaded = r;
990
+ let s = Ht(e.getAttribute("opaque"));
991
+ S(s) || (s = n.opaque), i.opaque = S(s) ? s : !1;
992
+ let a = Ht(e.getAttribute("noSubsets"));
993
+ S(a) || (a = n.noSubsets), i.noSubsets = S(a) ? a : !1;
994
994
  let l = ft(e.getAttribute("fixedWidth"));
995
- x(l) || (l = n.fixedWidth), i.fixedWidth = l;
996
- let d = ft(e.getAttribute("fixedHeight"));
997
- x(d) || (d = n.fixedHeight), i.fixedHeight = d;
998
- const c = ["Style", "CRS", "AuthorityURL"];
999
- for (let p = 0, f = c.length; p < f; p++) {
1000
- const g = c[p], y = n[g];
1001
- if (x(y)) {
1002
- let D = Vi(i, g, []);
1003
- D = D.concat(y), i[g] = D;
1004
- }
1005
- }
1006
- const u = [
995
+ S(l) || (l = n.fixedWidth), i.fixedWidth = l;
996
+ let u = ft(e.getAttribute("fixedHeight"));
997
+ S(u) || (u = n.fixedHeight), i.fixedHeight = u;
998
+ const d = ["Style", "CRS", "AuthorityURL"];
999
+ for (let p = 0, f = d.length; p < f; p++) {
1000
+ const g = d[p], y = n[g];
1001
+ if (S(y)) {
1002
+ let O = Zi(i, g, []);
1003
+ O = O.concat(y), i[g] = O;
1004
+ }
1005
+ }
1006
+ const c = [
1007
1007
  "EX_GeographicBoundingBox",
1008
1008
  "BoundingBox",
1009
1009
  "Dimension",
@@ -1011,50 +1011,50 @@ function $r(e, t) {
1011
1011
  "MinScaleDenominator",
1012
1012
  "MaxScaleDenominator"
1013
1013
  ];
1014
- for (let p = 0, f = u.length; p < f; p++) {
1015
- const g = u[p], y = i[g];
1016
- if (!x(y)) {
1017
- const D = n[g];
1018
- i[g] = D;
1014
+ for (let p = 0, f = c.length; p < f; p++) {
1015
+ const g = c[p], y = i[g];
1016
+ if (!S(y)) {
1017
+ const O = n[g];
1018
+ i[g] = O;
1019
1019
  }
1020
1020
  }
1021
1021
  return i;
1022
1022
  }
1023
- function _r(e, t) {
1023
+ function Dr(e, t) {
1024
1024
  return {
1025
1025
  name: e.getAttribute("name"),
1026
1026
  units: e.getAttribute("units"),
1027
1027
  unitSymbol: e.getAttribute("unitSymbol"),
1028
1028
  default: e.getAttribute("default"),
1029
- multipleValues: It(e.getAttribute("multipleValues")),
1030
- nearestValue: It(e.getAttribute("nearestValue")),
1031
- current: It(e.getAttribute("current")),
1032
- values: $(e)
1029
+ multipleValues: Ht(e.getAttribute("multipleValues")),
1030
+ nearestValue: Ht(e.getAttribute("nearestValue")),
1031
+ current: Ht(e.getAttribute("current")),
1032
+ values: A(e)
1033
1033
  };
1034
1034
  }
1035
1035
  function mt(e, t) {
1036
- return L(
1036
+ return F(
1037
1037
  {},
1038
- Xr,
1038
+ Kr,
1039
1039
  e,
1040
1040
  t
1041
1041
  );
1042
1042
  }
1043
- function Ar(e, t) {
1044
- return L({}, kr, e, t);
1043
+ function Rr(e, t) {
1044
+ return F({}, qr, e, t);
1045
1045
  }
1046
- function Cr(e, t) {
1047
- return L({}, jr, e, t);
1046
+ function Mr(e, t) {
1047
+ return F({}, Wr, e, t);
1048
1048
  }
1049
- function Tr(e, t) {
1050
- return L({}, Zr, e, t);
1049
+ function Ir(e, t) {
1050
+ return F({}, Gr, e, t);
1051
1051
  }
1052
- function wn(e, t) {
1053
- return L({}, Fr, e, t);
1052
+ function En(e, t) {
1053
+ return F({}, Yr, e, t);
1054
1054
  }
1055
- function Fi(e, t) {
1055
+ function Yi(e, t) {
1056
1056
  var n = mt(e, t);
1057
- if (x(n)) {
1057
+ if (S(n)) {
1058
1058
  const i = [
1059
1059
  Be(e.getAttribute("width")),
1060
1060
  Be(e.getAttribute("height"))
@@ -1062,156 +1062,156 @@ function Fi(e, t) {
1062
1062
  return n.size = i, n;
1063
1063
  }
1064
1064
  }
1065
- function Pr(e, t) {
1065
+ function Nr(e, t) {
1066
1066
  var n = mt(e, t);
1067
- if (x(n))
1067
+ if (S(n))
1068
1068
  return n.name = e.getAttribute("name"), n;
1069
1069
  }
1070
- function Dr(e, t) {
1070
+ function Hr(e, t) {
1071
1071
  var n = mt(e, t);
1072
- if (x(n))
1072
+ if (S(n))
1073
1073
  return n.type = e.getAttribute("type"), n;
1074
1074
  }
1075
- function Or(e, t) {
1076
- return L({}, zr, e, t);
1075
+ function Lr(e, t) {
1076
+ return F({}, Jr, e, t);
1077
1077
  }
1078
- function ji(e, t) {
1079
- return L(
1078
+ function Wi(e, t) {
1079
+ return F(
1080
1080
  [],
1081
- qr,
1081
+ Qr,
1082
1082
  e,
1083
1083
  t
1084
1084
  );
1085
1085
  }
1086
- const Z = [
1086
+ const Y = [
1087
1087
  null,
1088
1088
  "http://www.opengis.net/wms"
1089
- ], Rr = j(
1090
- Z,
1089
+ ], Br = q(
1090
+ Y,
1091
1091
  {
1092
- Service: m(br),
1093
- Capability: m(yr)
1092
+ Service: m($r),
1093
+ Capability: m(Sr)
1094
1094
  }
1095
- ), Mr = j(
1096
- Z,
1095
+ ), Vr = q(
1096
+ Y,
1097
1097
  {
1098
- Request: m(Ar),
1099
- Exception: m(xr),
1100
- Layer: m(Sr)
1098
+ Request: m(Rr),
1099
+ Exception: m(Tr),
1100
+ Layer: m(Pr)
1101
1101
  }
1102
- ), Nr = j(
1103
- Z,
1102
+ ), kr = q(
1103
+ Y,
1104
1104
  {
1105
- Name: m($),
1106
- Title: m($),
1107
- Abstract: m($),
1108
- KeywordList: m(ji),
1109
- OnlineResource: m(zn),
1110
- ContactInformation: m(vr),
1111
- Fees: m($),
1112
- AccessConstraints: m($),
1113
- LayerLimit: m(vn),
1114
- MaxWidth: m(vn),
1115
- MaxHeight: m(vn)
1116
- }
1117
- ), Ir = j(
1118
- Z,
1105
+ Name: m(A),
1106
+ Title: m(A),
1107
+ Abstract: m(A),
1108
+ KeywordList: m(Wi),
1109
+ OnlineResource: m(Yn),
1110
+ ContactInformation: m(Ar),
1111
+ Fees: m(A),
1112
+ AccessConstraints: m(A),
1113
+ LayerLimit: m(wn),
1114
+ MaxWidth: m(wn),
1115
+ MaxHeight: m(wn)
1116
+ }
1117
+ ), Ur = q(
1118
+ Y,
1119
1119
  {
1120
- ContactPersonPrimary: m(wr),
1121
- ContactPosition: m($),
1122
- ContactAddress: m(Er),
1123
- ContactVoiceTelephone: m($),
1124
- ContactFacsimileTelephone: m($),
1125
- ContactElectronicMailAddress: m($)
1126
- }
1127
- ), Hr = j(
1128
- Z,
1120
+ ContactPersonPrimary: m(_r),
1121
+ ContactPosition: m(A),
1122
+ ContactAddress: m(Cr),
1123
+ ContactVoiceTelephone: m(A),
1124
+ ContactFacsimileTelephone: m(A),
1125
+ ContactElectronicMailAddress: m(A)
1126
+ }
1127
+ ), Fr = q(
1128
+ Y,
1129
1129
  {
1130
- ContactPerson: m($),
1131
- ContactOrganization: m($)
1130
+ ContactPerson: m(A),
1131
+ ContactOrganization: m(A)
1132
1132
  }
1133
- ), Br = j(
1134
- Z,
1133
+ ), jr = q(
1134
+ Y,
1135
1135
  {
1136
- AddressType: m($),
1137
- Address: m($),
1138
- City: m($),
1139
- StateOrProvince: m($),
1140
- PostCode: m($),
1141
- Country: m($)
1142
- }
1143
- ), Vr = j(
1144
- Z,
1136
+ AddressType: m(A),
1137
+ Address: m(A),
1138
+ City: m(A),
1139
+ StateOrProvince: m(A),
1140
+ PostCode: m(A),
1141
+ Country: m(A)
1142
+ }
1143
+ ), Zr = q(
1144
+ Y,
1145
1145
  {
1146
- Format: Ui($)
1146
+ Format: Xi(A)
1147
1147
  }
1148
- ), Zi = j(
1149
- Z,
1148
+ ), Gi = q(
1149
+ Y,
1150
1150
  {
1151
- Name: m($),
1152
- Title: m($),
1153
- Abstract: m($),
1154
- KeywordList: m(ji),
1155
- CRS: K($),
1156
- SRS: K($),
1157
- EX_GeographicBoundingBox: m(mr),
1158
- LatLonBoundingBox: m(fr),
1159
- BoundingBox: K(pr),
1160
- Dimension: K(_r),
1161
- Attribution: m(hr),
1162
- AuthorityURL: K(Pr),
1163
- Identifier: K($),
1164
- MetadataURL: K(Dr),
1165
- DataURL: K(mt),
1166
- FeatureListURL: K(mt),
1167
- Style: K(Or),
1168
- MinScaleDenominator: m(Ft),
1169
- MaxScaleDenominator: m(Ft),
1170
- ScaleHint: m(gr),
1171
- Layer: K($r)
1172
- }
1173
- ), Lr = j(
1174
- Z,
1151
+ Name: m(A),
1152
+ Title: m(A),
1153
+ Abstract: m(A),
1154
+ KeywordList: m(Wi),
1155
+ CRS: et(A),
1156
+ SRS: et(A),
1157
+ EX_GeographicBoundingBox: m(xr),
1158
+ LatLonBoundingBox: m(wr),
1159
+ BoundingBox: et(vr),
1160
+ Dimension: et(Dr),
1161
+ Attribution: m(br),
1162
+ AuthorityURL: et(Nr),
1163
+ Identifier: et(A),
1164
+ MetadataURL: et(Hr),
1165
+ DataURL: et(mt),
1166
+ FeatureListURL: et(mt),
1167
+ Style: et(Lr),
1168
+ MinScaleDenominator: m(jt),
1169
+ MaxScaleDenominator: m(jt),
1170
+ ScaleHint: m(Er),
1171
+ Layer: et(Or)
1172
+ }
1173
+ ), zr = q(
1174
+ Y,
1175
1175
  {
1176
- Title: m($),
1177
- OnlineResource: m(zn),
1178
- LogoURL: m(Fi)
1179
- }
1180
- ), Ur = j(Z, {
1181
- westBoundLongitude: m(Ft),
1182
- eastBoundLongitude: m(Ft),
1183
- southBoundLatitude: m(Ft),
1184
- northBoundLatitude: m(Ft)
1185
- }), kr = j(
1186
- Z,
1176
+ Title: m(A),
1177
+ OnlineResource: m(Yn),
1178
+ LogoURL: m(Yi)
1179
+ }
1180
+ ), Xr = q(Y, {
1181
+ westBoundLongitude: m(jt),
1182
+ eastBoundLongitude: m(jt),
1183
+ southBoundLatitude: m(jt),
1184
+ northBoundLatitude: m(jt)
1185
+ }), qr = q(
1186
+ Y,
1187
1187
  {
1188
1188
  GetCapabilities: m(
1189
- wn
1189
+ En
1190
1190
  ),
1191
1191
  GetMap: m(
1192
- wn
1192
+ En
1193
1193
  ),
1194
1194
  GetFeatureInfo: m(
1195
- wn
1195
+ En
1196
1196
  )
1197
1197
  }
1198
- ), Fr = j(
1199
- Z,
1198
+ ), Yr = q(
1199
+ Y,
1200
1200
  {
1201
- Format: K($),
1202
- DCPType: K(
1203
- Cr
1201
+ Format: et(A),
1202
+ DCPType: et(
1203
+ Mr
1204
1204
  )
1205
1205
  }
1206
- ), jr = j(
1207
- Z,
1206
+ ), Wr = q(
1207
+ Y,
1208
1208
  {
1209
1209
  HTTP: m(
1210
- Tr
1210
+ Ir
1211
1211
  )
1212
1212
  }
1213
- ), Zr = j(
1214
- Z,
1213
+ ), Gr = q(
1214
+ Y,
1215
1215
  {
1216
1216
  Get: m(
1217
1217
  mt
@@ -1220,29 +1220,29 @@ const Z = [
1220
1220
  mt
1221
1221
  )
1222
1222
  }
1223
- ), zr = j(
1224
- Z,
1223
+ ), Jr = q(
1224
+ Y,
1225
1225
  {
1226
- Name: m($),
1227
- Title: m($),
1228
- Abstract: m($),
1229
- LegendURL: K(Fi),
1226
+ Name: m(A),
1227
+ Title: m(A),
1228
+ Abstract: m(A),
1229
+ LegendURL: et(Yi),
1230
1230
  StyleSheetURL: m(mt),
1231
1231
  StyleURL: m(mt)
1232
1232
  }
1233
- ), Xr = j(
1234
- Z,
1233
+ ), Kr = q(
1234
+ Y,
1235
1235
  {
1236
- Format: m($),
1237
- OnlineResource: m(zn)
1236
+ Format: m(A),
1237
+ OnlineResource: m(Yn)
1238
1238
  }
1239
- ), qr = j(
1240
- Z,
1239
+ ), Qr = q(
1240
+ Y,
1241
1241
  {
1242
- Keyword: Ui($)
1242
+ Keyword: Xi(A)
1243
1243
  }
1244
1244
  );
1245
- class Yr {
1245
+ class ts {
1246
1246
  /**
1247
1247
  * WMS Capabilities parser
1248
1248
  *
@@ -1250,7 +1250,7 @@ class Yr {
1250
1250
  * @constructor
1251
1251
  */
1252
1252
  constructor(t, n) {
1253
- !n && typeof window < "u" && (n = window.DOMParser), this.version = void 0, this._parser = new or(n), this._data = t;
1253
+ !n && typeof window < "u" && (n = window.DOMParser), this.version = void 0, this._parser = new cr(n), this._data = t;
1254
1254
  }
1255
1255
  /**
1256
1256
  * @param {String} xmlString
@@ -1279,7 +1279,7 @@ class Yr {
1279
1279
  */
1280
1280
  readFromDocument(t) {
1281
1281
  for (let n = t.firstChild; n; n = n.nextSibling)
1282
- if (n.nodeType == fe.ELEMENT)
1282
+ if (n.nodeType == ge.ELEMENT)
1283
1283
  return this.readFromNode(n);
1284
1284
  return null;
1285
1285
  }
@@ -1288,44 +1288,44 @@ class Yr {
1288
1288
  * @return {Object}
1289
1289
  */
1290
1290
  readFromNode(t) {
1291
- return this.version = t.getAttribute("version"), L({
1291
+ return this.version = t.getAttribute("version"), F({
1292
1292
  version: this.version
1293
- }, Rr, t, []) || null;
1293
+ }, Br, t, []) || null;
1294
1294
  }
1295
1295
  }
1296
- async function Wr(e) {
1296
+ async function es(e) {
1297
1297
  let t = new URL(e), n = t.searchParams;
1298
1298
  n.set("SERVICE", "WMS"), n.set("REQUEST", "GetCapabilities");
1299
1299
  let i = t.toString();
1300
1300
  const o = await fetch(i);
1301
1301
  if (o.ok) {
1302
1302
  const r = await o.text();
1303
- return new Yr(r).toJSON();
1303
+ return new ts(r).toJSON();
1304
1304
  } else
1305
1305
  throw new Error(`Error: ${o.status}`);
1306
1306
  }
1307
- function Xn(e) {
1307
+ function Wn(e) {
1308
1308
  const t = /\b(?:wms|ows)\b/i, n = /{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;
1309
1309
  return t.test(e) ? "TileWMS" : n.test(e) ? "XYZ" : !1;
1310
1310
  }
1311
- function Gr(e) {
1312
- const n = /^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(e), i = Xn(e);
1311
+ function ns(e) {
1312
+ const n = /^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(e), i = Wn(e);
1313
1313
  return !!(e && n && i);
1314
1314
  }
1315
- function zi(e) {
1315
+ function Ji(e) {
1316
1316
  return e.replace(
1317
1317
  /(['"])?([a-zA-Z0-9_]+)(['"])?:/g,
1318
1318
  '"$2": '
1319
1319
  ).replace(/,\s*}/g, "}").replace(/,\s*]/g, "]").replace(/\s*(\{|}|\[|\]|,)\s*/g, "$1").replaceAll('": //', "://");
1320
1320
  }
1321
- function Jr(e) {
1321
+ function is(e) {
1322
1322
  try {
1323
- return JSON.parse(zi(e)), !!e;
1323
+ return JSON.parse(Ji(e)), !!e;
1324
1324
  } catch {
1325
1325
  return !1;
1326
1326
  }
1327
1327
  }
1328
- function Kr(e, t) {
1328
+ function os(e, t) {
1329
1329
  const n = new URL(e).searchParams;
1330
1330
  Object.entries(t).forEach(([s, a]) => {
1331
1331
  typeof a == "object" && !Array.isArray(a) && a !== null ? Object.keys(a).forEach((l) => {
@@ -1341,7 +1341,7 @@ function Kr(e, t) {
1341
1341
  * @author owenm <owen23355@gmail.com>
1342
1342
  * @license MIT
1343
1343
  */
1344
- function ci(e, t) {
1344
+ function fi(e, t) {
1345
1345
  var n = Object.keys(e);
1346
1346
  if (Object.getOwnPropertySymbols) {
1347
1347
  var i = Object.getOwnPropertySymbols(e);
@@ -1351,26 +1351,26 @@ function ci(e, t) {
1351
1351
  }
1352
1352
  return n;
1353
1353
  }
1354
- function ct(e) {
1354
+ function dt(e) {
1355
1355
  for (var t = 1; t < arguments.length; t++) {
1356
1356
  var n = arguments[t] != null ? arguments[t] : {};
1357
- t % 2 ? ci(Object(n), !0).forEach(function(i) {
1358
- Qr(e, i, n[i]);
1359
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ci(Object(n)).forEach(function(i) {
1357
+ t % 2 ? fi(Object(n), !0).forEach(function(i) {
1358
+ rs(e, i, n[i]);
1359
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fi(Object(n)).forEach(function(i) {
1360
1360
  Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(n, i));
1361
1361
  });
1362
1362
  }
1363
1363
  return e;
1364
1364
  }
1365
- function Te(e) {
1365
+ function Pe(e) {
1366
1366
  "@babel/helpers - typeof";
1367
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Te = function(t) {
1367
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Pe = function(t) {
1368
1368
  return typeof t;
1369
- } : Te = function(t) {
1369
+ } : Pe = function(t) {
1370
1370
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1371
- }, Te(e);
1371
+ }, Pe(e);
1372
1372
  }
1373
- function Qr(e, t, n) {
1373
+ function rs(e, t, n) {
1374
1374
  return t in e ? Object.defineProperty(e, t, {
1375
1375
  value: n,
1376
1376
  enumerable: !0,
@@ -1388,16 +1388,16 @@ function yt() {
1388
1388
  return e;
1389
1389
  }, yt.apply(this, arguments);
1390
1390
  }
1391
- function ts(e, t) {
1391
+ function ss(e, t) {
1392
1392
  if (e == null) return {};
1393
1393
  var n = {}, i = Object.keys(e), o, r;
1394
1394
  for (r = 0; r < i.length; r++)
1395
1395
  o = i[r], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
1396
1396
  return n;
1397
1397
  }
1398
- function es(e, t) {
1398
+ function as(e, t) {
1399
1399
  if (e == null) return {};
1400
- var n = ts(e, t), i, o;
1400
+ var n = ss(e, t), i, o;
1401
1401
  if (Object.getOwnPropertySymbols) {
1402
1402
  var r = Object.getOwnPropertySymbols(e);
1403
1403
  for (o = 0; o < r.length; o++)
@@ -1405,20 +1405,20 @@ function es(e, t) {
1405
1405
  }
1406
1406
  return n;
1407
1407
  }
1408
- var ns = "1.15.3";
1408
+ var ls = "1.15.3";
1409
1409
  function gt(e) {
1410
1410
  if (typeof window < "u" && window.navigator)
1411
1411
  return !!/* @__PURE__ */ navigator.userAgent.match(e);
1412
1412
  }
1413
- var bt = gt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ve = gt(/Edge/i), hi = gt(/firefox/i), se = gt(/safari/i) && !gt(/chrome/i) && !gt(/android/i), Xi = gt(/iP(ad|od|hone)/i), qi = gt(/chrome/i) && gt(/android/i), Yi = {
1413
+ var bt = gt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ee = gt(/Edge/i), gi = gt(/firefox/i), ae = gt(/safari/i) && !gt(/chrome/i) && !gt(/android/i), Ki = gt(/iP(ad|od|hone)/i), Qi = gt(/chrome/i) && gt(/android/i), to = {
1414
1414
  capture: !1,
1415
1415
  passive: !1
1416
1416
  };
1417
1417
  function _(e, t, n) {
1418
- e.addEventListener(t, n, !bt && Yi);
1418
+ e.addEventListener(t, n, !bt && to);
1419
1419
  }
1420
- function S(e, t, n) {
1421
- e.removeEventListener(t, n, !bt && Yi);
1420
+ function $(e, t, n) {
1421
+ e.removeEventListener(t, n, !bt && to);
1422
1422
  }
1423
1423
  function Ve(e, t) {
1424
1424
  if (t) {
@@ -1436,31 +1436,31 @@ function Ve(e, t) {
1436
1436
  return !1;
1437
1437
  }
1438
1438
  }
1439
- function Wi(e) {
1439
+ function eo(e) {
1440
1440
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
1441
1441
  }
1442
- function dt(e, t, n, i) {
1442
+ function ut(e, t, n, i) {
1443
1443
  if (e) {
1444
1444
  n = n || document;
1445
1445
  do {
1446
1446
  if (t != null && (t[0] === ">" ? e.parentNode === n && Ve(e, t) : Ve(e, t)) || i && e === n)
1447
1447
  return e;
1448
1448
  if (e === n) break;
1449
- } while (e = Wi(e));
1449
+ } while (e = eo(e));
1450
1450
  }
1451
1451
  return null;
1452
1452
  }
1453
- var pi = /\s+/g;
1454
- function nt(e, t, n) {
1453
+ var mi = /\s+/g;
1454
+ function ot(e, t, n) {
1455
1455
  if (e && t)
1456
1456
  if (e.classList)
1457
1457
  e.classList[n ? "add" : "remove"](t);
1458
1458
  else {
1459
- var i = (" " + e.className + " ").replace(pi, " ").replace(" " + t + " ", " ");
1460
- e.className = (i + (n ? " " + t : "")).replace(pi, " ");
1459
+ var i = (" " + e.className + " ").replace(mi, " ").replace(" " + t + " ", " ");
1460
+ e.className = (i + (n ? " " + t : "")).replace(mi, " ");
1461
1461
  }
1462
1462
  }
1463
- function b(e, t, n) {
1463
+ function v(e, t, n) {
1464
1464
  var i = e && e.style;
1465
1465
  if (i) {
1466
1466
  if (n === void 0)
@@ -1468,19 +1468,19 @@ function b(e, t, n) {
1468
1468
  !(t in i) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), i[t] = n + (typeof n == "string" ? "" : "px");
1469
1469
  }
1470
1470
  }
1471
- function Zt(e, t) {
1471
+ function zt(e, t) {
1472
1472
  var n = "";
1473
1473
  if (typeof e == "string")
1474
1474
  n = e;
1475
1475
  else
1476
1476
  do {
1477
- var i = b(e, "transform");
1477
+ var i = v(e, "transform");
1478
1478
  i && i !== "none" && (n = i + " " + n);
1479
1479
  } while (!t && (e = e.parentNode));
1480
1480
  var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
1481
1481
  return o && new o(n);
1482
1482
  }
1483
- function Gi(e, t, n) {
1483
+ function no(e, t, n) {
1484
1484
  if (e) {
1485
1485
  var i = e.getElementsByTagName(t), o = 0, r = i.length;
1486
1486
  if (n)
@@ -1490,47 +1490,47 @@ function Gi(e, t, n) {
1490
1490
  }
1491
1491
  return [];
1492
1492
  }
1493
- function ut() {
1493
+ function ct() {
1494
1494
  var e = document.scrollingElement;
1495
1495
  return e || document.documentElement;
1496
1496
  }
1497
- function H(e, t, n, i, o) {
1497
+ function k(e, t, n, i, o) {
1498
1498
  if (!(!e.getBoundingClientRect && e !== window)) {
1499
- var r, s, a, l, d, c, u;
1500
- if (e !== window && e.parentNode && e !== ut() ? (r = e.getBoundingClientRect(), s = r.top, a = r.left, l = r.bottom, d = r.right, c = r.height, u = r.width) : (s = 0, a = 0, l = window.innerHeight, d = window.innerWidth, c = window.innerHeight, u = window.innerWidth), (t || n) && e !== window && (o = o || e.parentNode, !bt))
1499
+ var r, s, a, l, u, d, c;
1500
+ if (e !== window && e.parentNode && e !== ct() ? (r = e.getBoundingClientRect(), s = r.top, a = r.left, l = r.bottom, u = r.right, d = r.height, c = r.width) : (s = 0, a = 0, l = window.innerHeight, u = window.innerWidth, d = window.innerHeight, c = window.innerWidth), (t || n) && e !== window && (o = o || e.parentNode, !bt))
1501
1501
  do
1502
- if (o && o.getBoundingClientRect && (b(o, "transform") !== "none" || n && b(o, "position") !== "static")) {
1502
+ if (o && o.getBoundingClientRect && (v(o, "transform") !== "none" || n && v(o, "position") !== "static")) {
1503
1503
  var p = o.getBoundingClientRect();
1504
- s -= p.top + parseInt(b(o, "border-top-width")), a -= p.left + parseInt(b(o, "border-left-width")), l = s + r.height, d = a + r.width;
1504
+ s -= p.top + parseInt(v(o, "border-top-width")), a -= p.left + parseInt(v(o, "border-left-width")), l = s + r.height, u = a + r.width;
1505
1505
  break;
1506
1506
  }
1507
1507
  while (o = o.parentNode);
1508
1508
  if (i && e !== window) {
1509
- var f = Zt(o || e), g = f && f.a, y = f && f.d;
1510
- f && (s /= y, a /= g, u /= g, c /= y, l = s + c, d = a + u);
1509
+ var f = zt(o || e), g = f && f.a, y = f && f.d;
1510
+ f && (s /= y, a /= g, c /= g, d /= y, l = s + d, u = a + c);
1511
1511
  }
1512
1512
  return {
1513
1513
  top: s,
1514
1514
  left: a,
1515
1515
  bottom: l,
1516
- right: d,
1517
- width: u,
1518
- height: c
1516
+ right: u,
1517
+ width: c,
1518
+ height: d
1519
1519
  };
1520
1520
  }
1521
1521
  }
1522
- function fi(e, t, n) {
1523
- for (var i = _t(e, !0), o = H(e)[t]; i; ) {
1524
- var r = H(i)[n], s = void 0;
1522
+ function yi(e, t, n) {
1523
+ for (var i = At(e, !0), o = k(e)[t]; i; ) {
1524
+ var r = k(i)[n], s = void 0;
1525
1525
  if (s = o >= r, !s) return i;
1526
- if (i === ut()) break;
1527
- i = _t(i, !1);
1526
+ if (i === ct()) break;
1527
+ i = At(i, !1);
1528
1528
  }
1529
1529
  return !1;
1530
1530
  }
1531
- function Xt(e, t, n, i) {
1531
+ function qt(e, t, n, i) {
1532
1532
  for (var o = 0, r = 0, s = e.children; r < s.length; ) {
1533
- if (s[r].style.display !== "none" && s[r] !== v.ghost && (i || s[r] !== v.dragged) && dt(s[r], n.draggable, e, !1)) {
1533
+ if (s[r].style.display !== "none" && s[r] !== w.ghost && (i || s[r] !== w.dragged) && ut(s[r], n.draggable, e, !1)) {
1534
1534
  if (o === t)
1535
1535
  return s[r];
1536
1536
  o++;
@@ -1539,29 +1539,29 @@ function Xt(e, t, n, i) {
1539
1539
  }
1540
1540
  return null;
1541
1541
  }
1542
- function qn(e, t) {
1543
- for (var n = e.lastElementChild; n && (n === v.ghost || b(n, "display") === "none" || t && !Ve(n, t)); )
1542
+ function Gn(e, t) {
1543
+ for (var n = e.lastElementChild; n && (n === w.ghost || v(n, "display") === "none" || t && !Ve(n, t)); )
1544
1544
  n = n.previousElementSibling;
1545
1545
  return n || null;
1546
1546
  }
1547
- function ot(e, t) {
1547
+ function st(e, t) {
1548
1548
  var n = 0;
1549
1549
  if (!e || !e.parentNode)
1550
1550
  return -1;
1551
1551
  for (; e = e.previousElementSibling; )
1552
- e.nodeName.toUpperCase() !== "TEMPLATE" && e !== v.clone && (!t || Ve(e, t)) && n++;
1552
+ e.nodeName.toUpperCase() !== "TEMPLATE" && e !== w.clone && (!t || Ve(e, t)) && n++;
1553
1553
  return n;
1554
1554
  }
1555
- function gi(e) {
1556
- var t = 0, n = 0, i = ut();
1555
+ function bi(e) {
1556
+ var t = 0, n = 0, i = ct();
1557
1557
  if (e)
1558
1558
  do {
1559
- var o = Zt(e), r = o.a, s = o.d;
1559
+ var o = zt(e), r = o.a, s = o.d;
1560
1560
  t += e.scrollLeft * r, n += e.scrollTop * s;
1561
1561
  } while (e !== i && (e = e.parentNode));
1562
1562
  return [t, n];
1563
1563
  }
1564
- function is(e, t) {
1564
+ function us(e, t) {
1565
1565
  for (var n in e)
1566
1566
  if (e.hasOwnProperty(n)) {
1567
1567
  for (var i in t)
@@ -1569,77 +1569,77 @@ function is(e, t) {
1569
1569
  }
1570
1570
  return -1;
1571
1571
  }
1572
- function _t(e, t) {
1573
- if (!e || !e.getBoundingClientRect) return ut();
1572
+ function At(e, t) {
1573
+ if (!e || !e.getBoundingClientRect) return ct();
1574
1574
  var n = e, i = !1;
1575
1575
  do
1576
1576
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
1577
- var o = b(n);
1577
+ var o = v(n);
1578
1578
  if (n.clientWidth < n.scrollWidth && (o.overflowX == "auto" || o.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (o.overflowY == "auto" || o.overflowY == "scroll")) {
1579
- if (!n.getBoundingClientRect || n === document.body) return ut();
1579
+ if (!n.getBoundingClientRect || n === document.body) return ct();
1580
1580
  if (i || t) return n;
1581
1581
  i = !0;
1582
1582
  }
1583
1583
  }
1584
1584
  while (n = n.parentNode);
1585
- return ut();
1585
+ return ct();
1586
1586
  }
1587
- function os(e, t) {
1587
+ function cs(e, t) {
1588
1588
  if (e && t)
1589
1589
  for (var n in t)
1590
1590
  t.hasOwnProperty(n) && (e[n] = t[n]);
1591
1591
  return e;
1592
1592
  }
1593
- function En(e, t) {
1593
+ function xn(e, t) {
1594
1594
  return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
1595
1595
  }
1596
- var ae;
1597
- function Ji(e, t) {
1596
+ var le;
1597
+ function io(e, t) {
1598
1598
  return function() {
1599
- if (!ae) {
1599
+ if (!le) {
1600
1600
  var n = arguments, i = this;
1601
- n.length === 1 ? e.call(i, n[0]) : e.apply(i, n), ae = setTimeout(function() {
1602
- ae = void 0;
1601
+ n.length === 1 ? e.call(i, n[0]) : e.apply(i, n), le = setTimeout(function() {
1602
+ le = void 0;
1603
1603
  }, t);
1604
1604
  }
1605
1605
  };
1606
1606
  }
1607
- function rs() {
1608
- clearTimeout(ae), ae = void 0;
1607
+ function ds() {
1608
+ clearTimeout(le), le = void 0;
1609
1609
  }
1610
- function Ki(e, t, n) {
1610
+ function oo(e, t, n) {
1611
1611
  e.scrollLeft += t, e.scrollTop += n;
1612
1612
  }
1613
- function Qi(e) {
1613
+ function ro(e) {
1614
1614
  var t = window.Polymer, n = window.jQuery || window.Zepto;
1615
1615
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
1616
1616
  }
1617
- function to(e, t, n) {
1617
+ function so(e, t, n) {
1618
1618
  var i = {};
1619
1619
  return Array.from(e.children).forEach(function(o) {
1620
1620
  var r, s, a, l;
1621
- if (!(!dt(o, t.draggable, e, !1) || o.animated || o === n)) {
1622
- var d = H(o);
1623
- i.left = Math.min((r = i.left) !== null && r !== void 0 ? r : 1 / 0, d.left), i.top = Math.min((s = i.top) !== null && s !== void 0 ? s : 1 / 0, d.top), i.right = Math.max((a = i.right) !== null && a !== void 0 ? a : -1 / 0, d.right), i.bottom = Math.max((l = i.bottom) !== null && l !== void 0 ? l : -1 / 0, d.bottom);
1621
+ if (!(!ut(o, t.draggable, e, !1) || o.animated || o === n)) {
1622
+ var u = k(o);
1623
+ i.left = Math.min((r = i.left) !== null && r !== void 0 ? r : 1 / 0, u.left), i.top = Math.min((s = i.top) !== null && s !== void 0 ? s : 1 / 0, u.top), i.right = Math.max((a = i.right) !== null && a !== void 0 ? a : -1 / 0, u.right), i.bottom = Math.max((l = i.bottom) !== null && l !== void 0 ? l : -1 / 0, u.bottom);
1624
1624
  }
1625
1625
  }), i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
1626
1626
  }
1627
- var Q = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
1628
- function ss() {
1627
+ var nt = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
1628
+ function hs() {
1629
1629
  var e = [], t;
1630
1630
  return {
1631
1631
  captureAnimationState: function() {
1632
1632
  if (e = [], !!this.options.animation) {
1633
1633
  var i = [].slice.call(this.el.children);
1634
1634
  i.forEach(function(o) {
1635
- if (!(b(o, "display") === "none" || o === v.ghost)) {
1635
+ if (!(v(o, "display") === "none" || o === w.ghost)) {
1636
1636
  e.push({
1637
1637
  target: o,
1638
- rect: H(o)
1638
+ rect: k(o)
1639
1639
  });
1640
- var r = ct({}, e[e.length - 1].rect);
1640
+ var r = dt({}, e[e.length - 1].rect);
1641
1641
  if (o.thisAnimationDuration) {
1642
- var s = Zt(o, !0);
1642
+ var s = zt(o, !0);
1643
1643
  s && (r.top -= s.f, r.left -= s.e);
1644
1644
  }
1645
1645
  o.fromRect = r;
@@ -1651,7 +1651,7 @@ function ss() {
1651
1651
  e.push(i);
1652
1652
  },
1653
1653
  removeAnimationState: function(i) {
1654
- e.splice(is(e, {
1654
+ e.splice(us(e, {
1655
1655
  target: i
1656
1656
  }), 1);
1657
1657
  },
@@ -1663,38 +1663,38 @@ function ss() {
1663
1663
  }
1664
1664
  var r = !1, s = 0;
1665
1665
  e.forEach(function(a) {
1666
- var l = 0, d = a.target, c = d.fromRect, u = H(d), p = d.prevFromRect, f = d.prevToRect, g = a.rect, y = Zt(d, !0);
1667
- y && (u.top -= y.f, u.left -= y.e), d.toRect = u, d.thisAnimationDuration && En(p, u) && !En(c, u) && // Make sure animatingRect is on line between toRect & fromRect
1668
- (g.top - u.top) / (g.left - u.left) === (c.top - u.top) / (c.left - u.left) && (l = ls(g, p, f, o.options)), En(u, c) || (d.prevFromRect = c, d.prevToRect = u, l || (l = o.options.animation), o.animate(d, g, u, l)), l && (r = !0, s = Math.max(s, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
1669
- d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
1670
- }, l), d.thisAnimationDuration = l);
1666
+ var l = 0, u = a.target, d = u.fromRect, c = k(u), p = u.prevFromRect, f = u.prevToRect, g = a.rect, y = zt(u, !0);
1667
+ y && (c.top -= y.f, c.left -= y.e), u.toRect = c, u.thisAnimationDuration && xn(p, c) && !xn(d, c) && // Make sure animatingRect is on line between toRect & fromRect
1668
+ (g.top - c.top) / (g.left - c.left) === (d.top - c.top) / (d.left - c.left) && (l = fs(g, p, f, o.options)), xn(c, d) || (u.prevFromRect = d, u.prevToRect = c, l || (l = o.options.animation), o.animate(u, g, c, l)), l && (r = !0, s = Math.max(s, l), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
1669
+ u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
1670
+ }, l), u.thisAnimationDuration = l);
1671
1671
  }), clearTimeout(t), r ? t = setTimeout(function() {
1672
1672
  typeof i == "function" && i();
1673
1673
  }, s) : typeof i == "function" && i(), e = [];
1674
1674
  },
1675
1675
  animate: function(i, o, r, s) {
1676
1676
  if (s) {
1677
- b(i, "transition", ""), b(i, "transform", "");
1678
- var a = Zt(this.el), l = a && a.a, d = a && a.d, c = (o.left - r.left) / (l || 1), u = (o.top - r.top) / (d || 1);
1679
- i.animatingX = !!c, i.animatingY = !!u, b(i, "transform", "translate3d(" + c + "px," + u + "px,0)"), this.forRepaintDummy = as(i), b(i, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), b(i, "transform", "translate3d(0,0,0)"), typeof i.animated == "number" && clearTimeout(i.animated), i.animated = setTimeout(function() {
1680
- b(i, "transition", ""), b(i, "transform", ""), i.animated = !1, i.animatingX = !1, i.animatingY = !1;
1677
+ v(i, "transition", ""), v(i, "transform", "");
1678
+ var a = zt(this.el), l = a && a.a, u = a && a.d, d = (o.left - r.left) / (l || 1), c = (o.top - r.top) / (u || 1);
1679
+ i.animatingX = !!d, i.animatingY = !!c, v(i, "transform", "translate3d(" + d + "px," + c + "px,0)"), this.forRepaintDummy = ps(i), v(i, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(i, "transform", "translate3d(0,0,0)"), typeof i.animated == "number" && clearTimeout(i.animated), i.animated = setTimeout(function() {
1680
+ v(i, "transition", ""), v(i, "transform", ""), i.animated = !1, i.animatingX = !1, i.animatingY = !1;
1681
1681
  }, s);
1682
1682
  }
1683
1683
  }
1684
1684
  };
1685
1685
  }
1686
- function as(e) {
1686
+ function ps(e) {
1687
1687
  return e.offsetWidth;
1688
1688
  }
1689
- function ls(e, t, n, i) {
1689
+ function fs(e, t, n, i) {
1690
1690
  return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) * i.animation;
1691
1691
  }
1692
- var Vt = [], xn = {
1692
+ var Vt = [], Sn = {
1693
1693
  initializeByDefault: !0
1694
- }, we = {
1694
+ }, xe = {
1695
1695
  mount: function(t) {
1696
- for (var n in xn)
1697
- xn.hasOwnProperty(n) && !(n in t) && (t[n] = xn[n]);
1696
+ for (var n in Sn)
1697
+ Sn.hasOwnProperty(n) && !(n in t) && (t[n] = Sn[n]);
1698
1698
  Vt.forEach(function(i) {
1699
1699
  if (i.pluginName === t.pluginName)
1700
1700
  throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
@@ -1707,9 +1707,9 @@ var Vt = [], xn = {
1707
1707
  };
1708
1708
  var r = t + "Global";
1709
1709
  Vt.forEach(function(s) {
1710
- n[s.pluginName] && (n[s.pluginName][r] && n[s.pluginName][r](ct({
1710
+ n[s.pluginName] && (n[s.pluginName][r] && n[s.pluginName][r](dt({
1711
1711
  sortable: n
1712
- }, i)), n.options[s.pluginName] && n[s.pluginName][t] && n[s.pluginName][t](ct({
1712
+ }, i)), n.options[s.pluginName] && n[s.pluginName][t] && n[s.pluginName][t](dt({
1713
1713
  sortable: n
1714
1714
  }, i)));
1715
1715
  });
@@ -1718,8 +1718,8 @@ var Vt = [], xn = {
1718
1718
  Vt.forEach(function(a) {
1719
1719
  var l = a.pluginName;
1720
1720
  if (!(!t.options[l] && !a.initializeByDefault)) {
1721
- var d = new a(t, n, t.options);
1722
- d.sortable = t, d.options = t.options, t[l] = d, yt(i, d.defaults);
1721
+ var u = new a(t, n, t.options);
1722
+ u.sortable = t, u.options = t.options, t[l] = u, yt(i, u.defaults);
1723
1723
  }
1724
1724
  });
1725
1725
  for (var r in t.options)
@@ -1741,41 +1741,41 @@ var Vt = [], xn = {
1741
1741
  }), o;
1742
1742
  }
1743
1743
  };
1744
- function ds(e) {
1745
- var t = e.sortable, n = e.rootEl, i = e.name, o = e.targetEl, r = e.cloneEl, s = e.toEl, a = e.fromEl, l = e.oldIndex, d = e.newIndex, c = e.oldDraggableIndex, u = e.newDraggableIndex, p = e.originalEvent, f = e.putSortable, g = e.extraEventProperties;
1746
- if (t = t || n && n[Q], !!t) {
1747
- var y, D = t.options, U = "on" + i.charAt(0).toUpperCase() + i.substr(1);
1748
- window.CustomEvent && !bt && !ve ? y = new CustomEvent(i, {
1744
+ function gs(e) {
1745
+ var t = e.sortable, n = e.rootEl, i = e.name, o = e.targetEl, r = e.cloneEl, s = e.toEl, a = e.fromEl, l = e.oldIndex, u = e.newIndex, d = e.oldDraggableIndex, c = e.newDraggableIndex, p = e.originalEvent, f = e.putSortable, g = e.extraEventProperties;
1746
+ if (t = t || n && n[nt], !!t) {
1747
+ var y, O = t.options, I = "on" + i.charAt(0).toUpperCase() + i.substr(1);
1748
+ window.CustomEvent && !bt && !Ee ? y = new CustomEvent(i, {
1749
1749
  bubbles: !0,
1750
1750
  cancelable: !0
1751
- }) : (y = document.createEvent("Event"), y.initEvent(i, !0, !0)), y.to = s || n, y.from = a || n, y.item = o || n, y.clone = r, y.oldIndex = l, y.newIndex = d, y.oldDraggableIndex = c, y.newDraggableIndex = u, y.originalEvent = p, y.pullMode = f ? f.lastPutMode : void 0;
1752
- var V = ct(ct({}, g), we.getEventProperties(i, t));
1753
- for (var et in V)
1754
- y[et] = V[et];
1755
- n && n.dispatchEvent(y), D[U] && D[U].call(t, y);
1751
+ }) : (y = document.createEvent("Event"), y.initEvent(i, !0, !0)), y.to = s || n, y.from = a || n, y.item = o || n, y.clone = r, y.oldIndex = l, y.newIndex = u, y.oldDraggableIndex = d, y.newDraggableIndex = c, y.originalEvent = p, y.pullMode = f ? f.lastPutMode : void 0;
1752
+ var H = dt(dt({}, g), xe.getEventProperties(i, t));
1753
+ for (var J in H)
1754
+ y[J] = H[J];
1755
+ n && n.dispatchEvent(y), O[I] && O[I].call(t, y);
1756
1756
  }
1757
1757
  }
1758
- var us = ["evt"], J = function(t, n) {
1759
- var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.evt, r = es(i, us);
1760
- we.pluginEvent.bind(v)(t, n, ct({
1758
+ var ms = ["evt"], tt = function(t, n) {
1759
+ var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.evt, r = as(i, ms);
1760
+ xe.pluginEvent.bind(w)(t, n, dt({
1761
1761
  dragEl: h,
1762
- parentEl: M,
1763
- ghostEl: w,
1764
- rootEl: O,
1765
- nextEl: Mt,
1766
- lastDownEl: Pe,
1767
- cloneEl: R,
1762
+ parentEl: N,
1763
+ ghostEl: E,
1764
+ rootEl: R,
1765
+ nextEl: It,
1766
+ lastDownEl: Oe,
1767
+ cloneEl: M,
1768
1768
  cloneHidden: St,
1769
- dragStarted: ee,
1770
- putSortable: k,
1771
- activeSortable: v.active,
1769
+ dragStarted: ne,
1770
+ putSortable: z,
1771
+ activeSortable: w.active,
1772
1772
  originalEvent: o,
1773
- oldIndex: jt,
1774
- oldDraggableIndex: le,
1775
- newIndex: it,
1773
+ oldIndex: Zt,
1774
+ oldDraggableIndex: ue,
1775
+ newIndex: rt,
1776
1776
  newDraggableIndex: xt,
1777
- hideGhostForTarget: oo,
1778
- unhideGhostForTarget: ro,
1777
+ hideGhostForTarget: co,
1778
+ unhideGhostForTarget: ho,
1779
1779
  cloneNowHidden: function() {
1780
1780
  St = !0;
1781
1781
  },
@@ -1783,7 +1783,7 @@ var us = ["evt"], J = function(t, n) {
1783
1783
  St = !1;
1784
1784
  },
1785
1785
  dispatchSortableEvent: function(a) {
1786
- G({
1786
+ Q({
1787
1787
  sortable: n,
1788
1788
  name: a,
1789
1789
  originalEvent: o
@@ -1791,96 +1791,96 @@ var us = ["evt"], J = function(t, n) {
1791
1791
  }
1792
1792
  }, r));
1793
1793
  };
1794
- function G(e) {
1795
- ds(ct({
1796
- putSortable: k,
1797
- cloneEl: R,
1794
+ function Q(e) {
1795
+ gs(dt({
1796
+ putSortable: z,
1797
+ cloneEl: M,
1798
1798
  targetEl: h,
1799
- rootEl: O,
1800
- oldIndex: jt,
1801
- oldDraggableIndex: le,
1802
- newIndex: it,
1799
+ rootEl: R,
1800
+ oldIndex: Zt,
1801
+ oldDraggableIndex: ue,
1802
+ newIndex: rt,
1803
1803
  newDraggableIndex: xt
1804
1804
  }, e));
1805
1805
  }
1806
- var h, M, w, O, Mt, Pe, R, St, jt, it, le, xt, xe, k, kt = !1, Le = !1, Ue = [], Ot, lt, Sn, $n, mi, yi, ee, Lt, de, ue = !1, Se = !1, De, q, _n = [], Rn = !1, ke = [], hn = typeof document < "u", $e = Xi, bi = ve || bt ? "cssFloat" : "float", cs = hn && !qi && !Xi && "draggable" in document.createElement("div"), eo = function() {
1807
- if (hn) {
1806
+ var h, N, E, R, It, Oe, M, St, Zt, rt, ue, xt, $e, z, Ft = !1, ke = !1, Ue = [], Rt, lt, $n, An, vi, wi, ne, kt, ce, de = !1, Ae = !1, De, W, _n = [], In = !1, Fe = [], pn = typeof document < "u", _e = Ki, Ei = Ee || bt ? "cssFloat" : "float", ys = pn && !Qi && !Ki && "draggable" in document.createElement("div"), ao = function() {
1807
+ if (pn) {
1808
1808
  if (bt)
1809
1809
  return !1;
1810
1810
  var e = document.createElement("x");
1811
1811
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
1812
1812
  }
1813
- }(), no = function(t, n) {
1814
- var i = b(t), o = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), r = Xt(t, 0, n), s = Xt(t, 1, n), a = r && b(r), l = s && b(s), d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + H(r).width, c = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + H(s).width;
1813
+ }(), lo = function(t, n) {
1814
+ var i = v(t), o = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), r = qt(t, 0, n), s = qt(t, 1, n), a = r && v(r), l = s && v(s), u = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + k(r).width, d = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + k(s).width;
1815
1815
  if (i.display === "flex")
1816
1816
  return i.flexDirection === "column" || i.flexDirection === "column-reverse" ? "vertical" : "horizontal";
1817
1817
  if (i.display === "grid")
1818
1818
  return i.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
1819
1819
  if (r && a.float && a.float !== "none") {
1820
- var u = a.float === "left" ? "left" : "right";
1821
- return s && (l.clear === "both" || l.clear === u) ? "vertical" : "horizontal";
1822
- }
1823
- return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || d >= o && i[bi] === "none" || s && i[bi] === "none" && d + c > o) ? "vertical" : "horizontal";
1824
- }, hs = function(t, n, i) {
1825
- var o = i ? t.left : t.top, r = i ? t.right : t.bottom, s = i ? t.width : t.height, a = i ? n.left : n.top, l = i ? n.right : n.bottom, d = i ? n.width : n.height;
1826
- return o === a || r === l || o + s / 2 === a + d / 2;
1827
- }, ps = function(t, n) {
1820
+ var c = a.float === "left" ? "left" : "right";
1821
+ return s && (l.clear === "both" || l.clear === c) ? "vertical" : "horizontal";
1822
+ }
1823
+ return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= o && i[Ei] === "none" || s && i[Ei] === "none" && u + d > o) ? "vertical" : "horizontal";
1824
+ }, bs = function(t, n, i) {
1825
+ var o = i ? t.left : t.top, r = i ? t.right : t.bottom, s = i ? t.width : t.height, a = i ? n.left : n.top, l = i ? n.right : n.bottom, u = i ? n.width : n.height;
1826
+ return o === a || r === l || o + s / 2 === a + u / 2;
1827
+ }, vs = function(t, n) {
1828
1828
  var i;
1829
1829
  return Ue.some(function(o) {
1830
- var r = o[Q].options.emptyInsertThreshold;
1831
- if (!(!r || qn(o))) {
1832
- var s = H(o), a = t >= s.left - r && t <= s.right + r, l = n >= s.top - r && n <= s.bottom + r;
1830
+ var r = o[nt].options.emptyInsertThreshold;
1831
+ if (!(!r || Gn(o))) {
1832
+ var s = k(o), a = t >= s.left - r && t <= s.right + r, l = n >= s.top - r && n <= s.bottom + r;
1833
1833
  if (a && l)
1834
1834
  return i = o;
1835
1835
  }
1836
1836
  }), i;
1837
- }, io = function(t) {
1837
+ }, uo = function(t) {
1838
1838
  function n(r, s) {
1839
- return function(a, l, d, c) {
1840
- var u = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
1841
- if (r == null && (s || u))
1839
+ return function(a, l, u, d) {
1840
+ var c = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
1841
+ if (r == null && (s || c))
1842
1842
  return !0;
1843
1843
  if (r == null || r === !1)
1844
1844
  return !1;
1845
1845
  if (s && r === "clone")
1846
1846
  return r;
1847
1847
  if (typeof r == "function")
1848
- return n(r(a, l, d, c), s)(a, l, d, c);
1848
+ return n(r(a, l, u, d), s)(a, l, u, d);
1849
1849
  var p = (s ? a : l).options.group.name;
1850
1850
  return r === !0 || typeof r == "string" && r === p || r.join && r.indexOf(p) > -1;
1851
1851
  };
1852
1852
  }
1853
1853
  var i = {}, o = t.group;
1854
- (!o || Te(o) != "object") && (o = {
1854
+ (!o || Pe(o) != "object") && (o = {
1855
1855
  name: o
1856
1856
  }), i.name = o.name, i.checkPull = n(o.pull, !0), i.checkPut = n(o.put), i.revertClone = o.revertClone, t.group = i;
1857
- }, oo = function() {
1858
- !eo && w && b(w, "display", "none");
1859
- }, ro = function() {
1860
- !eo && w && b(w, "display", "");
1857
+ }, co = function() {
1858
+ !ao && E && v(E, "display", "none");
1859
+ }, ho = function() {
1860
+ !ao && E && v(E, "display", "");
1861
1861
  };
1862
- hn && !qi && document.addEventListener("click", function(e) {
1863
- if (Le)
1864
- return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Le = !1, !1;
1862
+ pn && !Qi && document.addEventListener("click", function(e) {
1863
+ if (ke)
1864
+ return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), ke = !1, !1;
1865
1865
  }, !0);
1866
- var Rt = function(t) {
1866
+ var Mt = function(t) {
1867
1867
  if (h) {
1868
1868
  t = t.touches ? t.touches[0] : t;
1869
- var n = ps(t.clientX, t.clientY);
1869
+ var n = vs(t.clientX, t.clientY);
1870
1870
  if (n) {
1871
1871
  var i = {};
1872
1872
  for (var o in t)
1873
1873
  t.hasOwnProperty(o) && (i[o] = t[o]);
1874
- i.target = i.rootEl = n, i.preventDefault = void 0, i.stopPropagation = void 0, n[Q]._onDragOver(i);
1874
+ i.target = i.rootEl = n, i.preventDefault = void 0, i.stopPropagation = void 0, n[nt]._onDragOver(i);
1875
1875
  }
1876
1876
  }
1877
- }, fs = function(t) {
1878
- h && h.parentNode[Q]._isOutsideThisEl(t.target);
1877
+ }, ws = function(t) {
1878
+ h && h.parentNode[nt]._isOutsideThisEl(t.target);
1879
1879
  };
1880
- function v(e, t) {
1880
+ function w(e, t) {
1881
1881
  if (!(e && e.nodeType && e.nodeType === 1))
1882
1882
  throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
1883
- this.el = e, this.options = t = yt({}, t), e[Q] = this;
1883
+ this.el = e, this.options = t = yt({}, t), e[nt] = this;
1884
1884
  var n = {
1885
1885
  group: null,
1886
1886
  sort: !0,
@@ -1896,7 +1896,7 @@ function v(e, t) {
1896
1896
  // will be set to same as swapThreshold if default
1897
1897
  removeCloneOnHide: !0,
1898
1898
  direction: function() {
1899
- return no(e, this.options);
1899
+ return lo(e, this.options);
1900
1900
  },
1901
1901
  ghostClass: "sortable-ghost",
1902
1902
  chosenClass: "sortable-chosen",
@@ -1923,90 +1923,90 @@ function v(e, t) {
1923
1923
  x: 0,
1924
1924
  y: 0
1925
1925
  },
1926
- supportPointer: v.supportPointer !== !1 && "PointerEvent" in window && !se,
1926
+ supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && !ae,
1927
1927
  emptyInsertThreshold: 5
1928
1928
  };
1929
- we.initializePlugins(this, e, n);
1929
+ xe.initializePlugins(this, e, n);
1930
1930
  for (var i in n)
1931
1931
  !(i in t) && (t[i] = n[i]);
1932
- io(t);
1932
+ uo(t);
1933
1933
  for (var o in this)
1934
1934
  o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
1935
- this.nativeDraggable = t.forceFallback ? !1 : cs, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? _(e, "pointerdown", this._onTapStart) : (_(e, "mousedown", this._onTapStart), _(e, "touchstart", this._onTapStart)), this.nativeDraggable && (_(e, "dragover", this), _(e, "dragenter", this)), Ue.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), yt(this, ss());
1935
+ this.nativeDraggable = t.forceFallback ? !1 : ys, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? _(e, "pointerdown", this._onTapStart) : (_(e, "mousedown", this._onTapStart), _(e, "touchstart", this._onTapStart)), this.nativeDraggable && (_(e, "dragover", this), _(e, "dragenter", this)), Ue.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), yt(this, hs());
1936
1936
  }
1937
- v.prototype = /** @lends Sortable.prototype */
1937
+ w.prototype = /** @lends Sortable.prototype */
1938
1938
  {
1939
- constructor: v,
1939
+ constructor: w,
1940
1940
  _isOutsideThisEl: function(t) {
1941
- !this.el.contains(t) && t !== this.el && (Lt = null);
1941
+ !this.el.contains(t) && t !== this.el && (kt = null);
1942
1942
  },
1943
1943
  _getDirection: function(t, n) {
1944
1944
  return typeof this.options.direction == "function" ? this.options.direction.call(this, t, n, h) : this.options.direction;
1945
1945
  },
1946
1946
  _onTapStart: function(t) {
1947
1947
  if (t.cancelable) {
1948
- var n = this, i = this.el, o = this.options, r = o.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, c = o.filter;
1949
- if (xs(i), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !d.isContentEditable && !(!this.nativeDraggable && se && l && l.tagName.toUpperCase() === "SELECT") && (l = dt(l, o.draggable, i, !1), !(l && l.animated) && Pe !== l)) {
1950
- if (jt = ot(l), le = ot(l, o.draggable), typeof c == "function") {
1951
- if (c.call(this, t, l, this)) {
1952
- G({
1948
+ var n = this, i = this.el, o = this.options, r = o.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, d = o.filter;
1949
+ if (Ts(i), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !u.isContentEditable && !(!this.nativeDraggable && ae && l && l.tagName.toUpperCase() === "SELECT") && (l = ut(l, o.draggable, i, !1), !(l && l.animated) && Oe !== l)) {
1950
+ if (Zt = st(l), ue = st(l, o.draggable), typeof d == "function") {
1951
+ if (d.call(this, t, l, this)) {
1952
+ Q({
1953
1953
  sortable: n,
1954
- rootEl: d,
1954
+ rootEl: u,
1955
1955
  name: "filter",
1956
1956
  targetEl: l,
1957
1957
  toEl: i,
1958
1958
  fromEl: i
1959
- }), J("filter", n, {
1959
+ }), tt("filter", n, {
1960
1960
  evt: t
1961
1961
  }), r && t.cancelable && t.preventDefault();
1962
1962
  return;
1963
1963
  }
1964
- } else if (c && (c = c.split(",").some(function(u) {
1965
- if (u = dt(d, u.trim(), i, !1), u)
1966
- return G({
1964
+ } else if (d && (d = d.split(",").some(function(c) {
1965
+ if (c = ut(u, c.trim(), i, !1), c)
1966
+ return Q({
1967
1967
  sortable: n,
1968
- rootEl: u,
1968
+ rootEl: c,
1969
1969
  name: "filter",
1970
1970
  targetEl: l,
1971
1971
  fromEl: i,
1972
1972
  toEl: i
1973
- }), J("filter", n, {
1973
+ }), tt("filter", n, {
1974
1974
  evt: t
1975
1975
  }), !0;
1976
- }), c)) {
1976
+ }), d)) {
1977
1977
  r && t.cancelable && t.preventDefault();
1978
1978
  return;
1979
1979
  }
1980
- o.handle && !dt(d, o.handle, i, !1) || this._prepareDragStart(t, a, l);
1980
+ o.handle && !ut(u, o.handle, i, !1) || this._prepareDragStart(t, a, l);
1981
1981
  }
1982
1982
  }
1983
1983
  },
1984
1984
  _prepareDragStart: function(t, n, i) {
1985
1985
  var o = this, r = o.el, s = o.options, a = r.ownerDocument, l;
1986
1986
  if (i && !h && i.parentNode === r) {
1987
- var d = H(i);
1988
- if (O = r, h = i, M = h.parentNode, Mt = h.nextSibling, Pe = i, xe = s.group, v.dragged = h, Ot = {
1987
+ var u = k(i);
1988
+ if (R = r, h = i, N = h.parentNode, It = h.nextSibling, Oe = i, $e = s.group, w.dragged = h, Rt = {
1989
1989
  target: h,
1990
1990
  clientX: (n || t).clientX,
1991
1991
  clientY: (n || t).clientY
1992
- }, mi = Ot.clientX - d.left, yi = Ot.clientY - d.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY, h.style["will-change"] = "all", l = function() {
1993
- if (J("delayEnded", o, {
1992
+ }, vi = Rt.clientX - u.left, wi = Rt.clientY - u.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY, h.style["will-change"] = "all", l = function() {
1993
+ if (tt("delayEnded", o, {
1994
1994
  evt: t
1995
- }), v.eventCanceled) {
1995
+ }), w.eventCanceled) {
1996
1996
  o._onDrop();
1997
1997
  return;
1998
1998
  }
1999
- o._disableDelayedDragEvents(), !hi && o.nativeDraggable && (h.draggable = !0), o._triggerDragStart(t, n), G({
1999
+ o._disableDelayedDragEvents(), !gi && o.nativeDraggable && (h.draggable = !0), o._triggerDragStart(t, n), Q({
2000
2000
  sortable: o,
2001
2001
  name: "choose",
2002
2002
  originalEvent: t
2003
- }), nt(h, s.chosenClass, !0);
2004
- }, s.ignore.split(",").forEach(function(c) {
2005
- Gi(h, c.trim(), An);
2006
- }), _(a, "dragover", Rt), _(a, "mousemove", Rt), _(a, "touchmove", Rt), _(a, "mouseup", o._onDrop), _(a, "touchend", o._onDrop), _(a, "touchcancel", o._onDrop), hi && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), J("delayStart", this, {
2003
+ }), ot(h, s.chosenClass, !0);
2004
+ }, s.ignore.split(",").forEach(function(d) {
2005
+ no(h, d.trim(), Cn);
2006
+ }), _(a, "dragover", Mt), _(a, "mousemove", Mt), _(a, "touchmove", Mt), _(a, "mouseup", o._onDrop), _(a, "touchend", o._onDrop), _(a, "touchcancel", o._onDrop), gi && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), tt("delayStart", this, {
2007
2007
  evt: t
2008
- }), s.delay && (!s.delayOnTouchOnly || n) && (!this.nativeDraggable || !(ve || bt))) {
2009
- if (v.eventCanceled) {
2008
+ }), s.delay && (!s.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Ee || bt))) {
2009
+ if (w.eventCanceled) {
2010
2010
  this._onDrop();
2011
2011
  return;
2012
2012
  }
@@ -2020,28 +2020,28 @@ v.prototype = /** @lends Sortable.prototype */
2020
2020
  Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
2021
2021
  },
2022
2022
  _disableDelayedDrag: function() {
2023
- h && An(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2023
+ h && Cn(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2024
2024
  },
2025
2025
  _disableDelayedDragEvents: function() {
2026
2026
  var t = this.el.ownerDocument;
2027
- S(t, "mouseup", this._disableDelayedDrag), S(t, "touchend", this._disableDelayedDrag), S(t, "touchcancel", this._disableDelayedDrag), S(t, "mousemove", this._delayedDragTouchMoveHandler), S(t, "touchmove", this._delayedDragTouchMoveHandler), S(t, "pointermove", this._delayedDragTouchMoveHandler);
2027
+ $(t, "mouseup", this._disableDelayedDrag), $(t, "touchend", this._disableDelayedDrag), $(t, "touchcancel", this._disableDelayedDrag), $(t, "mousemove", this._delayedDragTouchMoveHandler), $(t, "touchmove", this._delayedDragTouchMoveHandler), $(t, "pointermove", this._delayedDragTouchMoveHandler);
2028
2028
  },
2029
2029
  _triggerDragStart: function(t, n) {
2030
- n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? _(document, "pointermove", this._onTouchMove) : n ? _(document, "touchmove", this._onTouchMove) : _(document, "mousemove", this._onTouchMove) : (_(h, "dragend", this), _(O, "dragstart", this._onDragStart));
2030
+ n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? _(document, "pointermove", this._onTouchMove) : n ? _(document, "touchmove", this._onTouchMove) : _(document, "mousemove", this._onTouchMove) : (_(h, "dragend", this), _(R, "dragstart", this._onDragStart));
2031
2031
  try {
2032
- document.selection ? Oe(function() {
2032
+ document.selection ? Re(function() {
2033
2033
  document.selection.empty();
2034
2034
  }) : window.getSelection().removeAllRanges();
2035
2035
  } catch {
2036
2036
  }
2037
2037
  },
2038
2038
  _dragStarted: function(t, n) {
2039
- if (kt = !1, O && h) {
2040
- J("dragStarted", this, {
2039
+ if (Ft = !1, R && h) {
2040
+ tt("dragStarted", this, {
2041
2041
  evt: n
2042
- }), this.nativeDraggable && _(document, "dragover", fs);
2042
+ }), this.nativeDraggable && _(document, "dragover", ws);
2043
2043
  var i = this.options;
2044
- !t && nt(h, i.dragClass, !1), nt(h, i.ghostClass, !0), v.active = this, t && this._appendGhost(), G({
2044
+ !t && ot(h, i.dragClass, !1), ot(h, i.ghostClass, !0), w.active = this, t && this._appendGhost(), Q({
2045
2045
  sortable: this,
2046
2046
  name: "start",
2047
2047
  originalEvent: n
@@ -2051,14 +2051,14 @@ v.prototype = /** @lends Sortable.prototype */
2051
2051
  },
2052
2052
  _emulateDragOver: function() {
2053
2053
  if (lt) {
2054
- this._lastX = lt.clientX, this._lastY = lt.clientY, oo();
2054
+ this._lastX = lt.clientX, this._lastY = lt.clientY, co();
2055
2055
  for (var t = document.elementFromPoint(lt.clientX, lt.clientY), n = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(lt.clientX, lt.clientY), t !== n); )
2056
2056
  n = t;
2057
- if (h.parentNode[Q]._isOutsideThisEl(t), n)
2057
+ if (h.parentNode[nt]._isOutsideThisEl(t), n)
2058
2058
  do {
2059
- if (n[Q]) {
2059
+ if (n[nt]) {
2060
2060
  var i = void 0;
2061
- if (i = n[Q]._onDragOver({
2061
+ if (i = n[nt]._onDragOver({
2062
2062
  clientX: lt.clientX,
2063
2063
  clientY: lt.clientY,
2064
2064
  target: t,
@@ -2067,211 +2067,211 @@ v.prototype = /** @lends Sortable.prototype */
2067
2067
  break;
2068
2068
  }
2069
2069
  t = n;
2070
- } while (n = Wi(n));
2071
- ro();
2070
+ } while (n = eo(n));
2071
+ ho();
2072
2072
  }
2073
2073
  },
2074
2074
  _onTouchMove: function(t) {
2075
- if (Ot) {
2076
- var n = this.options, i = n.fallbackTolerance, o = n.fallbackOffset, r = t.touches ? t.touches[0] : t, s = w && Zt(w, !0), a = w && s && s.a, l = w && s && s.d, d = $e && q && gi(q), c = (r.clientX - Ot.clientX + o.x) / (a || 1) + (d ? d[0] - _n[0] : 0) / (a || 1), u = (r.clientY - Ot.clientY + o.y) / (l || 1) + (d ? d[1] - _n[1] : 0) / (l || 1);
2077
- if (!v.active && !kt) {
2075
+ if (Rt) {
2076
+ var n = this.options, i = n.fallbackTolerance, o = n.fallbackOffset, r = t.touches ? t.touches[0] : t, s = E && zt(E, !0), a = E && s && s.a, l = E && s && s.d, u = _e && W && bi(W), d = (r.clientX - Rt.clientX + o.x) / (a || 1) + (u ? u[0] - _n[0] : 0) / (a || 1), c = (r.clientY - Rt.clientY + o.y) / (l || 1) + (u ? u[1] - _n[1] : 0) / (l || 1);
2077
+ if (!w.active && !Ft) {
2078
2078
  if (i && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < i)
2079
2079
  return;
2080
2080
  this._onDragStart(t, !0);
2081
2081
  }
2082
- if (w) {
2083
- s ? (s.e += c - (Sn || 0), s.f += u - ($n || 0)) : s = {
2082
+ if (E) {
2083
+ s ? (s.e += d - ($n || 0), s.f += c - (An || 0)) : s = {
2084
2084
  a: 1,
2085
2085
  b: 0,
2086
2086
  c: 0,
2087
2087
  d: 1,
2088
- e: c,
2089
- f: u
2088
+ e: d,
2089
+ f: c
2090
2090
  };
2091
2091
  var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
2092
- b(w, "webkitTransform", p), b(w, "mozTransform", p), b(w, "msTransform", p), b(w, "transform", p), Sn = c, $n = u, lt = r;
2092
+ v(E, "webkitTransform", p), v(E, "mozTransform", p), v(E, "msTransform", p), v(E, "transform", p), $n = d, An = c, lt = r;
2093
2093
  }
2094
2094
  t.cancelable && t.preventDefault();
2095
2095
  }
2096
2096
  },
2097
2097
  _appendGhost: function() {
2098
- if (!w) {
2099
- var t = this.options.fallbackOnBody ? document.body : O, n = H(h, !0, $e, !0, t), i = this.options;
2100
- if ($e) {
2101
- for (q = t; b(q, "position") === "static" && b(q, "transform") === "none" && q !== document; )
2102
- q = q.parentNode;
2103
- q !== document.body && q !== document.documentElement ? (q === document && (q = ut()), n.top += q.scrollTop, n.left += q.scrollLeft) : q = ut(), _n = gi(q);
2098
+ if (!E) {
2099
+ var t = this.options.fallbackOnBody ? document.body : R, n = k(h, !0, _e, !0, t), i = this.options;
2100
+ if (_e) {
2101
+ for (W = t; v(W, "position") === "static" && v(W, "transform") === "none" && W !== document; )
2102
+ W = W.parentNode;
2103
+ W !== document.body && W !== document.documentElement ? (W === document && (W = ct()), n.top += W.scrollTop, n.left += W.scrollLeft) : W = ct(), _n = bi(W);
2104
2104
  }
2105
- w = h.cloneNode(!0), nt(w, i.ghostClass, !1), nt(w, i.fallbackClass, !0), nt(w, i.dragClass, !0), b(w, "transition", ""), b(w, "transform", ""), b(w, "box-sizing", "border-box"), b(w, "margin", 0), b(w, "top", n.top), b(w, "left", n.left), b(w, "width", n.width), b(w, "height", n.height), b(w, "opacity", "0.8"), b(w, "position", $e ? "absolute" : "fixed"), b(w, "zIndex", "100000"), b(w, "pointerEvents", "none"), v.ghost = w, t.appendChild(w), b(w, "transform-origin", mi / parseInt(w.style.width) * 100 + "% " + yi / parseInt(w.style.height) * 100 + "%");
2105
+ E = h.cloneNode(!0), ot(E, i.ghostClass, !1), ot(E, i.fallbackClass, !0), ot(E, i.dragClass, !0), v(E, "transition", ""), v(E, "transform", ""), v(E, "box-sizing", "border-box"), v(E, "margin", 0), v(E, "top", n.top), v(E, "left", n.left), v(E, "width", n.width), v(E, "height", n.height), v(E, "opacity", "0.8"), v(E, "position", _e ? "absolute" : "fixed"), v(E, "zIndex", "100000"), v(E, "pointerEvents", "none"), w.ghost = E, t.appendChild(E), v(E, "transform-origin", vi / parseInt(E.style.width) * 100 + "% " + wi / parseInt(E.style.height) * 100 + "%");
2106
2106
  }
2107
2107
  },
2108
2108
  _onDragStart: function(t, n) {
2109
2109
  var i = this, o = t.dataTransfer, r = i.options;
2110
- if (J("dragStart", this, {
2110
+ if (tt("dragStart", this, {
2111
2111
  evt: t
2112
- }), v.eventCanceled) {
2112
+ }), w.eventCanceled) {
2113
2113
  this._onDrop();
2114
2114
  return;
2115
2115
  }
2116
- J("setupClone", this), v.eventCanceled || (R = Qi(h), R.removeAttribute("id"), R.draggable = !1, R.style["will-change"] = "", this._hideClone(), nt(R, this.options.chosenClass, !1), v.clone = R), i.cloneId = Oe(function() {
2117
- J("clone", i), !v.eventCanceled && (i.options.removeCloneOnHide || O.insertBefore(R, h), i._hideClone(), G({
2116
+ tt("setupClone", this), w.eventCanceled || (M = ro(h), M.removeAttribute("id"), M.draggable = !1, M.style["will-change"] = "", this._hideClone(), ot(M, this.options.chosenClass, !1), w.clone = M), i.cloneId = Re(function() {
2117
+ tt("clone", i), !w.eventCanceled && (i.options.removeCloneOnHide || R.insertBefore(M, h), i._hideClone(), Q({
2118
2118
  sortable: i,
2119
2119
  name: "clone"
2120
2120
  }));
2121
- }), !n && nt(h, r.dragClass, !0), n ? (Le = !0, i._loopId = setInterval(i._emulateDragOver, 50)) : (S(document, "mouseup", i._onDrop), S(document, "touchend", i._onDrop), S(document, "touchcancel", i._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(i, o, h)), _(document, "drop", i), b(h, "transform", "translateZ(0)")), kt = !0, i._dragStartId = Oe(i._dragStarted.bind(i, n, t)), _(document, "selectstart", i), ee = !0, se && b(document.body, "user-select", "none");
2121
+ }), !n && ot(h, r.dragClass, !0), n ? (ke = !0, i._loopId = setInterval(i._emulateDragOver, 50)) : ($(document, "mouseup", i._onDrop), $(document, "touchend", i._onDrop), $(document, "touchcancel", i._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(i, o, h)), _(document, "drop", i), v(h, "transform", "translateZ(0)")), Ft = !0, i._dragStartId = Re(i._dragStarted.bind(i, n, t)), _(document, "selectstart", i), ne = !0, ae && v(document.body, "user-select", "none");
2122
2122
  },
2123
2123
  // Returns true - if no further action is needed (either inserted or another condition)
2124
2124
  _onDragOver: function(t) {
2125
- var n = this.el, i = t.target, o, r, s, a = this.options, l = a.group, d = v.active, c = xe === l, u = a.sort, p = k || d, f, g = this, y = !1;
2126
- if (Rn) return;
2127
- function D(Jt, Io) {
2128
- J(Jt, g, ct({
2125
+ var n = this.el, i = t.target, o, r, s, a = this.options, l = a.group, u = w.active, d = $e === l, c = a.sort, p = z || u, f, g = this, y = !1;
2126
+ if (In) return;
2127
+ function O(Kt, Uo) {
2128
+ tt(Kt, g, dt({
2129
2129
  evt: t,
2130
- isOwner: c,
2130
+ isOwner: d,
2131
2131
  axis: f ? "vertical" : "horizontal",
2132
2132
  revert: s,
2133
2133
  dragRect: o,
2134
2134
  targetRect: r,
2135
- canSort: u,
2135
+ canSort: c,
2136
2136
  fromSortable: p,
2137
2137
  target: i,
2138
- completed: V,
2139
- onMove: function(Jn, Ho) {
2140
- return _e(O, n, h, o, Jn, H(Jn), t, Ho);
2138
+ completed: H,
2139
+ onMove: function(ti, Fo) {
2140
+ return Ce(R, n, h, o, ti, k(ti), t, Fo);
2141
2141
  },
2142
- changed: et
2143
- }, Io));
2142
+ changed: J
2143
+ }, Uo));
2144
2144
  }
2145
- function U() {
2146
- D("dragOverAnimationCapture"), g.captureAnimationState(), g !== p && p.captureAnimationState();
2145
+ function I() {
2146
+ O("dragOverAnimationCapture"), g.captureAnimationState(), g !== p && p.captureAnimationState();
2147
2147
  }
2148
- function V(Jt) {
2149
- return D("dragOverCompleted", {
2150
- insertion: Jt
2151
- }), Jt && (c ? d._hideClone() : d._showClone(g), g !== p && (nt(h, k ? k.options.ghostClass : d.options.ghostClass, !1), nt(h, a.ghostClass, !0)), k !== g && g !== v.active ? k = g : g === v.active && k && (k = null), p === g && (g._ignoreWhileAnimating = i), g.animateAll(function() {
2152
- D("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
2153
- }), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i === h && !h.animated || i === n && !i.animated) && (Lt = null), !a.dragoverBubble && !t.rootEl && i !== document && (h.parentNode[Q]._isOutsideThisEl(t.target), !Jt && Rt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), y = !0;
2148
+ function H(Kt) {
2149
+ return O("dragOverCompleted", {
2150
+ insertion: Kt
2151
+ }), Kt && (d ? u._hideClone() : u._showClone(g), g !== p && (ot(h, z ? z.options.ghostClass : u.options.ghostClass, !1), ot(h, a.ghostClass, !0)), z !== g && g !== w.active ? z = g : g === w.active && z && (z = null), p === g && (g._ignoreWhileAnimating = i), g.animateAll(function() {
2152
+ O("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
2153
+ }), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i === h && !h.animated || i === n && !i.animated) && (kt = null), !a.dragoverBubble && !t.rootEl && i !== document && (h.parentNode[nt]._isOutsideThisEl(t.target), !Kt && Mt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), y = !0;
2154
2154
  }
2155
- function et() {
2156
- it = ot(h), xt = ot(h, a.draggable), G({
2155
+ function J() {
2156
+ rt = st(h), xt = st(h, a.draggable), Q({
2157
2157
  sortable: g,
2158
2158
  name: "change",
2159
2159
  toEl: n,
2160
- newIndex: it,
2160
+ newIndex: rt,
2161
2161
  newDraggableIndex: xt,
2162
2162
  originalEvent: t
2163
2163
  });
2164
2164
  }
2165
- if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i = dt(i, a.draggable, n, !0), D("dragOver"), v.eventCanceled) return y;
2165
+ if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i = ut(i, a.draggable, n, !0), O("dragOver"), w.eventCanceled) return y;
2166
2166
  if (h.contains(t.target) || i.animated && i.animatingX && i.animatingY || g._ignoreWhileAnimating === i)
2167
- return V(!1);
2168
- if (Le = !1, d && !a.disabled && (c ? u || (s = M !== O) : k === this || (this.lastPutMode = xe.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
2169
- if (f = this._getDirection(t, i) === "vertical", o = H(h), D("dragOverValid"), v.eventCanceled) return y;
2167
+ return H(!1);
2168
+ if (ke = !1, u && !a.disabled && (d ? c || (s = N !== R) : z === this || (this.lastPutMode = $e.checkPull(this, u, h, t)) && l.checkPut(this, u, h, t))) {
2169
+ if (f = this._getDirection(t, i) === "vertical", o = k(h), O("dragOverValid"), w.eventCanceled) return y;
2170
2170
  if (s)
2171
- return M = O, U(), this._hideClone(), D("revert"), v.eventCanceled || (Mt ? O.insertBefore(h, Mt) : O.appendChild(h)), V(!0);
2172
- var W = qn(n, a.draggable);
2173
- if (!W || bs(t, f, this) && !W.animated) {
2174
- if (W === h)
2175
- return V(!1);
2176
- if (W && n === t.target && (i = W), i && (r = H(i)), _e(O, n, h, o, i, r, t, !!i) !== !1)
2177
- return U(), W && W.nextSibling ? n.insertBefore(h, W.nextSibling) : n.appendChild(h), M = n, et(), V(!0);
2178
- } else if (W && ys(t, f, this)) {
2179
- var st = Xt(n, 0, a, !0);
2180
- if (st === h)
2181
- return V(!1);
2182
- if (i = st, r = H(i), _e(O, n, h, o, i, r, t, !1) !== !1)
2183
- return U(), n.insertBefore(h, st), M = n, et(), V(!0);
2171
+ return N = R, I(), this._hideClone(), O("revert"), w.eventCanceled || (It ? R.insertBefore(h, It) : R.appendChild(h)), H(!0);
2172
+ var j = Gn(n, a.draggable);
2173
+ if (!j || $s(t, f, this) && !j.animated) {
2174
+ if (j === h)
2175
+ return H(!1);
2176
+ if (j && n === t.target && (i = j), i && (r = k(i)), Ce(R, n, h, o, i, r, t, !!i) !== !1)
2177
+ return I(), j && j.nextSibling ? n.insertBefore(h, j.nextSibling) : n.appendChild(h), N = n, J(), H(!0);
2178
+ } else if (j && Ss(t, f, this)) {
2179
+ var K = qt(n, 0, a, !0);
2180
+ if (K === h)
2181
+ return H(!1);
2182
+ if (i = K, r = k(i), Ce(R, n, h, o, i, r, t, !1) !== !1)
2183
+ return I(), n.insertBefore(h, K), N = n, J(), H(!0);
2184
2184
  } else if (i.parentNode === n) {
2185
- r = H(i);
2186
- var A = 0, z, at = h.parentNode !== n, X = !hs(h.animated && h.toRect || o, i.animated && i.toRect || r, f), Yt = f ? "top" : "left", vt = fi(i, "top", "top") || fi(h, "top", "top"), Wt = vt ? vt.scrollTop : void 0;
2187
- Lt !== i && (z = r[Yt], ue = !1, Se = !X && a.invertSwap || at), A = vs(t, i, r, f, X ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Se, Lt === i);
2185
+ r = k(i);
2186
+ var b = 0, D, Z = h.parentNode !== n, U = !bs(h.animated && h.toRect || o, i.animated && i.toRect || r, f), Wt = f ? "top" : "left", vt = yi(i, "top", "top") || yi(h, "top", "top"), Gt = vt ? vt.scrollTop : void 0;
2187
+ kt !== i && (D = r[Wt], de = !1, Ae = !U && a.invertSwap || Z), b = As(t, i, r, f, U ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ae, kt === i);
2188
2188
  var ht;
2189
- if (A !== 0) {
2190
- var Tt = ot(h);
2189
+ if (b !== 0) {
2190
+ var Pt = st(h);
2191
2191
  do
2192
- Tt -= A, ht = M.children[Tt];
2193
- while (ht && (b(ht, "display") === "none" || ht === w));
2192
+ Pt -= b, ht = N.children[Pt];
2193
+ while (ht && (v(ht, "display") === "none" || ht === E));
2194
2194
  }
2195
- if (A === 0 || ht === i)
2196
- return V(!1);
2197
- Lt = i, de = A;
2198
- var Gt = i.nextElementSibling, wt = !1;
2199
- wt = A === 1;
2200
- var Ee = _e(O, n, h, o, i, r, t, wt);
2201
- if (Ee !== !1)
2202
- return (Ee === 1 || Ee === -1) && (wt = Ee === 1), Rn = !0, setTimeout(ms, 30), U(), wt && !Gt ? n.appendChild(h) : i.parentNode.insertBefore(h, wt ? Gt : i), vt && Ki(vt, 0, Wt - vt.scrollTop), M = h.parentNode, z !== void 0 && !Se && (De = Math.abs(z - H(i)[Yt])), et(), V(!0);
2195
+ if (b === 0 || ht === i)
2196
+ return H(!1);
2197
+ kt = i, ce = b;
2198
+ var Jt = i.nextElementSibling, wt = !1;
2199
+ wt = b === 1;
2200
+ var Se = Ce(R, n, h, o, i, r, t, wt);
2201
+ if (Se !== !1)
2202
+ return (Se === 1 || Se === -1) && (wt = Se === 1), In = !0, setTimeout(xs, 30), I(), wt && !Jt ? n.appendChild(h) : i.parentNode.insertBefore(h, wt ? Jt : i), vt && oo(vt, 0, Gt - vt.scrollTop), N = h.parentNode, D !== void 0 && !Ae && (De = Math.abs(D - k(i)[Wt])), J(), H(!0);
2203
2203
  }
2204
2204
  if (n.contains(h))
2205
- return V(!1);
2205
+ return H(!1);
2206
2206
  }
2207
2207
  return !1;
2208
2208
  },
2209
2209
  _ignoreWhileAnimating: null,
2210
2210
  _offMoveEvents: function() {
2211
- S(document, "mousemove", this._onTouchMove), S(document, "touchmove", this._onTouchMove), S(document, "pointermove", this._onTouchMove), S(document, "dragover", Rt), S(document, "mousemove", Rt), S(document, "touchmove", Rt);
2211
+ $(document, "mousemove", this._onTouchMove), $(document, "touchmove", this._onTouchMove), $(document, "pointermove", this._onTouchMove), $(document, "dragover", Mt), $(document, "mousemove", Mt), $(document, "touchmove", Mt);
2212
2212
  },
2213
2213
  _offUpEvents: function() {
2214
2214
  var t = this.el.ownerDocument;
2215
- S(t, "mouseup", this._onDrop), S(t, "touchend", this._onDrop), S(t, "pointerup", this._onDrop), S(t, "touchcancel", this._onDrop), S(document, "selectstart", this);
2215
+ $(t, "mouseup", this._onDrop), $(t, "touchend", this._onDrop), $(t, "pointerup", this._onDrop), $(t, "touchcancel", this._onDrop), $(document, "selectstart", this);
2216
2216
  },
2217
2217
  _onDrop: function(t) {
2218
2218
  var n = this.el, i = this.options;
2219
- if (it = ot(h), xt = ot(h, i.draggable), J("drop", this, {
2219
+ if (rt = st(h), xt = st(h, i.draggable), tt("drop", this, {
2220
2220
  evt: t
2221
- }), M = h && h.parentNode, it = ot(h), xt = ot(h, i.draggable), v.eventCanceled) {
2221
+ }), N = h && h.parentNode, rt = st(h), xt = st(h, i.draggable), w.eventCanceled) {
2222
2222
  this._nulling();
2223
2223
  return;
2224
2224
  }
2225
- kt = !1, Se = !1, ue = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Mn(this.cloneId), Mn(this._dragStartId), this.nativeDraggable && (S(document, "drop", this), S(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), se && b(document.body, "user-select", ""), b(h, "transform", ""), t && (ee && (t.cancelable && t.preventDefault(), !i.dropBubble && t.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (O === M || k && k.lastPutMode !== "clone") && R && R.parentNode && R.parentNode.removeChild(R), h && (this.nativeDraggable && S(h, "dragend", this), An(h), h.style["will-change"] = "", ee && !kt && nt(h, k ? k.options.ghostClass : this.options.ghostClass, !1), nt(h, this.options.chosenClass, !1), G({
2225
+ Ft = !1, Ae = !1, de = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Nn(this.cloneId), Nn(this._dragStartId), this.nativeDraggable && ($(document, "drop", this), $(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), ae && v(document.body, "user-select", ""), v(h, "transform", ""), t && (ne && (t.cancelable && t.preventDefault(), !i.dropBubble && t.stopPropagation()), E && E.parentNode && E.parentNode.removeChild(E), (R === N || z && z.lastPutMode !== "clone") && M && M.parentNode && M.parentNode.removeChild(M), h && (this.nativeDraggable && $(h, "dragend", this), Cn(h), h.style["will-change"] = "", ne && !Ft && ot(h, z ? z.options.ghostClass : this.options.ghostClass, !1), ot(h, this.options.chosenClass, !1), Q({
2226
2226
  sortable: this,
2227
2227
  name: "unchoose",
2228
- toEl: M,
2228
+ toEl: N,
2229
2229
  newIndex: null,
2230
2230
  newDraggableIndex: null,
2231
2231
  originalEvent: t
2232
- }), O !== M ? (it >= 0 && (G({
2233
- rootEl: M,
2232
+ }), R !== N ? (rt >= 0 && (Q({
2233
+ rootEl: N,
2234
2234
  name: "add",
2235
- toEl: M,
2236
- fromEl: O,
2235
+ toEl: N,
2236
+ fromEl: R,
2237
2237
  originalEvent: t
2238
- }), G({
2238
+ }), Q({
2239
2239
  sortable: this,
2240
2240
  name: "remove",
2241
- toEl: M,
2241
+ toEl: N,
2242
2242
  originalEvent: t
2243
- }), G({
2244
- rootEl: M,
2243
+ }), Q({
2244
+ rootEl: N,
2245
2245
  name: "sort",
2246
- toEl: M,
2247
- fromEl: O,
2246
+ toEl: N,
2247
+ fromEl: R,
2248
2248
  originalEvent: t
2249
- }), G({
2249
+ }), Q({
2250
2250
  sortable: this,
2251
2251
  name: "sort",
2252
- toEl: M,
2252
+ toEl: N,
2253
2253
  originalEvent: t
2254
- })), k && k.save()) : it !== jt && it >= 0 && (G({
2254
+ })), z && z.save()) : rt !== Zt && rt >= 0 && (Q({
2255
2255
  sortable: this,
2256
2256
  name: "update",
2257
- toEl: M,
2257
+ toEl: N,
2258
2258
  originalEvent: t
2259
- }), G({
2259
+ }), Q({
2260
2260
  sortable: this,
2261
2261
  name: "sort",
2262
- toEl: M,
2262
+ toEl: N,
2263
2263
  originalEvent: t
2264
- })), v.active && ((it == null || it === -1) && (it = jt, xt = le), G({
2264
+ })), w.active && ((rt == null || rt === -1) && (rt = Zt, xt = ue), Q({
2265
2265
  sortable: this,
2266
2266
  name: "end",
2267
- toEl: M,
2267
+ toEl: N,
2268
2268
  originalEvent: t
2269
2269
  }), this.save()))), this._nulling();
2270
2270
  },
2271
2271
  _nulling: function() {
2272
- J("nulling", this), O = h = M = w = Mt = R = Pe = St = Ot = lt = ee = it = xt = jt = le = Lt = de = k = xe = v.dragged = v.ghost = v.clone = v.active = null, ke.forEach(function(t) {
2272
+ tt("nulling", this), R = h = N = E = It = M = Oe = St = Rt = lt = ne = rt = xt = Zt = ue = kt = ce = z = $e = w.dragged = w.ghost = w.clone = w.active = null, Fe.forEach(function(t) {
2273
2273
  t.checked = !0;
2274
- }), ke.length = Sn = $n = 0;
2274
+ }), Fe.length = $n = An = 0;
2275
2275
  },
2276
2276
  handleEvent: function(t) {
2277
2277
  switch (t.type) {
@@ -2281,7 +2281,7 @@ v.prototype = /** @lends Sortable.prototype */
2281
2281
  break;
2282
2282
  case "dragenter":
2283
2283
  case "dragover":
2284
- h && (this._onDragOver(t), gs(t));
2284
+ h && (this._onDragOver(t), Es(t));
2285
2285
  break;
2286
2286
  case "selectstart":
2287
2287
  t.preventDefault();
@@ -2294,7 +2294,7 @@ v.prototype = /** @lends Sortable.prototype */
2294
2294
  */
2295
2295
  toArray: function() {
2296
2296
  for (var t = [], n, i = this.el.children, o = 0, r = i.length, s = this.options; o < r; o++)
2297
- n = i[o], dt(n, s.draggable, this.el, !1) && t.push(n.getAttribute(s.dataIdAttr) || Es(n));
2297
+ n = i[o], ut(n, s.draggable, this.el, !1) && t.push(n.getAttribute(s.dataIdAttr) || Cs(n));
2298
2298
  return t;
2299
2299
  },
2300
2300
  /**
@@ -2305,7 +2305,7 @@ v.prototype = /** @lends Sortable.prototype */
2305
2305
  var i = {}, o = this.el;
2306
2306
  this.toArray().forEach(function(r, s) {
2307
2307
  var a = o.children[s];
2308
- dt(a, this.options.draggable, o, !1) && (i[r] = a);
2308
+ ut(a, this.options.draggable, o, !1) && (i[r] = a);
2309
2309
  }, this), n && this.captureAnimationState(), t.forEach(function(r) {
2310
2310
  i[r] && (o.removeChild(i[r]), o.appendChild(i[r]));
2311
2311
  }), n && this.animateAll();
@@ -2324,7 +2324,7 @@ v.prototype = /** @lends Sortable.prototype */
2324
2324
  * @returns {HTMLElement|null}
2325
2325
  */
2326
2326
  closest: function(t, n) {
2327
- return dt(t, n || this.options.draggable, this.el, !1);
2327
+ return ut(t, n || this.options.draggable, this.el, !1);
2328
2328
  },
2329
2329
  /**
2330
2330
  * Set/get option
@@ -2336,23 +2336,23 @@ v.prototype = /** @lends Sortable.prototype */
2336
2336
  var i = this.options;
2337
2337
  if (n === void 0)
2338
2338
  return i[t];
2339
- var o = we.modifyOption(this, t, n);
2340
- typeof o < "u" ? i[t] = o : i[t] = n, t === "group" && io(i);
2339
+ var o = xe.modifyOption(this, t, n);
2340
+ typeof o < "u" ? i[t] = o : i[t] = n, t === "group" && uo(i);
2341
2341
  },
2342
2342
  /**
2343
2343
  * Destroy
2344
2344
  */
2345
2345
  destroy: function() {
2346
- J("destroy", this);
2346
+ tt("destroy", this);
2347
2347
  var t = this.el;
2348
- t[Q] = null, S(t, "mousedown", this._onTapStart), S(t, "touchstart", this._onTapStart), S(t, "pointerdown", this._onTapStart), this.nativeDraggable && (S(t, "dragover", this), S(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(n) {
2348
+ t[nt] = 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(n) {
2349
2349
  n.removeAttribute("draggable");
2350
2350
  }), this._onDrop(), this._disableDelayedDragEvents(), Ue.splice(Ue.indexOf(this.el), 1), this.el = t = null;
2351
2351
  },
2352
2352
  _hideClone: function() {
2353
2353
  if (!St) {
2354
- if (J("hideClone", this), v.eventCanceled) return;
2355
- b(R, "display", "none"), this.options.removeCloneOnHide && R.parentNode && R.parentNode.removeChild(R), St = !0;
2354
+ if (tt("hideClone", this), w.eventCanceled) return;
2355
+ v(M, "display", "none"), this.options.removeCloneOnHide && M.parentNode && M.parentNode.removeChild(M), St = !0;
2356
2356
  }
2357
2357
  },
2358
2358
  _showClone: function(t) {
@@ -2361,110 +2361,110 @@ v.prototype = /** @lends Sortable.prototype */
2361
2361
  return;
2362
2362
  }
2363
2363
  if (St) {
2364
- if (J("showClone", this), v.eventCanceled) return;
2365
- h.parentNode == O && !this.options.group.revertClone ? O.insertBefore(R, h) : Mt ? O.insertBefore(R, Mt) : O.appendChild(R), this.options.group.revertClone && this.animate(h, R), b(R, "display", ""), St = !1;
2364
+ if (tt("showClone", this), w.eventCanceled) return;
2365
+ h.parentNode == R && !this.options.group.revertClone ? R.insertBefore(M, h) : It ? R.insertBefore(M, It) : R.appendChild(M), this.options.group.revertClone && this.animate(h, M), v(M, "display", ""), St = !1;
2366
2366
  }
2367
2367
  }
2368
2368
  };
2369
- function gs(e) {
2369
+ function Es(e) {
2370
2370
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
2371
2371
  }
2372
- function _e(e, t, n, i, o, r, s, a) {
2373
- var l, d = e[Q], c = d.options.onMove, u;
2374
- return window.CustomEvent && !bt && !ve ? l = new CustomEvent("move", {
2372
+ function Ce(e, t, n, i, o, r, s, a) {
2373
+ var l, u = e[nt], d = u.options.onMove, c;
2374
+ return window.CustomEvent && !bt && !Ee ? l = new CustomEvent("move", {
2375
2375
  bubbles: !0,
2376
2376
  cancelable: !0
2377
- }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = n, l.draggedRect = i, l.related = o || t, l.relatedRect = r || H(t), l.willInsertAfter = a, l.originalEvent = s, e.dispatchEvent(l), c && (u = c.call(d, l, s)), u;
2377
+ }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = n, l.draggedRect = i, l.related = o || t, l.relatedRect = r || k(t), l.willInsertAfter = a, l.originalEvent = s, e.dispatchEvent(l), d && (c = d.call(u, l, s)), c;
2378
2378
  }
2379
- function An(e) {
2379
+ function Cn(e) {
2380
2380
  e.draggable = !1;
2381
2381
  }
2382
- function ms() {
2383
- Rn = !1;
2382
+ function xs() {
2383
+ In = !1;
2384
2384
  }
2385
- function ys(e, t, n) {
2386
- var i = H(Xt(n.el, 0, n.options, !0)), o = to(n.el, n.options, w), r = 10;
2385
+ function Ss(e, t, n) {
2386
+ var i = k(qt(n.el, 0, n.options, !0)), o = so(n.el, n.options, E), r = 10;
2387
2387
  return t ? e.clientX < o.left - r || e.clientY < i.top && e.clientX < i.right : e.clientY < o.top - r || e.clientY < i.bottom && e.clientX < i.left;
2388
2388
  }
2389
- function bs(e, t, n) {
2390
- var i = H(qn(n.el, n.options.draggable)), o = to(n.el, n.options, w), r = 10;
2389
+ function $s(e, t, n) {
2390
+ var i = k(Gn(n.el, n.options.draggable)), o = so(n.el, n.options, E), r = 10;
2391
2391
  return t ? e.clientX > o.right + r || e.clientY > i.bottom && e.clientX > i.left : e.clientY > o.bottom + r || e.clientX > i.right && e.clientY > i.top;
2392
2392
  }
2393
- function vs(e, t, n, i, o, r, s, a) {
2394
- var l = i ? e.clientY : e.clientX, d = i ? n.height : n.width, c = i ? n.top : n.left, u = i ? n.bottom : n.right, p = !1;
2393
+ function As(e, t, n, i, o, r, s, a) {
2394
+ var l = i ? e.clientY : e.clientX, u = i ? n.height : n.width, d = i ? n.top : n.left, c = i ? n.bottom : n.right, p = !1;
2395
2395
  if (!s) {
2396
- if (a && De < d * o) {
2397
- if (!ue && (de === 1 ? l > c + d * r / 2 : l < u - d * r / 2) && (ue = !0), ue)
2396
+ if (a && De < u * o) {
2397
+ if (!de && (ce === 1 ? l > d + u * r / 2 : l < c - u * r / 2) && (de = !0), de)
2398
2398
  p = !0;
2399
- else if (de === 1 ? l < c + De : l > u - De)
2400
- return -de;
2401
- } else if (l > c + d * (1 - o) / 2 && l < u - d * (1 - o) / 2)
2402
- return ws(t);
2399
+ else if (ce === 1 ? l < d + De : l > c - De)
2400
+ return -ce;
2401
+ } else if (l > d + u * (1 - o) / 2 && l < c - u * (1 - o) / 2)
2402
+ return _s(t);
2403
2403
  }
2404
- return p = p || s, p && (l < c + d * r / 2 || l > u - d * r / 2) ? l > c + d / 2 ? 1 : -1 : 0;
2404
+ return p = p || s, p && (l < d + u * r / 2 || l > c - u * r / 2) ? l > d + u / 2 ? 1 : -1 : 0;
2405
2405
  }
2406
- function ws(e) {
2407
- return ot(h) < ot(e) ? 1 : -1;
2406
+ function _s(e) {
2407
+ return st(h) < st(e) ? 1 : -1;
2408
2408
  }
2409
- function Es(e) {
2409
+ function Cs(e) {
2410
2410
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, i = 0; n--; )
2411
2411
  i += t.charCodeAt(n);
2412
2412
  return i.toString(36);
2413
2413
  }
2414
- function xs(e) {
2415
- ke.length = 0;
2414
+ function Ts(e) {
2415
+ Fe.length = 0;
2416
2416
  for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
2417
2417
  var i = t[n];
2418
- i.checked && ke.push(i);
2418
+ i.checked && Fe.push(i);
2419
2419
  }
2420
2420
  }
2421
- function Oe(e) {
2421
+ function Re(e) {
2422
2422
  return setTimeout(e, 0);
2423
2423
  }
2424
- function Mn(e) {
2424
+ function Nn(e) {
2425
2425
  return clearTimeout(e);
2426
2426
  }
2427
- hn && _(document, "touchmove", function(e) {
2428
- (v.active || kt) && e.cancelable && e.preventDefault();
2427
+ pn && _(document, "touchmove", function(e) {
2428
+ (w.active || Ft) && e.cancelable && e.preventDefault();
2429
2429
  });
2430
- v.utils = {
2430
+ w.utils = {
2431
2431
  on: _,
2432
- off: S,
2433
- css: b,
2434
- find: Gi,
2432
+ off: $,
2433
+ css: v,
2434
+ find: no,
2435
2435
  is: function(t, n) {
2436
- return !!dt(t, n, t, !1);
2436
+ return !!ut(t, n, t, !1);
2437
2437
  },
2438
- extend: os,
2439
- throttle: Ji,
2440
- closest: dt,
2441
- toggleClass: nt,
2442
- clone: Qi,
2443
- index: ot,
2444
- nextTick: Oe,
2445
- cancelNextTick: Mn,
2446
- detectDirection: no,
2447
- getChild: Xt,
2448
- expando: Q
2438
+ extend: cs,
2439
+ throttle: io,
2440
+ closest: ut,
2441
+ toggleClass: ot,
2442
+ clone: ro,
2443
+ index: st,
2444
+ nextTick: Re,
2445
+ cancelNextTick: Nn,
2446
+ detectDirection: lo,
2447
+ getChild: qt,
2448
+ expando: nt
2449
2449
  };
2450
- v.get = function(e) {
2451
- return e[Q];
2450
+ w.get = function(e) {
2451
+ return e[nt];
2452
2452
  };
2453
- v.mount = function() {
2453
+ w.mount = function() {
2454
2454
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
2455
2455
  t[n] = arguments[n];
2456
2456
  t[0].constructor === Array && (t = t[0]), t.forEach(function(i) {
2457
2457
  if (!i.prototype || !i.prototype.constructor)
2458
2458
  throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));
2459
- i.utils && (v.utils = ct(ct({}, v.utils), i.utils)), we.mount(i);
2459
+ i.utils && (w.utils = dt(dt({}, w.utils), i.utils)), xe.mount(i);
2460
2460
  });
2461
2461
  };
2462
- v.create = function(e, t) {
2463
- return new v(e, t);
2462
+ w.create = function(e, t) {
2463
+ return new w(e, t);
2464
2464
  };
2465
- v.version = ns;
2466
- var I = [], ne, Nn, In = !1, Cn, Tn, Fe, ie;
2467
- function Ss() {
2465
+ w.version = ls;
2466
+ var V = [], ie, Hn, Ln = !1, Tn, Pn, je, oe;
2467
+ function Ps() {
2468
2468
  function e() {
2469
2469
  this.defaults = {
2470
2470
  scroll: !0,
@@ -2486,29 +2486,29 @@ function Ss() {
2486
2486
  !this.options.dragOverBubble && !i.rootEl && this._handleAutoScroll(i);
2487
2487
  },
2488
2488
  drop: function() {
2489
- this.sortable.nativeDraggable ? S(document, "dragover", this._handleAutoScroll) : (S(document, "pointermove", this._handleFallbackAutoScroll), S(document, "touchmove", this._handleFallbackAutoScroll), S(document, "mousemove", this._handleFallbackAutoScroll)), vi(), Re(), rs();
2489
+ this.sortable.nativeDraggable ? $(document, "dragover", this._handleAutoScroll) : ($(document, "pointermove", this._handleFallbackAutoScroll), $(document, "touchmove", this._handleFallbackAutoScroll), $(document, "mousemove", this._handleFallbackAutoScroll)), xi(), Me(), ds();
2490
2490
  },
2491
2491
  nulling: function() {
2492
- Fe = Nn = ne = In = ie = Cn = Tn = null, I.length = 0;
2492
+ je = Hn = ie = Ln = oe = Tn = Pn = null, V.length = 0;
2493
2493
  },
2494
2494
  _handleFallbackAutoScroll: function(n) {
2495
2495
  this._handleAutoScroll(n, !0);
2496
2496
  },
2497
2497
  _handleAutoScroll: function(n, i) {
2498
2498
  var o = this, r = (n.touches ? n.touches[0] : n).clientX, s = (n.touches ? n.touches[0] : n).clientY, a = document.elementFromPoint(r, s);
2499
- if (Fe = n, i || this.options.forceAutoScrollFallback || ve || bt || se) {
2500
- Pn(n, this.options, a, i);
2501
- var l = _t(a, !0);
2502
- In && (!ie || r !== Cn || s !== Tn) && (ie && vi(), ie = setInterval(function() {
2503
- var d = _t(document.elementFromPoint(r, s), !0);
2504
- d !== l && (l = d, Re()), Pn(n, o.options, d, i);
2505
- }, 10), Cn = r, Tn = s);
2499
+ if (je = n, i || this.options.forceAutoScrollFallback || Ee || bt || ae) {
2500
+ On(n, this.options, a, i);
2501
+ var l = At(a, !0);
2502
+ Ln && (!oe || r !== Tn || s !== Pn) && (oe && xi(), oe = setInterval(function() {
2503
+ var u = At(document.elementFromPoint(r, s), !0);
2504
+ u !== l && (l = u, Me()), On(n, o.options, u, i);
2505
+ }, 10), Tn = r, Pn = s);
2506
2506
  } else {
2507
- if (!this.options.bubbleScroll || _t(a, !0) === ut()) {
2508
- Re();
2507
+ if (!this.options.bubbleScroll || At(a, !0) === ct()) {
2508
+ Me();
2509
2509
  return;
2510
2510
  }
2511
- Pn(n, this.options, _t(a, !1), !1);
2511
+ On(n, this.options, At(a, !1), !1);
2512
2512
  }
2513
2513
  }
2514
2514
  }, yt(e, {
@@ -2516,51 +2516,51 @@ function Ss() {
2516
2516
  initializeByDefault: !0
2517
2517
  });
2518
2518
  }
2519
- function Re() {
2520
- I.forEach(function(e) {
2519
+ function Me() {
2520
+ V.forEach(function(e) {
2521
2521
  clearInterval(e.pid);
2522
- }), I = [];
2522
+ }), V = [];
2523
2523
  }
2524
- function vi() {
2525
- clearInterval(ie);
2524
+ function xi() {
2525
+ clearInterval(oe);
2526
2526
  }
2527
- var Pn = Ji(function(e, t, n, i) {
2527
+ var On = io(function(e, t, n, i) {
2528
2528
  if (t.scroll) {
2529
- var o = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = ut(), d = !1, c;
2530
- Nn !== n && (Nn = n, Re(), ne = t.scroll, c = t.scrollFn, ne === !0 && (ne = _t(n, !0)));
2531
- var u = 0, p = ne;
2529
+ var o = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = ct(), u = !1, d;
2530
+ Hn !== n && (Hn = n, Me(), ie = t.scroll, d = t.scrollFn, ie === !0 && (ie = At(n, !0)));
2531
+ var c = 0, p = ie;
2532
2532
  do {
2533
- var f = p, g = H(f), y = g.top, D = g.bottom, U = g.left, V = g.right, et = g.width, W = g.height, st = void 0, A = void 0, z = f.scrollWidth, at = f.scrollHeight, X = b(f), Yt = f.scrollLeft, vt = f.scrollTop;
2534
- f === l ? (st = et < z && (X.overflowX === "auto" || X.overflowX === "scroll" || X.overflowX === "visible"), A = W < at && (X.overflowY === "auto" || X.overflowY === "scroll" || X.overflowY === "visible")) : (st = et < z && (X.overflowX === "auto" || X.overflowX === "scroll"), A = W < at && (X.overflowY === "auto" || X.overflowY === "scroll"));
2535
- var Wt = st && (Math.abs(V - o) <= s && Yt + et < z) - (Math.abs(U - o) <= s && !!Yt), ht = A && (Math.abs(D - r) <= s && vt + W < at) - (Math.abs(y - r) <= s && !!vt);
2536
- if (!I[u])
2537
- for (var Tt = 0; Tt <= u; Tt++)
2538
- I[Tt] || (I[Tt] = {});
2539
- (I[u].vx != Wt || I[u].vy != ht || I[u].el !== f) && (I[u].el = f, I[u].vx = Wt, I[u].vy = ht, clearInterval(I[u].pid), (Wt != 0 || ht != 0) && (d = !0, I[u].pid = setInterval((function() {
2540
- i && this.layer === 0 && v.active._onTouchMove(Fe);
2541
- var Gt = I[this.layer].vy ? I[this.layer].vy * a : 0, wt = I[this.layer].vx ? I[this.layer].vx * a : 0;
2542
- typeof c == "function" && c.call(v.dragged.parentNode[Q], wt, Gt, e, Fe, I[this.layer].el) !== "continue" || Ki(I[this.layer].el, wt, Gt);
2533
+ var f = p, g = k(f), y = g.top, O = g.bottom, I = g.left, H = g.right, J = g.width, j = g.height, K = void 0, b = void 0, D = f.scrollWidth, Z = f.scrollHeight, U = v(f), Wt = f.scrollLeft, vt = f.scrollTop;
2534
+ f === l ? (K = J < D && (U.overflowX === "auto" || U.overflowX === "scroll" || U.overflowX === "visible"), b = j < Z && (U.overflowY === "auto" || U.overflowY === "scroll" || U.overflowY === "visible")) : (K = J < D && (U.overflowX === "auto" || U.overflowX === "scroll"), b = j < Z && (U.overflowY === "auto" || U.overflowY === "scroll"));
2535
+ var Gt = K && (Math.abs(H - o) <= s && Wt + J < D) - (Math.abs(I - o) <= s && !!Wt), ht = b && (Math.abs(O - r) <= s && vt + j < Z) - (Math.abs(y - r) <= s && !!vt);
2536
+ if (!V[c])
2537
+ for (var Pt = 0; Pt <= c; Pt++)
2538
+ V[Pt] || (V[Pt] = {});
2539
+ (V[c].vx != Gt || V[c].vy != ht || V[c].el !== f) && (V[c].el = f, V[c].vx = Gt, V[c].vy = ht, clearInterval(V[c].pid), (Gt != 0 || ht != 0) && (u = !0, V[c].pid = setInterval((function() {
2540
+ i && this.layer === 0 && w.active._onTouchMove(je);
2541
+ var Jt = V[this.layer].vy ? V[this.layer].vy * a : 0, wt = V[this.layer].vx ? V[this.layer].vx * a : 0;
2542
+ typeof d == "function" && d.call(w.dragged.parentNode[nt], wt, Jt, e, je, V[this.layer].el) !== "continue" || oo(V[this.layer].el, wt, Jt);
2543
2543
  }).bind({
2544
- layer: u
2545
- }), 24))), u++;
2546
- } while (t.bubbleScroll && p !== l && (p = _t(p, !1)));
2547
- In = d;
2544
+ layer: c
2545
+ }), 24))), c++;
2546
+ } while (t.bubbleScroll && p !== l && (p = At(p, !1)));
2547
+ Ln = u;
2548
2548
  }
2549
- }, 30), so = function(t) {
2549
+ }, 30), po = function(t) {
2550
2550
  var n = t.originalEvent, i = t.putSortable, o = t.dragEl, r = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
2551
2551
  if (n) {
2552
- var d = i || r;
2552
+ var u = i || r;
2553
2553
  a();
2554
- var c = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, u = document.elementFromPoint(c.clientX, c.clientY);
2555
- l(), d && !d.el.contains(u) && (s("spill"), this.onSpill({
2554
+ var d = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, c = document.elementFromPoint(d.clientX, d.clientY);
2555
+ l(), u && !u.el.contains(c) && (s("spill"), this.onSpill({
2556
2556
  dragEl: o,
2557
2557
  putSortable: i
2558
2558
  }));
2559
2559
  }
2560
2560
  };
2561
- function Yn() {
2561
+ function Jn() {
2562
2562
  }
2563
- Yn.prototype = {
2563
+ Jn.prototype = {
2564
2564
  startIndex: null,
2565
2565
  dragStart: function(t) {
2566
2566
  var n = t.oldDraggableIndex;
@@ -2569,74 +2569,74 @@ Yn.prototype = {
2569
2569
  onSpill: function(t) {
2570
2570
  var n = t.dragEl, i = t.putSortable;
2571
2571
  this.sortable.captureAnimationState(), i && i.captureAnimationState();
2572
- var o = Xt(this.sortable.el, this.startIndex, this.options);
2572
+ var o = qt(this.sortable.el, this.startIndex, this.options);
2573
2573
  o ? this.sortable.el.insertBefore(n, o) : this.sortable.el.appendChild(n), this.sortable.animateAll(), i && i.animateAll();
2574
2574
  },
2575
- drop: so
2575
+ drop: po
2576
2576
  };
2577
- yt(Yn, {
2577
+ yt(Jn, {
2578
2578
  pluginName: "revertOnSpill"
2579
2579
  });
2580
- function Wn() {
2580
+ function Kn() {
2581
2581
  }
2582
- Wn.prototype = {
2582
+ Kn.prototype = {
2583
2583
  onSpill: function(t) {
2584
2584
  var n = t.dragEl, i = t.putSortable, o = i || this.sortable;
2585
2585
  o.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), o.animateAll();
2586
2586
  },
2587
- drop: so
2587
+ drop: po
2588
2588
  };
2589
- yt(Wn, {
2589
+ yt(Kn, {
2590
2590
  pluginName: "removeOnSpill"
2591
2591
  });
2592
- v.mount(new Ss());
2593
- v.mount(Wn, Yn);
2594
- const $s = (e) => {
2592
+ w.mount(new Ps());
2593
+ w.mount(Kn, Jn);
2594
+ const Os = (e) => {
2595
2595
  const t = e.item;
2596
2596
  let n = Array.prototype.slice.call(t.parentNode.childNodes);
2597
2597
  return n = n.filter(
2598
2598
  (i) => i.nodeType != Node.ELEMENT_NODE || !i.classList.contains("sortable-fallback")
2599
2599
  ), n;
2600
- }, _s = (e, t, n, i, o, r) => {
2600
+ }, Ds = (e, t, n, i, o, r) => {
2601
2601
  const a = e.item.parentNode;
2602
2602
  for (const y of n)
2603
2603
  a.appendChild(y);
2604
2604
  if (e.oldIndex == e.newIndex) return;
2605
- const l = i.getArray(), d = (
2605
+ const l = i.getArray(), u = (
2606
2606
  /** @type {Element & {layer: import("ol/layer").Layer}} */
2607
2607
  e.item.querySelector("eox-layercontrol-layer").layer.get(o)
2608
- ), c = l.find((y) => y.get(o) === d), u = r.dataset.layer, p = l.find(
2609
- (y) => y.get(o) == u
2608
+ ), d = l.find((y) => y.get(o) === u), c = r.dataset.layer, p = l.find(
2609
+ (y) => y.get(o) == c
2610
2610
  );
2611
2611
  let f, g;
2612
2612
  for (f = 0; f < l.length; f++)
2613
- if (l[f] == c) {
2613
+ if (l[f] == d) {
2614
2614
  i.removeAt(f);
2615
2615
  break;
2616
2616
  }
2617
2617
  for (g = 0; g < l.length; g++)
2618
2618
  if (l[g] === p) {
2619
- f > g ? i.insertAt(g, c) : i.insertAt(g + 1, c);
2619
+ f > g ? i.insertAt(g, d) : i.insertAt(g + 1, d);
2620
2620
  break;
2621
2621
  }
2622
2622
  t.requestUpdate();
2623
2623
  };
2624
- function As(e, t, n, i) {
2624
+ function Rs(e, t, n, i) {
2625
2625
  let o = [], r = null;
2626
- e._sortable = v.create(e, {
2626
+ e._sortable = w.create(e, {
2627
2627
  handle: ".drag-handle",
2628
2628
  filter: ".drag-handle.disabled",
2629
2629
  swapThreshold: 0.5,
2630
2630
  animation: 150,
2631
2631
  easing: "cubic-bezier(1, 0, 0, 1)",
2632
- onStart: (s) => o = $s(s),
2632
+ onStart: (s) => o = Os(s),
2633
2633
  onMove: (s) => {
2634
2634
  r = s.related;
2635
2635
  },
2636
- onEnd: (s) => _s(s, i, o, t, n, r)
2636
+ onEnd: (s) => Ds(s, i, o, t, n, r)
2637
2637
  });
2638
2638
  }
2639
- function Cs(e, t, n, i) {
2639
+ function Ms(e, t, n, i) {
2640
2640
  const o = e.getArray();
2641
2641
  let r = !1;
2642
2642
  o.forEach((s) => {
@@ -2644,46 +2644,46 @@ function Cs(e, t, n, i) {
2644
2644
  s.get(t) || (s.set(t, a), r = !0), s.get(n) || (s.set(n, `layer ${a}`), r = !0), r && i.requestUpdate();
2645
2645
  });
2646
2646
  }
2647
- function Gn(e, t, n) {
2647
+ function Qn(e, t, n) {
2648
2648
  let i = [];
2649
2649
  const o = (r, s, a) => {
2650
2650
  i = [
2651
2651
  ...i,
2652
- ...r.filter((d) => d.get(s) === a)
2652
+ ...r.filter((u) => u.get(s) === a)
2653
2653
  ];
2654
2654
  const l = r.filter(
2655
- (d) => (
2655
+ (u) => (
2656
2656
  /** @type {import("ol/layer").Group} */
2657
- d.getLayers
2657
+ u.getLayers
2658
2658
  )
2659
2659
  );
2660
2660
  return l.length > 0 && l.forEach(
2661
- (d) => (
2661
+ (u) => (
2662
2662
  // @ts-ignore
2663
- o(d.getLayers().getArray(), s, a)
2663
+ o(u.getLayers().getArray(), s, a)
2664
2664
  )
2665
2665
  ), i;
2666
2666
  };
2667
2667
  return o(e, t, n), i;
2668
2668
  }
2669
- function Ts(e, t, n) {
2669
+ function Is(e, t, n) {
2670
2670
  if (!e || !t) return !1;
2671
- if (!ao(e, n)) return !0;
2671
+ if (!fo(e, n)) return !0;
2672
2672
  const i = e.get("minZoom"), o = e.get("maxZoom"), r = t.getView().getZoom();
2673
2673
  return r > i && r < o;
2674
2674
  }
2675
- function ao(e, t) {
2675
+ function fo(e, t) {
2676
2676
  const n = e.get("minZoom"), i = e.get("maxZoom");
2677
2677
  return !!(t && (n !== -1 / 0 || i !== 1 / 0));
2678
2678
  }
2679
- function Ps(e, t) {
2679
+ function Ns(e, t) {
2680
2680
  var o, r, s;
2681
2681
  return !e || !t ? void 0 : e.getLayers ? "group" : ((s = (o = t.getInteractions().getArray().filter((a) => a.freehand_ !== void 0).map((a) => a.source_)) == null ? void 0 : o.ol_uid) == null ? void 0 : s.includes(
2682
2682
  // @ts-ignore
2683
2683
  e.getSource ? (r = e.getSource()) == null ? void 0 : r.ol_uid : void 0
2684
2684
  )) ? "draw" : e.declutter_ !== void 0 ? "vector" : "raster";
2685
2685
  }
2686
- function lo(e, t) {
2686
+ function go(e, t) {
2687
2687
  var i;
2688
2688
  let n = {};
2689
2689
  for (const o in e) {
@@ -2691,7 +2691,7 @@ function lo(e, t) {
2691
2691
  if (r && r !== "object")
2692
2692
  n[o] = r === "number" ? Number(t[o]) : t[o];
2693
2693
  else if (typeof e[o] == "object" && ((i = e[o]) != null && i.properties)) {
2694
- const s = lo(
2694
+ const s = go(
2695
2695
  e[o].properties,
2696
2696
  t
2697
2697
  );
@@ -2700,8 +2700,8 @@ function lo(e, t) {
2700
2700
  }
2701
2701
  return n;
2702
2702
  }
2703
- function Ds(e, t) {
2704
- var r, s, a, l, d;
2703
+ function Hs(e, t) {
2704
+ var r, s, a, l, u;
2705
2705
  if (!t) return null;
2706
2706
  let n = {}, i = "updateStyleVariables" in e ? (
2707
2707
  /** @type {import("ol/layer/WebGLTile").default} */
@@ -2710,23 +2710,23 @@ function Ds(e, t) {
2710
2710
  if ((t.type === "style" || t.style) && i)
2711
2711
  n = i;
2712
2712
  else if ((l = (a = e.getSource()) == null ? void 0 : a.getTileUrlFunction) != null && l.call(a)) {
2713
- const c = new URL(e.getSource().getTileUrlFunction()([0, 0, 0]));
2714
- n = Object.fromEntries(c.searchParams.entries());
2713
+ const d = new URL(e.getSource().getTileUrlFunction()([0, 0, 0]));
2714
+ n = Object.fromEntries(d.searchParams.entries());
2715
2715
  } else return null;
2716
- const o = lo(
2717
- ((d = t.schema) == null ? void 0 : d.properties) || t.schema,
2716
+ const o = go(
2717
+ ((u = t.schema) == null ? void 0 : u.properties) || t.schema,
2718
2718
  n
2719
2719
  );
2720
2720
  return Object.keys(o).length ? o : null;
2721
2721
  }
2722
- const Os = (e, t) => e == null ? void 0 : e.filter(
2722
+ const Ls = (e, t) => e == null ? void 0 : e.filter(
2723
2723
  (n) => ["remove", "sort"].filter((i) => t != null && t.get("layerControlDisable") ? i !== "sort" : !0).includes(n)
2724
- ), Rs = (e, t) => e == null ? void 0 : e.filter((n) => {
2724
+ ), Bs = (e, t) => e == null ? void 0 : e.filter((n) => {
2725
2725
  let i = !0;
2726
2726
  return ["remove", "sort"].includes(n) && (i = !1), n === "info" && (i = t.get("description")), n === "config" && (i = t.get("layerConfig")), n === "datetime" && (i = t.get("layerDatetime")), i;
2727
- }), Ms = (e, t) => E`
2727
+ }), Vs = (e, t) => x`
2728
2728
  <button slot="${e}-icon" class="icon">${t ? e : C}</button>
2729
- `, Ns = (e) => E`
2729
+ `, ks = (e) => x`
2730
2730
  <button
2731
2731
  class="remove-icon icon"
2732
2732
  @click=${() => {
@@ -2741,11 +2741,11 @@ const Os = (e, t) => e == null ? void 0 : e.filter(
2741
2741
  >
2742
2742
  ${e.unstyled ? "x" : C}
2743
2743
  </button>
2744
- `, Is = (e) => E`
2744
+ `, Us = (e) => x`
2745
2745
  <span class="button sort-icon icon drag-handle">
2746
2746
  ${e ? "═" : C}
2747
2747
  </span>
2748
- `, uo = (e) => {
2748
+ `, mo = (e) => {
2749
2749
  var n;
2750
2750
  const t = ["layerControlHide", "layerControlOptional"];
2751
2751
  return (n = e == null ? void 0 : e.getArray()) == null ? void 0 : n.filter((i) => t.every((o) => !i.get(o)));
@@ -2755,23 +2755,23 @@ const Os = (e, t) => e == null ? void 0 : e.filter(
2755
2755
  * Copyright 2020 Google LLC
2756
2756
  * SPDX-License-Identifier: BSD-3-Clause
2757
2757
  */
2758
- const co = jn(class extends Zn {
2758
+ const yo = Xn(class extends qn {
2759
2759
  constructor(e) {
2760
2760
  if (super(e), e.type !== Et.PROPERTY && e.type !== Et.ATTRIBUTE && e.type !== Et.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
2761
- if (!tr(e)) throw Error("`live` bindings can only contain a single expression");
2761
+ if (!sr(e)) throw Error("`live` bindings can only contain a single expression");
2762
2762
  }
2763
2763
  render(e) {
2764
2764
  return e;
2765
2765
  }
2766
2766
  update(e, [t]) {
2767
- if (t === rt || t === C) return t;
2767
+ if (t === at || t === C) return t;
2768
2768
  const n = e.element, i = e.name;
2769
2769
  if (e.type === Et.PROPERTY) {
2770
- if (t === n[i]) return rt;
2770
+ if (t === n[i]) return at;
2771
2771
  } else if (e.type === Et.BOOLEAN_ATTRIBUTE) {
2772
- if (!!t === n.hasAttribute(i)) return rt;
2773
- } else if (e.type === Et.ATTRIBUTE && n.getAttribute(i) === t + "") return rt;
2774
- return Bi(e), t;
2772
+ if (!!t === n.hasAttribute(i)) return at;
2773
+ } else if (e.type === Et.ATTRIBUTE && n.getAttribute(i) === t + "") return at;
2774
+ return ji(e), t;
2775
2775
  }
2776
2776
  });
2777
2777
  /**
@@ -2779,13 +2779,13 @@ const co = jn(class extends Zn {
2779
2779
  * Copyright 2017 Google LLC
2780
2780
  * SPDX-License-Identifier: BSD-3-Clause
2781
2781
  */
2782
- class Hn extends Zn {
2782
+ class Bn extends qn {
2783
2783
  constructor(t) {
2784
2784
  if (super(t), this.it = C, t.type !== Et.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
2785
2785
  }
2786
2786
  render(t) {
2787
2787
  if (t === C || t == null) return this._t = void 0, this.it = t;
2788
- if (t === rt) return t;
2788
+ if (t === at) return t;
2789
2789
  if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
2790
2790
  if (t === this.it) return this._t;
2791
2791
  this.it = t;
@@ -2793,51 +2793,51 @@ class Hn extends Zn {
2793
2793
  return n.raw = n, this._t = { _$litType$: this.constructor.resultType, strings: n, values: [] };
2794
2794
  }
2795
2795
  }
2796
- Hn.directiveName = "unsafeHTML", Hn.resultType = 1;
2797
- const Hs = jn(Hn);
2796
+ Bn.directiveName = "unsafeHTML", Bn.resultType = 1;
2797
+ const Fs = Xn(Bn);
2798
2798
  /**
2799
2799
  * @license
2800
2800
  * Copyright 2021 Google LLC
2801
2801
  * SPDX-License-Identifier: BSD-3-Clause
2802
2802
  */
2803
- function* Me(e, t) {
2803
+ function* Ie(e, t) {
2804
2804
  if (e !== void 0) {
2805
2805
  let n = 0;
2806
2806
  for (const i of e) yield t(i, n++);
2807
2807
  }
2808
2808
  }
2809
- const Bs = (e, t, n) => {
2809
+ const js = (e, t, n) => {
2810
2810
  let i = t;
2811
2811
  return n.layer.getSource().getTileUrlFunction() && (i || (i = n.layer.getSource().getTileUrlFunction()), n.layer.getSource().setTileUrlFunction(
2812
- (...o) => Kr(i(...o), e)
2812
+ (...o) => os(i(...o), e)
2813
2813
  ), n.layer.getSource().setKey(/* @__PURE__ */ new Date())), i;
2814
2814
  };
2815
- function Vs(e, t, n) {
2815
+ function Zs(e, t, n) {
2816
2816
  const i = "updateStyleVariables" in t, o = "setStyle" in t, r = i ? (
2817
2817
  /** @type {import('ol/layer/WebGLTile').default} */
2818
2818
  t.style_
2819
2819
  ) : n.style;
2820
2820
  let s = r == null ? void 0 : r.variables;
2821
2821
  if (s) {
2822
- const a = ho(e);
2822
+ const a = bo(e);
2823
2823
  if (r.variables = {
2824
2824
  ...s,
2825
2825
  ...a
2826
2826
  }, i)
2827
2827
  t.updateStyleVariables(a);
2828
2828
  else if (o) {
2829
- const l = Ls(r);
2829
+ const l = zs(r);
2830
2830
  t.setStyle(
2831
2831
  l
2832
2832
  );
2833
2833
  }
2834
2834
  }
2835
2835
  }
2836
- const ho = (e) => {
2836
+ const bo = (e) => {
2837
2837
  const t = {};
2838
2838
  for (const n in e)
2839
2839
  if (typeof e[n] == "object" && e[n] !== null) {
2840
- const i = ho(
2840
+ const i = bo(
2841
2841
  /** @type {Record<string,any>} */
2842
2842
  e[n]
2843
2843
  );
@@ -2847,7 +2847,7 @@ const ho = (e) => {
2847
2847
  t[n] = e == null ? void 0 : e[n];
2848
2848
  return t;
2849
2849
  };
2850
- function Ls(e) {
2850
+ function zs(e) {
2851
2851
  let t = e;
2852
2852
  if ("variables" in e) {
2853
2853
  let n = JSON.stringify(e);
@@ -2861,115 +2861,133 @@ function Ls(e) {
2861
2861
  }
2862
2862
  return t;
2863
2863
  }
2864
- var Ae = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2865
- function Us(e) {
2864
+ var _t = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2865
+ function vo(e) {
2866
2866
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2867
2867
  }
2868
- var ks = "Expected a function", wi = NaN, Fs = "[object Symbol]", js = /^\s+|\s+$/g, Zs = /^[-+]0x[0-9a-f]+$/i, zs = /^0b[01]+$/i, Xs = /^0o[0-7]+$/i, qs = parseInt, Ys = typeof Ae == "object" && Ae && Ae.Object === Object && Ae, Ws = typeof self == "object" && self && self.Object === Object && self, Gs = Ys || Ws || Function("return this")(), Js = Object.prototype, Ks = Js.toString, Qs = Math.max, ta = Math.min, Dn = function() {
2869
- return Gs.Date.now();
2868
+ var wo = "Expected a function", Si = NaN, Xs = "[object Symbol]", qs = /^\s+|\s+$/g, Ys = /^[-+]0x[0-9a-f]+$/i, Ws = /^0b[01]+$/i, Gs = /^0o[0-7]+$/i, Js = parseInt, Ks = typeof _t == "object" && _t && _t.Object === Object && _t, Qs = typeof self == "object" && self && self.Object === Object && self, ta = Ks || Qs || Function("return this")(), ea = Object.prototype, na = ea.toString, ia = Math.max, oa = Math.min, Dn = function() {
2869
+ return ta.Date.now();
2870
2870
  };
2871
- function ea(e, t, n) {
2872
- var i, o, r, s, a, l, d = 0, c = !1, u = !1, p = !0;
2871
+ function ra(e, t, n) {
2872
+ var i, o, r, s, a, l, u = 0, d = !1, c = !1, p = !0;
2873
2873
  if (typeof e != "function")
2874
- throw new TypeError(ks);
2875
- t = Ei(t) || 0, Bn(n) && (c = !!n.leading, u = "maxWait" in n, r = u ? Qs(Ei(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
2876
- function f(A) {
2877
- var z = i, at = o;
2878
- return i = o = void 0, d = A, s = e.apply(at, z), s;
2874
+ throw new TypeError(wo);
2875
+ t = $i(t) || 0, Ze(n) && (d = !!n.leading, c = "maxWait" in n, r = c ? ia($i(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
2876
+ function f(b) {
2877
+ var D = i, Z = o;
2878
+ return i = o = void 0, u = b, s = e.apply(Z, D), s;
2879
2879
  }
2880
- function g(A) {
2881
- return d = A, a = setTimeout(U, t), c ? f(A) : s;
2880
+ function g(b) {
2881
+ return u = b, a = setTimeout(I, t), d ? f(b) : s;
2882
2882
  }
2883
- function y(A) {
2884
- var z = A - l, at = A - d, X = t - z;
2885
- return u ? ta(X, r - at) : X;
2883
+ function y(b) {
2884
+ var D = b - l, Z = b - u, U = t - D;
2885
+ return c ? oa(U, r - Z) : U;
2886
2886
  }
2887
- function D(A) {
2888
- var z = A - l, at = A - d;
2889
- return l === void 0 || z >= t || z < 0 || u && at >= r;
2887
+ function O(b) {
2888
+ var D = b - l, Z = b - u;
2889
+ return l === void 0 || D >= t || D < 0 || c && Z >= r;
2890
2890
  }
2891
- function U() {
2892
- var A = Dn();
2893
- if (D(A))
2894
- return V(A);
2895
- a = setTimeout(U, y(A));
2891
+ function I() {
2892
+ var b = Dn();
2893
+ if (O(b))
2894
+ return H(b);
2895
+ a = setTimeout(I, y(b));
2896
2896
  }
2897
- function V(A) {
2898
- return a = void 0, p && i ? f(A) : (i = o = void 0, s);
2897
+ function H(b) {
2898
+ return a = void 0, p && i ? f(b) : (i = o = void 0, s);
2899
2899
  }
2900
- function et() {
2901
- a !== void 0 && clearTimeout(a), d = 0, i = l = o = a = void 0;
2900
+ function J() {
2901
+ a !== void 0 && clearTimeout(a), u = 0, i = l = o = a = void 0;
2902
2902
  }
2903
- function W() {
2904
- return a === void 0 ? s : V(Dn());
2903
+ function j() {
2904
+ return a === void 0 ? s : H(Dn());
2905
2905
  }
2906
- function st() {
2907
- var A = Dn(), z = D(A);
2908
- if (i = arguments, o = this, l = A, z) {
2906
+ function K() {
2907
+ var b = Dn(), D = O(b);
2908
+ if (i = arguments, o = this, l = b, D) {
2909
2909
  if (a === void 0)
2910
2910
  return g(l);
2911
- if (u)
2912
- return a = setTimeout(U, t), f(l);
2911
+ if (c)
2912
+ return a = setTimeout(I, t), f(l);
2913
2913
  }
2914
- return a === void 0 && (a = setTimeout(U, t)), s;
2914
+ return a === void 0 && (a = setTimeout(I, t)), s;
2915
2915
  }
2916
- return st.cancel = et, st.flush = W, st;
2916
+ return K.cancel = J, K.flush = j, K;
2917
2917
  }
2918
- function Bn(e) {
2918
+ function sa(e, t, n) {
2919
+ var i = !0, o = !0;
2920
+ if (typeof e != "function")
2921
+ throw new TypeError(wo);
2922
+ return Ze(n) && (i = "leading" in n ? !!n.leading : i, o = "trailing" in n ? !!n.trailing : o), ra(e, t, {
2923
+ leading: i,
2924
+ maxWait: t,
2925
+ trailing: o
2926
+ });
2927
+ }
2928
+ function Ze(e) {
2919
2929
  var t = typeof e;
2920
2930
  return !!e && (t == "object" || t == "function");
2921
2931
  }
2922
- function na(e) {
2932
+ function aa(e) {
2923
2933
  return !!e && typeof e == "object";
2924
2934
  }
2925
- function ia(e) {
2926
- return typeof e == "symbol" || na(e) && Ks.call(e) == Fs;
2935
+ function la(e) {
2936
+ return typeof e == "symbol" || aa(e) && na.call(e) == Xs;
2927
2937
  }
2928
- function Ei(e) {
2938
+ function $i(e) {
2929
2939
  if (typeof e == "number")
2930
2940
  return e;
2931
- if (ia(e))
2932
- return wi;
2933
- if (Bn(e)) {
2941
+ if (la(e))
2942
+ return Si;
2943
+ if (Ze(e)) {
2934
2944
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
2935
- e = Bn(t) ? t + "" : t;
2945
+ e = Ze(t) ? t + "" : t;
2936
2946
  }
2937
2947
  if (typeof e != "string")
2938
2948
  return e === 0 ? e : +e;
2939
- e = e.replace(js, "");
2940
- var n = zs.test(e);
2941
- return n || Xs.test(e) ? qs(e.slice(2), n ? 2 : 8) : Zs.test(e) ? wi : +e;
2942
- }
2943
- var oa = ea;
2944
- const po = /* @__PURE__ */ Us(oa);
2945
- var zt, ge, me, je, go, Ze, ze;
2946
- class fo extends tt {
2949
+ e = e.replace(qs, "");
2950
+ var n = Ws.test(e);
2951
+ return n || Gs.test(e) ? Js(e.slice(2), n ? 2 : 8) : Ys.test(e) ? Si : +e;
2952
+ }
2953
+ var ua = sa;
2954
+ const Ai = /* @__PURE__ */ vo(ua);
2955
+ var Xt, me, ye, be, Vn, ze, Xe;
2956
+ class Eo extends it {
2947
2957
  constructor() {
2948
2958
  super();
2949
- T(this, je);
2959
+ T(this, be);
2950
2960
  /**
2951
2961
  * data input by the user
2952
2962
  *
2953
2963
  * @type {{[key: string]: any}}
2954
2964
  */
2955
- T(this, zt, {});
2965
+ T(this, Xt, {});
2956
2966
  /**
2957
2967
  * data input by the user
2958
2968
  *
2959
2969
  * @type {{[key: string]: any}}
2960
2970
  */
2961
- T(this, ge, null);
2971
+ T(this, me, null);
2962
2972
  /**
2963
2973
  * Original tile url function, if it exist
2964
2974
  *
2965
2975
  * @type {Function}
2966
2976
  */
2967
- T(this, me);
2968
- T(this, Ze, "");
2977
+ T(this, ye);
2969
2978
  T(this, ze, "");
2970
- this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.debouncedDataChange = po(B(this, je, go), 1e3, {
2971
- leading: !0
2972
- });
2979
+ T(this, Xe, "");
2980
+ this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = Ai(B(this, be, Vn), 1e3);
2981
+ }
2982
+ /** Decide what type of throttling to do based on layerConfig type
2983
+ *
2984
+ * @param {import("lit").PropertyValues} changedProperties - The changed properties.
2985
+ */
2986
+ updated(n) {
2987
+ if (n.has("layerConfig")) {
2988
+ const i = this.layerConfig.type === "style" || this.layerConfig.style ? 100 : 1e3;
2989
+ this.throttleDataChange = Ai(B(this, be, Vn), i), this.requestUpdate();
2990
+ }
2973
2991
  }
2974
2992
  /**
2975
2993
  * Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
@@ -2981,47 +2999,47 @@ class fo extends tt {
2981
2999
  * Renders a JSON form for configuration options of a layer.
2982
3000
  */
2983
3001
  render() {
2984
- Kt(this, ge, Ds(this.layer, this.layerConfig)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
3002
+ Qt(this, me, Hs(this.layer, this.layerConfig)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
2985
3003
  const n = {
2986
3004
  disable_edit_json: !0,
2987
3005
  disable_collapse: !0,
2988
3006
  disable_properties: !0
2989
3007
  };
2990
- return E`
3008
+ return x`
2991
3009
  <style>
2992
- ${P(this, Ze)}
2993
- ${!this.unstyled && P(this, ze)}
3010
+ ${P(this, ze)}
3011
+ ${!this.unstyled && P(this, Xe)}
2994
3012
  </style>
2995
- ${Y(
3013
+ ${G(
2996
3014
  this.layerConfig,
2997
- () => E`
3015
+ () => x`
2998
3016
  <!-- Render a JSON form for layer configuration -->
2999
3017
  <eox-jsonform
3000
3018
  .schema=${this.layerConfig.schema}
3001
- .value=${P(this, ge)}
3019
+ .value=${P(this, me)}
3002
3020
  .options=${n}
3003
- @change=${this.debouncedDataChange}
3021
+ @change=${this.throttleDataChange}
3004
3022
  ></eox-jsonform>
3005
3023
  `
3006
3024
  )}
3007
3025
  `;
3008
3026
  }
3009
3027
  }
3010
- zt = new WeakMap(), ge = new WeakMap(), me = new WeakMap(), je = new WeakSet(), /**
3028
+ Xt = new WeakMap(), me = new WeakMap(), ye = new WeakMap(), be = new WeakSet(), /**
3011
3029
  * Handles changes in eox-jsonform values.
3012
3030
  *
3013
3031
  * @param {{ detail: { value: string; }; }} e
3014
3032
  */
3015
- go = function(n) {
3016
- Kt(this, zt, n.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? Vs(P(this, zt), this.layer, this.layerConfig) : console.error(
3033
+ Vn = function(n) {
3034
+ Qt(this, Xt, n.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? Zs(P(this, Xt), this.layer, this.layerConfig) : console.error(
3017
3035
  `Layer type ${this.layer.get("type") ?? ""} does not support styles configuration`
3018
- ) : (Kt(this, me, Bs(
3019
- P(this, zt),
3020
- P(this, me),
3036
+ ) : (Qt(this, ye, js(
3037
+ P(this, Xt),
3038
+ P(this, ye),
3021
3039
  this
3022
3040
  )), this.requestUpdate());
3023
- }, Ze = new WeakMap(), ze = new WeakMap(), // Define static properties for the component
3024
- N(fo, "properties", {
3041
+ }, ze = new WeakMap(), Xe = new WeakMap(), // Define static properties for the component
3042
+ L(Eo, "properties", {
3025
3043
  layer: { attribute: !1 },
3026
3044
  unstyled: { type: Boolean },
3027
3045
  noShadow: { type: Boolean },
@@ -3029,15 +3047,15 @@ N(fo, "properties", {
3029
3047
  });
3030
3048
  customElements.define(
3031
3049
  "eox-layercontrol-layerconfig",
3032
- fo
3050
+ Eo
3033
3051
  );
3034
- var Xe, yo, qe, Ye;
3035
- class mo extends tt {
3052
+ var qe, So, Ye, We;
3053
+ class xo extends it {
3036
3054
  constructor() {
3037
3055
  super();
3038
- T(this, Xe);
3039
- T(this, qe, "");
3056
+ T(this, qe);
3040
3057
  T(this, Ye, "");
3058
+ T(this, We, "");
3041
3059
  this.unstyled = !1, this.noShadow = !1, this.layerDatetime = null, this.layer = null;
3042
3060
  }
3043
3061
  /**
@@ -3052,14 +3070,14 @@ class mo extends tt {
3052
3070
  render() {
3053
3071
  return customElements.get("eox-timecontrol") || console.error(
3054
3072
  "Please import @eox/timecontrol in order to use layerDatetime"
3055
- ), E`
3073
+ ), x`
3056
3074
  <style>
3057
- ${P(this, qe)}
3058
- ${!this.unstyled && P(this, Ye)}
3075
+ ${P(this, Ye)}
3076
+ ${!this.unstyled && P(this, We)}
3059
3077
  </style>
3060
- ${Y(
3078
+ ${G(
3061
3079
  this.layerDatetime,
3062
- () => E`
3080
+ () => x`
3063
3081
  <!-- Render a Timecontrol for layer date time -->
3064
3082
  <eox-timecontrol
3065
3083
  ?unstyled=${this.unstyled}
@@ -3070,20 +3088,20 @@ class mo extends tt {
3070
3088
  .controlValues=${this.layerDatetime.controlValues}
3071
3089
  .controlProperty=${void 0}
3072
3090
  current-step=${this.layerDatetime.currentStep}
3073
- @stepchange=${B(this, Xe, yo)}
3091
+ @stepchange=${B(this, qe, So)}
3074
3092
  ></eox-timecontrol>
3075
3093
  `
3076
3094
  )}
3077
3095
  `;
3078
3096
  }
3079
3097
  }
3080
- Xe = new WeakSet(), /**
3098
+ qe = new WeakSet(), /**
3081
3099
  * Handles timecontrol Stepchange &
3082
3100
  * triggers `datetime:updated` event on step change
3083
3101
  *
3084
3102
  * @param {CustomEvent<{currentStep:string|number}>} evt
3085
3103
  **/
3086
- yo = function(n) {
3104
+ So = function(n) {
3087
3105
  this.dispatchEvent(
3088
3106
  new CustomEvent("datetime:updated", {
3089
3107
  bubbles: !0,
@@ -3093,8 +3111,8 @@ yo = function(n) {
3093
3111
  }
3094
3112
  })
3095
3113
  ), this.layerDatetime.currentStep = n.detail.currentStep, this.requestUpdate();
3096
- }, qe = new WeakMap(), Ye = new WeakMap(), // Define static properties for the component
3097
- N(mo, "properties", {
3114
+ }, Ye = new WeakMap(), We = new WeakMap(), // Define static properties for the component
3115
+ L(xo, "properties", {
3098
3116
  unstyled: { type: Boolean },
3099
3117
  noShadow: { type: Boolean },
3100
3118
  layerDatetime: { attribute: !1 },
@@ -3102,15 +3120,15 @@ N(mo, "properties", {
3102
3120
  });
3103
3121
  customElements.define(
3104
3122
  "eox-layercontrol-layer-datetime",
3105
- mo
3123
+ xo
3106
3124
  );
3107
- var ye, We, Ge;
3108
- class bo extends tt {
3125
+ var ve, Ge, Je;
3126
+ class $o extends it {
3109
3127
  constructor() {
3110
3128
  super();
3111
3129
  /** @param {number} index */
3112
- T(this, ye, (n) => (this.selectedTab === n || this.disableTabs) && "highlighted");
3113
- T(this, We, `
3130
+ T(this, ve, (n) => (this.selectedTab === n || this.toolsAsList) && "highlighted");
3131
+ T(this, Ge, `
3114
3132
  .tabbed figure {
3115
3133
  margin: 0;
3116
3134
  }
@@ -3131,7 +3149,7 @@ class bo extends tt {
3131
3149
  background: lightgrey;
3132
3150
  }
3133
3151
  `);
3134
- T(this, Ge, `
3152
+ T(this, Je, `
3135
3153
  .listed {
3136
3154
  background: #ffffff !important;
3137
3155
  display: flex;
@@ -3158,7 +3176,7 @@ class bo extends tt {
3158
3176
  border-top: 1px solid #0041701a;
3159
3177
  }
3160
3178
  `);
3161
- this.actions = [], this.selectedTab = 0, this.tabs = [], this.unstyled = !1, this.noShadow = !1, this.disableTabs = !1;
3179
+ this.actions = [], this.selectedTab = 0, this.tabs = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1;
3162
3180
  }
3163
3181
  /**
3164
3182
  * Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
@@ -3172,27 +3190,27 @@ class bo extends tt {
3172
3190
  */
3173
3191
  render() {
3174
3192
  const n = this.tabs, i = this.actions, o = i.length + n.length > 1;
3175
- return E`
3193
+ return x`
3176
3194
  <style>
3177
- ${P(this, We)}
3178
- ${!this.unstyled && P(this, Ge)}
3195
+ ${P(this, Ge)}
3196
+ ${!this.unstyled && P(this, Je)}
3179
3197
  </style>
3180
3198
  <div class="tabbed">
3181
3199
  <!-- Navigation for tabs and actions -->
3182
- ${Y(
3200
+ ${G(
3183
3201
  o,
3184
- () => E`
3202
+ () => x`
3185
3203
  <nav>
3186
- ${Y(
3187
- !this.disableTabs,
3188
- () => E`
3204
+ ${G(
3205
+ !this.toolsAsList,
3206
+ () => x`
3189
3207
  <div>
3190
3208
  <!-- Labels for tabs -->
3191
- ${Me(
3209
+ ${Ie(
3192
3210
  n,
3193
- (r, s) => E`
3211
+ (r, s) => x`
3194
3212
  <label
3195
- class=${P(this, ye).call(this, s)}
3213
+ class=${P(this, ve).call(this, s)}
3196
3214
  @click=${() => this.selectedTab = s}
3197
3215
  >
3198
3216
  <!-- Customizable icon for each tab -->
@@ -3203,9 +3221,9 @@ class bo extends tt {
3203
3221
  </div>
3204
3222
  <div>
3205
3223
  <!-- Icons for actions -->
3206
- ${Me(
3224
+ ${Ie(
3207
3225
  i,
3208
- (r) => E`
3226
+ (r) => x`
3209
3227
  <span>
3210
3228
  <!-- Customizable icon for each action -->
3211
3229
  <slot name=${`${r}-icon`}>${r}</slot>
@@ -3220,19 +3238,19 @@ class bo extends tt {
3220
3238
  )}
3221
3239
  <figure>
3222
3240
  <!-- Content for each tab -->
3223
- ${Me(
3241
+ ${Ie(
3224
3242
  n,
3225
- (r, s) => E`
3226
- ${Y(
3227
- this.disableTabs,
3228
- () => E`
3243
+ (r, s) => x`
3244
+ ${G(
3245
+ this.toolsAsList,
3246
+ () => x`
3229
3247
  <label class="listed">
3230
3248
  <!-- Customizable icon for each tab -->
3231
3249
  <slot name=${`${r}-icon`}>${r}</slot>
3232
3250
  </label>
3233
3251
  `
3234
3252
  )}
3235
- <div class="tab ${P(this, ye).call(this, s)}">
3253
+ <div class="tab ${P(this, ve).call(this, s)}">
3236
3254
  <!-- Content slot for each tab -->
3237
3255
  <slot name=${`${r}-content`}>${r}</slot>
3238
3256
  </div>
@@ -3243,17 +3261,17 @@ class bo extends tt {
3243
3261
  `;
3244
3262
  }
3245
3263
  }
3246
- ye = new WeakMap(), We = new WeakMap(), Ge = new WeakMap(), // Define static properties for the component
3247
- N(bo, "properties", {
3264
+ ve = new WeakMap(), Ge = new WeakMap(), Je = new WeakMap(), // Define static properties for the component
3265
+ L($o, "properties", {
3248
3266
  actions: { attribute: !1 },
3249
3267
  selectedTab: { state: !0 },
3250
3268
  tabs: { attribute: !1 },
3251
3269
  unstyled: { type: Boolean },
3252
3270
  noShadow: { type: Boolean },
3253
- disableTabs: { type: Boolean }
3271
+ toolsAsList: { type: Boolean }
3254
3272
  });
3255
- customElements.define("eox-layercontrol-tools-items", bo);
3256
- const ra = `
3273
+ customElements.define("eox-layercontrol-tools-items", $o);
3274
+ const ca = `
3257
3275
  button,
3258
3276
  .button {
3259
3277
  /* TODO: why does this only work here and not from :root? */
@@ -3377,7 +3395,7 @@ button.smallest.icon::before {
3377
3395
  width: 16px;
3378
3396
  padding: 0px;
3379
3397
  }
3380
- `, sa = `
3398
+ `, da = `
3381
3399
  input[type=radio] {
3382
3400
  appearance: none;
3383
3401
  -webkit-appearance: none;
@@ -3405,7 +3423,7 @@ input[type=radio]:checked:after {
3405
3423
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");
3406
3424
 
3407
3425
  }
3408
- `, vo = `
3426
+ `, Ao = `
3409
3427
  input[type=checkbox] {
3410
3428
  appearance: none;
3411
3429
  -webkit-appearance: none;
@@ -3428,7 +3446,7 @@ input[type=checkbox]:checked:after {
3428
3446
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");
3429
3447
 
3430
3448
  }
3431
- `, aa = `
3449
+ `, ha = `
3432
3450
  input[type="range"] {
3433
3451
  -webkit-appearance: none;
3434
3452
  width: 90%;
@@ -3506,14 +3524,14 @@ input::-moz-focus-inner, input::-moz-focus-outer {
3506
3524
  border: 0;
3507
3525
  }
3508
3526
  `;
3509
- var Je, Ke;
3510
- class wo extends tt {
3527
+ var Ke, Qe;
3528
+ class _o extends it {
3511
3529
  constructor() {
3512
3530
  super();
3513
3531
  // Initializes '_removeButton' invoking 'removeButton' function with 'this' context.
3514
- N(this, "_removeButton", () => Ns(this));
3532
+ L(this, "_removeButton", () => ks(this));
3515
3533
  // Initializes '_sortButton' invoking 'sortButton' function with 'unstyled' property as a parameter.
3516
- N(this, "_sortButton", () => Is(this.unstyled));
3534
+ L(this, "_sortButton", () => Us(this.unstyled));
3517
3535
  /**
3518
3536
  * Initializes '_button' as a function accepting 'tool' parameter to generate a Button.
3519
3537
  * Uses 'this.unstyled' as a context parameter for Button generation.
@@ -3521,18 +3539,18 @@ class wo extends tt {
3521
3539
  * @param {string} tool - Tool parameter for Button generation.
3522
3540
  * @returns {import("lit").HTMLTemplateResult} - The generated Button element.
3523
3541
  */
3524
- N(this, "_button", (n) => Ms(n, this.unstyled));
3525
- N(this, "_getDefaultTools", () => {
3542
+ L(this, "_button", (n) => Vs(n, this.unstyled));
3543
+ L(this, "_getDefaultTools", () => {
3526
3544
  var n;
3527
- return E`
3545
+ return x`
3528
3546
  <div slot="info-content">
3529
- ${Hs(this.layer.get("description"))}
3547
+ ${Fs(this.layer.get("description"))}
3530
3548
  </div>
3531
3549
  <div slot="datetime-content">
3532
3550
  <!-- Layer datetime -->
3533
- ${Y(
3551
+ ${G(
3534
3552
  this.layer.get("layerDatetime"),
3535
- () => E`
3553
+ () => x`
3536
3554
  <eox-layercontrol-layer-datetime
3537
3555
  slot="datetime-content"
3538
3556
  .noShadow=${!0}
@@ -3551,15 +3569,15 @@ class wo extends tt {
3551
3569
  min="0"
3552
3570
  max="1"
3553
3571
  step="0.01"
3554
- value=${co((n = this.layer) == null ? void 0 : n.getOpacity())}
3572
+ value=${yo((n = this.layer) == null ? void 0 : n.getOpacity())}
3555
3573
  @input=${(i) => this.layer.setOpacity(parseFloat(i.target.value))}
3556
3574
  />
3557
3575
  </div>
3558
3576
  <div slot="config-content">
3559
3577
  <!-- Layer configuration -->
3560
- ${Y(
3578
+ ${G(
3561
3579
  this.layer.get("layerConfig"),
3562
- () => E`
3580
+ () => x`
3563
3581
  <eox-layercontrol-layerconfig
3564
3582
  slot="config-content"
3565
3583
  .layer=${this.layer}
@@ -3575,12 +3593,12 @@ class wo extends tt {
3575
3593
  <div slot="sort-icon">${this._sortButton()}</div>
3576
3594
  `;
3577
3595
  });
3578
- T(this, Je, "");
3579
- T(this, Ke, `
3580
- ${ra}
3581
- ${sa}
3582
- ${vo}
3583
- ${aa}
3596
+ T(this, Ke, "");
3597
+ T(this, Qe, `
3598
+ ${ca}
3599
+ ${da}
3600
+ ${Ao}
3601
+ ${ha}
3584
3602
  .drag-handle {
3585
3603
  cursor: n-resize;
3586
3604
  }
@@ -3683,7 +3701,7 @@ class wo extends tt {
3683
3701
  padding: 12px 6px;
3684
3702
  }
3685
3703
  `);
3686
- this.layer = null, this.tools = [], this.unstyled = !1, this.noShadow = !1, this.disableTabs = !1;
3704
+ this.layer = null, this.tools = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1;
3687
3705
  }
3688
3706
  /**
3689
3707
  * Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
@@ -3693,26 +3711,26 @@ class wo extends tt {
3693
3711
  }
3694
3712
  render() {
3695
3713
  var l;
3696
- const n = Os(this.tools, this.layer), i = Rs(this.tools, this.layer), o = this[`_${n == null ? void 0 : n[0]}Button`] ? (
3714
+ const n = Ls(this.tools, this.layer), i = Bs(this.tools, this.layer), o = this[`_${n == null ? void 0 : n[0]}Button`] ? (
3697
3715
  // @ts-ignore
3698
3716
  this[`_${n == null ? void 0 : n[0]}Button`]()
3699
3717
  ) : C, r = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = n == null ? void 0 : n.length, a = i == null ? void 0 : i.length;
3700
- return E`
3718
+ return x`
3701
3719
  <style>
3702
- ${P(this, Je)}
3703
- ${!this.unstyled && P(this, Ke)}
3720
+ ${P(this, Ke)}
3721
+ ${!this.unstyled && P(this, Qe)}
3704
3722
  </style>
3705
- ${Y(
3723
+ ${G(
3706
3724
  s + a > 0,
3707
- () => E`
3708
- ${Y(
3725
+ () => x`
3726
+ ${G(
3709
3727
  s === 1 && a === 0,
3710
- () => E`
3728
+ () => x`
3711
3729
  <div class="single-action-container">
3712
3730
  <div class="single-action">${o}</div>
3713
3731
  </div>
3714
3732
  `,
3715
- () => E`
3733
+ () => x`
3716
3734
  <details
3717
3735
  class="tools"
3718
3736
  open=${this.layer.get("layerControlToolsExpand") || C}
@@ -3721,15 +3739,15 @@ class wo extends tt {
3721
3739
  <button class="icon ${r}">Tools</button>
3722
3740
  </summary>
3723
3741
  <eox-layercontrol-tools-items
3724
- class="${this.disableTabs ? "tools-list" : "tools-tab"}"
3742
+ class="${this.toolsAsList ? "tools-list" : "tools-tab"}"
3725
3743
  .noShadow=${!1}
3726
3744
  .actions=${n}
3727
3745
  .tabs=${i}
3728
3746
  .unstyled=${this.unstyled}
3729
- .disableTabs=${this.disableTabs}
3747
+ .toolsAsList=${this.toolsAsList}
3730
3748
  >
3731
3749
  <!-- Rendering tabs and content -->
3732
- ${Me(i, (d) => this._button(d))}
3750
+ ${Ie(i, (u) => this._button(u))}
3733
3751
  <!-- Including default tools -->
3734
3752
  ${this._getDefaultTools()}
3735
3753
  </eox-layercontrol-tools-items>
@@ -3741,21 +3759,21 @@ class wo extends tt {
3741
3759
  `;
3742
3760
  }
3743
3761
  }
3744
- Je = new WeakMap(), Ke = new WeakMap(), // Define static properties for the component
3745
- N(wo, "properties", {
3762
+ Ke = new WeakMap(), Qe = new WeakMap(), // Define static properties for the component
3763
+ L(_o, "properties", {
3746
3764
  layer: { attribute: !1 },
3747
3765
  tools: { attribute: !1 },
3748
3766
  unstyled: { type: Boolean },
3749
3767
  noShadow: { type: Boolean },
3750
- disableTabs: { type: Boolean }
3768
+ toolsAsList: { type: Boolean }
3751
3769
  });
3752
3770
  customElements.define(
3753
3771
  "eox-layercontrol-layer-tools",
3754
- wo
3772
+ _o
3755
3773
  );
3756
- const la = (e) => {
3774
+ const pa = (e) => {
3757
3775
  const t = () => {
3758
- const n = Ts(
3776
+ const n = Is(
3759
3777
  e.layer,
3760
3778
  e.map,
3761
3779
  e.showLayerZoomState
@@ -3765,11 +3783,11 @@ const la = (e) => {
3765
3783
  new CustomEvent("change:resolution", { bubbles: !0 })
3766
3784
  ));
3767
3785
  };
3768
- ao(
3786
+ fo(
3769
3787
  e.layer,
3770
3788
  e.showLayerZoomState
3771
3789
  ) && (t(), e.map.getView().on("change:resolution", () => t()));
3772
- }, da = (e, t) => {
3790
+ }, fa = (e, t) => {
3773
3791
  const n = t.layer;
3774
3792
  n.setVisible(e.target.checked), e.target.checked && n.get("layerControlExclusive") && t.closest(
3775
3793
  ".layers > ul"
@@ -3780,20 +3798,20 @@ const la = (e) => {
3780
3798
  new CustomEvent("changed", { bubbles: !0, detail: n })
3781
3799
  ), t.requestUpdate();
3782
3800
  };
3783
- var Ct, Ne, xo, Qe, tn;
3784
- class Eo extends tt {
3801
+ var Tt, Ne, To, tn, en;
3802
+ class Co extends it {
3785
3803
  constructor() {
3786
3804
  super();
3787
- T(this, Ct);
3805
+ T(this, Tt);
3788
3806
  /**
3789
3807
  * Represents the current layer visibility based on zoom level.
3790
3808
  *
3791
3809
  * @type {Boolean}
3792
3810
  */
3793
- N(this, "currLayerVisibilityBasedOnZoom", !0);
3794
- T(this, Qe, "");
3795
- T(this, tn, `
3796
- ${vo}
3811
+ L(this, "currLayerVisibilityBasedOnZoom", !0);
3812
+ T(this, tn, "");
3813
+ T(this, en, `
3814
+ ${Ao}
3797
3815
  eox-layercontrol-layer {
3798
3816
  width: 100%;
3799
3817
  }
@@ -3834,7 +3852,7 @@ class Eo extends tt {
3834
3852
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230041703a' viewBox='0 0 24 24'%3E%3Ctitle%3Evector-square-edit%3C/title%3E%3Cpath d='M22.7 14.4L21.7 15.4L19.6 13.3L20.6 12.3C20.8 12.1 21.2 12.1 21.4 12.3L22.7 13.6C22.9 13.8 22.9 14.1 22.7 14.4M13 19.9L19.1 13.8L21.2 15.9L15.1 22H13V19.9M11 19.9V19.1L11.6 18.5L12.1 18H8V16H6V8H8V6H16V8H18V12.1L19.1 11L19.3 10.8C19.5 10.6 19.8 10.4 20.1 10.3V8H22.1V2H16.1V4H8V2H2V8H4V16H2V22H8V20L11 19.9M18 4H20V6H18V4M4 4H6V6H4V4M6 20H4V18H6V20Z' /%3E%3C/svg%3E");
3835
3853
  }
3836
3854
  `);
3837
- this.layer = null, this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = [], this.unstyled = !1, this.noShadow = !1, this.disableTabs = !1;
3855
+ this.layer = null, this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1;
3838
3856
  }
3839
3857
  /**
3840
3858
  * Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
@@ -3847,7 +3865,7 @@ class Eo extends tt {
3847
3865
  * and register "change:resolution" ones at the beginning if `showLayerZoomState` is present
3848
3866
  */
3849
3867
  firstUpdated() {
3850
- la(this);
3868
+ pa(this);
3851
3869
  }
3852
3870
  /**
3853
3871
  * Renders layer controls and tools with conditional display based on certain properties.
@@ -3856,30 +3874,30 @@ class Eo extends tt {
3856
3874
  */
3857
3875
  render() {
3858
3876
  var l;
3859
- const n = this.layer.getVisible(), i = n ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", r = B(this, Ct, Ne).call(this, "layerControlDisable") ? "disabled" : "", s = B(this, Ct, Ne).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
3860
- return E`
3877
+ const n = this.layer.getVisible(), i = n ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", r = B(this, Tt, Ne).call(this, "layerControlDisable") ? "disabled" : "", s = B(this, Tt, Ne).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
3878
+ return x`
3861
3879
  <style>
3862
- ${P(this, Qe)}
3863
- ${!this.unstyled && P(this, tn)}
3880
+ ${P(this, tn)}
3881
+ ${!this.unstyled && P(this, en)}
3864
3882
  </style>
3865
- ${Y(
3883
+ ${G(
3866
3884
  this.layer,
3867
- () => E`
3885
+ () => x`
3868
3886
  <!-- Render the layer -->
3869
3887
  <div class="layer ${i} ${o}">
3870
3888
  <label class="drag-handle ${r}">
3871
3889
  <!-- Input element for layer visibility -->
3872
3890
  <input
3873
3891
  type=${s}
3874
- .checked=${co(n)}
3875
- @click=${B(this, Ct, xo)}
3892
+ .checked=${yo(n)}
3893
+ @click=${B(this, Tt, To)}
3876
3894
  />
3877
3895
 
3878
3896
  <!-- Layer title -->
3879
- <span class="title">${B(this, Ct, Ne).call(this, this.titleProperty)}</span>
3880
- ${Y(
3897
+ <span class="title">${B(this, Tt, Ne).call(this, this.titleProperty)}</span>
3898
+ ${G(
3881
3899
  a,
3882
- () => E`<span class="tools-placeholder"></span>`
3900
+ () => x`<span class="tools-placeholder"></span>`
3883
3901
  )}
3884
3902
  </label>
3885
3903
  </div>
@@ -3890,14 +3908,14 @@ class Eo extends tt {
3890
3908
  .layer=${this.layer}
3891
3909
  .tools=${this.tools}
3892
3910
  .unstyled=${this.unstyled}
3893
- .disableTabs=${this.disableTabs}
3911
+ .toolsAsList=${this.toolsAsList}
3894
3912
  ></eox-layercontrol-layer-tools>
3895
3913
  `
3896
3914
  )}
3897
3915
  `;
3898
3916
  }
3899
3917
  }
3900
- Ct = new WeakSet(), /**
3918
+ Tt = new WeakSet(), /**
3901
3919
  * Private method to get layer property by key if available.
3902
3920
  *
3903
3921
  * @param {string} key - The key for the layer property.
@@ -3911,10 +3929,10 @@ Ne = function(n) {
3911
3929
  *
3912
3930
  * @param {{target: { checked: boolean }}} evt - The input change event.
3913
3931
  */
3914
- xo = function(n) {
3915
- da(n, this);
3916
- }, Qe = new WeakMap(), tn = new WeakMap(), // Define static properties for the component
3917
- N(Eo, "properties", {
3932
+ To = function(n) {
3933
+ fa(n, this);
3934
+ }, tn = new WeakMap(), en = new WeakMap(), // Define static properties for the component
3935
+ L(Co, "properties", {
3918
3936
  layer: { attribute: !1 },
3919
3937
  map: { attribute: !1, state: !0 },
3920
3938
  titleProperty: { attribute: "title-property", type: String },
@@ -3922,15 +3940,15 @@ N(Eo, "properties", {
3922
3940
  tools: { attribute: !1 },
3923
3941
  unstyled: { type: Boolean },
3924
3942
  noShadow: { type: Boolean },
3925
- disableTabs: { type: Boolean }
3943
+ toolsAsList: { type: Boolean }
3926
3944
  });
3927
- customElements.define("eox-layercontrol-layer", Eo);
3928
- var en, nn;
3929
- class So extends tt {
3945
+ customElements.define("eox-layercontrol-layer", Co);
3946
+ var nn, on;
3947
+ class Po extends it {
3930
3948
  constructor() {
3931
3949
  super();
3932
- T(this, en, "");
3933
- T(this, nn, `
3950
+ T(this, nn, "");
3951
+ T(this, on, `
3934
3952
  details summary {
3935
3953
  cursor: pointer;
3936
3954
  display: flex;
@@ -3955,7 +3973,7 @@ class So extends tt {
3955
3973
  display: none;
3956
3974
  }
3957
3975
  `);
3958
- this.group = null, this.idProperty = "id", this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = [], this.unstyled = !1, this.noShadow = !1, this.disableTabs = !1;
3976
+ this.group = null, this.idProperty = "id", this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1;
3959
3977
  }
3960
3978
  /**
3961
3979
  * Overrides the default behavior of creating the render root element.
@@ -3970,17 +3988,17 @@ class So extends tt {
3970
3988
  */
3971
3989
  render() {
3972
3990
  var o, r;
3973
- const n = !!((o = this.group) != null && o.get("layerControlExpand")), i = (r = uo(
3991
+ const n = !!((o = this.group) != null && o.get("layerControlExpand")), i = (r = mo(
3974
3992
  this.group.getLayers()
3975
3993
  )) == null ? void 0 : r.length;
3976
- return E`
3994
+ return x`
3977
3995
  <style>
3978
- ${P(this, en)}
3979
- ${!this.unstyled && P(this, nn)}
3996
+ ${P(this, nn)}
3997
+ ${!this.unstyled && P(this, on)}
3980
3998
  </style>
3981
- ${Y(
3999
+ ${G(
3982
4000
  this.group,
3983
- () => E`
4001
+ () => x`
3984
4002
  <!-- Render the details element with the layer control -->
3985
4003
  <details
3986
4004
  open=${n || C}
@@ -3996,7 +4014,7 @@ class So extends tt {
3996
4014
  .showLayerZoomState=${this.showLayerZoomState}
3997
4015
  .tools=${this.tools}
3998
4016
  .unstyled=${this.unstyled}
3999
- .disableTabs=${this.disableTabs}
4017
+ .toolsAsList=${this.toolsAsList}
4000
4018
  @changed=${() => this.requestUpdate()}
4001
4019
  ></eox-layercontrol-layer>
4002
4020
  </summary>
@@ -4011,7 +4029,7 @@ class So extends tt {
4011
4029
  .showLayerZoomState=${this.showLayerZoomState}
4012
4030
  .tools=${this.tools}
4013
4031
  .unstyled=${this.unstyled}
4014
- .disableTabs=${this.disableTabs}
4032
+ .toolsAsList=${this.toolsAsList}
4015
4033
  @changed=${() => this.requestUpdate()}
4016
4034
  ></eox-layercontrol-layer-list>
4017
4035
  </details>
@@ -4020,8 +4038,8 @@ class So extends tt {
4020
4038
  `;
4021
4039
  }
4022
4040
  }
4023
- en = new WeakMap(), nn = new WeakMap(), // Define static properties for the component
4024
- N(So, "properties", {
4041
+ nn = new WeakMap(), on = new WeakMap(), // Define static properties for the component
4042
+ L(Po, "properties", {
4025
4043
  group: { attribute: !1 },
4026
4044
  idProperty: { attribute: "id-property" },
4027
4045
  map: { attribute: !1, state: !0 },
@@ -4030,34 +4048,110 @@ N(So, "properties", {
4030
4048
  tools: { attribute: !1 },
4031
4049
  unstyled: { type: Boolean },
4032
4050
  noShadow: { type: Boolean },
4033
- disableTabs: { type: Boolean }
4051
+ toolsAsList: { type: Boolean }
4034
4052
  });
4035
4053
  customElements.define(
4036
4054
  "eox-layercontrol-layer-group",
4037
- So
4055
+ Po
4038
4056
  );
4039
- const ua = (e) => {
4040
- const { layers: t, idProperty: n, titleProperty: i, renderRoot: o } = e, r = po(() => {
4057
+ var ga = "Expected a function", _i = NaN, ma = "[object Symbol]", ya = /^\s+|\s+$/g, ba = /^[-+]0x[0-9a-f]+$/i, va = /^0b[01]+$/i, wa = /^0o[0-7]+$/i, Ea = parseInt, xa = typeof _t == "object" && _t && _t.Object === Object && _t, Sa = typeof self == "object" && self && self.Object === Object && self, $a = xa || Sa || Function("return this")(), Aa = Object.prototype, _a = Aa.toString, Ca = Math.max, Ta = Math.min, Rn = function() {
4058
+ return $a.Date.now();
4059
+ };
4060
+ function Pa(e, t, n) {
4061
+ var i, o, r, s, a, l, u = 0, d = !1, c = !1, p = !0;
4062
+ if (typeof e != "function")
4063
+ throw new TypeError(ga);
4064
+ t = Ci(t) || 0, kn(n) && (d = !!n.leading, c = "maxWait" in n, r = c ? Ca(Ci(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
4065
+ function f(b) {
4066
+ var D = i, Z = o;
4067
+ return i = o = void 0, u = b, s = e.apply(Z, D), s;
4068
+ }
4069
+ function g(b) {
4070
+ return u = b, a = setTimeout(I, t), d ? f(b) : s;
4071
+ }
4072
+ function y(b) {
4073
+ var D = b - l, Z = b - u, U = t - D;
4074
+ return c ? Ta(U, r - Z) : U;
4075
+ }
4076
+ function O(b) {
4077
+ var D = b - l, Z = b - u;
4078
+ return l === void 0 || D >= t || D < 0 || c && Z >= r;
4079
+ }
4080
+ function I() {
4081
+ var b = Rn();
4082
+ if (O(b))
4083
+ return H(b);
4084
+ a = setTimeout(I, y(b));
4085
+ }
4086
+ function H(b) {
4087
+ return a = void 0, p && i ? f(b) : (i = o = void 0, s);
4088
+ }
4089
+ function J() {
4090
+ a !== void 0 && clearTimeout(a), u = 0, i = l = o = a = void 0;
4091
+ }
4092
+ function j() {
4093
+ return a === void 0 ? s : H(Rn());
4094
+ }
4095
+ function K() {
4096
+ var b = Rn(), D = O(b);
4097
+ if (i = arguments, o = this, l = b, D) {
4098
+ if (a === void 0)
4099
+ return g(l);
4100
+ if (c)
4101
+ return a = setTimeout(I, t), f(l);
4102
+ }
4103
+ return a === void 0 && (a = setTimeout(I, t)), s;
4104
+ }
4105
+ return K.cancel = J, K.flush = j, K;
4106
+ }
4107
+ function kn(e) {
4108
+ var t = typeof e;
4109
+ return !!e && (t == "object" || t == "function");
4110
+ }
4111
+ function Oa(e) {
4112
+ return !!e && typeof e == "object";
4113
+ }
4114
+ function Da(e) {
4115
+ return typeof e == "symbol" || Oa(e) && _a.call(e) == ma;
4116
+ }
4117
+ function Ci(e) {
4118
+ if (typeof e == "number")
4119
+ return e;
4120
+ if (Da(e))
4121
+ return _i;
4122
+ if (kn(e)) {
4123
+ var t = typeof e.valueOf == "function" ? e.valueOf() : e;
4124
+ e = kn(t) ? t + "" : t;
4125
+ }
4126
+ if (typeof e != "string")
4127
+ return e === 0 ? e : +e;
4128
+ e = e.replace(ya, "");
4129
+ var n = va.test(e);
4130
+ return n || wa.test(e) ? Ea(e.slice(2), n ? 2 : 8) : ba.test(e) ? _i : +e;
4131
+ }
4132
+ var Ra = Pa;
4133
+ const Ma = /* @__PURE__ */ vo(Ra), Ia = (e) => {
4134
+ const { layers: t, idProperty: n, titleProperty: i, renderRoot: o } = e, r = Ma(() => {
4041
4135
  e.requestUpdate(), e.dispatchEvent(
4042
4136
  new CustomEvent("changed", { bubbles: !0 })
4043
4137
  );
4044
4138
  }, 50), s = () => r();
4045
4139
  if (t && (t.hasListener("change:length") && (t == null || t.un("change:length", s)), t.on("change:length", s), t)) {
4046
4140
  const a = o.querySelector("ul");
4047
- Cs(
4141
+ Ms(
4048
4142
  t,
4049
4143
  n,
4050
4144
  i,
4051
4145
  e
4052
- ), As(a, t, n, e);
4146
+ ), Rs(a, t, n, e);
4053
4147
  }
4054
4148
  };
4055
- var on, rn;
4056
- class $o extends tt {
4149
+ var rn, sn;
4150
+ class Oo extends it {
4057
4151
  constructor() {
4058
4152
  super();
4059
- T(this, on, "");
4060
- T(this, rn, `
4153
+ T(this, rn, "");
4154
+ T(this, sn, `
4061
4155
  ul {
4062
4156
  padding: 0;
4063
4157
  margin: 0;
@@ -4086,13 +4180,13 @@ class $o extends tt {
4086
4180
  li.sortable-ghost {
4087
4181
  }
4088
4182
  `);
4089
- this.idProperty = "id", this.layers = null, this.map = null, this.tools = void 0, this.titleProperty = "title", this.showLayerZoomState = !1, this.unstyled = !1, this.noShadow = !1, this.disableTabs = !1;
4183
+ this.idProperty = "id", this.layers = null, this.map = null, this.tools = void 0, this.titleProperty = "title", this.showLayerZoomState = !1, this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1;
4090
4184
  }
4091
4185
  /**
4092
4186
  * Executes specific logic after the initial render of the component.
4093
4187
  */
4094
4188
  firstUpdated() {
4095
- ua(this);
4189
+ Ia(this);
4096
4190
  }
4097
4191
  /**
4098
4192
  * Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
@@ -4105,27 +4199,27 @@ class $o extends tt {
4105
4199
  * layer groups or individual layers accordingly. Utilizes conditional rendering and iterates through available layers.
4106
4200
  */
4107
4201
  render() {
4108
- const n = this.layers ? uo(this.layers).reverse() : [];
4109
- return E`
4202
+ const n = this.layers ? mo(this.layers).reverse() : [];
4203
+ return x`
4110
4204
  <style>
4111
- ${P(this, on)}
4112
- ${!this.unstyled && P(this, rn)}
4205
+ ${P(this, rn)}
4206
+ ${!this.unstyled && P(this, sn)}
4113
4207
  </style>
4114
4208
  <ul>
4115
- ${Y(
4209
+ ${G(
4116
4210
  this.layers,
4117
- () => E`
4118
- ${ir(
4211
+ () => x`
4212
+ ${ur(
4119
4213
  n,
4120
4214
  (i) => i,
4121
- (i) => E`
4215
+ (i) => x`
4122
4216
  <li
4123
4217
  data-layer="${i.get(this.idProperty)}"
4124
- data-type="${Ps(i, this.map)}"
4218
+ data-type="${Ns(i, this.map)}"
4125
4219
  >
4126
4220
  ${/** Checks if the layer is a group or individual layer and renders accordingly */
4127
4221
  /** @type {import("ol/layer").Group} */
4128
- i.getLayers ? E`
4222
+ i.getLayers ? x`
4129
4223
  <eox-layercontrol-layer-group
4130
4224
  .noShadow=${!0}
4131
4225
  .group=${i}
@@ -4135,11 +4229,11 @@ class $o extends tt {
4135
4229
  .showLayerZoomState=${this.showLayerZoomState}
4136
4230
  .tools=${this.tools}
4137
4231
  .unstyled=${this.unstyled}
4138
- .disableTabs=${this.disableTabs}
4232
+ .toolsAsList=${this.toolsAsList}
4139
4233
  @changed=${() => this.requestUpdate()}
4140
4234
  >
4141
4235
  </eox-layercontrol-layer-group>
4142
- ` : E`
4236
+ ` : x`
4143
4237
  <eox-layercontrol-layer
4144
4238
  .noShadow=${!0}
4145
4239
  .layer=${i}
@@ -4148,7 +4242,7 @@ class $o extends tt {
4148
4242
  .showLayerZoomState=${this.showLayerZoomState}
4149
4243
  .tools=${this.tools}
4150
4244
  .unstyled=${this.unstyled}
4151
- .disableTabs=${this.disableTabs}
4245
+ .toolsAsList=${this.toolsAsList}
4152
4246
  @changed=${() => this.requestUpdate()}
4153
4247
  ></eox-layercontrol-layer>
4154
4248
  `}
@@ -4161,8 +4255,8 @@ class $o extends tt {
4161
4255
  `;
4162
4256
  }
4163
4257
  }
4164
- on = new WeakMap(), rn = new WeakMap(), // Define static properties for the component
4165
- N($o, "properties", {
4258
+ rn = new WeakMap(), sn = new WeakMap(), // Define static properties for the component
4259
+ L(Oo, "properties", {
4166
4260
  idProperty: { attribute: "id-property" },
4167
4261
  layers: { attribute: !1 },
4168
4262
  map: { attribute: !1, state: !0 },
@@ -4171,13 +4265,13 @@ N($o, "properties", {
4171
4265
  tools: { attribute: !1 },
4172
4266
  unstyled: { type: Boolean },
4173
4267
  noShadow: { type: Boolean },
4174
- disableTabs: { type: Boolean }
4268
+ toolsAsList: { type: Boolean }
4175
4269
  });
4176
- customElements.define("eox-layercontrol-layer-list", $o);
4177
- const ca = (e) => {
4270
+ customElements.define("eox-layercontrol-layer-list", Oo);
4271
+ const Na = (e) => {
4178
4272
  const t = e.querySelector(
4179
4273
  "select[name=optional]"
4180
- ), n = t ? t.value : null, i = Gn(
4274
+ ), n = t ? t.value : null, i = Qn(
4181
4275
  e.layers.getArray(),
4182
4276
  "layerControlOptional",
4183
4277
  !0
@@ -4196,11 +4290,11 @@ const ca = (e) => {
4196
4290
  )
4197
4291
  ), e.requestUpdate();
4198
4292
  };
4199
- var sn, Ao;
4200
- class _o extends tt {
4293
+ var an, Ro;
4294
+ class Do extends it {
4201
4295
  constructor() {
4202
4296
  super();
4203
- T(this, sn);
4297
+ T(this, an);
4204
4298
  this.idProperty = "id", this.layers = null, this.titleProperty = "title", this.unstyled = !1, this.noShadow = !1;
4205
4299
  }
4206
4300
  /**
@@ -4215,12 +4309,12 @@ class _o extends tt {
4215
4309
  * Generates dropdown options based on the extracted layer information.
4216
4310
  */
4217
4311
  render() {
4218
- const n = Gn(
4312
+ const n = Qn(
4219
4313
  this.layers.getArray(),
4220
4314
  "layerControlOptional",
4221
4315
  !0
4222
4316
  );
4223
- return E`
4317
+ return x`
4224
4318
  <!-- Label for the dropdown -->
4225
4319
  <label for="optional">Optional layers</label>
4226
4320
 
@@ -4234,23 +4328,23 @@ class _o extends tt {
4234
4328
  <!-- Mapping through filtered layers list to generate dropdown options -->
4235
4329
  ${n.map((i) => {
4236
4330
  const o = i.get(this.idProperty) || i.ol_uid, r = i.get(this.titleProperty), s = `layer ${i.get(this.idProperty)}`;
4237
- return E` <option value="${o}">${r || s}</option> `;
4331
+ return x` <option value="${o}">${r || s}</option> `;
4238
4332
  })}
4239
4333
  </select>
4240
4334
 
4241
4335
  <!-- Button to handle adding layers -->
4242
- <button @click="${B(this, sn, Ao)}">add</button>
4336
+ <button @click="${B(this, an, Ro)}">add</button>
4243
4337
  `;
4244
4338
  }
4245
4339
  }
4246
- sn = new WeakSet(), /**
4340
+ an = new WeakSet(), /**
4247
4341
  * Handles the addition of selected layers to a list.
4248
4342
  * Invokes the 'addToListMethod' with the current context.
4249
4343
  */
4250
- Ao = function() {
4251
- ca(this);
4344
+ Ro = function() {
4345
+ Na(this);
4252
4346
  }, // Define static properties for the component
4253
- N(_o, "properties", {
4347
+ L(Do, "properties", {
4254
4348
  idProperty: { attribute: "id-property" },
4255
4349
  layers: { attribute: !1 },
4256
4350
  titleProperty: { attribute: "title-property", type: String },
@@ -4259,27 +4353,27 @@ N(_o, "properties", {
4259
4353
  });
4260
4354
  customElements.define(
4261
4355
  "eox-layercontrol-optional-list",
4262
- _o
4356
+ Do
4263
4357
  );
4264
- const ha = (e, t) => {
4358
+ const Ha = (e, t) => {
4265
4359
  t.jsonInput = e.target.value, t.requestUpdate();
4266
- }, xi = (e) => {
4360
+ }, Ti = (e) => {
4267
4361
  const t = JSON.parse(
4268
- `{"data":${zi(e.jsonInput)}}`
4362
+ `{"data":${Ji(e.jsonInput)}}`
4269
4363
  );
4270
4364
  Array.isArray(t.data) ? t.data.forEach((n) => {
4271
4365
  e.eoxMap.addOrUpdateLayer(n);
4272
4366
  }) : e.eoxMap.addOrUpdateLayer(t.data), e.jsonInput = null, e.requestUpdate();
4273
- }, pa = (e, t) => {
4367
+ }, La = (e, t) => {
4274
4368
  t.urlInput = e.target.value, t.requestUpdate();
4275
4369
  };
4276
- async function fa(e) {
4370
+ async function Ba(e) {
4277
4371
  const t = e.urlInput;
4278
4372
  if (e.wmsCapabilities = null, e.searchLoad = !0, e.requestUpdate(), !t) return !1;
4279
- if (Xn(t) === "XYZ")
4373
+ if (Wn(t) === "XYZ")
4280
4374
  return { Name: t };
4281
4375
  try {
4282
- const n = await Wr(t);
4376
+ const n = await es(t);
4283
4377
  e.wmsCapabilities = n;
4284
4378
  } catch {
4285
4379
  } finally {
@@ -4287,8 +4381,8 @@ async function fa(e) {
4287
4381
  }
4288
4382
  return !1;
4289
4383
  }
4290
- const ga = (e, t) => {
4291
- const { Name: n } = e, i = Xn(t.urlInput) || "XYZ", o = {
4384
+ const Va = (e, t) => {
4385
+ const { Name: n } = e, i = Wn(t.urlInput) || "XYZ", o = {
4292
4386
  type: "Tile",
4293
4387
  properties: {
4294
4388
  id: n,
@@ -4306,45 +4400,45 @@ const ga = (e, t) => {
4306
4400
  }
4307
4401
  };
4308
4402
  t.jsonInput = JSON.stringify(o);
4309
- }, ma = (e, t) => {
4403
+ }, ka = (e, t) => {
4310
4404
  t.open = e || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
4311
4405
  };
4312
- var F, To, Po, Vn, Do, Oo, Ie, an, ln;
4313
- class Co extends tt {
4406
+ var X, Io, No, Un, Ho, Lo, He, ln, un;
4407
+ class Mo extends it {
4314
4408
  constructor() {
4315
4409
  super();
4316
- T(this, F);
4410
+ T(this, X);
4317
4411
  /**
4318
4412
  * State for URL Input for WMS/XYZ URLs
4319
4413
  *
4320
4414
  * @type {String}
4321
4415
  */
4322
- N(this, "urlInput", null);
4416
+ L(this, "urlInput", null);
4323
4417
  /**
4324
4418
  * State for JSON Textarea - For EOxMap JSON
4325
4419
  *
4326
4420
  * @type {String}
4327
4421
  */
4328
- N(this, "jsonInput", null);
4422
+ L(this, "jsonInput", null);
4329
4423
  /**
4330
4424
  * State for add layer - consist of url/json
4331
4425
  *
4332
4426
  * @type {"url" | "json" | null}
4333
4427
  */
4334
- N(this, "open", null);
4428
+ L(this, "open", null);
4335
4429
  /**
4336
4430
  * Loader state when search is triggered
4337
4431
  *
4338
4432
  * @type {Boolean}
4339
4433
  */
4340
- N(this, "searchLoad", !1);
4434
+ L(this, "searchLoad", !1);
4341
4435
  /**
4342
4436
  * State for `WMS Capabilities JSON`
4343
4437
  *
4344
4438
  * @type {import("wms-capabilities").WMSCapabilitiesJSON}
4345
4439
  */
4346
- N(this, "wmsCapabilities", null);
4347
- T(this, an, `
4440
+ L(this, "wmsCapabilities", null);
4441
+ T(this, ln, `
4348
4442
  .eox-add-layer-main .open {
4349
4443
  position: relative;
4350
4444
  }
@@ -4352,7 +4446,7 @@ class Co extends tt {
4352
4446
  display: none;
4353
4447
  }
4354
4448
  `);
4355
- T(this, ln, `
4449
+ T(this, un, `
4356
4450
  .eox-add {
4357
4451
  background: #f0f2f5;
4358
4452
  border-top: 1px solid #0041701a;
@@ -4501,24 +4595,24 @@ class Co extends tt {
4501
4595
  * Handles input fields, search, and addition of layers.
4502
4596
  */
4503
4597
  render() {
4504
- const n = this.open ? "open" : "close", i = this.open === "url", o = this.open === "json", r = !Gr(this.urlInput) || this.searchLoad ? !0 : C;
4505
- return E`
4598
+ const n = this.open ? "open" : "close", i = this.open === "url", o = this.open === "json", r = !ns(this.urlInput) || this.searchLoad ? !0 : C;
4599
+ return x`
4506
4600
  <style>
4507
- ${P(this, an)}
4508
- ${!this.unstyled && P(this, ln)}
4601
+ ${P(this, ln)}
4602
+ ${!this.unstyled && P(this, un)}
4509
4603
  </style>
4510
4604
  <div class="eox-add-layer-main">
4511
4605
  <div class="eox-add-layer-col">
4512
4606
  <!-- Tabbed interface for URL and JSON -->
4513
4607
  <ul class="eox-add-layer-tab ${n}">
4514
4608
  <li
4515
- @click=${() => B(this, F, Ie).call(this, "url")}
4609
+ @click=${() => B(this, X, He).call(this, "url")}
4516
4610
  class="${i ? "active" : ""}"
4517
4611
  >
4518
4612
  URL
4519
4613
  </li>
4520
4614
  <li
4521
- @click=${() => B(this, F, Ie).call(this, "json")}
4615
+ @click=${() => B(this, X, He).call(this, "json")}
4522
4616
  class="${o ? "active" : ""}"
4523
4617
  >
4524
4618
  JSON
@@ -4528,13 +4622,13 @@ class Co extends tt {
4528
4622
  <!-- Button to toggle tabs -->
4529
4623
  <button
4530
4624
  class="add-icon icon"
4531
- @click=${() => B(this, F, Ie).call(this, this.open ? null : "url")}
4625
+ @click=${() => B(this, X, He).call(this, this.open ? null : "url")}
4532
4626
  >
4533
4627
  ${this.unstyled ? "Add Layer" : ""}
4534
4628
  </button>
4535
4629
  </div>
4536
4630
  <div class="eox-add ${n}">
4537
- ${i ? E`
4631
+ ${i ? x`
4538
4632
  <!-- Input field for URL -->
4539
4633
  <div class="eox-add-layer-col">
4540
4634
  <input
@@ -4542,25 +4636,25 @@ class Co extends tt {
4542
4636
  class="add-url"
4543
4637
  placeholder="Add URL (WMS/XYZ)"
4544
4638
  .value="${this.urlInput}"
4545
- @input=${B(this, F, To)}
4639
+ @input=${B(this, X, Io)}
4546
4640
  >
4547
4641
  </input>
4548
4642
  <!-- Search button for URL -->
4549
4643
  <button
4550
4644
  class="search-icon"
4551
4645
  disabled=${r}
4552
- @click=${B(this, F, Po)}
4646
+ @click=${B(this, X, No)}
4553
4647
  >
4554
4648
  ${this.unstyled ? "Search" : ""}
4555
4649
  </button>
4556
4650
  </div>
4557
4651
 
4558
4652
  <!-- Display layers for WMS capabilities -->
4559
- ${this.wmsCapabilities ? E`<ul class="search-lists">
4653
+ ${this.wmsCapabilities ? x`<ul class="search-lists">
4560
4654
  ${this.wmsCapabilities.Capability.Layer.Layer.map(
4561
4655
  (s) => {
4562
4656
  const a = s.Name;
4563
- return E`
4657
+ return x`
4564
4658
  <li class="search-list">
4565
4659
  ${a}
4566
4660
  <!-- Button to add layer -->
@@ -4568,7 +4662,7 @@ class Co extends tt {
4568
4662
  class="add-layer-icon icon"
4569
4663
  @click=${() => (
4570
4664
  //@ts-ignore
4571
- B(this, F, Vn).call(this, s)
4665
+ B(this, X, Un).call(this, s)
4572
4666
  )}
4573
4667
  >
4574
4668
  ${this.unstyled ? "+" : ""}
@@ -4578,20 +4672,20 @@ class Co extends tt {
4578
4672
  }
4579
4673
  )}
4580
4674
  </ul>` : C}
4581
- ` : E`
4675
+ ` : x`
4582
4676
  <!-- Textarea for JSON input -->
4583
4677
  <textarea
4584
4678
  class="add-layer-input"
4585
4679
  placeholder="Please put a valid eox-map layer JSON."
4586
- @input=${B(this, F, Oo)}
4680
+ @input=${B(this, X, Lo)}
4587
4681
  .value=${this.jsonInput}
4588
4682
  ></textarea>
4589
4683
 
4590
4684
  <!-- Button to add JSON layer -->
4591
4685
  <button
4592
4686
  class="add-layer-icon json-add-layer"
4593
- disabled=${Jr(this.jsonInput) ? C : !0}
4594
- @click=${B(this, F, Do)}
4687
+ disabled=${is(this.jsonInput) ? C : !0}
4688
+ @click=${B(this, X, Ho)}
4595
4689
  >
4596
4690
  ${this.unstyled ? "Add JSON" : ""}
4597
4691
  </button>
@@ -4601,110 +4695,110 @@ class Co extends tt {
4601
4695
  `;
4602
4696
  }
4603
4697
  }
4604
- F = new WeakSet(), /**
4698
+ X = new WeakSet(), /**
4605
4699
  * Handles changes in the input field by invoking the 'urlInputChangeMethod'.
4606
4700
  * This method is triggered upon an @input change event.
4607
4701
  *
4608
4702
  * @param {Event} evt - The input change event triggering the method.
4609
4703
  */
4610
- To = function(n) {
4611
- pa(n, this);
4612
- }, Po = async function() {
4613
- const n = await fa(this);
4614
- n && B(this, F, Vn).call(this, n);
4704
+ Io = function(n) {
4705
+ La(n, this);
4706
+ }, No = async function() {
4707
+ const n = await Ba(this);
4708
+ n && B(this, X, Un).call(this, n);
4615
4709
  }, /**
4616
4710
  * Handles input field changes by triggering layer processing and adding layers.
4617
4711
  *
4618
4712
  * @param {{"Name": string}} layer - The layer information triggering the method.
4619
4713
  */
4620
- Vn = function(n) {
4621
- ga(n, this), xi(this);
4714
+ Un = function(n) {
4715
+ Va(n, this), Ti(this);
4622
4716
  }, /**
4623
4717
  * Initiates the addition of layers, triggering the handleAddLayerMethod.
4624
4718
  */
4625
- Do = function() {
4626
- xi(this);
4719
+ Ho = function() {
4720
+ Ti(this);
4627
4721
  }, /**
4628
4722
  * Handles input field changes by invoking the 'handleJsonInputChangeMethod'.
4629
4723
  *
4630
4724
  * @param {{target: { value: string }}} evt - The input change event triggering the method.
4631
4725
  */
4632
- Oo = function(n) {
4633
- ha(n, this);
4726
+ Lo = function(n) {
4727
+ Ha(n, this);
4634
4728
  }, /**
4635
4729
  * Handles tab changes by invoking the 'openCloseTabMethod'.
4636
4730
  *
4637
4731
  * @param {"url" | "json" | null} tab - The tab identifier triggering the method.
4638
4732
  */
4639
- Ie = function(n) {
4640
- ma(n, this);
4641
- }, an = new WeakMap(), ln = new WeakMap(), // Define static properties for the component
4642
- N(Co, "properties", {
4733
+ He = function(n) {
4734
+ ka(n, this);
4735
+ }, ln = new WeakMap(), un = new WeakMap(), // Define static properties for the component
4736
+ L(Mo, "properties", {
4643
4737
  eoxMap: { attribute: !1, state: !0 },
4644
4738
  unstyled: { type: Boolean },
4645
4739
  noShadow: { type: Boolean }
4646
4740
  });
4647
- customElements.define("eox-layercontrol-add-layers", Co);
4648
- const ya = (e, t) => {
4741
+ customElements.define("eox-layercontrol-add-layers", Mo);
4742
+ const Ua = (e, t) => {
4649
4743
  if (t.requestUpdate(), e.target.tagName === "EOX-LAYERCONTROL-LAYER-TOOLS") {
4650
4744
  const n = t.renderRoot.querySelector(
4651
4745
  "eox-layercontrol-optional-list"
4652
4746
  );
4653
4747
  n == null || n.requestUpdate();
4654
4748
  }
4655
- }, ba = (e) => {
4749
+ }, Fa = (e) => {
4656
4750
  let t;
4657
4751
  return typeof e == "string" ? t = /** @type {HTMLElement} */
4658
4752
  document.querySelector(e) : t = e, t;
4659
- }, Si = (e) => {
4660
- const t = ba(e.for);
4753
+ }, Pi = (e) => {
4754
+ const t = Fa(e.for);
4661
4755
  return t && t.map !== e.map && (e.map = t.map), t;
4662
4756
  };
4663
- var $t, qt, Mo, No, dn;
4664
- class Ro extends tt {
4757
+ var $t, Yt, Vo, ko, cn;
4758
+ class Bo extends it {
4665
4759
  // Constructor to set default values for properties
4666
4760
  constructor() {
4667
4761
  super();
4668
- T(this, qt);
4762
+ T(this, Yt);
4669
4763
  /**
4670
4764
  * Instance of `eox-map` which is a wrapper for the OL
4671
4765
  *
4672
4766
  * @type {import("../../map/main").EOxMap}
4673
4767
  */
4674
4768
  T(this, $t);
4675
- T(this, dn, "* { font-family: Roboto, sans-serif; }");
4676
- this.for = "eox-map", this.idProperty = "id", this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = ["info", "opacity", "datetime", "config", "remove", "sort"], this.addExternalLayers = !1, this.unstyled = !1, this.styleOverride = "", this.disableTabs = !1;
4769
+ T(this, cn, "* { font-family: Roboto, sans-serif; }");
4770
+ this.for = "eox-map", this.idProperty = "id", this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = ["info", "opacity", "datetime", "config", "remove", "sort"], this.addExternalLayers = !1, this.unstyled = !1, this.styleOverride = "", this.toolsAsList = !1;
4677
4771
  }
4678
4772
  /**
4679
4773
  * Called when the component is first updated
4680
4774
  * Updated #eoxMap after first update.
4681
4775
  */
4682
4776
  firstUpdated() {
4683
- this.eoxMap = Si(this);
4777
+ this.eoxMap = Pi(this);
4684
4778
  }
4685
4779
  updated(n) {
4686
- n.has("for") && (this.eoxMap = Si(this));
4780
+ n.has("for") && (this.eoxMap = Pi(this));
4687
4781
  }
4688
4782
  get eoxMap() {
4689
4783
  return P(this, $t);
4690
4784
  }
4691
4785
  set eoxMap(n) {
4692
4786
  const i = P(this, $t);
4693
- Kt(this, $t, n), this.requestUpdate("eoxMap", i);
4787
+ Qt(this, $t, n), this.requestUpdate("eoxMap", i);
4694
4788
  }
4695
4789
  render() {
4696
4790
  var o, r, s;
4697
- const n = (o = this.map) == null ? void 0 : o.getLayers().getArray(), i = n && ((r = Gn(n, "layerControlOptional", !0)) == null ? void 0 : r.length) > 0;
4698
- return E`
4791
+ const n = (o = this.map) == null ? void 0 : o.getLayers().getArray(), i = n && ((r = Qn(n, "layerControlOptional", !0)) == null ? void 0 : r.length) > 0;
4792
+ return x`
4699
4793
  <style>
4700
- ${!this.unstyled && P(this, dn)}
4794
+ ${!this.unstyled && P(this, cn)}
4701
4795
  ${this.styleOverride}
4702
4796
  </style>
4703
4797
 
4704
4798
  <!-- Conditional rendering of add layers component -->
4705
- ${Y(
4799
+ ${G(
4706
4800
  this.addExternalLayers && ((s = P(this, $t)) == null ? void 0 : s.addOrUpdateLayer),
4707
- () => E`
4801
+ () => x`
4708
4802
  <eox-layercontrol-add-layers
4709
4803
  .noShadow=${!0}
4710
4804
  .eoxMap=${P(this, $t)}
@@ -4714,9 +4808,9 @@ class Ro extends tt {
4714
4808
  )}
4715
4809
 
4716
4810
  <!-- Conditional rendering of layer list component -->
4717
- ${Y(
4811
+ ${G(
4718
4812
  this.map,
4719
- () => E`
4813
+ () => x`
4720
4814
  <eox-layercontrol-layer-list
4721
4815
  .noShadow=${!0}
4722
4816
  class="layers"
@@ -4727,17 +4821,17 @@ class Ro extends tt {
4727
4821
  .showLayerZoomState=${this.showLayerZoomState}
4728
4822
  .tools=${this.tools}
4729
4823
  .unstyled=${this.unstyled}
4730
- .disableTabs=${this.disableTabs}
4731
- @changed=${B(this, qt, Mo)}
4732
- @datetime:updated=${B(this, qt, No)}
4824
+ .toolsAsList=${this.toolsAsList}
4825
+ @changed=${B(this, Yt, Vo)}
4826
+ @datetime:updated=${B(this, Yt, ko)}
4733
4827
  ></eox-layercontrol-layer-list>
4734
4828
  `
4735
4829
  )}
4736
4830
 
4737
4831
  <!-- Conditional rendering of optional list component -->
4738
- ${Y(
4832
+ ${G(
4739
4833
  i,
4740
- () => E`
4834
+ () => x`
4741
4835
  <eox-layercontrol-optional-list
4742
4836
  .noShadow=${!0}
4743
4837
  .idProperty=${this.idProperty}
@@ -4750,23 +4844,23 @@ class Ro extends tt {
4750
4844
  `;
4751
4845
  }
4752
4846
  }
4753
- $t = new WeakMap(), qt = new WeakSet(), /**
4847
+ $t = new WeakMap(), Yt = new WeakSet(), /**
4754
4848
  * Event handler for changes in the layer list
4755
4849
  *
4756
4850
  * @param {CustomEvent & {target: Element}} evt
4757
4851
  */
4758
- Mo = function(n) {
4759
- ya(n, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: n.detail }));
4852
+ Vo = function(n) {
4853
+ Ua(n, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: n.detail }));
4760
4854
  }, /**
4761
4855
  * Dispatches datetime updates from layer datetime to the layercontrol
4762
4856
  * @param {CustomEvent} evt
4763
4857
  */
4764
- No = function(n) {
4858
+ ko = function(n) {
4765
4859
  this.dispatchEvent(
4766
4860
  new CustomEvent("datetime:updated", { detail: n.detail })
4767
4861
  );
4768
- }, dn = new WeakMap(), // Define static properties for the component
4769
- N(Ro, "properties", {
4862
+ }, cn = new WeakMap(), // Define static properties for the component
4863
+ L(Bo, "properties", {
4770
4864
  for: { type: String },
4771
4865
  idProperty: { attribute: "id-property" },
4772
4866
  map: { attribute: !1, state: !0 },
@@ -4776,9 +4870,9 @@ N(Ro, "properties", {
4776
4870
  addExternalLayers: { attribute: !1 },
4777
4871
  unstyled: { type: Boolean },
4778
4872
  styleOverride: { type: String },
4779
- disableTabs: { type: Boolean }
4873
+ toolsAsList: { type: Boolean }
4780
4874
  });
4781
- customElements.define("eox-layercontrol", Ro);
4875
+ customElements.define("eox-layercontrol", Bo);
4782
4876
  export {
4783
- Ro as EOxLayerControl
4877
+ Bo as EOxLayerControl
4784
4878
  };