@eox/layercontrol 0.27.1 → 0.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- var Qo = Object.defineProperty;
1
+ var Kr = Object.defineProperty;
2
2
  var yn = (i) => {
3
3
  throw TypeError(i);
4
4
  };
5
- var tr = (i, t, e) => t in i ? Qo(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
6
- var F = (i, t, e) => tr(i, typeof t != "symbol" ? t + "" : t, e), Ci = (i, t, e) => t.has(i) || yn("Cannot " + e);
5
+ var Qr = (i, t, e) => t in i ? Kr(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
6
+ var F = (i, t, e) => Qr(i, typeof t != "symbol" ? t + "" : t, e), Ci = (i, t, e) => t.has(i) || yn("Cannot " + e);
7
7
  var T = (i, t, e) => (Ci(i, t, "read from private field"), e ? e.call(i) : t.get(i)), P = (i, t, e) => t.has(i) ? yn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), Qt = (i, t, e, n) => (Ci(i, t, "write to private field"), n ? n.call(i, e) : t.set(i, e), e), j = (i, t, e) => (Ci(i, t, "access private method"), e);
8
8
  /**
9
9
  * @license
@@ -29,33 +29,33 @@ let Zn = class {
29
29
  return this.cssText;
30
30
  }
31
31
  };
32
- const er = (i) => new Zn(typeof i == "string" ? i : i + "", void 0, en), qn = (i, ...t) => {
33
- const e = i.length === 1 ? i[0] : t.reduce((n, o, r) => n + ((s) => {
32
+ const to = (i) => new Zn(typeof i == "string" ? i : i + "", void 0, en), qn = (i, ...t) => {
33
+ const e = i.length === 1 ? i[0] : t.reduce((n, r, o) => n + ((s) => {
34
34
  if (s._$cssResult$ === !0) return s.cssText;
35
35
  if (typeof s == "number") return s;
36
36
  throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
37
- })(o) + i[r + 1], i[0]);
37
+ })(r) + i[o + 1], i[0]);
38
38
  return new Zn(e, i, en);
39
- }, ir = (i, t) => {
39
+ }, eo = (i, t) => {
40
40
  if (tn) i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
41
41
  else for (const e of t) {
42
- const n = document.createElement("style"), o = Fe.litNonce;
43
- o !== void 0 && n.setAttribute("nonce", o), n.textContent = e.cssText, i.appendChild(n);
42
+ const n = document.createElement("style"), r = Fe.litNonce;
43
+ r !== void 0 && n.setAttribute("nonce", r), n.textContent = e.cssText, i.appendChild(n);
44
44
  }
45
45
  }, vn = tn ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
46
46
  let e = "";
47
47
  for (const n of t.cssRules) e += n.cssText;
48
- return er(e);
48
+ return to(e);
49
49
  })(i) : i;
50
50
  /**
51
51
  * @license
52
52
  * Copyright 2017 Google LLC
53
53
  * SPDX-License-Identifier: BSD-3-Clause
54
54
  */
55
- const { is: nr, defineProperty: or, getOwnPropertyDescriptor: rr, getOwnPropertyNames: sr, getOwnPropertySymbols: ar, getPrototypeOf: lr } = Object, kt = globalThis, wn = kt.trustedTypes, dr = wn ? wn.emptyScript : "", Ti = kt.reactiveElementPolyfillSupport, be = (i, t) => i, qi = { toAttribute(i, t) {
55
+ const { is: io, defineProperty: no, getOwnPropertyDescriptor: ro, getOwnPropertyNames: oo, getOwnPropertySymbols: so, getPrototypeOf: ao } = Object, Bt = globalThis, wn = Bt.trustedTypes, lo = wn ? wn.emptyScript : "", Ti = Bt.reactiveElementPolyfillSupport, be = (i, t) => i, qi = { toAttribute(i, t) {
56
56
  switch (t) {
57
57
  case Boolean:
58
- i = i ? dr : null;
58
+ i = i ? lo : null;
59
59
  break;
60
60
  case Object:
61
61
  case Array:
@@ -80,8 +80,8 @@ const { is: nr, defineProperty: or, getOwnPropertyDescriptor: rr, getOwnProperty
80
80
  }
81
81
  }
82
82
  return e;
83
- } }, Xn = (i, t) => !nr(i, t), xn = { attribute: !0, type: String, converter: qi, reflect: !1, hasChanged: Xn };
84
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), kt.litPropertyMetadata ?? (kt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
83
+ } }, Xn = (i, t) => !io(i, t), xn = { attribute: !0, type: String, converter: qi, reflect: !1, hasChanged: Xn };
84
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Bt.litPropertyMetadata ?? (Bt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
85
85
  class ie extends HTMLElement {
86
86
  static addInitializer(t) {
87
87
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
@@ -91,21 +91,21 @@ class ie extends HTMLElement {
91
91
  }
92
92
  static createProperty(t, e = xn) {
93
93
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
94
- const n = Symbol(), o = this.getPropertyDescriptor(t, n, e);
95
- o !== void 0 && or(this.prototype, t, o);
94
+ const n = Symbol(), r = this.getPropertyDescriptor(t, n, e);
95
+ r !== void 0 && no(this.prototype, t, r);
96
96
  }
97
97
  }
98
98
  static getPropertyDescriptor(t, e, n) {
99
- const { get: o, set: r } = rr(this.prototype, t) ?? { get() {
99
+ const { get: r, set: o } = ro(this.prototype, t) ?? { get() {
100
100
  return this[e];
101
101
  }, set(s) {
102
102
  this[e] = s;
103
103
  } };
104
104
  return { get() {
105
- return o == null ? void 0 : o.call(this);
105
+ return r == null ? void 0 : r.call(this);
106
106
  }, set(s) {
107
- const a = o == null ? void 0 : o.call(this);
108
- r.call(this, s), this.requestUpdate(t, a, n);
107
+ const a = r == null ? void 0 : r.call(this);
108
+ o.call(this, s), this.requestUpdate(t, a, n);
109
109
  }, configurable: !0, enumerable: !0 };
110
110
  }
111
111
  static getPropertyOptions(t) {
@@ -113,24 +113,24 @@ class ie extends HTMLElement {
113
113
  }
114
114
  static _$Ei() {
115
115
  if (this.hasOwnProperty(be("elementProperties"))) return;
116
- const t = lr(this);
116
+ const t = ao(this);
117
117
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
118
118
  }
119
119
  static finalize() {
120
120
  if (this.hasOwnProperty(be("finalized"))) return;
121
121
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(be("properties"))) {
122
- const e = this.properties, n = [...sr(e), ...ar(e)];
123
- for (const o of n) this.createProperty(o, e[o]);
122
+ const e = this.properties, n = [...oo(e), ...so(e)];
123
+ for (const r of n) this.createProperty(r, e[r]);
124
124
  }
125
125
  const t = this[Symbol.metadata];
126
126
  if (t !== null) {
127
127
  const e = litPropertyMetadata.get(t);
128
- if (e !== void 0) for (const [n, o] of e) this.elementProperties.set(n, o);
128
+ if (e !== void 0) for (const [n, r] of e) this.elementProperties.set(n, r);
129
129
  }
130
130
  this._$Eh = /* @__PURE__ */ new Map();
131
131
  for (const [e, n] of this.elementProperties) {
132
- const o = this._$Eu(e, n);
133
- o !== void 0 && this._$Eh.set(o, e);
132
+ const r = this._$Eu(e, n);
133
+ r !== void 0 && this._$Eh.set(r, e);
134
134
  }
135
135
  this.elementStyles = this.finalizeStyles(this.styles);
136
136
  }
@@ -138,7 +138,7 @@ class ie extends HTMLElement {
138
138
  const e = [];
139
139
  if (Array.isArray(t)) {
140
140
  const n = new Set(t.flat(1 / 0).reverse());
141
- for (const o of n) e.unshift(vn(o));
141
+ for (const r of n) e.unshift(vn(r));
142
142
  } else t !== void 0 && e.push(vn(t));
143
143
  return e;
144
144
  }
@@ -168,7 +168,7 @@ class ie extends HTMLElement {
168
168
  }
169
169
  createRenderRoot() {
170
170
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
171
- return ir(t, this.constructor.elementStyles), t;
171
+ return eo(t, this.constructor.elementStyles), t;
172
172
  }
173
173
  connectedCallback() {
174
174
  var t;
@@ -190,19 +190,19 @@ class ie extends HTMLElement {
190
190
  this._$AK(t, n);
191
191
  }
192
192
  _$EC(t, e) {
193
- var r;
194
- const n = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, n);
195
- if (o !== void 0 && n.reflect === !0) {
196
- const s = (((r = n.converter) == null ? void 0 : r.toAttribute) !== void 0 ? n.converter : qi).toAttribute(e, n.type);
197
- this._$Em = t, s == null ? this.removeAttribute(o) : this.setAttribute(o, s), this._$Em = null;
193
+ var o;
194
+ const n = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, n);
195
+ if (r !== void 0 && n.reflect === !0) {
196
+ const s = (((o = n.converter) == null ? void 0 : o.toAttribute) !== void 0 ? n.converter : qi).toAttribute(e, n.type);
197
+ this._$Em = t, s == null ? this.removeAttribute(r) : this.setAttribute(r, s), this._$Em = null;
198
198
  }
199
199
  }
200
200
  _$AK(t, e) {
201
- var r;
202
- const n = this.constructor, o = n._$Eh.get(t);
203
- if (o !== void 0 && this._$Em !== o) {
204
- const s = n.getPropertyOptions(o), a = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((r = s.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? s.converter : qi;
205
- this._$Em = o, this[o] = a.fromAttribute(e, s.type), this._$Em = null;
201
+ var o;
202
+ const n = this.constructor, r = n._$Eh.get(t);
203
+ if (r !== void 0 && this._$Em !== r) {
204
+ const s = n.getPropertyOptions(r), a = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((o = s.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? s.converter : qi;
205
+ this._$Em = r, this[r] = a.fromAttribute(e, s.type), this._$Em = null;
206
206
  }
207
207
  }
208
208
  requestUpdate(t, e, n) {
@@ -233,21 +233,21 @@ class ie extends HTMLElement {
233
233
  if (!this.isUpdatePending) return;
234
234
  if (!this.hasUpdated) {
235
235
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
236
- for (const [r, s] of this._$Ep) this[r] = s;
236
+ for (const [o, s] of this._$Ep) this[o] = s;
237
237
  this._$Ep = void 0;
238
238
  }
239
- const o = this.constructor.elementProperties;
240
- if (o.size > 0) for (const [r, s] of o) s.wrapped !== !0 || this._$AL.has(r) || this[r] === void 0 || this.P(r, this[r], s);
239
+ const r = this.constructor.elementProperties;
240
+ if (r.size > 0) for (const [o, s] of r) s.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], s);
241
241
  }
242
242
  let t = !1;
243
243
  const e = this._$AL;
244
244
  try {
245
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), (n = this._$EO) == null || n.forEach((o) => {
246
- var r;
247
- return (r = o.hostUpdate) == null ? void 0 : r.call(o);
245
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (n = this._$EO) == null || n.forEach((r) => {
246
+ var o;
247
+ return (o = r.hostUpdate) == null ? void 0 : o.call(r);
248
248
  }), this.update(e)) : this._$EU();
249
- } catch (o) {
250
- throw t = !1, this._$EU(), o;
249
+ } catch (r) {
250
+ throw t = !1, this._$EU(), r;
251
251
  }
252
252
  t && this._$AE(e);
253
253
  }
@@ -256,8 +256,8 @@ class ie extends HTMLElement {
256
256
  _$AE(t) {
257
257
  var e;
258
258
  (e = this._$EO) == null || e.forEach((n) => {
259
- var o;
260
- return (o = n.hostUpdated) == null ? void 0 : o.call(n);
259
+ var r;
260
+ return (r = n.hostUpdated) == null ? void 0 : r.call(n);
261
261
  }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
262
262
  }
263
263
  _$EU() {
@@ -280,61 +280,61 @@ class ie extends HTMLElement {
280
280
  firstUpdated(t) {
281
281
  }
282
282
  }
283
- ie.elementStyles = [], ie.shadowRootOptions = { mode: "open" }, ie[be("elementProperties")] = /* @__PURE__ */ new Map(), ie[be("finalized")] = /* @__PURE__ */ new Map(), Ti == null || Ti({ ReactiveElement: ie }), (kt.reactiveElementVersions ?? (kt.reactiveElementVersions = [])).push("2.0.4");
283
+ ie.elementStyles = [], ie.shadowRootOptions = { mode: "open" }, ie[be("elementProperties")] = /* @__PURE__ */ new Map(), ie[be("finalized")] = /* @__PURE__ */ new Map(), Ti == null || Ti({ ReactiveElement: ie }), (Bt.reactiveElementVersions ?? (Bt.reactiveElementVersions = [])).push("2.0.4");
284
284
  /**
285
285
  * @license
286
286
  * Copyright 2017 Google LLC
287
287
  * SPDX-License-Identifier: BSD-3-Clause
288
288
  */
289
- const ve = globalThis, Ge = ve.trustedTypes, En = Ge ? Ge.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, nn = "$lit$", Ct = `lit$${Math.random().toFixed(9).slice(2)}$`, on = "?" + Ct, ur = `<${on}>`, Jt = document, _e = () => Jt.createComment(""), Ae = (i) => i === null || typeof i != "object" && typeof i != "function", rn = Array.isArray, Yn = (i) => rn(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Di = `[
289
+ const ve = globalThis, Ge = ve.trustedTypes, En = Ge ? Ge.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, nn = "$lit$", Ct = `lit$${Math.random().toFixed(9).slice(2)}$`, rn = "?" + Ct, co = `<${rn}>`, Jt = document, Ae = () => Jt.createComment(""), _e = (i) => i === null || typeof i != "object" && typeof i != "function", on = Array.isArray, Yn = (i) => on(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Di = `[
290
290
  \f\r]`, pe = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $n = /-->/g, Sn = />/g, zt = RegExp(`>|${Di}(?:([^\\s"'>=/]+)(${Di}*=${Di}*(?:[^
291
- \f\r"'\`<>=]|("|')|))|$)`, "g"), _n = /'/g, An = /"/g, Wn = /^(?:script|style|textarea|title)$/i, cr = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), x = cr(1), vt = Symbol.for("lit-noChange"), O = Symbol.for("lit-nothing"), Cn = /* @__PURE__ */ new WeakMap(), Wt = Jt.createTreeWalker(Jt, 129);
291
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), An = /'/g, _n = /"/g, Wn = /^(?:script|style|textarea|title)$/i, uo = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), x = uo(1), vt = Symbol.for("lit-noChange"), O = Symbol.for("lit-nothing"), Cn = /* @__PURE__ */ new WeakMap(), Wt = Jt.createTreeWalker(Jt, 129);
292
292
  function Gn(i, t) {
293
- if (!rn(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
293
+ if (!on(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
294
294
  return En !== void 0 ? En.createHTML(t) : t;
295
295
  }
296
296
  const Jn = (i, t) => {
297
297
  const e = i.length - 1, n = [];
298
- let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = pe;
298
+ let r, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = pe;
299
299
  for (let a = 0; a < e; a++) {
300
300
  const l = i[a];
301
- let d, c, u = -1, p = 0;
302
- for (; p < l.length && (s.lastIndex = p, c = s.exec(l), c !== null); ) p = s.lastIndex, s === pe ? c[1] === "!--" ? s = $n : c[1] !== void 0 ? s = Sn : c[2] !== void 0 ? (Wn.test(c[2]) && (o = RegExp("</" + c[2], "g")), s = zt) : c[3] !== void 0 && (s = zt) : s === zt ? c[0] === ">" ? (s = o ?? pe, u = -1) : c[1] === void 0 ? u = -2 : (u = s.lastIndex - c[2].length, d = c[1], s = c[3] === void 0 ? zt : c[3] === '"' ? An : _n) : s === An || s === _n ? s = zt : s === $n || s === Sn ? s = pe : (s = zt, o = void 0);
301
+ let d, u, c = -1, p = 0;
302
+ for (; p < l.length && (s.lastIndex = p, u = s.exec(l), u !== null); ) p = s.lastIndex, s === pe ? u[1] === "!--" ? s = $n : u[1] !== void 0 ? s = Sn : u[2] !== void 0 ? (Wn.test(u[2]) && (r = RegExp("</" + u[2], "g")), s = zt) : u[3] !== void 0 && (s = zt) : s === zt ? u[0] === ">" ? (s = r ?? pe, c = -1) : u[1] === void 0 ? c = -2 : (c = s.lastIndex - u[2].length, d = u[1], s = u[3] === void 0 ? zt : u[3] === '"' ? _n : An) : s === _n || s === An ? s = zt : s === $n || s === Sn ? s = pe : (s = zt, r = void 0);
303
303
  const f = s === zt && i[a + 1].startsWith("/>") ? " " : "";
304
- r += s === pe ? l + ur : u >= 0 ? (n.push(d), l.slice(0, u) + nn + l.slice(u) + Ct + f) : l + Ct + (u === -2 ? a : f);
304
+ o += s === pe ? l + co : c >= 0 ? (n.push(d), l.slice(0, c) + nn + l.slice(c) + Ct + f) : l + Ct + (c === -2 ? a : f);
305
305
  }
306
- return [Gn(i, r + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
306
+ return [Gn(i, o + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
307
307
  };
308
308
  class Ce {
309
309
  constructor({ strings: t, _$litType$: e }, n) {
310
- let o;
310
+ let r;
311
311
  this.parts = [];
312
- let r = 0, s = 0;
313
- const a = t.length - 1, l = this.parts, [d, c] = Jn(t, e);
312
+ let o = 0, s = 0;
313
+ const a = t.length - 1, l = this.parts, [d, u] = Jn(t, e);
314
314
  if (this.el = Ce.createElement(d, n), Wt.currentNode = this.el.content, e === 2 || e === 3) {
315
- const u = this.el.content.firstChild;
316
- u.replaceWith(...u.childNodes);
317
- }
318
- for (; (o = Wt.nextNode()) !== null && l.length < a; ) {
319
- if (o.nodeType === 1) {
320
- if (o.hasAttributes()) for (const u of o.getAttributeNames()) if (u.endsWith(nn)) {
321
- const p = c[s++], f = o.getAttribute(u).split(Ct), g = /([.?@])?(.*)/.exec(p);
322
- l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Qn : g[1] === "?" ? to : g[1] === "@" ? eo : Le }), o.removeAttribute(u);
323
- } else u.startsWith(Ct) && (l.push({ type: 6, index: r }), o.removeAttribute(u));
324
- if (Wn.test(o.tagName)) {
325
- const u = o.textContent.split(Ct), p = u.length - 1;
315
+ const c = this.el.content.firstChild;
316
+ c.replaceWith(...c.childNodes);
317
+ }
318
+ for (; (r = Wt.nextNode()) !== null && l.length < a; ) {
319
+ if (r.nodeType === 1) {
320
+ if (r.hasAttributes()) for (const c of r.getAttributeNames()) if (c.endsWith(nn)) {
321
+ const p = u[s++], f = r.getAttribute(c).split(Ct), g = /([.?@])?(.*)/.exec(p);
322
+ l.push({ type: 1, index: o, name: g[2], strings: f, ctor: g[1] === "." ? Qn : g[1] === "?" ? tr : g[1] === "@" ? er : Le }), r.removeAttribute(c);
323
+ } else c.startsWith(Ct) && (l.push({ type: 6, index: o }), r.removeAttribute(c));
324
+ if (Wn.test(r.tagName)) {
325
+ const c = r.textContent.split(Ct), p = c.length - 1;
326
326
  if (p > 0) {
327
- o.textContent = Ge ? Ge.emptyScript : "";
328
- for (let f = 0; f < p; f++) o.append(u[f], _e()), Wt.nextNode(), l.push({ type: 2, index: ++r });
329
- o.append(u[p], _e());
327
+ r.textContent = Ge ? Ge.emptyScript : "";
328
+ for (let f = 0; f < p; f++) r.append(c[f], Ae()), Wt.nextNode(), l.push({ type: 2, index: ++o });
329
+ r.append(c[p], Ae());
330
330
  }
331
331
  }
332
- } else if (o.nodeType === 8) if (o.data === on) l.push({ type: 2, index: r });
332
+ } else if (r.nodeType === 8) if (r.data === rn) l.push({ type: 2, index: o });
333
333
  else {
334
- let u = -1;
335
- for (; (u = o.data.indexOf(Ct, u + 1)) !== -1; ) l.push({ type: 7, index: r }), u += Ct.length - 1;
334
+ let c = -1;
335
+ for (; (c = r.data.indexOf(Ct, c + 1)) !== -1; ) l.push({ type: 7, index: o }), c += Ct.length - 1;
336
336
  }
337
- r++;
337
+ o++;
338
338
  }
339
339
  }
340
340
  static createElement(t, e) {
@@ -345,9 +345,9 @@ class Ce {
345
345
  function Kt(i, t, e = i, n) {
346
346
  var s, a;
347
347
  if (t === vt) return t;
348
- let o = n !== void 0 ? (s = e._$Co) == null ? void 0 : s[n] : e._$Cl;
349
- const r = Ae(t) ? void 0 : t._$litDirective$;
350
- 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(i), o._$AT(i, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = o : e._$Cl = o), o !== void 0 && (t = Kt(i, o._$AS(i, t.values), o, n)), t;
348
+ let r = n !== void 0 ? (s = e._$Co) == null ? void 0 : s[n] : e._$Cl;
349
+ const o = _e(t) ? void 0 : t._$litDirective$;
350
+ return (r == null ? void 0 : r.constructor) !== o && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), o === void 0 ? r = void 0 : (r = new o(i), r._$AT(i, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = r : e._$Cl = r), r !== void 0 && (t = Kt(i, r._$AS(i, t.values), r, n)), t;
351
351
  }
352
352
  let Kn = class {
353
353
  constructor(t, e) {
@@ -360,30 +360,30 @@ let Kn = class {
360
360
  return this._$AM._$AU;
361
361
  }
362
362
  u(t) {
363
- const { el: { content: e }, parts: n } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? Jt).importNode(e, !0);
364
- Wt.currentNode = o;
365
- let r = Wt.nextNode(), s = 0, a = 0, l = n[0];
363
+ const { el: { content: e }, parts: n } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? Jt).importNode(e, !0);
364
+ Wt.currentNode = r;
365
+ let o = Wt.nextNode(), s = 0, a = 0, l = n[0];
366
366
  for (; l !== void 0; ) {
367
367
  if (s === l.index) {
368
368
  let d;
369
- l.type === 2 ? d = new ce(r, r.nextSibling, this, t) : l.type === 1 ? d = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (d = new io(r, this, t)), this._$AV.push(d), l = n[++a];
369
+ l.type === 2 ? d = new ue(o, o.nextSibling, this, t) : l.type === 1 ? d = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (d = new ir(o, this, t)), this._$AV.push(d), l = n[++a];
370
370
  }
371
- s !== (l == null ? void 0 : l.index) && (r = Wt.nextNode(), s++);
371
+ s !== (l == null ? void 0 : l.index) && (o = Wt.nextNode(), s++);
372
372
  }
373
- return Wt.currentNode = Jt, o;
373
+ return Wt.currentNode = Jt, r;
374
374
  }
375
375
  p(t) {
376
376
  let e = 0;
377
377
  for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, e), e += n.strings.length - 2) : n._$AI(t[e])), e++;
378
378
  }
379
379
  };
380
- class ce {
380
+ class ue {
381
381
  get _$AU() {
382
382
  var t;
383
383
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
384
384
  }
385
- constructor(t, e, n, o) {
386
- this.type = 2, this._$AH = O, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = o, this._$Cv = (o == null ? void 0 : o.isConnected) ?? !0;
385
+ constructor(t, e, n, r) {
386
+ this.type = 2, this._$AH = O, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
387
387
  }
388
388
  get parentNode() {
389
389
  let t = this._$AA.parentNode;
@@ -397,7 +397,7 @@ class ce {
397
397
  return this._$AB;
398
398
  }
399
399
  _$AI(t, e = this) {
400
- t = Kt(this, t, e), Ae(t) ? t === O || t == null || t === "" ? (this._$AH !== O && this._$AR(), this._$AH = O) : t !== this._$AH && t !== vt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Yn(t) ? this.k(t) : this._(t);
400
+ t = Kt(this, t, e), _e(t) ? t === O || t == null || t === "" ? (this._$AH !== O && this._$AR(), this._$AH = O) : t !== this._$AH && t !== vt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Yn(t) ? this.k(t) : this._(t);
401
401
  }
402
402
  O(t) {
403
403
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -406,14 +406,14 @@ class ce {
406
406
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
407
407
  }
408
408
  _(t) {
409
- this._$AH !== O && Ae(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Jt.createTextNode(t)), this._$AH = t;
409
+ this._$AH !== O && _e(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Jt.createTextNode(t)), this._$AH = t;
410
410
  }
411
411
  $(t) {
412
- var r;
413
- const { values: e, _$litType$: n } = t, o = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = Ce.createElement(Gn(n.h, n.h[0]), this.options)), n);
414
- if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(e);
412
+ var o;
413
+ const { values: e, _$litType$: n } = t, r = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = Ce.createElement(Gn(n.h, n.h[0]), this.options)), n);
414
+ if (((o = this._$AH) == null ? void 0 : o._$AD) === r) this._$AH.p(e);
415
415
  else {
416
- const s = new Kn(o, this), a = s.u(this.options);
416
+ const s = new Kn(r, this), a = s.u(this.options);
417
417
  s.p(e), this.T(a), this._$AH = s;
418
418
  }
419
419
  }
@@ -422,17 +422,17 @@ class ce {
422
422
  return e === void 0 && Cn.set(t.strings, e = new Ce(t)), e;
423
423
  }
424
424
  k(t) {
425
- rn(this._$AH) || (this._$AH = [], this._$AR());
425
+ on(this._$AH) || (this._$AH = [], this._$AR());
426
426
  const e = this._$AH;
427
- let n, o = 0;
428
- for (const r of t) o === e.length ? e.push(n = new ce(this.O(_e()), this.O(_e()), this, this.options)) : n = e[o], n._$AI(r), o++;
429
- o < e.length && (this._$AR(n && n._$AB.nextSibling, o), e.length = o);
427
+ let n, r = 0;
428
+ for (const o of t) r === e.length ? e.push(n = new ue(this.O(Ae()), this.O(Ae()), this, this.options)) : n = e[r], n._$AI(o), r++;
429
+ r < e.length && (this._$AR(n && n._$AB.nextSibling, r), e.length = r);
430
430
  }
431
431
  _$AR(t = this._$AA.nextSibling, e) {
432
432
  var n;
433
433
  for ((n = this._$AP) == null ? void 0 : n.call(this, !1, !0, e); t && t !== this._$AB; ) {
434
- const o = t.nextSibling;
435
- t.remove(), t = o;
434
+ const r = t.nextSibling;
435
+ t.remove(), t = r;
436
436
  }
437
437
  }
438
438
  setConnected(t) {
@@ -447,19 +447,19 @@ class Le {
447
447
  get _$AU() {
448
448
  return this._$AM._$AU;
449
449
  }
450
- constructor(t, e, n, o, r) {
451
- this.type = 1, this._$AH = O, this._$AN = void 0, this.element = t, this.name = e, this._$AM = o, this.options = r, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = O;
450
+ constructor(t, e, n, r, o) {
451
+ this.type = 1, this._$AH = O, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = o, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = O;
452
452
  }
453
- _$AI(t, e = this, n, o) {
454
- const r = this.strings;
453
+ _$AI(t, e = this, n, r) {
454
+ const o = this.strings;
455
455
  let s = !1;
456
- if (r === void 0) t = Kt(this, t, e, 0), s = !Ae(t) || t !== this._$AH && t !== vt, s && (this._$AH = t);
456
+ if (o === void 0) t = Kt(this, t, e, 0), s = !_e(t) || t !== this._$AH && t !== vt, s && (this._$AH = t);
457
457
  else {
458
458
  const a = t;
459
459
  let l, d;
460
- for (t = r[0], l = 0; l < r.length - 1; l++) d = Kt(this, a[n + l], e, l), d === vt && (d = this._$AH[l]), s || (s = !Ae(d) || d !== this._$AH[l]), d === O ? t = O : t !== O && (t += (d ?? "") + r[l + 1]), this._$AH[l] = d;
460
+ for (t = o[0], l = 0; l < o.length - 1; l++) d = Kt(this, a[n + l], e, l), d === vt && (d = this._$AH[l]), s || (s = !_e(d) || d !== this._$AH[l]), d === O ? t = O : t !== O && (t += (d ?? "") + o[l + 1]), this._$AH[l] = d;
461
461
  }
462
- s && !o && this.j(t);
462
+ s && !r && this.j(t);
463
463
  }
464
464
  j(t) {
465
465
  t === O ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
@@ -473,7 +473,7 @@ class Qn extends Le {
473
473
  this.element[this.name] = t === O ? void 0 : t;
474
474
  }
475
475
  }
476
- class to extends Le {
476
+ class tr extends Le {
477
477
  constructor() {
478
478
  super(...arguments), this.type = 4;
479
479
  }
@@ -481,21 +481,21 @@ class to extends Le {
481
481
  this.element.toggleAttribute(this.name, !!t && t !== O);
482
482
  }
483
483
  }
484
- class eo extends Le {
485
- constructor(t, e, n, o, r) {
486
- super(t, e, n, o, r), this.type = 5;
484
+ class er extends Le {
485
+ constructor(t, e, n, r, o) {
486
+ super(t, e, n, r, o), this.type = 5;
487
487
  }
488
488
  _$AI(t, e = this) {
489
489
  if ((t = Kt(this, t, e, 0) ?? O) === vt) return;
490
- const n = this._$AH, o = t === O && n !== O || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, r = t !== O && (n === O || o);
491
- o && this.element.removeEventListener(this.name, this, n), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
490
+ const n = this._$AH, r = t === O && n !== O || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, o = t !== O && (n === O || r);
491
+ r && this.element.removeEventListener(this.name, this, n), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
492
492
  }
493
493
  handleEvent(t) {
494
494
  var e;
495
495
  typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
496
496
  }
497
497
  }
498
- class io {
498
+ class ir {
499
499
  constructor(t, e, n) {
500
500
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = n;
501
501
  }
@@ -506,16 +506,16 @@ class io {
506
506
  Kt(this, t);
507
507
  }
508
508
  }
509
- const hr = { M: nn, P: Ct, A: on, C: 1, L: Jn, R: Kn, D: Yn, V: Kt, I: ce, H: Le, N: to, U: eo, B: Qn, F: io }, Pi = ve.litHtmlPolyfillSupport;
510
- Pi == null || Pi(Ce, ce), (ve.litHtmlVersions ?? (ve.litHtmlVersions = [])).push("3.2.1");
511
- const pr = (i, t, e) => {
509
+ const ho = { M: nn, P: Ct, A: rn, C: 1, L: Jn, R: Kn, D: Yn, V: Kt, I: ue, H: Le, N: tr, U: er, B: Qn, F: ir }, Pi = ve.litHtmlPolyfillSupport;
510
+ Pi == null || Pi(Ce, ue), (ve.litHtmlVersions ?? (ve.litHtmlVersions = [])).push("3.2.1");
511
+ const po = (i, t, e) => {
512
512
  const n = (e == null ? void 0 : e.renderBefore) ?? t;
513
- let o = n._$litPart$;
514
- if (o === void 0) {
515
- const r = (e == null ? void 0 : e.renderBefore) ?? null;
516
- n._$litPart$ = o = new ce(t.insertBefore(_e(), r), r, void 0, e ?? {});
513
+ let r = n._$litPart$;
514
+ if (r === void 0) {
515
+ const o = (e == null ? void 0 : e.renderBefore) ?? null;
516
+ n._$litPart$ = r = new ue(t.insertBefore(Ae(), o), o, void 0, e ?? {});
517
517
  }
518
- return o._$AI(i), o;
518
+ return r._$AI(i), r;
519
519
  };
520
520
  /**
521
521
  * @license
@@ -533,7 +533,7 @@ let lt = class extends ie {
533
533
  }
534
534
  update(t) {
535
535
  const e = this.render();
536
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = pr(e, this.renderRoot, this.renderOptions);
536
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = po(e, this.renderRoot, this.renderOptions);
537
537
  }
538
538
  connectedCallback() {
539
539
  var t;
@@ -587,35 +587,35 @@ class an {
587
587
  * Copyright 2020 Google LLC
588
588
  * SPDX-License-Identifier: BSD-3-Clause
589
589
  */
590
- const { I: fr } = hr, gr = (i) => i.strings === void 0, Tn = () => document.createComment(""), fe = (i, t, e) => {
591
- var r;
592
- const n = i._$AA.parentNode, o = t === void 0 ? i._$AB : t._$AA;
590
+ const { I: fo } = ho, go = (i) => i.strings === void 0, Tn = () => document.createComment(""), fe = (i, t, e) => {
591
+ var o;
592
+ const n = i._$AA.parentNode, r = t === void 0 ? i._$AB : t._$AA;
593
593
  if (e === void 0) {
594
- const s = n.insertBefore(Tn(), o), a = n.insertBefore(Tn(), o);
595
- e = new fr(s, a, i, i.options);
594
+ const s = n.insertBefore(Tn(), r), a = n.insertBefore(Tn(), r);
595
+ e = new fo(s, a, i, i.options);
596
596
  } else {
597
597
  const s = e._$AB.nextSibling, a = e._$AM, l = a !== i;
598
598
  if (l) {
599
599
  let d;
600
- (r = e._$AQ) == null || r.call(e, i), e._$AM = i, e._$AP !== void 0 && (d = i._$AU) !== a._$AU && e._$AP(d);
600
+ (o = e._$AQ) == null || o.call(e, i), e._$AM = i, e._$AP !== void 0 && (d = i._$AU) !== a._$AU && e._$AP(d);
601
601
  }
602
- if (s !== o || l) {
602
+ if (s !== r || l) {
603
603
  let d = e._$AA;
604
604
  for (; d !== s; ) {
605
- const c = d.nextSibling;
606
- n.insertBefore(d, o), d = c;
605
+ const u = d.nextSibling;
606
+ n.insertBefore(d, r), d = u;
607
607
  }
608
608
  }
609
609
  }
610
610
  return e;
611
- }, Zt = (i, t, e = i) => (i._$AI(t, e), i), mr = {}, no = (i, t = mr) => i._$AH = t, yr = (i) => i._$AH, Li = (i) => {
611
+ }, Zt = (i, t, e = i) => (i._$AI(t, e), i), mo = {}, nr = (i, t = mo) => i._$AH = t, yo = (i) => i._$AH, Li = (i) => {
612
612
  var n;
613
613
  (n = i._$AP) == null || n.call(i, !1, !0);
614
614
  let t = i._$AA;
615
615
  const e = i._$AB.nextSibling;
616
616
  for (; t !== e; ) {
617
- const o = t.nextSibling;
618
- t.remove(), t = o;
617
+ const r = t.nextSibling;
618
+ t.remove(), t = r;
619
619
  }
620
620
  };
621
621
  /**
@@ -625,52 +625,52 @@ const { I: fr } = hr, gr = (i) => i.strings === void 0, Tn = () => document.crea
625
625
  */
626
626
  const Dn = (i, t, e) => {
627
627
  const n = /* @__PURE__ */ new Map();
628
- for (let o = t; o <= e; o++) n.set(i[o], o);
628
+ for (let r = t; r <= e; r++) n.set(i[r], r);
629
629
  return n;
630
- }, br = sn(class extends an {
630
+ }, bo = sn(class extends an {
631
631
  constructor(i) {
632
632
  if (super(i), i.type !== Mt.CHILD) throw Error("repeat() can only be used in text expressions");
633
633
  }
634
634
  dt(i, t, e) {
635
635
  let n;
636
636
  e === void 0 ? e = t : t !== void 0 && (n = t);
637
- const o = [], r = [];
637
+ const r = [], o = [];
638
638
  let s = 0;
639
- for (const a of i) o[s] = n ? n(a, s) : s, r[s] = e(a, s), s++;
640
- return { values: r, keys: o };
639
+ for (const a of i) r[s] = n ? n(a, s) : s, o[s] = e(a, s), s++;
640
+ return { values: o, keys: r };
641
641
  }
642
642
  render(i, t, e) {
643
643
  return this.dt(i, t, e).values;
644
644
  }
645
645
  update(i, [t, e, n]) {
646
- const o = yr(i), { values: r, keys: s } = this.dt(t, e, n);
647
- if (!Array.isArray(o)) return this.ut = s, r;
646
+ const r = yo(i), { values: o, keys: s } = this.dt(t, e, n);
647
+ if (!Array.isArray(r)) return this.ut = s, o;
648
648
  const a = this.ut ?? (this.ut = []), l = [];
649
- let d, c, u = 0, p = o.length - 1, f = 0, g = r.length - 1;
650
- for (; u <= p && f <= g; ) if (o[u] === null) u++;
651
- else if (o[p] === null) p--;
652
- else if (a[u] === s[f]) l[f] = Zt(o[u], r[f]), u++, f++;
653
- else if (a[p] === s[g]) l[g] = Zt(o[p], r[g]), p--, g--;
654
- else if (a[u] === s[g]) l[g] = Zt(o[u], r[g]), fe(i, l[g + 1], o[u]), u++, g--;
655
- else if (a[p] === s[f]) l[f] = Zt(o[p], r[f]), fe(i, o[u], o[p]), p--, f++;
656
- else if (d === void 0 && (d = Dn(s, f, g), c = Dn(a, u, p)), d.has(a[u])) if (d.has(a[p])) {
657
- const b = c.get(s[f]), N = b !== void 0 ? o[b] : null;
649
+ let d, u, c = 0, p = r.length - 1, f = 0, g = o.length - 1;
650
+ for (; c <= p && f <= g; ) if (r[c] === null) c++;
651
+ else if (r[p] === null) p--;
652
+ else if (a[c] === s[f]) l[f] = Zt(r[c], o[f]), c++, f++;
653
+ else if (a[p] === s[g]) l[g] = Zt(r[p], o[g]), p--, g--;
654
+ else if (a[c] === s[g]) l[g] = Zt(r[c], o[g]), fe(i, l[g + 1], r[c]), c++, g--;
655
+ else if (a[p] === s[f]) l[f] = Zt(r[p], o[f]), fe(i, r[c], r[p]), p--, f++;
656
+ else if (d === void 0 && (d = Dn(s, f, g), u = Dn(a, c, p)), d.has(a[c])) if (d.has(a[p])) {
657
+ const b = u.get(s[f]), N = b !== void 0 ? r[b] : null;
658
658
  if (N === null) {
659
- const J = fe(i, o[u]);
660
- Zt(J, r[f]), l[f] = J;
661
- } else l[f] = Zt(N, r[f]), fe(i, o[u], N), o[b] = null;
659
+ const J = fe(i, r[c]);
660
+ Zt(J, o[f]), l[f] = J;
661
+ } else l[f] = Zt(N, o[f]), fe(i, r[c], N), r[b] = null;
662
662
  f++;
663
- } else Li(o[p]), p--;
664
- else Li(o[u]), u++;
663
+ } else Li(r[p]), p--;
664
+ else Li(r[c]), c++;
665
665
  for (; f <= g; ) {
666
666
  const b = fe(i, l[g + 1]);
667
- Zt(b, r[f]), l[f++] = b;
667
+ Zt(b, o[f]), l[f++] = b;
668
668
  }
669
- for (; u <= p; ) {
670
- const b = o[u++];
669
+ for (; c <= p; ) {
670
+ const b = r[c++];
671
671
  b !== null && Li(b);
672
672
  }
673
- return this.ut = s, no(i, l), vt;
673
+ return this.ut = s, nr(i, l), vt;
674
674
  }
675
675
  });
676
676
  /**
@@ -679,7 +679,7 @@ const Dn = (i, t, e) => {
679
679
  * @license BSD-2-Clause
680
680
  * @preserve
681
681
  */
682
- var S = (i) => i !== void 0, oo = (i, t, e) => t in i ? i[t] : i[t] = e;
682
+ var S = (i) => i !== void 0, rr = (i, t, e) => t in i ? i[t] : i[t] = e;
683
683
  const Te = {
684
684
  ELEMENT: 1,
685
685
  ATTRIBUTE: 2,
@@ -694,7 +694,7 @@ const Te = {
694
694
  DOCUMENT_FRAGMENT: 11,
695
695
  NOTATION: 12
696
696
  };
697
- class vr {
697
+ class vo {
698
698
  /**
699
699
  * XML DOM parser
700
700
  * @constructor
@@ -723,34 +723,34 @@ class vr {
723
723
  }
724
724
  }
725
725
  function Si(i, t) {
726
- return ro(i, t, []).join("");
726
+ return or(i, t, []).join("");
727
727
  }
728
- function ro(i, t, e) {
728
+ function or(i, t, e) {
729
729
  if (i.nodeType === Te.CDATA_SECTION || i.nodeType === Te.TEXT)
730
730
  t ? e.push(String(i.nodeValue).replace(/(\r\n|\r|\n)/g, "")) : e.push(i.nodeValue);
731
731
  else {
732
732
  var n;
733
733
  for (n = i.firstChild; n; n = n.nextSibling)
734
- ro(n, t, e);
734
+ or(n, t, e);
735
735
  }
736
736
  return e;
737
737
  }
738
- function wr(i, t, e, n) {
739
- for (var o = xr(t); o; o = Er(o)) {
740
- var r = o.namespaceURI || null, s = i[r];
738
+ function wo(i, t, e, n) {
739
+ for (var r = xo(t); r; r = Eo(r)) {
740
+ var o = r.namespaceURI || null, s = i[o];
741
741
  if (S(s)) {
742
- var a = s[o.localName];
743
- S(a) && a.call(n, o, e);
742
+ var a = s[r.localName];
743
+ S(a) && a.call(n, r, e);
744
744
  }
745
745
  }
746
746
  }
747
- function xr(i) {
747
+ function xo(i) {
748
748
  let t = i.firstElementChild || i.firstChild;
749
749
  for (; t && t.nodeType !== Te.ELEMENT; )
750
750
  t = t.nextSibling;
751
751
  return t;
752
752
  }
753
- function Er(i) {
753
+ function Eo(i) {
754
754
  let t = i.nextElementSibling || i.nextSibling;
755
755
  for (; t && t.nodeType !== Te.ELEMENT; )
756
756
  t = t.nextSibling;
@@ -759,36 +759,36 @@ function Er(i) {
759
759
  function nt(i, t, e) {
760
760
  return (
761
761
  /** @type {Object.<string, Object.<string, XMLParser.Parser>>} */
762
- $r(i, t, e)
762
+ $o(i, t, e)
763
763
  );
764
764
  }
765
- function $r(i, t, e) {
766
- var n = S(e) ? e : {}, o, r;
767
- for (o = 0, r = i.length; o < r; ++o)
768
- n[i[o]] = t;
765
+ function $o(i, t, e) {
766
+ var n = S(e) ? e : {}, r, o;
767
+ for (r = 0, o = i.length; r < o; ++r)
768
+ n[i[r]] = t;
769
769
  return n;
770
770
  }
771
- function so(i, t) {
771
+ function sr(i, t) {
772
772
  return (
773
773
  /**
774
774
  * @param {Node} node Node.
775
775
  * @param {Array.<*>} objectStack Object stack.
776
776
  */
777
777
  function(e, n) {
778
- var o = i.call(
778
+ var r = i.call(
779
779
  S(t) ? t : this,
780
780
  e,
781
781
  n
782
782
  );
783
- if (S(o)) {
784
- var r = n[n.length - 1];
785
- r.push(o);
783
+ if (S(r)) {
784
+ var o = n[n.length - 1];
785
+ o.push(r);
786
786
  }
787
787
  }
788
788
  );
789
789
  }
790
- function Q(i, t, e, n, o) {
791
- return n.push(i), wr(t, e, n, o), n.pop();
790
+ function Q(i, t, e, n, r) {
791
+ return n.push(i), wo(t, e, n, r), n.pop();
792
792
  }
793
793
  function y(i, t, e) {
794
794
  return (
@@ -796,18 +796,18 @@ function y(i, t, e) {
796
796
  * @param {Node} node Node.
797
797
  * @param {Array.<*>} objectStack Object stack.
798
798
  */
799
- function(n, o) {
800
- let r = i.call(
799
+ function(n, r) {
800
+ let o = i.call(
801
801
  S(e) ? e : this,
802
802
  n,
803
- o
803
+ r
804
804
  );
805
- if (S(r)) {
805
+ if (S(o)) {
806
806
  var s = (
807
807
  /** @type {Object} */
808
- o[o.length - 1]
808
+ r[r.length - 1]
809
809
  ), a = S(t) ? t : n.localName;
810
- s[a] = r;
810
+ s[a] = o;
811
811
  }
812
812
  }
813
813
  );
@@ -818,32 +818,32 @@ function pt(i, t, e) {
818
818
  * @param {Node} node Node.
819
819
  * @param {Array.<*>} objectStack Object stack.
820
820
  */
821
- function(n, o) {
822
- var r = i.call(
821
+ function(n, r) {
822
+ var o = i.call(
823
823
  S(e) ? e : this,
824
824
  n,
825
- o
825
+ r
826
826
  );
827
- if (S(r)) {
827
+ if (S(o)) {
828
828
  var s = (
829
829
  /** @type {Object} */
830
- o[o.length - 1]
831
- ), a = S(t) ? t : n.localName, l = oo(s, a, []);
832
- l.push(r);
830
+ r[r.length - 1]
831
+ ), a = S(t) ? t : n.localName, l = rr(s, a, []);
832
+ l.push(o);
833
833
  }
834
834
  }
835
835
  );
836
836
  }
837
- const Sr = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
838
- function _r(i) {
839
- return i.replace(Sr, "");
837
+ const So = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
838
+ function Ao(i) {
839
+ return i.replace(So, "");
840
840
  }
841
841
  function Gt(i) {
842
842
  const t = /^\s*(true|1)|(false|0)\s*$/.exec(i);
843
843
  if (t)
844
844
  return S(t[1]) || !1;
845
845
  }
846
- function re(i) {
846
+ function oe(i) {
847
847
  return Tt(Si(i, !1));
848
848
  }
849
849
  function Tt(i) {
@@ -860,16 +860,16 @@ function Je(i) {
860
860
  return parseInt(t[1], 10);
861
861
  }
862
862
  function D(i) {
863
- return _r(Si(i, !1));
863
+ return Ao(Si(i, !1));
864
864
  }
865
- const Ar = "http://www.w3.org/1999/xlink";
865
+ const _o = "http://www.w3.org/1999/xlink";
866
866
  function ln(i) {
867
- return i.getAttributeNS(Ar, "href");
867
+ return i.getAttributeNS(_o, "href");
868
868
  }
869
- function Cr(i, t) {
869
+ function Co(i, t) {
870
870
  return Q({}, ts, i, t);
871
871
  }
872
- function ao(i) {
872
+ function ar(i) {
873
873
  return [
874
874
  Tt(i.getAttribute("minx")),
875
875
  Tt(i.getAttribute("miny")),
@@ -877,8 +877,8 @@ function ao(i) {
877
877
  Tt(i.getAttribute("maxy"))
878
878
  ];
879
879
  }
880
- function Tr(i, t) {
881
- const e = ao(i), n = [
880
+ function To(i, t) {
881
+ const e = ar(i), n = [
882
882
  Tt(i.getAttribute("resx")),
883
883
  Tt(i.getAttribute("resy"))
884
884
  ];
@@ -888,16 +888,16 @@ function Tr(i, t) {
888
888
  res: n
889
889
  };
890
890
  }
891
- function Dr(i, t) {
892
- const e = ao(i);
891
+ function Do(i, t) {
892
+ const e = ar(i);
893
893
  if (!(!S(e[0]) || !S(e[1]) || !S(e[2]) || !S(e[3])))
894
894
  return e;
895
895
  }
896
- function Pr(i, t) {
896
+ function Po(i, t) {
897
897
  const e = parseFloat(i.getAttribute("min")), n = parseFloat(i.getAttribute("max"));
898
898
  return { min: e, max: n };
899
899
  }
900
- function Or(i, t) {
900
+ function Oo(i, t) {
901
901
  const e = Q(
902
902
  {},
903
903
  es,
@@ -908,74 +908,74 @@ function Or(i, t) {
908
908
  const n = (
909
909
  /** @type {number|undefined} */
910
910
  e.westBoundLongitude
911
- ), o = (
911
+ ), r = (
912
912
  /** @type {number|undefined} */
913
913
  e.southBoundLatitude
914
- ), r = (
914
+ ), o = (
915
915
  /** @type {number|undefined} */
916
916
  e.eastBoundLongitude
917
917
  ), s = (
918
918
  /** @type {number|undefined} */
919
919
  e.northBoundLatitude
920
920
  );
921
- if (!(!S(n) || !S(o) || !S(r) || !S(s)))
921
+ if (!(!S(n) || !S(r) || !S(o) || !S(s)))
922
922
  return [
923
923
  n,
924
- o,
925
924
  r,
925
+ o,
926
926
  s
927
927
  ];
928
928
  }
929
- function Lr(i, t) {
930
- return Q({}, Yr, i, t);
929
+ function Lo(i, t) {
930
+ return Q({}, Yo, i, t);
931
931
  }
932
- function Rr(i, t) {
933
- return Q({}, Wr, i, t);
932
+ function Ro(i, t) {
933
+ return Q({}, Wo, i, t);
934
934
  }
935
- function Mr(i, t) {
935
+ function Mo(i, t) {
936
936
  return Q(
937
937
  {},
938
- Gr,
938
+ Go,
939
939
  i,
940
940
  t
941
941
  );
942
942
  }
943
- function Ir(i, t) {
943
+ function Io(i, t) {
944
944
  return Q(
945
945
  {},
946
- Jr,
946
+ Jo,
947
947
  i,
948
948
  t
949
949
  );
950
950
  }
951
- function Nr(i, t) {
951
+ function No(i, t) {
952
952
  return Q(
953
953
  {},
954
- Kr,
954
+ Ko,
955
955
  i,
956
956
  t
957
957
  );
958
958
  }
959
- function Hr(i, t) {
959
+ function Ho(i, t) {
960
960
  return Q(
961
961
  [],
962
- Qr,
962
+ Qo,
963
963
  i,
964
964
  t
965
965
  );
966
966
  }
967
- function Vr(i, t) {
967
+ function Vo(i, t) {
968
968
  const e = Gt(i.getAttribute("queryable"));
969
969
  return Q(
970
970
  {
971
971
  queryable: S(e) ? e : !1
972
972
  },
973
- co,
973
+ cr,
974
974
  i,
975
975
  t
976
976
  );
977
977
  }
978
- function Br(i, t) {
978
+ function ko(i, t) {
979
979
  var e = (
980
980
  /** @type {Object.<string,*>} */
981
981
  t[t.length - 1]
@@ -984,16 +984,16 @@ function Br(i, t) {
984
984
  /** @type {Object.<string,*>} */
985
985
  Q(
986
986
  {},
987
- co,
987
+ cr,
988
988
  i,
989
989
  t
990
990
  )
991
991
  );
992
992
  if (!S(n)) return;
993
- let o = Gt(i.getAttribute("queryable"));
994
- S(o) || (o = e.queryable), n.queryable = S(o) ? o : !1;
995
- let r = Je(i.getAttribute("cascaded"));
996
- S(r) || (r = e.cascaded), n.cascaded = r;
993
+ let r = Gt(i.getAttribute("queryable"));
994
+ S(r) || (r = e.queryable), n.queryable = S(r) ? r : !1;
995
+ let o = Je(i.getAttribute("cascaded"));
996
+ S(o) || (o = e.cascaded), n.cascaded = o;
997
997
  let s = Gt(i.getAttribute("opaque"));
998
998
  S(s) || (s = e.opaque), n.opaque = S(s) ? s : !1;
999
999
  let a = Gt(i.getAttribute("noSubsets"));
@@ -1002,15 +1002,15 @@ function Br(i, t) {
1002
1002
  S(l) || (l = e.fixedWidth), n.fixedWidth = l;
1003
1003
  let d = Tt(i.getAttribute("fixedHeight"));
1004
1004
  S(d) || (d = e.fixedHeight), n.fixedHeight = d;
1005
- const c = ["Style", "CRS", "AuthorityURL"];
1006
- for (let p = 0, f = c.length; p < f; p++) {
1007
- const g = c[p], b = e[g];
1005
+ const u = ["Style", "CRS", "AuthorityURL"];
1006
+ for (let p = 0, f = u.length; p < f; p++) {
1007
+ const g = u[p], b = e[g];
1008
1008
  if (S(b)) {
1009
- let N = oo(n, g, []);
1009
+ let N = rr(n, g, []);
1010
1010
  N = N.concat(b), n[g] = N;
1011
1011
  }
1012
1012
  }
1013
- const u = [
1013
+ const c = [
1014
1014
  "EX_GeographicBoundingBox",
1015
1015
  "BoundingBox",
1016
1016
  "Dimension",
@@ -1018,8 +1018,8 @@ function Br(i, t) {
1018
1018
  "MinScaleDenominator",
1019
1019
  "MaxScaleDenominator"
1020
1020
  ];
1021
- for (let p = 0, f = u.length; p < f; p++) {
1022
- const g = u[p], b = n[g];
1021
+ for (let p = 0, f = c.length; p < f; p++) {
1022
+ const g = c[p], b = n[g];
1023
1023
  if (!S(b)) {
1024
1024
  const N = e[g];
1025
1025
  n[g] = N;
@@ -1027,7 +1027,7 @@ function Br(i, t) {
1027
1027
  }
1028
1028
  return n;
1029
1029
  }
1030
- function kr(i, t) {
1030
+ function Bo(i, t) {
1031
1031
  return {
1032
1032
  name: i.getAttribute("name"),
1033
1033
  units: i.getAttribute("units"),
@@ -1047,19 +1047,19 @@ function Pt(i, t) {
1047
1047
  t
1048
1048
  );
1049
1049
  }
1050
- function Ur(i, t) {
1050
+ function Uo(i, t) {
1051
1051
  return Q({}, is, i, t);
1052
1052
  }
1053
- function Fr(i, t) {
1054
- return Q({}, os, i, t);
1055
- }
1056
- function jr(i, t) {
1053
+ function Fo(i, t) {
1057
1054
  return Q({}, rs, i, t);
1058
1055
  }
1056
+ function jo(i, t) {
1057
+ return Q({}, os, i, t);
1058
+ }
1059
1059
  function Mi(i, t) {
1060
1060
  return Q({}, ns, i, t);
1061
1061
  }
1062
- function lo(i, t) {
1062
+ function lr(i, t) {
1063
1063
  var e = Pt(i, t);
1064
1064
  if (S(e)) {
1065
1065
  const n = [
@@ -1069,20 +1069,20 @@ function lo(i, t) {
1069
1069
  return e.size = n, e;
1070
1070
  }
1071
1071
  }
1072
- function zr(i, t) {
1072
+ function zo(i, t) {
1073
1073
  var e = Pt(i, t);
1074
1074
  if (S(e))
1075
1075
  return e.name = i.getAttribute("name"), e;
1076
1076
  }
1077
- function Zr(i, t) {
1077
+ function Zo(i, t) {
1078
1078
  var e = Pt(i, t);
1079
1079
  if (S(e))
1080
1080
  return e.type = i.getAttribute("type"), e;
1081
1081
  }
1082
- function qr(i, t) {
1082
+ function qo(i, t) {
1083
1083
  return Q({}, ss, i, t);
1084
1084
  }
1085
- function uo(i, t) {
1085
+ function dr(i, t) {
1086
1086
  return Q(
1087
1087
  [],
1088
1088
  ls,
@@ -1090,55 +1090,55 @@ function uo(i, t) {
1090
1090
  t
1091
1091
  );
1092
1092
  }
1093
- const ot = [
1093
+ const rt = [
1094
1094
  null,
1095
1095
  "http://www.opengis.net/wms"
1096
- ], Xr = nt(
1097
- ot,
1096
+ ], Xo = nt(
1097
+ rt,
1098
1098
  {
1099
- Service: y(Rr),
1100
- Capability: y(Lr)
1099
+ Service: y(Ro),
1100
+ Capability: y(Lo)
1101
1101
  }
1102
- ), Yr = nt(
1103
- ot,
1102
+ ), Yo = nt(
1103
+ rt,
1104
1104
  {
1105
- Request: y(Ur),
1106
- Exception: y(Hr),
1107
- Layer: y(Vr)
1105
+ Request: y(Uo),
1106
+ Exception: y(Ho),
1107
+ Layer: y(Vo)
1108
1108
  }
1109
- ), Wr = nt(
1110
- ot,
1109
+ ), Wo = nt(
1110
+ rt,
1111
1111
  {
1112
1112
  Name: y(D),
1113
1113
  Title: y(D),
1114
1114
  Abstract: y(D),
1115
- KeywordList: y(uo),
1115
+ KeywordList: y(dr),
1116
1116
  OnlineResource: y(ln),
1117
- ContactInformation: y(Mr),
1117
+ ContactInformation: y(Mo),
1118
1118
  Fees: y(D),
1119
1119
  AccessConstraints: y(D),
1120
1120
  LayerLimit: y(Ri),
1121
1121
  MaxWidth: y(Ri),
1122
1122
  MaxHeight: y(Ri)
1123
1123
  }
1124
- ), Gr = nt(
1125
- ot,
1124
+ ), Go = nt(
1125
+ rt,
1126
1126
  {
1127
- ContactPersonPrimary: y(Ir),
1127
+ ContactPersonPrimary: y(Io),
1128
1128
  ContactPosition: y(D),
1129
- ContactAddress: y(Nr),
1129
+ ContactAddress: y(No),
1130
1130
  ContactVoiceTelephone: y(D),
1131
1131
  ContactFacsimileTelephone: y(D),
1132
1132
  ContactElectronicMailAddress: y(D)
1133
1133
  }
1134
- ), Jr = nt(
1135
- ot,
1134
+ ), Jo = nt(
1135
+ rt,
1136
1136
  {
1137
1137
  ContactPerson: y(D),
1138
1138
  ContactOrganization: y(D)
1139
1139
  }
1140
- ), Kr = nt(
1141
- ot,
1140
+ ), Ko = nt(
1141
+ rt,
1142
1142
  {
1143
1143
  AddressType: y(D),
1144
1144
  Address: y(D),
@@ -1147,50 +1147,50 @@ const ot = [
1147
1147
  PostCode: y(D),
1148
1148
  Country: y(D)
1149
1149
  }
1150
- ), Qr = nt(
1151
- ot,
1150
+ ), Qo = nt(
1151
+ rt,
1152
1152
  {
1153
- Format: so(D)
1153
+ Format: sr(D)
1154
1154
  }
1155
- ), co = nt(
1156
- ot,
1155
+ ), cr = nt(
1156
+ rt,
1157
1157
  {
1158
1158
  Name: y(D),
1159
1159
  Title: y(D),
1160
1160
  Abstract: y(D),
1161
- KeywordList: y(uo),
1161
+ KeywordList: y(dr),
1162
1162
  CRS: pt(D),
1163
1163
  SRS: pt(D),
1164
- EX_GeographicBoundingBox: y(Or),
1165
- LatLonBoundingBox: y(Dr),
1166
- BoundingBox: pt(Tr),
1167
- Dimension: pt(kr),
1168
- Attribution: y(Cr),
1169
- AuthorityURL: pt(zr),
1164
+ EX_GeographicBoundingBox: y(Oo),
1165
+ LatLonBoundingBox: y(Do),
1166
+ BoundingBox: pt(To),
1167
+ Dimension: pt(Bo),
1168
+ Attribution: y(Co),
1169
+ AuthorityURL: pt(zo),
1170
1170
  Identifier: pt(D),
1171
- MetadataURL: pt(Zr),
1171
+ MetadataURL: pt(Zo),
1172
1172
  DataURL: pt(Pt),
1173
1173
  FeatureListURL: pt(Pt),
1174
- Style: pt(qr),
1175
- MinScaleDenominator: y(re),
1176
- MaxScaleDenominator: y(re),
1177
- ScaleHint: y(Pr),
1178
- Layer: pt(Br)
1174
+ Style: pt(qo),
1175
+ MinScaleDenominator: y(oe),
1176
+ MaxScaleDenominator: y(oe),
1177
+ ScaleHint: y(Po),
1178
+ Layer: pt(ko)
1179
1179
  }
1180
1180
  ), ts = nt(
1181
- ot,
1181
+ rt,
1182
1182
  {
1183
1183
  Title: y(D),
1184
1184
  OnlineResource: y(ln),
1185
- LogoURL: y(lo)
1185
+ LogoURL: y(lr)
1186
1186
  }
1187
- ), es = nt(ot, {
1188
- westBoundLongitude: y(re),
1189
- eastBoundLongitude: y(re),
1190
- southBoundLatitude: y(re),
1191
- northBoundLatitude: y(re)
1187
+ ), es = nt(rt, {
1188
+ westBoundLongitude: y(oe),
1189
+ eastBoundLongitude: y(oe),
1190
+ southBoundLatitude: y(oe),
1191
+ northBoundLatitude: y(oe)
1192
1192
  }), is = nt(
1193
- ot,
1193
+ rt,
1194
1194
  {
1195
1195
  GetCapabilities: y(
1196
1196
  Mi
@@ -1203,22 +1203,22 @@ const ot = [
1203
1203
  )
1204
1204
  }
1205
1205
  ), ns = nt(
1206
- ot,
1206
+ rt,
1207
1207
  {
1208
1208
  Format: pt(D),
1209
1209
  DCPType: pt(
1210
- Fr
1210
+ Fo
1211
1211
  )
1212
1212
  }
1213
- ), os = nt(
1214
- ot,
1213
+ ), rs = nt(
1214
+ rt,
1215
1215
  {
1216
1216
  HTTP: y(
1217
- jr
1217
+ jo
1218
1218
  )
1219
1219
  }
1220
- ), rs = nt(
1221
- ot,
1220
+ ), os = nt(
1221
+ rt,
1222
1222
  {
1223
1223
  Get: y(
1224
1224
  Pt
@@ -1228,25 +1228,25 @@ const ot = [
1228
1228
  )
1229
1229
  }
1230
1230
  ), ss = nt(
1231
- ot,
1231
+ rt,
1232
1232
  {
1233
1233
  Name: y(D),
1234
1234
  Title: y(D),
1235
1235
  Abstract: y(D),
1236
- LegendURL: pt(lo),
1236
+ LegendURL: pt(lr),
1237
1237
  StyleSheetURL: y(Pt),
1238
1238
  StyleURL: y(Pt)
1239
1239
  }
1240
1240
  ), as = nt(
1241
- ot,
1241
+ rt,
1242
1242
  {
1243
1243
  Format: y(D),
1244
1244
  OnlineResource: y(ln)
1245
1245
  }
1246
1246
  ), ls = nt(
1247
- ot,
1247
+ rt,
1248
1248
  {
1249
- Keyword: so(D)
1249
+ Keyword: sr(D)
1250
1250
  }
1251
1251
  );
1252
1252
  class ds {
@@ -1257,7 +1257,7 @@ class ds {
1257
1257
  * @constructor
1258
1258
  */
1259
1259
  constructor(t, e) {
1260
- !e && typeof window < "u" && (e = window.DOMParser), this.version = void 0, this._parser = new vr(e), this._data = t;
1260
+ !e && typeof window < "u" && (e = window.DOMParser), this.version = void 0, this._parser = new vo(e), this._data = t;
1261
1261
  }
1262
1262
  /**
1263
1263
  * @param {String} xmlString
@@ -1297,29 +1297,29 @@ class ds {
1297
1297
  readFromNode(t) {
1298
1298
  return this.version = t.getAttribute("version"), Q({
1299
1299
  version: this.version
1300
- }, Xr, t, []) || null;
1300
+ }, Xo, t, []) || null;
1301
1301
  }
1302
1302
  }
1303
- async function us(i) {
1303
+ async function cs(i) {
1304
1304
  let t = new URL(i), e = t.searchParams;
1305
1305
  e.set("SERVICE", "WMS"), e.set("REQUEST", "GetCapabilities");
1306
1306
  let n = t.toString();
1307
- const o = await fetch(n);
1308
- if (o.ok) {
1309
- const r = await o.text();
1310
- return new ds(r).toJSON();
1307
+ const r = await fetch(n);
1308
+ if (r.ok) {
1309
+ const o = await r.text();
1310
+ return new ds(o).toJSON();
1311
1311
  } else
1312
- throw new Error(`Error: ${o.status}`);
1312
+ throw new Error(`Error: ${r.status}`);
1313
1313
  }
1314
1314
  function dn(i) {
1315
1315
  const t = /\b(?:wms|ows)\b/i, e = /{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;
1316
1316
  return t.test(i) ? "TileWMS" : e.test(i) ? "XYZ" : !1;
1317
1317
  }
1318
- function cs(i) {
1318
+ function us(i) {
1319
1319
  const e = /^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(i), n = dn(i);
1320
1320
  return !!(i && e && n);
1321
1321
  }
1322
- function ho(i) {
1322
+ function ur(i) {
1323
1323
  return i.replace(
1324
1324
  /(['"])?([a-zA-Z0-9_]+)(['"])?:/g,
1325
1325
  '"$2": '
@@ -1327,7 +1327,7 @@ function ho(i) {
1327
1327
  }
1328
1328
  function hs(i) {
1329
1329
  try {
1330
- return JSON.parse(ho(i)), !!i;
1330
+ return JSON.parse(ur(i)), !!i;
1331
1331
  } catch {
1332
1332
  return !1;
1333
1333
  }
@@ -1339,8 +1339,8 @@ function ps(i, t) {
1339
1339
  e.set(l, a[l]);
1340
1340
  }) : e.set(s, a);
1341
1341
  });
1342
- const n = i.split("?")[0], o = e.toString();
1343
- return `${n}?${o}`;
1342
+ const n = i.split("?")[0], r = e.toString();
1343
+ return `${n}?${r}`;
1344
1344
  }
1345
1345
  /**!
1346
1346
  * Sortable 1.15.6
@@ -1352,8 +1352,8 @@ function Pn(i, t) {
1352
1352
  var e = Object.keys(i);
1353
1353
  if (Object.getOwnPropertySymbols) {
1354
1354
  var n = Object.getOwnPropertySymbols(i);
1355
- t && (n = n.filter(function(o) {
1356
- return Object.getOwnPropertyDescriptor(i, o).enumerable;
1355
+ t && (n = n.filter(function(r) {
1356
+ return Object.getOwnPropertyDescriptor(i, r).enumerable;
1357
1357
  })), e.push.apply(e, n);
1358
1358
  }
1359
1359
  return e;
@@ -1397,18 +1397,18 @@ function Ot() {
1397
1397
  }
1398
1398
  function gs(i, t) {
1399
1399
  if (i == null) return {};
1400
- var e = {}, n = Object.keys(i), o, r;
1401
- for (r = 0; r < n.length; r++)
1402
- o = n[r], !(t.indexOf(o) >= 0) && (e[o] = i[o]);
1400
+ var e = {}, n = Object.keys(i), r, o;
1401
+ for (o = 0; o < n.length; o++)
1402
+ r = n[o], !(t.indexOf(r) >= 0) && (e[r] = i[r]);
1403
1403
  return e;
1404
1404
  }
1405
1405
  function ms(i, t) {
1406
1406
  if (i == null) return {};
1407
- var e = gs(i, t), n, o;
1407
+ var e = gs(i, t), n, r;
1408
1408
  if (Object.getOwnPropertySymbols) {
1409
- var r = Object.getOwnPropertySymbols(i);
1410
- for (o = 0; o < r.length; o++)
1411
- n = r[o], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(i, n) && (e[n] = i[n]);
1409
+ var o = Object.getOwnPropertySymbols(i);
1410
+ for (r = 0; r < o.length; r++)
1411
+ n = o[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(i, n) && (e[n] = i[n]);
1412
1412
  }
1413
1413
  return e;
1414
1414
  }
@@ -1417,15 +1417,15 @@ function Dt(i) {
1417
1417
  if (typeof window < "u" && window.navigator)
1418
1418
  return !!/* @__PURE__ */ navigator.userAgent.match(i);
1419
1419
  }
1420
- var Lt = Dt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Re = Dt(/Edge/i), On = Dt(/firefox/i), we = Dt(/safari/i) && !Dt(/chrome/i) && !Dt(/android/i), un = Dt(/iP(ad|od|hone)/i), po = Dt(/chrome/i) && Dt(/android/i), fo = {
1420
+ var Lt = Dt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Re = Dt(/Edge/i), On = Dt(/firefox/i), we = Dt(/safari/i) && !Dt(/chrome/i) && !Dt(/android/i), cn = Dt(/iP(ad|od|hone)/i), hr = Dt(/chrome/i) && Dt(/android/i), pr = {
1421
1421
  capture: !1,
1422
1422
  passive: !1
1423
1423
  };
1424
1424
  function C(i, t, e) {
1425
- i.addEventListener(t, e, !Lt && fo);
1425
+ i.addEventListener(t, e, !Lt && pr);
1426
1426
  }
1427
- function A(i, t, e) {
1428
- i.removeEventListener(t, e, !Lt && fo);
1427
+ function _(i, t, e) {
1428
+ i.removeEventListener(t, e, !Lt && pr);
1429
1429
  }
1430
1430
  function Ke(i, t) {
1431
1431
  if (t) {
@@ -1443,7 +1443,7 @@ function Ke(i, t) {
1443
1443
  return !1;
1444
1444
  }
1445
1445
  }
1446
- function go(i) {
1446
+ function fr(i) {
1447
1447
  return i.host && i !== document && i.host.nodeType ? i.host : i.parentNode;
1448
1448
  }
1449
1449
  function xt(i, t, e, n) {
@@ -1453,7 +1453,7 @@ function xt(i, t, e, n) {
1453
1453
  if (t != null && (t[0] === ">" ? i.parentNode === e && Ke(i, t) : Ke(i, t)) || n && i === e)
1454
1454
  return i;
1455
1455
  if (i === e) break;
1456
- } while (i = go(i));
1456
+ } while (i = fr(i));
1457
1457
  }
1458
1458
  return null;
1459
1459
  }
@@ -1484,15 +1484,15 @@ function ae(i, t) {
1484
1484
  var n = v(i, "transform");
1485
1485
  n && n !== "none" && (e = n + " " + e);
1486
1486
  } while (!t && (i = i.parentNode));
1487
- var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
1488
- return o && new o(e);
1487
+ var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
1488
+ return r && new r(e);
1489
1489
  }
1490
- function mo(i, t, e) {
1490
+ function gr(i, t, e) {
1491
1491
  if (i) {
1492
- var n = i.getElementsByTagName(t), o = 0, r = n.length;
1492
+ var n = i.getElementsByTagName(t), r = 0, o = n.length;
1493
1493
  if (e)
1494
- for (; o < r; o++)
1495
- e(n[o], o);
1494
+ for (; r < o; r++)
1495
+ e(n[r], r);
1496
1496
  return n;
1497
1497
  }
1498
1498
  return [];
@@ -1501,52 +1501,52 @@ function $t() {
1501
1501
  var i = document.scrollingElement;
1502
1502
  return i || document.documentElement;
1503
1503
  }
1504
- function W(i, t, e, n, o) {
1504
+ function W(i, t, e, n, r) {
1505
1505
  if (!(!i.getBoundingClientRect && i !== window)) {
1506
- var r, s, a, l, d, c, u;
1507
- if (i !== window && i.parentNode && i !== $t() ? (r = i.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 || e) && i !== window && (o = o || i.parentNode, !Lt))
1506
+ var o, s, a, l, d, u, c;
1507
+ if (i !== window && i.parentNode && i !== $t() ? (o = i.getBoundingClientRect(), s = o.top, a = o.left, l = o.bottom, d = o.right, u = o.height, c = o.width) : (s = 0, a = 0, l = window.innerHeight, d = window.innerWidth, u = window.innerHeight, c = window.innerWidth), (t || e) && i !== window && (r = r || i.parentNode, !Lt))
1508
1508
  do
1509
- if (o && o.getBoundingClientRect && (v(o, "transform") !== "none" || e && v(o, "position") !== "static")) {
1510
- var p = o.getBoundingClientRect();
1511
- s -= p.top + parseInt(v(o, "border-top-width")), a -= p.left + parseInt(v(o, "border-left-width")), l = s + r.height, d = a + r.width;
1509
+ if (r && r.getBoundingClientRect && (v(r, "transform") !== "none" || e && v(r, "position") !== "static")) {
1510
+ var p = r.getBoundingClientRect();
1511
+ s -= p.top + parseInt(v(r, "border-top-width")), a -= p.left + parseInt(v(r, "border-left-width")), l = s + o.height, d = a + o.width;
1512
1512
  break;
1513
1513
  }
1514
- while (o = o.parentNode);
1514
+ while (r = r.parentNode);
1515
1515
  if (n && i !== window) {
1516
- var f = ae(o || i), g = f && f.a, b = f && f.d;
1517
- f && (s /= b, a /= g, u /= g, c /= b, l = s + c, d = a + u);
1516
+ var f = ae(r || i), g = f && f.a, b = f && f.d;
1517
+ f && (s /= b, a /= g, c /= g, u /= b, l = s + u, d = a + c);
1518
1518
  }
1519
1519
  return {
1520
1520
  top: s,
1521
1521
  left: a,
1522
1522
  bottom: l,
1523
1523
  right: d,
1524
- width: u,
1525
- height: c
1524
+ width: c,
1525
+ height: u
1526
1526
  };
1527
1527
  }
1528
1528
  }
1529
1529
  function Rn(i, t, e) {
1530
- for (var n = Vt(i, !0), o = W(i)[t]; n; ) {
1531
- var r = W(n)[e], s = void 0;
1532
- if (s = o >= r, !s) return n;
1530
+ for (var n = Vt(i, !0), r = W(i)[t]; n; ) {
1531
+ var o = W(n)[e], s = void 0;
1532
+ if (s = r >= o, !s) return n;
1533
1533
  if (n === $t()) break;
1534
1534
  n = Vt(n, !1);
1535
1535
  }
1536
1536
  return !1;
1537
1537
  }
1538
1538
  function de(i, t, e, n) {
1539
- for (var o = 0, r = 0, s = i.children; r < s.length; ) {
1540
- if (s[r].style.display !== "none" && s[r] !== w.ghost && (n || s[r] !== w.dragged) && xt(s[r], e.draggable, i, !1)) {
1541
- if (o === t)
1542
- return s[r];
1543
- o++;
1539
+ for (var r = 0, o = 0, s = i.children; o < s.length; ) {
1540
+ if (s[o].style.display !== "none" && s[o] !== w.ghost && (n || s[o] !== w.dragged) && xt(s[o], e.draggable, i, !1)) {
1541
+ if (r === t)
1542
+ return s[o];
1543
+ r++;
1544
1544
  }
1545
- r++;
1545
+ o++;
1546
1546
  }
1547
1547
  return null;
1548
1548
  }
1549
- function cn(i, t) {
1549
+ function un(i, t) {
1550
1550
  for (var e = i.lastElementChild; e && (e === w.ghost || v(e, "display") === "none" || t && !Ke(e, t)); )
1551
1551
  e = e.previousElementSibling;
1552
1552
  return e || null;
@@ -1563,8 +1563,8 @@ function Mn(i) {
1563
1563
  var t = 0, e = 0, n = $t();
1564
1564
  if (i)
1565
1565
  do {
1566
- var o = ae(i), r = o.a, s = o.d;
1567
- t += i.scrollLeft * r, e += i.scrollTop * s;
1566
+ var r = ae(i), o = r.a, s = r.d;
1567
+ t += i.scrollLeft * o, e += i.scrollTop * s;
1568
1568
  } while (i !== n && (i = i.parentNode));
1569
1569
  return [t, e];
1570
1570
  }
@@ -1581,8 +1581,8 @@ function Vt(i, t) {
1581
1581
  var e = i, n = !1;
1582
1582
  do
1583
1583
  if (e.clientWidth < e.scrollWidth || e.clientHeight < e.scrollHeight) {
1584
- var o = v(e);
1585
- if (e.clientWidth < e.scrollWidth && (o.overflowX == "auto" || o.overflowX == "scroll") || e.clientHeight < e.scrollHeight && (o.overflowY == "auto" || o.overflowY == "scroll")) {
1584
+ var r = v(e);
1585
+ if (e.clientWidth < e.scrollWidth && (r.overflowX == "auto" || r.overflowX == "scroll") || e.clientHeight < e.scrollHeight && (r.overflowY == "auto" || r.overflowY == "scroll")) {
1586
1586
  if (!e.getBoundingClientRect || e === document.body) return $t();
1587
1587
  if (n || t) return e;
1588
1588
  n = !0;
@@ -1601,7 +1601,7 @@ function Ii(i, t) {
1601
1601
  return Math.round(i.top) === Math.round(t.top) && Math.round(i.left) === Math.round(t.left) && Math.round(i.height) === Math.round(t.height) && Math.round(i.width) === Math.round(t.width);
1602
1602
  }
1603
1603
  var xe;
1604
- function yo(i, t) {
1604
+ function mr(i, t) {
1605
1605
  return function() {
1606
1606
  if (!xe) {
1607
1607
  var e = arguments, n = this;
@@ -1614,20 +1614,20 @@ function yo(i, t) {
1614
1614
  function ws() {
1615
1615
  clearTimeout(xe), xe = void 0;
1616
1616
  }
1617
- function bo(i, t, e) {
1617
+ function yr(i, t, e) {
1618
1618
  i.scrollLeft += t, i.scrollTop += e;
1619
1619
  }
1620
- function vo(i) {
1620
+ function br(i) {
1621
1621
  var t = window.Polymer, e = window.jQuery || window.Zepto;
1622
1622
  return t && t.dom ? t.dom(i).cloneNode(!0) : e ? e(i).clone(!0)[0] : i.cloneNode(!0);
1623
1623
  }
1624
- function wo(i, t, e) {
1624
+ function vr(i, t, e) {
1625
1625
  var n = {};
1626
- return Array.from(i.children).forEach(function(o) {
1627
- var r, s, a, l;
1628
- if (!(!xt(o, t.draggable, i, !1) || o.animated || o === e)) {
1629
- var d = W(o);
1630
- n.left = Math.min((r = n.left) !== null && r !== void 0 ? r : 1 / 0, d.left), n.top = Math.min((s = n.top) !== null && s !== void 0 ? s : 1 / 0, d.top), n.right = Math.max((a = n.right) !== null && a !== void 0 ? a : -1 / 0, d.right), n.bottom = Math.max((l = n.bottom) !== null && l !== void 0 ? l : -1 / 0, d.bottom);
1626
+ return Array.from(i.children).forEach(function(r) {
1627
+ var o, s, a, l;
1628
+ if (!(!xt(r, t.draggable, i, !1) || r.animated || r === e)) {
1629
+ var d = W(r);
1630
+ n.left = Math.min((o = n.left) !== null && o !== void 0 ? o : 1 / 0, d.left), n.top = Math.min((s = n.top) !== null && s !== void 0 ? s : 1 / 0, d.top), n.right = Math.max((a = n.right) !== null && a !== void 0 ? a : -1 / 0, d.right), n.bottom = Math.max((l = n.bottom) !== null && l !== void 0 ? l : -1 / 0, d.bottom);
1631
1631
  }
1632
1632
  }), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
1633
1633
  }
@@ -1638,18 +1638,18 @@ function xs() {
1638
1638
  captureAnimationState: function() {
1639
1639
  if (i = [], !!this.options.animation) {
1640
1640
  var n = [].slice.call(this.el.children);
1641
- n.forEach(function(o) {
1642
- if (!(v(o, "display") === "none" || o === w.ghost)) {
1641
+ n.forEach(function(r) {
1642
+ if (!(v(r, "display") === "none" || r === w.ghost)) {
1643
1643
  i.push({
1644
- target: o,
1645
- rect: W(o)
1644
+ target: r,
1645
+ rect: W(r)
1646
1646
  });
1647
- var r = St({}, i[i.length - 1].rect);
1648
- if (o.thisAnimationDuration) {
1649
- var s = ae(o, !0);
1650
- s && (r.top -= s.f, r.left -= s.e);
1647
+ var o = St({}, i[i.length - 1].rect);
1648
+ if (r.thisAnimationDuration) {
1649
+ var s = ae(r, !0);
1650
+ s && (o.top -= s.f, o.left -= s.e);
1651
1651
  }
1652
- o.fromRect = r;
1652
+ r.fromRect = o;
1653
1653
  }
1654
1654
  });
1655
1655
  }
@@ -1663,27 +1663,27 @@ function xs() {
1663
1663
  }), 1);
1664
1664
  },
1665
1665
  animateAll: function(n) {
1666
- var o = this;
1666
+ var r = this;
1667
1667
  if (!this.options.animation) {
1668
1668
  clearTimeout(t), typeof n == "function" && n();
1669
1669
  return;
1670
1670
  }
1671
- var r = !1, s = 0;
1671
+ var o = !1, s = 0;
1672
1672
  i.forEach(function(a) {
1673
- var l = 0, d = a.target, c = d.fromRect, u = W(d), p = d.prevFromRect, f = d.prevToRect, g = a.rect, b = ae(d, !0);
1674
- b && (u.top -= b.f, u.left -= b.e), d.toRect = u, d.thisAnimationDuration && Ii(p, u) && !Ii(c, u) && // Make sure animatingRect is on line between toRect & fromRect
1675
- (g.top - u.top) / (g.left - u.left) === (c.top - u.top) / (c.left - u.left) && (l = $s(g, p, f, o.options)), Ii(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() {
1673
+ var l = 0, d = a.target, u = d.fromRect, c = W(d), p = d.prevFromRect, f = d.prevToRect, g = a.rect, b = ae(d, !0);
1674
+ b && (c.top -= b.f, c.left -= b.e), d.toRect = c, d.thisAnimationDuration && Ii(p, c) && !Ii(u, c) && // Make sure animatingRect is on line between toRect & fromRect
1675
+ (g.top - c.top) / (g.left - c.left) === (u.top - c.top) / (u.left - c.left) && (l = $s(g, p, f, r.options)), Ii(c, u) || (d.prevFromRect = u, d.prevToRect = c, l || (l = r.options.animation), r.animate(d, g, c, l)), l && (o = !0, s = Math.max(s, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
1676
1676
  d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
1677
1677
  }, l), d.thisAnimationDuration = l);
1678
- }), clearTimeout(t), r ? t = setTimeout(function() {
1678
+ }), clearTimeout(t), o ? t = setTimeout(function() {
1679
1679
  typeof n == "function" && n();
1680
1680
  }, s) : typeof n == "function" && n(), i = [];
1681
1681
  },
1682
- animate: function(n, o, r, s) {
1682
+ animate: function(n, r, o, s) {
1683
1683
  if (s) {
1684
1684
  v(n, "transition", ""), v(n, "transform", "");
1685
- var a = ae(this.el), l = a && a.a, d = a && a.d, c = (o.left - r.left) / (l || 1), u = (o.top - r.top) / (d || 1);
1686
- n.animatingX = !!c, n.animatingY = !!u, v(n, "transform", "translate3d(" + c + "px," + u + "px,0)"), this.forRepaintDummy = Es(n), v(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
1685
+ var a = ae(this.el), l = a && a.a, d = a && a.d, u = (r.left - o.left) / (l || 1), c = (r.top - o.top) / (d || 1);
1686
+ n.animatingX = !!u, n.animatingY = !!c, v(n, "transform", "translate3d(" + u + "px," + c + "px,0)"), this.forRepaintDummy = Es(n), v(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
1687
1687
  v(n, "transition", ""), v(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
1688
1688
  }, s);
1689
1689
  }
@@ -1708,20 +1708,20 @@ var te = [], Ni = {
1708
1708
  }), te.push(t);
1709
1709
  },
1710
1710
  pluginEvent: function(t, e, n) {
1711
- var o = this;
1711
+ var r = this;
1712
1712
  this.eventCanceled = !1, n.cancel = function() {
1713
- o.eventCanceled = !0;
1713
+ r.eventCanceled = !0;
1714
1714
  };
1715
- var r = t + "Global";
1715
+ var o = t + "Global";
1716
1716
  te.forEach(function(s) {
1717
- e[s.pluginName] && (e[s.pluginName][r] && e[s.pluginName][r](St({
1717
+ e[s.pluginName] && (e[s.pluginName][o] && e[s.pluginName][o](St({
1718
1718
  sortable: e
1719
1719
  }, n)), e.options[s.pluginName] && e[s.pluginName][t] && e[s.pluginName][t](St({
1720
1720
  sortable: e
1721
1721
  }, n)));
1722
1722
  });
1723
1723
  },
1724
- initializePlugins: function(t, e, n, o) {
1724
+ initializePlugins: function(t, e, n, r) {
1725
1725
  te.forEach(function(a) {
1726
1726
  var l = a.pluginName;
1727
1727
  if (!(!t.options[l] && !a.initializeByDefault)) {
@@ -1729,41 +1729,41 @@ var te = [], Ni = {
1729
1729
  d.sortable = t, d.options = t.options, t[l] = d, Ot(n, d.defaults);
1730
1730
  }
1731
1731
  });
1732
- for (var r in t.options)
1733
- if (t.options.hasOwnProperty(r)) {
1734
- var s = this.modifyOption(t, r, t.options[r]);
1735
- typeof s < "u" && (t.options[r] = s);
1732
+ for (var o in t.options)
1733
+ if (t.options.hasOwnProperty(o)) {
1734
+ var s = this.modifyOption(t, o, t.options[o]);
1735
+ typeof s < "u" && (t.options[o] = s);
1736
1736
  }
1737
1737
  },
1738
1738
  getEventProperties: function(t, e) {
1739
1739
  var n = {};
1740
- return te.forEach(function(o) {
1741
- typeof o.eventProperties == "function" && Ot(n, o.eventProperties.call(e[o.pluginName], t));
1740
+ return te.forEach(function(r) {
1741
+ typeof r.eventProperties == "function" && Ot(n, r.eventProperties.call(e[r.pluginName], t));
1742
1742
  }), n;
1743
1743
  },
1744
1744
  modifyOption: function(t, e, n) {
1745
- var o;
1746
- return te.forEach(function(r) {
1747
- t[r.pluginName] && r.optionListeners && typeof r.optionListeners[e] == "function" && (o = r.optionListeners[e].call(t[r.pluginName], n));
1748
- }), o;
1745
+ var r;
1746
+ return te.forEach(function(o) {
1747
+ t[o.pluginName] && o.optionListeners && typeof o.optionListeners[e] == "function" && (r = o.optionListeners[e].call(t[o.pluginName], n));
1748
+ }), r;
1749
1749
  }
1750
1750
  };
1751
1751
  function Ss(i) {
1752
- var t = i.sortable, e = i.rootEl, n = i.name, o = i.targetEl, r = i.cloneEl, s = i.toEl, a = i.fromEl, l = i.oldIndex, d = i.newIndex, c = i.oldDraggableIndex, u = i.newDraggableIndex, p = i.originalEvent, f = i.putSortable, g = i.extraEventProperties;
1752
+ var t = i.sortable, e = i.rootEl, n = i.name, r = i.targetEl, o = i.cloneEl, s = i.toEl, a = i.fromEl, l = i.oldIndex, d = i.newIndex, u = i.oldDraggableIndex, c = i.newDraggableIndex, p = i.originalEvent, f = i.putSortable, g = i.extraEventProperties;
1753
1753
  if (t = t || e && e[ft], !!t) {
1754
1754
  var b, N = t.options, J = "on" + n.charAt(0).toUpperCase() + n.substr(1);
1755
1755
  window.CustomEvent && !Lt && !Re ? b = new CustomEvent(n, {
1756
1756
  bubbles: !0,
1757
1757
  cancelable: !0
1758
- }) : (b = document.createEvent("Event"), b.initEvent(n, !0, !0)), b.to = s || e, b.from = a || e, b.item = o || e, b.clone = r, b.oldIndex = l, b.newIndex = d, b.oldDraggableIndex = c, b.newDraggableIndex = u, b.originalEvent = p, b.pullMode = f ? f.lastPutMode : void 0;
1758
+ }) : (b = document.createEvent("Event"), b.initEvent(n, !0, !0)), b.to = s || e, b.from = a || e, b.item = r || e, b.clone = o, b.oldIndex = l, b.newIndex = d, b.oldDraggableIndex = u, b.newDraggableIndex = c, b.originalEvent = p, b.pullMode = f ? f.lastPutMode : void 0;
1759
1759
  var U = St(St({}, g), Me.getEventProperties(n, t));
1760
1760
  for (var st in U)
1761
1761
  b[st] = U[st];
1762
1762
  e && e.dispatchEvent(b), N[J] && N[J].call(t, b);
1763
1763
  }
1764
1764
  }
1765
- var _s = ["evt"], ht = function(t, e) {
1766
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = n.evt, r = ms(n, _s);
1765
+ var As = ["evt"], ht = function(t, e) {
1766
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = ms(n, As);
1767
1767
  Me.pluginEvent.bind(w)(t, e, St({
1768
1768
  dragEl: h,
1769
1769
  parentEl: z,
@@ -1771,18 +1771,18 @@ var _s = ["evt"], ht = function(t, e) {
1771
1771
  rootEl: V,
1772
1772
  nextEl: Yt,
1773
1773
  lastDownEl: ze,
1774
- cloneEl: k,
1774
+ cloneEl: B,
1775
1775
  cloneHidden: Nt,
1776
1776
  dragStarted: ge,
1777
1777
  putSortable: et,
1778
1778
  activeSortable: w.active,
1779
- originalEvent: o,
1779
+ originalEvent: r,
1780
1780
  oldIndex: se,
1781
1781
  oldDraggableIndex: Ee,
1782
1782
  newIndex: yt,
1783
1783
  newDraggableIndex: It,
1784
- hideGhostForTarget: So,
1785
- unhideGhostForTarget: _o,
1784
+ hideGhostForTarget: $r,
1785
+ unhideGhostForTarget: Sr,
1786
1786
  cloneNowHidden: function() {
1787
1787
  Nt = !0;
1788
1788
  },
@@ -1793,15 +1793,15 @@ var _s = ["evt"], ht = function(t, e) {
1793
1793
  at({
1794
1794
  sortable: e,
1795
1795
  name: a,
1796
- originalEvent: o
1796
+ originalEvent: r
1797
1797
  });
1798
1798
  }
1799
- }, r));
1799
+ }, o));
1800
1800
  };
1801
1801
  function at(i) {
1802
1802
  Ss(St({
1803
1803
  putSortable: et,
1804
- cloneEl: k,
1804
+ cloneEl: B,
1805
1805
  targetEl: h,
1806
1806
  rootEl: V,
1807
1807
  oldIndex: se,
@@ -1810,63 +1810,63 @@ function at(i) {
1810
1810
  newDraggableIndex: It
1811
1811
  }, i));
1812
1812
  }
1813
- var h, z, E, V, Yt, ze, k, Nt, se, yt, Ee, It, He, et, ne = !1, Qe = !1, ti = [], qt, wt, Hi, Vi, In, Nn, ge, ee, $e, Se = !1, Ve = !1, Ze, rt, Bi = [], Xi = !1, ei = [], _i = typeof document < "u", Be = un, Hn = Re || Lt ? "cssFloat" : "float", As = _i && !po && !un && "draggable" in document.createElement("div"), xo = function() {
1814
- if (_i) {
1813
+ var h, z, E, V, Yt, ze, B, Nt, se, yt, Ee, It, He, et, ne = !1, Qe = !1, ti = [], qt, wt, Hi, Vi, In, Nn, ge, ee, $e, Se = !1, Ve = !1, Ze, ot, ki = [], Xi = !1, ei = [], Ai = typeof document < "u", ke = cn, Hn = Re || Lt ? "cssFloat" : "float", _s = Ai && !hr && !cn && "draggable" in document.createElement("div"), wr = function() {
1814
+ if (Ai) {
1815
1815
  if (Lt)
1816
1816
  return !1;
1817
1817
  var i = document.createElement("x");
1818
1818
  return i.style.cssText = "pointer-events:auto", i.style.pointerEvents === "auto";
1819
1819
  }
1820
- }(), Eo = function(t, e) {
1821
- var n = v(t), o = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), r = de(t, 0, e), s = de(t, 1, e), a = r && v(r), l = s && v(s), d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + W(r).width, c = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + W(s).width;
1820
+ }(), xr = function(t, e) {
1821
+ var n = v(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = de(t, 0, e), s = de(t, 1, e), a = o && v(o), l = s && v(s), d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + W(o).width, u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + W(s).width;
1822
1822
  if (n.display === "flex")
1823
1823
  return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
1824
1824
  if (n.display === "grid")
1825
1825
  return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
1826
- if (r && a.float && a.float !== "none") {
1827
- var u = a.float === "left" ? "left" : "right";
1828
- return s && (l.clear === "both" || l.clear === u) ? "vertical" : "horizontal";
1826
+ if (o && a.float && a.float !== "none") {
1827
+ var c = a.float === "left" ? "left" : "right";
1828
+ return s && (l.clear === "both" || l.clear === c) ? "vertical" : "horizontal";
1829
1829
  }
1830
- return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || d >= o && n[Hn] === "none" || s && n[Hn] === "none" && d + c > o) ? "vertical" : "horizontal";
1830
+ return o && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || d >= r && n[Hn] === "none" || s && n[Hn] === "none" && d + u > r) ? "vertical" : "horizontal";
1831
1831
  }, Cs = function(t, e, n) {
1832
- var o = n ? t.left : t.top, r = n ? t.right : t.bottom, s = n ? t.width : t.height, a = n ? e.left : e.top, l = n ? e.right : e.bottom, d = n ? e.width : e.height;
1833
- return o === a || r === l || o + s / 2 === a + d / 2;
1832
+ var r = n ? t.left : t.top, o = n ? t.right : t.bottom, s = n ? t.width : t.height, a = n ? e.left : e.top, l = n ? e.right : e.bottom, d = n ? e.width : e.height;
1833
+ return r === a || o === l || r + s / 2 === a + d / 2;
1834
1834
  }, Ts = function(t, e) {
1835
1835
  var n;
1836
- return ti.some(function(o) {
1837
- var r = o[ft].options.emptyInsertThreshold;
1838
- if (!(!r || cn(o))) {
1839
- var s = W(o), a = t >= s.left - r && t <= s.right + r, l = e >= s.top - r && e <= s.bottom + r;
1836
+ return ti.some(function(r) {
1837
+ var o = r[ft].options.emptyInsertThreshold;
1838
+ if (!(!o || un(r))) {
1839
+ var s = W(r), a = t >= s.left - o && t <= s.right + o, l = e >= s.top - o && e <= s.bottom + o;
1840
1840
  if (a && l)
1841
- return n = o;
1841
+ return n = r;
1842
1842
  }
1843
1843
  }), n;
1844
- }, $o = function(t) {
1845
- function e(r, s) {
1846
- return function(a, l, d, c) {
1847
- var u = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
1848
- if (r == null && (s || u))
1844
+ }, Er = function(t) {
1845
+ function e(o, s) {
1846
+ return function(a, l, d, u) {
1847
+ var c = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
1848
+ if (o == null && (s || c))
1849
1849
  return !0;
1850
- if (r == null || r === !1)
1850
+ if (o == null || o === !1)
1851
1851
  return !1;
1852
- if (s && r === "clone")
1853
- return r;
1854
- if (typeof r == "function")
1855
- return e(r(a, l, d, c), s)(a, l, d, c);
1852
+ if (s && o === "clone")
1853
+ return o;
1854
+ if (typeof o == "function")
1855
+ return e(o(a, l, d, u), s)(a, l, d, u);
1856
1856
  var p = (s ? a : l).options.group.name;
1857
- return r === !0 || typeof r == "string" && r === p || r.join && r.indexOf(p) > -1;
1857
+ return o === !0 || typeof o == "string" && o === p || o.join && o.indexOf(p) > -1;
1858
1858
  };
1859
1859
  }
1860
- var n = {}, o = t.group;
1861
- (!o || je(o) != "object") && (o = {
1862
- name: o
1863
- }), n.name = o.name, n.checkPull = e(o.pull, !0), n.checkPut = e(o.put), n.revertClone = o.revertClone, t.group = n;
1864
- }, So = function() {
1865
- !xo && E && v(E, "display", "none");
1866
- }, _o = function() {
1867
- !xo && E && v(E, "display", "");
1860
+ var n = {}, r = t.group;
1861
+ (!r || je(r) != "object") && (r = {
1862
+ name: r
1863
+ }), n.name = r.name, n.checkPull = e(r.pull, !0), n.checkPut = e(r.put), n.revertClone = r.revertClone, t.group = n;
1864
+ }, $r = function() {
1865
+ !wr && E && v(E, "display", "none");
1866
+ }, Sr = function() {
1867
+ !wr && E && v(E, "display", "");
1868
1868
  };
1869
- _i && !po && document.addEventListener("click", function(i) {
1869
+ Ai && !hr && document.addEventListener("click", function(i) {
1870
1870
  if (Qe)
1871
1871
  return i.preventDefault(), i.stopPropagation && i.stopPropagation(), i.stopImmediatePropagation && i.stopImmediatePropagation(), Qe = !1, !1;
1872
1872
  }, !0);
@@ -1876,8 +1876,8 @@ var Xt = function(t) {
1876
1876
  var e = Ts(t.clientX, t.clientY);
1877
1877
  if (e) {
1878
1878
  var n = {};
1879
- for (var o in t)
1880
- t.hasOwnProperty(o) && (n[o] = t[o]);
1879
+ for (var r in t)
1880
+ t.hasOwnProperty(r) && (n[r] = t[r]);
1881
1881
  n.target = n.rootEl = e, n.preventDefault = void 0, n.stopPropagation = void 0, e[ft]._onDragOver(n);
1882
1882
  }
1883
1883
  }
@@ -1903,7 +1903,7 @@ function w(i, t) {
1903
1903
  // will be set to same as swapThreshold if default
1904
1904
  removeCloneOnHide: !0,
1905
1905
  direction: function() {
1906
- return Eo(i, this.options);
1906
+ return xr(i, this.options);
1907
1907
  },
1908
1908
  ghostClass: "sortable-ghost",
1909
1909
  chosenClass: "sortable-chosen",
@@ -1931,16 +1931,16 @@ function w(i, t) {
1931
1931
  y: 0
1932
1932
  },
1933
1933
  // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
1934
- supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && (!we || un),
1934
+ supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && (!we || cn),
1935
1935
  emptyInsertThreshold: 5
1936
1936
  };
1937
1937
  Me.initializePlugins(this, i, e);
1938
1938
  for (var n in e)
1939
1939
  !(n in t) && (t[n] = e[n]);
1940
- $o(t);
1941
- for (var o in this)
1942
- o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
1943
- this.nativeDraggable = t.forceFallback ? !1 : As, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? C(i, "pointerdown", this._onTapStart) : (C(i, "mousedown", this._onTapStart), C(i, "touchstart", this._onTapStart)), this.nativeDraggable && (C(i, "dragover", this), C(i, "dragenter", this)), ti.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Ot(this, xs());
1940
+ Er(t);
1941
+ for (var r in this)
1942
+ r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
1943
+ this.nativeDraggable = t.forceFallback ? !1 : _s, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? C(i, "pointerdown", this._onTapStart) : (C(i, "mousedown", this._onTapStart), C(i, "touchstart", this._onTapStart)), this.nativeDraggable && (C(i, "dragover", this), C(i, "dragenter", this)), ti.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Ot(this, xs());
1944
1944
  }
1945
1945
  w.prototype = /** @lends Sortable.prototype */
1946
1946
  {
@@ -1953,10 +1953,10 @@ w.prototype = /** @lends Sortable.prototype */
1953
1953
  },
1954
1954
  _onTapStart: function(t) {
1955
1955
  if (t.cancelable) {
1956
- var e = this, n = 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;
1957
- if (Hs(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !d.isContentEditable && !(!this.nativeDraggable && we && l && l.tagName.toUpperCase() === "SELECT") && (l = xt(l, o.draggable, n, !1), !(l && l.animated) && ze !== l)) {
1958
- if (se = bt(l), Ee = bt(l, o.draggable), typeof c == "function") {
1959
- if (c.call(this, t, l, this)) {
1956
+ var e = this, n = this.el, r = this.options, o = r.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, u = r.filter;
1957
+ if (Hs(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && we && l && l.tagName.toUpperCase() === "SELECT") && (l = xt(l, r.draggable, n, !1), !(l && l.animated) && ze !== l)) {
1958
+ if (se = bt(l), Ee = bt(l, r.draggable), typeof u == "function") {
1959
+ if (u.call(this, t, l, this)) {
1960
1960
  at({
1961
1961
  sortable: e,
1962
1962
  rootEl: d,
@@ -1966,14 +1966,14 @@ w.prototype = /** @lends Sortable.prototype */
1966
1966
  fromEl: n
1967
1967
  }), ht("filter", e, {
1968
1968
  evt: t
1969
- }), r && t.preventDefault();
1969
+ }), o && t.preventDefault();
1970
1970
  return;
1971
1971
  }
1972
- } else if (c && (c = c.split(",").some(function(u) {
1973
- if (u = xt(d, u.trim(), n, !1), u)
1972
+ } else if (u && (u = u.split(",").some(function(c) {
1973
+ if (c = xt(d, c.trim(), n, !1), c)
1974
1974
  return at({
1975
1975
  sortable: e,
1976
- rootEl: u,
1976
+ rootEl: c,
1977
1977
  name: "filter",
1978
1978
  targetEl: l,
1979
1979
  fromEl: n,
@@ -1981,44 +1981,44 @@ w.prototype = /** @lends Sortable.prototype */
1981
1981
  }), ht("filter", e, {
1982
1982
  evt: t
1983
1983
  }), !0;
1984
- }), c)) {
1985
- r && t.preventDefault();
1984
+ }), u)) {
1985
+ o && t.preventDefault();
1986
1986
  return;
1987
1987
  }
1988
- o.handle && !xt(d, o.handle, n, !1) || this._prepareDragStart(t, a, l);
1988
+ r.handle && !xt(d, r.handle, n, !1) || this._prepareDragStart(t, a, l);
1989
1989
  }
1990
1990
  }
1991
1991
  },
1992
1992
  _prepareDragStart: function(t, e, n) {
1993
- var o = this, r = o.el, s = o.options, a = r.ownerDocument, l;
1994
- if (n && !h && n.parentNode === r) {
1993
+ var r = this, o = r.el, s = r.options, a = o.ownerDocument, l;
1994
+ if (n && !h && n.parentNode === o) {
1995
1995
  var d = W(n);
1996
- if (V = r, h = n, z = h.parentNode, Yt = h.nextSibling, ze = n, He = s.group, w.dragged = h, qt = {
1996
+ if (V = o, h = n, z = h.parentNode, Yt = h.nextSibling, ze = n, He = s.group, w.dragged = h, qt = {
1997
1997
  target: h,
1998
1998
  clientX: (e || t).clientX,
1999
1999
  clientY: (e || t).clientY
2000
2000
  }, In = qt.clientX - d.left, Nn = qt.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, h.style["will-change"] = "all", l = function() {
2001
- if (ht("delayEnded", o, {
2001
+ if (ht("delayEnded", r, {
2002
2002
  evt: t
2003
2003
  }), w.eventCanceled) {
2004
- o._onDrop();
2004
+ r._onDrop();
2005
2005
  return;
2006
2006
  }
2007
- o._disableDelayedDragEvents(), !On && o.nativeDraggable && (h.draggable = !0), o._triggerDragStart(t, e), at({
2008
- sortable: o,
2007
+ r._disableDelayedDragEvents(), !On && r.nativeDraggable && (h.draggable = !0), r._triggerDragStart(t, e), at({
2008
+ sortable: r,
2009
2009
  name: "choose",
2010
2010
  originalEvent: t
2011
2011
  }), mt(h, s.chosenClass, !0);
2012
- }, s.ignore.split(",").forEach(function(c) {
2013
- mo(h, c.trim(), ki);
2014
- }), C(a, "dragover", Xt), C(a, "mousemove", Xt), C(a, "touchmove", Xt), s.supportPointer ? (C(a, "pointerup", o._onDrop), !this.nativeDraggable && C(a, "pointercancel", o._onDrop)) : (C(a, "mouseup", o._onDrop), C(a, "touchend", o._onDrop), C(a, "touchcancel", o._onDrop)), On && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), ht("delayStart", this, {
2012
+ }, s.ignore.split(",").forEach(function(u) {
2013
+ gr(h, u.trim(), Bi);
2014
+ }), C(a, "dragover", Xt), C(a, "mousemove", Xt), C(a, "touchmove", Xt), s.supportPointer ? (C(a, "pointerup", r._onDrop), !this.nativeDraggable && C(a, "pointercancel", r._onDrop)) : (C(a, "mouseup", r._onDrop), C(a, "touchend", r._onDrop), C(a, "touchcancel", r._onDrop)), On && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), ht("delayStart", this, {
2015
2015
  evt: t
2016
2016
  }), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(Re || Lt))) {
2017
2017
  if (w.eventCanceled) {
2018
2018
  this._onDrop();
2019
2019
  return;
2020
2020
  }
2021
- s.supportPointer ? (C(a, "pointerup", o._disableDelayedDrag), C(a, "pointercancel", o._disableDelayedDrag)) : (C(a, "mouseup", o._disableDelayedDrag), C(a, "touchend", o._disableDelayedDrag), C(a, "touchcancel", o._disableDelayedDrag)), C(a, "mousemove", o._delayedDragTouchMoveHandler), C(a, "touchmove", o._delayedDragTouchMoveHandler), s.supportPointer && C(a, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(l, s.delay);
2021
+ s.supportPointer ? (C(a, "pointerup", r._disableDelayedDrag), C(a, "pointercancel", r._disableDelayedDrag)) : (C(a, "mouseup", r._disableDelayedDrag), C(a, "touchend", r._disableDelayedDrag), C(a, "touchcancel", r._disableDelayedDrag)), C(a, "mousemove", r._delayedDragTouchMoveHandler), C(a, "touchmove", r._delayedDragTouchMoveHandler), s.supportPointer && C(a, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(l, s.delay);
2022
2022
  } else
2023
2023
  l();
2024
2024
  }
@@ -2028,11 +2028,11 @@ w.prototype = /** @lends Sortable.prototype */
2028
2028
  Math.max(Math.abs(e.clientX - this._lastX), Math.abs(e.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
2029
2029
  },
2030
2030
  _disableDelayedDrag: function() {
2031
- h && ki(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2031
+ h && Bi(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2032
2032
  },
2033
2033
  _disableDelayedDragEvents: function() {
2034
2034
  var t = this.el.ownerDocument;
2035
- A(t, "mouseup", this._disableDelayedDrag), A(t, "touchend", this._disableDelayedDrag), A(t, "touchcancel", this._disableDelayedDrag), A(t, "pointerup", this._disableDelayedDrag), A(t, "pointercancel", this._disableDelayedDrag), A(t, "mousemove", this._delayedDragTouchMoveHandler), A(t, "touchmove", this._delayedDragTouchMoveHandler), A(t, "pointermove", this._delayedDragTouchMoveHandler);
2035
+ _(t, "mouseup", this._disableDelayedDrag), _(t, "touchend", this._disableDelayedDrag), _(t, "touchcancel", this._disableDelayedDrag), _(t, "pointerup", this._disableDelayedDrag), _(t, "pointercancel", this._disableDelayedDrag), _(t, "mousemove", this._delayedDragTouchMoveHandler), _(t, "touchmove", this._delayedDragTouchMoveHandler), _(t, "pointermove", this._delayedDragTouchMoveHandler);
2036
2036
  },
2037
2037
  _triggerDragStart: function(t, e) {
2038
2038
  e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? C(document, "pointermove", this._onTouchMove) : e ? C(document, "touchmove", this._onTouchMove) : C(document, "mousemove", this._onTouchMove) : (C(h, "dragend", this), C(V, "dragstart", this._onDragStart));
@@ -2059,7 +2059,7 @@ w.prototype = /** @lends Sortable.prototype */
2059
2059
  },
2060
2060
  _emulateDragOver: function() {
2061
2061
  if (wt) {
2062
- this._lastX = wt.clientX, this._lastY = wt.clientY, So();
2062
+ this._lastX = wt.clientX, this._lastY = wt.clientY, $r();
2063
2063
  for (var t = document.elementFromPoint(wt.clientX, wt.clientY), e = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(wt.clientX, wt.clientY), t !== e); )
2064
2064
  e = t;
2065
2065
  if (h.parentNode[ft]._isOutsideThisEl(t), e)
@@ -2075,77 +2075,77 @@ w.prototype = /** @lends Sortable.prototype */
2075
2075
  break;
2076
2076
  }
2077
2077
  t = e;
2078
- } while (e = go(e));
2079
- _o();
2078
+ } while (e = fr(e));
2079
+ Sr();
2080
2080
  }
2081
2081
  },
2082
2082
  _onTouchMove: function(t) {
2083
2083
  if (qt) {
2084
- var e = this.options, n = e.fallbackTolerance, o = e.fallbackOffset, r = t.touches ? t.touches[0] : t, s = E && ae(E, !0), a = E && s && s.a, l = E && s && s.d, d = Be && rt && Mn(rt), c = (r.clientX - qt.clientX + o.x) / (a || 1) + (d ? d[0] - Bi[0] : 0) / (a || 1), u = (r.clientY - qt.clientY + o.y) / (l || 1) + (d ? d[1] - Bi[1] : 0) / (l || 1);
2084
+ var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, s = E && ae(E, !0), a = E && s && s.a, l = E && s && s.d, d = ke && ot && Mn(ot), u = (o.clientX - qt.clientX + r.x) / (a || 1) + (d ? d[0] - ki[0] : 0) / (a || 1), c = (o.clientY - qt.clientY + r.y) / (l || 1) + (d ? d[1] - ki[1] : 0) / (l || 1);
2085
2085
  if (!w.active && !ne) {
2086
- if (n && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < n)
2086
+ if (n && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < n)
2087
2087
  return;
2088
2088
  this._onDragStart(t, !0);
2089
2089
  }
2090
2090
  if (E) {
2091
- s ? (s.e += c - (Hi || 0), s.f += u - (Vi || 0)) : s = {
2091
+ s ? (s.e += u - (Hi || 0), s.f += c - (Vi || 0)) : s = {
2092
2092
  a: 1,
2093
2093
  b: 0,
2094
2094
  c: 0,
2095
2095
  d: 1,
2096
- e: c,
2097
- f: u
2096
+ e: u,
2097
+ f: c
2098
2098
  };
2099
2099
  var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
2100
- v(E, "webkitTransform", p), v(E, "mozTransform", p), v(E, "msTransform", p), v(E, "transform", p), Hi = c, Vi = u, wt = r;
2100
+ v(E, "webkitTransform", p), v(E, "mozTransform", p), v(E, "msTransform", p), v(E, "transform", p), Hi = u, Vi = c, wt = o;
2101
2101
  }
2102
2102
  t.cancelable && t.preventDefault();
2103
2103
  }
2104
2104
  },
2105
2105
  _appendGhost: function() {
2106
2106
  if (!E) {
2107
- var t = this.options.fallbackOnBody ? document.body : V, e = W(h, !0, Be, !0, t), n = this.options;
2108
- if (Be) {
2109
- for (rt = t; v(rt, "position") === "static" && v(rt, "transform") === "none" && rt !== document; )
2110
- rt = rt.parentNode;
2111
- rt !== document.body && rt !== document.documentElement ? (rt === document && (rt = $t()), e.top += rt.scrollTop, e.left += rt.scrollLeft) : rt = $t(), Bi = Mn(rt);
2107
+ var t = this.options.fallbackOnBody ? document.body : V, e = W(h, !0, ke, !0, t), n = this.options;
2108
+ if (ke) {
2109
+ for (ot = t; v(ot, "position") === "static" && v(ot, "transform") === "none" && ot !== document; )
2110
+ ot = ot.parentNode;
2111
+ ot !== document.body && ot !== document.documentElement ? (ot === document && (ot = $t()), e.top += ot.scrollTop, e.left += ot.scrollLeft) : ot = $t(), ki = Mn(ot);
2112
2112
  }
2113
- E = h.cloneNode(!0), mt(E, n.ghostClass, !1), mt(E, n.fallbackClass, !0), mt(E, n.dragClass, !0), v(E, "transition", ""), v(E, "transform", ""), v(E, "box-sizing", "border-box"), v(E, "margin", 0), v(E, "top", e.top), v(E, "left", e.left), v(E, "width", e.width), v(E, "height", e.height), v(E, "opacity", "0.8"), v(E, "position", Be ? "absolute" : "fixed"), v(E, "zIndex", "100000"), v(E, "pointerEvents", "none"), w.ghost = E, t.appendChild(E), v(E, "transform-origin", In / parseInt(E.style.width) * 100 + "% " + Nn / parseInt(E.style.height) * 100 + "%");
2113
+ E = h.cloneNode(!0), mt(E, n.ghostClass, !1), mt(E, n.fallbackClass, !0), mt(E, n.dragClass, !0), v(E, "transition", ""), v(E, "transform", ""), v(E, "box-sizing", "border-box"), v(E, "margin", 0), v(E, "top", e.top), v(E, "left", e.left), v(E, "width", e.width), v(E, "height", e.height), v(E, "opacity", "0.8"), v(E, "position", ke ? "absolute" : "fixed"), v(E, "zIndex", "100000"), v(E, "pointerEvents", "none"), w.ghost = E, t.appendChild(E), v(E, "transform-origin", In / parseInt(E.style.width) * 100 + "% " + Nn / parseInt(E.style.height) * 100 + "%");
2114
2114
  }
2115
2115
  },
2116
2116
  _onDragStart: function(t, e) {
2117
- var n = this, o = t.dataTransfer, r = n.options;
2117
+ var n = this, r = t.dataTransfer, o = n.options;
2118
2118
  if (ht("dragStart", this, {
2119
2119
  evt: t
2120
2120
  }), w.eventCanceled) {
2121
2121
  this._onDrop();
2122
2122
  return;
2123
2123
  }
2124
- ht("setupClone", this), w.eventCanceled || (k = vo(h), k.removeAttribute("id"), k.draggable = !1, k.style["will-change"] = "", this._hideClone(), mt(k, this.options.chosenClass, !1), w.clone = k), n.cloneId = qe(function() {
2125
- ht("clone", n), !w.eventCanceled && (n.options.removeCloneOnHide || V.insertBefore(k, h), n._hideClone(), at({
2124
+ ht("setupClone", this), w.eventCanceled || (B = br(h), B.removeAttribute("id"), B.draggable = !1, B.style["will-change"] = "", this._hideClone(), mt(B, this.options.chosenClass, !1), w.clone = B), n.cloneId = qe(function() {
2125
+ ht("clone", n), !w.eventCanceled && (n.options.removeCloneOnHide || V.insertBefore(B, h), n._hideClone(), at({
2126
2126
  sortable: n,
2127
2127
  name: "clone"
2128
2128
  }));
2129
- }), !e && mt(h, r.dragClass, !0), e ? (Qe = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (A(document, "mouseup", n._onDrop), A(document, "touchend", n._onDrop), A(document, "touchcancel", n._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(n, o, h)), C(document, "drop", n), v(h, "transform", "translateZ(0)")), ne = !0, n._dragStartId = qe(n._dragStarted.bind(n, e, t)), C(document, "selectstart", n), ge = !0, window.getSelection().removeAllRanges(), we && v(document.body, "user-select", "none");
2129
+ }), !e && mt(h, o.dragClass, !0), e ? (Qe = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (_(document, "mouseup", n._onDrop), _(document, "touchend", n._onDrop), _(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, h)), C(document, "drop", n), v(h, "transform", "translateZ(0)")), ne = !0, n._dragStartId = qe(n._dragStarted.bind(n, e, t)), C(document, "selectstart", n), ge = !0, window.getSelection().removeAllRanges(), we && v(document.body, "user-select", "none");
2130
2130
  },
2131
2131
  // Returns true - if no further action is needed (either inserted or another condition)
2132
2132
  _onDragOver: function(t) {
2133
- var e = this.el, n = t.target, o, r, s, a = this.options, l = a.group, d = w.active, c = He === l, u = a.sort, p = et || d, f, g = this, b = !1;
2133
+ var e = this.el, n = t.target, r, o, s, a = this.options, l = a.group, d = w.active, u = He === l, c = a.sort, p = et || d, f, g = this, b = !1;
2134
2134
  if (Xi) return;
2135
2135
  function N(gt, Ut) {
2136
2136
  ht(gt, g, St({
2137
2137
  evt: t,
2138
- isOwner: c,
2138
+ isOwner: u,
2139
2139
  axis: f ? "vertical" : "horizontal",
2140
2140
  revert: s,
2141
- dragRect: o,
2142
- targetRect: r,
2143
- canSort: u,
2141
+ dragRect: r,
2142
+ targetRect: o,
2143
+ canSort: c,
2144
2144
  fromSortable: p,
2145
2145
  target: n,
2146
2146
  completed: U,
2147
- onMove: function(Ft, _t) {
2148
- return ke(V, e, h, o, Ft, W(Ft), t, _t);
2147
+ onMove: function(Ft, At) {
2148
+ return Be(V, e, h, r, Ft, W(Ft), t, At);
2149
2149
  },
2150
2150
  changed: st
2151
2151
  }, Ut));
@@ -2156,7 +2156,7 @@ w.prototype = /** @lends Sortable.prototype */
2156
2156
  function U(gt) {
2157
2157
  return N("dragOverCompleted", {
2158
2158
  insertion: gt
2159
- }), gt && (c ? d._hideClone() : d._showClone(g), g !== p && (mt(h, et ? et.options.ghostClass : d.options.ghostClass, !1), mt(h, a.ghostClass, !0)), et !== g && g !== w.active ? et = g : g === w.active && et && (et = null), p === g && (g._ignoreWhileAnimating = n), g.animateAll(function() {
2159
+ }), gt && (u ? d._hideClone() : d._showClone(g), g !== p && (mt(h, et ? et.options.ghostClass : d.options.ghostClass, !1), mt(h, a.ghostClass, !0)), et !== g && g !== w.active ? et = g : g === w.active && et && (et = null), p === g && (g._ignoreWhileAnimating = n), g.animateAll(function() {
2160
2160
  N("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
2161
2161
  }), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (ee = null), !a.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[ft]._isOutsideThisEl(t.target), !gt && Xt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), b = !0;
2162
2162
  }
@@ -2173,26 +2173,26 @@ w.prototype = /** @lends Sortable.prototype */
2173
2173
  if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = xt(n, a.draggable, e, !0), N("dragOver"), w.eventCanceled) return b;
2174
2174
  if (h.contains(t.target) || n.animated && n.animatingX && n.animatingY || g._ignoreWhileAnimating === n)
2175
2175
  return U(!1);
2176
- if (Qe = !1, d && !a.disabled && (c ? u || (s = z !== V) : et === this || (this.lastPutMode = He.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
2177
- if (f = this._getDirection(t, n) === "vertical", o = W(h), N("dragOverValid"), w.eventCanceled) return b;
2176
+ if (Qe = !1, d && !a.disabled && (u ? c || (s = z !== V) : et === this || (this.lastPutMode = He.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
2177
+ if (f = this._getDirection(t, n) === "vertical", r = W(h), N("dragOverValid"), w.eventCanceled) return b;
2178
2178
  if (s)
2179
2179
  return z = V, J(), this._hideClone(), N("revert"), w.eventCanceled || (Yt ? V.insertBefore(h, Yt) : V.appendChild(h)), U(!0);
2180
- var K = cn(e, a.draggable);
2180
+ var K = un(e, a.draggable);
2181
2181
  if (!K || Rs(t, f, this) && !K.animated) {
2182
2182
  if (K === h)
2183
2183
  return U(!1);
2184
- if (K && e === t.target && (n = K), n && (r = W(n)), ke(V, e, h, o, n, r, t, !!n) !== !1)
2184
+ if (K && e === t.target && (n = K), n && (o = W(n)), Be(V, e, h, r, n, o, t, !!n) !== !1)
2185
2185
  return J(), K && K.nextSibling ? e.insertBefore(h, K.nextSibling) : e.appendChild(h), z = e, st(), U(!0);
2186
2186
  } else if (K && Ls(t, f, this)) {
2187
2187
  var $ = de(e, 0, a, !0);
2188
2188
  if ($ === h)
2189
2189
  return U(!1);
2190
- if (n = $, r = W(n), ke(V, e, h, o, n, r, t, !1) !== !1)
2190
+ if (n = $, o = W(n), Be(V, e, h, r, n, o, t, !1) !== !1)
2191
2191
  return J(), e.insertBefore(h, $), z = e, st(), U(!0);
2192
2192
  } else if (n.parentNode === e) {
2193
- r = W(n);
2194
- var m = 0, _, M = h.parentNode !== e, L = !Cs(h.animated && h.toRect || o, n.animated && n.toRect || r, f), q = f ? "top" : "left", X = Rn(n, "top", "top") || Rn(h, "top", "top"), H = X ? X.scrollTop : void 0;
2195
- ee !== n && (_ = r[q], Se = !1, Ve = !L && a.invertSwap || M), m = Ms(t, n, r, f, L ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ve, ee === n);
2193
+ o = W(n);
2194
+ var m = 0, A, M = h.parentNode !== e, L = !Cs(h.animated && h.toRect || r, n.animated && n.toRect || o, f), q = f ? "top" : "left", X = Rn(n, "top", "top") || Rn(h, "top", "top"), H = X ? X.scrollTop : void 0;
2195
+ ee !== n && (A = o[q], Se = !1, Ve = !L && a.invertSwap || M), m = Ms(t, n, o, f, L ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ve, ee === n);
2196
2196
  var R;
2197
2197
  if (m !== 0) {
2198
2198
  var Z = bt(h);
@@ -2205,9 +2205,9 @@ w.prototype = /** @lends Sortable.prototype */
2205
2205
  ee = n, $e = m;
2206
2206
  var dt = n.nextElementSibling, tt = !1;
2207
2207
  tt = m === 1;
2208
- var ut = ke(V, e, h, o, n, r, t, tt);
2209
- if (ut !== !1)
2210
- return (ut === 1 || ut === -1) && (tt = ut === 1), Xi = !0, setTimeout(Os, 30), J(), tt && !dt ? e.appendChild(h) : n.parentNode.insertBefore(h, tt ? dt : n), X && bo(X, 0, H - X.scrollTop), z = h.parentNode, _ !== void 0 && !Ve && (Ze = Math.abs(_ - W(n)[q])), st(), U(!0);
2208
+ var ct = Be(V, e, h, r, n, o, t, tt);
2209
+ if (ct !== !1)
2210
+ return (ct === 1 || ct === -1) && (tt = ct === 1), Xi = !0, setTimeout(Os, 30), J(), tt && !dt ? e.appendChild(h) : n.parentNode.insertBefore(h, tt ? dt : n), X && yr(X, 0, H - X.scrollTop), z = h.parentNode, A !== void 0 && !Ve && (Ze = Math.abs(A - W(n)[q])), st(), U(!0);
2211
2211
  }
2212
2212
  if (e.contains(h))
2213
2213
  return U(!1);
@@ -2216,11 +2216,11 @@ w.prototype = /** @lends Sortable.prototype */
2216
2216
  },
2217
2217
  _ignoreWhileAnimating: null,
2218
2218
  _offMoveEvents: function() {
2219
- A(document, "mousemove", this._onTouchMove), A(document, "touchmove", this._onTouchMove), A(document, "pointermove", this._onTouchMove), A(document, "dragover", Xt), A(document, "mousemove", Xt), A(document, "touchmove", Xt);
2219
+ _(document, "mousemove", this._onTouchMove), _(document, "touchmove", this._onTouchMove), _(document, "pointermove", this._onTouchMove), _(document, "dragover", Xt), _(document, "mousemove", Xt), _(document, "touchmove", Xt);
2220
2220
  },
2221
2221
  _offUpEvents: function() {
2222
2222
  var t = this.el.ownerDocument;
2223
- A(t, "mouseup", this._onDrop), A(t, "touchend", this._onDrop), A(t, "pointerup", this._onDrop), A(t, "pointercancel", this._onDrop), A(t, "touchcancel", this._onDrop), A(document, "selectstart", this);
2223
+ _(t, "mouseup", this._onDrop), _(t, "touchend", this._onDrop), _(t, "pointerup", this._onDrop), _(t, "pointercancel", this._onDrop), _(t, "touchcancel", this._onDrop), _(document, "selectstart", this);
2224
2224
  },
2225
2225
  _onDrop: function(t) {
2226
2226
  var e = this.el, n = this.options;
@@ -2230,7 +2230,7 @@ w.prototype = /** @lends Sortable.prototype */
2230
2230
  this._nulling();
2231
2231
  return;
2232
2232
  }
2233
- ne = !1, Ve = !1, Se = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yi(this.cloneId), Yi(this._dragStartId), this.nativeDraggable && (A(document, "drop", this), A(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), we && v(document.body, "user-select", ""), v(h, "transform", ""), t && (ge && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), E && E.parentNode && E.parentNode.removeChild(E), (V === z || et && et.lastPutMode !== "clone") && k && k.parentNode && k.parentNode.removeChild(k), h && (this.nativeDraggable && A(h, "dragend", this), ki(h), h.style["will-change"] = "", ge && !ne && mt(h, et ? et.options.ghostClass : this.options.ghostClass, !1), mt(h, this.options.chosenClass, !1), at({
2233
+ ne = !1, Ve = !1, Se = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yi(this.cloneId), Yi(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), we && v(document.body, "user-select", ""), v(h, "transform", ""), t && (ge && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), E && E.parentNode && E.parentNode.removeChild(E), (V === z || et && et.lastPutMode !== "clone") && B && B.parentNode && B.parentNode.removeChild(B), h && (this.nativeDraggable && _(h, "dragend", this), Bi(h), h.style["will-change"] = "", ge && !ne && mt(h, et ? et.options.ghostClass : this.options.ghostClass, !1), mt(h, this.options.chosenClass, !1), at({
2234
2234
  sortable: this,
2235
2235
  name: "unchoose",
2236
2236
  toEl: z,
@@ -2277,7 +2277,7 @@ w.prototype = /** @lends Sortable.prototype */
2277
2277
  }), this.save()))), this._nulling();
2278
2278
  },
2279
2279
  _nulling: function() {
2280
- ht("nulling", this), V = h = z = E = Yt = k = ze = Nt = qt = wt = ge = yt = It = se = Ee = ee = $e = et = He = w.dragged = w.ghost = w.clone = w.active = null, ei.forEach(function(t) {
2280
+ ht("nulling", this), V = h = z = E = Yt = B = ze = Nt = qt = wt = ge = yt = It = se = Ee = ee = $e = et = He = w.dragged = w.ghost = w.clone = w.active = null, ei.forEach(function(t) {
2281
2281
  t.checked = !0;
2282
2282
  }), ei.length = Hi = Vi = 0;
2283
2283
  },
@@ -2301,8 +2301,8 @@ w.prototype = /** @lends Sortable.prototype */
2301
2301
  * @returns {String[]}
2302
2302
  */
2303
2303
  toArray: function() {
2304
- for (var t = [], e, n = this.el.children, o = 0, r = n.length, s = this.options; o < r; o++)
2305
- e = n[o], xt(e, s.draggable, this.el, !1) && t.push(e.getAttribute(s.dataIdAttr) || Ns(e));
2304
+ for (var t = [], e, n = this.el.children, r = 0, o = n.length, s = this.options; r < o; r++)
2305
+ e = n[r], xt(e, s.draggable, this.el, !1) && t.push(e.getAttribute(s.dataIdAttr) || Ns(e));
2306
2306
  return t;
2307
2307
  },
2308
2308
  /**
@@ -2310,12 +2310,12 @@ w.prototype = /** @lends Sortable.prototype */
2310
2310
  * @param {String[]} order order of the items
2311
2311
  */
2312
2312
  sort: function(t, e) {
2313
- var n = {}, o = this.el;
2314
- this.toArray().forEach(function(r, s) {
2315
- var a = o.children[s];
2316
- xt(a, this.options.draggable, o, !1) && (n[r] = a);
2317
- }, this), e && this.captureAnimationState(), t.forEach(function(r) {
2318
- n[r] && (o.removeChild(n[r]), o.appendChild(n[r]));
2313
+ var n = {}, r = this.el;
2314
+ this.toArray().forEach(function(o, s) {
2315
+ var a = r.children[s];
2316
+ xt(a, this.options.draggable, r, !1) && (n[o] = a);
2317
+ }, this), e && this.captureAnimationState(), t.forEach(function(o) {
2318
+ n[o] && (r.removeChild(n[o]), r.appendChild(n[o]));
2319
2319
  }), e && this.animateAll();
2320
2320
  },
2321
2321
  /**
@@ -2344,8 +2344,8 @@ w.prototype = /** @lends Sortable.prototype */
2344
2344
  var n = this.options;
2345
2345
  if (e === void 0)
2346
2346
  return n[t];
2347
- var o = Me.modifyOption(this, t, e);
2348
- typeof o < "u" ? n[t] = o : n[t] = e, t === "group" && $o(n);
2347
+ var r = Me.modifyOption(this, t, e);
2348
+ typeof r < "u" ? n[t] = r : n[t] = e, t === "group" && Er(n);
2349
2349
  },
2350
2350
  /**
2351
2351
  * Destroy
@@ -2353,14 +2353,14 @@ w.prototype = /** @lends Sortable.prototype */
2353
2353
  destroy: function() {
2354
2354
  ht("destroy", this);
2355
2355
  var t = this.el;
2356
- t[ft] = null, A(t, "mousedown", this._onTapStart), A(t, "touchstart", this._onTapStart), A(t, "pointerdown", this._onTapStart), this.nativeDraggable && (A(t, "dragover", this), A(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(e) {
2356
+ t[ft] = null, _(t, "mousedown", this._onTapStart), _(t, "touchstart", this._onTapStart), _(t, "pointerdown", this._onTapStart), this.nativeDraggable && (_(t, "dragover", this), _(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(e) {
2357
2357
  e.removeAttribute("draggable");
2358
2358
  }), this._onDrop(), this._disableDelayedDragEvents(), ti.splice(ti.indexOf(this.el), 1), this.el = t = null;
2359
2359
  },
2360
2360
  _hideClone: function() {
2361
2361
  if (!Nt) {
2362
2362
  if (ht("hideClone", this), w.eventCanceled) return;
2363
- v(k, "display", "none"), this.options.removeCloneOnHide && k.parentNode && k.parentNode.removeChild(k), Nt = !0;
2363
+ v(B, "display", "none"), this.options.removeCloneOnHide && B.parentNode && B.parentNode.removeChild(B), Nt = !0;
2364
2364
  }
2365
2365
  },
2366
2366
  _showClone: function(t) {
@@ -2370,46 +2370,46 @@ w.prototype = /** @lends Sortable.prototype */
2370
2370
  }
2371
2371
  if (Nt) {
2372
2372
  if (ht("showClone", this), w.eventCanceled) return;
2373
- h.parentNode == V && !this.options.group.revertClone ? V.insertBefore(k, h) : Yt ? V.insertBefore(k, Yt) : V.appendChild(k), this.options.group.revertClone && this.animate(h, k), v(k, "display", ""), Nt = !1;
2373
+ h.parentNode == V && !this.options.group.revertClone ? V.insertBefore(B, h) : Yt ? V.insertBefore(B, Yt) : V.appendChild(B), this.options.group.revertClone && this.animate(h, B), v(B, "display", ""), Nt = !1;
2374
2374
  }
2375
2375
  }
2376
2376
  };
2377
2377
  function Ps(i) {
2378
2378
  i.dataTransfer && (i.dataTransfer.dropEffect = "move"), i.cancelable && i.preventDefault();
2379
2379
  }
2380
- function ke(i, t, e, n, o, r, s, a) {
2381
- var l, d = i[ft], c = d.options.onMove, u;
2380
+ function Be(i, t, e, n, r, o, s, a) {
2381
+ var l, d = i[ft], u = d.options.onMove, c;
2382
2382
  return window.CustomEvent && !Lt && !Re ? l = new CustomEvent("move", {
2383
2383
  bubbles: !0,
2384
2384
  cancelable: !0
2385
- }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = i, l.dragged = e, l.draggedRect = n, l.related = o || t, l.relatedRect = r || W(t), l.willInsertAfter = a, l.originalEvent = s, i.dispatchEvent(l), c && (u = c.call(d, l, s)), u;
2385
+ }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = i, l.dragged = e, l.draggedRect = n, l.related = r || t, l.relatedRect = o || W(t), l.willInsertAfter = a, l.originalEvent = s, i.dispatchEvent(l), u && (c = u.call(d, l, s)), c;
2386
2386
  }
2387
- function ki(i) {
2387
+ function Bi(i) {
2388
2388
  i.draggable = !1;
2389
2389
  }
2390
2390
  function Os() {
2391
2391
  Xi = !1;
2392
2392
  }
2393
2393
  function Ls(i, t, e) {
2394
- var n = W(de(e.el, 0, e.options, !0)), o = wo(e.el, e.options, E), r = 10;
2395
- return t ? i.clientX < o.left - r || i.clientY < n.top && i.clientX < n.right : i.clientY < o.top - r || i.clientY < n.bottom && i.clientX < n.left;
2394
+ var n = W(de(e.el, 0, e.options, !0)), r = vr(e.el, e.options, E), o = 10;
2395
+ return t ? i.clientX < r.left - o || i.clientY < n.top && i.clientX < n.right : i.clientY < r.top - o || i.clientY < n.bottom && i.clientX < n.left;
2396
2396
  }
2397
2397
  function Rs(i, t, e) {
2398
- var n = W(cn(e.el, e.options.draggable)), o = wo(e.el, e.options, E), r = 10;
2399
- return t ? i.clientX > o.right + r || i.clientY > n.bottom && i.clientX > n.left : i.clientY > o.bottom + r || i.clientX > n.right && i.clientY > n.top;
2398
+ var n = W(un(e.el, e.options.draggable)), r = vr(e.el, e.options, E), o = 10;
2399
+ return t ? i.clientX > r.right + o || i.clientY > n.bottom && i.clientX > n.left : i.clientY > r.bottom + o || i.clientX > n.right && i.clientY > n.top;
2400
2400
  }
2401
- function Ms(i, t, e, n, o, r, s, a) {
2402
- var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width, c = n ? e.top : e.left, u = n ? e.bottom : e.right, p = !1;
2401
+ function Ms(i, t, e, n, r, o, s, a) {
2402
+ var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width, u = n ? e.top : e.left, c = n ? e.bottom : e.right, p = !1;
2403
2403
  if (!s) {
2404
- if (a && Ze < d * o) {
2405
- if (!Se && ($e === 1 ? l > c + d * r / 2 : l < u - d * r / 2) && (Se = !0), Se)
2404
+ if (a && Ze < d * r) {
2405
+ if (!Se && ($e === 1 ? l > u + d * o / 2 : l < c - d * o / 2) && (Se = !0), Se)
2406
2406
  p = !0;
2407
- else if ($e === 1 ? l < c + Ze : l > u - Ze)
2407
+ else if ($e === 1 ? l < u + Ze : l > c - Ze)
2408
2408
  return -$e;
2409
- } else if (l > c + d * (1 - o) / 2 && l < u - d * (1 - o) / 2)
2409
+ } else if (l > u + d * (1 - r) / 2 && l < c - d * (1 - r) / 2)
2410
2410
  return Is(t);
2411
2411
  }
2412
- return p = p || s, p && (l < c + d * r / 2 || l > u - d * r / 2) ? l > c + d / 2 ? 1 : -1 : 0;
2412
+ return p = p || s, p && (l < u + d * o / 2 || l > c - d * o / 2) ? l > u + d / 2 ? 1 : -1 : 0;
2413
2413
  }
2414
2414
  function Is(i) {
2415
2415
  return bt(h) < bt(i) ? 1 : -1;
@@ -2432,26 +2432,26 @@ function qe(i) {
2432
2432
  function Yi(i) {
2433
2433
  return clearTimeout(i);
2434
2434
  }
2435
- _i && C(document, "touchmove", function(i) {
2435
+ Ai && C(document, "touchmove", function(i) {
2436
2436
  (w.active || ne) && i.cancelable && i.preventDefault();
2437
2437
  });
2438
2438
  w.utils = {
2439
2439
  on: C,
2440
- off: A,
2440
+ off: _,
2441
2441
  css: v,
2442
- find: mo,
2442
+ find: gr,
2443
2443
  is: function(t, e) {
2444
2444
  return !!xt(t, e, t, !1);
2445
2445
  },
2446
2446
  extend: vs,
2447
- throttle: yo,
2447
+ throttle: mr,
2448
2448
  closest: xt,
2449
2449
  toggleClass: mt,
2450
- clone: vo,
2450
+ clone: br,
2451
2451
  index: bt,
2452
2452
  nextTick: qe,
2453
2453
  cancelNextTick: Yi,
2454
- detectDirection: Eo,
2454
+ detectDirection: xr,
2455
2455
  getChild: de,
2456
2456
  expando: ft
2457
2457
  };
@@ -2494,7 +2494,7 @@ function Vs() {
2494
2494
  !this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
2495
2495
  },
2496
2496
  drop: function() {
2497
- this.sortable.nativeDraggable ? A(document, "dragover", this._handleAutoScroll) : (A(document, "pointermove", this._handleFallbackAutoScroll), A(document, "touchmove", this._handleFallbackAutoScroll), A(document, "mousemove", this._handleFallbackAutoScroll)), Vn(), Xe(), ws();
2497
+ this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : (_(document, "pointermove", this._handleFallbackAutoScroll), _(document, "touchmove", this._handleFallbackAutoScroll), _(document, "mousemove", this._handleFallbackAutoScroll)), Vn(), Xe(), ws();
2498
2498
  },
2499
2499
  nulling: function() {
2500
2500
  ii = Wi = me = Gi = ye = Ui = Fi = null, Y.length = 0;
@@ -2503,14 +2503,14 @@ function Vs() {
2503
2503
  this._handleAutoScroll(e, !0);
2504
2504
  },
2505
2505
  _handleAutoScroll: function(e, n) {
2506
- var o = this, r = (e.touches ? e.touches[0] : e).clientX, s = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, s);
2506
+ var r = this, o = (e.touches ? e.touches[0] : e).clientX, s = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(o, s);
2507
2507
  if (ii = e, n || this.options.forceAutoScrollFallback || Re || Lt || we) {
2508
2508
  ji(e, this.options, a, n);
2509
2509
  var l = Vt(a, !0);
2510
- Gi && (!ye || r !== Ui || s !== Fi) && (ye && Vn(), ye = setInterval(function() {
2511
- var d = Vt(document.elementFromPoint(r, s), !0);
2512
- d !== l && (l = d, Xe()), ji(e, o.options, d, n);
2513
- }, 10), Ui = r, Fi = s);
2510
+ Gi && (!ye || o !== Ui || s !== Fi) && (ye && Vn(), ye = setInterval(function() {
2511
+ var d = Vt(document.elementFromPoint(o, s), !0);
2512
+ d !== l && (l = d, Xe()), ji(e, r.options, d, n);
2513
+ }, 10), Ui = o, Fi = s);
2514
2514
  } else {
2515
2515
  if (!this.options.bubbleScroll || Vt(a, !0) === $t()) {
2516
2516
  Xe();
@@ -2532,36 +2532,36 @@ function Xe() {
2532
2532
  function Vn() {
2533
2533
  clearInterval(ye);
2534
2534
  }
2535
- var ji = yo(function(i, t, e, n) {
2535
+ var ji = mr(function(i, t, e, n) {
2536
2536
  if (t.scroll) {
2537
- var o = (i.touches ? i.touches[0] : i).clientX, r = (i.touches ? i.touches[0] : i).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = $t(), d = !1, c;
2538
- Wi !== e && (Wi = e, Xe(), me = t.scroll, c = t.scrollFn, me === !0 && (me = Vt(e, !0)));
2539
- var u = 0, p = me;
2537
+ var r = (i.touches ? i.touches[0] : i).clientX, o = (i.touches ? i.touches[0] : i).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = $t(), d = !1, u;
2538
+ Wi !== e && (Wi = e, Xe(), me = t.scroll, u = t.scrollFn, me === !0 && (me = Vt(e, !0)));
2539
+ var c = 0, p = me;
2540
2540
  do {
2541
- var f = p, g = W(f), b = g.top, N = g.bottom, J = g.left, U = g.right, st = g.width, K = g.height, $ = void 0, m = void 0, _ = f.scrollWidth, M = f.scrollHeight, L = v(f), q = f.scrollLeft, X = f.scrollTop;
2542
- f === l ? ($ = st < _ && (L.overflowX === "auto" || L.overflowX === "scroll" || L.overflowX === "visible"), m = K < M && (L.overflowY === "auto" || L.overflowY === "scroll" || L.overflowY === "visible")) : ($ = st < _ && (L.overflowX === "auto" || L.overflowX === "scroll"), m = K < M && (L.overflowY === "auto" || L.overflowY === "scroll"));
2543
- var H = $ && (Math.abs(U - o) <= s && q + st < _) - (Math.abs(J - o) <= s && !!q), R = m && (Math.abs(N - r) <= s && X + K < M) - (Math.abs(b - r) <= s && !!X);
2544
- if (!Y[u])
2545
- for (var Z = 0; Z <= u; Z++)
2541
+ var f = p, g = W(f), b = g.top, N = g.bottom, J = g.left, U = g.right, st = g.width, K = g.height, $ = void 0, m = void 0, A = f.scrollWidth, M = f.scrollHeight, L = v(f), q = f.scrollLeft, X = f.scrollTop;
2542
+ f === l ? ($ = st < A && (L.overflowX === "auto" || L.overflowX === "scroll" || L.overflowX === "visible"), m = K < M && (L.overflowY === "auto" || L.overflowY === "scroll" || L.overflowY === "visible")) : ($ = st < A && (L.overflowX === "auto" || L.overflowX === "scroll"), m = K < M && (L.overflowY === "auto" || L.overflowY === "scroll"));
2543
+ var H = $ && (Math.abs(U - r) <= s && q + st < A) - (Math.abs(J - r) <= s && !!q), R = m && (Math.abs(N - o) <= s && X + K < M) - (Math.abs(b - o) <= s && !!X);
2544
+ if (!Y[c])
2545
+ for (var Z = 0; Z <= c; Z++)
2546
2546
  Y[Z] || (Y[Z] = {});
2547
- (Y[u].vx != H || Y[u].vy != R || Y[u].el !== f) && (Y[u].el = f, Y[u].vx = H, Y[u].vy = R, clearInterval(Y[u].pid), (H != 0 || R != 0) && (d = !0, Y[u].pid = setInterval((function() {
2547
+ (Y[c].vx != H || Y[c].vy != R || Y[c].el !== f) && (Y[c].el = f, Y[c].vx = H, Y[c].vy = R, clearInterval(Y[c].pid), (H != 0 || R != 0) && (d = !0, Y[c].pid = setInterval((function() {
2548
2548
  n && this.layer === 0 && w.active._onTouchMove(ii);
2549
2549
  var dt = Y[this.layer].vy ? Y[this.layer].vy * a : 0, tt = Y[this.layer].vx ? Y[this.layer].vx * a : 0;
2550
- typeof c == "function" && c.call(w.dragged.parentNode[ft], tt, dt, i, ii, Y[this.layer].el) !== "continue" || bo(Y[this.layer].el, tt, dt);
2550
+ typeof u == "function" && u.call(w.dragged.parentNode[ft], tt, dt, i, ii, Y[this.layer].el) !== "continue" || yr(Y[this.layer].el, tt, dt);
2551
2551
  }).bind({
2552
- layer: u
2553
- }), 24))), u++;
2552
+ layer: c
2553
+ }), 24))), c++;
2554
2554
  } while (t.bubbleScroll && p !== l && (p = Vt(p, !1)));
2555
2555
  Gi = d;
2556
2556
  }
2557
- }, 30), Ao = function(t) {
2558
- var e = t.originalEvent, n = t.putSortable, o = t.dragEl, r = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
2557
+ }, 30), Ar = function(t) {
2558
+ var e = t.originalEvent, n = t.putSortable, r = t.dragEl, o = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
2559
2559
  if (e) {
2560
- var d = n || r;
2560
+ var d = n || o;
2561
2561
  a();
2562
- var c = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, u = document.elementFromPoint(c.clientX, c.clientY);
2563
- l(), d && !d.el.contains(u) && (s("spill"), this.onSpill({
2564
- dragEl: o,
2562
+ var u = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, c = document.elementFromPoint(u.clientX, u.clientY);
2563
+ l(), d && !d.el.contains(c) && (s("spill"), this.onSpill({
2564
+ dragEl: r,
2565
2565
  putSortable: n
2566
2566
  }));
2567
2567
  }
@@ -2577,10 +2577,10 @@ hn.prototype = {
2577
2577
  onSpill: function(t) {
2578
2578
  var e = t.dragEl, n = t.putSortable;
2579
2579
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
2580
- var o = de(this.sortable.el, this.startIndex, this.options);
2581
- o ? this.sortable.el.insertBefore(e, o) : this.sortable.el.appendChild(e), this.sortable.animateAll(), n && n.animateAll();
2580
+ var r = de(this.sortable.el, this.startIndex, this.options);
2581
+ r ? this.sortable.el.insertBefore(e, r) : this.sortable.el.appendChild(e), this.sortable.animateAll(), n && n.animateAll();
2582
2582
  },
2583
- drop: Ao
2583
+ drop: Ar
2584
2584
  };
2585
2585
  Ot(hn, {
2586
2586
  pluginName: "revertOnSpill"
@@ -2589,77 +2589,77 @@ function pn() {
2589
2589
  }
2590
2590
  pn.prototype = {
2591
2591
  onSpill: function(t) {
2592
- var e = t.dragEl, n = t.putSortable, o = n || this.sortable;
2593
- o.captureAnimationState(), e.parentNode && e.parentNode.removeChild(e), o.animateAll();
2592
+ var e = t.dragEl, n = t.putSortable, r = n || this.sortable;
2593
+ r.captureAnimationState(), e.parentNode && e.parentNode.removeChild(e), r.animateAll();
2594
2594
  },
2595
- drop: Ao
2595
+ drop: Ar
2596
2596
  };
2597
2597
  Ot(pn, {
2598
2598
  pluginName: "removeOnSpill"
2599
2599
  });
2600
2600
  w.mount(new Vs());
2601
2601
  w.mount(pn, hn);
2602
- const Bs = (i) => {
2602
+ const ks = (i) => {
2603
2603
  const t = i.item;
2604
2604
  let e = Array.prototype.slice.call(t.parentNode.childNodes);
2605
2605
  return e = e.filter(
2606
2606
  (n) => n.nodeType != Node.ELEMENT_NODE || !n.classList.contains("sortable-fallback")
2607
2607
  ), e;
2608
- }, ks = (i, t, e, n, o, r) => {
2608
+ }, Bs = (i, t, e, n, r, o) => {
2609
2609
  const a = i.item.parentNode;
2610
2610
  for (const b of e)
2611
2611
  a.appendChild(b);
2612
2612
  if (i.oldIndex == i.newIndex) return;
2613
2613
  const l = n.getArray(), d = (
2614
2614
  /** @type {Element & {layer: import("ol/layer").Layer}} */
2615
- i.item.querySelector("eox-layercontrol-layer").layer.get(o)
2616
- ), c = l.find((b) => b.get(o) === d), u = r.dataset.layer, p = l.find(
2617
- (b) => b.get(o) == u
2615
+ i.item.querySelector("eox-layercontrol-layer").layer.get(r)
2616
+ ), u = l.find((b) => b.get(r) === d), c = o.dataset.layer, p = l.find(
2617
+ (b) => b.get(r) == c
2618
2618
  );
2619
2619
  let f, g;
2620
2620
  for (f = 0; f < l.length; f++)
2621
- if (l[f] == c) {
2621
+ if (l[f] == u) {
2622
2622
  n.removeAt(f);
2623
2623
  break;
2624
2624
  }
2625
2625
  for (g = 0; g < l.length; g++)
2626
2626
  if (l[g] === p) {
2627
- f > g ? n.insertAt(g, c) : n.insertAt(g + 1, c);
2627
+ f > g ? n.insertAt(g, u) : n.insertAt(g + 1, u);
2628
2628
  break;
2629
2629
  }
2630
2630
  t.requestUpdate();
2631
2631
  };
2632
2632
  function Us(i, t, e, n) {
2633
- let o = [], r = null;
2633
+ let r = [], o = null;
2634
2634
  i._sortable = w.create(i, {
2635
2635
  handle: ".drag-handle",
2636
2636
  filter: ".drag-handle.disabled",
2637
2637
  swapThreshold: 0.5,
2638
2638
  animation: 150,
2639
2639
  easing: "cubic-bezier(1, 0, 0, 1)",
2640
- onStart: (s) => o = Bs(s),
2640
+ onStart: (s) => r = ks(s),
2641
2641
  onMove: (s) => {
2642
- r = s.related;
2642
+ o = s.related;
2643
2643
  },
2644
- onEnd: (s) => ks(s, n, o, t, e, r)
2644
+ onEnd: (s) => Bs(s, n, r, t, e, o)
2645
2645
  });
2646
2646
  }
2647
2647
  function Fs(i, t, e, n) {
2648
- const o = i.getArray();
2649
- let r = !1;
2650
- o.forEach((s) => {
2648
+ const r = i.getArray();
2649
+ let o = !1;
2650
+ r.forEach((s) => {
2651
2651
  const a = s.ol_uid;
2652
- s.get(t) || (s.set(t, a), r = !0), s.get(e) || (s.set(e, `layer ${a}`), r = !0), r && n.requestUpdate();
2652
+ s.get(t) || (s.set(t, a), o = !0), s.get(e) || (s.set(e, `layer ${a}`), o = !0), o && n.requestUpdate();
2653
2653
  });
2654
2654
  }
2655
2655
  function fn(i, t, e) {
2656
2656
  let n = [];
2657
- const o = (r, s, a) => {
2657
+ const r = (o, s, a) => {
2658
2658
  n = [
2659
2659
  ...n,
2660
- ...r.filter((d) => d.get(s) === a)
2660
+ ...o.filter((d) => d.get(s) === a)
2661
2661
  ];
2662
- const l = r.filter(
2662
+ const l = o.filter(
2663
2663
  (d) => (
2664
2664
  /** @type {import("ol/layer").Group} */
2665
2665
  d.getLayers
@@ -2668,50 +2668,50 @@ function fn(i, t, e) {
2668
2668
  return l.length > 0 && l.forEach(
2669
2669
  (d) => (
2670
2670
  // @ts-expect-error TODO
2671
- o(d.getLayers().getArray(), s, a)
2671
+ r(d.getLayers().getArray(), s, a)
2672
2672
  )
2673
2673
  ), n;
2674
2674
  };
2675
- return o(i, t, e), n;
2675
+ return r(i, t, e), n;
2676
2676
  }
2677
2677
  function js(i, t, e) {
2678
2678
  if (!i || !t) return !1;
2679
- if (!Co(i, e)) return !0;
2680
- const n = i.get("minZoom"), o = i.get("maxZoom"), r = t.getView().getZoom();
2681
- return r > n && r < o;
2679
+ if (!_r(i, e)) return !0;
2680
+ const n = i.get("minZoom"), r = i.get("maxZoom"), o = t.getView().getZoom();
2681
+ return o > n && o < r;
2682
2682
  }
2683
- function Co(i, t) {
2683
+ function _r(i, t) {
2684
2684
  const e = i.get("minZoom"), n = i.get("maxZoom");
2685
2685
  return !!(t && (e !== -1 / 0 || n !== 1 / 0));
2686
2686
  }
2687
2687
  function zs(i, t) {
2688
- var o, r, s;
2689
- return !i || !t ? void 0 : i.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(
2688
+ var r, o, s;
2689
+ return !i || !t ? void 0 : i.getLayers ? "group" : ((s = (r = t.getInteractions().getArray().filter((a) => a.freehand_ !== void 0).map((a) => a.source_)) == null ? void 0 : r.ol_uid) == null ? void 0 : s.includes(
2690
2690
  // @ts-expect-error TODO
2691
- i.getSource ? (r = i.getSource()) == null ? void 0 : r.ol_uid : void 0
2691
+ i.getSource ? (o = i.getSource()) == null ? void 0 : o.ol_uid : void 0
2692
2692
  )) ? "draw" : i.declutter_ !== void 0 ? "vector" : "raster";
2693
2693
  }
2694
2694
  const Zs = (i, t, e) => {
2695
2695
  let n = t;
2696
2696
  return e.layer.getSource().getTileUrlFunction() && (n || (n = e.layer.getSource().getTileUrlFunction()), e.layer.getSource().setTileUrlFunction(
2697
- (...o) => ps(n(...o), i)
2697
+ (...r) => ps(n(...r), i)
2698
2698
  ), e.layer.getSource().setKey(/* @__PURE__ */ new Date())), n;
2699
2699
  };
2700
2700
  function qs(i, t, e) {
2701
- const n = "updateStyleVariables" in t, o = "setStyle" in t, r = n ? (
2701
+ const n = "updateStyleVariables" in t, r = "setStyle" in t, o = n ? (
2702
2702
  /** @type {import('ol/layer/WebGLTile').default} */
2703
2703
  t.style_
2704
2704
  ) : e.style;
2705
- let s = r == null ? void 0 : r.variables;
2705
+ let s = o == null ? void 0 : o.variables;
2706
2706
  if (s) {
2707
2707
  const a = gn(i);
2708
- if (r.variables = {
2708
+ if (o.variables = {
2709
2709
  ...s,
2710
2710
  ...a
2711
2711
  }, n)
2712
2712
  t.updateStyleVariables(a);
2713
- else if (o) {
2714
- const l = Xs(r);
2713
+ else if (r) {
2714
+ const l = Xs(o);
2715
2715
  t.setStyle(
2716
2716
  l
2717
2717
  );
@@ -2726,8 +2726,8 @@ const gn = (i) => {
2726
2726
  /** @type {Record<string,any>} */
2727
2727
  i[e]
2728
2728
  );
2729
- for (const o in n)
2730
- t[o] = n == null ? void 0 : n[o];
2729
+ for (const r in n)
2730
+ t[r] = n == null ? void 0 : n[r];
2731
2731
  } else
2732
2732
  t[e] = i == null ? void 0 : i[e];
2733
2733
  return t;
@@ -2737,10 +2737,10 @@ function Xs(i) {
2737
2737
  if ("variables" in i) {
2738
2738
  let e = JSON.stringify(i);
2739
2739
  const { variables: n } = i;
2740
- for (const o in n)
2741
- typeof n[o] == "number" ? e = e.replaceAll(`["var","${o}"]`, n[o]) : e = e.replaceAll(
2742
- `["var","${o}"]`,
2743
- `"${n[o]}"`
2740
+ for (const r in n)
2741
+ typeof n[r] == "number" ? e = e.replaceAll(`["var","${r}"]`, n[r]) : e = e.replaceAll(
2742
+ `["var","${r}"]`,
2743
+ `"${n[r]}"`
2744
2744
  );
2745
2745
  t = JSON.parse(e);
2746
2746
  }
@@ -2750,53 +2750,53 @@ const Ys = (i, t) => {
2750
2750
  var e;
2751
2751
  if (i)
2752
2752
  return !("domainProperties" in i) || "domain" in i ? { ...i } : (e = Object.keys(i)) == null ? void 0 : e.reduce(
2753
- (n, o) => {
2754
- if (o === "domainProperties") {
2755
- const r = gn(t);
2756
- n.domain = i[o].map((s) => r[s]);
2753
+ (n, r) => {
2754
+ if (r === "domainProperties") {
2755
+ const o = gn(t);
2756
+ n.domain = i[r].map((s) => o[s]);
2757
2757
  } else
2758
- n[o] = i[o];
2758
+ n[r] = i[r];
2759
2759
  return n;
2760
2760
  },
2761
2761
  /** @type {import("../components/layer-legend").LegendConfig} */
2762
2762
  {}
2763
2763
  );
2764
2764
  };
2765
- function To(i, t) {
2765
+ function Cr(i, t) {
2766
2766
  var n;
2767
2767
  let e = {};
2768
- for (const o in i) {
2769
- const r = i[o].type;
2770
- if (r && r !== "object")
2771
- e[o] = r === "number" ? Number(t[o]) : t[o];
2772
- else if (typeof i[o] == "object" && ((n = i[o]) != null && n.properties)) {
2773
- const s = To(
2774
- i[o].properties,
2768
+ for (const r in i) {
2769
+ const o = i[r].type;
2770
+ if (o && o !== "object")
2771
+ e[r] = o === "number" ? Number(t[r]) : t[r];
2772
+ else if (typeof i[r] == "object" && ((n = i[r]) != null && n.properties)) {
2773
+ const s = Cr(
2774
+ i[r].properties,
2775
2775
  t
2776
2776
  );
2777
- Object.keys(s).length > 0 && (e[o] = s);
2777
+ Object.keys(s).length > 0 && (e[r] = s);
2778
2778
  }
2779
2779
  }
2780
2780
  return e;
2781
2781
  }
2782
2782
  function Ws(i, t) {
2783
- var r, s, a, l, d;
2783
+ var o, s, a, l, d;
2784
2784
  if (!t) return null;
2785
2785
  let e = {}, n = "updateStyleVariables" in i ? (
2786
2786
  /** @type {import("ol/layer/WebGLTile").default} */
2787
- (r = i.style_) == null ? void 0 : r.variables
2787
+ (o = i.style_) == null ? void 0 : o.variables
2788
2788
  ) : (s = t.style) == null ? void 0 : s.variables;
2789
2789
  if ((t.type === "style" || t.style) && n)
2790
2790
  e = n;
2791
2791
  else if ((l = (a = i.getSource()) == null ? void 0 : a.getTileUrlFunction) != null && l.call(a)) {
2792
- const c = new URL(i.getSource().getTileUrlFunction()([0, 0, 0]));
2793
- e = Object.fromEntries(c.searchParams.entries());
2792
+ const u = new URL(i.getSource().getTileUrlFunction()([0, 0, 0]));
2793
+ e = Object.fromEntries(u.searchParams.entries());
2794
2794
  } else return null;
2795
- const o = To(
2795
+ const r = Cr(
2796
2796
  ((d = t.schema) == null ? void 0 : d.properties) || t.schema,
2797
2797
  e
2798
2798
  );
2799
- return Object.keys(o).length ? o : null;
2799
+ return Object.keys(r).length ? r : null;
2800
2800
  }
2801
2801
  const Gs = (i, t) => i == null ? void 0 : i.filter(
2802
2802
  (e) => ["remove", "sort"].filter((n) => t != null && t.get("layerControlDisable") ? n !== "sort" : !0).includes(e)
@@ -2824,20 +2824,20 @@ const Gs = (i, t) => i == null ? void 0 : i.filter(
2824
2824
  <span class="button sort-icon icon drag-handle">
2825
2825
  ${i ? "═" : O}
2826
2826
  </span>
2827
- `, Do = (i) => {
2827
+ `, Tr = (i) => {
2828
2828
  var e;
2829
2829
  const t = ["layerControlHide", "layerControlOptional"];
2830
- return (e = i == null ? void 0 : i.getArray()) == null ? void 0 : e.filter((n) => t.every((o) => !n.get(o)));
2830
+ return (e = i == null ? void 0 : i.getArray()) == null ? void 0 : e.filter((n) => t.every((r) => !n.get(r)));
2831
2831
  };
2832
2832
  /**
2833
2833
  * @license
2834
2834
  * Copyright 2020 Google LLC
2835
2835
  * SPDX-License-Identifier: BSD-3-Clause
2836
2836
  */
2837
- const Po = sn(class extends an {
2837
+ const Dr = sn(class extends an {
2838
2838
  constructor(i) {
2839
2839
  if (super(i), i.type !== Mt.PROPERTY && i.type !== Mt.ATTRIBUTE && i.type !== Mt.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
2840
- if (!gr(i)) throw Error("`live` bindings can only contain a single expression");
2840
+ if (!go(i)) throw Error("`live` bindings can only contain a single expression");
2841
2841
  }
2842
2842
  render(i) {
2843
2843
  return i;
@@ -2850,7 +2850,7 @@ const Po = sn(class extends an {
2850
2850
  } else if (i.type === Mt.BOOLEAN_ATTRIBUTE) {
2851
2851
  if (!!t === e.hasAttribute(n)) return vt;
2852
2852
  } else if (i.type === Mt.ATTRIBUTE && e.getAttribute(n) === t + "") return vt;
2853
- return no(i), t;
2853
+ return nr(i), t;
2854
2854
  }
2855
2855
  });
2856
2856
  /**
@@ -2885,77 +2885,77 @@ function* Ye(i, t) {
2885
2885
  for (const n of i) yield t(n, e++);
2886
2886
  }
2887
2887
  }
2888
- var Bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2889
- function Oo(i) {
2888
+ var kt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2889
+ function Pr(i) {
2890
2890
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
2891
2891
  }
2892
- var zi, Bn;
2892
+ var zi, kn;
2893
2893
  function ia() {
2894
- if (Bn) return zi;
2895
- Bn = 1;
2896
- var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, r = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof Bt == "object" && Bt && Bt.Object === Object && Bt, d = typeof self == "object" && self && self.Object === Object && self, c = l || d || Function("return this")(), u = Object.prototype, p = u.toString, f = Math.max, g = Math.min, b = function() {
2897
- return c.Date.now();
2894
+ if (kn) return zi;
2895
+ kn = 1;
2896
+ var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, r = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof kt == "object" && kt && kt.Object === Object && kt, d = typeof self == "object" && self && self.Object === Object && self, u = l || d || Function("return this")(), c = Object.prototype, p = c.toString, f = Math.max, g = Math.min, b = function() {
2897
+ return u.Date.now();
2898
2898
  };
2899
- function N(m, _, M) {
2900
- var L, q, X, H, R, Z, dt = 0, tt = !1, ut = !1, gt = !0;
2899
+ function N(m, A, M) {
2900
+ var L, q, X, H, R, Z, dt = 0, tt = !1, ct = !1, gt = !0;
2901
2901
  if (typeof m != "function")
2902
2902
  throw new TypeError(i);
2903
- _ = $(_) || 0, U(M) && (tt = !!M.leading, ut = "maxWait" in M, X = ut ? f($(M.maxWait) || 0, _) : X, gt = "trailing" in M ? !!M.trailing : gt);
2903
+ A = $(A) || 0, U(M) && (tt = !!M.leading, ct = "maxWait" in M, X = ct ? f($(M.maxWait) || 0, A) : X, gt = "trailing" in M ? !!M.trailing : gt);
2904
2904
  function Ut(I) {
2905
- var ct = L, Rt = q;
2906
- return L = q = void 0, dt = I, H = m.apply(Rt, ct), H;
2905
+ var ut = L, Rt = q;
2906
+ return L = q = void 0, dt = I, H = m.apply(Rt, ut), H;
2907
2907
  }
2908
2908
  function Ie(I) {
2909
- return dt = I, R = setTimeout(jt, _), tt ? Ut(I) : H;
2909
+ return dt = I, R = setTimeout(jt, A), tt ? Ut(I) : H;
2910
2910
  }
2911
2911
  function Ft(I) {
2912
- var ct = I - Z, Rt = I - dt, mn = _ - ct;
2913
- return ut ? g(mn, X - Rt) : mn;
2912
+ var ut = I - Z, Rt = I - dt, mn = A - ut;
2913
+ return ct ? g(mn, X - Rt) : mn;
2914
2914
  }
2915
- function _t(I) {
2916
- var ct = I - Z, Rt = I - dt;
2917
- return Z === void 0 || ct >= _ || ct < 0 || ut && Rt >= X;
2915
+ function At(I) {
2916
+ var ut = I - Z, Rt = I - dt;
2917
+ return Z === void 0 || ut >= A || ut < 0 || ct && Rt >= X;
2918
2918
  }
2919
2919
  function jt() {
2920
2920
  var I = b();
2921
- if (_t(I))
2921
+ if (At(I))
2922
2922
  return Ne(I);
2923
2923
  R = setTimeout(jt, Ft(I));
2924
2924
  }
2925
2925
  function Ne(I) {
2926
2926
  return R = void 0, gt && L ? Ut(I) : (L = q = void 0, H);
2927
2927
  }
2928
- function Ai() {
2928
+ function _i() {
2929
2929
  R !== void 0 && clearTimeout(R), dt = 0, L = Z = q = R = void 0;
2930
2930
  }
2931
2931
  function he() {
2932
2932
  return R === void 0 ? H : Ne(b());
2933
2933
  }
2934
- function B() {
2935
- var I = b(), ct = _t(I);
2936
- if (L = arguments, q = this, Z = I, ct) {
2934
+ function k() {
2935
+ var I = b(), ut = At(I);
2936
+ if (L = arguments, q = this, Z = I, ut) {
2937
2937
  if (R === void 0)
2938
2938
  return Ie(Z);
2939
- if (ut)
2940
- return R = setTimeout(jt, _), Ut(Z);
2939
+ if (ct)
2940
+ return R = setTimeout(jt, A), Ut(Z);
2941
2941
  }
2942
- return R === void 0 && (R = setTimeout(jt, _)), H;
2942
+ return R === void 0 && (R = setTimeout(jt, A)), H;
2943
2943
  }
2944
- return B.cancel = Ai, B.flush = he, B;
2944
+ return k.cancel = _i, k.flush = he, k;
2945
2945
  }
2946
- function J(m, _, M) {
2946
+ function J(m, A, M) {
2947
2947
  var L = !0, q = !0;
2948
2948
  if (typeof m != "function")
2949
2949
  throw new TypeError(i);
2950
- return U(M) && (L = "leading" in M ? !!M.leading : L, q = "trailing" in M ? !!M.trailing : q), N(m, _, {
2950
+ return U(M) && (L = "leading" in M ? !!M.leading : L, q = "trailing" in M ? !!M.trailing : q), N(m, A, {
2951
2951
  leading: L,
2952
- maxWait: _,
2952
+ maxWait: A,
2953
2953
  trailing: q
2954
2954
  });
2955
2955
  }
2956
2956
  function U(m) {
2957
- var _ = typeof m;
2958
- return !!m && (_ == "object" || _ == "function");
2957
+ var A = typeof m;
2958
+ return !!m && (A == "object" || A == "function");
2959
2959
  }
2960
2960
  function st(m) {
2961
2961
  return !!m && typeof m == "object";
@@ -2969,27 +2969,27 @@ function ia() {
2969
2969
  if (K(m))
2970
2970
  return t;
2971
2971
  if (U(m)) {
2972
- var _ = typeof m.valueOf == "function" ? m.valueOf() : m;
2973
- m = U(_) ? _ + "" : _;
2972
+ var A = typeof m.valueOf == "function" ? m.valueOf() : m;
2973
+ m = U(A) ? A + "" : A;
2974
2974
  }
2975
2975
  if (typeof m != "string")
2976
2976
  return m === 0 ? m : +m;
2977
2977
  m = m.replace(n, "");
2978
- var M = r.test(m);
2979
- return M || s.test(m) ? a(m.slice(2), M ? 2 : 8) : o.test(m) ? t : +m;
2978
+ var M = o.test(m);
2979
+ return M || s.test(m) ? a(m.slice(2), M ? 2 : 8) : r.test(m) ? t : +m;
2980
2980
  }
2981
2981
  return zi = J, zi;
2982
2982
  }
2983
2983
  var na = ia();
2984
- const kn = /* @__PURE__ */ Oo(na);
2984
+ const Bn = /* @__PURE__ */ Pr(na);
2985
2985
  /**
2986
2986
  * @license
2987
2987
  * Copyright 2018 Google LLC
2988
2988
  * SPDX-License-Identifier: BSD-3-Clause
2989
2989
  */
2990
2990
  const Ue = (i) => i ?? O;
2991
- var ni, oi;
2992
- class Lo extends lt {
2991
+ var ni, ri;
2992
+ class Or extends lt {
2993
2993
  constructor() {
2994
2994
  super();
2995
2995
  P(this, ni, qn`
@@ -3002,7 +3002,7 @@ class Lo extends lt {
3002
3002
  --cle-padding: 0;
3003
3003
  }
3004
3004
  `);
3005
- P(this, oi, "");
3005
+ P(this, ri, "");
3006
3006
  this.unstyled = !1, this.noShadow = !1, this.layerLegend = null, this.layer = null;
3007
3007
  }
3008
3008
  /**
@@ -3025,7 +3025,7 @@ class Lo extends lt {
3025
3025
  ), x`
3026
3026
  <style>
3027
3027
  ${T(this, ni)}
3028
- ${!this.unstyled && T(this, oi)}
3028
+ ${!this.unstyled && T(this, ri)}
3029
3029
  </style>
3030
3030
  ${G(
3031
3031
  this.layerLegend,
@@ -3053,8 +3053,8 @@ class Lo extends lt {
3053
3053
  `;
3054
3054
  }
3055
3055
  }
3056
- ni = new WeakMap(), oi = new WeakMap(), // Define static properties for the component
3057
- F(Lo, "properties", {
3056
+ ni = new WeakMap(), ri = new WeakMap(), // Define static properties for the component
3057
+ F(Or, "properties", {
3058
3058
  unstyled: { type: Boolean },
3059
3059
  noShadow: { type: Boolean },
3060
3060
  layerLegend: { attribute: !1 },
@@ -3062,10 +3062,10 @@ F(Lo, "properties", {
3062
3062
  });
3063
3063
  customElements.define(
3064
3064
  "eox-layercontrol-layer-legend",
3065
- Lo
3065
+ Or
3066
3066
  );
3067
- var At, le, De, Pe, Ki, ri, si;
3068
- class Ro extends lt {
3067
+ var _t, le, De, Pe, Ki, oi, si;
3068
+ class Lr extends lt {
3069
3069
  constructor() {
3070
3070
  super();
3071
3071
  P(this, Pe);
@@ -3074,7 +3074,7 @@ class Ro extends lt {
3074
3074
  *
3075
3075
  * @type {{[key: string]: any}}
3076
3076
  */
3077
- P(this, At, {});
3077
+ P(this, _t, {});
3078
3078
  /**
3079
3079
  * data input by the user
3080
3080
  *
@@ -3087,7 +3087,7 @@ class Ro extends lt {
3087
3087
  * @type {Function}
3088
3088
  */
3089
3089
  P(this, De);
3090
- P(this, ri, qn`
3090
+ P(this, oi, qn`
3091
3091
  color-legend {
3092
3092
  --cle-background: transparent;
3093
3093
  --cle-font-family: inherit;
@@ -3097,7 +3097,7 @@ class Ro extends lt {
3097
3097
  }
3098
3098
  `);
3099
3099
  P(this, si, "");
3100
- this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = kn(j(this, Pe, Ki), 1e3);
3100
+ this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = Bn(j(this, Pe, Ki), 1e3);
3101
3101
  }
3102
3102
  /** Decide what type of throttling to do based on layerConfig type
3103
3103
  *
@@ -3106,7 +3106,7 @@ class Ro extends lt {
3106
3106
  updated(e) {
3107
3107
  if (e.has("layerConfig")) {
3108
3108
  const n = this.layerConfig.type === "style" || this.layerConfig.style ? 100 : 1e3;
3109
- this.throttleDataChange = kn(j(this, Pe, Ki), n), this.requestUpdate();
3109
+ this.throttleDataChange = Bn(j(this, Pe, Ki), n), this.requestUpdate();
3110
3110
  }
3111
3111
  }
3112
3112
  /**
@@ -3119,7 +3119,7 @@ class Ro extends lt {
3119
3119
  * Renders a JSON form for configuration options of a layer.
3120
3120
  */
3121
3121
  render() {
3122
- Qt(this, le, Ws(this.layer, this.layerConfig)), Object.keys(T(this, At)).length !== 0 && Qt(this, le, T(this, At)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
3122
+ Qt(this, le, Ws(this.layer, this.layerConfig)), Object.keys(T(this, _t)).length !== 0 && Qt(this, le, T(this, _t)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
3123
3123
  const e = {
3124
3124
  disable_edit_json: !0,
3125
3125
  disable_collapse: !0,
@@ -3127,7 +3127,7 @@ class Ro extends lt {
3127
3127
  };
3128
3128
  return x`
3129
3129
  <style>
3130
- ${T(this, ri)}
3130
+ ${T(this, oi)}
3131
3131
  ${!this.unstyled && T(this, si)}
3132
3132
  </style>
3133
3133
  ${G(
@@ -3142,7 +3142,7 @@ class Ro extends lt {
3142
3142
  .layer=${this.layer}
3143
3143
  .layerLegend=${Ys(
3144
3144
  this.layerConfig.legend,
3145
- T(this, At)
3145
+ T(this, _t)
3146
3146
  )}
3147
3147
  ></eox-layercontrol-layer-legend>
3148
3148
  `
@@ -3159,21 +3159,21 @@ class Ro extends lt {
3159
3159
  `;
3160
3160
  }
3161
3161
  }
3162
- At = new WeakMap(), le = new WeakMap(), De = new WeakMap(), Pe = new WeakSet(), /**
3162
+ _t = new WeakMap(), le = new WeakMap(), De = new WeakMap(), Pe = new WeakSet(), /**
3163
3163
  * Handles changes in eox-jsonform values.
3164
3164
  *
3165
3165
  * @param {{ detail: { value: string; }; }} e
3166
3166
  */
3167
3167
  Ki = function(e) {
3168
- Qt(this, At, e.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? qs(T(this, At), this.layer, this.layerConfig) : console.error(
3168
+ Qt(this, _t, e.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? qs(T(this, _t), this.layer, this.layerConfig) : console.error(
3169
3169
  `Layer type ${this.layer.get("type") ?? ""} does not support styles configuration`
3170
3170
  ) : Qt(this, De, Zs(
3171
- T(this, At),
3171
+ T(this, _t),
3172
3172
  T(this, De),
3173
3173
  this
3174
3174
  )), this.requestUpdate();
3175
- }, ri = new WeakMap(), si = new WeakMap(), // Define static properties for the component
3176
- F(Ro, "properties", {
3175
+ }, oi = new WeakMap(), si = new WeakMap(), // Define static properties for the component
3176
+ F(Lr, "properties", {
3177
3177
  layer: { attribute: !1 },
3178
3178
  unstyled: { type: Boolean },
3179
3179
  noShadow: { type: Boolean },
@@ -3181,10 +3181,10 @@ F(Ro, "properties", {
3181
3181
  });
3182
3182
  customElements.define(
3183
3183
  "eox-layercontrol-layerconfig",
3184
- Ro
3184
+ Lr
3185
3185
  );
3186
- var ai, Io, li, di;
3187
- class Mo extends lt {
3186
+ var ai, Mr, li, di;
3187
+ class Rr extends lt {
3188
3188
  constructor() {
3189
3189
  super();
3190
3190
  P(this, ai);
@@ -3217,12 +3217,14 @@ class Mo extends lt {
3217
3217
  ?unstyled=${this.unstyled}
3218
3218
  .for=${void 0}
3219
3219
  .layer=${void 0}
3220
+ .navigation=${this.layerDatetime.navigation ?? !1}
3220
3221
  .slider=${this.layerDatetime.slider ?? !1}
3221
- .disablePlay=${this.layerDatetime.disablePlay ?? !1}
3222
+ .play=${this.layerDatetime.play ?? !1}
3222
3223
  .controlValues=${this.layerDatetime.controlValues}
3223
3224
  .controlProperty=${void 0}
3224
3225
  current-step=${this.layerDatetime.currentStep}
3225
- @stepchange=${j(this, ai, Io)}
3226
+ .displayFormat=${this.layerDatetime.displayFormat}
3227
+ @stepchange=${j(this, ai, Mr)}
3226
3228
  ></eox-timecontrol>
3227
3229
  `
3228
3230
  )}
@@ -3235,7 +3237,7 @@ ai = new WeakSet(), /**
3235
3237
  *
3236
3238
  * @param {CustomEvent<{currentStep:string|number}>} evt
3237
3239
  **/
3238
- Io = function(e) {
3240
+ Mr = function(e) {
3239
3241
  this.dispatchEvent(
3240
3242
  new CustomEvent("datetime:updated", {
3241
3243
  bubbles: !0,
@@ -3246,7 +3248,7 @@ Io = function(e) {
3246
3248
  })
3247
3249
  ), this.layerDatetime.currentStep = e.detail.currentStep, this.requestUpdate();
3248
3250
  }, li = new WeakMap(), di = new WeakMap(), // Define static properties for the component
3249
- F(Mo, "properties", {
3251
+ F(Rr, "properties", {
3250
3252
  unstyled: { type: Boolean },
3251
3253
  noShadow: { type: Boolean },
3252
3254
  layerDatetime: { attribute: !1 },
@@ -3254,15 +3256,15 @@ F(Mo, "properties", {
3254
3256
  });
3255
3257
  customElements.define(
3256
3258
  "eox-layercontrol-layer-datetime",
3257
- Mo
3259
+ Rr
3258
3260
  );
3259
- var Oe, ui, ci;
3260
- class No extends lt {
3261
+ var Oe, ci, ui;
3262
+ class Ir extends lt {
3261
3263
  constructor() {
3262
3264
  super();
3263
3265
  /** @param {number} index */
3264
3266
  P(this, Oe, (e) => (this.selectedTab === e || this.toolsAsList) && "highlighted");
3265
- P(this, ui, `
3267
+ P(this, ci, `
3266
3268
  .tabbed figure,
3267
3269
  .listed figure {
3268
3270
  margin: 0;
@@ -3284,12 +3286,8 @@ class No extends lt {
3284
3286
  .listed .tab.highlighted {
3285
3287
  display: block;
3286
3288
  }
3287
- .tabbed label.highlighted,
3288
- .listed label.highlighted {
3289
- background: lightgrey;
3290
- }
3291
3289
  `);
3292
- P(this, ci, `
3290
+ P(this, ui, `
3293
3291
  .listed label {
3294
3292
  display: flex;
3295
3293
  justify-content: start;
@@ -3307,7 +3305,9 @@ class No extends lt {
3307
3305
  font-size: small;
3308
3306
  }
3309
3307
  .tabbed label.highlighted {
3310
- background: #00417011;
3308
+ border: 1px solid #0041701a;
3309
+ border-radius: 2px;
3310
+ border-bottom: none;
3311
3311
  pointer-events: none;
3312
3312
  }
3313
3313
  nav div label,
@@ -3321,8 +3321,9 @@ class No extends lt {
3321
3321
  }
3322
3322
  figure {
3323
3323
  background: var(--background-color);
3324
- border-top: 1px solid #0041701a;
3325
- padding: 8px var(--padding);
3324
+ border: 1px solid #0041701a;
3325
+ border-radius: 2px;
3326
+ padding: var(--padding-vertical) var(--padding);
3326
3327
  }
3327
3328
  `);
3328
3329
  this.actions = [], this.selectedTab = 0, this.tabs = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1;
@@ -3338,16 +3339,16 @@ class No extends lt {
3338
3339
  * It sets up navigation for switching between tabs and offers customizable icons for tabs and actions.
3339
3340
  */
3340
3341
  render() {
3341
- const e = this.tabs, n = this.actions, o = n.length + e.length > 1;
3342
+ const e = this.tabs, n = this.actions, r = n.length + e.length > 1;
3342
3343
  return x`
3343
3344
  <style>
3344
- ${T(this, ui)}
3345
- ${!this.unstyled && T(this, ci)}
3345
+ ${T(this, ci)}
3346
+ ${!this.unstyled && T(this, ui)}
3346
3347
  </style>
3347
3348
  <div class="${this.toolsAsList ? "listed" : "tabbed"}">
3348
3349
  <!-- Navigation for tabs and actions -->
3349
3350
  ${G(
3350
- o,
3351
+ r,
3351
3352
  () => x`
3352
3353
  <nav>
3353
3354
  ${G(
@@ -3357,13 +3358,13 @@ class No extends lt {
3357
3358
  <!-- Labels for tabs -->
3358
3359
  ${Ye(
3359
3360
  e,
3360
- (r, s) => x`
3361
+ (o, s) => x`
3361
3362
  <label
3362
3363
  class=${T(this, Oe).call(this, s)}
3363
3364
  @click=${() => this.selectedTab = s}
3364
3365
  >
3365
3366
  <!-- Customizable icon for each tab -->
3366
- <slot name=${`${r}-icon`}>${r}</slot>
3367
+ <slot name=${`${o}-icon`}>${o}</slot>
3367
3368
  </label>
3368
3369
  `
3369
3370
  )}
@@ -3372,10 +3373,10 @@ class No extends lt {
3372
3373
  <!-- Icons for actions -->
3373
3374
  ${Ye(
3374
3375
  n,
3375
- (r) => x`
3376
+ (o) => x`
3376
3377
  <span>
3377
3378
  <!-- Customizable icon for each action -->
3378
- <slot name=${`${r}-icon`}>${r}</slot>
3379
+ <slot name=${`${o}-icon`}>${o}</slot>
3379
3380
  </span>
3380
3381
  `
3381
3382
  )}
@@ -3389,20 +3390,20 @@ class No extends lt {
3389
3390
  <!-- Content for each tab -->
3390
3391
  ${Ye(
3391
3392
  e,
3392
- (r, s) => x`
3393
+ (o, s) => x`
3393
3394
  ${G(
3394
3395
  this.toolsAsList,
3395
3396
  () => x`
3396
3397
  <label>
3397
3398
  <!-- Customizable icon for each tab -->
3398
- <slot name=${`${r}-icon`}>${r}</slot>
3399
- <span>${r}</span>
3399
+ <slot name=${`${o}-icon`}>${o}</slot>
3400
+ <span>${o}</span>
3400
3401
  </label>
3401
3402
  `
3402
3403
  )}
3403
3404
  <div class="tab ${T(this, Oe).call(this, s)}">
3404
3405
  <!-- Content slot for each tab -->
3405
- <slot name=${`${r}-content`}>${r}</slot>
3406
+ <slot name=${`${o}-content`}>${o}</slot>
3406
3407
  </div>
3407
3408
  `
3408
3409
  )}
@@ -3411,8 +3412,8 @@ class No extends lt {
3411
3412
  `;
3412
3413
  }
3413
3414
  }
3414
- Oe = new WeakMap(), ui = new WeakMap(), ci = new WeakMap(), // Define static properties for the component
3415
- F(No, "properties", {
3415
+ Oe = new WeakMap(), ci = new WeakMap(), ui = new WeakMap(), // Define static properties for the component
3416
+ F(Ir, "properties", {
3416
3417
  actions: { attribute: !1 },
3417
3418
  selectedTab: { state: !0 },
3418
3419
  tabs: { attribute: !1 },
@@ -3420,262 +3421,10 @@ F(No, "properties", {
3420
3421
  noShadow: { type: Boolean },
3421
3422
  toolsAsList: { type: Boolean }
3422
3423
  });
3423
- customElements.define("eox-layercontrol-tools-items", No);
3424
- const oa = `
3425
- button,
3426
- .button {
3427
- /* TODO: why does this only work here and not from :root? */
3428
- --primary-color: #004170;
3429
- --primary-color-hover: #004170CC;
3430
- --error-color: #FF5252;
3431
-
3432
- display: inline-flex;
3433
- position: relative;
3434
- align-items: center;
3435
- color: #fff;
3436
- border-width: 0;
3437
- outline: none;
3438
- border-radius: 4px;
3439
- padding: 16px;
3440
- height: 36px;
3441
- cursor: pointer;
3442
- font-family: inherit;
3443
- font-size: 0.875rem;
3444
- text-transform: uppercase;
3445
- letter-spacing: 1.25px;
3446
- font-weight: 500;
3447
- box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
3448
- transition-property: box-shadow, transform, opacity, background;
3449
- transition-duration: 0.28s;
3450
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
3451
- }
3452
-
3453
- button:hover:not([disabled]):not(.icon),
3454
- .button:hover:not([disabled]):not(.icon) {
3455
- box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
3456
- background: var(--primary-color-hover);
3457
- }
3458
-
3459
- button, button:active,
3460
- .button, .button:active {
3461
- background: var(--primary-color);
3462
- }
3463
-
3464
- button[disabled],
3465
- .button[disabled] {
3466
- opacity: 0.5;
3467
- cursor: not-allowed;
3468
- }
3469
-
3470
- button.block,
3471
- .button.block {
3472
- display: block;
3473
- }
3474
-
3475
- button.outline,
3476
- .button.outline {
3477
- background: transparent;
3478
- box-shadow: none;
3479
- color: var(--primary-color);
3480
- outline: 1px solid var(--primary-color);
3481
- }
3482
-
3483
- button.outline:hover,
3484
- .button.outline:hover {
3485
- background: transparent;
3486
- }
3487
-
3488
- button.icon,
3489
- .button.icon {
3490
- background: transparent;
3491
- border: none;
3492
- box-shadow: none;
3493
- padding: 0;
3494
- border-radius: 50%;
3495
- width: 24px;
3496
- height: 24px;
3497
- text-indent: -9999px;
3498
- }
3499
-
3500
- button.icon-text,
3501
- .button.icon-text {
3502
- text-indent: 26px;
3503
- }
3504
-
3505
- button.icon-text.block,
3506
- .button.icon-text.block {
3507
- text-indent: 20px;
3508
- }
3509
-
3510
- button.icon:before, button.icon-text:before,
3511
- .button.icon:before, .button.icon-text:before {
3512
- position: absolute;
3513
- text-indent: 0;
3514
- line-height: initial;
3515
- }
3516
-
3517
- button.icon-text.block:before,
3518
- .button.icon-text.block:before {
3519
- text-indent: -54px;
3520
- }
3521
-
3522
- button.icon:before,
3523
- .button.icon:before {
3524
- width: 24px;
3525
- height: 24px;
3526
- margin-right: 0;
3527
- }
3528
-
3529
- button.icon-text:before,
3530
- .button.icon-text:before {
3531
- width: 18px;
3532
- height: 18px;
3533
- }
3534
-
3535
- button.small,
3536
- .button.small {
3537
- height: 28px;
3538
- padding: 12.4px;
3539
- font-size: .75rem;
3540
- }
3541
-
3542
- button.smallest.icon,
3543
- button.smallest.icon::before {
3544
- height: 16px;
3545
- width: 16px;
3546
- padding: 0px;
3547
- }
3548
- `, ra = `
3549
- input[type=radio] {
3550
- appearance: none;
3551
- -webkit-appearance: none;
3552
- margin: 0;
3553
- cursor: pointer;
3554
- display: flex;
3555
- flex-direction: row;
3556
- align-items: center;
3557
- width: 24px;
3558
- height: 24px;
3559
- }
3560
-
3561
- label span {
3562
- font-size: small;
3563
- }
3564
-
3565
- input[type=radio]:after {
3566
- display: block;
3567
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E");
3568
- width: 20px;
3569
- height: 20px;
3570
- margin-right: 4px;
3571
- }
3572
- input[type=radio]:checked:after {
3573
- 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");
3574
-
3575
- }
3576
- `, Ho = `
3577
- input[type=checkbox] {
3578
- appearance: none;
3579
- -webkit-appearance: none;
3580
- margin: 0;
3581
- cursor: pointer;
3582
- display: flex;
3583
- flex-direction: row;
3584
- align-items: center;
3585
- width: 24px;
3586
- height: 24px;
3587
- }
3588
- input[type=checkbox]:after {
3589
- display: block;
3590
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E");
3591
- width: 20px;
3592
- height: 20px;
3593
- margin-right: 4px;
3594
- }
3595
- input[type=checkbox]:checked:after {
3596
- 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");
3597
-
3598
- }
3599
- `, sa = `
3600
- input[type="range"] {
3601
- -webkit-appearance: none;
3602
- width: 90%;
3603
- margin-left: 5%;
3604
- height: 6px;
3605
- border-radius: 5px;
3606
- background: #d7dcdf;
3607
- outline: none;
3608
- padding: 0;
3609
- }
3610
- input[type="range"]::-webkit-slider-thumb {
3611
- appearance: none;
3612
- width: 15px;
3613
- height: 15px;
3614
- border-radius: 50%;
3615
- background: #2c3e50;
3616
- cursor: pointer;
3617
- transition: background 0.15s ease-in-out;
3618
- }
3619
- .range-slider {
3620
- margin: 60px 0 0 0;
3621
- }
3622
- .range-slider {
3623
- width: 100%;
3624
- }
3625
- input[type="range"]::-webkit-slider-thumb:hover {
3626
- background: #00416F;
3627
- }
3628
- input[type="range"]:active::-webkit-slider-thumb {
3629
- background: #00416F;
3630
- }
3631
- input[type="range"]::-moz-range-thumb {
3632
- width: 15px;
3633
- height: 15px;
3634
- border: 0;
3635
- border-radius: 50%;
3636
- background: #2c3e50;
3637
- cursor: pointer;
3638
- transition: background 0.15s ease-in-out;
3639
- }
3640
- input[type="range"]::-moz-range-thumb:hover {
3641
- background: #00416F;
3642
- }
3643
- input[type="range"]:active::-moz-range-thumb {
3644
- background: #00416F;
3645
- }
3646
- input[type="range"]:focus::-webkit-slider-thumb {
3647
- box-shadow: 0 0 0 3px #fff0, 0 0 0 6px #00416F00;
3648
- }
3649
- .range-slider__value {
3650
- display: inline-block;
3651
- position: relative;
3652
- width: 60px;
3653
- color: #fff;
3654
- line-height: 20px;
3655
- text-align: center;
3656
- border-radius: 3px;
3657
- background: #2c3e50;
3658
- padding: 5px 10px;
3659
- margin-left: 8px;
3660
- }
3661
- .range-slider__value:after {
3662
- position: absolute;
3663
- top: 8px;
3664
- left: -7px;
3665
- width: 0;
3666
- height: 0;
3667
- border-top: 7px solid transparent;
3668
- border-right: 7px solid #2c3e50;
3669
- border-bottom: 7px solid transparent;
3670
- content: '';
3671
- }
3672
-
3673
- input::-moz-focus-inner, input::-moz-focus-outer {
3674
- border: 0;
3675
- }
3676
- `;
3424
+ customElements.define("eox-layercontrol-tools-items", Ir);
3425
+ const ra = "button,.button { /* TODO: why does this only work here and not from :root? */ --primary-color: #004170; --primary-color-hover: #004170cc; --error-color: #ff5252; display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.block,.button.block { display: block;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon-text.block,.button.icon-text.block { text-indent: 20px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon-text.block:before,.button.icon-text.block:before { text-indent: -54px;}button.icon:before,.button.icon:before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0px;}", oa = `input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { 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");}`, Nr = `input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { 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");}`, sa = ':root,:host { --range-slider-height: 6px; --range-slider-thumb-size: 15px; --range-slider-thumb-border-radius: 50%; --range-slider-color: #004170; --range-slider-track-color: #d7dcdf; --range-slider-track-border-radius: 0;}input[type="range"] { -webkit-appearance: none; border: none; color: var(--range-slider-color); overflow: hidden; padding-left: 0; margin-left: 7px;}/*webkit*/input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: var(--range-slider-thumb-size); height: var(--range-slider-thumb-size); border-radius: var(--range-slider-thumb-border-radius); background: var(--range-slider-color); border: none; box-shadow: none; margin-top: calc( var(--range-slider-height) * 0.5 - var(--range-slider-thumb-size) * 0.5 );}input[type="range"]::-webkit-slider-runnable-track { height: var(--range-slider-height); border: none; border-radius: var(--range-slider-track-border-radius); background: var(--range-slider-track-color); box-shadow: none;}input[type="range"]::-webkit-slider-thumb { cursor: grab; --clip-edges: 4px; --clip-top: calc( (var(--range-slider-thumb-size) - var(--range-slider-height)) * 0.5 ); --clip-bottom: calc(var(--range-slider-thumb-size) - var(--clip-top)); --clip-further: calc(100% + 1px); --box-fill: calc( -100vmax - var(--range-slider-thumb-size, var(--range-slider-thumb-size)) + 1px ) 0 0 100vmax currentColor; background: linear-gradient(currentColor 0 0) scroll no-repeat left center / 50% calc(var(--range-slider-height) + 1px); background-color: currentColor; box-shadow: var(--box-fill); border-radius: var(--range-slider-thumb-size, var(--range-slider-thumb-size)); filter: brightness(100%); clip-path: polygon( 100% -1px, var(--clip-edges) -1px, 0 var(--clip-top), -100vmax var(--clip-top), -100vmax var(--clip-bottom), 0 var(--clip-bottom), var(--clip-edges) 100%, var(--clip-further) var(--clip-further) );}/*mozilla*/input[type="range"]::-moz-range-thumb { width: var(--range-slider-thumb-size); height: var(--range-slider-thumb-size); border-radius: var(--range-slider-thumb-border-radius); background: var(--range-slider-color); border: none; box-shadow: none; cursor: grab;}input[type="range"]::-moz-range-track { border: none; border-radius: var(--range-slider-track-border-radius); background: var(--range-slider-track-color); box-shadow: none;}input[type="range"]::-moz-range-progress { appearance: none; background: currentColor; transition-delay: 30ms;}input[type="range"]::-moz-range-track,input[type="range"]::-moz-range-progress { height: calc(var(--range-slider-height)); border-radius: var(--range-slider-track-border-radius);}/*toolcool slider*/tc-range-slider { --height: var(--range-slider-height); --panel-bg: var(--range-slider-track-color); --panel-bg-hover: var(--range-slider-track-color); --panel-bg-fill: var(--range-slider-color); --panel-bg-border-radius: var(--range-slider-track-border-radius); --pointer-bg: var(--range-slider-color); --pointer-bg-hover: var(--range-slider-color); --pointer-bg-focus: var(--range-slider-color); --pointer-width: var(--range-slider-thumb-size); --pointer-height: var(--range-slider-thumb-size); --pointer-shadow: none; --pointer-shadow-hover: none; --pointer-shadow-focus: none; --pointer-border: none; --pointer-border-hover: 0; --pointer-border-focus: 0; --pointer-border-radius: var(--range-slider-thumb-border-radius);}';
3677
3426
  var hi, pi;
3678
- class Vo extends lt {
3427
+ class Hr extends lt {
3679
3428
  constructor() {
3680
3429
  super();
3681
3430
  // Initializes '_removeButton' invoking 'removeButton' function with 'this' context.
@@ -3703,7 +3452,7 @@ class Vo extends lt {
3703
3452
  min="0"
3704
3453
  max="1"
3705
3454
  step="0.01"
3706
- value=${Po((e = this.layer) == null ? void 0 : e.getOpacity())}
3455
+ value=${Dr((e = this.layer) == null ? void 0 : e.getOpacity())}
3707
3456
  @input=${(n) => this.layer.setOpacity(parseFloat(n.target.value))}
3708
3457
  />
3709
3458
  </div>
@@ -3761,9 +3510,9 @@ class Vo extends lt {
3761
3510
  });
3762
3511
  P(this, hi, "");
3763
3512
  P(this, pi, `
3764
- ${oa}
3765
- ${ra}
3766
- ${Ho}
3513
+ ${ra}
3514
+ ${oa}
3515
+ ${Nr}
3767
3516
  ${sa}
3768
3517
  .drag-handle {
3769
3518
  cursor: n-resize;
@@ -3892,10 +3641,10 @@ class Vo extends lt {
3892
3641
  }
3893
3642
  render() {
3894
3643
  var l;
3895
- const e = Gs(this.tools, this.layer), n = Js(this.tools, this.layer), o = this[`_${e == null ? void 0 : e[0]}Button`] ? (
3644
+ const e = Gs(this.tools, this.layer), n = Js(this.tools, this.layer), r = this[`_${e == null ? void 0 : e[0]}Button`] ? (
3896
3645
  // @ts-expect-error TODO
3897
3646
  this[`_${e == null ? void 0 : e[0]}Button`]()
3898
- ) : O, r = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = e == null ? void 0 : e.length, a = n == null ? void 0 : n.length;
3647
+ ) : O, o = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = e == null ? void 0 : e.length, a = n == null ? void 0 : n.length;
3899
3648
  return x`
3900
3649
  <style>
3901
3650
  ${T(this, hi)}
@@ -3908,7 +3657,7 @@ class Vo extends lt {
3908
3657
  s === 1 && a === 0,
3909
3658
  () => x`
3910
3659
  <div class="single-action-container">
3911
- <div class="single-action">${o}</div>
3660
+ <div class="single-action">${r}</div>
3912
3661
  </div>
3913
3662
  `,
3914
3663
  () => x`
@@ -3917,7 +3666,7 @@ class Vo extends lt {
3917
3666
  open=${this.layer.get("layerControlToolsExpand") || O}
3918
3667
  >
3919
3668
  <summary>
3920
- <button class="icon ${r}">Tools</button>
3669
+ <button class="icon ${o}">Tools</button>
3921
3670
  </summary>
3922
3671
  <eox-layercontrol-tools-items
3923
3672
  class="${this.toolsAsList ? "tools-list" : "tools-tab"}"
@@ -3941,7 +3690,7 @@ class Vo extends lt {
3941
3690
  }
3942
3691
  }
3943
3692
  hi = new WeakMap(), pi = new WeakMap(), // Define static properties for the component
3944
- F(Vo, "properties", {
3693
+ F(Hr, "properties", {
3945
3694
  layer: { attribute: !1 },
3946
3695
  tools: { attribute: !1 },
3947
3696
  unstyled: { type: Boolean },
@@ -3950,7 +3699,7 @@ F(Vo, "properties", {
3950
3699
  });
3951
3700
  customElements.define(
3952
3701
  "eox-layercontrol-layer-tools",
3953
- Vo
3702
+ Hr
3954
3703
  );
3955
3704
  const aa = (i) => {
3956
3705
  const t = () => {
@@ -3964,7 +3713,7 @@ const aa = (i) => {
3964
3713
  new CustomEvent("change:resolution", { bubbles: !0 })
3965
3714
  ));
3966
3715
  };
3967
- Co(
3716
+ _r(
3968
3717
  i.layer,
3969
3718
  i.showLayerZoomState
3970
3719
  ) && (t(), i.map.getView().on("change:resolution", () => t()));
@@ -3972,15 +3721,15 @@ const aa = (i) => {
3972
3721
  const e = t.layer;
3973
3722
  e.setVisible(i.target.checked), i.target.checked && e.get("layerControlExclusive") && t.closest(
3974
3723
  ".layers > ul"
3975
- ).querySelectorAll("eox-layercontrol-layer").forEach((o) => {
3976
- var r;
3977
- o.layer !== e && ((r = o.layer) != null && r.get("layerControlExclusive")) && (o.layer.setVisible(!1), o.requestUpdate());
3724
+ ).querySelectorAll("eox-layercontrol-layer").forEach((r) => {
3725
+ var o;
3726
+ r.layer !== e && ((o = r.layer) != null && o.get("layerControlExclusive")) && (r.layer.setVisible(!1), r.requestUpdate());
3978
3727
  }), t.dispatchEvent(
3979
3728
  new CustomEvent("changed", { bubbles: !0, detail: e })
3980
3729
  ), t.requestUpdate();
3981
3730
  };
3982
- var Et, oe, ko, fi, gi;
3983
- class Bo extends lt {
3731
+ var Et, re, kr, fi, gi;
3732
+ class Vr extends lt {
3984
3733
  constructor() {
3985
3734
  super();
3986
3735
  P(this, Et);
@@ -3992,7 +3741,7 @@ class Bo extends lt {
3992
3741
  F(this, "currLayerVisibilityBasedOnZoom", !0);
3993
3742
  P(this, fi, "");
3994
3743
  P(this, gi, `
3995
- ${Ho}
3744
+ ${Nr}
3996
3745
  eox-layercontrol-layer {
3997
3746
  width: 100%;
3998
3747
  position: relative;
@@ -4009,7 +3758,7 @@ class Bo extends lt {
4009
3758
  width: 100%;
4010
3759
  align-items: center;
4011
3760
  justify-content: space-between;
4012
- padding: 4px 0;
3761
+ padding: var(--padding-vertical) 0;
4013
3762
  display: var(--layer-visibility);
4014
3763
  }
4015
3764
  label, span {
@@ -4073,7 +3822,7 @@ class Bo extends lt {
4073
3822
  */
4074
3823
  render() {
4075
3824
  var l;
4076
- const e = this.layer.getVisible(), n = e ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", r = j(this, Et, oe).call(this, "layerControlDisable") ? "disabled" : "", s = j(this, Et, oe).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
3825
+ const e = this.layer.getVisible(), n = e ? "visible" : "", r = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", o = j(this, Et, re).call(this, "layerControlDisable") ? "disabled" : "", s = j(this, Et, re).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
4077
3826
  return x`
4078
3827
  <style>
4079
3828
  ${T(this, fi)}
@@ -4083,21 +3832,21 @@ class Bo extends lt {
4083
3832
  this.layer,
4084
3833
  () => x`
4085
3834
  <!-- Render the layer -->
4086
- <div class="layer ${n} ${o}">
4087
- <label class="drag-handle ${r}">
3835
+ <div class="layer ${n} ${r}">
3836
+ <label class="drag-handle ${o}">
4088
3837
  <!-- Input element for layer visibility -->
4089
3838
  <input
4090
3839
  type=${s}
4091
- .checked=${Po(e)}
4092
- @click=${j(this, Et, ko)}
3840
+ .checked=${Dr(e)}
3841
+ @click=${j(this, Et, kr)}
4093
3842
  />
4094
3843
 
4095
3844
  <!-- Layer title -->
4096
3845
  <span
4097
- class="title ${j(this, Et, oe).call(this, "color") ? "color-swatch" : ""}"
4098
- style="--layer-color: ${j(this, Et, oe).call(this, "color")}"
3846
+ class="title ${j(this, Et, re).call(this, "color") ? "color-swatch" : ""}"
3847
+ style="--layer-color: ${j(this, Et, re).call(this, "color")}"
4099
3848
  >
4100
- ${j(this, Et, oe).call(this, this.titleProperty)}
3849
+ ${j(this, Et, re).call(this, this.titleProperty)}
4101
3850
  </span>
4102
3851
  ${G(
4103
3852
  a,
@@ -4125,7 +3874,7 @@ Et = new WeakSet(), /**
4125
3874
  * @param {string} key - The key for the layer property.
4126
3875
  * @returns {any} - The value of the layer property if exists, otherwise undefined.
4127
3876
  */
4128
- oe = function(e) {
3877
+ re = function(e) {
4129
3878
  var n;
4130
3879
  return (n = this.layer) == null ? void 0 : n.get(e);
4131
3880
  }, /**
@@ -4133,10 +3882,10 @@ oe = function(e) {
4133
3882
  *
4134
3883
  * @param {{target: { checked: boolean }}} evt - The input change event.
4135
3884
  */
4136
- ko = function(e) {
3885
+ kr = function(e) {
4137
3886
  la(e, this);
4138
3887
  }, fi = new WeakMap(), gi = new WeakMap(), // Define static properties for the component
4139
- F(Bo, "properties", {
3888
+ F(Vr, "properties", {
4140
3889
  layer: { attribute: !1 },
4141
3890
  map: { attribute: !1, state: !0 },
4142
3891
  titleProperty: { attribute: "title-property", type: String },
@@ -4146,16 +3895,16 @@ F(Bo, "properties", {
4146
3895
  noShadow: { type: Boolean },
4147
3896
  toolsAsList: { type: Boolean }
4148
3897
  });
4149
- customElements.define("eox-layercontrol-layer", Bo);
3898
+ customElements.define("eox-layercontrol-layer", Vr);
4150
3899
  var mi, yi;
4151
- class Uo extends lt {
3900
+ class Br extends lt {
4152
3901
  constructor() {
4153
3902
  super();
4154
3903
  P(this, mi, "");
4155
3904
  P(this, yi, `
4156
3905
  details summary {
4157
3906
  cursor: pointer;
4158
- display: flex;
3907
+ display: var(--layer-summary-visibility);
4159
3908
  }
4160
3909
  details summary { list-style-type: none; } /* Firefox */
4161
3910
  details summary::-webkit-details-marker { display: none; } /* Chrome */
@@ -4191,10 +3940,10 @@ class Uo extends lt {
4191
3940
  * Renders a layer control group with expandable details containing layers.
4192
3941
  */
4193
3942
  render() {
4194
- var o, r;
4195
- const e = !!((o = this.group) != null && o.get("layerControlExpand")), n = (r = Do(
3943
+ var r, o;
3944
+ const e = !!((r = this.group) != null && r.get("layerControlExpand")), n = (o = Tr(
4196
3945
  this.group.getLayers()
4197
- )) == null ? void 0 : r.length;
3946
+ )) == null ? void 0 : o.length;
4198
3947
  return x`
4199
3948
  <style>
4200
3949
  ${T(this, mi)}
@@ -4243,7 +3992,7 @@ class Uo extends lt {
4243
3992
  }
4244
3993
  }
4245
3994
  mi = new WeakMap(), yi = new WeakMap(), // Define static properties for the component
4246
- F(Uo, "properties", {
3995
+ F(Br, "properties", {
4247
3996
  group: { attribute: !1 },
4248
3997
  idProperty: { attribute: "id-property" },
4249
3998
  map: { attribute: !1, state: !0 },
@@ -4256,61 +4005,61 @@ F(Uo, "properties", {
4256
4005
  });
4257
4006
  customElements.define(
4258
4007
  "eox-layercontrol-layer-group",
4259
- Uo
4008
+ Br
4260
4009
  );
4261
4010
  var Zi, Un;
4262
4011
  function da() {
4263
4012
  if (Un) return Zi;
4264
4013
  Un = 1;
4265
- var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, r = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof Bt == "object" && Bt && Bt.Object === Object && Bt, d = typeof self == "object" && self && self.Object === Object && self, c = l || d || Function("return this")(), u = Object.prototype, p = u.toString, f = Math.max, g = Math.min, b = function() {
4266
- return c.Date.now();
4014
+ var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, r = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof kt == "object" && kt && kt.Object === Object && kt, d = typeof self == "object" && self && self.Object === Object && self, u = l || d || Function("return this")(), c = Object.prototype, p = c.toString, f = Math.max, g = Math.min, b = function() {
4015
+ return u.Date.now();
4267
4016
  };
4268
- function N($, m, _) {
4269
- var M, L, q, X, H, R, Z = 0, dt = !1, tt = !1, ut = !0;
4017
+ function N($, m, A) {
4018
+ var M, L, q, X, H, R, Z = 0, dt = !1, tt = !1, ct = !0;
4270
4019
  if (typeof $ != "function")
4271
4020
  throw new TypeError(i);
4272
- m = K(m) || 0, J(_) && (dt = !!_.leading, tt = "maxWait" in _, q = tt ? f(K(_.maxWait) || 0, m) : q, ut = "trailing" in _ ? !!_.trailing : ut);
4273
- function gt(B) {
4274
- var I = M, ct = L;
4275
- return M = L = void 0, Z = B, X = $.apply(ct, I), X;
4021
+ m = K(m) || 0, J(A) && (dt = !!A.leading, tt = "maxWait" in A, q = tt ? f(K(A.maxWait) || 0, m) : q, ct = "trailing" in A ? !!A.trailing : ct);
4022
+ function gt(k) {
4023
+ var I = M, ut = L;
4024
+ return M = L = void 0, Z = k, X = $.apply(ut, I), X;
4276
4025
  }
4277
- function Ut(B) {
4278
- return Z = B, H = setTimeout(_t, m), dt ? gt(B) : X;
4026
+ function Ut(k) {
4027
+ return Z = k, H = setTimeout(At, m), dt ? gt(k) : X;
4279
4028
  }
4280
- function Ie(B) {
4281
- var I = B - R, ct = B - Z, Rt = m - I;
4282
- return tt ? g(Rt, q - ct) : Rt;
4029
+ function Ie(k) {
4030
+ var I = k - R, ut = k - Z, Rt = m - I;
4031
+ return tt ? g(Rt, q - ut) : Rt;
4283
4032
  }
4284
- function Ft(B) {
4285
- var I = B - R, ct = B - Z;
4286
- return R === void 0 || I >= m || I < 0 || tt && ct >= q;
4033
+ function Ft(k) {
4034
+ var I = k - R, ut = k - Z;
4035
+ return R === void 0 || I >= m || I < 0 || tt && ut >= q;
4287
4036
  }
4288
- function _t() {
4289
- var B = b();
4290
- if (Ft(B))
4291
- return jt(B);
4292
- H = setTimeout(_t, Ie(B));
4037
+ function At() {
4038
+ var k = b();
4039
+ if (Ft(k))
4040
+ return jt(k);
4041
+ H = setTimeout(At, Ie(k));
4293
4042
  }
4294
- function jt(B) {
4295
- return H = void 0, ut && M ? gt(B) : (M = L = void 0, X);
4043
+ function jt(k) {
4044
+ return H = void 0, ct && M ? gt(k) : (M = L = void 0, X);
4296
4045
  }
4297
4046
  function Ne() {
4298
4047
  H !== void 0 && clearTimeout(H), Z = 0, M = R = L = H = void 0;
4299
4048
  }
4300
- function Ai() {
4049
+ function _i() {
4301
4050
  return H === void 0 ? X : jt(b());
4302
4051
  }
4303
4052
  function he() {
4304
- var B = b(), I = Ft(B);
4305
- if (M = arguments, L = this, R = B, I) {
4053
+ var k = b(), I = Ft(k);
4054
+ if (M = arguments, L = this, R = k, I) {
4306
4055
  if (H === void 0)
4307
4056
  return Ut(R);
4308
4057
  if (tt)
4309
- return H = setTimeout(_t, m), gt(R);
4058
+ return H = setTimeout(At, m), gt(R);
4310
4059
  }
4311
- return H === void 0 && (H = setTimeout(_t, m)), X;
4060
+ return H === void 0 && (H = setTimeout(At, m)), X;
4312
4061
  }
4313
- return he.cancel = Ne, he.flush = Ai, he;
4062
+ return he.cancel = Ne, he.flush = _i, he;
4314
4063
  }
4315
4064
  function J($) {
4316
4065
  var m = typeof $;
@@ -4334,20 +4083,20 @@ function da() {
4334
4083
  if (typeof $ != "string")
4335
4084
  return $ === 0 ? $ : +$;
4336
4085
  $ = $.replace(n, "");
4337
- var _ = r.test($);
4338
- return _ || s.test($) ? a($.slice(2), _ ? 2 : 8) : o.test($) ? t : +$;
4086
+ var A = o.test($);
4087
+ return A || s.test($) ? a($.slice(2), A ? 2 : 8) : r.test($) ? t : +$;
4339
4088
  }
4340
4089
  return Zi = N, Zi;
4341
4090
  }
4342
- var ua = da();
4343
- const ca = /* @__PURE__ */ Oo(ua), ha = (i) => {
4344
- const { layers: t, idProperty: e, titleProperty: n, renderRoot: o } = i, r = ca(() => {
4091
+ var ca = da();
4092
+ const ua = /* @__PURE__ */ Pr(ca), ha = (i) => {
4093
+ const { layers: t, idProperty: e, titleProperty: n, renderRoot: r } = i, o = ua(() => {
4345
4094
  i.requestUpdate(), i.dispatchEvent(
4346
4095
  new CustomEvent("changed", { bubbles: !0 })
4347
4096
  );
4348
- }, 50), s = () => r();
4097
+ }, 50), s = () => o();
4349
4098
  if (t && (t.hasListener("change:length") && (t == null || t.un("change:length", s)), t.on("change:length", s), t)) {
4350
- const a = o.querySelector("ul");
4099
+ const a = r.querySelector("ul");
4351
4100
  Fs(
4352
4101
  t,
4353
4102
  e,
@@ -4357,7 +4106,7 @@ const ca = /* @__PURE__ */ Oo(ua), ha = (i) => {
4357
4106
  }
4358
4107
  };
4359
4108
  var bi, vi;
4360
- class Fo extends lt {
4109
+ class Ur extends lt {
4361
4110
  constructor() {
4362
4111
  super();
4363
4112
  P(this, bi, "");
@@ -4369,11 +4118,11 @@ class Fo extends lt {
4369
4118
  ul ul {
4370
4119
  padding-left: var(--list-padding);
4371
4120
  }
4372
- li {
4373
- list-style: none;
4121
+ li:not(li li) {
4374
4122
  padding-left: var(--padding);
4375
4123
  }
4376
4124
  li {
4125
+ list-style: none;
4377
4126
  border-bottom: 1px solid #0041703a;
4378
4127
  border: var(--layer-visibility);
4379
4128
  }
@@ -4408,7 +4157,7 @@ class Fo extends lt {
4408
4157
  * layer groups or individual layers accordingly. Utilizes conditional rendering and iterates through available layers.
4409
4158
  */
4410
4159
  render() {
4411
- const e = this.layers ? Do(this.layers).reverse() : [];
4160
+ const e = this.layers ? Tr(this.layers).reverse() : [];
4412
4161
  return x`
4413
4162
  <style>
4414
4163
  ${T(this, bi)}
@@ -4418,7 +4167,7 @@ class Fo extends lt {
4418
4167
  ${G(
4419
4168
  this.layers,
4420
4169
  () => x`
4421
- ${br(
4170
+ ${bo(
4422
4171
  e,
4423
4172
  (n) => n,
4424
4173
  (n) => x`
@@ -4465,7 +4214,7 @@ class Fo extends lt {
4465
4214
  }
4466
4215
  }
4467
4216
  bi = new WeakMap(), vi = new WeakMap(), // Define static properties for the component
4468
- F(Fo, "properties", {
4217
+ F(Ur, "properties", {
4469
4218
  idProperty: { attribute: "id-property" },
4470
4219
  layers: { attribute: !1 },
4471
4220
  map: { attribute: !1, state: !0 },
@@ -4476,7 +4225,7 @@ F(Fo, "properties", {
4476
4225
  noShadow: { type: Boolean },
4477
4226
  toolsAsList: { type: Boolean }
4478
4227
  });
4479
- customElements.define("eox-layercontrol-layer-list", Fo);
4228
+ customElements.define("eox-layercontrol-layer-list", Ur);
4480
4229
  const pa = (i) => {
4481
4230
  const t = i.querySelector(
4482
4231
  "select[name=optional]"
@@ -4485,22 +4234,22 @@ const pa = (i) => {
4485
4234
  "layerControlOptional",
4486
4235
  !0
4487
4236
  ).find(
4488
- (o) => (
4237
+ (r) => (
4489
4238
  // @ts-expect-error TODO
4490
- (o.get(i.idProperty) || o.ol_uid) === e
4239
+ (r.get(i.idProperty) || r.ol_uid) === e
4491
4240
  )
4492
4241
  );
4493
4242
  n == null || n.set("layerControlOptional", !1), n == null || n.setVisible(!0), i.dispatchEvent(
4494
4243
  new CustomEvent("changed", { bubbles: !0 })
4495
4244
  ), i.renderRoot.parentNode.querySelectorAll("eox-layercontrol-layer-list").forEach(
4496
- (o) => (
4245
+ (r) => (
4497
4246
  /** @type {import("lit").LitElement} */
4498
- o.requestUpdate()
4247
+ r.requestUpdate()
4499
4248
  )
4500
4249
  ), i.requestUpdate();
4501
4250
  };
4502
- var wi, zo;
4503
- class jo extends lt {
4251
+ var wi, jr;
4252
+ class Fr extends lt {
4504
4253
  constructor() {
4505
4254
  super();
4506
4255
  P(this, wi);
@@ -4536,13 +4285,13 @@ class jo extends lt {
4536
4285
 
4537
4286
  <!-- Mapping through filtered layers list to generate dropdown options -->
4538
4287
  ${e.map((n) => {
4539
- const o = n.get(this.idProperty) || n.ol_uid, r = n.get(this.titleProperty), s = `layer ${n.get(this.idProperty)}`;
4540
- return x` <option value="${o}">${r || s}</option> `;
4288
+ const r = n.get(this.idProperty) || n.ol_uid, o = n.get(this.titleProperty), s = `layer ${n.get(this.idProperty)}`;
4289
+ return x` <option value="${r}">${o || s}</option> `;
4541
4290
  })}
4542
4291
  </select>
4543
4292
 
4544
4293
  <!-- Button to handle adding layers -->
4545
- <button @click="${j(this, wi, zo)}">add</button>
4294
+ <button @click="${j(this, wi, jr)}">add</button>
4546
4295
  `;
4547
4296
  }
4548
4297
  }
@@ -4550,10 +4299,10 @@ wi = new WeakSet(), /**
4550
4299
  * Handles the addition of selected layers to a list.
4551
4300
  * Invokes the 'addToListMethod' with the current context.
4552
4301
  */
4553
- zo = function() {
4302
+ jr = function() {
4554
4303
  pa(this);
4555
4304
  }, // Define static properties for the component
4556
- F(jo, "properties", {
4305
+ F(Fr, "properties", {
4557
4306
  idProperty: { attribute: "id-property" },
4558
4307
  layers: { attribute: !1 },
4559
4308
  titleProperty: { attribute: "title-property", type: String },
@@ -4562,13 +4311,13 @@ F(jo, "properties", {
4562
4311
  });
4563
4312
  customElements.define(
4564
4313
  "eox-layercontrol-optional-list",
4565
- jo
4314
+ Fr
4566
4315
  );
4567
4316
  const fa = (i, t) => {
4568
4317
  t.jsonInput = i.target.value, t.requestUpdate();
4569
4318
  }, Fn = (i) => {
4570
4319
  const t = JSON.parse(
4571
- `{"data":${ho(i.jsonInput)}}`
4320
+ `{"data":${ur(i.jsonInput)}}`
4572
4321
  );
4573
4322
  Array.isArray(t.data) ? t.data.forEach((e) => {
4574
4323
  i.eoxMap.addOrUpdateLayer(e);
@@ -4582,7 +4331,7 @@ async function ma(i) {
4582
4331
  if (dn(t) === "XYZ")
4583
4332
  return { Name: t };
4584
4333
  try {
4585
- const e = await us(t);
4334
+ const e = await cs(t);
4586
4335
  i.wmsCapabilities = e;
4587
4336
  } catch {
4588
4337
  } finally {
@@ -4591,7 +4340,7 @@ async function ma(i) {
4591
4340
  return !1;
4592
4341
  }
4593
4342
  const ya = (i, t) => {
4594
- const { Name: e } = i, n = dn(t.urlInput) || "XYZ", o = {
4343
+ const { Name: e } = i, n = dn(t.urlInput) || "XYZ", r = {
4595
4344
  type: "Tile",
4596
4345
  properties: {
4597
4346
  id: e,
@@ -4608,12 +4357,12 @@ const ya = (i, t) => {
4608
4357
  }
4609
4358
  }
4610
4359
  };
4611
- t.jsonInput = JSON.stringify(o);
4360
+ t.jsonInput = JSON.stringify(r);
4612
4361
  }, ba = (i, t) => {
4613
4362
  t.open = i || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
4614
4363
  };
4615
- var it, qo, Xo, Qi, Yo, Wo, We, xi, Ei;
4616
- class Zo extends lt {
4364
+ var it, Zr, qr, Qi, Xr, Yr, We, xi, Ei;
4365
+ class zr extends lt {
4617
4366
  constructor() {
4618
4367
  super();
4619
4368
  P(this, it);
@@ -4804,7 +4553,7 @@ class Zo extends lt {
4804
4553
  * Handles input fields, search, and addition of layers.
4805
4554
  */
4806
4555
  render() {
4807
- const e = this.open ? "open" : "close", n = this.open === "url", o = this.open === "json", r = !cs(this.urlInput) || this.searchLoad ? !0 : O;
4556
+ const e = this.open ? "open" : "close", n = this.open === "url", r = this.open === "json", o = !us(this.urlInput) || this.searchLoad ? !0 : O;
4808
4557
  return x`
4809
4558
  <style>
4810
4559
  ${T(this, xi)}
@@ -4822,7 +4571,7 @@ class Zo extends lt {
4822
4571
  </li>
4823
4572
  <li
4824
4573
  @click=${() => j(this, it, We).call(this, "json")}
4825
- class="${o ? "active" : ""}"
4574
+ class="${r ? "active" : ""}"
4826
4575
  >
4827
4576
  JSON
4828
4577
  </li>
@@ -4845,14 +4594,14 @@ class Zo extends lt {
4845
4594
  class="add-url"
4846
4595
  placeholder="Add URL (WMS/XYZ)"
4847
4596
  .value="${this.urlInput}"
4848
- @input=${j(this, it, qo)}
4597
+ @input=${j(this, it, Zr)}
4849
4598
  >
4850
4599
  </input>
4851
4600
  <!-- Search button for URL -->
4852
4601
  <button
4853
4602
  class="search-icon"
4854
- disabled=${r}
4855
- @click=${j(this, it, Xo)}
4603
+ disabled=${o}
4604
+ @click=${j(this, it, qr)}
4856
4605
  >
4857
4606
  ${this.unstyled ? "Search" : ""}
4858
4607
  </button>
@@ -4886,7 +4635,7 @@ class Zo extends lt {
4886
4635
  <textarea
4887
4636
  class="add-layer-input"
4888
4637
  placeholder="Please put a valid eox-map layer JSON."
4889
- @input=${j(this, it, Wo)}
4638
+ @input=${j(this, it, Yr)}
4890
4639
  .value=${this.jsonInput}
4891
4640
  ></textarea>
4892
4641
 
@@ -4894,7 +4643,7 @@ class Zo extends lt {
4894
4643
  <button
4895
4644
  class="add-layer-icon json-add-layer"
4896
4645
  disabled=${hs(this.jsonInput) ? O : !0}
4897
- @click=${j(this, it, Yo)}
4646
+ @click=${j(this, it, Xr)}
4898
4647
  >
4899
4648
  ${this.unstyled ? "Add JSON" : ""}
4900
4649
  </button>
@@ -4910,9 +4659,9 @@ it = new WeakSet(), /**
4910
4659
  *
4911
4660
  * @param {Event} evt - The input change event triggering the method.
4912
4661
  */
4913
- qo = function(e) {
4662
+ Zr = function(e) {
4914
4663
  ga(e, this);
4915
- }, Xo = async function() {
4664
+ }, qr = async function() {
4916
4665
  const e = await ma(this);
4917
4666
  e && j(this, it, Qi).call(this, e);
4918
4667
  }, /**
@@ -4925,14 +4674,14 @@ Qi = function(e) {
4925
4674
  }, /**
4926
4675
  * Initiates the addition of layers, triggering the handleAddLayerMethod.
4927
4676
  */
4928
- Yo = function() {
4677
+ Xr = function() {
4929
4678
  Fn(this);
4930
4679
  }, /**
4931
4680
  * Handles input field changes by invoking the 'handleJsonInputChangeMethod'.
4932
4681
  *
4933
4682
  * @param {{target: { value: string }}} evt - The input change event triggering the method.
4934
4683
  */
4935
- Wo = function(e) {
4684
+ Yr = function(e) {
4936
4685
  fa(e, this);
4937
4686
  }, /**
4938
4687
  * Handles tab changes by invoking the 'openCloseTabMethod'.
@@ -4942,12 +4691,12 @@ Wo = function(e) {
4942
4691
  We = function(e) {
4943
4692
  ba(e, this);
4944
4693
  }, xi = new WeakMap(), Ei = new WeakMap(), // Define static properties for the component
4945
- F(Zo, "properties", {
4694
+ F(zr, "properties", {
4946
4695
  eoxMap: { attribute: !1, state: !0 },
4947
4696
  unstyled: { type: Boolean },
4948
4697
  noShadow: { type: Boolean }
4949
4698
  });
4950
- customElements.define("eox-layercontrol-add-layers", Zo);
4699
+ customElements.define("eox-layercontrol-add-layers", zr);
4951
4700
  const va = (i, t) => {
4952
4701
  if (t.requestUpdate(), i.target.tagName === "EOX-LAYERCONTROL-LAYER-TOOLS") {
4953
4702
  const e = t.renderRoot.querySelector(
@@ -4963,12 +4712,12 @@ const va = (i, t) => {
4963
4712
  const t = wa(i.for);
4964
4713
  return t && t.map !== i.map && (i.map = t.map), t;
4965
4714
  };
4966
- var Ht, ue, Jo, Ko, $i;
4967
- class Go extends lt {
4715
+ var Ht, ce, Gr, Jr, $i;
4716
+ class Wr extends lt {
4968
4717
  // Constructor to set default values for properties
4969
4718
  constructor() {
4970
4719
  super();
4971
- P(this, ue);
4720
+ P(this, ce);
4972
4721
  /**
4973
4722
  * Instance of `eox-map` which is a wrapper for the OL
4974
4723
  *
@@ -4979,8 +4728,10 @@ class Go extends lt {
4979
4728
  :host, :root {
4980
4729
  font-family: Roboto, sans-serif;
4981
4730
  --padding: 0.5rem;
4731
+ --padding-vertical: .2rem;
4982
4732
  --list-padding: 48px;
4983
4733
  --layer-input-visibility: flex;
4734
+ --layer-summary-visibility: flex;
4984
4735
  --layer-type-visibility: block;
4985
4736
  --layer-title-visibility: flex;
4986
4737
  --layer-visibility: block;
@@ -5015,8 +4766,8 @@ class Go extends lt {
5015
4766
  Qt(this, Ht, e), this.requestUpdate("eoxMap", n);
5016
4767
  }
5017
4768
  render() {
5018
- var o, r, s;
5019
- const e = (o = this.map) == null ? void 0 : o.getLayers().getArray(), n = e && ((r = fn(e, "layerControlOptional", !0)) == null ? void 0 : r.length) > 0;
4769
+ var r, o, s;
4770
+ const e = (r = this.map) == null ? void 0 : r.getLayers().getArray(), n = e && ((o = fn(e, "layerControlOptional", !0)) == null ? void 0 : o.length) > 0;
5020
4771
  return x`
5021
4772
  <style>
5022
4773
  ${!this.unstyled && T(this, $i)}
@@ -5050,8 +4801,8 @@ class Go extends lt {
5050
4801
  .tools=${this.tools}
5051
4802
  .unstyled=${this.unstyled}
5052
4803
  .toolsAsList=${this.toolsAsList}
5053
- @changed=${j(this, ue, Jo)}
5054
- @datetime:updated=${j(this, ue, Ko)}
4804
+ @changed=${j(this, ce, Gr)}
4805
+ @datetime:updated=${j(this, ce, Jr)}
5055
4806
  ></eox-layercontrol-layer-list>
5056
4807
  `
5057
4808
  )}
@@ -5072,23 +4823,23 @@ class Go extends lt {
5072
4823
  `;
5073
4824
  }
5074
4825
  }
5075
- Ht = new WeakMap(), ue = new WeakSet(), /**
4826
+ Ht = new WeakMap(), ce = new WeakSet(), /**
5076
4827
  * Event handler for changes in the layer list
5077
4828
  *
5078
4829
  * @param {CustomEvent & {target: Element}} evt
5079
4830
  */
5080
- Jo = function(e) {
4831
+ Gr = function(e) {
5081
4832
  va(e, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: e.detail }));
5082
4833
  }, /**
5083
4834
  * Dispatches datetime updates from layer datetime to the layercontrol
5084
4835
  * @param {CustomEvent} evt
5085
4836
  */
5086
- Ko = function(e) {
4837
+ Jr = function(e) {
5087
4838
  this.dispatchEvent(
5088
4839
  new CustomEvent("datetime:updated", { detail: e.detail })
5089
4840
  );
5090
4841
  }, $i = new WeakMap(), // Define static properties for the component
5091
- F(Go, "properties", {
4842
+ F(Wr, "properties", {
5092
4843
  for: { type: String },
5093
4844
  idProperty: { attribute: "id-property" },
5094
4845
  map: { attribute: !1, state: !0 },
@@ -5100,7 +4851,7 @@ F(Go, "properties", {
5100
4851
  styleOverride: { type: String },
5101
4852
  toolsAsList: { type: Boolean }
5102
4853
  });
5103
- customElements.define("eox-layercontrol", Go);
4854
+ customElements.define("eox-layercontrol", Wr);
5104
4855
  export {
5105
- Go as EOxLayerControl
4856
+ Wr as EOxLayerControl
5106
4857
  };