@eox/layercontrol 0.24.0 → 0.25.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,27 +1,27 @@
1
1
  var Yo = Object.defineProperty;
2
- var si = (e) => {
2
+ var sn = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var Wo = (e, t, n) => t in e ? Yo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var I = (e, t, n) => Wo(e, typeof t != "symbol" ? t + "" : t, n), yn = (e, t, n) => t.has(e) || si("Cannot " + n);
7
- var S = (e, t, n) => (yn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), C = (e, t, n) => t.has(e) ? si("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), kt = (e, t, n, i) => (yn(e, t, "write to private field"), i ? i.call(e, n) : t.set(e, n), n), V = (e, t, n) => (yn(e, t, "access private method"), n);
5
+ var Wo = (e, t, i) => t in e ? Yo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
6
+ var I = (e, t, i) => Wo(e, typeof t != "symbol" ? t + "" : t, i), mi = (e, t, i) => t.has(e) || sn("Cannot " + i);
7
+ var S = (e, t, i) => (mi(e, t, "read from private field"), i ? i.call(e) : t.get(e)), C = (e, t, i) => t.has(e) ? sn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), kt = (e, t, i, n) => (mi(e, t, "write to private field"), n ? n.call(e, i) : t.set(e, i), i), V = (e, t, i) => (mi(e, t, "access private method"), i);
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2019 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const De = globalThis, zn = De.ShadowRoot && (De.ShadyCSS === void 0 || De.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Xn = Symbol(), ai = /* @__PURE__ */ new WeakMap();
14
- let Ni = class {
15
- constructor(t, n, i) {
16
- if (this._$cssResult$ = !0, i !== Xn) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
17
- this.cssText = t, this.t = n;
13
+ const De = globalThis, Zi = De.ShadowRoot && (De.ShadyCSS === void 0 || De.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, zi = Symbol(), an = /* @__PURE__ */ new WeakMap();
14
+ let Nn = class {
15
+ constructor(t, i, n) {
16
+ if (this._$cssResult$ = !0, n !== zi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
17
+ this.cssText = t, this.t = i;
18
18
  }
19
19
  get styleSheet() {
20
20
  let t = this.o;
21
- const n = this.t;
22
- if (zn && t === void 0) {
23
- const i = n !== void 0 && n.length === 1;
24
- i && (t = ai.get(n)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && ai.set(n, t));
21
+ const i = this.t;
22
+ if (Zi && t === void 0) {
23
+ const n = i !== void 0 && i.length === 1;
24
+ n && (t = an.get(i)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && an.set(i, t));
25
25
  }
26
26
  return t;
27
27
  }
@@ -29,30 +29,30 @@ let Ni = class {
29
29
  return this.cssText;
30
30
  }
31
31
  };
32
- const Go = (e) => new Ni(typeof e == "string" ? e : e + "", void 0, Xn), Hi = (e, ...t) => {
33
- const n = e.length === 1 ? e[0] : t.reduce((i, o, r) => i + ((s) => {
32
+ const Go = (e) => new Nn(typeof e == "string" ? e : e + "", void 0, zi), Hn = (e, ...t) => {
33
+ const i = e.length === 1 ? e[0] : t.reduce((n, o, r) => 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
37
  })(o) + e[r + 1], e[0]);
38
- return new Ni(n, e, Xn);
38
+ return new Nn(i, e, zi);
39
39
  }, Jo = (e, t) => {
40
- if (zn) e.adoptedStyleSheets = t.map((n) => n instanceof CSSStyleSheet ? n : n.styleSheet);
41
- else for (const n of t) {
42
- const i = document.createElement("style"), o = De.litNonce;
43
- o !== void 0 && i.setAttribute("nonce", o), i.textContent = n.cssText, e.appendChild(i);
44
- }
45
- }, li = zn ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
46
- let n = "";
47
- for (const i of t.cssRules) n += i.cssText;
48
- return Go(n);
40
+ if (Zi) e.adoptedStyleSheets = t.map((i) => i instanceof CSSStyleSheet ? i : i.styleSheet);
41
+ else for (const i of t) {
42
+ const n = document.createElement("style"), o = De.litNonce;
43
+ o !== void 0 && n.setAttribute("nonce", o), n.textContent = i.cssText, e.appendChild(n);
44
+ }
45
+ }, ln = Zi ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
46
+ let i = "";
47
+ for (const n of t.cssRules) i += n.cssText;
48
+ return Go(i);
49
49
  })(e) : e;
50
50
  /**
51
51
  * @license
52
52
  * Copyright 2017 Google LLC
53
53
  * SPDX-License-Identifier: BSD-3-Clause
54
54
  */
55
- const { is: Ko, defineProperty: Qo, getOwnPropertyDescriptor: tr, getOwnPropertyNames: er, getOwnPropertySymbols: nr, getPrototypeOf: ir } = Object, Tt = globalThis, ui = Tt.trustedTypes, or = ui ? ui.emptyScript : "", bn = Tt.reactiveElementPolyfillSupport, ae = (e, t) => e, Nn = { toAttribute(e, t) {
55
+ const { is: Ko, defineProperty: Qo, getOwnPropertyDescriptor: tr, getOwnPropertyNames: er, getOwnPropertySymbols: ir, getPrototypeOf: nr } = Object, Tt = globalThis, dn = Tt.trustedTypes, or = dn ? dn.emptyScript : "", yi = Tt.reactiveElementPolyfillSupport, ae = (e, t) => e, Ii = { toAttribute(e, t) {
56
56
  switch (t) {
57
57
  case Boolean:
58
58
  e = e ? or : null;
@@ -63,24 +63,24 @@ const { is: Ko, defineProperty: Qo, getOwnPropertyDescriptor: tr, getOwnProperty
63
63
  }
64
64
  return e;
65
65
  }, fromAttribute(e, t) {
66
- let n = e;
66
+ let i = e;
67
67
  switch (t) {
68
68
  case Boolean:
69
- n = e !== null;
69
+ i = e !== null;
70
70
  break;
71
71
  case Number:
72
- n = e === null ? null : Number(e);
72
+ i = e === null ? null : Number(e);
73
73
  break;
74
74
  case Object:
75
75
  case Array:
76
76
  try {
77
- n = JSON.parse(e);
77
+ i = JSON.parse(e);
78
78
  } catch {
79
- n = null;
79
+ i = null;
80
80
  }
81
81
  }
82
- return n;
83
- } }, Vi = (e, t) => !Ko(e, t), di = { attribute: !0, type: String, converter: Nn, reflect: !1, hasChanged: Vi };
82
+ return i;
83
+ } }, Vn = (e, t) => !Ko(e, t), un = { attribute: !0, type: String, converter: Ii, reflect: !1, hasChanged: Vn };
84
84
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Tt.litPropertyMetadata ?? (Tt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
85
85
  class jt extends HTMLElement {
86
86
  static addInitializer(t) {
@@ -89,81 +89,81 @@ class jt extends HTMLElement {
89
89
  static get observedAttributes() {
90
90
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
91
91
  }
92
- static createProperty(t, n = di) {
93
- if (n.state && (n.attribute = !1), this._$Ei(), this.elementProperties.set(t, n), !n.noAccessor) {
94
- const i = Symbol(), o = this.getPropertyDescriptor(t, i, n);
92
+ static createProperty(t, i = un) {
93
+ if (i.state && (i.attribute = !1), this._$Ei(), this.elementProperties.set(t, i), !i.noAccessor) {
94
+ const n = Symbol(), o = this.getPropertyDescriptor(t, n, i);
95
95
  o !== void 0 && Qo(this.prototype, t, o);
96
96
  }
97
97
  }
98
- static getPropertyDescriptor(t, n, i) {
98
+ static getPropertyDescriptor(t, i, n) {
99
99
  const { get: o, set: r } = tr(this.prototype, t) ?? { get() {
100
- return this[n];
100
+ return this[i];
101
101
  }, set(s) {
102
- this[n] = s;
102
+ this[i] = s;
103
103
  } };
104
104
  return { get() {
105
105
  return o == null ? void 0 : o.call(this);
106
106
  }, set(s) {
107
107
  const a = o == null ? void 0 : o.call(this);
108
- r.call(this, s), this.requestUpdate(t, a, i);
108
+ r.call(this, s), this.requestUpdate(t, a, n);
109
109
  }, configurable: !0, enumerable: !0 };
110
110
  }
111
111
  static getPropertyOptions(t) {
112
- return this.elementProperties.get(t) ?? di;
112
+ return this.elementProperties.get(t) ?? un;
113
113
  }
114
114
  static _$Ei() {
115
115
  if (this.hasOwnProperty(ae("elementProperties"))) return;
116
- const t = ir(this);
116
+ const t = nr(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(ae("finalized"))) return;
121
121
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ae("properties"))) {
122
- const n = this.properties, i = [...er(n), ...nr(n)];
123
- for (const o of i) this.createProperty(o, n[o]);
122
+ const i = this.properties, n = [...er(i), ...ir(i)];
123
+ for (const o of n) this.createProperty(o, i[o]);
124
124
  }
125
125
  const t = this[Symbol.metadata];
126
126
  if (t !== null) {
127
- const n = litPropertyMetadata.get(t);
128
- if (n !== void 0) for (const [i, o] of n) this.elementProperties.set(i, o);
127
+ const i = litPropertyMetadata.get(t);
128
+ if (i !== void 0) for (const [n, o] of i) this.elementProperties.set(n, o);
129
129
  }
130
130
  this._$Eh = /* @__PURE__ */ new Map();
131
- for (const [n, i] of this.elementProperties) {
132
- const o = this._$Eu(n, i);
133
- o !== void 0 && this._$Eh.set(o, n);
131
+ for (const [i, n] of this.elementProperties) {
132
+ const o = this._$Eu(i, n);
133
+ o !== void 0 && this._$Eh.set(o, i);
134
134
  }
135
135
  this.elementStyles = this.finalizeStyles(this.styles);
136
136
  }
137
137
  static finalizeStyles(t) {
138
- const n = [];
138
+ const i = [];
139
139
  if (Array.isArray(t)) {
140
- const i = new Set(t.flat(1 / 0).reverse());
141
- for (const o of i) n.unshift(li(o));
142
- } else t !== void 0 && n.push(li(t));
143
- return n;
140
+ const n = new Set(t.flat(1 / 0).reverse());
141
+ for (const o of n) i.unshift(ln(o));
142
+ } else t !== void 0 && i.push(ln(t));
143
+ return i;
144
144
  }
145
- static _$Eu(t, n) {
146
- const i = n.attribute;
147
- return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
145
+ static _$Eu(t, i) {
146
+ const n = i.attribute;
147
+ return n === !1 ? void 0 : typeof n == "string" ? n : typeof t == "string" ? t.toLowerCase() : void 0;
148
148
  }
149
149
  constructor() {
150
150
  super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
151
151
  }
152
152
  _$Ev() {
153
153
  var t;
154
- this._$ES = new Promise((n) => this.enableUpdating = n), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((n) => n(this));
154
+ this._$ES = new Promise((i) => this.enableUpdating = i), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((i) => i(this));
155
155
  }
156
156
  addController(t) {
157
- var n;
158
- (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((n = t.hostConnected) == null || n.call(t));
157
+ var i;
158
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((i = t.hostConnected) == null || i.call(t));
159
159
  }
160
160
  removeController(t) {
161
- var n;
162
- (n = this._$EO) == null || n.delete(t);
161
+ var i;
162
+ (i = this._$EO) == null || i.delete(t);
163
163
  }
164
164
  _$E_() {
165
- const t = /* @__PURE__ */ new Map(), n = this.constructor.elementProperties;
166
- for (const i of n.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
165
+ const t = /* @__PURE__ */ new Map(), i = this.constructor.elementProperties;
166
+ for (const n of i.keys()) this.hasOwnProperty(n) && (t.set(n, this[n]), delete this[n]);
167
167
  t.size > 0 && (this._$Ep = t);
168
168
  }
169
169
  createRenderRoot() {
@@ -172,55 +172,55 @@ class jt extends HTMLElement {
172
172
  }
173
173
  connectedCallback() {
174
174
  var t;
175
- this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((n) => {
176
- var i;
177
- return (i = n.hostConnected) == null ? void 0 : i.call(n);
175
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((i) => {
176
+ var n;
177
+ return (n = i.hostConnected) == null ? void 0 : n.call(i);
178
178
  });
179
179
  }
180
180
  enableUpdating(t) {
181
181
  }
182
182
  disconnectedCallback() {
183
183
  var t;
184
- (t = this._$EO) == null || t.forEach((n) => {
185
- var i;
186
- return (i = n.hostDisconnected) == null ? void 0 : i.call(n);
184
+ (t = this._$EO) == null || t.forEach((i) => {
185
+ var n;
186
+ return (n = i.hostDisconnected) == null ? void 0 : n.call(i);
187
187
  });
188
188
  }
189
- attributeChangedCallback(t, n, i) {
190
- this._$AK(t, i);
189
+ attributeChangedCallback(t, i, n) {
190
+ this._$AK(t, n);
191
191
  }
192
- _$EC(t, n) {
192
+ _$EC(t, i) {
193
193
  var r;
194
- const i = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, i);
195
- if (o !== void 0 && i.reflect === !0) {
196
- const s = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : Nn).toAttribute(n, i.type);
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 : Ii).toAttribute(i, n.type);
197
197
  this._$Em = t, s == null ? this.removeAttribute(o) : this.setAttribute(o, s), this._$Em = null;
198
198
  }
199
199
  }
200
- _$AK(t, n) {
200
+ _$AK(t, i) {
201
201
  var r;
202
- const i = this.constructor, o = i._$Eh.get(t);
202
+ const n = this.constructor, o = n._$Eh.get(t);
203
203
  if (o !== void 0 && this._$Em !== o) {
204
- const s = i.getPropertyOptions(o), a = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((r = s.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? s.converter : Nn;
205
- this._$Em = o, this[o] = a.fromAttribute(n, s.type), this._$Em = null;
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 : Ii;
205
+ this._$Em = o, this[o] = a.fromAttribute(i, s.type), this._$Em = null;
206
206
  }
207
207
  }
208
- requestUpdate(t, n, i) {
208
+ requestUpdate(t, i, n) {
209
209
  if (t !== void 0) {
210
- if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Vi)(this[t], n)) return;
211
- this.P(t, n, i);
210
+ if (n ?? (n = this.constructor.getPropertyOptions(t)), !(n.hasChanged ?? Vn)(this[t], i)) return;
211
+ this.P(t, i, n);
212
212
  }
213
213
  this.isUpdatePending === !1 && (this._$ES = this._$ET());
214
214
  }
215
- P(t, n, i) {
216
- this._$AL.has(t) || this._$AL.set(t, n), i.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
215
+ P(t, i, n) {
216
+ this._$AL.has(t) || this._$AL.set(t, i), n.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
217
217
  }
218
218
  async _$ET() {
219
219
  this.isUpdatePending = !0;
220
220
  try {
221
221
  await this._$ES;
222
- } catch (n) {
223
- Promise.reject(n);
222
+ } catch (i) {
223
+ Promise.reject(i);
224
224
  }
225
225
  const t = this.scheduleUpdate();
226
226
  return t != null && await t, !this.isUpdatePending;
@@ -229,7 +229,7 @@ class jt extends HTMLElement {
229
229
  return this.performUpdate();
230
230
  }
231
231
  performUpdate() {
232
- var i;
232
+ var n;
233
233
  if (!this.isUpdatePending) return;
234
234
  if (!this.hasUpdated) {
235
235
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
@@ -240,24 +240,24 @@ class jt extends HTMLElement {
240
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);
241
241
  }
242
242
  let t = !1;
243
- const n = this._$AL;
243
+ const i = this._$AL;
244
244
  try {
245
- t = this.shouldUpdate(n), t ? (this.willUpdate(n), (i = this._$EO) == null || i.forEach((o) => {
245
+ t = this.shouldUpdate(i), t ? (this.willUpdate(i), (n = this._$EO) == null || n.forEach((o) => {
246
246
  var r;
247
247
  return (r = o.hostUpdate) == null ? void 0 : r.call(o);
248
- }), this.update(n)) : this._$EU();
248
+ }), this.update(i)) : this._$EU();
249
249
  } catch (o) {
250
250
  throw t = !1, this._$EU(), o;
251
251
  }
252
- t && this._$AE(n);
252
+ t && this._$AE(i);
253
253
  }
254
254
  willUpdate(t) {
255
255
  }
256
256
  _$AE(t) {
257
- var n;
258
- (n = this._$EO) == null || n.forEach((i) => {
257
+ var i;
258
+ (i = this._$EO) == null || i.forEach((n) => {
259
259
  var o;
260
- return (o = i.hostUpdated) == null ? void 0 : o.call(i);
260
+ return (o = n.hostUpdated) == null ? void 0 : o.call(n);
261
261
  }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
262
262
  }
263
263
  _$EU() {
@@ -273,85 +273,85 @@ class jt extends HTMLElement {
273
273
  return !0;
274
274
  }
275
275
  update(t) {
276
- this._$Ej && (this._$Ej = this._$Ej.forEach((n) => this._$EC(n, this[n]))), this._$EU();
276
+ this._$Ej && (this._$Ej = this._$Ej.forEach((i) => this._$EC(i, this[i]))), this._$EU();
277
277
  }
278
278
  updated(t) {
279
279
  }
280
280
  firstUpdated(t) {
281
281
  }
282
282
  }
283
- jt.elementStyles = [], jt.shadowRootOptions = { mode: "open" }, jt[ae("elementProperties")] = /* @__PURE__ */ new Map(), jt[ae("finalized")] = /* @__PURE__ */ new Map(), bn == null || bn({ ReactiveElement: jt }), (Tt.reactiveElementVersions ?? (Tt.reactiveElementVersions = [])).push("2.0.4");
283
+ jt.elementStyles = [], jt.shadowRootOptions = { mode: "open" }, jt[ae("elementProperties")] = /* @__PURE__ */ new Map(), jt[ae("finalized")] = /* @__PURE__ */ new Map(), yi == null || yi({ ReactiveElement: jt }), (Tt.reactiveElementVersions ?? (Tt.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 le = globalThis, Be = le.trustedTypes, ci = Be ? Be.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, qn = "$lit$", ft = `lit$${Math.random().toFixed(9).slice(2)}$`, Yn = "?" + ft, rr = `<${Yn}>`, Vt = document, fe = () => Vt.createComment(""), ge = (e) => e === null || typeof e != "object" && typeof e != "function", Wn = Array.isArray, Bi = (e) => Wn(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", vn = `[
290
- \f\r]`, ne = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, hi = /-->/g, pi = />/g, Ot = RegExp(`>|${vn}(?:([^\\s"'>=/]+)(${vn}*=${vn}*(?:[^
291
- \f\r"'\`<>=]|("|')|))|$)`, "g"), fi = /'/g, gi = /"/g, ki = /^(?:script|style|textarea|title)$/i, sr = (e) => (t, ...n) => ({ _$litType$: e, strings: t, values: n }), $ = sr(1), at = Symbol.for("lit-noChange"), P = Symbol.for("lit-nothing"), mi = /* @__PURE__ */ new WeakMap(), Nt = Vt.createTreeWalker(Vt, 129);
292
- function Ui(e, t) {
293
- if (!Wn(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
294
- return ci !== void 0 ? ci.createHTML(t) : t;
295
- }
296
- const Fi = (e, t) => {
297
- const n = e.length - 1, i = [];
298
- let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = ne;
299
- for (let a = 0; a < n; a++) {
289
+ const le = globalThis, Be = le.trustedTypes, cn = Be ? Be.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Xi = "$lit$", ft = `lit$${Math.random().toFixed(9).slice(2)}$`, qi = "?" + ft, rr = `<${qi}>`, Vt = document, fe = () => Vt.createComment(""), ge = (e) => e === null || typeof e != "object" && typeof e != "function", Yi = Array.isArray, Bn = (e) => Yi(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", bi = `[
290
+ \f\r]`, ie = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, hn = /-->/g, pn = />/g, Ot = RegExp(`>|${bi}(?:([^\\s"'>=/]+)(${bi}*=${bi}*(?:[^
291
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), fn = /'/g, gn = /"/g, kn = /^(?:script|style|textarea|title)$/i, sr = (e) => (t, ...i) => ({ _$litType$: e, strings: t, values: i }), $ = sr(1), at = Symbol.for("lit-noChange"), P = Symbol.for("lit-nothing"), mn = /* @__PURE__ */ new WeakMap(), Nt = Vt.createTreeWalker(Vt, 129);
292
+ function Un(e, t) {
293
+ if (!Yi(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
294
+ return cn !== void 0 ? cn.createHTML(t) : t;
295
+ }
296
+ const Fn = (e, t) => {
297
+ const i = e.length - 1, n = [];
298
+ let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = ie;
299
+ for (let a = 0; a < i; a++) {
300
300
  const l = e[a];
301
- let u, c, d = -1, p = 0;
302
- for (; p < l.length && (s.lastIndex = p, c = s.exec(l), c !== null); ) p = s.lastIndex, s === ne ? c[1] === "!--" ? s = hi : c[1] !== void 0 ? s = pi : c[2] !== void 0 ? (ki.test(c[2]) && (o = RegExp("</" + c[2], "g")), s = Ot) : c[3] !== void 0 && (s = Ot) : s === Ot ? c[0] === ">" ? (s = o ?? ne, d = -1) : c[1] === void 0 ? d = -2 : (d = s.lastIndex - c[2].length, u = c[1], s = c[3] === void 0 ? Ot : c[3] === '"' ? gi : fi) : s === gi || s === fi ? s = Ot : s === hi || s === pi ? s = ne : (s = Ot, o = void 0);
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 === ie ? c[1] === "!--" ? s = hn : c[1] !== void 0 ? s = pn : c[2] !== void 0 ? (kn.test(c[2]) && (o = RegExp("</" + c[2], "g")), s = Ot) : c[3] !== void 0 && (s = Ot) : s === Ot ? c[0] === ">" ? (s = o ?? ie, u = -1) : c[1] === void 0 ? u = -2 : (u = s.lastIndex - c[2].length, d = c[1], s = c[3] === void 0 ? Ot : c[3] === '"' ? gn : fn) : s === gn || s === fn ? s = Ot : s === hn || s === pn ? s = ie : (s = Ot, o = void 0);
303
303
  const f = s === Ot && e[a + 1].startsWith("/>") ? " " : "";
304
- r += s === ne ? l + rr : d >= 0 ? (i.push(u), l.slice(0, d) + qn + l.slice(d) + ft + f) : l + ft + (d === -2 ? a : f);
304
+ r += s === ie ? l + rr : u >= 0 ? (n.push(d), l.slice(0, u) + Xi + l.slice(u) + ft + f) : l + ft + (u === -2 ? a : f);
305
305
  }
306
- return [Ui(e, r + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
306
+ return [Un(e, r + (e[i] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
307
307
  };
308
308
  class me {
309
- constructor({ strings: t, _$litType$: n }, i) {
309
+ constructor({ strings: t, _$litType$: i }, n) {
310
310
  let o;
311
311
  this.parts = [];
312
312
  let r = 0, s = 0;
313
- const a = t.length - 1, l = this.parts, [u, c] = Fi(t, n);
314
- if (this.el = me.createElement(u, i), Nt.currentNode = this.el.content, n === 2 || n === 3) {
315
- const d = this.el.content.firstChild;
316
- d.replaceWith(...d.childNodes);
313
+ const a = t.length - 1, l = this.parts, [d, c] = Fn(t, i);
314
+ if (this.el = me.createElement(d, n), Nt.currentNode = this.el.content, i === 2 || i === 3) {
315
+ const u = this.el.content.firstChild;
316
+ u.replaceWith(...u.childNodes);
317
317
  }
318
318
  for (; (o = Nt.nextNode()) !== null && l.length < a; ) {
319
319
  if (o.nodeType === 1) {
320
- if (o.hasAttributes()) for (const d of o.getAttributeNames()) if (d.endsWith(qn)) {
321
- const p = c[s++], f = o.getAttribute(d).split(ft), g = /([.?@])?(.*)/.exec(p);
322
- l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Zi : g[1] === "?" ? zi : g[1] === "@" ? Xi : $e }), o.removeAttribute(d);
323
- } else d.startsWith(ft) && (l.push({ type: 6, index: r }), o.removeAttribute(d));
324
- if (ki.test(o.tagName)) {
325
- const d = o.textContent.split(ft), p = d.length - 1;
320
+ if (o.hasAttributes()) for (const u of o.getAttributeNames()) if (u.endsWith(Xi)) {
321
+ const p = c[s++], f = o.getAttribute(u).split(ft), g = /([.?@])?(.*)/.exec(p);
322
+ l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Zn : g[1] === "?" ? zn : g[1] === "@" ? Xn : $e }), o.removeAttribute(u);
323
+ } else u.startsWith(ft) && (l.push({ type: 6, index: r }), o.removeAttribute(u));
324
+ if (kn.test(o.tagName)) {
325
+ const u = o.textContent.split(ft), p = u.length - 1;
326
326
  if (p > 0) {
327
327
  o.textContent = Be ? Be.emptyScript : "";
328
- for (let f = 0; f < p; f++) o.append(d[f], fe()), Nt.nextNode(), l.push({ type: 2, index: ++r });
329
- o.append(d[p], fe());
328
+ for (let f = 0; f < p; f++) o.append(u[f], fe()), Nt.nextNode(), l.push({ type: 2, index: ++r });
329
+ o.append(u[p], fe());
330
330
  }
331
331
  }
332
- } else if (o.nodeType === 8) if (o.data === Yn) l.push({ type: 2, index: r });
332
+ } else if (o.nodeType === 8) if (o.data === qi) l.push({ type: 2, index: r });
333
333
  else {
334
- let d = -1;
335
- for (; (d = o.data.indexOf(ft, d + 1)) !== -1; ) l.push({ type: 7, index: r }), d += ft.length - 1;
334
+ let u = -1;
335
+ for (; (u = o.data.indexOf(ft, u + 1)) !== -1; ) l.push({ type: 7, index: r }), u += ft.length - 1;
336
336
  }
337
337
  r++;
338
338
  }
339
339
  }
340
- static createElement(t, n) {
341
- const i = Vt.createElement("template");
342
- return i.innerHTML = t, i;
340
+ static createElement(t, i) {
341
+ const n = Vt.createElement("template");
342
+ return n.innerHTML = t, n;
343
343
  }
344
344
  }
345
- function Bt(e, t, n = e, i) {
345
+ function Bt(e, t, i = e, n) {
346
346
  var s, a;
347
347
  if (t === at) return t;
348
- let o = i !== void 0 ? (s = n._$Co) == null ? void 0 : s[i] : n._$Cl;
348
+ let o = n !== void 0 ? (s = i._$Co) == null ? void 0 : s[n] : i._$Cl;
349
349
  const r = ge(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(e), o._$AT(e, n, i)), i !== void 0 ? (n._$Co ?? (n._$Co = []))[i] = o : n._$Cl = o), o !== void 0 && (t = Bt(e, o._$AS(e, t.values), o, i)), t;
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(e), o._$AT(e, i, n)), n !== void 0 ? (i._$Co ?? (i._$Co = []))[n] = o : i._$Cl = o), o !== void 0 && (t = Bt(e, o._$AS(e, t.values), o, n)), t;
351
351
  }
352
- let ji = class {
353
- constructor(t, n) {
354
- this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = n;
352
+ let jn = class {
353
+ constructor(t, i) {
354
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
355
355
  }
356
356
  get parentNode() {
357
357
  return this._$AM.parentNode;
@@ -360,21 +360,21 @@ let ji = class {
360
360
  return this._$AM._$AU;
361
361
  }
362
362
  u(t) {
363
- const { el: { content: n }, parts: i } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? Vt).importNode(n, !0);
363
+ const { el: { content: i }, parts: n } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? Vt).importNode(i, !0);
364
364
  Nt.currentNode = o;
365
- let r = Nt.nextNode(), s = 0, a = 0, l = i[0];
365
+ let r = Nt.nextNode(), s = 0, a = 0, l = n[0];
366
366
  for (; l !== void 0; ) {
367
367
  if (s === l.index) {
368
- let u;
369
- l.type === 2 ? u = new Jt(r, r.nextSibling, this, t) : l.type === 1 ? u = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (u = new qi(r, this, t)), this._$AV.push(u), l = i[++a];
368
+ let d;
369
+ l.type === 2 ? d = new Jt(r, r.nextSibling, this, t) : l.type === 1 ? d = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (d = new qn(r, this, t)), this._$AV.push(d), l = n[++a];
370
370
  }
371
371
  s !== (l == null ? void 0 : l.index) && (r = Nt.nextNode(), s++);
372
372
  }
373
373
  return Nt.currentNode = Vt, o;
374
374
  }
375
375
  p(t) {
376
- let n = 0;
377
- for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, n), n += i.strings.length - 2) : i._$AI(t[n])), n++;
376
+ let i = 0;
377
+ for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, i), i += n.strings.length - 2) : n._$AI(t[i])), i++;
378
378
  }
379
379
  };
380
380
  class Jt {
@@ -382,13 +382,13 @@ class Jt {
382
382
  var t;
383
383
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
384
384
  }
385
- constructor(t, n, i, o) {
386
- this.type = 2, this._$AH = P, this._$AN = void 0, this._$AA = t, this._$AB = n, this._$AM = i, this.options = o, this._$Cv = (o == null ? void 0 : o.isConnected) ?? !0;
385
+ constructor(t, i, n, o) {
386
+ this.type = 2, this._$AH = P, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = n, this.options = o, this._$Cv = (o == null ? void 0 : o.isConnected) ?? !0;
387
387
  }
388
388
  get parentNode() {
389
389
  let t = this._$AA.parentNode;
390
- const n = this._$AM;
391
- return n !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = n.parentNode), t;
390
+ const i = this._$AM;
391
+ return i !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = i.parentNode), t;
392
392
  }
393
393
  get startNode() {
394
394
  return this._$AA;
@@ -396,8 +396,8 @@ class Jt {
396
396
  get endNode() {
397
397
  return this._$AB;
398
398
  }
399
- _$AI(t, n = this) {
400
- t = Bt(this, t, n), ge(t) ? t === P || t == null || t === "" ? (this._$AH !== P && this._$AR(), this._$AH = P) : t !== this._$AH && t !== at && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Bi(t) ? this.k(t) : this._(t);
399
+ _$AI(t, i = this) {
400
+ t = Bt(this, t, i), ge(t) ? t === P || t == null || t === "" ? (this._$AH !== P && this._$AR(), this._$AH = P) : t !== this._$AH && t !== at && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Bn(t) ? this.k(t) : this._(t);
401
401
  }
402
402
  O(t) {
403
403
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -410,34 +410,34 @@ class Jt {
410
410
  }
411
411
  $(t) {
412
412
  var r;
413
- const { values: n, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = me.createElement(Ui(i.h, i.h[0]), this.options)), i);
414
- if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(n);
413
+ const { values: i, _$litType$: n } = t, o = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = me.createElement(Un(n.h, n.h[0]), this.options)), n);
414
+ if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(i);
415
415
  else {
416
- const s = new ji(o, this), a = s.u(this.options);
417
- s.p(n), this.T(a), this._$AH = s;
416
+ const s = new jn(o, this), a = s.u(this.options);
417
+ s.p(i), this.T(a), this._$AH = s;
418
418
  }
419
419
  }
420
420
  _$AC(t) {
421
- let n = mi.get(t.strings);
422
- return n === void 0 && mi.set(t.strings, n = new me(t)), n;
421
+ let i = mn.get(t.strings);
422
+ return i === void 0 && mn.set(t.strings, i = new me(t)), i;
423
423
  }
424
424
  k(t) {
425
- Wn(this._$AH) || (this._$AH = [], this._$AR());
426
- const n = this._$AH;
427
- let i, o = 0;
428
- for (const r of t) o === n.length ? n.push(i = new Jt(this.O(fe()), this.O(fe()), this, this.options)) : i = n[o], i._$AI(r), o++;
429
- o < n.length && (this._$AR(i && i._$AB.nextSibling, o), n.length = o);
425
+ Yi(this._$AH) || (this._$AH = [], this._$AR());
426
+ const i = this._$AH;
427
+ let n, o = 0;
428
+ for (const r of t) o === i.length ? i.push(n = new Jt(this.O(fe()), this.O(fe()), this, this.options)) : n = i[o], n._$AI(r), o++;
429
+ o < i.length && (this._$AR(n && n._$AB.nextSibling, o), i.length = o);
430
430
  }
431
- _$AR(t = this._$AA.nextSibling, n) {
432
- var i;
433
- for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, n); t && t !== this._$AB; ) {
431
+ _$AR(t = this._$AA.nextSibling, i) {
432
+ var n;
433
+ for ((n = this._$AP) == null ? void 0 : n.call(this, !1, !0, i); t && t !== this._$AB; ) {
434
434
  const o = t.nextSibling;
435
435
  t.remove(), t = o;
436
436
  }
437
437
  }
438
438
  setConnected(t) {
439
- var n;
440
- this._$AM === void 0 && (this._$Cv = t, (n = this._$AP) == null || n.call(this, t));
439
+ var i;
440
+ this._$AM === void 0 && (this._$Cv = t, (i = this._$AP) == null || i.call(this, t));
441
441
  }
442
442
  }
443
443
  class $e {
@@ -447,17 +447,17 @@ class $e {
447
447
  get _$AU() {
448
448
  return this._$AM._$AU;
449
449
  }
450
- constructor(t, n, i, o, r) {
451
- this.type = 1, this._$AH = P, this._$AN = void 0, this.element = t, this.name = n, this._$AM = o, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = P;
450
+ constructor(t, i, n, o, r) {
451
+ this.type = 1, this._$AH = P, this._$AN = void 0, this.element = t, this.name = i, 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 = P;
452
452
  }
453
- _$AI(t, n = this, i, o) {
453
+ _$AI(t, i = this, n, o) {
454
454
  const r = this.strings;
455
455
  let s = !1;
456
- if (r === void 0) t = Bt(this, t, n, 0), s = !ge(t) || t !== this._$AH && t !== at, s && (this._$AH = t);
456
+ if (r === void 0) t = Bt(this, t, i, 0), s = !ge(t) || t !== this._$AH && t !== at, s && (this._$AH = t);
457
457
  else {
458
458
  const a = t;
459
- let l, u;
460
- for (t = r[0], l = 0; l < r.length - 1; l++) u = Bt(this, a[i + l], n, l), u === at && (u = this._$AH[l]), s || (s = !ge(u) || u !== this._$AH[l]), u === P ? t = P : t !== P && (t += (u ?? "") + r[l + 1]), this._$AH[l] = u;
459
+ let l, d;
460
+ for (t = r[0], l = 0; l < r.length - 1; l++) d = Bt(this, a[n + l], i, l), d === at && (d = this._$AH[l]), s || (s = !ge(d) || d !== this._$AH[l]), d === P ? t = P : t !== P && (t += (d ?? "") + r[l + 1]), this._$AH[l] = d;
461
461
  }
462
462
  s && !o && this.j(t);
463
463
  }
@@ -465,7 +465,7 @@ class $e {
465
465
  t === P ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
466
466
  }
467
467
  }
468
- class Zi extends $e {
468
+ class Zn extends $e {
469
469
  constructor() {
470
470
  super(...arguments), this.type = 3;
471
471
  }
@@ -473,7 +473,7 @@ class Zi extends $e {
473
473
  this.element[this.name] = t === P ? void 0 : t;
474
474
  }
475
475
  }
476
- class zi extends $e {
476
+ class zn extends $e {
477
477
  constructor() {
478
478
  super(...arguments), this.type = 4;
479
479
  }
@@ -481,23 +481,23 @@ class zi extends $e {
481
481
  this.element.toggleAttribute(this.name, !!t && t !== P);
482
482
  }
483
483
  }
484
- class Xi extends $e {
485
- constructor(t, n, i, o, r) {
486
- super(t, n, i, o, r), this.type = 5;
484
+ class Xn extends $e {
485
+ constructor(t, i, n, o, r) {
486
+ super(t, i, n, o, r), this.type = 5;
487
487
  }
488
- _$AI(t, n = this) {
489
- if ((t = Bt(this, t, n, 0) ?? P) === at) return;
490
- const i = this._$AH, o = t === P && i !== P || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== P && (i === P || o);
491
- o && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
488
+ _$AI(t, i = this) {
489
+ if ((t = Bt(this, t, i, 0) ?? P) === at) return;
490
+ const n = this._$AH, o = t === P && n !== P || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, r = t !== P && (n === P || o);
491
+ o && this.element.removeEventListener(this.name, this, n), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
492
492
  }
493
493
  handleEvent(t) {
494
- var n;
495
- typeof this._$AH == "function" ? this._$AH.call(((n = this.options) == null ? void 0 : n.host) ?? this.element, t) : this._$AH.handleEvent(t);
494
+ var i;
495
+ typeof this._$AH == "function" ? this._$AH.call(((i = this.options) == null ? void 0 : i.host) ?? this.element, t) : this._$AH.handleEvent(t);
496
496
  }
497
497
  }
498
- class qi {
499
- constructor(t, n, i) {
500
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = n, this.options = i;
498
+ class qn {
499
+ constructor(t, i, n) {
500
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = n;
501
501
  }
502
502
  get _$AU() {
503
503
  return this._$AM._$AU;
@@ -506,14 +506,14 @@ class qi {
506
506
  Bt(this, t);
507
507
  }
508
508
  }
509
- const ar = { M: qn, P: ft, A: Yn, C: 1, L: Fi, R: ji, D: Bi, V: Bt, I: Jt, H: $e, N: zi, U: Xi, B: Zi, F: qi }, wn = le.litHtmlPolyfillSupport;
510
- wn == null || wn(me, Jt), (le.litHtmlVersions ?? (le.litHtmlVersions = [])).push("3.2.1");
511
- const lr = (e, t, n) => {
512
- const i = (n == null ? void 0 : n.renderBefore) ?? t;
513
- let o = i._$litPart$;
509
+ const ar = { M: Xi, P: ft, A: qi, C: 1, L: Fn, R: jn, D: Bn, V: Bt, I: Jt, H: $e, N: zn, U: Xn, B: Zn, F: qn }, vi = le.litHtmlPolyfillSupport;
510
+ vi == null || vi(me, Jt), (le.litHtmlVersions ?? (le.litHtmlVersions = [])).push("3.2.1");
511
+ const lr = (e, t, i) => {
512
+ const n = (i == null ? void 0 : i.renderBefore) ?? t;
513
+ let o = n._$litPart$;
514
514
  if (o === void 0) {
515
- const r = (n == null ? void 0 : n.renderBefore) ?? null;
516
- i._$litPart$ = o = new Jt(t.insertBefore(fe(), r), r, void 0, n ?? {});
515
+ const r = (i == null ? void 0 : i.renderBefore) ?? null;
516
+ n._$litPart$ = o = new Jt(t.insertBefore(fe(), r), r, void 0, i ?? {});
517
517
  }
518
518
  return o._$AI(e), o;
519
519
  };
@@ -527,13 +527,13 @@ let tt = class extends jt {
527
527
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
528
528
  }
529
529
  createRenderRoot() {
530
- var n;
530
+ var i;
531
531
  const t = super.createRenderRoot();
532
- return (n = this.renderOptions).renderBefore ?? (n.renderBefore = t.firstChild), t;
532
+ return (i = this.renderOptions).renderBefore ?? (i.renderBefore = t.firstChild), t;
533
533
  }
534
534
  update(t) {
535
- const n = this.render();
536
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = lr(n, this.renderRoot, this.renderOptions);
535
+ const i = this.render();
536
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = lr(i, this.renderRoot, this.renderOptions);
537
537
  }
538
538
  connectedCallback() {
539
539
  var t;
@@ -547,39 +547,39 @@ let tt = class extends jt {
547
547
  return at;
548
548
  }
549
549
  };
550
- var Ii;
551
- tt._$litElement$ = !0, tt.finalized = !0, (Ii = globalThis.litElementHydrateSupport) == null || Ii.call(globalThis, { LitElement: tt });
552
- const $n = globalThis.litElementPolyfillSupport;
553
- $n == null || $n({ LitElement: tt });
550
+ var In;
551
+ tt._$litElement$ = !0, tt.finalized = !0, (In = globalThis.litElementHydrateSupport) == null || In.call(globalThis, { LitElement: tt });
552
+ const wi = globalThis.litElementPolyfillSupport;
553
+ wi == null || wi({ LitElement: tt });
554
554
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
555
555
  /**
556
556
  * @license
557
557
  * Copyright 2021 Google LLC
558
558
  * SPDX-License-Identifier: BSD-3-Clause
559
559
  */
560
- function F(e, t, n) {
561
- return e ? t(e) : n == null ? void 0 : n(e);
560
+ function F(e, t, i) {
561
+ return e ? t(e) : i == null ? void 0 : i(e);
562
562
  }
563
563
  /**
564
564
  * @license
565
565
  * Copyright 2017 Google LLC
566
566
  * SPDX-License-Identifier: BSD-3-Clause
567
567
  */
568
- const xt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Gn = (e) => (...t) => ({ _$litDirective$: e, values: t });
569
- class Jn {
568
+ const xt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Wi = (e) => (...t) => ({ _$litDirective$: e, values: t });
569
+ class Gi {
570
570
  constructor(t) {
571
571
  }
572
572
  get _$AU() {
573
573
  return this._$AM._$AU;
574
574
  }
575
- _$AT(t, n, i) {
576
- this._$Ct = t, this._$AM = n, this._$Ci = i;
575
+ _$AT(t, i, n) {
576
+ this._$Ct = t, this._$AM = i, this._$Ci = n;
577
577
  }
578
- _$AS(t, n) {
579
- return this.update(t, n);
578
+ _$AS(t, i) {
579
+ return this.update(t, i);
580
580
  }
581
- update(t, n) {
582
- return this.render(...n);
581
+ update(t, i) {
582
+ return this.render(...i);
583
583
  }
584
584
  }
585
585
  /**
@@ -587,33 +587,33 @@ class Jn {
587
587
  * Copyright 2020 Google LLC
588
588
  * SPDX-License-Identifier: BSD-3-Clause
589
589
  */
590
- const { I: ur } = ar, dr = (e) => e.strings === void 0, yi = () => document.createComment(""), ie = (e, t, n) => {
590
+ const { I: dr } = ar, ur = (e) => e.strings === void 0, yn = () => document.createComment(""), ne = (e, t, i) => {
591
591
  var r;
592
- const i = e._$AA.parentNode, o = t === void 0 ? e._$AB : t._$AA;
593
- if (n === void 0) {
594
- const s = i.insertBefore(yi(), o), a = i.insertBefore(yi(), o);
595
- n = new ur(s, a, e, e.options);
592
+ const n = e._$AA.parentNode, o = t === void 0 ? e._$AB : t._$AA;
593
+ if (i === void 0) {
594
+ const s = n.insertBefore(yn(), o), a = n.insertBefore(yn(), o);
595
+ i = new dr(s, a, e, e.options);
596
596
  } else {
597
- const s = n._$AB.nextSibling, a = n._$AM, l = a !== e;
597
+ const s = i._$AB.nextSibling, a = i._$AM, l = a !== e;
598
598
  if (l) {
599
- let u;
600
- (r = n._$AQ) == null || r.call(n, e), n._$AM = e, n._$AP !== void 0 && (u = e._$AU) !== a._$AU && n._$AP(u);
599
+ let d;
600
+ (r = i._$AQ) == null || r.call(i, e), i._$AM = e, i._$AP !== void 0 && (d = e._$AU) !== a._$AU && i._$AP(d);
601
601
  }
602
602
  if (s !== o || l) {
603
- let u = n._$AA;
604
- for (; u !== s; ) {
605
- const c = u.nextSibling;
606
- i.insertBefore(u, o), u = c;
603
+ let d = i._$AA;
604
+ for (; d !== s; ) {
605
+ const c = d.nextSibling;
606
+ n.insertBefore(d, o), d = c;
607
607
  }
608
608
  }
609
609
  }
610
- return n;
611
- }, Rt = (e, t, n = e) => (e._$AI(t, n), e), cr = {}, Yi = (e, t = cr) => e._$AH = t, hr = (e) => e._$AH, xn = (e) => {
612
- var i;
613
- (i = e._$AP) == null || i.call(e, !1, !0);
610
+ return i;
611
+ }, Rt = (e, t, i = e) => (e._$AI(t, i), e), cr = {}, Yn = (e, t = cr) => e._$AH = t, hr = (e) => e._$AH, $i = (e) => {
612
+ var n;
613
+ (n = e._$AP) == null || n.call(e, !1, !0);
614
614
  let t = e._$AA;
615
- const n = e._$AB.nextSibling;
616
- for (; t !== n; ) {
615
+ const i = e._$AB.nextSibling;
616
+ for (; t !== i; ) {
617
617
  const o = t.nextSibling;
618
618
  t.remove(), t = o;
619
619
  }
@@ -623,54 +623,54 @@ const { I: ur } = ar, dr = (e) => e.strings === void 0, yi = () => document.crea
623
623
  * Copyright 2017 Google LLC
624
624
  * SPDX-License-Identifier: BSD-3-Clause
625
625
  */
626
- const bi = (e, t, n) => {
627
- const i = /* @__PURE__ */ new Map();
628
- for (let o = t; o <= n; o++) i.set(e[o], o);
629
- return i;
630
- }, pr = Gn(class extends Jn {
626
+ const bn = (e, t, i) => {
627
+ const n = /* @__PURE__ */ new Map();
628
+ for (let o = t; o <= i; o++) n.set(e[o], o);
629
+ return n;
630
+ }, pr = Wi(class extends Gi {
631
631
  constructor(e) {
632
632
  if (super(e), e.type !== xt.CHILD) throw Error("repeat() can only be used in text expressions");
633
633
  }
634
- dt(e, t, n) {
635
- let i;
636
- n === void 0 ? n = t : t !== void 0 && (i = t);
634
+ dt(e, t, i) {
635
+ let n;
636
+ i === void 0 ? i = t : t !== void 0 && (n = t);
637
637
  const o = [], r = [];
638
638
  let s = 0;
639
- for (const a of e) o[s] = i ? i(a, s) : s, r[s] = n(a, s), s++;
639
+ for (const a of e) o[s] = n ? n(a, s) : s, r[s] = i(a, s), s++;
640
640
  return { values: r, keys: o };
641
641
  }
642
- render(e, t, n) {
643
- return this.dt(e, t, n).values;
642
+ render(e, t, i) {
643
+ return this.dt(e, t, i).values;
644
644
  }
645
- update(e, [t, n, i]) {
646
- const o = hr(e), { values: r, keys: s } = this.dt(t, n, i);
645
+ update(e, [t, i, n]) {
646
+ const o = hr(e), { values: r, keys: s } = this.dt(t, i, n);
647
647
  if (!Array.isArray(o)) return this.ut = s, r;
648
648
  const a = this.ut ?? (this.ut = []), l = [];
649
- let u, c, d = 0, p = o.length - 1, f = 0, g = r.length - 1;
650
- for (; d <= p && f <= g; ) if (o[d] === null) d++;
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
651
  else if (o[p] === null) p--;
652
- else if (a[d] === s[f]) l[f] = Rt(o[d], r[f]), d++, f++;
652
+ else if (a[u] === s[f]) l[f] = Rt(o[u], r[f]), u++, f++;
653
653
  else if (a[p] === s[g]) l[g] = Rt(o[p], r[g]), p--, g--;
654
- else if (a[d] === s[g]) l[g] = Rt(o[d], r[g]), ie(e, l[g + 1], o[d]), d++, g--;
655
- else if (a[p] === s[f]) l[f] = Rt(o[p], r[f]), ie(e, o[d], o[p]), p--, f++;
656
- else if (u === void 0 && (u = bi(s, f, g), c = bi(a, d, p)), u.has(a[d])) if (u.has(a[p])) {
654
+ else if (a[u] === s[g]) l[g] = Rt(o[u], r[g]), ne(e, l[g + 1], o[u]), u++, g--;
655
+ else if (a[p] === s[f]) l[f] = Rt(o[p], r[f]), ne(e, o[u], o[p]), p--, f++;
656
+ else if (d === void 0 && (d = bn(s, f, g), c = bn(a, u, p)), d.has(a[u])) if (d.has(a[p])) {
657
657
  const y = c.get(s[f]), D = y !== void 0 ? o[y] : null;
658
658
  if (D === null) {
659
- const M = ie(e, o[d]);
659
+ const M = ne(e, o[u]);
660
660
  Rt(M, r[f]), l[f] = M;
661
- } else l[f] = Rt(D, r[f]), ie(e, o[d], D), o[y] = null;
661
+ } else l[f] = Rt(D, r[f]), ne(e, o[u], D), o[y] = null;
662
662
  f++;
663
- } else xn(o[p]), p--;
664
- else xn(o[d]), d++;
663
+ } else $i(o[p]), p--;
664
+ else $i(o[u]), u++;
665
665
  for (; f <= g; ) {
666
- const y = ie(e, l[g + 1]);
666
+ const y = ne(e, l[g + 1]);
667
667
  Rt(y, r[f]), l[f++] = y;
668
668
  }
669
- for (; d <= p; ) {
670
- const y = o[d++];
671
- y !== null && xn(y);
669
+ for (; u <= p; ) {
670
+ const y = o[u++];
671
+ y !== null && $i(y);
672
672
  }
673
- return this.ut = s, Yi(e, l), at;
673
+ return this.ut = s, Yn(e, l), at;
674
674
  }
675
675
  });
676
676
  /**
@@ -679,7 +679,7 @@ const bi = (e, t, n) => {
679
679
  * @license BSD-2-Clause
680
680
  * @preserve
681
681
  */
682
- var E = (e) => e !== void 0, Wi = (e, t, n) => t in e ? e[t] : e[t] = n;
682
+ var E = (e) => e !== void 0, Wn = (e, t, i) => t in e ? e[t] : e[t] = i;
683
683
  const ye = {
684
684
  ELEMENT: 1,
685
685
  ATTRIBUTE: 2,
@@ -718,29 +718,29 @@ class fr {
718
718
  * @return {string} All text content.
719
719
  * @api
720
720
  */
721
- getAllTextContent(t, n) {
722
- return gn(t, n).join("");
721
+ getAllTextContent(t, i) {
722
+ return fi(t, i).join("");
723
723
  }
724
724
  }
725
- function gn(e, t) {
726
- return Gi(e, t, []).join("");
725
+ function fi(e, t) {
726
+ return Gn(e, t, []).join("");
727
727
  }
728
- function Gi(e, t, n) {
728
+ function Gn(e, t, i) {
729
729
  if (e.nodeType === ye.CDATA_SECTION || e.nodeType === ye.TEXT)
730
- t ? n.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g, "")) : n.push(e.nodeValue);
730
+ t ? i.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g, "")) : i.push(e.nodeValue);
731
731
  else {
732
- var i;
733
- for (i = e.firstChild; i; i = i.nextSibling)
734
- Gi(i, t, n);
732
+ var n;
733
+ for (n = e.firstChild; n; n = n.nextSibling)
734
+ Gn(n, t, i);
735
735
  }
736
- return n;
736
+ return i;
737
737
  }
738
- function gr(e, t, n, i) {
738
+ function gr(e, t, i, n) {
739
739
  for (var o = mr(t); o; o = yr(o)) {
740
740
  var r = o.namespaceURI || null, s = e[r];
741
741
  if (E(s)) {
742
742
  var a = s[o.localName];
743
- E(a) && a.call(i, o, n);
743
+ E(a) && a.call(n, o, i);
744
744
  }
745
745
  }
746
746
  }
@@ -756,79 +756,79 @@ function yr(e) {
756
756
  t = t.nextSibling;
757
757
  return t;
758
758
  }
759
- function Y(e, t, n) {
759
+ function Y(e, t, i) {
760
760
  return (
761
761
  /** @type {Object.<string, Object.<string, XMLParser.Parser>>} */
762
- br(e, t, n)
762
+ br(e, t, i)
763
763
  );
764
764
  }
765
- function br(e, t, n) {
766
- var i = E(n) ? n : {}, o, r;
765
+ function br(e, t, i) {
766
+ var n = E(i) ? i : {}, o, r;
767
767
  for (o = 0, r = e.length; o < r; ++o)
768
- i[e[o]] = t;
769
- return i;
768
+ n[e[o]] = t;
769
+ return n;
770
770
  }
771
- function Ji(e, t) {
771
+ function Jn(e, t) {
772
772
  return (
773
773
  /**
774
774
  * @param {Node} node Node.
775
775
  * @param {Array.<*>} objectStack Object stack.
776
776
  */
777
- function(n, i) {
777
+ function(i, n) {
778
778
  var o = e.call(
779
779
  E(t) ? t : this,
780
- n,
781
- i
780
+ i,
781
+ n
782
782
  );
783
783
  if (E(o)) {
784
- var r = i[i.length - 1];
784
+ var r = n[n.length - 1];
785
785
  r.push(o);
786
786
  }
787
787
  }
788
788
  );
789
789
  }
790
- function j(e, t, n, i, o) {
791
- return i.push(e), gr(t, n, i, o), i.pop();
790
+ function j(e, t, i, n, o) {
791
+ return n.push(e), gr(t, i, n, o), n.pop();
792
792
  }
793
- function m(e, t, n) {
793
+ function m(e, t, i) {
794
794
  return (
795
795
  /**
796
796
  * @param {Node} node Node.
797
797
  * @param {Array.<*>} objectStack Object stack.
798
798
  */
799
- function(i, o) {
799
+ function(n, o) {
800
800
  let r = e.call(
801
- E(n) ? n : this,
802
- i,
801
+ E(i) ? i : this,
802
+ n,
803
803
  o
804
804
  );
805
805
  if (E(r)) {
806
806
  var s = (
807
807
  /** @type {Object} */
808
808
  o[o.length - 1]
809
- ), a = E(t) ? t : i.localName;
809
+ ), a = E(t) ? t : n.localName;
810
810
  s[a] = r;
811
811
  }
812
812
  }
813
813
  );
814
814
  }
815
- function nt(e, t, n) {
815
+ function it(e, t, i) {
816
816
  return (
817
817
  /**
818
818
  * @param {Node} node Node.
819
819
  * @param {Array.<*>} objectStack Object stack.
820
820
  */
821
- function(i, o) {
821
+ function(n, o) {
822
822
  var r = e.call(
823
- E(n) ? n : this,
824
- i,
823
+ E(i) ? i : this,
824
+ n,
825
825
  o
826
826
  );
827
827
  if (E(r)) {
828
828
  var s = (
829
829
  /** @type {Object} */
830
830
  o[o.length - 1]
831
- ), a = E(t) ? t : i.localName, l = Wi(s, a, []);
831
+ ), a = E(t) ? t : n.localName, l = Wn(s, a, []);
832
832
  l.push(r);
833
833
  }
834
834
  }
@@ -844,15 +844,15 @@ function Ht(e) {
844
844
  return E(t[1]) || !1;
845
845
  }
846
846
  function zt(e) {
847
- return gt(gn(e, !1));
847
+ return gt(fi(e, !1));
848
848
  }
849
849
  function gt(e) {
850
850
  const t = /^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(e);
851
851
  if (t)
852
852
  return parseFloat(t[1]);
853
853
  }
854
- function En(e) {
855
- return ke(gn(e, !1));
854
+ function xi(e) {
855
+ return ke(fi(e, !1));
856
856
  }
857
857
  function ke(e) {
858
858
  const t = /^\s*(\d+)\s*$/.exec(e);
@@ -860,16 +860,16 @@ function ke(e) {
860
860
  return parseInt(t[1], 10);
861
861
  }
862
862
  function _(e) {
863
- return wr(gn(e, !1));
863
+ return wr(fi(e, !1));
864
864
  }
865
865
  const $r = "http://www.w3.org/1999/xlink";
866
- function Kn(e) {
866
+ function Ji(e) {
867
867
  return e.getAttributeNS($r, "href");
868
868
  }
869
869
  function xr(e, t) {
870
870
  return j({}, Wr, e, t);
871
871
  }
872
- function Ki(e) {
872
+ function Kn(e) {
873
873
  return [
874
874
  gt(e.getAttribute("minx")),
875
875
  gt(e.getAttribute("miny")),
@@ -878,49 +878,49 @@ function Ki(e) {
878
878
  ];
879
879
  }
880
880
  function Er(e, t) {
881
- const n = Ki(e), i = [
881
+ const i = Kn(e), n = [
882
882
  gt(e.getAttribute("resx")),
883
883
  gt(e.getAttribute("resy"))
884
884
  ];
885
885
  return {
886
886
  crs: e.getAttribute("CRS") || e.getAttribute("SRS"),
887
- extent: n,
888
- res: i
887
+ extent: i,
888
+ res: n
889
889
  };
890
890
  }
891
891
  function Sr(e, t) {
892
- const n = Ki(e);
893
- if (!(!E(n[0]) || !E(n[1]) || !E(n[2]) || !E(n[3])))
894
- return n;
892
+ const i = Kn(e);
893
+ if (!(!E(i[0]) || !E(i[1]) || !E(i[2]) || !E(i[3])))
894
+ return i;
895
895
  }
896
896
  function Ar(e, t) {
897
- const n = parseFloat(e.getAttribute("min")), i = parseFloat(e.getAttribute("max"));
898
- return { min: n, max: i };
897
+ const i = parseFloat(e.getAttribute("min")), n = parseFloat(e.getAttribute("max"));
898
+ return { min: i, max: n };
899
899
  }
900
900
  function _r(e, t) {
901
- const n = j(
901
+ const i = j(
902
902
  {},
903
903
  Gr,
904
904
  e,
905
905
  t
906
906
  );
907
- if (!E(n)) return;
908
- const i = (
907
+ if (!E(i)) return;
908
+ const n = (
909
909
  /** @type {number|undefined} */
910
- n.westBoundLongitude
910
+ i.westBoundLongitude
911
911
  ), o = (
912
912
  /** @type {number|undefined} */
913
- n.southBoundLatitude
913
+ i.southBoundLatitude
914
914
  ), r = (
915
915
  /** @type {number|undefined} */
916
- n.eastBoundLongitude
916
+ i.eastBoundLongitude
917
917
  ), s = (
918
918
  /** @type {number|undefined} */
919
- n.northBoundLatitude
919
+ i.northBoundLatitude
920
920
  );
921
- if (!(!E(i) || !E(o) || !E(r) || !E(s)))
921
+ if (!(!E(n) || !E(o) || !E(r) || !E(s)))
922
922
  return [
923
- i,
923
+ n,
924
924
  o,
925
925
  r,
926
926
  s
@@ -965,10 +965,10 @@ function Rr(e, t) {
965
965
  );
966
966
  }
967
967
  function Lr(e, t) {
968
- const n = Ht(e.getAttribute("queryable"));
968
+ const i = Ht(e.getAttribute("queryable"));
969
969
  return j(
970
970
  {
971
- queryable: E(n) ? n : !1
971
+ queryable: E(i) ? i : !1
972
972
  },
973
973
  eo,
974
974
  e,
@@ -976,11 +976,11 @@ function Lr(e, t) {
976
976
  );
977
977
  }
978
978
  function Mr(e, t) {
979
- var n = (
979
+ var i = (
980
980
  /** @type {Object.<string,*>} */
981
981
  t[t.length - 1]
982
982
  );
983
- const i = (
983
+ const n = (
984
984
  /** @type {Object.<string,*>} */
985
985
  j(
986
986
  {},
@@ -989,28 +989,28 @@ function Mr(e, t) {
989
989
  t
990
990
  )
991
991
  );
992
- if (!E(i)) return;
992
+ if (!E(n)) return;
993
993
  let o = Ht(e.getAttribute("queryable"));
994
- E(o) || (o = n.queryable), i.queryable = E(o) ? o : !1;
994
+ E(o) || (o = i.queryable), n.queryable = E(o) ? o : !1;
995
995
  let r = ke(e.getAttribute("cascaded"));
996
- E(r) || (r = n.cascaded), i.cascaded = r;
996
+ E(r) || (r = i.cascaded), n.cascaded = r;
997
997
  let s = Ht(e.getAttribute("opaque"));
998
- E(s) || (s = n.opaque), i.opaque = E(s) ? s : !1;
998
+ E(s) || (s = i.opaque), n.opaque = E(s) ? s : !1;
999
999
  let a = Ht(e.getAttribute("noSubsets"));
1000
- E(a) || (a = n.noSubsets), i.noSubsets = E(a) ? a : !1;
1000
+ E(a) || (a = i.noSubsets), n.noSubsets = E(a) ? a : !1;
1001
1001
  let l = gt(e.getAttribute("fixedWidth"));
1002
- E(l) || (l = n.fixedWidth), i.fixedWidth = l;
1003
- let u = gt(e.getAttribute("fixedHeight"));
1004
- E(u) || (u = n.fixedHeight), i.fixedHeight = u;
1002
+ E(l) || (l = i.fixedWidth), n.fixedWidth = l;
1003
+ let d = gt(e.getAttribute("fixedHeight"));
1004
+ E(d) || (d = i.fixedHeight), n.fixedHeight = d;
1005
1005
  const c = ["Style", "CRS", "AuthorityURL"];
1006
1006
  for (let p = 0, f = c.length; p < f; p++) {
1007
- const g = c[p], y = n[g];
1007
+ const g = c[p], y = i[g];
1008
1008
  if (E(y)) {
1009
- let D = Wi(i, g, []);
1010
- D = D.concat(y), i[g] = D;
1009
+ let D = Wn(n, g, []);
1010
+ D = D.concat(y), n[g] = D;
1011
1011
  }
1012
1012
  }
1013
- const d = [
1013
+ const u = [
1014
1014
  "EX_GeographicBoundingBox",
1015
1015
  "BoundingBox",
1016
1016
  "Dimension",
@@ -1018,14 +1018,14 @@ function Mr(e, t) {
1018
1018
  "MinScaleDenominator",
1019
1019
  "MaxScaleDenominator"
1020
1020
  ];
1021
- for (let p = 0, f = d.length; p < f; p++) {
1022
- const g = d[p], y = i[g];
1021
+ for (let p = 0, f = u.length; p < f; p++) {
1022
+ const g = u[p], y = n[g];
1023
1023
  if (!E(y)) {
1024
- const D = n[g];
1025
- i[g] = D;
1024
+ const D = i[g];
1025
+ n[g] = D;
1026
1026
  }
1027
1027
  }
1028
- return i;
1028
+ return n;
1029
1029
  }
1030
1030
  function Ir(e, t) {
1031
1031
  return {
@@ -1042,7 +1042,7 @@ function Ir(e, t) {
1042
1042
  function yt(e, t) {
1043
1043
  return j(
1044
1044
  {},
1045
- ns,
1045
+ is,
1046
1046
  e,
1047
1047
  t
1048
1048
  );
@@ -1056,28 +1056,28 @@ function Hr(e, t) {
1056
1056
  function Vr(e, t) {
1057
1057
  return j({}, ts, e, t);
1058
1058
  }
1059
- function Sn(e, t) {
1059
+ function Ei(e, t) {
1060
1060
  return j({}, Kr, e, t);
1061
1061
  }
1062
- function Qi(e, t) {
1063
- var n = yt(e, t);
1064
- if (E(n)) {
1065
- const i = [
1062
+ function Qn(e, t) {
1063
+ var i = yt(e, t);
1064
+ if (E(i)) {
1065
+ const n = [
1066
1066
  ke(e.getAttribute("width")),
1067
1067
  ke(e.getAttribute("height"))
1068
1068
  ];
1069
- return n.size = i, n;
1069
+ return i.size = n, i;
1070
1070
  }
1071
1071
  }
1072
1072
  function Br(e, t) {
1073
- var n = yt(e, t);
1074
- if (E(n))
1075
- return n.name = e.getAttribute("name"), n;
1073
+ var i = yt(e, t);
1074
+ if (E(i))
1075
+ return i.name = e.getAttribute("name"), i;
1076
1076
  }
1077
1077
  function kr(e, t) {
1078
- var n = yt(e, t);
1079
- if (E(n))
1080
- return n.type = e.getAttribute("type"), n;
1078
+ var i = yt(e, t);
1079
+ if (E(i))
1080
+ return i.type = e.getAttribute("type"), i;
1081
1081
  }
1082
1082
  function Ur(e, t) {
1083
1083
  return j({}, es, e, t);
@@ -1085,7 +1085,7 @@ function Ur(e, t) {
1085
1085
  function to(e, t) {
1086
1086
  return j(
1087
1087
  [],
1088
- is,
1088
+ ns,
1089
1089
  e,
1090
1090
  t
1091
1091
  );
@@ -1113,13 +1113,13 @@ const W = [
1113
1113
  Title: m(_),
1114
1114
  Abstract: m(_),
1115
1115
  KeywordList: m(to),
1116
- OnlineResource: m(Kn),
1116
+ OnlineResource: m(Ji),
1117
1117
  ContactInformation: m(Pr),
1118
1118
  Fees: m(_),
1119
1119
  AccessConstraints: m(_),
1120
- LayerLimit: m(En),
1121
- MaxWidth: m(En),
1122
- MaxHeight: m(En)
1120
+ LayerLimit: m(xi),
1121
+ MaxWidth: m(xi),
1122
+ MaxHeight: m(xi)
1123
1123
  }
1124
1124
  ), zr = Y(
1125
1125
  W,
@@ -1150,7 +1150,7 @@ const W = [
1150
1150
  ), Yr = Y(
1151
1151
  W,
1152
1152
  {
1153
- Format: Ji(_)
1153
+ Format: Jn(_)
1154
1154
  }
1155
1155
  ), eo = Y(
1156
1156
  W,
@@ -1159,30 +1159,30 @@ const W = [
1159
1159
  Title: m(_),
1160
1160
  Abstract: m(_),
1161
1161
  KeywordList: m(to),
1162
- CRS: nt(_),
1163
- SRS: nt(_),
1162
+ CRS: it(_),
1163
+ SRS: it(_),
1164
1164
  EX_GeographicBoundingBox: m(_r),
1165
1165
  LatLonBoundingBox: m(Sr),
1166
- BoundingBox: nt(Er),
1167
- Dimension: nt(Ir),
1166
+ BoundingBox: it(Er),
1167
+ Dimension: it(Ir),
1168
1168
  Attribution: m(xr),
1169
- AuthorityURL: nt(Br),
1170
- Identifier: nt(_),
1171
- MetadataURL: nt(kr),
1172
- DataURL: nt(yt),
1173
- FeatureListURL: nt(yt),
1174
- Style: nt(Ur),
1169
+ AuthorityURL: it(Br),
1170
+ Identifier: it(_),
1171
+ MetadataURL: it(kr),
1172
+ DataURL: it(yt),
1173
+ FeatureListURL: it(yt),
1174
+ Style: it(Ur),
1175
1175
  MinScaleDenominator: m(zt),
1176
1176
  MaxScaleDenominator: m(zt),
1177
1177
  ScaleHint: m(Ar),
1178
- Layer: nt(Mr)
1178
+ Layer: it(Mr)
1179
1179
  }
1180
1180
  ), Wr = Y(
1181
1181
  W,
1182
1182
  {
1183
1183
  Title: m(_),
1184
- OnlineResource: m(Kn),
1185
- LogoURL: m(Qi)
1184
+ OnlineResource: m(Ji),
1185
+ LogoURL: m(Qn)
1186
1186
  }
1187
1187
  ), Gr = Y(W, {
1188
1188
  westBoundLongitude: m(zt),
@@ -1193,20 +1193,20 @@ const W = [
1193
1193
  W,
1194
1194
  {
1195
1195
  GetCapabilities: m(
1196
- Sn
1196
+ Ei
1197
1197
  ),
1198
1198
  GetMap: m(
1199
- Sn
1199
+ Ei
1200
1200
  ),
1201
1201
  GetFeatureInfo: m(
1202
- Sn
1202
+ Ei
1203
1203
  )
1204
1204
  }
1205
1205
  ), Kr = Y(
1206
1206
  W,
1207
1207
  {
1208
- Format: nt(_),
1209
- DCPType: nt(
1208
+ Format: it(_),
1209
+ DCPType: it(
1210
1210
  Hr
1211
1211
  )
1212
1212
  }
@@ -1233,20 +1233,20 @@ const W = [
1233
1233
  Name: m(_),
1234
1234
  Title: m(_),
1235
1235
  Abstract: m(_),
1236
- LegendURL: nt(Qi),
1236
+ LegendURL: it(Qn),
1237
1237
  StyleSheetURL: m(yt),
1238
1238
  StyleURL: m(yt)
1239
1239
  }
1240
- ), ns = Y(
1240
+ ), is = Y(
1241
1241
  W,
1242
1242
  {
1243
1243
  Format: m(_),
1244
- OnlineResource: m(Kn)
1244
+ OnlineResource: m(Ji)
1245
1245
  }
1246
- ), is = Y(
1246
+ ), ns = Y(
1247
1247
  W,
1248
1248
  {
1249
- Keyword: Ji(_)
1249
+ Keyword: Jn(_)
1250
1250
  }
1251
1251
  );
1252
1252
  class os {
@@ -1256,8 +1256,8 @@ class os {
1256
1256
  * @param {String=} xmlString
1257
1257
  * @constructor
1258
1258
  */
1259
- constructor(t, n) {
1260
- !n && typeof window < "u" && (n = window.DOMParser), this.version = void 0, this._parser = new fr(n), this._data = t;
1259
+ constructor(t, i) {
1260
+ !i && typeof window < "u" && (i = window.DOMParser), this.version = void 0, this._parser = new fr(i), this._data = t;
1261
1261
  }
1262
1262
  /**
1263
1263
  * @param {String} xmlString
@@ -1285,9 +1285,9 @@ class os {
1285
1285
  * @return {Object|null}
1286
1286
  */
1287
1287
  readFromDocument(t) {
1288
- for (let n = t.firstChild; n; n = n.nextSibling)
1289
- if (n.nodeType == ye.ELEMENT)
1290
- return this.readFromNode(n);
1288
+ for (let i = t.firstChild; i; i = i.nextSibling)
1289
+ if (i.nodeType == ye.ELEMENT)
1290
+ return this.readFromNode(i);
1291
1291
  return null;
1292
1292
  }
1293
1293
  /**
@@ -1301,25 +1301,25 @@ class os {
1301
1301
  }
1302
1302
  }
1303
1303
  async function rs(e) {
1304
- let t = new URL(e), n = t.searchParams;
1305
- n.set("SERVICE", "WMS"), n.set("REQUEST", "GetCapabilities");
1306
- let i = t.toString();
1307
- const o = await fetch(i);
1304
+ let t = new URL(e), i = t.searchParams;
1305
+ i.set("SERVICE", "WMS"), i.set("REQUEST", "GetCapabilities");
1306
+ let n = t.toString();
1307
+ const o = await fetch(n);
1308
1308
  if (o.ok) {
1309
1309
  const r = await o.text();
1310
1310
  return new os(r).toJSON();
1311
1311
  } else
1312
1312
  throw new Error(`Error: ${o.status}`);
1313
1313
  }
1314
- function Qn(e) {
1315
- const t = /\b(?:wms|ows)\b/i, n = /{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;
1316
- return t.test(e) ? "TileWMS" : n.test(e) ? "XYZ" : !1;
1314
+ function Ki(e) {
1315
+ const t = /\b(?:wms|ows)\b/i, i = /{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;
1316
+ return t.test(e) ? "TileWMS" : i.test(e) ? "XYZ" : !1;
1317
1317
  }
1318
1318
  function ss(e) {
1319
- const n = /^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(e), i = Qn(e);
1320
- return !!(e && n && i);
1319
+ const i = /^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(e), n = Ki(e);
1320
+ return !!(e && i && n);
1321
1321
  }
1322
- function no(e) {
1322
+ function io(e) {
1323
1323
  return e.replace(
1324
1324
  /(['"])?([a-zA-Z0-9_]+)(['"])?:/g,
1325
1325
  '"$2": '
@@ -1327,20 +1327,20 @@ function no(e) {
1327
1327
  }
1328
1328
  function as(e) {
1329
1329
  try {
1330
- return JSON.parse(no(e)), !!e;
1330
+ return JSON.parse(io(e)), !!e;
1331
1331
  } catch {
1332
1332
  return !1;
1333
1333
  }
1334
1334
  }
1335
1335
  function ls(e, t) {
1336
- const n = new URL(e).searchParams;
1336
+ const i = new URL(e).searchParams;
1337
1337
  Object.entries(t).forEach(([s, a]) => {
1338
1338
  typeof a == "object" && !Array.isArray(a) && a !== null ? Object.keys(a).forEach((l) => {
1339
- n.set(l, a[l]);
1340
- }) : n.set(s, a);
1339
+ i.set(l, a[l]);
1340
+ }) : i.set(s, a);
1341
1341
  });
1342
- const i = e.split("?")[0], o = n.toString();
1343
- return `${i}?${o}`;
1342
+ const n = e.split("?")[0], o = i.toString();
1343
+ return `${n}?${o}`;
1344
1344
  }
1345
1345
  /**!
1346
1346
  * Sortable 1.15.3
@@ -1348,23 +1348,23 @@ function ls(e, t) {
1348
1348
  * @author owenm <owen23355@gmail.com>
1349
1349
  * @license MIT
1350
1350
  */
1351
- function vi(e, t) {
1352
- var n = Object.keys(e);
1351
+ function vn(e, t) {
1352
+ var i = Object.keys(e);
1353
1353
  if (Object.getOwnPropertySymbols) {
1354
- var i = Object.getOwnPropertySymbols(e);
1355
- t && (i = i.filter(function(o) {
1354
+ var n = Object.getOwnPropertySymbols(e);
1355
+ t && (n = n.filter(function(o) {
1356
1356
  return Object.getOwnPropertyDescriptor(e, o).enumerable;
1357
- })), n.push.apply(n, i);
1357
+ })), i.push.apply(i, n);
1358
1358
  }
1359
- return n;
1359
+ return i;
1360
1360
  }
1361
1361
  function ct(e) {
1362
1362
  for (var t = 1; t < arguments.length; t++) {
1363
- var n = arguments[t] != null ? arguments[t] : {};
1364
- t % 2 ? vi(Object(n), !0).forEach(function(i) {
1365
- us(e, i, n[i]);
1366
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vi(Object(n)).forEach(function(i) {
1367
- Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(n, i));
1363
+ var i = arguments[t] != null ? arguments[t] : {};
1364
+ t % 2 ? vn(Object(i), !0).forEach(function(n) {
1365
+ ds(e, n, i[n]);
1366
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : vn(Object(i)).forEach(function(n) {
1367
+ Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
1368
1368
  });
1369
1369
  }
1370
1370
  return e;
@@ -1377,55 +1377,55 @@ function Oe(e) {
1377
1377
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1378
1378
  }, Oe(e);
1379
1379
  }
1380
- function us(e, t, n) {
1380
+ function ds(e, t, i) {
1381
1381
  return t in e ? Object.defineProperty(e, t, {
1382
- value: n,
1382
+ value: i,
1383
1383
  enumerable: !0,
1384
1384
  configurable: !0,
1385
1385
  writable: !0
1386
- }) : e[t] = n, e;
1386
+ }) : e[t] = i, e;
1387
1387
  }
1388
1388
  function bt() {
1389
1389
  return bt = Object.assign || function(e) {
1390
1390
  for (var t = 1; t < arguments.length; t++) {
1391
- var n = arguments[t];
1392
- for (var i in n)
1393
- Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
1391
+ var i = arguments[t];
1392
+ for (var n in i)
1393
+ Object.prototype.hasOwnProperty.call(i, n) && (e[n] = i[n]);
1394
1394
  }
1395
1395
  return e;
1396
1396
  }, bt.apply(this, arguments);
1397
1397
  }
1398
- function ds(e, t) {
1398
+ function us(e, t) {
1399
1399
  if (e == null) return {};
1400
- var n = {}, i = Object.keys(e), o, r;
1401
- for (r = 0; r < i.length; r++)
1402
- o = i[r], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
1403
- return n;
1400
+ var i = {}, n = Object.keys(e), o, r;
1401
+ for (r = 0; r < n.length; r++)
1402
+ o = n[r], !(t.indexOf(o) >= 0) && (i[o] = e[o]);
1403
+ return i;
1404
1404
  }
1405
1405
  function cs(e, t) {
1406
1406
  if (e == null) return {};
1407
- var n = ds(e, t), i, o;
1407
+ var i = us(e, t), n, o;
1408
1408
  if (Object.getOwnPropertySymbols) {
1409
1409
  var r = Object.getOwnPropertySymbols(e);
1410
1410
  for (o = 0; o < r.length; o++)
1411
- i = r[o], !(t.indexOf(i) >= 0) && Object.prototype.propertyIsEnumerable.call(e, i) && (n[i] = e[i]);
1411
+ n = r[o], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
1412
1412
  }
1413
- return n;
1413
+ return i;
1414
1414
  }
1415
1415
  var hs = "1.15.3";
1416
1416
  function mt(e) {
1417
1417
  if (typeof window < "u" && window.navigator)
1418
1418
  return !!/* @__PURE__ */ navigator.userAgent.match(e);
1419
1419
  }
1420
- var vt = mt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), xe = mt(/Edge/i), wi = mt(/firefox/i), ue = mt(/safari/i) && !mt(/chrome/i) && !mt(/android/i), io = mt(/iP(ad|od|hone)/i), oo = mt(/chrome/i) && mt(/android/i), ro = {
1420
+ var vt = mt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), xe = mt(/Edge/i), wn = mt(/firefox/i), de = mt(/safari/i) && !mt(/chrome/i) && !mt(/android/i), no = mt(/iP(ad|od|hone)/i), oo = mt(/chrome/i) && mt(/android/i), ro = {
1421
1421
  capture: !1,
1422
1422
  passive: !1
1423
1423
  };
1424
- function T(e, t, n) {
1425
- e.addEventListener(t, n, !vt && ro);
1424
+ function T(e, t, i) {
1425
+ e.addEventListener(t, i, !vt && ro);
1426
1426
  }
1427
- function A(e, t, n) {
1428
- e.removeEventListener(t, n, !vt && ro);
1427
+ function A(e, t, i) {
1428
+ e.removeEventListener(t, i, !vt && ro);
1429
1429
  }
1430
1430
  function Ue(e, t) {
1431
1431
  if (t) {
@@ -1446,98 +1446,98 @@ function Ue(e, t) {
1446
1446
  function so(e) {
1447
1447
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
1448
1448
  }
1449
- function ut(e, t, n, i) {
1449
+ function dt(e, t, i, n) {
1450
1450
  if (e) {
1451
- n = n || document;
1451
+ i = i || document;
1452
1452
  do {
1453
- if (t != null && (t[0] === ">" ? e.parentNode === n && Ue(e, t) : Ue(e, t)) || i && e === n)
1453
+ if (t != null && (t[0] === ">" ? e.parentNode === i && Ue(e, t) : Ue(e, t)) || n && e === i)
1454
1454
  return e;
1455
- if (e === n) break;
1455
+ if (e === i) break;
1456
1456
  } while (e = so(e));
1457
1457
  }
1458
1458
  return null;
1459
1459
  }
1460
- var $i = /\s+/g;
1461
- function ot(e, t, n) {
1460
+ var $n = /\s+/g;
1461
+ function ot(e, t, i) {
1462
1462
  if (e && t)
1463
1463
  if (e.classList)
1464
- e.classList[n ? "add" : "remove"](t);
1464
+ e.classList[i ? "add" : "remove"](t);
1465
1465
  else {
1466
- var i = (" " + e.className + " ").replace($i, " ").replace(" " + t + " ", " ");
1467
- e.className = (i + (n ? " " + t : "")).replace($i, " ");
1466
+ var n = (" " + e.className + " ").replace($n, " ").replace(" " + t + " ", " ");
1467
+ e.className = (n + (i ? " " + t : "")).replace($n, " ");
1468
1468
  }
1469
1469
  }
1470
- function v(e, t, n) {
1471
- var i = e && e.style;
1472
- if (i) {
1473
- if (n === void 0)
1474
- return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
1475
- !(t in i) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), i[t] = n + (typeof n == "string" ? "" : "px");
1470
+ function v(e, t, i) {
1471
+ var n = e && e.style;
1472
+ if (n) {
1473
+ if (i === void 0)
1474
+ return document.defaultView && document.defaultView.getComputedStyle ? i = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (i = e.currentStyle), t === void 0 ? i : i[t];
1475
+ !(t in n) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), n[t] = i + (typeof i == "string" ? "" : "px");
1476
1476
  }
1477
1477
  }
1478
1478
  function qt(e, t) {
1479
- var n = "";
1479
+ var i = "";
1480
1480
  if (typeof e == "string")
1481
- n = e;
1481
+ i = e;
1482
1482
  else
1483
1483
  do {
1484
- var i = v(e, "transform");
1485
- i && i !== "none" && (n = i + " " + n);
1484
+ var n = v(e, "transform");
1485
+ n && n !== "none" && (i = n + " " + i);
1486
1486
  } while (!t && (e = e.parentNode));
1487
1487
  var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
1488
- return o && new o(n);
1488
+ return o && new o(i);
1489
1489
  }
1490
- function ao(e, t, n) {
1490
+ function ao(e, t, i) {
1491
1491
  if (e) {
1492
- var i = e.getElementsByTagName(t), o = 0, r = i.length;
1493
- if (n)
1492
+ var n = e.getElementsByTagName(t), o = 0, r = n.length;
1493
+ if (i)
1494
1494
  for (; o < r; o++)
1495
- n(i[o], o);
1496
- return i;
1495
+ i(n[o], o);
1496
+ return n;
1497
1497
  }
1498
1498
  return [];
1499
1499
  }
1500
- function dt() {
1500
+ function ut() {
1501
1501
  var e = document.scrollingElement;
1502
1502
  return e || document.documentElement;
1503
1503
  }
1504
- function k(e, t, n, i, o) {
1504
+ function k(e, t, i, n, o) {
1505
1505
  if (!(!e.getBoundingClientRect && e !== window)) {
1506
- var r, s, a, l, u, c, d;
1507
- if (e !== window && e.parentNode && e !== dt() ? (r = e.getBoundingClientRect(), s = r.top, a = r.left, l = r.bottom, u = r.right, c = r.height, d = r.width) : (s = 0, a = 0, l = window.innerHeight, u = window.innerWidth, c = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (o = o || e.parentNode, !vt))
1506
+ var r, s, a, l, d, c, u;
1507
+ if (e !== window && e.parentNode && e !== ut() ? (r = e.getBoundingClientRect(), s = r.top, a = r.left, l = r.bottom, d = r.right, c = r.height, u = r.width) : (s = 0, a = 0, l = window.innerHeight, d = window.innerWidth, c = window.innerHeight, u = window.innerWidth), (t || i) && e !== window && (o = o || e.parentNode, !vt))
1508
1508
  do
1509
- if (o && o.getBoundingClientRect && (v(o, "transform") !== "none" || n && v(o, "position") !== "static")) {
1509
+ if (o && o.getBoundingClientRect && (v(o, "transform") !== "none" || i && v(o, "position") !== "static")) {
1510
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, u = a + r.width;
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;
1512
1512
  break;
1513
1513
  }
1514
1514
  while (o = o.parentNode);
1515
- if (i && e !== window) {
1515
+ if (n && e !== window) {
1516
1516
  var f = qt(o || e), g = f && f.a, y = f && f.d;
1517
- f && (s /= y, a /= g, d /= g, c /= y, l = s + c, u = a + d);
1517
+ f && (s /= y, a /= g, u /= g, c /= y, l = s + c, d = a + u);
1518
1518
  }
1519
1519
  return {
1520
1520
  top: s,
1521
1521
  left: a,
1522
1522
  bottom: l,
1523
- right: u,
1524
- width: d,
1523
+ right: d,
1524
+ width: u,
1525
1525
  height: c
1526
1526
  };
1527
1527
  }
1528
1528
  }
1529
- function xi(e, t, n) {
1530
- for (var i = _t(e, !0), o = k(e)[t]; i; ) {
1531
- var r = k(i)[n], s = void 0;
1532
- if (s = o >= r, !s) return i;
1533
- if (i === dt()) break;
1534
- i = _t(i, !1);
1529
+ function xn(e, t, i) {
1530
+ for (var n = _t(e, !0), o = k(e)[t]; n; ) {
1531
+ var r = k(n)[i], s = void 0;
1532
+ if (s = o >= r, !s) return n;
1533
+ if (n === ut()) break;
1534
+ n = _t(n, !1);
1535
1535
  }
1536
1536
  return !1;
1537
1537
  }
1538
- function Wt(e, t, n, i) {
1538
+ function Wt(e, t, i, n) {
1539
1539
  for (var o = 0, r = 0, s = e.children; r < s.length; ) {
1540
- if (s[r].style.display !== "none" && s[r] !== w.ghost && (i || s[r] !== w.dragged) && ut(s[r], n.draggable, e, !1)) {
1540
+ if (s[r].style.display !== "none" && s[r] !== w.ghost && (n || s[r] !== w.dragged) && dt(s[r], i.draggable, e, !1)) {
1541
1541
  if (o === t)
1542
1542
  return s[r];
1543
1543
  o++;
@@ -1546,99 +1546,99 @@ function Wt(e, t, n, i) {
1546
1546
  }
1547
1547
  return null;
1548
1548
  }
1549
- function ti(e, t) {
1550
- for (var n = e.lastElementChild; n && (n === w.ghost || v(n, "display") === "none" || t && !Ue(n, t)); )
1551
- n = n.previousElementSibling;
1552
- return n || null;
1549
+ function Qi(e, t) {
1550
+ for (var i = e.lastElementChild; i && (i === w.ghost || v(i, "display") === "none" || t && !Ue(i, t)); )
1551
+ i = i.previousElementSibling;
1552
+ return i || null;
1553
1553
  }
1554
1554
  function st(e, t) {
1555
- var n = 0;
1555
+ var i = 0;
1556
1556
  if (!e || !e.parentNode)
1557
1557
  return -1;
1558
1558
  for (; e = e.previousElementSibling; )
1559
- e.nodeName.toUpperCase() !== "TEMPLATE" && e !== w.clone && (!t || Ue(e, t)) && n++;
1560
- return n;
1559
+ e.nodeName.toUpperCase() !== "TEMPLATE" && e !== w.clone && (!t || Ue(e, t)) && i++;
1560
+ return i;
1561
1561
  }
1562
- function Ei(e) {
1563
- var t = 0, n = 0, i = dt();
1562
+ function En(e) {
1563
+ var t = 0, i = 0, n = ut();
1564
1564
  if (e)
1565
1565
  do {
1566
1566
  var o = qt(e), r = o.a, s = o.d;
1567
- t += e.scrollLeft * r, n += e.scrollTop * s;
1568
- } while (e !== i && (e = e.parentNode));
1569
- return [t, n];
1567
+ t += e.scrollLeft * r, i += e.scrollTop * s;
1568
+ } while (e !== n && (e = e.parentNode));
1569
+ return [t, i];
1570
1570
  }
1571
1571
  function ps(e, t) {
1572
- for (var n in e)
1573
- if (e.hasOwnProperty(n)) {
1574
- for (var i in t)
1575
- if (t.hasOwnProperty(i) && t[i] === e[n][i]) return Number(n);
1572
+ for (var i in e)
1573
+ if (e.hasOwnProperty(i)) {
1574
+ for (var n in t)
1575
+ if (t.hasOwnProperty(n) && t[n] === e[i][n]) return Number(i);
1576
1576
  }
1577
1577
  return -1;
1578
1578
  }
1579
1579
  function _t(e, t) {
1580
- if (!e || !e.getBoundingClientRect) return dt();
1581
- var n = e, i = !1;
1580
+ if (!e || !e.getBoundingClientRect) return ut();
1581
+ var i = e, n = !1;
1582
1582
  do
1583
- if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
1584
- var o = v(n);
1585
- if (n.clientWidth < n.scrollWidth && (o.overflowX == "auto" || o.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (o.overflowY == "auto" || o.overflowY == "scroll")) {
1586
- if (!n.getBoundingClientRect || n === document.body) return dt();
1587
- if (i || t) return n;
1588
- i = !0;
1583
+ if (i.clientWidth < i.scrollWidth || i.clientHeight < i.scrollHeight) {
1584
+ var o = v(i);
1585
+ if (i.clientWidth < i.scrollWidth && (o.overflowX == "auto" || o.overflowX == "scroll") || i.clientHeight < i.scrollHeight && (o.overflowY == "auto" || o.overflowY == "scroll")) {
1586
+ if (!i.getBoundingClientRect || i === document.body) return ut();
1587
+ if (n || t) return i;
1588
+ n = !0;
1589
1589
  }
1590
1590
  }
1591
- while (n = n.parentNode);
1592
- return dt();
1591
+ while (i = i.parentNode);
1592
+ return ut();
1593
1593
  }
1594
1594
  function fs(e, t) {
1595
1595
  if (e && t)
1596
- for (var n in t)
1597
- t.hasOwnProperty(n) && (e[n] = t[n]);
1596
+ for (var i in t)
1597
+ t.hasOwnProperty(i) && (e[i] = t[i]);
1598
1598
  return e;
1599
1599
  }
1600
- function An(e, t) {
1600
+ function Si(e, t) {
1601
1601
  return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
1602
1602
  }
1603
- var de;
1603
+ var ue;
1604
1604
  function lo(e, t) {
1605
1605
  return function() {
1606
- if (!de) {
1607
- var n = arguments, i = this;
1608
- n.length === 1 ? e.call(i, n[0]) : e.apply(i, n), de = setTimeout(function() {
1609
- de = void 0;
1606
+ if (!ue) {
1607
+ var i = arguments, n = this;
1608
+ i.length === 1 ? e.call(n, i[0]) : e.apply(n, i), ue = setTimeout(function() {
1609
+ ue = void 0;
1610
1610
  }, t);
1611
1611
  }
1612
1612
  };
1613
1613
  }
1614
1614
  function gs() {
1615
- clearTimeout(de), de = void 0;
1615
+ clearTimeout(ue), ue = void 0;
1616
1616
  }
1617
- function uo(e, t, n) {
1618
- e.scrollLeft += t, e.scrollTop += n;
1617
+ function uo(e, t, i) {
1618
+ e.scrollLeft += t, e.scrollTop += i;
1619
1619
  }
1620
1620
  function co(e) {
1621
- var t = window.Polymer, n = window.jQuery || window.Zepto;
1622
- return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
1621
+ var t = window.Polymer, i = window.jQuery || window.Zepto;
1622
+ return t && t.dom ? t.dom(e).cloneNode(!0) : i ? i(e).clone(!0)[0] : e.cloneNode(!0);
1623
1623
  }
1624
- function ho(e, t, n) {
1625
- var i = {};
1624
+ function ho(e, t, i) {
1625
+ var n = {};
1626
1626
  return Array.from(e.children).forEach(function(o) {
1627
1627
  var r, s, a, l;
1628
- if (!(!ut(o, t.draggable, e, !1) || o.animated || o === n)) {
1629
- var u = k(o);
1630
- i.left = Math.min((r = i.left) !== null && r !== void 0 ? r : 1 / 0, u.left), i.top = Math.min((s = i.top) !== null && s !== void 0 ? s : 1 / 0, u.top), i.right = Math.max((a = i.right) !== null && a !== void 0 ? a : -1 / 0, u.right), i.bottom = Math.max((l = i.bottom) !== null && l !== void 0 ? l : -1 / 0, u.bottom);
1628
+ if (!(!dt(o, t.draggable, e, !1) || o.animated || o === i)) {
1629
+ var d = k(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);
1631
1631
  }
1632
- }), i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
1632
+ }), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
1633
1633
  }
1634
- var it = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
1634
+ var nt = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
1635
1635
  function ms() {
1636
1636
  var e = [], t;
1637
1637
  return {
1638
1638
  captureAnimationState: function() {
1639
1639
  if (e = [], !!this.options.animation) {
1640
- var i = [].slice.call(this.el.children);
1641
- i.forEach(function(o) {
1640
+ var n = [].slice.call(this.el.children);
1641
+ n.forEach(function(o) {
1642
1642
  if (!(v(o, "display") === "none" || o === w.ghost)) {
1643
1643
  e.push({
1644
1644
  target: o,
@@ -1654,37 +1654,37 @@ function ms() {
1654
1654
  });
1655
1655
  }
1656
1656
  },
1657
- addAnimationState: function(i) {
1658
- e.push(i);
1657
+ addAnimationState: function(n) {
1658
+ e.push(n);
1659
1659
  },
1660
- removeAnimationState: function(i) {
1660
+ removeAnimationState: function(n) {
1661
1661
  e.splice(ps(e, {
1662
- target: i
1662
+ target: n
1663
1663
  }), 1);
1664
1664
  },
1665
- animateAll: function(i) {
1665
+ animateAll: function(n) {
1666
1666
  var o = this;
1667
1667
  if (!this.options.animation) {
1668
- clearTimeout(t), typeof i == "function" && i();
1668
+ clearTimeout(t), typeof n == "function" && n();
1669
1669
  return;
1670
1670
  }
1671
1671
  var r = !1, s = 0;
1672
1672
  e.forEach(function(a) {
1673
- var l = 0, u = a.target, c = u.fromRect, d = k(u), p = u.prevFromRect, f = u.prevToRect, g = a.rect, y = qt(u, !0);
1674
- y && (d.top -= y.f, d.left -= y.e), u.toRect = d, u.thisAnimationDuration && An(p, d) && !An(c, d) && // Make sure animatingRect is on line between toRect & fromRect
1675
- (g.top - d.top) / (g.left - d.left) === (c.top - d.top) / (c.left - d.left) && (l = bs(g, p, f, o.options)), An(d, c) || (u.prevFromRect = c, u.prevToRect = d, l || (l = o.options.animation), o.animate(u, g, d, l)), l && (r = !0, s = Math.max(s, l), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
1676
- u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
1677
- }, l), u.thisAnimationDuration = l);
1673
+ var l = 0, d = a.target, c = d.fromRect, u = k(d), p = d.prevFromRect, f = d.prevToRect, g = a.rect, y = qt(d, !0);
1674
+ y && (u.top -= y.f, u.left -= y.e), d.toRect = u, d.thisAnimationDuration && Si(p, u) && !Si(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 = bs(g, p, f, o.options)), Si(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() {
1676
+ d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
1677
+ }, l), d.thisAnimationDuration = l);
1678
1678
  }), clearTimeout(t), r ? t = setTimeout(function() {
1679
- typeof i == "function" && i();
1680
- }, s) : typeof i == "function" && i(), e = [];
1679
+ typeof n == "function" && n();
1680
+ }, s) : typeof n == "function" && n(), e = [];
1681
1681
  },
1682
- animate: function(i, o, r, s) {
1682
+ animate: function(n, o, r, s) {
1683
1683
  if (s) {
1684
- v(i, "transition", ""), v(i, "transform", "");
1685
- var a = qt(this.el), l = a && a.a, u = a && a.d, c = (o.left - r.left) / (l || 1), d = (o.top - r.top) / (u || 1);
1686
- i.animatingX = !!c, i.animatingY = !!d, v(i, "transform", "translate3d(" + c + "px," + d + "px,0)"), this.forRepaintDummy = ys(i), v(i, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(i, "transform", "translate3d(0,0,0)"), typeof i.animated == "number" && clearTimeout(i.animated), i.animated = setTimeout(function() {
1687
- v(i, "transition", ""), v(i, "transform", ""), i.animated = !1, i.animatingX = !1, i.animatingY = !1;
1684
+ v(n, "transition", ""), v(n, "transform", "");
1685
+ var a = qt(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 = ys(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
+ v(n, "transition", ""), v(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
1688
1688
  }, s);
1689
1689
  }
1690
1690
  }
@@ -1693,40 +1693,40 @@ function ms() {
1693
1693
  function ys(e) {
1694
1694
  return e.offsetWidth;
1695
1695
  }
1696
- function bs(e, t, n, i) {
1697
- return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) * i.animation;
1696
+ function bs(e, t, i, n) {
1697
+ return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - i.top, 2) + Math.pow(t.left - i.left, 2)) * n.animation;
1698
1698
  }
1699
- var Ut = [], _n = {
1699
+ var Ut = [], Ai = {
1700
1700
  initializeByDefault: !0
1701
1701
  }, Ee = {
1702
1702
  mount: function(t) {
1703
- for (var n in _n)
1704
- _n.hasOwnProperty(n) && !(n in t) && (t[n] = _n[n]);
1705
- Ut.forEach(function(i) {
1706
- if (i.pluginName === t.pluginName)
1703
+ for (var i in Ai)
1704
+ Ai.hasOwnProperty(i) && !(i in t) && (t[i] = Ai[i]);
1705
+ Ut.forEach(function(n) {
1706
+ if (n.pluginName === t.pluginName)
1707
1707
  throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
1708
1708
  }), Ut.push(t);
1709
1709
  },
1710
- pluginEvent: function(t, n, i) {
1710
+ pluginEvent: function(t, i, n) {
1711
1711
  var o = this;
1712
- this.eventCanceled = !1, i.cancel = function() {
1712
+ this.eventCanceled = !1, n.cancel = function() {
1713
1713
  o.eventCanceled = !0;
1714
1714
  };
1715
1715
  var r = t + "Global";
1716
1716
  Ut.forEach(function(s) {
1717
- n[s.pluginName] && (n[s.pluginName][r] && n[s.pluginName][r](ct({
1718
- sortable: n
1719
- }, i)), n.options[s.pluginName] && n[s.pluginName][t] && n[s.pluginName][t](ct({
1720
- sortable: n
1721
- }, i)));
1717
+ i[s.pluginName] && (i[s.pluginName][r] && i[s.pluginName][r](ct({
1718
+ sortable: i
1719
+ }, n)), i.options[s.pluginName] && i[s.pluginName][t] && i[s.pluginName][t](ct({
1720
+ sortable: i
1721
+ }, n)));
1722
1722
  });
1723
1723
  },
1724
- initializePlugins: function(t, n, i, o) {
1724
+ initializePlugins: function(t, i, n, o) {
1725
1725
  Ut.forEach(function(a) {
1726
1726
  var l = a.pluginName;
1727
1727
  if (!(!t.options[l] && !a.initializeByDefault)) {
1728
- var u = new a(t, n, t.options);
1729
- u.sortable = t, u.options = t.options, t[l] = u, bt(i, u.defaults);
1728
+ var d = new a(t, i, t.options);
1729
+ d.sortable = t, d.options = t.options, t[l] = d, bt(n, d.defaults);
1730
1730
  }
1731
1731
  });
1732
1732
  for (var r in t.options)
@@ -1735,36 +1735,36 @@ var Ut = [], _n = {
1735
1735
  typeof s < "u" && (t.options[r] = s);
1736
1736
  }
1737
1737
  },
1738
- getEventProperties: function(t, n) {
1739
- var i = {};
1738
+ getEventProperties: function(t, i) {
1739
+ var n = {};
1740
1740
  return Ut.forEach(function(o) {
1741
- typeof o.eventProperties == "function" && bt(i, o.eventProperties.call(n[o.pluginName], t));
1742
- }), i;
1741
+ typeof o.eventProperties == "function" && bt(n, o.eventProperties.call(i[o.pluginName], t));
1742
+ }), n;
1743
1743
  },
1744
- modifyOption: function(t, n, i) {
1744
+ modifyOption: function(t, i, n) {
1745
1745
  var o;
1746
1746
  return Ut.forEach(function(r) {
1747
- t[r.pluginName] && r.optionListeners && typeof r.optionListeners[n] == "function" && (o = r.optionListeners[n].call(t[r.pluginName], i));
1747
+ t[r.pluginName] && r.optionListeners && typeof r.optionListeners[i] == "function" && (o = r.optionListeners[i].call(t[r.pluginName], n));
1748
1748
  }), o;
1749
1749
  }
1750
1750
  };
1751
1751
  function vs(e) {
1752
- var t = e.sortable, n = e.rootEl, i = e.name, o = e.targetEl, r = e.cloneEl, s = e.toEl, a = e.fromEl, l = e.oldIndex, u = e.newIndex, c = e.oldDraggableIndex, d = e.newDraggableIndex, p = e.originalEvent, f = e.putSortable, g = e.extraEventProperties;
1753
- if (t = t || n && n[it], !!t) {
1754
- var y, D = t.options, M = "on" + i.charAt(0).toUpperCase() + i.substr(1);
1755
- window.CustomEvent && !vt && !xe ? y = new CustomEvent(i, {
1752
+ var t = e.sortable, i = e.rootEl, n = e.name, o = e.targetEl, r = e.cloneEl, s = e.toEl, a = e.fromEl, l = e.oldIndex, d = e.newIndex, c = e.oldDraggableIndex, u = e.newDraggableIndex, p = e.originalEvent, f = e.putSortable, g = e.extraEventProperties;
1753
+ if (t = t || i && i[nt], !!t) {
1754
+ var y, D = t.options, M = "on" + n.charAt(0).toUpperCase() + n.substr(1);
1755
+ window.CustomEvent && !vt && !xe ? y = new CustomEvent(n, {
1756
1756
  bubbles: !0,
1757
1757
  cancelable: !0
1758
- }) : (y = document.createEvent("Event"), y.initEvent(i, !0, !0)), y.to = s || n, y.from = a || n, y.item = o || n, y.clone = r, y.oldIndex = l, y.newIndex = u, y.oldDraggableIndex = c, y.newDraggableIndex = d, y.originalEvent = p, y.pullMode = f ? f.lastPutMode : void 0;
1759
- var H = ct(ct({}, g), Ee.getEventProperties(i, t));
1758
+ }) : (y = document.createEvent("Event"), y.initEvent(n, !0, !0)), y.to = s || i, y.from = a || i, y.item = o || i, y.clone = r, y.oldIndex = l, y.newIndex = d, y.oldDraggableIndex = c, y.newDraggableIndex = u, y.originalEvent = p, y.pullMode = f ? f.lastPutMode : void 0;
1759
+ var H = ct(ct({}, g), Ee.getEventProperties(n, t));
1760
1760
  for (var J in H)
1761
1761
  y[J] = H[J];
1762
- n && n.dispatchEvent(y), D[M] && D[M].call(t, y);
1762
+ i && i.dispatchEvent(y), D[M] && D[M].call(t, y);
1763
1763
  }
1764
1764
  }
1765
- var ws = ["evt"], et = function(t, n) {
1766
- var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.evt, r = cs(i, ws);
1767
- Ee.pluginEvent.bind(w)(t, n, ct({
1765
+ var ws = ["evt"], et = function(t, i) {
1766
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = n.evt, r = cs(n, ws);
1767
+ Ee.pluginEvent.bind(w)(t, i, ct({
1768
1768
  dragEl: h,
1769
1769
  parentEl: N,
1770
1770
  ghostEl: x,
@@ -1791,7 +1791,7 @@ var ws = ["evt"], et = function(t, n) {
1791
1791
  },
1792
1792
  dispatchSortableEvent: function(a) {
1793
1793
  Q({
1794
- sortable: n,
1794
+ sortable: i,
1795
1795
  name: a,
1796
1796
  originalEvent: o
1797
1797
  });
@@ -1810,85 +1810,85 @@ function Q(e) {
1810
1810
  newDraggableIndex: Et
1811
1811
  }, e));
1812
1812
  }
1813
- var h, N, x, R, It, Re, L, St, Xt, rt, ce, Et, Ae, X, Zt = !1, Fe = !1, je = [], Lt, lt, Cn, Tn, Si, Ai, oe, Ft, he, pe = !1, _e = !1, Le, G, Pn = [], Hn = !1, Ze = [], mn = typeof document < "u", Ce = io, _i = xe || vt ? "cssFloat" : "float", $s = mn && !oo && !io && "draggable" in document.createElement("div"), po = function() {
1814
- if (mn) {
1813
+ var h, N, x, R, It, Re, L, St, Xt, rt, ce, Et, Ae, X, Zt = !1, Fe = !1, je = [], Lt, lt, _i, Ci, Sn, An, oe, Ft, he, pe = !1, _e = !1, Le, G, Ti = [], Ni = !1, Ze = [], gi = typeof document < "u", Ce = no, _n = xe || vt ? "cssFloat" : "float", $s = gi && !oo && !no && "draggable" in document.createElement("div"), po = function() {
1814
+ if (gi) {
1815
1815
  if (vt)
1816
1816
  return !1;
1817
1817
  var e = document.createElement("x");
1818
1818
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
1819
1819
  }
1820
- }(), fo = function(t, n) {
1821
- var i = v(t), o = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), r = Wt(t, 0, n), s = Wt(t, 1, n), a = r && v(r), l = s && v(s), u = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + k(r).width, c = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + k(s).width;
1822
- if (i.display === "flex")
1823
- return i.flexDirection === "column" || i.flexDirection === "column-reverse" ? "vertical" : "horizontal";
1824
- if (i.display === "grid")
1825
- return i.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
1820
+ }(), fo = function(t, i) {
1821
+ var n = v(t), o = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), r = Wt(t, 0, i), s = Wt(t, 1, i), a = r && v(r), l = s && v(s), d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + k(r).width, c = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + k(s).width;
1822
+ if (n.display === "flex")
1823
+ return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
1824
+ if (n.display === "grid")
1825
+ return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
1826
1826
  if (r && a.float && a.float !== "none") {
1827
- var d = a.float === "left" ? "left" : "right";
1828
- return s && (l.clear === "both" || l.clear === d) ? "vertical" : "horizontal";
1829
- }
1830
- return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= o && i[_i] === "none" || s && i[_i] === "none" && u + c > o) ? "vertical" : "horizontal";
1831
- }, xs = function(t, n, i) {
1832
- var o = i ? t.left : t.top, r = i ? t.right : t.bottom, s = i ? t.width : t.height, a = i ? n.left : n.top, l = i ? n.right : n.bottom, u = i ? n.width : n.height;
1833
- return o === a || r === l || o + s / 2 === a + u / 2;
1834
- }, Es = function(t, n) {
1835
- var i;
1827
+ var u = a.float === "left" ? "left" : "right";
1828
+ return s && (l.clear === "both" || l.clear === u) ? "vertical" : "horizontal";
1829
+ }
1830
+ return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || d >= o && n[_n] === "none" || s && n[_n] === "none" && d + c > o) ? "vertical" : "horizontal";
1831
+ }, xs = function(t, i, n) {
1832
+ var o = n ? t.left : t.top, r = n ? t.right : t.bottom, s = n ? t.width : t.height, a = n ? i.left : i.top, l = n ? i.right : i.bottom, d = n ? i.width : i.height;
1833
+ return o === a || r === l || o + s / 2 === a + d / 2;
1834
+ }, Es = function(t, i) {
1835
+ var n;
1836
1836
  return je.some(function(o) {
1837
- var r = o[it].options.emptyInsertThreshold;
1838
- if (!(!r || ti(o))) {
1839
- var s = k(o), a = t >= s.left - r && t <= s.right + r, l = n >= s.top - r && n <= s.bottom + r;
1837
+ var r = o[nt].options.emptyInsertThreshold;
1838
+ if (!(!r || Qi(o))) {
1839
+ var s = k(o), a = t >= s.left - r && t <= s.right + r, l = i >= s.top - r && i <= s.bottom + r;
1840
1840
  if (a && l)
1841
- return i = o;
1841
+ return n = o;
1842
1842
  }
1843
- }), i;
1843
+ }), n;
1844
1844
  }, go = function(t) {
1845
- function n(r, s) {
1846
- return function(a, l, u, c) {
1847
- var d = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
1848
- if (r == null && (s || d))
1845
+ function i(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))
1849
1849
  return !0;
1850
1850
  if (r == null || r === !1)
1851
1851
  return !1;
1852
1852
  if (s && r === "clone")
1853
1853
  return r;
1854
1854
  if (typeof r == "function")
1855
- return n(r(a, l, u, c), s)(a, l, u, c);
1855
+ return i(r(a, l, d, c), s)(a, l, d, c);
1856
1856
  var p = (s ? a : l).options.group.name;
1857
1857
  return r === !0 || typeof r == "string" && r === p || r.join && r.indexOf(p) > -1;
1858
1858
  };
1859
1859
  }
1860
- var i = {}, o = t.group;
1860
+ var n = {}, o = t.group;
1861
1861
  (!o || Oe(o) != "object") && (o = {
1862
1862
  name: o
1863
- }), i.name = o.name, i.checkPull = n(o.pull, !0), i.checkPut = n(o.put), i.revertClone = o.revertClone, t.group = i;
1863
+ }), n.name = o.name, n.checkPull = i(o.pull, !0), n.checkPut = i(o.put), n.revertClone = o.revertClone, t.group = n;
1864
1864
  }, mo = function() {
1865
1865
  !po && x && v(x, "display", "none");
1866
1866
  }, yo = function() {
1867
1867
  !po && x && v(x, "display", "");
1868
1868
  };
1869
- mn && !oo && document.addEventListener("click", function(e) {
1869
+ gi && !oo && document.addEventListener("click", function(e) {
1870
1870
  if (Fe)
1871
1871
  return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Fe = !1, !1;
1872
1872
  }, !0);
1873
1873
  var Mt = function(t) {
1874
1874
  if (h) {
1875
1875
  t = t.touches ? t.touches[0] : t;
1876
- var n = Es(t.clientX, t.clientY);
1877
- if (n) {
1878
- var i = {};
1876
+ var i = Es(t.clientX, t.clientY);
1877
+ if (i) {
1878
+ var n = {};
1879
1879
  for (var o in t)
1880
- t.hasOwnProperty(o) && (i[o] = t[o]);
1881
- i.target = i.rootEl = n, i.preventDefault = void 0, i.stopPropagation = void 0, n[it]._onDragOver(i);
1880
+ t.hasOwnProperty(o) && (n[o] = t[o]);
1881
+ n.target = n.rootEl = i, n.preventDefault = void 0, n.stopPropagation = void 0, i[nt]._onDragOver(n);
1882
1882
  }
1883
1883
  }
1884
1884
  }, Ss = function(t) {
1885
- h && h.parentNode[it]._isOutsideThisEl(t.target);
1885
+ h && h.parentNode[nt]._isOutsideThisEl(t.target);
1886
1886
  };
1887
1887
  function w(e, t) {
1888
1888
  if (!(e && e.nodeType && e.nodeType === 1))
1889
1889
  throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
1890
- this.el = e, this.options = t = bt({}, t), e[it] = this;
1891
- var n = {
1890
+ this.el = e, this.options = t = bt({}, t), e[nt] = this;
1891
+ var i = {
1892
1892
  group: null,
1893
1893
  sort: !0,
1894
1894
  disabled: !1,
@@ -1930,12 +1930,12 @@ function w(e, t) {
1930
1930
  x: 0,
1931
1931
  y: 0
1932
1932
  },
1933
- supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && !ue,
1933
+ supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && !de,
1934
1934
  emptyInsertThreshold: 5
1935
1935
  };
1936
- Ee.initializePlugins(this, e, n);
1937
- for (var i in n)
1938
- !(i in t) && (t[i] = n[i]);
1936
+ Ee.initializePlugins(this, e, i);
1937
+ for (var n in i)
1938
+ !(n in t) && (t[n] = i[n]);
1939
1939
  go(t);
1940
1940
  for (var o in this)
1941
1941
  o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
@@ -1947,72 +1947,72 @@ w.prototype = /** @lends Sortable.prototype */
1947
1947
  _isOutsideThisEl: function(t) {
1948
1948
  !this.el.contains(t) && t !== this.el && (Ft = null);
1949
1949
  },
1950
- _getDirection: function(t, n) {
1951
- return typeof this.options.direction == "function" ? this.options.direction.call(this, t, n, h) : this.options.direction;
1950
+ _getDirection: function(t, i) {
1951
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, t, i, h) : this.options.direction;
1952
1952
  },
1953
1953
  _onTapStart: function(t) {
1954
1954
  if (t.cancelable) {
1955
- var n = this, i = this.el, o = this.options, r = o.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, c = o.filter;
1956
- if (Rs(i), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !u.isContentEditable && !(!this.nativeDraggable && ue && l && l.tagName.toUpperCase() === "SELECT") && (l = ut(l, o.draggable, i, !1), !(l && l.animated) && Re !== l)) {
1955
+ var i = 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;
1956
+ if (Rs(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !d.isContentEditable && !(!this.nativeDraggable && de && l && l.tagName.toUpperCase() === "SELECT") && (l = dt(l, o.draggable, n, !1), !(l && l.animated) && Re !== l)) {
1957
1957
  if (Xt = st(l), ce = st(l, o.draggable), typeof c == "function") {
1958
1958
  if (c.call(this, t, l, this)) {
1959
1959
  Q({
1960
- sortable: n,
1961
- rootEl: u,
1960
+ sortable: i,
1961
+ rootEl: d,
1962
1962
  name: "filter",
1963
1963
  targetEl: l,
1964
- toEl: i,
1965
- fromEl: i
1966
- }), et("filter", n, {
1964
+ toEl: n,
1965
+ fromEl: n
1966
+ }), et("filter", i, {
1967
1967
  evt: t
1968
1968
  }), r && t.cancelable && t.preventDefault();
1969
1969
  return;
1970
1970
  }
1971
- } else if (c && (c = c.split(",").some(function(d) {
1972
- if (d = ut(u, d.trim(), i, !1), d)
1971
+ } else if (c && (c = c.split(",").some(function(u) {
1972
+ if (u = dt(d, u.trim(), n, !1), u)
1973
1973
  return Q({
1974
- sortable: n,
1975
- rootEl: d,
1974
+ sortable: i,
1975
+ rootEl: u,
1976
1976
  name: "filter",
1977
1977
  targetEl: l,
1978
- fromEl: i,
1979
- toEl: i
1980
- }), et("filter", n, {
1978
+ fromEl: n,
1979
+ toEl: n
1980
+ }), et("filter", i, {
1981
1981
  evt: t
1982
1982
  }), !0;
1983
1983
  }), c)) {
1984
1984
  r && t.cancelable && t.preventDefault();
1985
1985
  return;
1986
1986
  }
1987
- o.handle && !ut(u, o.handle, i, !1) || this._prepareDragStart(t, a, l);
1987
+ o.handle && !dt(d, o.handle, n, !1) || this._prepareDragStart(t, a, l);
1988
1988
  }
1989
1989
  }
1990
1990
  },
1991
- _prepareDragStart: function(t, n, i) {
1991
+ _prepareDragStart: function(t, i, n) {
1992
1992
  var o = this, r = o.el, s = o.options, a = r.ownerDocument, l;
1993
- if (i && !h && i.parentNode === r) {
1994
- var u = k(i);
1995
- if (R = r, h = i, N = h.parentNode, It = h.nextSibling, Re = i, Ae = s.group, w.dragged = h, Lt = {
1993
+ if (n && !h && n.parentNode === r) {
1994
+ var d = k(n);
1995
+ if (R = r, h = n, N = h.parentNode, It = h.nextSibling, Re = n, Ae = s.group, w.dragged = h, Lt = {
1996
1996
  target: h,
1997
- clientX: (n || t).clientX,
1998
- clientY: (n || t).clientY
1999
- }, Si = Lt.clientX - u.left, Ai = Lt.clientY - u.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY, h.style["will-change"] = "all", l = function() {
1997
+ clientX: (i || t).clientX,
1998
+ clientY: (i || t).clientY
1999
+ }, Sn = Lt.clientX - d.left, An = Lt.clientY - d.top, this._lastX = (i || t).clientX, this._lastY = (i || t).clientY, h.style["will-change"] = "all", l = function() {
2000
2000
  if (et("delayEnded", o, {
2001
2001
  evt: t
2002
2002
  }), w.eventCanceled) {
2003
2003
  o._onDrop();
2004
2004
  return;
2005
2005
  }
2006
- o._disableDelayedDragEvents(), !wi && o.nativeDraggable && (h.draggable = !0), o._triggerDragStart(t, n), Q({
2006
+ o._disableDelayedDragEvents(), !wn && o.nativeDraggable && (h.draggable = !0), o._triggerDragStart(t, i), Q({
2007
2007
  sortable: o,
2008
2008
  name: "choose",
2009
2009
  originalEvent: t
2010
2010
  }), ot(h, s.chosenClass, !0);
2011
2011
  }, s.ignore.split(",").forEach(function(c) {
2012
- ao(h, c.trim(), Dn);
2013
- }), T(a, "dragover", Mt), T(a, "mousemove", Mt), T(a, "touchmove", Mt), T(a, "mouseup", o._onDrop), T(a, "touchend", o._onDrop), T(a, "touchcancel", o._onDrop), wi && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), et("delayStart", this, {
2012
+ ao(h, c.trim(), Pi);
2013
+ }), T(a, "dragover", Mt), T(a, "mousemove", Mt), T(a, "touchmove", Mt), T(a, "mouseup", o._onDrop), T(a, "touchend", o._onDrop), T(a, "touchcancel", o._onDrop), wn && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), et("delayStart", this, {
2014
2014
  evt: t
2015
- }), s.delay && (!s.delayOnTouchOnly || n) && (!this.nativeDraggable || !(xe || vt))) {
2015
+ }), s.delay && (!s.delayOnTouchOnly || i) && (!this.nativeDraggable || !(xe || vt))) {
2016
2016
  if (w.eventCanceled) {
2017
2017
  this._onDrop();
2018
2018
  return;
@@ -2023,18 +2023,18 @@ w.prototype = /** @lends Sortable.prototype */
2023
2023
  }
2024
2024
  },
2025
2025
  _delayedDragTouchMoveHandler: function(t) {
2026
- var n = t.touches ? t.touches[0] : t;
2027
- Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
2026
+ var i = t.touches ? t.touches[0] : t;
2027
+ Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
2028
2028
  },
2029
2029
  _disableDelayedDrag: function() {
2030
- h && Dn(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2030
+ h && Pi(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2031
2031
  },
2032
2032
  _disableDelayedDragEvents: function() {
2033
2033
  var t = this.el.ownerDocument;
2034
2034
  A(t, "mouseup", this._disableDelayedDrag), A(t, "touchend", this._disableDelayedDrag), A(t, "touchcancel", this._disableDelayedDrag), A(t, "mousemove", this._delayedDragTouchMoveHandler), A(t, "touchmove", this._delayedDragTouchMoveHandler), A(t, "pointermove", this._delayedDragTouchMoveHandler);
2035
2035
  },
2036
- _triggerDragStart: function(t, n) {
2037
- n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? T(document, "pointermove", this._onTouchMove) : n ? T(document, "touchmove", this._onTouchMove) : T(document, "mousemove", this._onTouchMove) : (T(h, "dragend", this), T(R, "dragstart", this._onDragStart));
2036
+ _triggerDragStart: function(t, i) {
2037
+ i = i || t.pointerType == "touch" && t, !this.nativeDraggable || i ? this.options.supportPointer ? T(document, "pointermove", this._onTouchMove) : i ? T(document, "touchmove", this._onTouchMove) : T(document, "mousemove", this._onTouchMove) : (T(h, "dragend", this), T(R, "dragstart", this._onDragStart));
2038
2038
  try {
2039
2039
  document.selection ? Me(function() {
2040
2040
  document.selection.empty();
@@ -2042,16 +2042,16 @@ w.prototype = /** @lends Sortable.prototype */
2042
2042
  } catch {
2043
2043
  }
2044
2044
  },
2045
- _dragStarted: function(t, n) {
2045
+ _dragStarted: function(t, i) {
2046
2046
  if (Zt = !1, R && h) {
2047
2047
  et("dragStarted", this, {
2048
- evt: n
2048
+ evt: i
2049
2049
  }), this.nativeDraggable && T(document, "dragover", Ss);
2050
- var i = this.options;
2051
- !t && ot(h, i.dragClass, !1), ot(h, i.ghostClass, !0), w.active = this, t && this._appendGhost(), Q({
2050
+ var n = this.options;
2051
+ !t && ot(h, n.dragClass, !1), ot(h, n.ghostClass, !0), w.active = this, t && this._appendGhost(), Q({
2052
2052
  sortable: this,
2053
2053
  name: "start",
2054
- originalEvent: n
2054
+ originalEvent: i
2055
2055
  });
2056
2056
  } else
2057
2057
  this._nulling();
@@ -2059,78 +2059,78 @@ w.prototype = /** @lends Sortable.prototype */
2059
2059
  _emulateDragOver: function() {
2060
2060
  if (lt) {
2061
2061
  this._lastX = lt.clientX, this._lastY = lt.clientY, mo();
2062
- for (var t = document.elementFromPoint(lt.clientX, lt.clientY), n = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(lt.clientX, lt.clientY), t !== n); )
2063
- n = t;
2064
- if (h.parentNode[it]._isOutsideThisEl(t), n)
2062
+ for (var t = document.elementFromPoint(lt.clientX, lt.clientY), i = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(lt.clientX, lt.clientY), t !== i); )
2063
+ i = t;
2064
+ if (h.parentNode[nt]._isOutsideThisEl(t), i)
2065
2065
  do {
2066
- if (n[it]) {
2067
- var i = void 0;
2068
- if (i = n[it]._onDragOver({
2066
+ if (i[nt]) {
2067
+ var n = void 0;
2068
+ if (n = i[nt]._onDragOver({
2069
2069
  clientX: lt.clientX,
2070
2070
  clientY: lt.clientY,
2071
2071
  target: t,
2072
- rootEl: n
2073
- }), i && !this.options.dragoverBubble)
2072
+ rootEl: i
2073
+ }), n && !this.options.dragoverBubble)
2074
2074
  break;
2075
2075
  }
2076
- t = n;
2077
- } while (n = so(n));
2076
+ t = i;
2077
+ } while (i = so(i));
2078
2078
  yo();
2079
2079
  }
2080
2080
  },
2081
2081
  _onTouchMove: function(t) {
2082
2082
  if (Lt) {
2083
- var n = this.options, i = n.fallbackTolerance, o = n.fallbackOffset, r = t.touches ? t.touches[0] : t, s = x && qt(x, !0), a = x && s && s.a, l = x && s && s.d, u = Ce && G && Ei(G), c = (r.clientX - Lt.clientX + o.x) / (a || 1) + (u ? u[0] - Pn[0] : 0) / (a || 1), d = (r.clientY - Lt.clientY + o.y) / (l || 1) + (u ? u[1] - Pn[1] : 0) / (l || 1);
2083
+ var i = this.options, n = i.fallbackTolerance, o = i.fallbackOffset, r = t.touches ? t.touches[0] : t, s = x && qt(x, !0), a = x && s && s.a, l = x && s && s.d, d = Ce && G && En(G), c = (r.clientX - Lt.clientX + o.x) / (a || 1) + (d ? d[0] - Ti[0] : 0) / (a || 1), u = (r.clientY - Lt.clientY + o.y) / (l || 1) + (d ? d[1] - Ti[1] : 0) / (l || 1);
2084
2084
  if (!w.active && !Zt) {
2085
- if (i && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < i)
2085
+ if (n && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < n)
2086
2086
  return;
2087
2087
  this._onDragStart(t, !0);
2088
2088
  }
2089
2089
  if (x) {
2090
- s ? (s.e += c - (Cn || 0), s.f += d - (Tn || 0)) : s = {
2090
+ s ? (s.e += c - (_i || 0), s.f += u - (Ci || 0)) : s = {
2091
2091
  a: 1,
2092
2092
  b: 0,
2093
2093
  c: 0,
2094
2094
  d: 1,
2095
2095
  e: c,
2096
- f: d
2096
+ f: u
2097
2097
  };
2098
2098
  var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
2099
- v(x, "webkitTransform", p), v(x, "mozTransform", p), v(x, "msTransform", p), v(x, "transform", p), Cn = c, Tn = d, lt = r;
2099
+ v(x, "webkitTransform", p), v(x, "mozTransform", p), v(x, "msTransform", p), v(x, "transform", p), _i = c, Ci = u, lt = r;
2100
2100
  }
2101
2101
  t.cancelable && t.preventDefault();
2102
2102
  }
2103
2103
  },
2104
2104
  _appendGhost: function() {
2105
2105
  if (!x) {
2106
- var t = this.options.fallbackOnBody ? document.body : R, n = k(h, !0, Ce, !0, t), i = this.options;
2106
+ var t = this.options.fallbackOnBody ? document.body : R, i = k(h, !0, Ce, !0, t), n = this.options;
2107
2107
  if (Ce) {
2108
2108
  for (G = t; v(G, "position") === "static" && v(G, "transform") === "none" && G !== document; )
2109
2109
  G = G.parentNode;
2110
- G !== document.body && G !== document.documentElement ? (G === document && (G = dt()), n.top += G.scrollTop, n.left += G.scrollLeft) : G = dt(), Pn = Ei(G);
2110
+ G !== document.body && G !== document.documentElement ? (G === document && (G = ut()), i.top += G.scrollTop, i.left += G.scrollLeft) : G = ut(), Ti = En(G);
2111
2111
  }
2112
- x = h.cloneNode(!0), ot(x, i.ghostClass, !1), ot(x, i.fallbackClass, !0), ot(x, i.dragClass, !0), v(x, "transition", ""), v(x, "transform", ""), v(x, "box-sizing", "border-box"), v(x, "margin", 0), v(x, "top", n.top), v(x, "left", n.left), v(x, "width", n.width), v(x, "height", n.height), v(x, "opacity", "0.8"), v(x, "position", Ce ? "absolute" : "fixed"), v(x, "zIndex", "100000"), v(x, "pointerEvents", "none"), w.ghost = x, t.appendChild(x), v(x, "transform-origin", Si / parseInt(x.style.width) * 100 + "% " + Ai / parseInt(x.style.height) * 100 + "%");
2112
+ x = h.cloneNode(!0), ot(x, n.ghostClass, !1), ot(x, n.fallbackClass, !0), ot(x, n.dragClass, !0), v(x, "transition", ""), v(x, "transform", ""), v(x, "box-sizing", "border-box"), v(x, "margin", 0), v(x, "top", i.top), v(x, "left", i.left), v(x, "width", i.width), v(x, "height", i.height), v(x, "opacity", "0.8"), v(x, "position", Ce ? "absolute" : "fixed"), v(x, "zIndex", "100000"), v(x, "pointerEvents", "none"), w.ghost = x, t.appendChild(x), v(x, "transform-origin", Sn / parseInt(x.style.width) * 100 + "% " + An / parseInt(x.style.height) * 100 + "%");
2113
2113
  }
2114
2114
  },
2115
- _onDragStart: function(t, n) {
2116
- var i = this, o = t.dataTransfer, r = i.options;
2115
+ _onDragStart: function(t, i) {
2116
+ var n = this, o = t.dataTransfer, r = n.options;
2117
2117
  if (et("dragStart", this, {
2118
2118
  evt: t
2119
2119
  }), w.eventCanceled) {
2120
2120
  this._onDrop();
2121
2121
  return;
2122
2122
  }
2123
- et("setupClone", this), w.eventCanceled || (L = co(h), L.removeAttribute("id"), L.draggable = !1, L.style["will-change"] = "", this._hideClone(), ot(L, this.options.chosenClass, !1), w.clone = L), i.cloneId = Me(function() {
2124
- et("clone", i), !w.eventCanceled && (i.options.removeCloneOnHide || R.insertBefore(L, h), i._hideClone(), Q({
2125
- sortable: i,
2123
+ et("setupClone", this), w.eventCanceled || (L = co(h), L.removeAttribute("id"), L.draggable = !1, L.style["will-change"] = "", this._hideClone(), ot(L, this.options.chosenClass, !1), w.clone = L), n.cloneId = Me(function() {
2124
+ et("clone", n), !w.eventCanceled && (n.options.removeCloneOnHide || R.insertBefore(L, h), n._hideClone(), Q({
2125
+ sortable: n,
2126
2126
  name: "clone"
2127
2127
  }));
2128
- }), !n && ot(h, r.dragClass, !0), n ? (Fe = !0, i._loopId = setInterval(i._emulateDragOver, 50)) : (A(document, "mouseup", i._onDrop), A(document, "touchend", i._onDrop), A(document, "touchcancel", i._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(i, o, h)), T(document, "drop", i), v(h, "transform", "translateZ(0)")), Zt = !0, i._dragStartId = Me(i._dragStarted.bind(i, n, t)), T(document, "selectstart", i), oe = !0, ue && v(document.body, "user-select", "none");
2128
+ }), !i && ot(h, r.dragClass, !0), i ? (Fe = !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)), T(document, "drop", n), v(h, "transform", "translateZ(0)")), Zt = !0, n._dragStartId = Me(n._dragStarted.bind(n, i, t)), T(document, "selectstart", n), oe = !0, de && v(document.body, "user-select", "none");
2129
2129
  },
2130
2130
  // Returns true - if no further action is needed (either inserted or another condition)
2131
2131
  _onDragOver: function(t) {
2132
- var n = this.el, i = t.target, o, r, s, a = this.options, l = a.group, u = w.active, c = Ae === l, d = a.sort, p = X || u, f, g = this, y = !1;
2133
- if (Hn) return;
2132
+ var i = this.el, n = t.target, o, r, s, a = this.options, l = a.group, d = w.active, c = Ae === l, u = a.sort, p = X || d, f, g = this, y = !1;
2133
+ if (Ni) return;
2134
2134
  function D(ee, Xo) {
2135
2135
  et(ee, g, ct({
2136
2136
  evt: t,
@@ -2139,12 +2139,12 @@ w.prototype = /** @lends Sortable.prototype */
2139
2139
  revert: s,
2140
2140
  dragRect: o,
2141
2141
  targetRect: r,
2142
- canSort: d,
2142
+ canSort: u,
2143
2143
  fromSortable: p,
2144
- target: i,
2144
+ target: n,
2145
2145
  completed: H,
2146
- onMove: function(ri, qo) {
2147
- return Te(R, n, h, o, ri, k(ri), t, qo);
2146
+ onMove: function(rn, qo) {
2147
+ return Te(R, i, h, o, rn, k(rn), t, qo);
2148
2148
  },
2149
2149
  changed: J
2150
2150
  }, Xo));
@@ -2155,43 +2155,43 @@ w.prototype = /** @lends Sortable.prototype */
2155
2155
  function H(ee) {
2156
2156
  return D("dragOverCompleted", {
2157
2157
  insertion: ee
2158
- }), ee && (c ? u._hideClone() : u._showClone(g), g !== p && (ot(h, X ? X.options.ghostClass : u.options.ghostClass, !1), ot(h, a.ghostClass, !0)), X !== g && g !== w.active ? X = g : g === w.active && X && (X = null), p === g && (g._ignoreWhileAnimating = i), g.animateAll(function() {
2158
+ }), ee && (c ? d._hideClone() : d._showClone(g), g !== p && (ot(h, X ? X.options.ghostClass : d.options.ghostClass, !1), ot(h, a.ghostClass, !0)), X !== g && g !== w.active ? X = g : g === w.active && X && (X = null), p === g && (g._ignoreWhileAnimating = n), g.animateAll(function() {
2159
2159
  D("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
2160
- }), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i === h && !h.animated || i === n && !i.animated) && (Ft = null), !a.dragoverBubble && !t.rootEl && i !== document && (h.parentNode[it]._isOutsideThisEl(t.target), !ee && Mt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), y = !0;
2160
+ }), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === h && !h.animated || n === i && !n.animated) && (Ft = null), !a.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[nt]._isOutsideThisEl(t.target), !ee && Mt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), y = !0;
2161
2161
  }
2162
2162
  function J() {
2163
2163
  rt = st(h), Et = st(h, a.draggable), Q({
2164
2164
  sortable: g,
2165
2165
  name: "change",
2166
- toEl: n,
2166
+ toEl: i,
2167
2167
  newIndex: rt,
2168
2168
  newDraggableIndex: Et,
2169
2169
  originalEvent: t
2170
2170
  });
2171
2171
  }
2172
- if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i = ut(i, a.draggable, n, !0), D("dragOver"), w.eventCanceled) return y;
2173
- if (h.contains(t.target) || i.animated && i.animatingX && i.animatingY || g._ignoreWhileAnimating === i)
2172
+ if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = dt(n, a.draggable, i, !0), D("dragOver"), w.eventCanceled) return y;
2173
+ if (h.contains(t.target) || n.animated && n.animatingX && n.animatingY || g._ignoreWhileAnimating === n)
2174
2174
  return H(!1);
2175
- if (Fe = !1, u && !a.disabled && (c ? d || (s = N !== R) : X === this || (this.lastPutMode = Ae.checkPull(this, u, h, t)) && l.checkPut(this, u, h, t))) {
2176
- if (f = this._getDirection(t, i) === "vertical", o = k(h), D("dragOverValid"), w.eventCanceled) return y;
2175
+ if (Fe = !1, d && !a.disabled && (c ? u || (s = N !== R) : X === this || (this.lastPutMode = Ae.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
2176
+ if (f = this._getDirection(t, n) === "vertical", o = k(h), D("dragOverValid"), w.eventCanceled) return y;
2177
2177
  if (s)
2178
2178
  return N = R, M(), this._hideClone(), D("revert"), w.eventCanceled || (It ? R.insertBefore(h, It) : R.appendChild(h)), H(!0);
2179
- var Z = ti(n, a.draggable);
2179
+ var Z = Qi(i, a.draggable);
2180
2180
  if (!Z || Ts(t, f, this) && !Z.animated) {
2181
2181
  if (Z === h)
2182
2182
  return H(!1);
2183
- if (Z && n === t.target && (i = Z), i && (r = k(i)), Te(R, n, h, o, i, r, t, !!i) !== !1)
2184
- return M(), Z && Z.nextSibling ? n.insertBefore(h, Z.nextSibling) : n.appendChild(h), N = n, J(), H(!0);
2183
+ if (Z && i === t.target && (n = Z), n && (r = k(n)), Te(R, i, h, o, n, r, t, !!n) !== !1)
2184
+ return M(), Z && Z.nextSibling ? i.insertBefore(h, Z.nextSibling) : i.appendChild(h), N = i, J(), H(!0);
2185
2185
  } else if (Z && Cs(t, f, this)) {
2186
- var K = Wt(n, 0, a, !0);
2186
+ var K = Wt(i, 0, a, !0);
2187
2187
  if (K === h)
2188
2188
  return H(!1);
2189
- if (i = K, r = k(i), Te(R, n, h, o, i, r, t, !1) !== !1)
2190
- return M(), n.insertBefore(h, K), N = n, J(), H(!0);
2191
- } else if (i.parentNode === n) {
2192
- r = k(i);
2193
- var b = 0, O, z = h.parentNode !== n, U = !xs(h.animated && h.toRect || o, i.animated && i.toRect || r, f), Kt = f ? "top" : "left", wt = xi(i, "top", "top") || xi(h, "top", "top"), Qt = wt ? wt.scrollTop : void 0;
2194
- Ft !== i && (O = r[Kt], pe = !1, _e = !U && a.invertSwap || z), b = Ps(t, i, r, f, U ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, _e, Ft === i);
2189
+ if (n = K, r = k(n), Te(R, i, h, o, n, r, t, !1) !== !1)
2190
+ return M(), i.insertBefore(h, K), N = i, J(), H(!0);
2191
+ } else if (n.parentNode === i) {
2192
+ r = k(n);
2193
+ var b = 0, O, z = h.parentNode !== i, U = !xs(h.animated && h.toRect || o, n.animated && n.toRect || r, f), Kt = f ? "top" : "left", wt = xn(n, "top", "top") || xn(h, "top", "top"), Qt = wt ? wt.scrollTop : void 0;
2194
+ Ft !== n && (O = r[Kt], pe = !1, _e = !U && a.invertSwap || z), b = Ps(t, n, r, f, U ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, _e, Ft === n);
2195
2195
  var ht;
2196
2196
  if (b !== 0) {
2197
2197
  var Dt = st(h);
@@ -2199,16 +2199,16 @@ w.prototype = /** @lends Sortable.prototype */
2199
2199
  Dt -= b, ht = N.children[Dt];
2200
2200
  while (ht && (v(ht, "display") === "none" || ht === x));
2201
2201
  }
2202
- if (b === 0 || ht === i)
2202
+ if (b === 0 || ht === n)
2203
2203
  return H(!1);
2204
- Ft = i, he = b;
2205
- var te = i.nextElementSibling, $t = !1;
2204
+ Ft = n, he = b;
2205
+ var te = n.nextElementSibling, $t = !1;
2206
2206
  $t = b === 1;
2207
- var Se = Te(R, n, h, o, i, r, t, $t);
2207
+ var Se = Te(R, i, h, o, n, r, t, $t);
2208
2208
  if (Se !== !1)
2209
- return (Se === 1 || Se === -1) && ($t = Se === 1), Hn = !0, setTimeout(_s, 30), M(), $t && !te ? n.appendChild(h) : i.parentNode.insertBefore(h, $t ? te : i), wt && uo(wt, 0, Qt - wt.scrollTop), N = h.parentNode, O !== void 0 && !_e && (Le = Math.abs(O - k(i)[Kt])), J(), H(!0);
2209
+ return (Se === 1 || Se === -1) && ($t = Se === 1), Ni = !0, setTimeout(_s, 30), M(), $t && !te ? i.appendChild(h) : n.parentNode.insertBefore(h, $t ? te : n), wt && uo(wt, 0, Qt - wt.scrollTop), N = h.parentNode, O !== void 0 && !_e && (Le = Math.abs(O - k(n)[Kt])), J(), H(!0);
2210
2210
  }
2211
- if (n.contains(h))
2211
+ if (i.contains(h))
2212
2212
  return H(!1);
2213
2213
  }
2214
2214
  return !1;
@@ -2222,14 +2222,14 @@ w.prototype = /** @lends Sortable.prototype */
2222
2222
  A(t, "mouseup", this._onDrop), A(t, "touchend", this._onDrop), A(t, "pointerup", this._onDrop), A(t, "touchcancel", this._onDrop), A(document, "selectstart", this);
2223
2223
  },
2224
2224
  _onDrop: function(t) {
2225
- var n = this.el, i = this.options;
2226
- if (rt = st(h), Et = st(h, i.draggable), et("drop", this, {
2225
+ var i = this.el, n = this.options;
2226
+ if (rt = st(h), Et = st(h, n.draggable), et("drop", this, {
2227
2227
  evt: t
2228
- }), N = h && h.parentNode, rt = st(h), Et = st(h, i.draggable), w.eventCanceled) {
2228
+ }), N = h && h.parentNode, rt = st(h), Et = st(h, n.draggable), w.eventCanceled) {
2229
2229
  this._nulling();
2230
2230
  return;
2231
2231
  }
2232
- Zt = !1, _e = !1, pe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Vn(this.cloneId), Vn(this._dragStartId), this.nativeDraggable && (A(document, "drop", this), A(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), ue && v(document.body, "user-select", ""), v(h, "transform", ""), t && (oe && (t.cancelable && t.preventDefault(), !i.dropBubble && t.stopPropagation()), x && x.parentNode && x.parentNode.removeChild(x), (R === N || X && X.lastPutMode !== "clone") && L && L.parentNode && L.parentNode.removeChild(L), h && (this.nativeDraggable && A(h, "dragend", this), Dn(h), h.style["will-change"] = "", oe && !Zt && ot(h, X ? X.options.ghostClass : this.options.ghostClass, !1), ot(h, this.options.chosenClass, !1), Q({
2232
+ Zt = !1, _e = !1, pe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Hi(this.cloneId), Hi(this._dragStartId), this.nativeDraggable && (A(document, "drop", this), A(i, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), de && v(document.body, "user-select", ""), v(h, "transform", ""), t && (oe && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), x && x.parentNode && x.parentNode.removeChild(x), (R === N || X && X.lastPutMode !== "clone") && L && L.parentNode && L.parentNode.removeChild(L), h && (this.nativeDraggable && A(h, "dragend", this), Pi(h), h.style["will-change"] = "", oe && !Zt && ot(h, X ? X.options.ghostClass : this.options.ghostClass, !1), ot(h, this.options.chosenClass, !1), Q({
2233
2233
  sortable: this,
2234
2234
  name: "unchoose",
2235
2235
  toEl: N,
@@ -2278,7 +2278,7 @@ w.prototype = /** @lends Sortable.prototype */
2278
2278
  _nulling: function() {
2279
2279
  et("nulling", this), R = h = N = x = It = L = Re = St = Lt = lt = oe = rt = Et = Xt = ce = Ft = he = X = Ae = w.dragged = w.ghost = w.clone = w.active = null, Ze.forEach(function(t) {
2280
2280
  t.checked = !0;
2281
- }), Ze.length = Cn = Tn = 0;
2281
+ }), Ze.length = _i = Ci = 0;
2282
2282
  },
2283
2283
  handleEvent: function(t) {
2284
2284
  switch (t.type) {
@@ -2300,22 +2300,22 @@ w.prototype = /** @lends Sortable.prototype */
2300
2300
  * @returns {String[]}
2301
2301
  */
2302
2302
  toArray: function() {
2303
- for (var t = [], n, i = this.el.children, o = 0, r = i.length, s = this.options; o < r; o++)
2304
- n = i[o], ut(n, s.draggable, this.el, !1) && t.push(n.getAttribute(s.dataIdAttr) || Os(n));
2303
+ for (var t = [], i, n = this.el.children, o = 0, r = n.length, s = this.options; o < r; o++)
2304
+ i = n[o], dt(i, s.draggable, this.el, !1) && t.push(i.getAttribute(s.dataIdAttr) || Os(i));
2305
2305
  return t;
2306
2306
  },
2307
2307
  /**
2308
2308
  * Sorts the elements according to the array.
2309
2309
  * @param {String[]} order order of the items
2310
2310
  */
2311
- sort: function(t, n) {
2312
- var i = {}, o = this.el;
2311
+ sort: function(t, i) {
2312
+ var n = {}, o = this.el;
2313
2313
  this.toArray().forEach(function(r, s) {
2314
2314
  var a = o.children[s];
2315
- ut(a, this.options.draggable, o, !1) && (i[r] = a);
2316
- }, this), n && this.captureAnimationState(), t.forEach(function(r) {
2317
- i[r] && (o.removeChild(i[r]), o.appendChild(i[r]));
2318
- }), n && this.animateAll();
2315
+ dt(a, this.options.draggable, o, !1) && (n[r] = a);
2316
+ }, this), i && this.captureAnimationState(), t.forEach(function(r) {
2317
+ n[r] && (o.removeChild(n[r]), o.appendChild(n[r]));
2318
+ }), i && this.animateAll();
2319
2319
  },
2320
2320
  /**
2321
2321
  * Save the current sorting
@@ -2330,8 +2330,8 @@ w.prototype = /** @lends Sortable.prototype */
2330
2330
  * @param {String} [selector] default: `options.draggable`
2331
2331
  * @returns {HTMLElement|null}
2332
2332
  */
2333
- closest: function(t, n) {
2334
- return ut(t, n || this.options.draggable, this.el, !1);
2333
+ closest: function(t, i) {
2334
+ return dt(t, i || this.options.draggable, this.el, !1);
2335
2335
  },
2336
2336
  /**
2337
2337
  * Set/get option
@@ -2339,12 +2339,12 @@ w.prototype = /** @lends Sortable.prototype */
2339
2339
  * @param {*} [value]
2340
2340
  * @returns {*}
2341
2341
  */
2342
- option: function(t, n) {
2343
- var i = this.options;
2344
- if (n === void 0)
2345
- return i[t];
2346
- var o = Ee.modifyOption(this, t, n);
2347
- typeof o < "u" ? i[t] = o : i[t] = n, t === "group" && go(i);
2342
+ option: function(t, i) {
2343
+ var n = this.options;
2344
+ if (i === void 0)
2345
+ return n[t];
2346
+ var o = Ee.modifyOption(this, t, i);
2347
+ typeof o < "u" ? n[t] = o : n[t] = i, t === "group" && go(n);
2348
2348
  },
2349
2349
  /**
2350
2350
  * Destroy
@@ -2352,8 +2352,8 @@ w.prototype = /** @lends Sortable.prototype */
2352
2352
  destroy: function() {
2353
2353
  et("destroy", this);
2354
2354
  var t = this.el;
2355
- t[it] = 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(n) {
2356
- n.removeAttribute("draggable");
2355
+ t[nt] = 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(i) {
2356
+ i.removeAttribute("draggable");
2357
2357
  }), this._onDrop(), this._disableDelayedDragEvents(), je.splice(je.indexOf(this.el), 1), this.el = t = null;
2358
2358
  },
2359
2359
  _hideClone: function() {
@@ -2376,62 +2376,62 @@ w.prototype = /** @lends Sortable.prototype */
2376
2376
  function As(e) {
2377
2377
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
2378
2378
  }
2379
- function Te(e, t, n, i, o, r, s, a) {
2380
- var l, u = e[it], c = u.options.onMove, d;
2379
+ function Te(e, t, i, n, o, r, s, a) {
2380
+ var l, d = e[nt], c = d.options.onMove, u;
2381
2381
  return window.CustomEvent && !vt && !xe ? l = new CustomEvent("move", {
2382
2382
  bubbles: !0,
2383
2383
  cancelable: !0
2384
- }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = n, l.draggedRect = i, l.related = o || t, l.relatedRect = r || k(t), l.willInsertAfter = a, l.originalEvent = s, e.dispatchEvent(l), c && (d = c.call(u, l, s)), d;
2384
+ }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = i, l.draggedRect = n, l.related = o || t, l.relatedRect = r || k(t), l.willInsertAfter = a, l.originalEvent = s, e.dispatchEvent(l), c && (u = c.call(d, l, s)), u;
2385
2385
  }
2386
- function Dn(e) {
2386
+ function Pi(e) {
2387
2387
  e.draggable = !1;
2388
2388
  }
2389
2389
  function _s() {
2390
- Hn = !1;
2390
+ Ni = !1;
2391
2391
  }
2392
- function Cs(e, t, n) {
2393
- var i = k(Wt(n.el, 0, n.options, !0)), o = ho(n.el, n.options, x), r = 10;
2394
- return t ? e.clientX < o.left - r || e.clientY < i.top && e.clientX < i.right : e.clientY < o.top - r || e.clientY < i.bottom && e.clientX < i.left;
2392
+ function Cs(e, t, i) {
2393
+ var n = k(Wt(i.el, 0, i.options, !0)), o = ho(i.el, i.options, x), r = 10;
2394
+ return t ? e.clientX < o.left - r || e.clientY < n.top && e.clientX < n.right : e.clientY < o.top - r || e.clientY < n.bottom && e.clientX < n.left;
2395
2395
  }
2396
- function Ts(e, t, n) {
2397
- var i = k(ti(n.el, n.options.draggable)), o = ho(n.el, n.options, x), r = 10;
2398
- return t ? e.clientX > o.right + r || e.clientY > i.bottom && e.clientX > i.left : e.clientY > o.bottom + r || e.clientX > i.right && e.clientY > i.top;
2396
+ function Ts(e, t, i) {
2397
+ var n = k(Qi(i.el, i.options.draggable)), o = ho(i.el, i.options, x), r = 10;
2398
+ return t ? e.clientX > o.right + r || e.clientY > n.bottom && e.clientX > n.left : e.clientY > o.bottom + r || e.clientX > n.right && e.clientY > n.top;
2399
2399
  }
2400
- function Ps(e, t, n, i, o, r, s, a) {
2401
- var l = i ? e.clientY : e.clientX, u = i ? n.height : n.width, c = i ? n.top : n.left, d = i ? n.bottom : n.right, p = !1;
2400
+ function Ps(e, t, i, n, o, r, s, a) {
2401
+ var l = n ? e.clientY : e.clientX, d = n ? i.height : i.width, c = n ? i.top : i.left, u = n ? i.bottom : i.right, p = !1;
2402
2402
  if (!s) {
2403
- if (a && Le < u * o) {
2404
- if (!pe && (he === 1 ? l > c + u * r / 2 : l < d - u * r / 2) && (pe = !0), pe)
2403
+ if (a && Le < d * o) {
2404
+ if (!pe && (he === 1 ? l > c + d * r / 2 : l < u - d * r / 2) && (pe = !0), pe)
2405
2405
  p = !0;
2406
- else if (he === 1 ? l < c + Le : l > d - Le)
2406
+ else if (he === 1 ? l < c + Le : l > u - Le)
2407
2407
  return -he;
2408
- } else if (l > c + u * (1 - o) / 2 && l < d - u * (1 - o) / 2)
2408
+ } else if (l > c + d * (1 - o) / 2 && l < u - d * (1 - o) / 2)
2409
2409
  return Ds(t);
2410
2410
  }
2411
- return p = p || s, p && (l < c + u * r / 2 || l > d - u * r / 2) ? l > c + u / 2 ? 1 : -1 : 0;
2411
+ return p = p || s, p && (l < c + d * r / 2 || l > u - d * r / 2) ? l > c + d / 2 ? 1 : -1 : 0;
2412
2412
  }
2413
2413
  function Ds(e) {
2414
2414
  return st(h) < st(e) ? 1 : -1;
2415
2415
  }
2416
2416
  function Os(e) {
2417
- for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, i = 0; n--; )
2418
- i += t.charCodeAt(n);
2419
- return i.toString(36);
2417
+ for (var t = e.tagName + e.className + e.src + e.href + e.textContent, i = t.length, n = 0; i--; )
2418
+ n += t.charCodeAt(i);
2419
+ return n.toString(36);
2420
2420
  }
2421
2421
  function Rs(e) {
2422
2422
  Ze.length = 0;
2423
- for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
2424
- var i = t[n];
2425
- i.checked && Ze.push(i);
2423
+ for (var t = e.getElementsByTagName("input"), i = t.length; i--; ) {
2424
+ var n = t[i];
2425
+ n.checked && Ze.push(n);
2426
2426
  }
2427
2427
  }
2428
2428
  function Me(e) {
2429
2429
  return setTimeout(e, 0);
2430
2430
  }
2431
- function Vn(e) {
2431
+ function Hi(e) {
2432
2432
  return clearTimeout(e);
2433
2433
  }
2434
- mn && T(document, "touchmove", function(e) {
2434
+ gi && T(document, "touchmove", function(e) {
2435
2435
  (w.active || Zt) && e.cancelable && e.preventDefault();
2436
2436
  });
2437
2437
  w.utils = {
@@ -2439,38 +2439,38 @@ w.utils = {
2439
2439
  off: A,
2440
2440
  css: v,
2441
2441
  find: ao,
2442
- is: function(t, n) {
2443
- return !!ut(t, n, t, !1);
2442
+ is: function(t, i) {
2443
+ return !!dt(t, i, t, !1);
2444
2444
  },
2445
2445
  extend: fs,
2446
2446
  throttle: lo,
2447
- closest: ut,
2447
+ closest: dt,
2448
2448
  toggleClass: ot,
2449
2449
  clone: co,
2450
2450
  index: st,
2451
2451
  nextTick: Me,
2452
- cancelNextTick: Vn,
2452
+ cancelNextTick: Hi,
2453
2453
  detectDirection: fo,
2454
2454
  getChild: Wt,
2455
- expando: it
2455
+ expando: nt
2456
2456
  };
2457
2457
  w.get = function(e) {
2458
- return e[it];
2458
+ return e[nt];
2459
2459
  };
2460
2460
  w.mount = function() {
2461
- for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
2462
- t[n] = arguments[n];
2463
- t[0].constructor === Array && (t = t[0]), t.forEach(function(i) {
2464
- if (!i.prototype || !i.prototype.constructor)
2465
- throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));
2466
- i.utils && (w.utils = ct(ct({}, w.utils), i.utils)), Ee.mount(i);
2461
+ for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
2462
+ t[i] = arguments[i];
2463
+ t[0].constructor === Array && (t = t[0]), t.forEach(function(n) {
2464
+ if (!n.prototype || !n.prototype.constructor)
2465
+ throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
2466
+ n.utils && (w.utils = ct(ct({}, w.utils), n.utils)), Ee.mount(n);
2467
2467
  });
2468
2468
  };
2469
2469
  w.create = function(e, t) {
2470
2470
  return new w(e, t);
2471
2471
  };
2472
2472
  w.version = hs;
2473
- var B = [], re, Bn, kn = !1, On, Rn, ze, se;
2473
+ var B = [], re, Vi, Bi = !1, Di, Oi, ze, se;
2474
2474
  function Ls() {
2475
2475
  function e() {
2476
2476
  this.defaults = {
@@ -2484,38 +2484,38 @@ function Ls() {
2484
2484
  t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
2485
2485
  }
2486
2486
  return e.prototype = {
2487
- dragStarted: function(n) {
2488
- var i = n.originalEvent;
2489
- this.sortable.nativeDraggable ? T(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? T(document, "pointermove", this._handleFallbackAutoScroll) : i.touches ? T(document, "touchmove", this._handleFallbackAutoScroll) : T(document, "mousemove", this._handleFallbackAutoScroll);
2487
+ dragStarted: function(i) {
2488
+ var n = i.originalEvent;
2489
+ this.sortable.nativeDraggable ? T(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? T(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? T(document, "touchmove", this._handleFallbackAutoScroll) : T(document, "mousemove", this._handleFallbackAutoScroll);
2490
2490
  },
2491
- dragOverCompleted: function(n) {
2492
- var i = n.originalEvent;
2493
- !this.options.dragOverBubble && !i.rootEl && this._handleAutoScroll(i);
2491
+ dragOverCompleted: function(i) {
2492
+ var n = i.originalEvent;
2493
+ !this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
2494
2494
  },
2495
2495
  drop: function() {
2496
- this.sortable.nativeDraggable ? A(document, "dragover", this._handleAutoScroll) : (A(document, "pointermove", this._handleFallbackAutoScroll), A(document, "touchmove", this._handleFallbackAutoScroll), A(document, "mousemove", this._handleFallbackAutoScroll)), Ci(), Ie(), gs();
2496
+ this.sortable.nativeDraggable ? A(document, "dragover", this._handleAutoScroll) : (A(document, "pointermove", this._handleFallbackAutoScroll), A(document, "touchmove", this._handleFallbackAutoScroll), A(document, "mousemove", this._handleFallbackAutoScroll)), Cn(), Ie(), gs();
2497
2497
  },
2498
2498
  nulling: function() {
2499
- ze = Bn = re = kn = se = On = Rn = null, B.length = 0;
2499
+ ze = Vi = re = Bi = se = Di = Oi = null, B.length = 0;
2500
2500
  },
2501
- _handleFallbackAutoScroll: function(n) {
2502
- this._handleAutoScroll(n, !0);
2501
+ _handleFallbackAutoScroll: function(i) {
2502
+ this._handleAutoScroll(i, !0);
2503
2503
  },
2504
- _handleAutoScroll: function(n, i) {
2505
- var o = this, r = (n.touches ? n.touches[0] : n).clientX, s = (n.touches ? n.touches[0] : n).clientY, a = document.elementFromPoint(r, s);
2506
- if (ze = n, i || this.options.forceAutoScrollFallback || xe || vt || ue) {
2507
- Ln(n, this.options, a, i);
2504
+ _handleAutoScroll: function(i, n) {
2505
+ var o = this, r = (i.touches ? i.touches[0] : i).clientX, s = (i.touches ? i.touches[0] : i).clientY, a = document.elementFromPoint(r, s);
2506
+ if (ze = i, n || this.options.forceAutoScrollFallback || xe || vt || de) {
2507
+ Ri(i, this.options, a, n);
2508
2508
  var l = _t(a, !0);
2509
- kn && (!se || r !== On || s !== Rn) && (se && Ci(), se = setInterval(function() {
2510
- var u = _t(document.elementFromPoint(r, s), !0);
2511
- u !== l && (l = u, Ie()), Ln(n, o.options, u, i);
2512
- }, 10), On = r, Rn = s);
2509
+ Bi && (!se || r !== Di || s !== Oi) && (se && Cn(), se = setInterval(function() {
2510
+ var d = _t(document.elementFromPoint(r, s), !0);
2511
+ d !== l && (l = d, Ie()), Ri(i, o.options, d, n);
2512
+ }, 10), Di = r, Oi = s);
2513
2513
  } else {
2514
- if (!this.options.bubbleScroll || _t(a, !0) === dt()) {
2514
+ if (!this.options.bubbleScroll || _t(a, !0) === ut()) {
2515
2515
  Ie();
2516
2516
  return;
2517
2517
  }
2518
- Ln(n, this.options, _t(a, !1), !1);
2518
+ Ri(i, this.options, _t(a, !1), !1);
2519
2519
  }
2520
2520
  }
2521
2521
  }, bt(e, {
@@ -2528,107 +2528,107 @@ function Ie() {
2528
2528
  clearInterval(e.pid);
2529
2529
  }), B = [];
2530
2530
  }
2531
- function Ci() {
2531
+ function Cn() {
2532
2532
  clearInterval(se);
2533
2533
  }
2534
- var Ln = lo(function(e, t, n, i) {
2534
+ var Ri = lo(function(e, t, i, n) {
2535
2535
  if (t.scroll) {
2536
- var o = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = dt(), u = !1, c;
2537
- Bn !== n && (Bn = n, Ie(), re = t.scroll, c = t.scrollFn, re === !0 && (re = _t(n, !0)));
2538
- var d = 0, p = re;
2536
+ var o = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = ut(), d = !1, c;
2537
+ Vi !== i && (Vi = i, Ie(), re = t.scroll, c = t.scrollFn, re === !0 && (re = _t(i, !0)));
2538
+ var u = 0, p = re;
2539
2539
  do {
2540
2540
  var f = p, g = k(f), y = g.top, D = g.bottom, M = g.left, H = g.right, J = g.width, Z = g.height, K = void 0, b = void 0, O = f.scrollWidth, z = f.scrollHeight, U = v(f), Kt = f.scrollLeft, wt = f.scrollTop;
2541
2541
  f === l ? (K = J < O && (U.overflowX === "auto" || U.overflowX === "scroll" || U.overflowX === "visible"), b = Z < z && (U.overflowY === "auto" || U.overflowY === "scroll" || U.overflowY === "visible")) : (K = J < O && (U.overflowX === "auto" || U.overflowX === "scroll"), b = Z < z && (U.overflowY === "auto" || U.overflowY === "scroll"));
2542
2542
  var Qt = K && (Math.abs(H - o) <= s && Kt + J < O) - (Math.abs(M - o) <= s && !!Kt), ht = b && (Math.abs(D - r) <= s && wt + Z < z) - (Math.abs(y - r) <= s && !!wt);
2543
- if (!B[d])
2544
- for (var Dt = 0; Dt <= d; Dt++)
2543
+ if (!B[u])
2544
+ for (var Dt = 0; Dt <= u; Dt++)
2545
2545
  B[Dt] || (B[Dt] = {});
2546
- (B[d].vx != Qt || B[d].vy != ht || B[d].el !== f) && (B[d].el = f, B[d].vx = Qt, B[d].vy = ht, clearInterval(B[d].pid), (Qt != 0 || ht != 0) && (u = !0, B[d].pid = setInterval((function() {
2547
- i && this.layer === 0 && w.active._onTouchMove(ze);
2546
+ (B[u].vx != Qt || B[u].vy != ht || B[u].el !== f) && (B[u].el = f, B[u].vx = Qt, B[u].vy = ht, clearInterval(B[u].pid), (Qt != 0 || ht != 0) && (d = !0, B[u].pid = setInterval((function() {
2547
+ n && this.layer === 0 && w.active._onTouchMove(ze);
2548
2548
  var te = B[this.layer].vy ? B[this.layer].vy * a : 0, $t = B[this.layer].vx ? B[this.layer].vx * a : 0;
2549
- typeof c == "function" && c.call(w.dragged.parentNode[it], $t, te, e, ze, B[this.layer].el) !== "continue" || uo(B[this.layer].el, $t, te);
2549
+ typeof c == "function" && c.call(w.dragged.parentNode[nt], $t, te, e, ze, B[this.layer].el) !== "continue" || uo(B[this.layer].el, $t, te);
2550
2550
  }).bind({
2551
- layer: d
2552
- }), 24))), d++;
2551
+ layer: u
2552
+ }), 24))), u++;
2553
2553
  } while (t.bubbleScroll && p !== l && (p = _t(p, !1)));
2554
- kn = u;
2554
+ Bi = d;
2555
2555
  }
2556
2556
  }, 30), bo = function(t) {
2557
- var n = t.originalEvent, i = t.putSortable, o = t.dragEl, r = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
2558
- if (n) {
2559
- var u = i || r;
2557
+ var i = t.originalEvent, n = t.putSortable, o = t.dragEl, r = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
2558
+ if (i) {
2559
+ var d = n || r;
2560
2560
  a();
2561
- var c = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, d = document.elementFromPoint(c.clientX, c.clientY);
2562
- l(), u && !u.el.contains(d) && (s("spill"), this.onSpill({
2561
+ var c = i.changedTouches && i.changedTouches.length ? i.changedTouches[0] : i, u = document.elementFromPoint(c.clientX, c.clientY);
2562
+ l(), d && !d.el.contains(u) && (s("spill"), this.onSpill({
2563
2563
  dragEl: o,
2564
- putSortable: i
2564
+ putSortable: n
2565
2565
  }));
2566
2566
  }
2567
2567
  };
2568
- function ei() {
2568
+ function tn() {
2569
2569
  }
2570
- ei.prototype = {
2570
+ tn.prototype = {
2571
2571
  startIndex: null,
2572
2572
  dragStart: function(t) {
2573
- var n = t.oldDraggableIndex;
2574
- this.startIndex = n;
2573
+ var i = t.oldDraggableIndex;
2574
+ this.startIndex = i;
2575
2575
  },
2576
2576
  onSpill: function(t) {
2577
- var n = t.dragEl, i = t.putSortable;
2578
- this.sortable.captureAnimationState(), i && i.captureAnimationState();
2577
+ var i = t.dragEl, n = t.putSortable;
2578
+ this.sortable.captureAnimationState(), n && n.captureAnimationState();
2579
2579
  var o = Wt(this.sortable.el, this.startIndex, this.options);
2580
- o ? this.sortable.el.insertBefore(n, o) : this.sortable.el.appendChild(n), this.sortable.animateAll(), i && i.animateAll();
2580
+ o ? this.sortable.el.insertBefore(i, o) : this.sortable.el.appendChild(i), this.sortable.animateAll(), n && n.animateAll();
2581
2581
  },
2582
2582
  drop: bo
2583
2583
  };
2584
- bt(ei, {
2584
+ bt(tn, {
2585
2585
  pluginName: "revertOnSpill"
2586
2586
  });
2587
- function ni() {
2587
+ function en() {
2588
2588
  }
2589
- ni.prototype = {
2589
+ en.prototype = {
2590
2590
  onSpill: function(t) {
2591
- var n = t.dragEl, i = t.putSortable, o = i || this.sortable;
2592
- o.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), o.animateAll();
2591
+ var i = t.dragEl, n = t.putSortable, o = n || this.sortable;
2592
+ o.captureAnimationState(), i.parentNode && i.parentNode.removeChild(i), o.animateAll();
2593
2593
  },
2594
2594
  drop: bo
2595
2595
  };
2596
- bt(ni, {
2596
+ bt(en, {
2597
2597
  pluginName: "removeOnSpill"
2598
2598
  });
2599
2599
  w.mount(new Ls());
2600
- w.mount(ni, ei);
2600
+ w.mount(en, tn);
2601
2601
  const Ms = (e) => {
2602
2602
  const t = e.item;
2603
- let n = Array.prototype.slice.call(t.parentNode.childNodes);
2604
- return n = n.filter(
2605
- (i) => i.nodeType != Node.ELEMENT_NODE || !i.classList.contains("sortable-fallback")
2606
- ), n;
2607
- }, Is = (e, t, n, i, o, r) => {
2603
+ let i = Array.prototype.slice.call(t.parentNode.childNodes);
2604
+ return i = i.filter(
2605
+ (n) => n.nodeType != Node.ELEMENT_NODE || !n.classList.contains("sortable-fallback")
2606
+ ), i;
2607
+ }, Is = (e, t, i, n, o, r) => {
2608
2608
  const a = e.item.parentNode;
2609
- for (const y of n)
2609
+ for (const y of i)
2610
2610
  a.appendChild(y);
2611
2611
  if (e.oldIndex == e.newIndex) return;
2612
- const l = i.getArray(), u = (
2612
+ const l = n.getArray(), d = (
2613
2613
  /** @type {Element & {layer: import("ol/layer").Layer}} */
2614
2614
  e.item.querySelector("eox-layercontrol-layer").layer.get(o)
2615
- ), c = l.find((y) => y.get(o) === u), d = r.dataset.layer, p = l.find(
2616
- (y) => y.get(o) == d
2615
+ ), c = l.find((y) => y.get(o) === d), u = r.dataset.layer, p = l.find(
2616
+ (y) => y.get(o) == u
2617
2617
  );
2618
2618
  let f, g;
2619
2619
  for (f = 0; f < l.length; f++)
2620
2620
  if (l[f] == c) {
2621
- i.removeAt(f);
2621
+ n.removeAt(f);
2622
2622
  break;
2623
2623
  }
2624
2624
  for (g = 0; g < l.length; g++)
2625
2625
  if (l[g] === p) {
2626
- f > g ? i.insertAt(g, c) : i.insertAt(g + 1, c);
2626
+ f > g ? n.insertAt(g, c) : n.insertAt(g + 1, c);
2627
2627
  break;
2628
2628
  }
2629
2629
  t.requestUpdate();
2630
2630
  };
2631
- function Ns(e, t, n, i) {
2631
+ function Ns(e, t, i, n) {
2632
2632
  let o = [], r = null;
2633
2633
  e._sortable = w.create(e, {
2634
2634
  handle: ".drag-handle",
@@ -2640,48 +2640,48 @@ function Ns(e, t, n, i) {
2640
2640
  onMove: (s) => {
2641
2641
  r = s.related;
2642
2642
  },
2643
- onEnd: (s) => Is(s, i, o, t, n, r)
2643
+ onEnd: (s) => Is(s, n, o, t, i, r)
2644
2644
  });
2645
2645
  }
2646
- function Hs(e, t, n, i) {
2646
+ function Hs(e, t, i, n) {
2647
2647
  const o = e.getArray();
2648
2648
  let r = !1;
2649
2649
  o.forEach((s) => {
2650
2650
  const a = s.ol_uid;
2651
- s.get(t) || (s.set(t, a), r = !0), s.get(n) || (s.set(n, `layer ${a}`), r = !0), r && i.requestUpdate();
2651
+ s.get(t) || (s.set(t, a), r = !0), s.get(i) || (s.set(i, `layer ${a}`), r = !0), r && n.requestUpdate();
2652
2652
  });
2653
2653
  }
2654
- function ii(e, t, n) {
2655
- let i = [];
2654
+ function nn(e, t, i) {
2655
+ let n = [];
2656
2656
  const o = (r, s, a) => {
2657
- i = [
2658
- ...i,
2659
- ...r.filter((u) => u.get(s) === a)
2657
+ n = [
2658
+ ...n,
2659
+ ...r.filter((d) => d.get(s) === a)
2660
2660
  ];
2661
2661
  const l = r.filter(
2662
- (u) => (
2662
+ (d) => (
2663
2663
  /** @type {import("ol/layer").Group} */
2664
- u.getLayers
2664
+ d.getLayers
2665
2665
  )
2666
2666
  );
2667
2667
  return l.length > 0 && l.forEach(
2668
- (u) => (
2668
+ (d) => (
2669
2669
  // @ts-expect-error TODO
2670
- o(u.getLayers().getArray(), s, a)
2670
+ o(d.getLayers().getArray(), s, a)
2671
2671
  )
2672
- ), i;
2672
+ ), n;
2673
2673
  };
2674
- return o(e, t, n), i;
2674
+ return o(e, t, i), n;
2675
2675
  }
2676
- function Vs(e, t, n) {
2676
+ function Vs(e, t, i) {
2677
2677
  if (!e || !t) return !1;
2678
- if (!vo(e, n)) return !0;
2679
- const i = e.get("minZoom"), o = e.get("maxZoom"), r = t.getView().getZoom();
2680
- return r > i && r < o;
2678
+ if (!vo(e, i)) return !0;
2679
+ const n = e.get("minZoom"), o = e.get("maxZoom"), r = t.getView().getZoom();
2680
+ return r > n && r < o;
2681
2681
  }
2682
2682
  function vo(e, t) {
2683
- const n = e.get("minZoom"), i = e.get("maxZoom");
2684
- return !!(t && (n !== -1 / 0 || i !== 1 / 0));
2683
+ const i = e.get("minZoom"), n = e.get("maxZoom");
2684
+ return !!(t && (i !== -1 / 0 || n !== 1 / 0));
2685
2685
  }
2686
2686
  function Bs(e, t) {
2687
2687
  var o, r, s;
@@ -2690,24 +2690,24 @@ function Bs(e, t) {
2690
2690
  e.getSource ? (r = e.getSource()) == null ? void 0 : r.ol_uid : void 0
2691
2691
  )) ? "draw" : e.declutter_ !== void 0 ? "vector" : "raster";
2692
2692
  }
2693
- const ks = (e, t, n) => {
2694
- let i = t;
2695
- return n.layer.getSource().getTileUrlFunction() && (i || (i = n.layer.getSource().getTileUrlFunction()), n.layer.getSource().setTileUrlFunction(
2696
- (...o) => ls(i(...o), e)
2697
- ), n.layer.getSource().setKey(/* @__PURE__ */ new Date())), i;
2693
+ const ks = (e, t, i) => {
2694
+ let n = t;
2695
+ return i.layer.getSource().getTileUrlFunction() && (n || (n = i.layer.getSource().getTileUrlFunction()), i.layer.getSource().setTileUrlFunction(
2696
+ (...o) => ls(n(...o), e)
2697
+ ), i.layer.getSource().setKey(/* @__PURE__ */ new Date())), n;
2698
2698
  };
2699
- function Us(e, t, n) {
2700
- const i = "updateStyleVariables" in t, o = "setStyle" in t, r = i ? (
2699
+ function Us(e, t, i) {
2700
+ const n = "updateStyleVariables" in t, o = "setStyle" in t, r = n ? (
2701
2701
  /** @type {import('ol/layer/WebGLTile').default} */
2702
2702
  t.style_
2703
- ) : n.style;
2703
+ ) : i.style;
2704
2704
  let s = r == null ? void 0 : r.variables;
2705
2705
  if (s) {
2706
- const a = oi(e);
2706
+ const a = on(e);
2707
2707
  if (r.variables = {
2708
2708
  ...s,
2709
2709
  ...a
2710
- }, i)
2710
+ }, n)
2711
2711
  t.updateStyleVariables(a);
2712
2712
  else if (o) {
2713
2713
  const l = Fs(r);
@@ -2717,91 +2717,91 @@ function Us(e, t, n) {
2717
2717
  }
2718
2718
  }
2719
2719
  }
2720
- const oi = (e) => {
2720
+ const on = (e) => {
2721
2721
  const t = {};
2722
- for (const n in e)
2723
- if (typeof e[n] == "object" && e[n] !== null) {
2724
- const i = oi(
2722
+ for (const i in e)
2723
+ if (typeof e[i] == "object" && e[i] !== null) {
2724
+ const n = on(
2725
2725
  /** @type {Record<string,any>} */
2726
- e[n]
2726
+ e[i]
2727
2727
  );
2728
- for (const o in i)
2729
- t[o] = i == null ? void 0 : i[o];
2728
+ for (const o in n)
2729
+ t[o] = n == null ? void 0 : n[o];
2730
2730
  } else
2731
- t[n] = e == null ? void 0 : e[n];
2731
+ t[i] = e == null ? void 0 : e[i];
2732
2732
  return t;
2733
2733
  };
2734
2734
  function Fs(e) {
2735
2735
  let t = e;
2736
2736
  if ("variables" in e) {
2737
- let n = JSON.stringify(e);
2738
- const { variables: i } = e;
2739
- for (const o in i)
2740
- typeof i[o] == "number" ? n = n.replaceAll(`["var","${o}"]`, i[o]) : n = n.replaceAll(
2737
+ let i = JSON.stringify(e);
2738
+ const { variables: n } = e;
2739
+ for (const o in n)
2740
+ typeof n[o] == "number" ? i = i.replaceAll(`["var","${o}"]`, n[o]) : i = i.replaceAll(
2741
2741
  `["var","${o}"]`,
2742
- `"${i[o]}"`
2742
+ `"${n[o]}"`
2743
2743
  );
2744
- t = JSON.parse(n);
2744
+ t = JSON.parse(i);
2745
2745
  }
2746
2746
  return t;
2747
2747
  }
2748
2748
  const js = (e, t) => {
2749
- var n;
2749
+ var i;
2750
2750
  if (e)
2751
- return !("domainProperties" in e) || "domain" in e ? { ...e } : (n = Object.keys(e)) == null ? void 0 : n.reduce(
2752
- (i, o) => {
2751
+ return !("domainProperties" in e) || "domain" in e ? { ...e } : (i = Object.keys(e)) == null ? void 0 : i.reduce(
2752
+ (n, o) => {
2753
2753
  if (o === "domainProperties") {
2754
- const r = oi(t);
2755
- i.domain = e[o].map((s) => r[s]);
2754
+ const r = on(t);
2755
+ n.domain = e[o].map((s) => r[s]);
2756
2756
  } else
2757
- i[o] = e[o];
2758
- return i;
2757
+ n[o] = e[o];
2758
+ return n;
2759
2759
  },
2760
2760
  /** @type {import("../components/layer-legend").LegendConfig} */
2761
2761
  {}
2762
2762
  );
2763
2763
  };
2764
2764
  function wo(e, t) {
2765
- var i;
2766
- let n = {};
2765
+ var n;
2766
+ let i = {};
2767
2767
  for (const o in e) {
2768
2768
  const r = e[o].type;
2769
2769
  if (r && r !== "object")
2770
- n[o] = r === "number" ? Number(t[o]) : t[o];
2771
- else if (typeof e[o] == "object" && ((i = e[o]) != null && i.properties)) {
2770
+ i[o] = r === "number" ? Number(t[o]) : t[o];
2771
+ else if (typeof e[o] == "object" && ((n = e[o]) != null && n.properties)) {
2772
2772
  const s = wo(
2773
2773
  e[o].properties,
2774
2774
  t
2775
2775
  );
2776
- Object.keys(s).length > 0 && (n[o] = s);
2776
+ Object.keys(s).length > 0 && (i[o] = s);
2777
2777
  }
2778
2778
  }
2779
- return n;
2779
+ return i;
2780
2780
  }
2781
2781
  function Zs(e, t) {
2782
- var r, s, a, l, u;
2782
+ var r, s, a, l, d;
2783
2783
  if (!t) return null;
2784
- let n = {}, i = "updateStyleVariables" in e ? (
2784
+ let i = {}, n = "updateStyleVariables" in e ? (
2785
2785
  /** @type {import("ol/layer/WebGLTile").default} */
2786
2786
  (r = e.style_) == null ? void 0 : r.variables
2787
2787
  ) : (s = t.style) == null ? void 0 : s.variables;
2788
- if ((t.type === "style" || t.style) && i)
2789
- n = i;
2788
+ if ((t.type === "style" || t.style) && n)
2789
+ i = n;
2790
2790
  else if ((l = (a = e.getSource()) == null ? void 0 : a.getTileUrlFunction) != null && l.call(a)) {
2791
2791
  const c = new URL(e.getSource().getTileUrlFunction()([0, 0, 0]));
2792
- n = Object.fromEntries(c.searchParams.entries());
2792
+ i = Object.fromEntries(c.searchParams.entries());
2793
2793
  } else return null;
2794
2794
  const o = wo(
2795
- ((u = t.schema) == null ? void 0 : u.properties) || t.schema,
2796
- n
2795
+ ((d = t.schema) == null ? void 0 : d.properties) || t.schema,
2796
+ i
2797
2797
  );
2798
2798
  return Object.keys(o).length ? o : null;
2799
2799
  }
2800
2800
  const zs = (e, t) => e == null ? void 0 : e.filter(
2801
- (n) => ["remove", "sort"].filter((i) => t != null && t.get("layerControlDisable") ? i !== "sort" : !0).includes(n)
2802
- ), Xs = (e, t) => e == null ? void 0 : e.filter((n) => {
2803
- let i = !0;
2804
- return ["remove", "sort"].includes(n) && (i = !1), n === "info" && (i = t.get("description")), n === "config" && (i = t.get("layerConfig")), n === "datetime" && (i = t.get("layerDatetime")), n === "legend" && (i = t.get("layerLegend")), i;
2801
+ (i) => ["remove", "sort"].filter((n) => t != null && t.get("layerControlDisable") ? n !== "sort" : !0).includes(i)
2802
+ ), Xs = (e, t) => e == null ? void 0 : e.filter((i) => {
2803
+ let n = !0;
2804
+ return ["remove", "sort"].includes(i) && (n = !1), i === "info" && (n = t.get("description")), i === "config" && (n = t.get("layerConfig")), i === "datetime" && (n = t.get("layerDatetime")), i === "legend" && (n = t.get("layerLegend")), n;
2805
2805
  }), qs = (e, t) => $`
2806
2806
  <button slot="${e}-icon" class="icon">${t ? e : P}</button>
2807
2807
  `, Ys = (e) => $`
@@ -2824,32 +2824,32 @@ const zs = (e, t) => e == null ? void 0 : e.filter(
2824
2824
  ${e ? "═" : P}
2825
2825
  </span>
2826
2826
  `, $o = (e) => {
2827
- var n;
2827
+ var i;
2828
2828
  const t = ["layerControlHide", "layerControlOptional"];
2829
- return (n = e == null ? void 0 : e.getArray()) == null ? void 0 : n.filter((i) => t.every((o) => !i.get(o)));
2829
+ return (i = e == null ? void 0 : e.getArray()) == null ? void 0 : i.filter((n) => t.every((o) => !n.get(o)));
2830
2830
  };
2831
2831
  /**
2832
2832
  * @license
2833
2833
  * Copyright 2020 Google LLC
2834
2834
  * SPDX-License-Identifier: BSD-3-Clause
2835
2835
  */
2836
- const xo = Gn(class extends Jn {
2836
+ const xo = Wi(class extends Gi {
2837
2837
  constructor(e) {
2838
2838
  if (super(e), e.type !== xt.PROPERTY && e.type !== xt.ATTRIBUTE && e.type !== xt.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
2839
- if (!dr(e)) throw Error("`live` bindings can only contain a single expression");
2839
+ if (!ur(e)) throw Error("`live` bindings can only contain a single expression");
2840
2840
  }
2841
2841
  render(e) {
2842
2842
  return e;
2843
2843
  }
2844
2844
  update(e, [t]) {
2845
2845
  if (t === at || t === P) return t;
2846
- const n = e.element, i = e.name;
2846
+ const i = e.element, n = e.name;
2847
2847
  if (e.type === xt.PROPERTY) {
2848
- if (t === n[i]) return at;
2848
+ if (t === i[n]) return at;
2849
2849
  } else if (e.type === xt.BOOLEAN_ATTRIBUTE) {
2850
- if (!!t === n.hasAttribute(i)) return at;
2851
- } else if (e.type === xt.ATTRIBUTE && n.getAttribute(i) === t + "") return at;
2852
- return Yi(e), t;
2850
+ if (!!t === i.hasAttribute(n)) return at;
2851
+ } else if (e.type === xt.ATTRIBUTE && i.getAttribute(n) === t + "") return at;
2852
+ return Yn(e), t;
2853
2853
  }
2854
2854
  });
2855
2855
  /**
@@ -2857,7 +2857,7 @@ const xo = Gn(class extends Jn {
2857
2857
  * Copyright 2017 Google LLC
2858
2858
  * SPDX-License-Identifier: BSD-3-Clause
2859
2859
  */
2860
- class Un extends Jn {
2860
+ class ki extends Gi {
2861
2861
  constructor(t) {
2862
2862
  if (super(t), this.it = P, t.type !== xt.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
2863
2863
  }
@@ -2867,12 +2867,12 @@ class Un extends Jn {
2867
2867
  if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
2868
2868
  if (t === this.it) return this._t;
2869
2869
  this.it = t;
2870
- const n = [t];
2871
- return n.raw = n, this._t = { _$litType$: this.constructor.resultType, strings: n, values: [] };
2870
+ const i = [t];
2871
+ return i.raw = i, this._t = { _$litType$: this.constructor.resultType, strings: i, values: [] };
2872
2872
  }
2873
2873
  }
2874
- Un.directiveName = "unsafeHTML", Un.resultType = 1;
2875
- const Gs = Gn(Un);
2874
+ ki.directiveName = "unsafeHTML", ki.resultType = 1;
2875
+ const Gs = Wi(ki);
2876
2876
  /**
2877
2877
  * @license
2878
2878
  * Copyright 2021 Google LLC
@@ -2880,70 +2880,70 @@ const Gs = Gn(Un);
2880
2880
  */
2881
2881
  function* Ne(e, t) {
2882
2882
  if (e !== void 0) {
2883
- let n = 0;
2884
- for (const i of e) yield t(i, n++);
2883
+ let i = 0;
2884
+ for (const n of e) yield t(n, i++);
2885
2885
  }
2886
2886
  }
2887
2887
  var Ct = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2888
2888
  function Eo(e) {
2889
2889
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2890
2890
  }
2891
- var So = "Expected a function", Ti = NaN, Js = "[object Symbol]", Ks = /^\s+|\s+$/g, Qs = /^[-+]0x[0-9a-f]+$/i, ta = /^0b[01]+$/i, ea = /^0o[0-7]+$/i, na = parseInt, ia = typeof Ct == "object" && Ct && Ct.Object === Object && Ct, oa = typeof self == "object" && self && self.Object === Object && self, ra = ia || oa || Function("return this")(), sa = Object.prototype, aa = sa.toString, la = Math.max, ua = Math.min, Mn = function() {
2891
+ var So = "Expected a function", Tn = NaN, Js = "[object Symbol]", Ks = /^\s+|\s+$/g, Qs = /^[-+]0x[0-9a-f]+$/i, ta = /^0b[01]+$/i, ea = /^0o[0-7]+$/i, ia = parseInt, na = typeof Ct == "object" && Ct && Ct.Object === Object && Ct, oa = typeof self == "object" && self && self.Object === Object && self, ra = na || oa || Function("return this")(), sa = Object.prototype, aa = sa.toString, la = Math.max, da = Math.min, Li = function() {
2892
2892
  return ra.Date.now();
2893
2893
  };
2894
- function da(e, t, n) {
2895
- var i, o, r, s, a, l, u = 0, c = !1, d = !1, p = !0;
2894
+ function ua(e, t, i) {
2895
+ var n, o, r, s, a, l, d = 0, c = !1, u = !1, p = !0;
2896
2896
  if (typeof e != "function")
2897
2897
  throw new TypeError(So);
2898
- t = Pi(t) || 0, Xe(n) && (c = !!n.leading, d = "maxWait" in n, r = d ? la(Pi(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
2898
+ t = Pn(t) || 0, Xe(i) && (c = !!i.leading, u = "maxWait" in i, r = u ? la(Pn(i.maxWait) || 0, t) : r, p = "trailing" in i ? !!i.trailing : p);
2899
2899
  function f(b) {
2900
- var O = i, z = o;
2901
- return i = o = void 0, u = b, s = e.apply(z, O), s;
2900
+ var O = n, z = o;
2901
+ return n = o = void 0, d = b, s = e.apply(z, O), s;
2902
2902
  }
2903
2903
  function g(b) {
2904
- return u = b, a = setTimeout(M, t), c ? f(b) : s;
2904
+ return d = b, a = setTimeout(M, t), c ? f(b) : s;
2905
2905
  }
2906
2906
  function y(b) {
2907
- var O = b - l, z = b - u, U = t - O;
2908
- return d ? ua(U, r - z) : U;
2907
+ var O = b - l, z = b - d, U = t - O;
2908
+ return u ? da(U, r - z) : U;
2909
2909
  }
2910
2910
  function D(b) {
2911
- var O = b - l, z = b - u;
2912
- return l === void 0 || O >= t || O < 0 || d && z >= r;
2911
+ var O = b - l, z = b - d;
2912
+ return l === void 0 || O >= t || O < 0 || u && z >= r;
2913
2913
  }
2914
2914
  function M() {
2915
- var b = Mn();
2915
+ var b = Li();
2916
2916
  if (D(b))
2917
2917
  return H(b);
2918
2918
  a = setTimeout(M, y(b));
2919
2919
  }
2920
2920
  function H(b) {
2921
- return a = void 0, p && i ? f(b) : (i = o = void 0, s);
2921
+ return a = void 0, p && n ? f(b) : (n = o = void 0, s);
2922
2922
  }
2923
2923
  function J() {
2924
- a !== void 0 && clearTimeout(a), u = 0, i = l = o = a = void 0;
2924
+ a !== void 0 && clearTimeout(a), d = 0, n = l = o = a = void 0;
2925
2925
  }
2926
2926
  function Z() {
2927
- return a === void 0 ? s : H(Mn());
2927
+ return a === void 0 ? s : H(Li());
2928
2928
  }
2929
2929
  function K() {
2930
- var b = Mn(), O = D(b);
2931
- if (i = arguments, o = this, l = b, O) {
2930
+ var b = Li(), O = D(b);
2931
+ if (n = arguments, o = this, l = b, O) {
2932
2932
  if (a === void 0)
2933
2933
  return g(l);
2934
- if (d)
2934
+ if (u)
2935
2935
  return a = setTimeout(M, t), f(l);
2936
2936
  }
2937
2937
  return a === void 0 && (a = setTimeout(M, t)), s;
2938
2938
  }
2939
2939
  return K.cancel = J, K.flush = Z, K;
2940
2940
  }
2941
- function ca(e, t, n) {
2942
- var i = !0, o = !0;
2941
+ function ca(e, t, i) {
2942
+ var n = !0, o = !0;
2943
2943
  if (typeof e != "function")
2944
2944
  throw new TypeError(So);
2945
- return Xe(n) && (i = "leading" in n ? !!n.leading : i, o = "trailing" in n ? !!n.trailing : o), da(e, t, {
2946
- leading: i,
2945
+ return Xe(i) && (n = "leading" in i ? !!i.leading : n, o = "trailing" in i ? !!i.trailing : o), ua(e, t, {
2946
+ leading: n,
2947
2947
  maxWait: t,
2948
2948
  trailing: o
2949
2949
  });
@@ -2958,11 +2958,11 @@ function ha(e) {
2958
2958
  function pa(e) {
2959
2959
  return typeof e == "symbol" || ha(e) && aa.call(e) == Js;
2960
2960
  }
2961
- function Pi(e) {
2961
+ function Pn(e) {
2962
2962
  if (typeof e == "number")
2963
2963
  return e;
2964
2964
  if (pa(e))
2965
- return Ti;
2965
+ return Tn;
2966
2966
  if (Xe(e)) {
2967
2967
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
2968
2968
  e = Xe(t) ? t + "" : t;
@@ -2970,11 +2970,11 @@ function Pi(e) {
2970
2970
  if (typeof e != "string")
2971
2971
  return e === 0 ? e : +e;
2972
2972
  e = e.replace(Ks, "");
2973
- var n = ta.test(e);
2974
- return n || ea.test(e) ? na(e.slice(2), n ? 2 : 8) : Qs.test(e) ? Ti : +e;
2973
+ var i = ta.test(e);
2974
+ return i || ea.test(e) ? ia(e.slice(2), i ? 2 : 8) : Qs.test(e) ? Tn : +e;
2975
2975
  }
2976
2976
  var fa = ca;
2977
- const Di = /* @__PURE__ */ Eo(fa);
2977
+ const Dn = /* @__PURE__ */ Eo(fa);
2978
2978
  /**
2979
2979
  * @license
2980
2980
  * Copyright 2018 Google LLC
@@ -2985,7 +2985,7 @@ var qe, Ye;
2985
2985
  class Ao extends tt {
2986
2986
  constructor() {
2987
2987
  super();
2988
- C(this, qe, Hi`
2988
+ C(this, qe, Hn`
2989
2989
  .legend-container {
2990
2990
  display: flex;
2991
2991
  justify-content: center;
@@ -3054,7 +3054,7 @@ customElements.define(
3054
3054
  "eox-layercontrol-layer-legend",
3055
3055
  Ao
3056
3056
  );
3057
- var pt, Yt, be, ve, Fn, We, Ge;
3057
+ var pt, Yt, be, ve, Ui, We, Ge;
3058
3058
  class _o extends tt {
3059
3059
  constructor() {
3060
3060
  super();
@@ -3077,7 +3077,7 @@ class _o extends tt {
3077
3077
  * @type {Function}
3078
3078
  */
3079
3079
  C(this, be);
3080
- C(this, We, Hi`
3080
+ C(this, We, Hn`
3081
3081
  color-legend {
3082
3082
  --cle-background: transparent;
3083
3083
  --cle-font-family: inherit;
@@ -3087,16 +3087,16 @@ class _o extends tt {
3087
3087
  }
3088
3088
  `);
3089
3089
  C(this, Ge, "");
3090
- this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = Di(V(this, ve, Fn), 1e3);
3090
+ this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = Dn(V(this, ve, Ui), 1e3);
3091
3091
  }
3092
3092
  /** Decide what type of throttling to do based on layerConfig type
3093
3093
  *
3094
3094
  * @param {import("lit").PropertyValues} changedProperties - The changed properties.
3095
3095
  */
3096
- updated(n) {
3097
- if (n.has("layerConfig")) {
3098
- const i = this.layerConfig.type === "style" || this.layerConfig.style ? 100 : 1e3;
3099
- this.throttleDataChange = Di(V(this, ve, Fn), i), this.requestUpdate();
3096
+ updated(i) {
3097
+ if (i.has("layerConfig")) {
3098
+ const n = this.layerConfig.type === "style" || this.layerConfig.style ? 100 : 1e3;
3099
+ this.throttleDataChange = Dn(V(this, ve, Ui), n), this.requestUpdate();
3100
3100
  }
3101
3101
  }
3102
3102
  /**
@@ -3110,7 +3110,7 @@ class _o extends tt {
3110
3110
  */
3111
3111
  render() {
3112
3112
  kt(this, Yt, Zs(this.layer, this.layerConfig)), Object.keys(S(this, pt)).length !== 0 && kt(this, Yt, S(this, pt)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
3113
- const n = {
3113
+ const i = {
3114
3114
  disable_edit_json: !0,
3115
3115
  disable_collapse: !0,
3116
3116
  disable_properties: !0
@@ -3141,7 +3141,7 @@ class _o extends tt {
3141
3141
  <eox-jsonform
3142
3142
  .schema=${this.layerConfig.schema}
3143
3143
  .value=${S(this, Yt)}
3144
- .options=${n}
3144
+ .options=${i}
3145
3145
  @change=${this.throttleDataChange}
3146
3146
  ></eox-jsonform>
3147
3147
  `
@@ -3154,8 +3154,8 @@ pt = new WeakMap(), Yt = new WeakMap(), be = new WeakMap(), ve = new WeakSet(),
3154
3154
  *
3155
3155
  * @param {{ detail: { value: string; }; }} e
3156
3156
  */
3157
- Fn = function(n) {
3158
- kt(this, pt, n.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? Us(S(this, pt), this.layer, this.layerConfig) : console.error(
3157
+ Ui = function(i) {
3158
+ kt(this, pt, i.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? Us(S(this, pt), this.layer, this.layerConfig) : console.error(
3159
3159
  `Layer type ${this.layer.get("type") ?? ""} does not support styles configuration`
3160
3160
  ) : kt(this, be, ks(
3161
3161
  S(this, pt),
@@ -3225,16 +3225,16 @@ Je = new WeakSet(), /**
3225
3225
  *
3226
3226
  * @param {CustomEvent<{currentStep:string|number}>} evt
3227
3227
  **/
3228
- To = function(n) {
3228
+ To = function(i) {
3229
3229
  this.dispatchEvent(
3230
3230
  new CustomEvent("datetime:updated", {
3231
3231
  bubbles: !0,
3232
3232
  detail: {
3233
- datetime: n.detail.currentStep,
3233
+ datetime: i.detail.currentStep,
3234
3234
  layer: this.layer
3235
3235
  }
3236
3236
  })
3237
- ), this.layerDatetime.currentStep = n.detail.currentStep, this.requestUpdate();
3237
+ ), this.layerDatetime.currentStep = i.detail.currentStep, this.requestUpdate();
3238
3238
  }, Ke = new WeakMap(), Qe = new WeakMap(), // Define static properties for the component
3239
3239
  I(Co, "properties", {
3240
3240
  unstyled: { type: Boolean },
@@ -3246,13 +3246,13 @@ customElements.define(
3246
3246
  "eox-layercontrol-layer-datetime",
3247
3247
  Co
3248
3248
  );
3249
- var we, tn, en;
3249
+ var we, ti, ei;
3250
3250
  class Po extends tt {
3251
3251
  constructor() {
3252
3252
  super();
3253
3253
  /** @param {number} index */
3254
- C(this, we, (n) => (this.selectedTab === n || this.toolsAsList) && "highlighted");
3255
- C(this, tn, `
3254
+ C(this, we, (i) => (this.selectedTab === i || this.toolsAsList) && "highlighted");
3255
+ C(this, ti, `
3256
3256
  .tabbed figure {
3257
3257
  margin: 0;
3258
3258
  }
@@ -3273,7 +3273,7 @@ class Po extends tt {
3273
3273
  background: lightgrey;
3274
3274
  }
3275
3275
  `);
3276
- C(this, en, `
3276
+ C(this, ei, `
3277
3277
  .listed {
3278
3278
  background: #ffffff !important;
3279
3279
  display: flex;
@@ -3313,11 +3313,11 @@ class Po extends tt {
3313
3313
  * It sets up navigation for switching between tabs and offers customizable icons for tabs and actions.
3314
3314
  */
3315
3315
  render() {
3316
- const n = this.tabs, i = this.actions, o = i.length + n.length > 1;
3316
+ const i = this.tabs, n = this.actions, o = n.length + i.length > 1;
3317
3317
  return $`
3318
3318
  <style>
3319
- ${S(this, tn)}
3320
- ${!this.unstyled && S(this, en)}
3319
+ ${S(this, ti)}
3320
+ ${!this.unstyled && S(this, ei)}
3321
3321
  </style>
3322
3322
  <div class="tabbed">
3323
3323
  <!-- Navigation for tabs and actions -->
@@ -3331,7 +3331,7 @@ class Po extends tt {
3331
3331
  <div>
3332
3332
  <!-- Labels for tabs -->
3333
3333
  ${Ne(
3334
- n,
3334
+ i,
3335
3335
  (r, s) => $`
3336
3336
  <label
3337
3337
  class=${S(this, we).call(this, s)}
@@ -3346,7 +3346,7 @@ class Po extends tt {
3346
3346
  <div>
3347
3347
  <!-- Icons for actions -->
3348
3348
  ${Ne(
3349
- i,
3349
+ n,
3350
3350
  (r) => $`
3351
3351
  <span>
3352
3352
  <!-- Customizable icon for each action -->
@@ -3363,7 +3363,7 @@ class Po extends tt {
3363
3363
  <figure>
3364
3364
  <!-- Content for each tab -->
3365
3365
  ${Ne(
3366
- n,
3366
+ i,
3367
3367
  (r, s) => $`
3368
3368
  ${F(
3369
3369
  this.toolsAsList,
@@ -3385,7 +3385,7 @@ class Po extends tt {
3385
3385
  `;
3386
3386
  }
3387
3387
  }
3388
- we = new WeakMap(), tn = new WeakMap(), en = new WeakMap(), // Define static properties for the component
3388
+ we = new WeakMap(), ti = new WeakMap(), ei = new WeakMap(), // Define static properties for the component
3389
3389
  I(Po, "properties", {
3390
3390
  actions: { attribute: !1 },
3391
3391
  selectedTab: { state: !0 },
@@ -3648,7 +3648,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
3648
3648
  border: 0;
3649
3649
  }
3650
3650
  `;
3651
- var nn, on;
3651
+ var ii, ni;
3652
3652
  class Oo extends tt {
3653
3653
  constructor() {
3654
3654
  super();
@@ -3663,9 +3663,9 @@ class Oo extends tt {
3663
3663
  * @param {string} tool - Tool parameter for Button generation.
3664
3664
  * @returns {import("lit").HTMLTemplateResult} - The generated Button element.
3665
3665
  */
3666
- I(this, "_button", (n) => qs(n, this.unstyled));
3666
+ I(this, "_button", (i) => qs(i, this.unstyled));
3667
3667
  I(this, "_getDefaultTools", () => {
3668
- var n;
3668
+ var i;
3669
3669
  return $`
3670
3670
  <div slot="info-content">
3671
3671
  ${Gs(this.layer.get("description"))}
@@ -3677,8 +3677,8 @@ class Oo extends tt {
3677
3677
  min="0"
3678
3678
  max="1"
3679
3679
  step="0.01"
3680
- value=${xo((n = this.layer) == null ? void 0 : n.getOpacity())}
3681
- @input=${(i) => this.layer.setOpacity(parseFloat(i.target.value))}
3680
+ value=${xo((i = this.layer) == null ? void 0 : i.getOpacity())}
3681
+ @input=${(n) => this.layer.setOpacity(parseFloat(n.target.value))}
3682
3682
  />
3683
3683
  </div>
3684
3684
  <div slot="config-content">
@@ -3733,8 +3733,8 @@ class Oo extends tt {
3733
3733
  <div slot="sort-icon">${this._sortButton()}</div>
3734
3734
  `;
3735
3735
  });
3736
- C(this, nn, "");
3737
- C(this, on, `
3736
+ C(this, ii, "");
3737
+ C(this, ni, `
3738
3738
  ${ga}
3739
3739
  ${ma}
3740
3740
  ${Do}
@@ -3763,9 +3763,9 @@ class Oo extends tt {
3763
3763
  position: absolute;
3764
3764
  right: 0;
3765
3765
  top: -24px;
3766
- display: flex;
3767
- border-radius: 4px;
3766
+ height: 24px;
3768
3767
  cursor: pointer;
3768
+ display: var(--layer-tools-button-visibility);
3769
3769
  }
3770
3770
  .single-action .icon::before,
3771
3771
  details.tools summary .icon::before {
@@ -3856,14 +3856,14 @@ class Oo extends tt {
3856
3856
  }
3857
3857
  render() {
3858
3858
  var l;
3859
- const n = zs(this.tools, this.layer), i = Xs(this.tools, this.layer), o = this[`_${n == null ? void 0 : n[0]}Button`] ? (
3859
+ const i = zs(this.tools, this.layer), n = Xs(this.tools, this.layer), o = this[`_${i == null ? void 0 : i[0]}Button`] ? (
3860
3860
  // @ts-expect-error TODO
3861
- this[`_${n == null ? void 0 : n[0]}Button`]()
3862
- ) : P, r = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = n == null ? void 0 : n.length, a = i == null ? void 0 : i.length;
3861
+ this[`_${i == null ? void 0 : i[0]}Button`]()
3862
+ ) : P, r = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = i == null ? void 0 : i.length, a = n == null ? void 0 : n.length;
3863
3863
  return $`
3864
3864
  <style>
3865
- ${S(this, nn)}
3866
- ${!this.unstyled && S(this, on)}
3865
+ ${S(this, ii)}
3866
+ ${!this.unstyled && S(this, ni)}
3867
3867
  </style>
3868
3868
  ${F(
3869
3869
  s + a > 0,
@@ -3886,13 +3886,13 @@ class Oo extends tt {
3886
3886
  <eox-layercontrol-tools-items
3887
3887
  class="${this.toolsAsList ? "tools-list" : "tools-tab"}"
3888
3888
  .noShadow=${!1}
3889
- .actions=${n}
3890
- .tabs=${i}
3889
+ .actions=${i}
3890
+ .tabs=${n}
3891
3891
  .unstyled=${this.unstyled}
3892
3892
  .toolsAsList=${this.toolsAsList}
3893
3893
  >
3894
3894
  <!-- Rendering tabs and content -->
3895
- ${Ne(i, (u) => this._button(u))}
3895
+ ${Ne(n, (d) => this._button(d))}
3896
3896
  <!-- Including default tools -->
3897
3897
  ${this._getDefaultTools()}
3898
3898
  </eox-layercontrol-tools-items>
@@ -3904,7 +3904,7 @@ class Oo extends tt {
3904
3904
  `;
3905
3905
  }
3906
3906
  }
3907
- nn = new WeakMap(), on = new WeakMap(), // Define static properties for the component
3907
+ ii = new WeakMap(), ni = new WeakMap(), // Define static properties for the component
3908
3908
  I(Oo, "properties", {
3909
3909
  layer: { attribute: !1 },
3910
3910
  tools: { attribute: !1 },
@@ -3918,13 +3918,13 @@ customElements.define(
3918
3918
  );
3919
3919
  const ba = (e) => {
3920
3920
  const t = () => {
3921
- const n = Vs(
3921
+ const i = Vs(
3922
3922
  e.layer,
3923
3923
  e.map,
3924
3924
  e.showLayerZoomState
3925
3925
  );
3926
- let i = !1;
3927
- !n && e.currLayerVisibilityBasedOnZoom ? (e.currLayerVisibilityBasedOnZoom = !1, i = !0) : n && !e.currLayerVisibilityBasedOnZoom && (e.currLayerVisibilityBasedOnZoom = !0, i = !0), i && (e.requestUpdate(), e.dispatchEvent(
3926
+ let n = !1;
3927
+ !i && e.currLayerVisibilityBasedOnZoom ? (e.currLayerVisibilityBasedOnZoom = !1, n = !0) : i && !e.currLayerVisibilityBasedOnZoom && (e.currLayerVisibilityBasedOnZoom = !0, n = !0), n && (e.requestUpdate(), e.dispatchEvent(
3928
3928
  new CustomEvent("change:resolution", { bubbles: !0 })
3929
3929
  ));
3930
3930
  };
@@ -3933,17 +3933,17 @@ const ba = (e) => {
3933
3933
  e.showLayerZoomState
3934
3934
  ) && (t(), e.map.getView().on("change:resolution", () => t()));
3935
3935
  }, va = (e, t) => {
3936
- const n = t.layer;
3937
- n.setVisible(e.target.checked), e.target.checked && n.get("layerControlExclusive") && t.closest(
3936
+ const i = t.layer;
3937
+ i.setVisible(e.target.checked), e.target.checked && i.get("layerControlExclusive") && t.closest(
3938
3938
  ".layers > ul"
3939
3939
  ).querySelectorAll("eox-layercontrol-layer").forEach((o) => {
3940
3940
  var r;
3941
- o.layer !== n && ((r = o.layer) != null && r.get("layerControlExclusive")) && (o.layer.setVisible(!1), o.requestUpdate());
3941
+ o.layer !== i && ((r = o.layer) != null && r.get("layerControlExclusive")) && (o.layer.setVisible(!1), o.requestUpdate());
3942
3942
  }), t.dispatchEvent(
3943
- new CustomEvent("changed", { bubbles: !0, detail: n })
3943
+ new CustomEvent("changed", { bubbles: !0, detail: i })
3944
3944
  ), t.requestUpdate();
3945
3945
  };
3946
- var Pt, He, Lo, rn, sn;
3946
+ var Pt, He, Lo, oi, ri;
3947
3947
  class Ro extends tt {
3948
3948
  constructor() {
3949
3949
  super();
@@ -3954,12 +3954,16 @@ class Ro extends tt {
3954
3954
  * @type {Boolean}
3955
3955
  */
3956
3956
  I(this, "currLayerVisibilityBasedOnZoom", !0);
3957
- C(this, rn, "");
3958
- C(this, sn, `
3957
+ C(this, oi, "");
3958
+ C(this, ri, `
3959
3959
  ${Do}
3960
3960
  eox-layercontrol-layer {
3961
3961
  width: 100%;
3962
3962
  }
3963
+ .layer input[type=checkbox],
3964
+ .layer input[type=radio] {
3965
+ display: var(--layer-input-visibility);
3966
+ }
3963
3967
  .layer.zoom-state-invisible {
3964
3968
  background: #d2e2ee;
3965
3969
  opacity: 0.3;
@@ -3969,17 +3973,22 @@ class Ro extends tt {
3969
3973
  align-items: center;
3970
3974
  justify-content: space-between;
3971
3975
  padding: 4px 0;
3976
+ display: var(--layer-visibility);
3972
3977
  }
3973
3978
  label, span {
3974
3979
  display: flex;
3975
3980
  align-items: center;
3976
3981
  cursor: pointer;
3977
3982
  }
3983
+ .title {
3984
+ display: var(--layer-title-visibility);
3985
+ }
3978
3986
  [data-type] .title::before {
3979
3987
  width: 20px;
3980
3988
  min-width: 20px;
3981
3989
  height: 20px;
3982
3990
  margin-right: 6px;
3991
+ display: var(--layer-type-visibility);
3983
3992
  }
3984
3993
  [data-type=group] .title::before {
3985
3994
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230041703a' viewBox='0 0 24 24'%3E%3Ctitle%3Efolder-outline%3C/title%3E%3Cpath d='M20,18H4V8H20M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z' /%3E%3C/svg%3E");
@@ -4019,22 +4028,22 @@ class Ro extends tt {
4019
4028
  */
4020
4029
  render() {
4021
4030
  var l;
4022
- const n = this.layer.getVisible(), i = n ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", r = V(this, Pt, He).call(this, "layerControlDisable") ? "disabled" : "", s = V(this, Pt, He).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
4031
+ const i = this.layer.getVisible(), n = i ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", r = V(this, Pt, He).call(this, "layerControlDisable") ? "disabled" : "", s = V(this, Pt, He).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
4023
4032
  return $`
4024
4033
  <style>
4025
- ${S(this, rn)}
4026
- ${!this.unstyled && S(this, sn)}
4034
+ ${S(this, oi)}
4035
+ ${!this.unstyled && S(this, ri)}
4027
4036
  </style>
4028
4037
  ${F(
4029
4038
  this.layer,
4030
4039
  () => $`
4031
4040
  <!-- Render the layer -->
4032
- <div class="layer ${i} ${o}">
4041
+ <div class="layer ${n} ${o}">
4033
4042
  <label class="drag-handle ${r}">
4034
4043
  <!-- Input element for layer visibility -->
4035
4044
  <input
4036
4045
  type=${s}
4037
- .checked=${xo(n)}
4046
+ .checked=${xo(i)}
4038
4047
  @click=${V(this, Pt, Lo)}
4039
4048
  />
4040
4049
 
@@ -4066,17 +4075,17 @@ Pt = new WeakSet(), /**
4066
4075
  * @param {string} key - The key for the layer property.
4067
4076
  * @returns {any} - The value of the layer property if exists, otherwise undefined.
4068
4077
  */
4069
- He = function(n) {
4070
- var i;
4071
- return (i = this.layer) == null ? void 0 : i.get(n);
4078
+ He = function(i) {
4079
+ var n;
4080
+ return (n = this.layer) == null ? void 0 : n.get(i);
4072
4081
  }, /**
4073
4082
  * Handles the click event on the input element triggering the method.
4074
4083
  *
4075
4084
  * @param {{target: { checked: boolean }}} evt - The input change event.
4076
4085
  */
4077
- Lo = function(n) {
4078
- va(n, this);
4079
- }, rn = new WeakMap(), sn = new WeakMap(), // Define static properties for the component
4086
+ Lo = function(i) {
4087
+ va(i, this);
4088
+ }, oi = new WeakMap(), ri = new WeakMap(), // Define static properties for the component
4080
4089
  I(Ro, "properties", {
4081
4090
  layer: { attribute: !1 },
4082
4091
  map: { attribute: !1, state: !0 },
@@ -4088,12 +4097,12 @@ I(Ro, "properties", {
4088
4097
  toolsAsList: { type: Boolean }
4089
4098
  });
4090
4099
  customElements.define("eox-layercontrol-layer", Ro);
4091
- var an, ln;
4100
+ var si, ai;
4092
4101
  class Mo extends tt {
4093
4102
  constructor() {
4094
4103
  super();
4095
- C(this, an, "");
4096
- C(this, ln, `
4104
+ C(this, si, "");
4105
+ C(this, ai, `
4097
4106
  details summary {
4098
4107
  cursor: pointer;
4099
4108
  display: flex;
@@ -4102,7 +4111,7 @@ class Mo extends tt {
4102
4111
  details summary::-webkit-details-marker { display: none; } /* Chrome */
4103
4112
  details summary::marker { display: none; }
4104
4113
  details summary::before {
4105
- display: block;
4114
+ display: var(--layer-visibility);
4106
4115
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echevron-right%3C/title%3E%3Cpath d='M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z' /%3E%3C/svg%3E");
4107
4116
  font-size: 13px;
4108
4117
  width: 24px;
@@ -4133,21 +4142,21 @@ class Mo extends tt {
4133
4142
  */
4134
4143
  render() {
4135
4144
  var o, r;
4136
- const n = !!((o = this.group) != null && o.get("layerControlExpand")), i = (r = $o(
4145
+ const i = !!((o = this.group) != null && o.get("layerControlExpand")), n = (r = $o(
4137
4146
  this.group.getLayers()
4138
4147
  )) == null ? void 0 : r.length;
4139
4148
  return $`
4140
4149
  <style>
4141
- ${S(this, an)}
4142
- ${!this.unstyled && S(this, ln)}
4150
+ ${S(this, si)}
4151
+ ${!this.unstyled && S(this, ai)}
4143
4152
  </style>
4144
4153
  ${F(
4145
4154
  this.group,
4146
4155
  () => $`
4147
4156
  <!-- Render the details element with the layer control -->
4148
4157
  <details
4149
- open=${n || P}
4150
- data-children-length=${i}
4158
+ open=${i || P}
4159
+ data-children-length=${n}
4151
4160
  >
4152
4161
  <summary>
4153
4162
  <!-- Render the layer control within the summary -->
@@ -4183,7 +4192,7 @@ class Mo extends tt {
4183
4192
  `;
4184
4193
  }
4185
4194
  }
4186
- an = new WeakMap(), ln = new WeakMap(), // Define static properties for the component
4195
+ si = new WeakMap(), ai = new WeakMap(), // Define static properties for the component
4187
4196
  I(Mo, "properties", {
4188
4197
  group: { attribute: !1 },
4189
4198
  idProperty: { attribute: "id-property" },
@@ -4199,57 +4208,57 @@ customElements.define(
4199
4208
  "eox-layercontrol-layer-group",
4200
4209
  Mo
4201
4210
  );
4202
- var wa = "Expected a function", Oi = NaN, $a = "[object Symbol]", xa = /^\s+|\s+$/g, Ea = /^[-+]0x[0-9a-f]+$/i, Sa = /^0b[01]+$/i, Aa = /^0o[0-7]+$/i, _a = parseInt, Ca = typeof Ct == "object" && Ct && Ct.Object === Object && Ct, Ta = typeof self == "object" && self && self.Object === Object && self, Pa = Ca || Ta || Function("return this")(), Da = Object.prototype, Oa = Da.toString, Ra = Math.max, La = Math.min, In = function() {
4211
+ var wa = "Expected a function", On = NaN, $a = "[object Symbol]", xa = /^\s+|\s+$/g, Ea = /^[-+]0x[0-9a-f]+$/i, Sa = /^0b[01]+$/i, Aa = /^0o[0-7]+$/i, _a = parseInt, Ca = typeof Ct == "object" && Ct && Ct.Object === Object && Ct, Ta = typeof self == "object" && self && self.Object === Object && self, Pa = Ca || Ta || Function("return this")(), Da = Object.prototype, Oa = Da.toString, Ra = Math.max, La = Math.min, Mi = function() {
4203
4212
  return Pa.Date.now();
4204
4213
  };
4205
- function Ma(e, t, n) {
4206
- var i, o, r, s, a, l, u = 0, c = !1, d = !1, p = !0;
4214
+ function Ma(e, t, i) {
4215
+ var n, o, r, s, a, l, d = 0, c = !1, u = !1, p = !0;
4207
4216
  if (typeof e != "function")
4208
4217
  throw new TypeError(wa);
4209
- t = Ri(t) || 0, jn(n) && (c = !!n.leading, d = "maxWait" in n, r = d ? Ra(Ri(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
4218
+ t = Rn(t) || 0, Fi(i) && (c = !!i.leading, u = "maxWait" in i, r = u ? Ra(Rn(i.maxWait) || 0, t) : r, p = "trailing" in i ? !!i.trailing : p);
4210
4219
  function f(b) {
4211
- var O = i, z = o;
4212
- return i = o = void 0, u = b, s = e.apply(z, O), s;
4220
+ var O = n, z = o;
4221
+ return n = o = void 0, d = b, s = e.apply(z, O), s;
4213
4222
  }
4214
4223
  function g(b) {
4215
- return u = b, a = setTimeout(M, t), c ? f(b) : s;
4224
+ return d = b, a = setTimeout(M, t), c ? f(b) : s;
4216
4225
  }
4217
4226
  function y(b) {
4218
- var O = b - l, z = b - u, U = t - O;
4219
- return d ? La(U, r - z) : U;
4227
+ var O = b - l, z = b - d, U = t - O;
4228
+ return u ? La(U, r - z) : U;
4220
4229
  }
4221
4230
  function D(b) {
4222
- var O = b - l, z = b - u;
4223
- return l === void 0 || O >= t || O < 0 || d && z >= r;
4231
+ var O = b - l, z = b - d;
4232
+ return l === void 0 || O >= t || O < 0 || u && z >= r;
4224
4233
  }
4225
4234
  function M() {
4226
- var b = In();
4235
+ var b = Mi();
4227
4236
  if (D(b))
4228
4237
  return H(b);
4229
4238
  a = setTimeout(M, y(b));
4230
4239
  }
4231
4240
  function H(b) {
4232
- return a = void 0, p && i ? f(b) : (i = o = void 0, s);
4241
+ return a = void 0, p && n ? f(b) : (n = o = void 0, s);
4233
4242
  }
4234
4243
  function J() {
4235
- a !== void 0 && clearTimeout(a), u = 0, i = l = o = a = void 0;
4244
+ a !== void 0 && clearTimeout(a), d = 0, n = l = o = a = void 0;
4236
4245
  }
4237
4246
  function Z() {
4238
- return a === void 0 ? s : H(In());
4247
+ return a === void 0 ? s : H(Mi());
4239
4248
  }
4240
4249
  function K() {
4241
- var b = In(), O = D(b);
4242
- if (i = arguments, o = this, l = b, O) {
4250
+ var b = Mi(), O = D(b);
4251
+ if (n = arguments, o = this, l = b, O) {
4243
4252
  if (a === void 0)
4244
4253
  return g(l);
4245
- if (d)
4254
+ if (u)
4246
4255
  return a = setTimeout(M, t), f(l);
4247
4256
  }
4248
4257
  return a === void 0 && (a = setTimeout(M, t)), s;
4249
4258
  }
4250
4259
  return K.cancel = J, K.flush = Z, K;
4251
4260
  }
4252
- function jn(e) {
4261
+ function Fi(e) {
4253
4262
  var t = typeof e;
4254
4263
  return !!e && (t == "object" || t == "function");
4255
4264
  }
@@ -4259,24 +4268,24 @@ function Ia(e) {
4259
4268
  function Na(e) {
4260
4269
  return typeof e == "symbol" || Ia(e) && Oa.call(e) == $a;
4261
4270
  }
4262
- function Ri(e) {
4271
+ function Rn(e) {
4263
4272
  if (typeof e == "number")
4264
4273
  return e;
4265
4274
  if (Na(e))
4266
- return Oi;
4267
- if (jn(e)) {
4275
+ return On;
4276
+ if (Fi(e)) {
4268
4277
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
4269
- e = jn(t) ? t + "" : t;
4278
+ e = Fi(t) ? t + "" : t;
4270
4279
  }
4271
4280
  if (typeof e != "string")
4272
4281
  return e === 0 ? e : +e;
4273
4282
  e = e.replace(xa, "");
4274
- var n = Sa.test(e);
4275
- return n || Aa.test(e) ? _a(e.slice(2), n ? 2 : 8) : Ea.test(e) ? Oi : +e;
4283
+ var i = Sa.test(e);
4284
+ return i || Aa.test(e) ? _a(e.slice(2), i ? 2 : 8) : Ea.test(e) ? On : +e;
4276
4285
  }
4277
4286
  var Ha = Ma;
4278
4287
  const Va = /* @__PURE__ */ Eo(Ha), Ba = (e) => {
4279
- const { layers: t, idProperty: n, titleProperty: i, renderRoot: o } = e, r = Va(() => {
4288
+ const { layers: t, idProperty: i, titleProperty: n, renderRoot: o } = e, r = Va(() => {
4280
4289
  e.requestUpdate(), e.dispatchEvent(
4281
4290
  new CustomEvent("changed", { bubbles: !0 })
4282
4291
  );
@@ -4285,24 +4294,24 @@ const Va = /* @__PURE__ */ Eo(Ha), Ba = (e) => {
4285
4294
  const a = o.querySelector("ul");
4286
4295
  Hs(
4287
4296
  t,
4288
- n,
4289
4297
  i,
4298
+ n,
4290
4299
  e
4291
- ), Ns(a, t, n, e);
4300
+ ), Ns(a, t, i, e);
4292
4301
  }
4293
4302
  };
4294
- var un, dn;
4303
+ var li, di;
4295
4304
  class Io extends tt {
4296
4305
  constructor() {
4297
4306
  super();
4298
- C(this, un, "");
4299
- C(this, dn, `
4307
+ C(this, li, "");
4308
+ C(this, di, `
4300
4309
  ul {
4301
4310
  padding: 0;
4302
4311
  margin: 0;
4303
4312
  }
4304
4313
  ul ul {
4305
- padding-left: 48px;
4314
+ padding-left: var(--list-padding);
4306
4315
  }
4307
4316
  li {
4308
4317
  list-style: none;
@@ -4310,6 +4319,7 @@ class Io extends tt {
4310
4319
  }
4311
4320
  li {
4312
4321
  border-bottom: 1px solid #0041703a;
4322
+ border: var(--layer-visibility);
4313
4323
  }
4314
4324
  li:last-child {
4315
4325
  border: none;
@@ -4342,30 +4352,30 @@ class Io extends tt {
4342
4352
  * layer groups or individual layers accordingly. Utilizes conditional rendering and iterates through available layers.
4343
4353
  */
4344
4354
  render() {
4345
- const n = this.layers ? $o(this.layers).reverse() : [];
4355
+ const i = this.layers ? $o(this.layers).reverse() : [];
4346
4356
  return $`
4347
4357
  <style>
4348
- ${S(this, un)}
4349
- ${!this.unstyled && S(this, dn)}
4358
+ ${S(this, li)}
4359
+ ${!this.unstyled && S(this, di)}
4350
4360
  </style>
4351
4361
  <ul>
4352
4362
  ${F(
4353
4363
  this.layers,
4354
4364
  () => $`
4355
4365
  ${pr(
4356
- n,
4357
- (i) => i,
4358
- (i) => $`
4366
+ i,
4367
+ (n) => n,
4368
+ (n) => $`
4359
4369
  <li
4360
- data-layer="${i.get(this.idProperty)}"
4361
- data-type="${Bs(i, this.map)}"
4370
+ data-layer="${n.get(this.idProperty)}"
4371
+ data-type="${Bs(n, this.map)}"
4362
4372
  >
4363
4373
  ${/** Checks if the layer is a group or individual layer and renders accordingly */
4364
4374
  /** @type {import("ol/layer").Group} */
4365
- i.getLayers ? $`
4375
+ n.getLayers ? $`
4366
4376
  <eox-layercontrol-layer-group
4367
4377
  .noShadow=${!0}
4368
- .group=${i}
4378
+ .group=${n}
4369
4379
  .idProperty=${this.idProperty}
4370
4380
  .map=${this.map}
4371
4381
  .titleProperty=${this.titleProperty}
@@ -4379,7 +4389,7 @@ class Io extends tt {
4379
4389
  ` : $`
4380
4390
  <eox-layercontrol-layer
4381
4391
  .noShadow=${!0}
4382
- .layer=${i}
4392
+ .layer=${n}
4383
4393
  .map=${this.map}
4384
4394
  .titleProperty=${this.titleProperty}
4385
4395
  .showLayerZoomState=${this.showLayerZoomState}
@@ -4398,7 +4408,7 @@ class Io extends tt {
4398
4408
  `;
4399
4409
  }
4400
4410
  }
4401
- un = new WeakMap(), dn = new WeakMap(), // Define static properties for the component
4411
+ li = new WeakMap(), di = new WeakMap(), // Define static properties for the component
4402
4412
  I(Io, "properties", {
4403
4413
  idProperty: { attribute: "id-property" },
4404
4414
  layers: { attribute: !1 },
@@ -4414,17 +4424,17 @@ customElements.define("eox-layercontrol-layer-list", Io);
4414
4424
  const ka = (e) => {
4415
4425
  const t = e.querySelector(
4416
4426
  "select[name=optional]"
4417
- ), n = t ? t.value : null, i = ii(
4427
+ ), i = t ? t.value : null, n = nn(
4418
4428
  e.layers.getArray(),
4419
4429
  "layerControlOptional",
4420
4430
  !0
4421
4431
  ).find(
4422
4432
  (o) => (
4423
4433
  // @ts-expect-error TODO
4424
- (o.get(e.idProperty) || o.ol_uid) === n
4434
+ (o.get(e.idProperty) || o.ol_uid) === i
4425
4435
  )
4426
4436
  );
4427
- i == null || i.set("layerControlOptional", !1), i == null || i.setVisible(!0), e.dispatchEvent(
4437
+ n == null || n.set("layerControlOptional", !1), n == null || n.setVisible(!0), e.dispatchEvent(
4428
4438
  new CustomEvent("changed", { bubbles: !0 })
4429
4439
  ), e.renderRoot.parentNode.querySelectorAll("eox-layercontrol-layer-list").forEach(
4430
4440
  (o) => (
@@ -4433,11 +4443,11 @@ const ka = (e) => {
4433
4443
  )
4434
4444
  ), e.requestUpdate();
4435
4445
  };
4436
- var cn, Ho;
4446
+ var ui, Ho;
4437
4447
  class No extends tt {
4438
4448
  constructor() {
4439
4449
  super();
4440
- C(this, cn);
4450
+ C(this, ui);
4441
4451
  this.idProperty = "id", this.layers = null, this.titleProperty = "title", this.unstyled = !1, this.noShadow = !1;
4442
4452
  }
4443
4453
  /**
@@ -4452,7 +4462,7 @@ class No extends tt {
4452
4462
  * Generates dropdown options based on the extracted layer information.
4453
4463
  */
4454
4464
  render() {
4455
- const n = ii(
4465
+ const i = nn(
4456
4466
  this.layers.getArray(),
4457
4467
  "layerControlOptional",
4458
4468
  !0
@@ -4469,18 +4479,18 @@ class No extends tt {
4469
4479
  </option>
4470
4480
 
4471
4481
  <!-- Mapping through filtered layers list to generate dropdown options -->
4472
- ${n.map((i) => {
4473
- const o = i.get(this.idProperty) || i.ol_uid, r = i.get(this.titleProperty), s = `layer ${i.get(this.idProperty)}`;
4482
+ ${i.map((n) => {
4483
+ const o = n.get(this.idProperty) || n.ol_uid, r = n.get(this.titleProperty), s = `layer ${n.get(this.idProperty)}`;
4474
4484
  return $` <option value="${o}">${r || s}</option> `;
4475
4485
  })}
4476
4486
  </select>
4477
4487
 
4478
4488
  <!-- Button to handle adding layers -->
4479
- <button @click="${V(this, cn, Ho)}">add</button>
4489
+ <button @click="${V(this, ui, Ho)}">add</button>
4480
4490
  `;
4481
4491
  }
4482
4492
  }
4483
- cn = new WeakSet(), /**
4493
+ ui = new WeakSet(), /**
4484
4494
  * Handles the addition of selected layers to a list.
4485
4495
  * Invokes the 'addToListMethod' with the current context.
4486
4496
  */
@@ -4500,12 +4510,12 @@ customElements.define(
4500
4510
  );
4501
4511
  const Ua = (e, t) => {
4502
4512
  t.jsonInput = e.target.value, t.requestUpdate();
4503
- }, Li = (e) => {
4513
+ }, Ln = (e) => {
4504
4514
  const t = JSON.parse(
4505
- `{"data":${no(e.jsonInput)}}`
4515
+ `{"data":${io(e.jsonInput)}}`
4506
4516
  );
4507
- Array.isArray(t.data) ? t.data.forEach((n) => {
4508
- e.eoxMap.addOrUpdateLayer(n);
4517
+ Array.isArray(t.data) ? t.data.forEach((i) => {
4518
+ e.eoxMap.addOrUpdateLayer(i);
4509
4519
  }) : e.eoxMap.addOrUpdateLayer(t.data), e.jsonInput = null, e.requestUpdate();
4510
4520
  }, Fa = (e, t) => {
4511
4521
  t.urlInput = e.target.value, t.requestUpdate();
@@ -4513,11 +4523,11 @@ const Ua = (e, t) => {
4513
4523
  async function ja(e) {
4514
4524
  const t = e.urlInput;
4515
4525
  if (e.wmsCapabilities = null, e.searchLoad = !0, e.requestUpdate(), !t) return !1;
4516
- if (Qn(t) === "XYZ")
4526
+ if (Ki(t) === "XYZ")
4517
4527
  return { Name: t };
4518
4528
  try {
4519
- const n = await rs(t);
4520
- e.wmsCapabilities = n;
4529
+ const i = await rs(t);
4530
+ e.wmsCapabilities = i;
4521
4531
  } catch {
4522
4532
  } finally {
4523
4533
  e.searchLoad = !1, e.requestUpdate();
@@ -4525,19 +4535,19 @@ async function ja(e) {
4525
4535
  return !1;
4526
4536
  }
4527
4537
  const Za = (e, t) => {
4528
- const { Name: n } = e, i = Qn(t.urlInput) || "XYZ", o = {
4538
+ const { Name: i } = e, n = Ki(t.urlInput) || "XYZ", o = {
4529
4539
  type: "Tile",
4530
4540
  properties: {
4531
- id: n,
4532
- title: n
4541
+ id: i,
4542
+ title: i
4533
4543
  // Set the title property to the same as id
4534
4544
  },
4535
4545
  source: {
4536
- type: i,
4546
+ type: n,
4537
4547
  url: t.urlInput,
4538
4548
  // Set the URL from the instance
4539
4549
  params: {
4540
- LAYERS: n
4550
+ LAYERS: i
4541
4551
  // Set the 'LAYERS' parameter to the provided layer 'Name'
4542
4552
  }
4543
4553
  }
@@ -4546,7 +4556,7 @@ const Za = (e, t) => {
4546
4556
  }, za = (e, t) => {
4547
4557
  t.open = e || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
4548
4558
  };
4549
- var q, Bo, ko, Zn, Uo, Fo, Ve, hn, pn;
4559
+ var q, Bo, ko, ji, Uo, Fo, Ve, ci, hi;
4550
4560
  class Vo extends tt {
4551
4561
  constructor() {
4552
4562
  super();
@@ -4581,7 +4591,7 @@ class Vo extends tt {
4581
4591
  * @type {import("wms-capabilities").WMSCapabilitiesJSON}
4582
4592
  */
4583
4593
  I(this, "wmsCapabilities", null);
4584
- C(this, hn, `
4594
+ C(this, ci, `
4585
4595
  .eox-add-layer-main .open {
4586
4596
  position: relative;
4587
4597
  }
@@ -4589,7 +4599,7 @@ class Vo extends tt {
4589
4599
  display: none;
4590
4600
  }
4591
4601
  `);
4592
- C(this, pn, `
4602
+ C(this, hi, `
4593
4603
  .eox-add {
4594
4604
  background: #f0f2f5;
4595
4605
  border-top: 1px solid #0041701a;
@@ -4738,19 +4748,19 @@ class Vo extends tt {
4738
4748
  * Handles input fields, search, and addition of layers.
4739
4749
  */
4740
4750
  render() {
4741
- const n = this.open ? "open" : "close", i = this.open === "url", o = this.open === "json", r = !ss(this.urlInput) || this.searchLoad ? !0 : P;
4751
+ const i = this.open ? "open" : "close", n = this.open === "url", o = this.open === "json", r = !ss(this.urlInput) || this.searchLoad ? !0 : P;
4742
4752
  return $`
4743
4753
  <style>
4744
- ${S(this, hn)}
4745
- ${!this.unstyled && S(this, pn)}
4754
+ ${S(this, ci)}
4755
+ ${!this.unstyled && S(this, hi)}
4746
4756
  </style>
4747
4757
  <div class="eox-add-layer-main">
4748
4758
  <div class="eox-add-layer-col">
4749
4759
  <!-- Tabbed interface for URL and JSON -->
4750
- <ul class="eox-add-layer-tab ${n}">
4760
+ <ul class="eox-add-layer-tab ${i}">
4751
4761
  <li
4752
4762
  @click=${() => V(this, q, Ve).call(this, "url")}
4753
- class="${i ? "active" : ""}"
4763
+ class="${n ? "active" : ""}"
4754
4764
  >
4755
4765
  URL
4756
4766
  </li>
@@ -4770,8 +4780,8 @@ class Vo extends tt {
4770
4780
  ${this.unstyled ? "Add Layer" : ""}
4771
4781
  </button>
4772
4782
  </div>
4773
- <div class="eox-add ${n}">
4774
- ${i ? $`
4783
+ <div class="eox-add ${i}">
4784
+ ${n ? $`
4775
4785
  <!-- Input field for URL -->
4776
4786
  <div class="eox-add-layer-col">
4777
4787
  <input
@@ -4805,7 +4815,7 @@ class Vo extends tt {
4805
4815
  class="add-layer-icon icon"
4806
4816
  @click=${() => (
4807
4817
  // @ts-expect-error TODO
4808
- V(this, q, Zn).call(this, s)
4818
+ V(this, q, ji).call(this, s)
4809
4819
  )}
4810
4820
  >
4811
4821
  ${this.unstyled ? "+" : ""}
@@ -4844,38 +4854,38 @@ q = new WeakSet(), /**
4844
4854
  *
4845
4855
  * @param {Event} evt - The input change event triggering the method.
4846
4856
  */
4847
- Bo = function(n) {
4848
- Fa(n, this);
4857
+ Bo = function(i) {
4858
+ Fa(i, this);
4849
4859
  }, ko = async function() {
4850
- const n = await ja(this);
4851
- n && V(this, q, Zn).call(this, n);
4860
+ const i = await ja(this);
4861
+ i && V(this, q, ji).call(this, i);
4852
4862
  }, /**
4853
4863
  * Handles input field changes by triggering layer processing and adding layers.
4854
4864
  *
4855
4865
  * @param {{"Name": string}} layer - The layer information triggering the method.
4856
4866
  */
4857
- Zn = function(n) {
4858
- Za(n, this), Li(this);
4867
+ ji = function(i) {
4868
+ Za(i, this), Ln(this);
4859
4869
  }, /**
4860
4870
  * Initiates the addition of layers, triggering the handleAddLayerMethod.
4861
4871
  */
4862
4872
  Uo = function() {
4863
- Li(this);
4873
+ Ln(this);
4864
4874
  }, /**
4865
4875
  * Handles input field changes by invoking the 'handleJsonInputChangeMethod'.
4866
4876
  *
4867
4877
  * @param {{target: { value: string }}} evt - The input change event triggering the method.
4868
4878
  */
4869
- Fo = function(n) {
4870
- Ua(n, this);
4879
+ Fo = function(i) {
4880
+ Ua(i, this);
4871
4881
  }, /**
4872
4882
  * Handles tab changes by invoking the 'openCloseTabMethod'.
4873
4883
  *
4874
4884
  * @param {"url" | "json" | null} tab - The tab identifier triggering the method.
4875
4885
  */
4876
- Ve = function(n) {
4877
- za(n, this);
4878
- }, hn = new WeakMap(), pn = new WeakMap(), // Define static properties for the component
4886
+ Ve = function(i) {
4887
+ za(i, this);
4888
+ }, ci = new WeakMap(), hi = new WeakMap(), // Define static properties for the component
4879
4889
  I(Vo, "properties", {
4880
4890
  eoxMap: { attribute: !1, state: !0 },
4881
4891
  unstyled: { type: Boolean },
@@ -4884,20 +4894,20 @@ I(Vo, "properties", {
4884
4894
  customElements.define("eox-layercontrol-add-layers", Vo);
4885
4895
  const Xa = (e, t) => {
4886
4896
  if (t.requestUpdate(), e.target.tagName === "EOX-LAYERCONTROL-LAYER-TOOLS") {
4887
- const n = t.renderRoot.querySelector(
4897
+ const i = t.renderRoot.querySelector(
4888
4898
  "eox-layercontrol-optional-list"
4889
4899
  );
4890
- n == null || n.requestUpdate();
4900
+ i == null || i.requestUpdate();
4891
4901
  }
4892
4902
  }, qa = (e) => {
4893
4903
  let t;
4894
4904
  return typeof e == "string" ? t = /** @type {HTMLElement} */
4895
4905
  document.querySelector(e) : t = e, t;
4896
- }, Mi = (e) => {
4906
+ }, Mn = (e) => {
4897
4907
  const t = qa(e.for);
4898
4908
  return t && t.map !== e.map && (e.map = t.map), t;
4899
4909
  };
4900
- var At, Gt, Zo, zo, fn;
4910
+ var At, Gt, Zo, zo, pi;
4901
4911
  class jo extends tt {
4902
4912
  // Constructor to set default values for properties
4903
4913
  constructor() {
@@ -4909,10 +4919,16 @@ class jo extends tt {
4909
4919
  * @type {import("../../map/src/main").EOxMap}
4910
4920
  */
4911
4921
  C(this, At);
4912
- C(this, fn, `
4922
+ C(this, pi, `
4913
4923
  :host, :root {
4914
4924
  font-family: Roboto, sans-serif;
4915
4925
  --padding: 0.5rem;
4926
+ --list-padding: 48px;
4927
+ --layer-input-visibility: flex;
4928
+ --layer-type-visibility: block;
4929
+ --layer-title-visibility: flex;
4930
+ --layer-visibility: block;
4931
+ --layer-tools-button-visibility: flex;
4916
4932
 
4917
4933
  display: block;
4918
4934
  padding: var(--padding) 0;
@@ -4925,24 +4941,24 @@ class jo extends tt {
4925
4941
  * Updated #eoxMap after first update.
4926
4942
  */
4927
4943
  firstUpdated() {
4928
- this.eoxMap = Mi(this);
4944
+ this.eoxMap = Mn(this);
4929
4945
  }
4930
- updated(n) {
4931
- n.has("for") && (this.eoxMap = Mi(this));
4946
+ updated(i) {
4947
+ i.has("for") && (this.eoxMap = Mn(this));
4932
4948
  }
4933
4949
  get eoxMap() {
4934
4950
  return S(this, At);
4935
4951
  }
4936
- set eoxMap(n) {
4937
- const i = S(this, At);
4938
- kt(this, At, n), this.requestUpdate("eoxMap", i);
4952
+ set eoxMap(i) {
4953
+ const n = S(this, At);
4954
+ kt(this, At, i), this.requestUpdate("eoxMap", n);
4939
4955
  }
4940
4956
  render() {
4941
4957
  var o, r, s;
4942
- const n = (o = this.map) == null ? void 0 : o.getLayers().getArray(), i = n && ((r = ii(n, "layerControlOptional", !0)) == null ? void 0 : r.length) > 0;
4958
+ const i = (o = this.map) == null ? void 0 : o.getLayers().getArray(), n = i && ((r = nn(i, "layerControlOptional", !0)) == null ? void 0 : r.length) > 0;
4943
4959
  return $`
4944
4960
  <style>
4945
- ${!this.unstyled && S(this, fn)}
4961
+ ${!this.unstyled && S(this, pi)}
4946
4962
  ${this.styleOverride}
4947
4963
  </style>
4948
4964
 
@@ -4981,7 +4997,7 @@ class jo extends tt {
4981
4997
 
4982
4998
  <!-- Conditional rendering of optional list component -->
4983
4999
  ${F(
4984
- i,
5000
+ n,
4985
5001
  () => $`
4986
5002
  <eox-layercontrol-optional-list
4987
5003
  .noShadow=${!0}
@@ -5000,17 +5016,17 @@ At = new WeakMap(), Gt = new WeakSet(), /**
5000
5016
  *
5001
5017
  * @param {CustomEvent & {target: Element}} evt
5002
5018
  */
5003
- Zo = function(n) {
5004
- Xa(n, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: n.detail }));
5019
+ Zo = function(i) {
5020
+ Xa(i, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: i.detail }));
5005
5021
  }, /**
5006
5022
  * Dispatches datetime updates from layer datetime to the layercontrol
5007
5023
  * @param {CustomEvent} evt
5008
5024
  */
5009
- zo = function(n) {
5025
+ zo = function(i) {
5010
5026
  this.dispatchEvent(
5011
- new CustomEvent("datetime:updated", { detail: n.detail })
5027
+ new CustomEvent("datetime:updated", { detail: i.detail })
5012
5028
  );
5013
- }, fn = new WeakMap(), // Define static properties for the component
5029
+ }, pi = new WeakMap(), // Define static properties for the component
5014
5030
  I(jo, "properties", {
5015
5031
  for: { type: String },
5016
5032
  idProperty: { attribute: "id-property" },