@eox/layercontrol 1.8.1 → 1.8.3

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.
@@ -5,10 +5,10 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
5
5
  enumerable: !(s = n(i, d)) || s.enumerable
6
6
  });
7
7
  return e;
8
- }, c = (n, r, a) => (a = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule ? t(a, "default", {
8
+ }, c = (n, r, o) => (o = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule || !a.call(n, "default") ? t(o, "default", {
9
9
  value: n,
10
10
  enumerable: !0
11
- }) : a, n)), l = globalThis, u = l.ShadowRoot && (l.ShadyCSS === void 0 || l.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, d = Symbol(), f = /* @__PURE__ */ new WeakMap(), p = class {
11
+ }) : o, n)), l = globalThis, u = l.ShadowRoot && (l.ShadyCSS === void 0 || l.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, d = Symbol(), f = /* @__PURE__ */ new WeakMap(), p = class {
12
12
  constructor(e, t, n) {
13
13
  if (this._$cssResult$ = !0, n !== d) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
14
14
  this.cssText = e, this.t = t;
@@ -38,11 +38,11 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
38
38
  let t = "";
39
39
  for (let n of e.cssRules) t += n.cssText;
40
40
  return m(t);
41
- })(e) : e, { is: v, defineProperty: y, getOwnPropertyDescriptor: b, getOwnPropertyNames: x, getOwnPropertySymbols: S, getPrototypeOf: C } = Object, w = globalThis, T = w.trustedTypes, E = T ? T.emptyScript : "", ee = w.reactiveElementPolyfillSupport, D = (e, t) => e, te = {
41
+ })(e) : e, { is: v, defineProperty: y, getOwnPropertyDescriptor: b, getOwnPropertyNames: x, getOwnPropertySymbols: S, getPrototypeOf: C } = Object, w = globalThis, T = w.trustedTypes, ee = T ? T.emptyScript : "", te = w.reactiveElementPolyfillSupport, E = (e, t) => e, ne = {
42
42
  toAttribute(e, t) {
43
43
  switch (t) {
44
44
  case Boolean:
45
- e = e ? E : null;
45
+ e = e ? ee : null;
46
46
  break;
47
47
  case Object:
48
48
  case Array: e = e == null ? e : JSON.stringify(e);
@@ -67,23 +67,23 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
67
67
  }
68
68
  return n;
69
69
  }
70
- }, ne = (e, t) => !v(e, t), re = {
70
+ }, re = (e, t) => !v(e, t), ie = {
71
71
  attribute: !0,
72
72
  type: String,
73
- converter: te,
73
+ converter: ne,
74
74
  reflect: !1,
75
75
  useDefault: !1,
76
- hasChanged: ne
76
+ hasChanged: re
77
77
  };
78
78
  Symbol.metadata ??= Symbol("metadata"), w.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
79
- var ie = class extends HTMLElement {
79
+ var ae = class extends HTMLElement {
80
80
  static addInitializer(e) {
81
81
  this._$Ei(), (this.l ??= []).push(e);
82
82
  }
83
83
  static get observedAttributes() {
84
84
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
85
85
  }
86
- static createProperty(e, t = re) {
86
+ static createProperty(e, t = ie) {
87
87
  if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
88
88
  let n = Symbol(), r = this.getPropertyDescriptor(e, n, t);
89
89
  r !== void 0 && y(this.prototype, e, r);
@@ -109,16 +109,16 @@ var ie = class extends HTMLElement {
109
109
  };
110
110
  }
111
111
  static getPropertyOptions(e) {
112
- return this.elementProperties.get(e) ?? re;
112
+ return this.elementProperties.get(e) ?? ie;
113
113
  }
114
114
  static _$Ei() {
115
- if (this.hasOwnProperty(D("elementProperties"))) return;
115
+ if (this.hasOwnProperty(E("elementProperties"))) return;
116
116
  let e = C(this);
117
117
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
118
118
  }
119
119
  static finalize() {
120
- if (this.hasOwnProperty(D("finalized"))) return;
121
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(D("properties"))) {
120
+ if (this.hasOwnProperty(E("finalized"))) return;
121
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(E("properties"))) {
122
122
  let e = this.properties, t = [...x(e), ...S(e)];
123
123
  for (let n of t) this.createProperty(n, e[n]);
124
124
  }
@@ -137,7 +137,7 @@ var ie = class extends HTMLElement {
137
137
  static finalizeStyles(e) {
138
138
  let t = [];
139
139
  if (Array.isArray(e)) {
140
- let n = new Set(e.flat(Infinity).reverse());
140
+ let n = new Set(e.flat(1 / 0).reverse());
141
141
  for (let e of n) t.unshift(_(e));
142
142
  } else e !== void 0 && t.push(_(e));
143
143
  return t;
@@ -180,14 +180,14 @@ var ie = class extends HTMLElement {
180
180
  _$ET(e, t) {
181
181
  let n = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, n);
182
182
  if (r !== void 0 && !0 === n.reflect) {
183
- let i = (n.converter?.toAttribute === void 0 ? te : n.converter).toAttribute(t, n.type);
183
+ let i = (n.converter?.toAttribute === void 0 ? ne : n.converter).toAttribute(t, n.type);
184
184
  this._$Em = e, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$Em = null;
185
185
  }
186
186
  }
187
187
  _$AK(e, t) {
188
188
  let n = this.constructor, r = n._$Eh.get(e);
189
189
  if (r !== void 0 && this._$Em !== r) {
190
- let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? te : e.converter;
190
+ let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? ne : e.converter;
191
191
  this._$Em = r;
192
192
  let a = i.fromAttribute(t, e.type);
193
193
  this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
@@ -196,7 +196,7 @@ var ie = class extends HTMLElement {
196
196
  requestUpdate(e, t, n) {
197
197
  if (e !== void 0) {
198
198
  let r = this.constructor, i = this[e];
199
- if (n ??= r.getPropertyOptions(e), !((n.hasChanged ?? ne)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, n)))) return;
199
+ if (n ??= r.getPropertyOptions(e), !((n.hasChanged ?? re)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, n)))) return;
200
200
  this.C(e, t, n);
201
201
  }
202
202
  !1 === this.isUpdatePending && (this._$ES = this._$EP());
@@ -260,87 +260,89 @@ var ie = class extends HTMLElement {
260
260
  updated(e) {}
261
261
  firstUpdated(e) {}
262
262
  };
263
- ie.elementStyles = [], ie.shadowRootOptions = { mode: "open" }, ie[D("elementProperties")] = /* @__PURE__ */ new Map(), ie[D("finalized")] = /* @__PURE__ */ new Map(), ee?.({ ReactiveElement: ie }), (w.reactiveElementVersions ??= []).push("2.1.1");
263
+ ae.elementStyles = [], ae.shadowRootOptions = { mode: "open" }, ae[E("elementProperties")] = /* @__PURE__ */ new Map(), ae[E("finalized")] = /* @__PURE__ */ new Map(), te?.({ ReactiveElement: ae }), (w.reactiveElementVersions ??= []).push("2.1.1");
264
264
  //#endregion
265
265
  //#region ../../node_modules/lit-html/lit-html.js
266
- var ae = globalThis, oe = ae.trustedTypes, se = oe ? oe.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, ce = "$lit$", le = `lit$${Math.random().toFixed(9).slice(2)}$`, ue = "?" + le, de = `<${ue}>`, fe = document, pe = () => fe.createComment(""), me = (e) => e === null || typeof e != "object" && typeof e != "function", he = Array.isArray, ge = (e) => he(e) || typeof e?.[Symbol.iterator] == "function", _e = "[ \n\f\r]", ve = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ye = /-->/g, be = />/g, xe = RegExp(`>|${_e}(?:([^\\s"'>=/]+)(${_e}*=${_e}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), Se = /'/g, Ce = /"/g, we = /^(?:script|style|textarea|title)$/i, O = ((e) => (t, ...n) => ({
266
+ var oe = globalThis, se = oe.trustedTypes, ce = se ? se.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, le = "$lit$", ue = `lit$${Math.random().toFixed(9).slice(2)}$`, de = "?" + ue, fe = `<${de}>`, pe = document, me = () => pe.createComment(""), he = (e) => e === null || typeof e != "object" && typeof e != "function", ge = Array.isArray, _e = (e) => ge(e) || typeof e?.[Symbol.iterator] == "function", ve = "[ \n\f\r]", ye = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, be = /-->/g, xe = />/g, Se = RegExp(`>|${ve}(?:([^\\s"'>=/]+)(${ve}*=${ve}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), Ce = /'/g, we = /"/g, Te = /^(?:script|style|textarea|title)$/i, D = ((e) => (t, ...n) => ({
267
267
  _$litType$: e,
268
268
  strings: t,
269
269
  values: n
270
- }))(1), Te = Symbol.for("lit-noChange"), k = Symbol.for("lit-nothing"), Ee = /* @__PURE__ */ new WeakMap(), De = fe.createTreeWalker(fe, 129);
271
- function Oe(e, t) {
272
- if (!he(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
273
- return se === void 0 ? t : se.createHTML(t);
270
+ }))(1), Ee = Symbol.for("lit-noChange"), O = Symbol.for("lit-nothing"), De = /* @__PURE__ */ new WeakMap(), Oe = pe.createTreeWalker(pe, 129);
271
+ function ke(e, t) {
272
+ if (!ge(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
273
+ return ce === void 0 ? t : ce.createHTML(t);
274
274
  }
275
- var ke = (e, t) => {
276
- let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = ve;
275
+ var Ae = (e, t) => {
276
+ let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = ye;
277
277
  for (let t = 0; t < n; t++) {
278
278
  let n = e[t], s, c, l = -1, u = 0;
279
- for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === ve ? c[1] === "!--" ? o = ye : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = xe) : (we.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = xe) : o = be : o === xe ? c[0] === ">" ? (o = i ?? ve, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? xe : c[3] === "\"" ? Ce : Se) : o === Ce || o === Se ? o = xe : o === ye || o === be ? o = ve : (o = xe, i = void 0);
280
- let d = o === xe && e[t + 1].startsWith("/>") ? " " : "";
281
- a += o === ve ? n + de : l >= 0 ? (r.push(s), n.slice(0, l) + ce + n.slice(l) + le + d) : n + le + (l === -2 ? t : d);
279
+ for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === ye ? c[1] === "!--" ? o = be : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = Se) : (Te.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = Se) : o = xe : o === Se ? c[0] === ">" ? (o = i ?? ye, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? Se : c[3] === "\"" ? we : Ce) : o === we || o === Ce ? o = Se : o === be || o === xe ? o = ye : (o = Se, i = void 0);
280
+ let d = o === Se && e[t + 1].startsWith("/>") ? " " : "";
281
+ a += o === ye ? n + fe : l >= 0 ? (r.push(s), n.slice(0, l) + le + n.slice(l) + ue + d) : n + ue + (l === -2 ? t : d);
282
282
  }
283
- return [Oe(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
284
- }, Ae = class e {
283
+ return [ke(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
284
+ }, je = class e {
285
285
  constructor({ strings: t, _$litType$: n }, r) {
286
286
  let i;
287
287
  this.parts = [];
288
- let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = ke(t, n);
289
- if (this.el = e.createElement(l, r), De.currentNode = this.el.content, n === 2 || n === 3) {
288
+ let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = Ae(t, n);
289
+ if (this.el = e.createElement(l, r), Oe.currentNode = this.el.content, n === 2 || n === 3) {
290
290
  let e = this.el.content.firstChild;
291
291
  e.replaceWith(...e.childNodes);
292
292
  }
293
- for (; (i = De.nextNode()) !== null && c.length < s;) {
293
+ for (; (i = Oe.nextNode()) !== null && c.length < s;) {
294
294
  if (i.nodeType === 1) {
295
- if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(ce)) {
296
- let t = u[o++], n = i.getAttribute(e).split(le), r = /([.?@])?(.*)/.exec(t);
295
+ if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(le)) {
296
+ let t = u[o++], n = i.getAttribute(e).split(ue), r = /([.?@])?(.*)/.exec(t);
297
297
  c.push({
298
298
  type: 1,
299
299
  index: a,
300
300
  name: r[2],
301
301
  strings: n,
302
- ctor: r[1] === "." ? Fe : r[1] === "?" ? Ie : r[1] === "@" ? Le : Pe
302
+ ctor: r[1] === "." ? Ie : r[1] === "?" ? Le : r[1] === "@" ? Re : Fe
303
303
  }), i.removeAttribute(e);
304
- } else e.startsWith(le) && (c.push({
304
+ } else e.startsWith(ue) && (c.push({
305
305
  type: 6,
306
306
  index: a
307
307
  }), i.removeAttribute(e));
308
- if (we.test(i.tagName)) {
309
- let e = i.textContent.split(le), t = e.length - 1;
308
+ if (Te.test(i.tagName)) {
309
+ let e = i.textContent.split(ue), t = e.length - 1;
310
310
  if (t > 0) {
311
- i.textContent = oe ? oe.emptyScript : "";
312
- for (let n = 0; n < t; n++) i.append(e[n], pe()), De.nextNode(), c.push({
311
+ i.textContent = se ? se.emptyScript : "";
312
+ for (let n = 0; n < t; n++) i.append(e[n], me()), Oe.nextNode(), c.push({
313
313
  type: 2,
314
314
  index: ++a
315
315
  });
316
- i.append(e[t], pe());
316
+ i.append(e[t], me());
317
317
  }
318
318
  }
319
- } else if (i.nodeType === 8) if (i.data === ue) c.push({
320
- type: 2,
321
- index: a
322
- });
323
- else {
324
- let e = -1;
325
- for (; (e = i.data.indexOf(le, e + 1)) !== -1;) c.push({
326
- type: 7,
319
+ } else if (i.nodeType === 8) {
320
+ if (i.data === de) c.push({
321
+ type: 2,
327
322
  index: a
328
- }), e += le.length - 1;
323
+ });
324
+ else {
325
+ let e = -1;
326
+ for (; (e = i.data.indexOf(ue, e + 1)) !== -1;) c.push({
327
+ type: 7,
328
+ index: a
329
+ }), e += ue.length - 1;
330
+ }
329
331
  }
330
332
  a++;
331
333
  }
332
334
  }
333
335
  static createElement(e, t) {
334
- let n = fe.createElement("template");
336
+ let n = pe.createElement("template");
335
337
  return n.innerHTML = e, n;
336
338
  }
337
339
  };
338
- function je(e, t, n = e, r) {
339
- if (t === Te) return t;
340
- let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = me(t) ? void 0 : t._$litDirective$;
341
- return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = je(e, i._$AS(e, t.values), i, r)), t;
340
+ function Me(e, t, n = e, r) {
341
+ if (t === Ee) return t;
342
+ let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = he(t) ? void 0 : t._$litDirective$;
343
+ return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = Me(e, i._$AS(e, t.values), i, r)), t;
342
344
  }
343
- var Me = class {
345
+ var Ne = class {
344
346
  constructor(e, t) {
345
347
  this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
346
348
  }
@@ -351,28 +353,28 @@ var Me = class {
351
353
  return this._$AM._$AU;
352
354
  }
353
355
  u(e) {
354
- let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? fe).importNode(t, !0);
355
- De.currentNode = r;
356
- let i = De.nextNode(), a = 0, o = 0, s = n[0];
356
+ let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? pe).importNode(t, !0);
357
+ Oe.currentNode = r;
358
+ let i = Oe.nextNode(), a = 0, o = 0, s = n[0];
357
359
  for (; s !== void 0;) {
358
360
  if (a === s.index) {
359
361
  let t;
360
- s.type === 2 ? t = new Ne(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new Re(i, this, e)), this._$AV.push(t), s = n[++o];
362
+ s.type === 2 ? t = new Pe(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new ze(i, this, e)), this._$AV.push(t), s = n[++o];
361
363
  }
362
- a !== s?.index && (i = De.nextNode(), a++);
364
+ a !== s?.index && (i = Oe.nextNode(), a++);
363
365
  }
364
- return De.currentNode = fe, r;
366
+ return Oe.currentNode = pe, r;
365
367
  }
366
368
  p(e) {
367
369
  let t = 0;
368
370
  for (let n of this._$AV) n !== void 0 && (n.strings === void 0 ? n._$AI(e[t]) : (n._$AI(e, n, t), t += n.strings.length - 2)), t++;
369
371
  }
370
- }, Ne = class e {
372
+ }, Pe = class e {
371
373
  get _$AU() {
372
374
  return this._$AM?._$AU ?? this._$Cv;
373
375
  }
374
376
  constructor(e, t, n, r) {
375
- this.type = 2, this._$AH = k, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cv = r?.isConnected ?? !0;
377
+ this.type = 2, this._$AH = O, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cv = r?.isConnected ?? !0;
376
378
  }
377
379
  get parentNode() {
378
380
  let e = this._$AA.parentNode, t = this._$AM;
@@ -385,7 +387,7 @@ var Me = class {
385
387
  return this._$AB;
386
388
  }
387
389
  _$AI(e, t = this) {
388
- e = je(this, e, t), me(e) ? e === k || e == null || e === "" ? (this._$AH !== k && this._$AR(), this._$AH = k) : e !== this._$AH && e !== Te && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? ge(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
390
+ e = Me(this, e, t), he(e) ? e === O || e == null || e === "" ? (this._$AH !== O && this._$AR(), this._$AH = O) : e !== this._$AH && e !== Ee && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? _e(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
389
391
  }
390
392
  O(e) {
391
393
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -394,24 +396,24 @@ var Me = class {
394
396
  this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
395
397
  }
396
398
  _(e) {
397
- this._$AH !== k && me(this._$AH) ? this._$AA.nextSibling.data = e : this.T(fe.createTextNode(e)), this._$AH = e;
399
+ this._$AH !== O && he(this._$AH) ? this._$AA.nextSibling.data = e : this.T(pe.createTextNode(e)), this._$AH = e;
398
400
  }
399
401
  $(e) {
400
- let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = Ae.createElement(Oe(n.h, n.h[0]), this.options)), n);
402
+ let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = je.createElement(ke(n.h, n.h[0]), this.options)), n);
401
403
  if (this._$AH?._$AD === r) this._$AH.p(t);
402
404
  else {
403
- let e = new Me(r, this), n = e.u(this.options);
405
+ let e = new Ne(r, this), n = e.u(this.options);
404
406
  e.p(t), this.T(n), this._$AH = e;
405
407
  }
406
408
  }
407
409
  _$AC(e) {
408
- let t = Ee.get(e.strings);
409
- return t === void 0 && Ee.set(e.strings, t = new Ae(e)), t;
410
+ let t = De.get(e.strings);
411
+ return t === void 0 && De.set(e.strings, t = new je(e)), t;
410
412
  }
411
413
  k(t) {
412
- he(this._$AH) || (this._$AH = [], this._$AR());
414
+ ge(this._$AH) || (this._$AH = [], this._$AR());
413
415
  let n = this._$AH, r, i = 0;
414
- for (let a of t) i === n.length ? n.push(r = new e(this.O(pe()), this.O(pe()), this, this.options)) : r = n[i], r._$AI(a), i++;
416
+ for (let a of t) i === n.length ? n.push(r = new e(this.O(me()), this.O(me()), this, this.options)) : r = n[i], r._$AI(a), i++;
415
417
  i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
416
418
  }
417
419
  _$AR(e = this._$AA.nextSibling, t) {
@@ -423,7 +425,7 @@ var Me = class {
423
425
  setConnected(e) {
424
426
  this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
425
427
  }
426
- }, Pe = class {
428
+ }, Fe = class {
427
429
  get tagName() {
428
430
  return this.element.tagName;
429
431
  }
@@ -431,47 +433,47 @@ var Me = class {
431
433
  return this._$AM._$AU;
432
434
  }
433
435
  constructor(e, t, n, r, i) {
434
- this.type = 1, this._$AH = k, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(/* @__PURE__ */ new String()), this.strings = n) : this._$AH = k;
436
+ this.type = 1, this._$AH = O, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(/* @__PURE__ */ new String()), this.strings = n) : this._$AH = O;
435
437
  }
436
438
  _$AI(e, t = this, n, r) {
437
439
  let i = this.strings, a = !1;
438
- if (i === void 0) e = je(this, e, t, 0), a = !me(e) || e !== this._$AH && e !== Te, a && (this._$AH = e);
440
+ if (i === void 0) e = Me(this, e, t, 0), a = !he(e) || e !== this._$AH && e !== Ee, a && (this._$AH = e);
439
441
  else {
440
442
  let r = e, o, s;
441
- for (e = i[0], o = 0; o < i.length - 1; o++) s = je(this, r[n + o], t, o), s === Te && (s = this._$AH[o]), a ||= !me(s) || s !== this._$AH[o], s === k ? e = k : e !== k && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
443
+ for (e = i[0], o = 0; o < i.length - 1; o++) s = Me(this, r[n + o], t, o), s === Ee && (s = this._$AH[o]), a ||= !he(s) || s !== this._$AH[o], s === O ? e = O : e !== O && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
442
444
  }
443
445
  a && !r && this.j(e);
444
446
  }
445
447
  j(e) {
446
- e === k ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
448
+ e === O ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
447
449
  }
448
- }, Fe = class extends Pe {
450
+ }, Ie = class extends Fe {
449
451
  constructor() {
450
452
  super(...arguments), this.type = 3;
451
453
  }
452
454
  j(e) {
453
- this.element[this.name] = e === k ? void 0 : e;
455
+ this.element[this.name] = e === O ? void 0 : e;
454
456
  }
455
- }, Ie = class extends Pe {
457
+ }, Le = class extends Fe {
456
458
  constructor() {
457
459
  super(...arguments), this.type = 4;
458
460
  }
459
461
  j(e) {
460
- this.element.toggleAttribute(this.name, !!e && e !== k);
462
+ this.element.toggleAttribute(this.name, !!e && e !== O);
461
463
  }
462
- }, Le = class extends Pe {
464
+ }, Re = class extends Fe {
463
465
  constructor(e, t, n, r, i) {
464
466
  super(e, t, n, r, i), this.type = 5;
465
467
  }
466
468
  _$AI(e, t = this) {
467
- if ((e = je(this, e, t, 0) ?? k) === Te) return;
468
- let n = this._$AH, r = e === k && n !== k || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== k && (n === k || r);
469
+ if ((e = Me(this, e, t, 0) ?? O) === Ee) return;
470
+ let n = this._$AH, r = e === O && n !== O || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== O && (n === O || r);
469
471
  r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
470
472
  }
471
473
  handleEvent(e) {
472
474
  typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
473
475
  }
474
- }, Re = class {
476
+ }, ze = class {
475
477
  constructor(e, t, n) {
476
478
  this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
477
479
  }
@@ -479,33 +481,33 @@ var Me = class {
479
481
  return this._$AM._$AU;
480
482
  }
481
483
  _$AI(e) {
482
- je(this, e);
484
+ Me(this, e);
483
485
  }
484
- }, ze = {
485
- M: ce,
486
- P: le,
487
- A: ue,
486
+ }, Be = {
487
+ M: le,
488
+ P: ue,
489
+ A: de,
488
490
  C: 1,
489
- L: ke,
490
- R: Me,
491
- D: ge,
492
- V: je,
493
- I: Ne,
494
- H: Pe,
495
- N: Ie,
496
- U: Le,
497
- B: Fe,
498
- F: Re
499
- }, Be = ae.litHtmlPolyfillSupport;
500
- Be?.(Ae, Ne), (ae.litHtmlVersions ??= []).push("3.3.1");
501
- var Ve = (e, t, n) => {
491
+ L: Ae,
492
+ R: Ne,
493
+ D: _e,
494
+ V: Me,
495
+ I: Pe,
496
+ H: Fe,
497
+ N: Le,
498
+ U: Re,
499
+ B: Ie,
500
+ F: ze
501
+ }, Ve = oe.litHtmlPolyfillSupport;
502
+ Ve?.(je, Pe), (oe.litHtmlVersions ??= []).push("3.3.1");
503
+ var He = (e, t, n) => {
502
504
  let r = n?.renderBefore ?? t, i = r._$litPart$;
503
505
  if (i === void 0) {
504
506
  let e = n?.renderBefore ?? null;
505
- r._$litPart$ = i = new Ne(t.insertBefore(pe(), e), e, void 0, n ?? {});
507
+ r._$litPart$ = i = new Pe(t.insertBefore(me(), e), e, void 0, n ?? {});
506
508
  }
507
509
  return i._$AI(e), i;
508
- }, He = globalThis, Ue = class extends ie {
510
+ }, Ue = globalThis, k = class extends ae {
509
511
  constructor() {
510
512
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
511
513
  }
@@ -515,7 +517,7 @@ var Ve = (e, t, n) => {
515
517
  }
516
518
  update(e) {
517
519
  let t = this.render();
518
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Ve(t, this.renderRoot, this.renderOptions);
520
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = He(t, this.renderRoot, this.renderOptions);
519
521
  }
520
522
  connectedCallback() {
521
523
  super.connectedCallback(), this._$Do?.setConnected(!0);
@@ -524,12 +526,12 @@ var Ve = (e, t, n) => {
524
526
  super.disconnectedCallback(), this._$Do?.setConnected(!1);
525
527
  }
526
528
  render() {
527
- return Te;
529
+ return Ee;
528
530
  }
529
531
  };
530
- Ue._$litElement$ = !0, Ue.finalized = !0, He.litElementHydrateSupport?.({ LitElement: Ue });
531
- var We = He.litElementPolyfillSupport;
532
- We?.({ LitElement: Ue }), (He.litElementVersions ??= []).push("4.2.1");
532
+ k._$litElement$ = !0, k.finalized = !0, Ue.litElementHydrateSupport?.({ LitElement: k });
533
+ var We = Ue.litElementPolyfillSupport;
534
+ We?.({ LitElement: k }), (Ue.litElementVersions ??= []).push("4.2.1");
533
535
  //#endregion
534
536
  //#region ../../node_modules/lit-html/directives/when.js
535
537
  function A(e, t, n) {
@@ -561,7 +563,7 @@ var Ge = {
561
563
  update(e, t) {
562
564
  return this.render(...t);
563
565
  }
564
- }, { I: Je } = ze, Ye = (e) => e.strings === void 0, Xe = () => document.createComment(""), Ze = (e, t, n) => {
566
+ }, { I: Je } = Be, Ye = (e) => e.strings === void 0, Xe = () => document.createComment(""), Ze = (e, t, n) => {
565
567
  let r = e._$AA.parentNode, i = t === void 0 ? e._$AB : t._$AA;
566
568
  if (n === void 0) n = new Je(r.insertBefore(Xe(), i), r.insertBefore(Xe(), i), e, e.options);
567
569
  else {
@@ -612,15 +614,16 @@ var Ge = {
612
614
  else if (s[f] === o[m]) c[m] = Qe(i[f], a[m]), f--, m--;
613
615
  else if (s[d] === o[m]) c[m] = Qe(i[d], a[m]), Ze(e, c[m + 1], i[d]), d++, m--;
614
616
  else if (s[f] === o[p]) c[p] = Qe(i[f], a[p]), Ze(e, i[d], i[f]), f--, p++;
615
- else if (l === void 0 && (l = rt(o, p, m), u = rt(s, d, f)), l.has(s[d])) if (l.has(s[f])) {
616
- let t = u.get(o[p]), n = t === void 0 ? null : i[t];
617
- if (n === null) {
618
- let t = Ze(e, i[d]);
619
- Qe(t, a[p]), c[p] = t;
620
- } else c[p] = Qe(n, a[p]), Ze(e, i[d], n), i[t] = null;
621
- p++;
622
- } else nt(i[f]), f--;
623
- else nt(i[d]), d++;
617
+ else if (l === void 0 && (l = rt(o, p, m), u = rt(s, d, f)), l.has(s[d])) {
618
+ if (l.has(s[f])) {
619
+ let t = u.get(o[p]), n = t === void 0 ? null : i[t];
620
+ if (n === null) {
621
+ let t = Ze(e, i[d]);
622
+ Qe(t, a[p]), c[p] = t;
623
+ } else c[p] = Qe(n, a[p]), Ze(e, i[d], n), i[t] = null;
624
+ p++;
625
+ } else nt(i[f]), f--;
626
+ } else nt(i[d]), d++;
624
627
  for (; p <= m;) {
625
628
  let t = Ze(e, c[m + 1]);
626
629
  Qe(t, a[p]), c[p++] = t;
@@ -629,7 +632,7 @@ var Ge = {
629
632
  let e = i[d++];
630
633
  e !== null && nt(e);
631
634
  }
632
- return this.ut = o, et(e, c), Te;
635
+ return this.ut = o, et(e, c), Ee;
633
636
  }
634
637
  }), j = (e) => e !== void 0, at = (e, t, n) => t in e ? e[t] : e[t] = n, ot = {
635
638
  ELEMENT: 1,
@@ -1328,7 +1331,7 @@ function lr() {
1328
1331
  return {
1329
1332
  captureAnimationState: function() {
1330
1333
  e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
1331
- if (!(z(t, "display") === "none" || t === Y.ghost)) {
1334
+ if (z(t, "display") !== "none" && t !== Y.ghost) {
1332
1335
  e.push({
1333
1336
  target: t,
1334
1337
  rect: B(t)
@@ -1593,7 +1596,7 @@ function Y(e, t) {
1593
1596
  };
1594
1597
  for (var r in mr.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
1595
1598
  for (var i in Qr(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
1596
- this.nativeDraggable = t.forceFallback ? !1 : qr, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? L(e, "pointerdown", this._onTapStart) : (L(e, "mousedown", this._onTapStart), L(e, "touchstart", this._onTapStart)), this.nativeDraggable && (L(e, "dragover", this), L(e, "dragenter", this)), Or.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Sn(this, lr());
1599
+ this.nativeDraggable = !t.forceFallback && qr, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? L(e, "pointerdown", this._onTapStart) : (L(e, "mousedown", this._onTapStart), L(e, "touchstart", this._onTapStart)), this.nativeDraggable && (L(e, "dragover", this), L(e, "dragenter", this)), Or.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Sn(this, lr());
1597
1600
  }
1598
1601
  Y.prototype = {
1599
1602
  constructor: Y,
@@ -1813,21 +1816,21 @@ Y.prototype = {
1813
1816
  if (n = b, i = B(n), ii(G, t, H, r, n, i, e, !1) !== !1) return g(), t.insertBefore(H, b), U = t, v(), _(!0);
1814
1817
  } else if (n.parentNode === t) {
1815
1818
  i = B(n);
1816
- var x = 0, S, C = H.parentNode !== t, w = !Xr(H.animated && H.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = qn(n, "top", "top") || qn(H, "top", "top"), ee = E ? E.scrollTop : void 0;
1819
+ var x = 0, S, C = H.parentNode !== t, w = !Xr(H.animated && H.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", ee = qn(n, "top", "top") || qn(H, "top", "top"), te = ee ? ee.scrollTop : void 0;
1817
1820
  Ir !== n && (S = i[T], Rr = !1, zr = !w && o.invertSwap || C), x = li(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, zr, Ir === n);
1818
- var D;
1821
+ var E;
1819
1822
  if (x !== 0) {
1820
- var te = Xn(H);
1823
+ var ne = Xn(H);
1821
1824
  do
1822
- te -= x, D = U.children[te];
1823
- while (D && (z(D, "display") === "none" || D === W));
1825
+ ne -= x, E = U.children[ne];
1826
+ while (E && (z(E, "display") === "none" || E === W));
1824
1827
  }
1825
- if (x === 0 || D === n) return _(!1);
1828
+ if (x === 0 || E === n) return _(!1);
1826
1829
  Ir = n, Lr = x;
1827
- var ne = n.nextElementSibling, re = !1;
1828
- re = x === 1;
1829
- var ie = ii(G, t, H, r, n, i, e, re);
1830
- if (ie !== !1) return (ie === 1 || ie === -1) && (re = ie === 1), Hr = !0, setTimeout(oi, 30), g(), re && !ne ? t.appendChild(H) : n.parentNode.insertBefore(H, re ? ne : n), E && ar(E, 0, ee - E.scrollTop), U = H.parentNode, S !== void 0 && !zr && (Br = Math.abs(S - B(n)[T])), v(), _(!0);
1830
+ var re = n.nextElementSibling, ie = !1;
1831
+ ie = x === 1;
1832
+ var ae = ii(G, t, H, r, n, i, e, ie);
1833
+ if (ae !== !1) return (ae === 1 || ae === -1) && (ie = ae === 1), Hr = !0, setTimeout(oi, 30), g(), ie && !re ? t.appendChild(H) : n.parentNode.insertBefore(H, ie ? re : n), ee && ar(ee, 0, te - ee.scrollTop), U = H.parentNode, S !== void 0 && !zr && (Br = Math.abs(S - B(n)[T])), v(), _(!0);
1831
1834
  }
1832
1835
  if (t.contains(H)) return _(!1);
1833
1836
  }
@@ -1910,9 +1913,7 @@ Y.prototype = {
1910
1913
  case "dragover":
1911
1914
  H && (this._onDragOver(e), ri(e));
1912
1915
  break;
1913
- case "selectstart":
1914
- e.preventDefault();
1915
- break;
1916
+ case "selectstart": e.preventDefault();
1916
1917
  }
1917
1918
  },
1918
1919
  toArray: function() {
@@ -1939,7 +1940,7 @@ Y.prototype = {
1939
1940
  var n = this.options;
1940
1941
  if (t === void 0) return n[e];
1941
1942
  var r = mr.modifyOption(this, e, t);
1942
- r === void 0 ? n[e] = t : n[e] = r, e === "group" && Qr(n);
1943
+ n[e] = r === void 0 ? t : r, e === "group" && Qr(n);
1943
1944
  },
1944
1945
  destroy: function() {
1945
1946
  _r("destroy", this);
@@ -2116,14 +2117,14 @@ var Ti = rr(function(e, t, n, r) {
2116
2117
  gi !== n && (gi = n, Ci(), hi = t.scroll, u = t.scrollFn, hi === !0 && (hi = $n(n, !0)));
2117
2118
  var d = 0, f = hi;
2118
2119
  do {
2119
- var p = f, m = B(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = z(p), E = p.scrollLeft, ee = p.scrollTop;
2120
+ var p = f, m = B(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = z(p), ee = p.scrollLeft, te = p.scrollTop;
2120
2121
  p === c ? (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll" || T.overflowX === "visible"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll" || T.overflowY === "visible")) : (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll"));
2121
- var D = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), te = S && (Math.abs(g - a) <= o && ee + b < w) - (Math.abs(h - a) <= o && !!ee);
2122
- if (!X[d]) for (var ne = 0; ne <= d; ne++) X[ne] || (X[ne] = {});
2123
- (X[d].vx != D || X[d].vy != te || X[d].el !== p) && (X[d].el = p, X[d].vx = D, X[d].vy = te, clearInterval(X[d].pid), (D != 0 || te != 0) && (l = !0, X[d].pid = setInterval(function() {
2122
+ var E = x && (Math.abs(v - i) <= o && ee + y < C) - (Math.abs(_ - i) <= o && !!ee), ne = S && (Math.abs(g - a) <= o && te + b < w) - (Math.abs(h - a) <= o && !!te);
2123
+ if (!X[d]) for (var re = 0; re <= d; re++) X[re] || (X[re] = {});
2124
+ (X[d].vx != E || X[d].vy != ne || X[d].el !== p) && (X[d].el = p, X[d].vx = E, X[d].vy = ne, clearInterval(X[d].pid), (E != 0 || ne != 0) && (l = !0, X[d].pid = setInterval(function() {
2124
2125
  r && this.layer === 0 && Y.active._onTouchMove(bi);
2125
2126
  var t = X[this.layer].vy ? X[this.layer].vy * s : 0, n = X[this.layer].vx ? X[this.layer].vx * s : 0;
2126
- typeof u == "function" && u.call(Y.dragged.parentNode[cr], n, t, e, bi, X[this.layer].el) !== "continue" || ar(X[this.layer].el, n, t);
2127
+ (typeof u != "function" || u.call(Y.dragged.parentNode[cr], n, t, e, bi, X[this.layer].el) === "continue") && ar(X[this.layer].el, n, t);
2127
2128
  }.bind({ layer: d }), 24))), d++;
2128
2129
  } while (t.bubbleScroll && f !== c && (f = $n(f, !1)));
2129
2130
  _i = l;
@@ -2328,7 +2329,7 @@ function ea(e) {
2328
2329
  }
2329
2330
  function ta(e, t, n) {
2330
2331
  let r = n || Vi();
2331
- return ia(e, t) ? (e[0] > t[0] ? r[0] = e[0] : r[0] = t[0], e[1] > t[1] ? r[1] = e[1] : r[1] = t[1], e[2] < t[2] ? r[2] = e[2] : r[2] = t[2], e[3] < t[3] ? r[3] = e[3] : r[3] = t[3]) : Ui(r), r;
2332
+ return ia(e, t) ? (r[0] = e[0] > t[0] ? e[0] : t[0], r[1] = e[1] > t[1] ? e[1] : t[1], r[2] = e[2] < t[2] ? e[2] : t[2], r[3] = e[3] < t[3] ? e[3] : t[3]) : Ui(r), r;
2332
2333
  }
2333
2334
  function na(e) {
2334
2335
  return [e[0], e[3]];
@@ -2467,7 +2468,7 @@ var va = {
2467
2468
  "us-ft": 1200 / 3937
2468
2469
  }, ya = class {
2469
2470
  constructor(e) {
2470
- this.code_ = e.code, this.units_ = e.units, this.extent_ = e.extent === void 0 ? null : e.extent, this.worldExtent_ = e.worldExtent === void 0 ? null : e.worldExtent, this.axisOrientation_ = e.axisOrientation === void 0 ? "enu" : e.axisOrientation, this.global_ = e.global === void 0 ? !1 : e.global, this.canWrapX_ = !!(this.global_ && this.extent_), this.getPointResolutionFunc_ = e.getPointResolution, this.defaultTileGrid_ = null, this.metersPerUnit_ = e.metersPerUnit;
2471
+ this.code_ = e.code, this.units_ = e.units, this.extent_ = e.extent === void 0 ? null : e.extent, this.worldExtent_ = e.worldExtent === void 0 ? null : e.worldExtent, this.axisOrientation_ = e.axisOrientation === void 0 ? "enu" : e.axisOrientation, this.global_ = e.global !== void 0 && e.global, this.canWrapX_ = !!(this.global_ && this.extent_), this.getPointResolutionFunc_ = e.getPointResolution, this.defaultTileGrid_ = null, this.metersPerUnit_ = e.metersPerUnit;
2471
2472
  }
2472
2473
  canWrapX() {
2473
2474
  return this.canWrapX_;
@@ -2617,9 +2618,9 @@ function Va(e, t) {
2617
2618
  }
2618
2619
  //#endregion
2619
2620
  //#region ../../node_modules/ol/proj/utm.js
2620
- var Ha = .9996, Ua = .00669438, Wa = Ua * Ua, Ga = Wa * Ua, Ka = Ua / (1 - Ua), qa = Math.sqrt(1 - Ua), Ja = (1 - qa) / (1 + qa), Ya = Ja * Ja, Xa = Ya * Ja, Za = Xa * Ja, Qa = Za * Ja, $a = 1 - Ua / 4 - 3 * Wa / 64 - 5 * Ga / 256, eo = .002514607064228144, to = 26390466021299826e-22, no = 35 * Ga / 3072, ro = 3 / 2 * Ja - 27 / 32 * Xa + 269 / 512 * Qa, io = 21 / 16 * Ya - 55 / 32 * Za, ao = 151 / 96 * Xa - 417 / 128 * Qa, oo = 1097 / 512 * Za, so = 6378137;
2621
+ var Ha = .9996, Ua = .00669438, Wa = Ua * Ua, Ga = Wa * Ua, Ka = Ua / .99330562, qa = Math.sqrt(.99330562), Ja = (1 - qa) / (1 + qa), Ya = Ja * Ja, Xa = Ya * Ja, Za = Xa * Ja, Qa = Za * Ja, $a = 1 - Ua / 4 - 3 * Wa / 64 - 5 * Ga / 256, eo = .002514607064228144, to = 26390466021299826e-22, no = 35 * Ga / 3072, ro = 3 / 2 * Ja - 27 / 32 * Xa + 269 / 512 * Qa, io = 21 / 16 * Ya - 55 / 32 * Za, ao = 151 / 96 * Xa - 417 / 128 * Qa, oo = 1097 / 512 * Za, so = 6378137;
2621
2622
  function co(e, t, n) {
2622
- let r = e - 5e5, i = (n.north ? t : t - 1e7) / Ha / (so * $a), a = i + ro * Math.sin(2 * i) + io * Math.sin(4 * i) + ao * Math.sin(6 * i) + oo * Math.sin(8 * i), o = Math.sin(a), s = o * o, c = Math.cos(a), l = o / c, u = l * l, d = u * u, f = 1 - Ua * s, p = so / Math.sqrt(1 - Ua * s), m = (1 - Ua) / f, h = Ka * c ** 2, g = h * h, _ = r / (p * Ha), v = _ * _, y = v * _, b = y * _, x = b * _, S = x * _, C = a - l / m * (v / 2 - b / 24 * (5 + 3 * u + 10 * h - 4 * g - 9 * Ka)) + S / 720 * (61 + 90 * u + 298 * h + 45 * d - 252 * Ka - 3 * g), w = (_ - y / 6 * (1 + 2 * u + h) + x / 120 * (5 - 2 * h + 28 * u - 3 * g + 8 * Ka + 24 * d)) / c;
2623
+ let r = e - 5e5, i = (n.north ? t : t - 1e7) / Ha / (so * $a), a = i + ro * Math.sin(2 * i) + io * Math.sin(4 * i) + ao * Math.sin(6 * i) + oo * Math.sin(8 * i), o = Math.sin(a), s = o * o, c = Math.cos(a), l = o / c, u = l * l, d = u * u, f = 1 - Ua * s, p = so / Math.sqrt(1 - Ua * s), m = .99330562 / f, h = Ka * c ** 2, g = h * h, _ = r / (p * Ha), v = _ * _, y = v * _, b = y * _, x = b * _, S = x * _, C = a - l / m * (v / 2 - b / 24 * (5 + 3 * u + 10 * h - 4 * g - 9 * Ka)) + S / 720 * (61 + 90 * u + 298 * h + 45 * d - 252 * Ka - 3 * g), w = (_ - y / 6 * (1 + 2 * u + h) + x / 120 * (5 - 2 * h + 28 * u - 3 * g + 8 * Ka + 24 * d)) / c;
2623
2624
  return w = _a(w + fa(ho(n.number)), -Math.PI, Math.PI), [da(w), da(C)];
2624
2625
  }
2625
2626
  var lo = -80, uo = 84, fo = -180, po = 180;
@@ -2916,7 +2917,7 @@ function qo(e, t, n, r, i) {
2916
2917
  //#endregion
2917
2918
  //#region ../../node_modules/ol/geom/flat/intersectsextent.js
2918
2919
  function Jo(e, t, n, r, i, a) {
2919
- return a ??= Ki(Vi(), e, t, n, r), ia(i, a) ? a[0] >= i[0] && a[2] <= i[2] || a[1] >= i[1] && a[3] <= i[3] ? !0 : qo(e, t, n, r, function(e, t) {
2920
+ return a ??= Ki(Vi(), e, t, n, r), ia(i, a) ? a[0] >= i[0] && a[2] <= i[2] || a[1] >= i[1] && a[3] <= i[3] || qo(e, t, n, r, function(e, t) {
2920
2921
  return oa(i, e, t);
2921
2922
  }) : !1;
2922
2923
  }
@@ -2957,7 +2958,7 @@ function is(e, t) {
2957
2958
  let n = e[0], r = e[1], i = e[2];
2958
2959
  if (t.getMinZoom() > n || n > t.getMaxZoom()) return !1;
2959
2960
  let a = t.getFullTileRange(n);
2960
- return a ? a.containsXY(r, i) : !0;
2961
+ return !a || a.containsXY(r, i);
2961
2962
  }
2962
2963
  //#endregion
2963
2964
  //#region ../../node_modules/ol/tilegrid/TileGrid.js
@@ -3390,7 +3391,7 @@ var js = class extends Os {
3390
3391
  if (ws) this.state = $.LOADED;
3391
3392
  else {
3392
3393
  let e = this.image_;
3393
- e.naturalWidth && e.naturalHeight ? this.state = $.LOADED : this.state = $.EMPTY;
3394
+ this.state = e.naturalWidth && e.naturalHeight ? $.LOADED : $.EMPTY;
3394
3395
  }
3395
3396
  this.unlistenImage_(), this.changed();
3396
3397
  }
@@ -3415,7 +3416,7 @@ function Fs(e, t, n, r, i) {
3415
3416
  e.beginPath(), e.moveTo(0, 0), e.lineTo(t, n), e.lineTo(r, i), e.closePath(), e.save(), e.clip(), e.fillRect(0, 0, Math.max(t, r) + 1, Math.max(n, i)), e.restore();
3416
3417
  }
3417
3418
  function Is(e, t) {
3418
- return Math.abs(e[t * 4] - 210) > 2 || Math.abs(e[t * 4 + 3] - .75 * 255) > 2;
3419
+ return Math.abs(e[t * 4] - 210) > 2 || Math.abs(e[t * 4 + 3] - 191.25) > 2;
3419
3420
  }
3420
3421
  function Ls() {
3421
3422
  if (Ns === void 0) {
@@ -3476,9 +3477,9 @@ function Bs(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
3476
3477
  }
3477
3478
  let b = na(o);
3478
3479
  return s.getTriangles().forEach(function(e, t, n) {
3479
- let r = e.source, i = e.target, o = r[0][0], s = r[0][1], l = r[1][0], u = r[1][1], f = r[2][0], p = r[2][1], v = h((i[0][0] - b[0]) / a), x = h(-(i[0][1] - b[1]) / a), S = h((i[1][0] - b[0]) / a), C = h(-(i[1][1] - b[1]) / a), w = h((i[2][0] - b[0]) / a), T = h(-(i[2][1] - b[1]) / a), E = o, ee = s;
3480
- o = 0, s = 0, l -= E, u -= ee, f -= E, p -= ee;
3481
- let D = ua([
3480
+ let r = e.source, i = e.target, o = r[0][0], s = r[0][1], l = r[1][0], u = r[1][1], f = r[2][0], p = r[2][1], v = h((i[0][0] - b[0]) / a), x = h(-(i[0][1] - b[1]) / a), S = h((i[1][0] - b[0]) / a), C = h(-(i[1][1] - b[1]) / a), w = h((i[2][0] - b[0]) / a), T = h(-(i[2][1] - b[1]) / a), ee = o, te = s;
3481
+ o = 0, s = 0, l -= ee, u -= te, f -= ee, p -= te;
3482
+ let E = ua([
3482
3483
  [
3483
3484
  l,
3484
3485
  u,
@@ -3508,21 +3509,21 @@ function Bs(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
3508
3509
  T - x
3509
3510
  ]
3510
3511
  ]);
3511
- if (!D) return;
3512
+ if (!E) return;
3512
3513
  if (m.save(), m.beginPath(), Ls() || !d) {
3513
3514
  m.moveTo(S, C);
3514
3515
  let e = v - S, t = x - C;
3515
3516
  for (let n = 0; n < 4; n++) m.lineTo(S + h((n + 1) * e / 4), C + h(n * t / 3)), n != 3 && m.lineTo(S + h((n + 1) * e / 4), C + h((n + 1) * t / 3));
3516
3517
  m.lineTo(w, T);
3517
3518
  } else m.moveTo(S, C), m.lineTo(v, x), m.lineTo(w, T);
3518
- m.clip(), m.transform(D[0], D[2], D[1], D[3], v, x), m.translate(g[0] - E, g[3] - ee);
3519
- let te;
3520
- if (_) te = _.canvas, m.scale(y, -y);
3519
+ m.clip(), m.transform(E[0], E[2], E[1], E[3], v, x), m.translate(g[0] - ee, g[3] - te);
3520
+ let ne;
3521
+ if (_) ne = _.canvas, m.scale(y, -y);
3521
3522
  else {
3522
3523
  let e = c[0], t = e.extent;
3523
- te = e.image, m.scale(Q(t) / te.width, -ea(t) / te.height);
3524
+ ne = e.image, m.scale(Q(t) / ne.width, -ea(t) / ne.height);
3524
3525
  }
3525
- m.drawImage(te, 0, 0), m.restore();
3526
+ m.drawImage(ne, 0, 0), m.restore();
3526
3527
  }), _ && (As(_), Ps.push(_.canvas)), u && (m.save(), m.globalCompositeOperation = "source-over", m.strokeStyle = "black", m.lineWidth = 1, s.getTriangles().forEach(function(e, t, n) {
3527
3528
  let r = e.target, i = (r[0][0] - b[0]) / a, o = -(r[0][1] - b[1]) / a, s = (r[1][0] - b[0]) / a, c = -(r[1][1] - b[1]) / a, l = (r[2][0] - b[0]) / a, u = -(r[2][1] - b[1]) / a;
3528
3529
  m.beginPath(), m.moveTo(s, c), m.lineTo(i, o), m.lineTo(l, u), m.closePath(), m.stroke();
@@ -3630,7 +3631,7 @@ var Hs = 10, Us = .25, Ws = class {
3630
3631
  }
3631
3632
  }, Gs = .5, Ks = class extends Os {
3632
3633
  constructor(e, t, n, r, i, a, o, s, c, l, u, d) {
3633
- super(i, $.IDLE, d), this.renderEdges_ = u === void 0 ? !1 : u, this.pixelRatio_ = o, this.gutter_ = s, this.canvas_ = null, this.sourceTileGrid_ = t, this.targetTileGrid_ = r, this.wrappedTileCoord_ = a || i, this.sourceTiles_ = [], this.sourcesListenerKeys_ = null, this.sourceZ_ = 0, this.clipExtent_ = e.canWrapX() ? e.getExtent() : void 0;
3634
+ super(i, $.IDLE, d), this.renderEdges_ = u !== void 0 && u, this.pixelRatio_ = o, this.gutter_ = s, this.canvas_ = null, this.sourceTileGrid_ = t, this.targetTileGrid_ = r, this.wrappedTileCoord_ = a || i, this.sourceTiles_ = [], this.sourcesListenerKeys_ = null, this.sourceZ_ = 0, this.clipExtent_ = e.canWrapX() ? e.getExtent() : void 0;
3634
3635
  let f = r.getTileCoordExtent(this.wrappedTileCoord_), p = this.targetTileGrid_.getExtent(), m = this.sourceTileGrid_.getExtent(), h = p ? ta(f, p) : f;
3635
3636
  if (Yi(h) === 0) {
3636
3637
  this.state = $.EMPTY;
@@ -3757,7 +3758,7 @@ function ec(e, t) {
3757
3758
  }
3758
3759
  function tc(e) {
3759
3760
  return e.length === 1 ? e[0] : (function(t, n, r) {
3760
- if (t) return e[pa(ns(t), e.length)](t, n, r);
3761
+ return t ? e[pa(ns(t), e.length)](t, n, r) : void 0;
3761
3762
  });
3762
3763
  }
3763
3764
  //#endregion
@@ -3859,7 +3860,7 @@ var ac = class extends xs {
3859
3860
  }
3860
3861
  }, sc = class extends oc {
3861
3862
  constructor(e) {
3862
- super(), this.projection = Do(e.projection), this.attributions_ = cc(e.attributions), this.attributionsCollapsible_ = e.attributionsCollapsible ?? !0, this.loading = !1, this.state_ = e.state === void 0 ? "ready" : e.state, this.wrapX_ = e.wrapX === void 0 ? !1 : e.wrapX, this.interpolate_ = !!e.interpolate, this.viewResolver = null, this.viewRejector = null;
3863
+ super(), this.projection = Do(e.projection), this.attributions_ = cc(e.attributions), this.attributionsCollapsible_ = e.attributionsCollapsible ?? !0, this.loading = !1, this.state_ = e.state === void 0 ? "ready" : e.state, this.wrapX_ = e.wrapX !== void 0 && e.wrapX, this.interpolate_ = !!e.interpolate, this.viewResolver = null, this.viewRejector = null;
3863
3864
  let t = this;
3864
3865
  this.viewPromise_ = new Promise(function(e, n) {
3865
3866
  t.viewResolver = e, t.viewRejector = n;
@@ -4024,7 +4025,7 @@ var lc = class extends sc {
4024
4025
  urls: e.urls,
4025
4026
  wrapX: e.wrapX,
4026
4027
  transition: e.transition,
4027
- interpolate: e.interpolate === void 0 ? !0 : e.interpolate,
4028
+ interpolate: e.interpolate === void 0 || e.interpolate,
4028
4029
  key: e.key,
4029
4030
  attributionsCollapsible: e.attributionsCollapsible,
4030
4031
  zDirection: e.zDirection
@@ -4132,7 +4133,7 @@ var hc = class extends pc {
4132
4133
  tileUrlFunction: e.tileUrlFunction,
4133
4134
  url: e.url,
4134
4135
  urls: e.urls,
4135
- wrapX: e.wrapX === void 0 ? !0 : e.wrapX,
4136
+ wrapX: e.wrapX === void 0 || e.wrapX,
4136
4137
  transition: e.transition,
4137
4138
  attributionsCollapsible: e.attributionsCollapsible,
4138
4139
  zDirection: e.zDirection
@@ -4142,22 +4143,17 @@ var hc = class extends pc {
4142
4143
  return this.gutter_;
4143
4144
  }
4144
4145
  }, gc = (e, t, n) => {
4145
- let r = t, i = n.layer.getSource();
4146
- if (i.updateParams) {
4147
- let t = { ...e };
4148
- (n.layerConfig.schema?.options?.removeProperties ?? []).forEach((e) => delete t[e]), i.updateParams(t);
4149
- } else i.getTileUrlFunction && i.getTileUrlFunction() && (r ||= i.getTileUrlFunction(), i.setTileUrlFunction((...t) => {
4150
- let a = new URL(r(...t)), o = n.layerConfig.schema?.options?.removeProperties ?? [], s = { ...e };
4151
- return o.forEach((e) => delete s[e]), i instanceof hc && (i._updatedUrl = bn(i.getUrls()[0], s)), o.forEach((e) => a.searchParams.delete(e)), bn(a.href, s);
4146
+ let r = t, i = n.layer.getSource(), a = n.layerConfig.schema?.options?.removeProperties ?? [], o = { ...e };
4147
+ a.forEach((e) => delete o[e]), i.updateParams ? i.updateParams(o) : i.getTileUrlFunction && i.getTileUrlFunction() && (r ||= i.getTileUrlFunction(), i instanceof hc && (i._updatedUrl = bn(i.getUrls()[0], e)), i.setTileUrlFunction((...t) => {
4148
+ let n = new URL(r(...t));
4149
+ return a.forEach((e) => n.searchParams.delete(e)), bn(n.href, e);
4152
4150
  }), i.setKey((/* @__PURE__ */ new Date()).toISOString()));
4153
- let a = document.querySelector("eox-map");
4154
- if (a) {
4155
- let t = a.globe;
4151
+ let s = document.querySelector("eox-map");
4152
+ if (s) {
4153
+ let t = s.globe;
4156
4154
  if (t) {
4157
- let r = { ...e };
4158
- (n.layerConfig.schema?.options?.removeProperties ?? []).forEach((e) => delete r[e]);
4159
- let i = t.planet.layers.filter((e) => e.name == n.layer.get("id"))[0];
4160
- i && i.setUrl(bn(i.url, r)), window.eoxMapGlobe.refresh();
4155
+ let r = t.planet.layers.filter((e) => e.name == n.layer.get("id"))[0];
4156
+ r && r.setUrl(bn(r.url, e)), window.eoxMapGlobe.refresh();
4161
4157
  }
4162
4158
  }
4163
4159
  return r;
@@ -4270,17 +4266,17 @@ function wc(e, t) {
4270
4266
  }
4271
4267
  //#endregion
4272
4268
  //#region src/helpers/layer-tools.js
4273
- var Tc = (e, t) => e?.filter((e) => ["remove", "sort"].filter((e) => t?.get("layerControlDisable") ? e !== "sort" : !0).includes(e)), Ec = (e, t) => e?.filter((e) => {
4269
+ var Tc = (e, t) => e?.filter((e) => ["remove", "sort"].filter((e) => !t?.get("layerControlDisable") || e !== "sort").includes(e)), Ec = (e, t) => e?.filter((e) => {
4274
4270
  let n = !0;
4275
4271
  return ["remove", "sort"].includes(e) && (n = !1), e === "info" && (n = t.get("description")), e === "config" && (n = t.get("layerConfig")), e === "datetime" && (n = t.get("layerDatetime")), e === "legend" && (n = t.get("layerLegend")), n;
4276
- }), Dc = (e, t, n) => O`
4272
+ }), Dc = (e, t, n) => D`
4277
4273
  <button
4278
4274
  slot="${e}-icon"
4279
4275
  class="no-margin transparent square primary-text small"
4280
4276
  >
4281
- ${n ? e : O`<i class="small primary-text">${t}</i>`}
4277
+ ${n ? e : D`<i class="small primary-text">${t}</i>`}
4282
4278
  </button>
4283
- `, Oc = (e, t) => O`
4279
+ `, Oc = (e, t) => D`
4284
4280
  <button
4285
4281
  class="remove-icon no-margin transparent square small action"
4286
4282
  @click=${() => {
@@ -4291,59 +4287,59 @@ var Tc = (e, t) => e?.filter((e) => ["remove", "sort"].filter((e) => t?.get("lay
4291
4287
  }));
4292
4288
  }}
4293
4289
  >
4294
- ${e.unstyled ? "x" : O`<i class="small red-text">${t}</i>`}
4290
+ ${e.unstyled ? "x" : D`<i class="small red-text">${t}</i>`}
4295
4291
  </button>
4296
- `, kc = (e, t, n) => O`
4292
+ `, kc = (e, t, n) => D`
4297
4293
  <button
4298
4294
  class="sort-icon no-margin transparent square primary-text drag-handle small action ${e.layer.get("layerControlDisable") ? "disabled" : ""}"
4299
4295
  style="cursor: ns-resize;"
4300
4296
  >
4301
- ${n ? "═" : O`<i class="small primary-text">${t}</i>`}
4297
+ ${n ? "═" : D`<i class="small primary-text">${t}</i>`}
4302
4298
  </button>
4303
4299
  `;
4304
4300
  function Ac() {
4305
4301
  return {
4306
- dots: O`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
4302
+ dots: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
4307
4303
  <title>menu-down</title>
4308
4304
  <path d="M7,10L12,15L17,10H7Z" />
4309
4305
  </svg>`,
4310
- info: O`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
4306
+ info: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
4311
4307
  <title>information-outline</title>
4312
4308
  <path
4313
4309
  d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z"
4314
4310
  />
4315
4311
  </svg>`,
4316
- opacity: O`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
4312
+ opacity: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
4317
4313
  <title>circle-opacity</title>
4318
4314
  <path
4319
4315
  d="M18 10V8H20V10H18M18 12V10H16V12H18M18 8V6H16V8H18M16 2.84V4H18C17.37 3.54 16.71 3.15 16 2.84M18 4V6H20C19.42 5.25 18.75 4.58 18 4M20 6V8H21.16C20.85 7.29 20.46 6.63 20 6M22 12C22 11.32 21.93 10.65 21.8 10H20V12H22M16 6V4H14V6H16M16 16H18V14H16V16M18 18H20L20 18V16H18V18M16 20H18L18 20V18H16V20M14 21.8C14.7 21.66 15.36 21.44 16 21.16V20H14V21.8M18 14H20V12H18V14M16 8H14V10H16V8M20 16H21.16C21.44 15.36 21.66 14.7 21.8 14H20V16M16 12H14V14H16V12M12 18V16H14V14H12V12H14V10H12V8H14V6H12V4H14V2.2C13.35 2.07 12.69 2 12 2C6.5 2 2 6.5 2 12S6.5 22 12 22V20H14V18H12M14 18H16V16H14V18Z"
4320
4316
  />
4321
4317
  </svg>`,
4322
- config: O`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
4318
+ config: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
4323
4319
  <title>tune</title>
4324
4320
  <path
4325
4321
  d="M3,17V19H9V17H3M3,5V7H13V5H3M13,21V19H21V17H13V15H11V21H13M7,9V11H3V13H7V15H9V9H7M21,13V11H11V13H21M15,9H17V7H21V5H17V3H15V9Z"
4326
4322
  />
4327
4323
  </svg>`,
4328
- datetime: O`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
4324
+ datetime: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
4329
4325
  <title>calendar-clock-outline</title>
4330
4326
  <path
4331
4327
  d="M6 1V3H5C3.89 3 3 3.89 3 5V19C3 20.1 3.89 21 5 21H11.1C12.36 22.24 14.09 23 16 23C19.87 23 23 19.87 23 16C23 14.09 22.24 12.36 21 11.1V5C21 3.9 20.11 3 19 3H18V1H16V3H8V1M5 5H19V7H5M5 9H19V9.67C18.09 9.24 17.07 9 16 9C12.13 9 9 12.13 9 16C9 17.07 9.24 18.09 9.67 19H5M16 11.15C18.68 11.15 20.85 13.32 20.85 16C20.85 18.68 18.68 20.85 16 20.85C13.32 20.85 11.15 18.68 11.15 16C11.15 13.32 13.32 11.15 16 11.15M15 13V16.69L18.19 18.53L18.94 17.23L16.5 15.82V13Z"
4332
4328
  />
4333
4329
  </svg>`,
4334
- legend: O`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
4330
+ legend: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
4335
4331
  <title>map-legend</title>
4336
4332
  <path
4337
4333
  d="M9,3L3.36,4.9C3.15,4.97 3,5.15 3,5.38V20.5A0.5,0.5 0 0,0 3.5,21L3.66,20.97L9,18.9L15,21L20.64,19.1C20.85,19.03 21,18.85 21,18.62V3.5A0.5,0.5 0 0,0 20.5,3L20.34,3.03L15,5.1L9,3M8,5.45V17.15L5,18.31V6.46L8,5.45M10,5.47L14,6.87V18.53L10,17.13V5.47M19,5.7V17.54L16,18.55V6.86L19,5.7M7.46,6.3L5.57,6.97V9.12L7.46,8.45V6.3M7.46,9.05L5.57,9.72V11.87L7.46,11.2V9.05M7.46,11.8L5.57,12.47V14.62L7.46,13.95V11.8M7.46,14.55L5.57,15.22V17.37L7.46,16.7V14.55Z"
4338
4334
  />
4339
4335
  </svg>`,
4340
- remove: O`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
4336
+ remove: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
4341
4337
  <title>delete-outline</title>
4342
4338
  <path
4343
4339
  d="M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8,9H16V19H8V9M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z"
4344
4340
  />
4345
4341
  </svg>`,
4346
- sort: O`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
4342
+ sort: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
4347
4343
  <title>drag-horizontal-variant</title>
4348
4344
  <path d="M21 11H3V9H21V11M21 13H3V15H21V13Z" />
4349
4345
  </svg>`
@@ -4374,22 +4370,22 @@ var Nc = Ke(class extends qe {
4374
4370
  return e;
4375
4371
  }
4376
4372
  update(e, [t]) {
4377
- if (t === Te || t === k) return t;
4373
+ if (t === Ee || t === O) return t;
4378
4374
  let n = e.element, r = e.name;
4379
4375
  if (e.type === Ge.PROPERTY) {
4380
- if (t === n[r]) return Te;
4376
+ if (t === n[r]) return Ee;
4381
4377
  } else if (e.type === Ge.BOOLEAN_ATTRIBUTE) {
4382
- if (!!t === n.hasAttribute(r)) return Te;
4383
- } else if (e.type === Ge.ATTRIBUTE && n.getAttribute(r) === t + "") return Te;
4378
+ if (!!t === n.hasAttribute(r)) return Ee;
4379
+ } else if (e.type === Ge.ATTRIBUTE && n.getAttribute(r) === t + "") return Ee;
4384
4380
  return et(e), t;
4385
4381
  }
4386
4382
  }), Pc = class extends qe {
4387
4383
  constructor(e) {
4388
- if (super(e), this.it = k, e.type !== Ge.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
4384
+ if (super(e), this.it = O, e.type !== Ge.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
4389
4385
  }
4390
4386
  render(e) {
4391
- if (e === k || e == null) return this._t = void 0, this.it = e;
4392
- if (e === Te) return e;
4387
+ if (e === O || e == null) return this._t = void 0, this.it = e;
4388
+ if (e === Ee) return e;
4393
4389
  if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
4394
4390
  if (e === this.it) return this._t;
4395
4391
  this.it = e;
@@ -4447,10 +4443,10 @@ var Lc = "@import \"https://eox.at/fonts/inter/inter.css\";@import \"https://eox
4447
4443
  function T() {
4448
4444
  c !== void 0 && clearTimeout(c), u = 0, i = l = a = c = void 0;
4449
4445
  }
4450
- function E() {
4446
+ function ee() {
4451
4447
  return c === void 0 ? s : w(h());
4452
4448
  }
4453
- function ee() {
4449
+ function te() {
4454
4450
  var e = h(), n = S(e);
4455
4451
  if (i = arguments, a = this, l = e, n) {
4456
4452
  if (c === void 0) return y(l);
@@ -4458,7 +4454,7 @@ var Lc = "@import \"https://eox.at/fonts/inter/inter.css\";@import \"https://eox
4458
4454
  }
4459
4455
  return c === void 0 && (c = setTimeout(C, t)), s;
4460
4456
  }
4461
- return ee.cancel = T, ee.flush = E, ee;
4457
+ return te.cancel = T, te.flush = ee, te;
4462
4458
  }
4463
4459
  function _(e, t, r) {
4464
4460
  var i = !0, a = !0;
@@ -4492,7 +4488,7 @@ var Lc = "@import \"https://eox.at/fonts/inter/inter.css\";@import \"https://eox
4492
4488
  return n || s.test(e) ? c(e.slice(2), n ? 2 : 8) : a.test(e) ? r : +e;
4493
4489
  }
4494
4490
  t.exports = _;
4495
- })))(), 1), zc = (e) => e ?? k, Bc = class extends Ue {
4491
+ })))(), 1), zc = (e) => e ?? O, Bc = class extends k {
4496
4492
  static properties = {
4497
4493
  unstyled: { type: Boolean },
4498
4494
  noShadow: { type: Boolean },
@@ -4507,13 +4503,13 @@ var Lc = "@import \"https://eox.at/fonts/inter/inter.css\";@import \"https://eox
4507
4503
  return this.#e ? this.#e.length > 1 ? this.#e : this.#e[0] : null;
4508
4504
  }
4509
4505
  set layerLegend(e) {
4510
- e ? Array.isArray(e) ? this.#e = e.map((e, t) => ({
4506
+ this.#e = e ? Array.isArray(e) ? e.map((e, t) => ({
4511
4507
  id: (this.layer?.get("id") ?? "") + t,
4512
4508
  ...e
4513
- })) : this.#e = [{
4509
+ })) : [{
4514
4510
  id: (this.layer?.get("id") ?? "") + 0,
4515
4511
  ...e
4516
- }] : this.#e = null;
4512
+ }] : null;
4517
4513
  }
4518
4514
  createRenderRoot() {
4519
4515
  return this.noShadow ? this : super.createRenderRoot();
@@ -4524,15 +4520,15 @@ var Lc = "@import \"https://eox.at/fonts/inter/inter.css\";@import \"https://eox
4524
4520
  }).observe(this.renderRoot.querySelector(".legend-container"));
4525
4521
  }
4526
4522
  render() {
4527
- return customElements.get("color-legend") || console.error("Please import `color-legend-element` in order to use layerLegend"), O`
4523
+ return customElements.get("color-legend") || console.error("Please import `color-legend-element` in order to use layerLegend"), D`
4528
4524
  <style>
4529
4525
  ${this.#t}
4530
4526
  ${!this.unstyled && this.#n}
4531
4527
  </style>
4532
- ${A(this.layerLegend, () => O`
4528
+ ${A(this.layerLegend, () => D`
4533
4529
  <div class="legend-container">
4534
4530
  <!-- Render color-legend-->
4535
- ${this.#e.map((e, t, n) => O`
4531
+ ${this.#e.map((e, t, n) => D`
4536
4532
  <color-legend
4537
4533
  id="${e.id}"
4538
4534
  width=${e.width ?? 325}
@@ -4548,7 +4544,7 @@ var Lc = "@import \"https://eox.at/fonts/inter/inter.css\";@import \"https://eox
4548
4544
  .marginRight=${8}
4549
4545
  >
4550
4546
  </color-legend>
4551
- ${t === n.length - 1 ? k : O`<div class="separator"></div>`}
4547
+ ${t === n.length - 1 ? O : D`<div class="separator"></div>`}
4552
4548
  `)}
4553
4549
  </div>
4554
4550
  `)}
@@ -4575,7 +4571,7 @@ var Lc = "@import \"https://eox.at/fonts/inter/inter.css\";@import \"https://eox
4575
4571
  customElements.define("eox-layercontrol-layer-legend", Bc);
4576
4572
  //#endregion
4577
4573
  //#region src/components/layer-config.js
4578
- var Vc = class extends Ue {
4574
+ var Vc = class extends k {
4579
4575
  static properties = {
4580
4576
  layer: { attribute: !1 },
4581
4577
  unstyled: { type: Boolean },
@@ -4621,13 +4617,13 @@ var Vc = class extends Ue {
4621
4617
  disable_collapse: !0,
4622
4618
  disable_properties: !0
4623
4619
  };
4624
- return O`
4620
+ return D`
4625
4621
  <style>
4626
4622
  ${this.#i}
4627
4623
  ${!this.unstyled && this.#a}
4628
4624
  </style>
4629
- ${A(this.layerConfig, () => O`
4630
- ${A(this.layerConfig.legend, () => O`
4625
+ ${A(this.layerConfig, () => D`
4626
+ ${A(this.layerConfig.legend, () => D`
4631
4627
  <eox-layercontrol-layer-legend
4632
4628
  .noShadow=${!0}
4633
4629
  .unstyled=${this.unstyled}
@@ -4679,7 +4675,7 @@ var Vc = class extends Ue {
4679
4675
  customElements.define("eox-layercontrol-layerconfig", Vc);
4680
4676
  //#endregion
4681
4677
  //#region src/components/layer-datetime.js
4682
- var Hc = class extends Ue {
4678
+ var Hc = class extends k {
4683
4679
  static properties = {
4684
4680
  unstyled: { type: Boolean },
4685
4681
  noShadow: { type: Boolean },
@@ -4703,12 +4699,12 @@ var Hc = class extends Ue {
4703
4699
  })), this.layerDatetime.currentStep = r, this.requestUpdate());
4704
4700
  }
4705
4701
  render() {
4706
- return customElements.get("eox-timecontrol") || console.error("Please import @eox/timecontrol in order to use layerDatetime"), O`
4702
+ return customElements.get("eox-timecontrol") || console.error("Please import @eox/timecontrol in order to use layerDatetime"), D`
4707
4703
  <style>
4708
4704
  ${this.#t}
4709
4705
  ${!this.unstyled && this.#n}
4710
4706
  </style>
4711
- ${A(this.layerDatetime, () => O`
4707
+ ${A(this.layerDatetime, () => D`
4712
4708
  <eox-timecontrol
4713
4709
  .initDate=${this.layerDatetime.currentStep ? [this.layerDatetime.currentStep] : void 0}
4714
4710
  .controlValues=${[{
@@ -4736,7 +4732,7 @@ var Hc = class extends Ue {
4736
4732
  customElements.define("eox-layercontrol-layer-datetime", Hc);
4737
4733
  //#endregion
4738
4734
  //#region src/components/tools-items.js
4739
- var Uc = class extends Ue {
4735
+ var Uc = class extends k {
4740
4736
  static properties = {
4741
4737
  actions: { attribute: !1 },
4742
4738
  selectedTab: { state: !0 },
@@ -4754,19 +4750,19 @@ var Uc = class extends Ue {
4754
4750
  #e = (e) => (this.selectedTab === e || this.toolsAsList) && "highlighted";
4755
4751
  render() {
4756
4752
  let e = this.tabs, t = this.actions, n = t.length + e.length > 1;
4757
- return O`
4753
+ return D`
4758
4754
  <style>
4759
4755
  ${this.#t}
4760
4756
  ${!this.unstyled && this.#n}
4761
4757
  </style>
4762
4758
  <div class="${this.toolsAsList ? "listed" : "tabbed"}">
4763
4759
  <!-- Navigation for tabs and actions -->
4764
- ${A(n, () => O`
4760
+ ${A(n, () => D`
4765
4761
  <nav>
4766
- ${A(!this.toolsAsList, () => O`
4762
+ ${A(!this.toolsAsList, () => D`
4767
4763
  <div>
4768
4764
  <!-- Labels for tabs -->
4769
- ${Ic(e, (e, t) => O`
4765
+ ${Ic(e, (e, t) => D`
4770
4766
  <label
4771
4767
  class=${this.#e(t)}
4772
4768
  @click=${() => this.selectedTab = t}
@@ -4778,7 +4774,7 @@ var Uc = class extends Ue {
4778
4774
  </div>
4779
4775
  <div>
4780
4776
  <!-- Icons for actions -->
4781
- ${Ic(t, (e) => O`
4777
+ ${Ic(t, (e) => D`
4782
4778
  <span>
4783
4779
  <!-- Customizable icon for each action -->
4784
4780
  <slot name=${`${e}-icon`}>${e}</slot>
@@ -4793,8 +4789,8 @@ var Uc = class extends Ue {
4793
4789
  style="overflow: hidden; white-space: normal"
4794
4790
  >
4795
4791
  <!-- Content for each tab -->
4796
- ${Ic(e, (t, n) => O`
4797
- ${A(this.toolsAsList, () => O`
4792
+ ${Ic(e, (t, n) => D`
4793
+ ${A(this.toolsAsList, () => D`
4798
4794
  <label>
4799
4795
  <!-- Customizable icon for each tab -->
4800
4796
  <slot name=${`${t}-icon`}>${t}</slot>
@@ -4805,7 +4801,7 @@ var Uc = class extends Ue {
4805
4801
  <!-- Content slot for each tab -->
4806
4802
  <slot name=${`${t}-content`}>${t}</slot>
4807
4803
  </div>
4808
- ${A(this.toolsAsList && n < e.length - 1, () => O`<hr class="small" />`)}
4804
+ ${A(this.toolsAsList && n < e.length - 1, () => D`<hr class="small" />`)}
4809
4805
  `)}
4810
4806
  </figure>
4811
4807
  </div>
@@ -4845,7 +4841,7 @@ var Uc = class extends Ue {
4845
4841
  customElements.define("eox-layercontrol-tools-items", Uc);
4846
4842
  //#endregion
4847
4843
  //#region src/components/layer-tools.js
4848
- var Wc = class extends Ue {
4844
+ var Wc = class extends k {
4849
4845
  static properties = {
4850
4846
  layer: { attribute: !1 },
4851
4847
  tools: { attribute: !1 },
@@ -4873,7 +4869,7 @@ var Wc = class extends Ue {
4873
4869
  constructor() {
4874
4870
  super(), this.layer = null, this.tools = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1, this.open = !1, this.toolsAutoExpand = !1, setTimeout(() => {
4875
4871
  let e = this.parentElement || this.getRootNode()?.host;
4876
- this.embedded = e?.tagName === "EOX-LAYERCONTROL-LAYER", (this.open === void 0 || this.open === !1 || this.open === null) && (this.open = this.toolsAutoExpand ? !!this.layer?.getVisible() : this.embedded === !1 ? !0 : !!this.layer?.get("layerControlToolsExpand"));
4872
+ this.embedded = e?.tagName === "EOX-LAYERCONTROL-LAYER", (this.open === void 0 || this.open === !1 || this.open === null) && (this.open = this.toolsAutoExpand ? !!this.layer?.getVisible() : this.embedded === !1 || !!this.layer?.get("layerControlToolsExpand"));
4877
4873
  }), this.customEditorInterfaces = [], this.colormapRegistry = null;
4878
4874
  }
4879
4875
  createRenderRoot() {
@@ -4894,7 +4890,7 @@ var Wc = class extends Ue {
4894
4890
  _removeButton = (e) => Oc(this, e);
4895
4891
  _sortButton = (e) => kc(this, e, this.unstyled);
4896
4892
  _button = (e, t) => Dc(e, t, this.unstyled);
4897
- _getDefaultTools = (e) => O`
4893
+ _getDefaultTools = (e) => D`
4898
4894
  <div slot="info-content">
4899
4895
  ${Fc(this.layer.get("description"))}
4900
4896
  </div>
@@ -4917,7 +4913,7 @@ var Wc = class extends Ue {
4917
4913
  </div>
4918
4914
  <div slot="config-content">
4919
4915
  <!-- Layer configuration -->
4920
- ${A(this.layer.get("layerConfig"), () => O`
4916
+ ${A(this.layer.get("layerConfig"), () => D`
4921
4917
  <eox-layercontrol-layerconfig
4922
4918
  slot="config-content"
4923
4919
  .layer=${this.layer}
@@ -4933,7 +4929,7 @@ var Wc = class extends Ue {
4933
4929
  </div>
4934
4930
  <div slot="datetime-content">
4935
4931
  <!-- Layer datetime -->
4936
- ${A(this.layer.get("layerDatetime"), () => O`
4932
+ ${A(this.layer.get("layerDatetime"), () => D`
4937
4933
  <eox-layercontrol-layer-datetime
4938
4934
  slot="datetime-content"
4939
4935
  .noShadow=${!0}
@@ -4947,7 +4943,7 @@ var Wc = class extends Ue {
4947
4943
  </div>
4948
4944
  <div slot="legend-content">
4949
4945
  <!-- Layer legend -->
4950
- ${A(this.layer.get("layerLegend"), () => O`
4946
+ ${A(this.layer.get("layerLegend"), () => D`
4951
4947
  <eox-layercontrol-layer-legend
4952
4948
  slot="legend-content"
4953
4949
  .noShadow=${!0}
@@ -4963,13 +4959,13 @@ var Wc = class extends Ue {
4963
4959
  `;
4964
4960
  render() {
4965
4961
  let e = Tc(this.tools, this.layer), t = Ec(this.tools, this.layer), n = e?.length, r = t?.length;
4966
- return O`
4962
+ return D`
4967
4963
  <style>
4968
4964
  ${this.#t}
4969
4965
  ${!this.unstyled && this.#n}
4970
4966
  </style>
4971
- ${A(n + r > 0, () => O`
4972
- ${A(!(n === 1 && r === 0), () => O`
4967
+ ${A(n + r > 0, () => D`
4968
+ ${A(n !== 1 || r !== 0, () => D`
4973
4969
  <details
4974
4970
  class="tools"
4975
4971
  .open=${Nc(this.open)}
@@ -5085,7 +5081,7 @@ var Gc = (e) => {
5085
5081
  bubbles: !0,
5086
5082
  detail: n
5087
5083
  })), t.requestUpdate();
5088
- }, qc = class extends Ue {
5084
+ }, qc = class extends k {
5089
5085
  static properties = {
5090
5086
  layer: { attribute: !1 },
5091
5087
  layerType: { attribute: !1 },
@@ -5141,7 +5137,7 @@ var Gc = (e) => {
5141
5137
  layer: this.layer,
5142
5138
  tools: this.tools,
5143
5139
  toolsAsList: this.toolsAsList
5144
- }), O`
5140
+ }), D`
5145
5141
  <style>
5146
5142
  ${this.#n}
5147
5143
  ${!this.unstyled && this.#r}
@@ -5151,13 +5147,13 @@ var Gc = (e) => {
5151
5147
  display: var(--layer-type-visibility);
5152
5148
  }
5153
5149
  </style>
5154
- ${A(this.layer, () => O`
5150
+ ${A(this.layer, () => D`
5155
5151
  <!-- Render the layer -->
5156
5152
  <nav
5157
5153
  class="layer ${r} ${t} ${n} responsive tiny-space"
5158
5154
  >
5159
5155
  ${A(!this.unstyled, () => {
5160
- if (this.#e("color")) return O`
5156
+ if (this.#e("color")) return D`
5161
5157
  <i class="small" style="color: ${this.#e("color")}">
5162
5158
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
5163
5159
  <title>square-rounded</title>
@@ -5168,8 +5164,8 @@ var Gc = (e) => {
5168
5164
  </i>
5169
5165
  `;
5170
5166
  switch (this.layerType) {
5171
- case "group": return O` <i class="small"> </i> `;
5172
- case "draw": return O`
5167
+ case "group": return D` <i class="small"> </i> `;
5168
+ case "draw": return D`
5173
5169
  <i class="small grey-text">
5174
5170
  <svg
5175
5171
  xmlns="http://www.w3.org/2000/svg"
@@ -5182,7 +5178,7 @@ var Gc = (e) => {
5182
5178
  </svg>
5183
5179
  </i>
5184
5180
  `;
5185
- case "vector": return O`
5181
+ case "vector": return D`
5186
5182
  <i class="small grey-text">
5187
5183
  <svg
5188
5184
  xmlns="http://www.w3.org/2000/svg"
@@ -5195,7 +5191,7 @@ var Gc = (e) => {
5195
5191
  </svg>
5196
5192
  </i>
5197
5193
  `;
5198
- case "raster": return O`
5194
+ case "raster": return D`
5199
5195
  <i class="small grey-text">
5200
5196
  <svg
5201
5197
  xmlns="http://www.w3.org/2000/svg"
@@ -5208,7 +5204,7 @@ var Gc = (e) => {
5208
5204
  </svg>
5209
5205
  </i>
5210
5206
  `;
5211
- default: return O` <i class="small grey-text"> </i> `;
5207
+ default: return D` <i class="small grey-text"> </i> `;
5212
5208
  }
5213
5209
  })}
5214
5210
 
@@ -5219,7 +5215,7 @@ var Gc = (e) => {
5219
5215
  >
5220
5216
  </div>
5221
5217
 
5222
- ${A(o && !this.toolsAutoExpand, () => O`
5218
+ ${A(o && !this.toolsAutoExpand, () => D`
5223
5219
  <button
5224
5220
  class="transparent square primary-text small action tools ${this.tools.length === 1 ? this.tools[0] : "dots"}"
5225
5221
  @click=${() => {
@@ -5243,7 +5239,7 @@ var Gc = (e) => {
5243
5239
  type=${i}
5244
5240
  .checked=${Nc(e)}
5245
5241
  @click=${this.#t}
5246
- disabled=${r || k}
5242
+ disabled=${r || O}
5247
5243
  />
5248
5244
  <span>
5249
5245
  <i>
@@ -5269,7 +5265,7 @@ var Gc = (e) => {
5269
5265
  `)}
5270
5266
 
5271
5267
  <!-- Render layer tools -->
5272
- ${A(o && !s, () => O`
5268
+ ${A(o && !s, () => D`
5273
5269
  <eox-layercontrol-layer-tools
5274
5270
  .noShadow=${!1}
5275
5271
  .layer=${this.layer}
@@ -5289,7 +5285,7 @@ var Gc = (e) => {
5289
5285
  customElements.define("eox-layercontrol-layer", qc);
5290
5286
  //#endregion
5291
5287
  //#region src/components/layer-group.js
5292
- var Jc = class extends Ue {
5288
+ var Jc = class extends k {
5293
5289
  static properties = {
5294
5290
  group: { attribute: !1 },
5295
5291
  idProperty: { attribute: "id-property" },
@@ -5331,20 +5327,20 @@ var Jc = class extends Ue {
5331
5327
  }
5332
5328
  render() {
5333
5329
  let e = !!this.group?.get("layerControlExpand"), t = jc(this.group.getLayers())?.length;
5334
- return O`
5330
+ return D`
5335
5331
  <style>
5336
5332
  ${this.#e}
5337
5333
  ${!this.unstyled && this.#t}
5338
5334
  </style>
5339
- ${A(this.group, () => O`
5335
+ ${A(this.group, () => D`
5340
5336
  <!-- Render the details element with the layer control -->
5341
5337
  <details
5342
5338
  class="max-width"
5343
- open=${e || k}
5339
+ open=${e || O}
5344
5340
  data-children-length=${t}
5345
5341
  >
5346
5342
  <summary class="square">
5347
- ${A(t > 0, () => O`
5343
+ ${A(t > 0, () => D`
5348
5344
  <!-- Open/close arrow -->
5349
5345
  <div class="arrow-container">
5350
5346
  <i class="small">
@@ -5444,7 +5440,7 @@ var Yc = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
5444
5440
  function T() {
5445
5441
  return s === void 0 ? o : C(m());
5446
5442
  }
5447
- function E() {
5443
+ function ee() {
5448
5444
  var e = m(), n = x(e);
5449
5445
  if (r = arguments, i = this, c = e, n) {
5450
5446
  if (s === void 0) return v(c);
@@ -5452,7 +5448,7 @@ var Yc = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
5452
5448
  }
5453
5449
  return s === void 0 && (s = setTimeout(S, t)), o;
5454
5450
  }
5455
- return E.cancel = w, E.flush = T, E;
5451
+ return ee.cancel = w, ee.flush = T, ee;
5456
5452
  }
5457
5453
  function g(e) {
5458
5454
  var t = typeof e;
@@ -5485,7 +5481,7 @@ var Yc = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
5485
5481
  let a = i.querySelector("ul");
5486
5482
  Mi(t, n, r, e), ji(a, t, n, e);
5487
5483
  }
5488
- }, Zc = class extends Ue {
5484
+ }, Zc = class extends k {
5489
5485
  static properties = {
5490
5486
  idProperty: { attribute: "id-property" },
5491
5487
  layers: { attribute: !1 },
@@ -5530,20 +5526,20 @@ var Yc = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
5530
5526
  }
5531
5527
  render() {
5532
5528
  let e = this.layers ? jc(this.layers).reverse() : [];
5533
- return O`
5529
+ return D`
5534
5530
  <style>
5535
5531
  ${this.#e}
5536
5532
  ${!this.unstyled && this.#t}
5537
5533
  </style>
5538
5534
  <ul class="list no-space">
5539
- ${A(this.layers, () => O`
5540
- ${it(e, (e) => e, (e) => O`
5535
+ ${A(this.layers, () => D`
5536
+ ${it(e, (e) => e, (e) => D`
5541
5537
  <li
5542
5538
  data-layer="${e.get(this.idProperty)}"
5543
5539
  data-type="${Ii(e, this.map)}"
5544
5540
  class="square"
5545
5541
  >
5546
- ${e.getLayers ? O`
5542
+ ${e.getLayers ? D`
5547
5543
  <eox-layercontrol-layer-group
5548
5544
  .noShadow=${this.noShadow}
5549
5545
  .group=${e}
@@ -5561,7 +5557,7 @@ var Yc = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
5561
5557
  @changed=${() => this.requestUpdate()}
5562
5558
  >
5563
5559
  </eox-layercontrol-layer-group>
5564
- ` : O`
5560
+ ` : D`
5565
5561
  <eox-layercontrol-layer
5566
5562
  .noShadow=${this.noShadow}
5567
5563
  .layer=${e}
@@ -5594,7 +5590,7 @@ customElements.define("eox-layercontrol-layer-list", Zc);
5594
5590
  var Qc = (e) => {
5595
5591
  let t = e.querySelector("select[name=optional]"), n = t ? t.value : null, r = Ni(e.layers.getArray(), "layerControlOptional", !0).find((t) => (t.get(e.idProperty) || t.ol_uid) === n);
5596
5592
  r?.set("layerControlOptional", !1), r?.setVisible(!0), e.dispatchEvent(new CustomEvent("changed", { bubbles: !0 })), e.renderRoot.parentNode.querySelectorAll("eox-layercontrol-layer-list").forEach((e) => e.requestUpdate()), e.requestUpdate();
5597
- }, $c = class extends Ue {
5593
+ }, $c = class extends k {
5598
5594
  static properties = {
5599
5595
  idProperty: { attribute: "id-property" },
5600
5596
  layers: { attribute: !1 },
@@ -5615,7 +5611,7 @@ var Qc = (e) => {
5615
5611
  Qc(this);
5616
5612
  }
5617
5613
  render() {
5618
- return O`
5614
+ return D`
5619
5615
  <nav class="bottom-padding large-padding">
5620
5616
  <div class="field suffix border small max">
5621
5617
  <!-- Dropdown select element -->
@@ -5631,7 +5627,7 @@ var Qc = (e) => {
5631
5627
  <!-- Mapping through filtered layers list to generate dropdown options -->
5632
5628
  ${Ni(this.layers.getArray(), "layerControlOptional", !0).map((e) => {
5633
5629
  let t = e.get(this.idProperty) || e.ol_uid, n = e.get(this.titleProperty), r = `layer ${e.get(this.idProperty)}`;
5634
- return O` <option value="${t}">${n || r}</option> `;
5630
+ return D` <option value="${t}">${n || r}</option> `;
5635
5631
  })}
5636
5632
  </select>
5637
5633
 
@@ -5689,7 +5685,7 @@ var il = (e, t) => {
5689
5685
  t.jsonInput = JSON.stringify(i);
5690
5686
  }, al = (e, t) => {
5691
5687
  t.open = e || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
5692
- }, ol = class extends Ue {
5688
+ }, ol = class extends k {
5693
5689
  static properties = {
5694
5690
  eoxMap: {
5695
5691
  attribute: !1,
@@ -5730,24 +5726,24 @@ var il = (e, t) => {
5730
5726
  }
5731
5727
  render() {
5732
5728
  let e = {
5733
- add: O`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
5729
+ add: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
5734
5730
  <title>layers-plus</title>
5735
5731
  <path
5736
5732
  d="M17,14H19V17H22V19H19V22H17V19H14V17H17V14M11,16L2,9L11,2L20,9L11,16M11,18.54L12,17.75V18C12,18.71 12.12,19.39 12.35,20L11,21.07L2,14.07L3.62,12.81L11,18.54Z"
5737
5733
  />
5738
5734
  </svg>`,
5739
- plus: O`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
5735
+ plus: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
5740
5736
  <title>plus</title>
5741
5737
  <path d="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z" />
5742
5738
  </svg>`,
5743
- search: O`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
5739
+ search: D`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
5744
5740
  <title>magnify</title>
5745
5741
  <path
5746
5742
  d="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"
5747
5743
  />
5748
5744
  </svg>`
5749
- }, t = this.open ? "open" : "close", n = this.open === "url", r = this.open === "json", i = !_n(this.urlInput) || this.searchLoad ? !0 : k;
5750
- return O`
5745
+ }, t = this.open ? "open" : "close", n = this.open === "url", r = this.open === "json", i = !_n(this.urlInput) || this.searchLoad ? !0 : O;
5746
+ return D`
5751
5747
  <style>
5752
5748
  ${this.#o}
5753
5749
  </style>
@@ -5778,11 +5774,11 @@ var il = (e, t) => {
5778
5774
  class="add-icon transparent square primary-text small"
5779
5775
  @click=${() => this.#a(this.open ? null : "url")}
5780
5776
  >
5781
- ${this.unstyled ? "Add Layer" : O`<i class="small primary-text">${e.add}</i>`}
5777
+ ${this.unstyled ? "Add Layer" : D`<i class="small primary-text">${e.add}</i>`}
5782
5778
  </button>
5783
5779
  </nav>
5784
5780
  <div class="eox-add ${t}" style="padding: 15px 0">
5785
- ${n ? O`
5781
+ ${n ? D`
5786
5782
  <nav>
5787
5783
  <!-- Input field for URL -->
5788
5784
  <div class="eox-add-layer-col field border small responsive">
@@ -5800,13 +5796,13 @@ var il = (e, t) => {
5800
5796
  disabled=${i}
5801
5797
  @click=${this.#t}
5802
5798
  >
5803
- ${this.unstyled ? "Search" : O`<i class="small">${e.search}</i>`}
5799
+ ${this.unstyled ? "Search" : D`<i class="small">${e.search}</i>`}
5804
5800
  </button>
5805
5801
  </nav>
5806
5802
 
5807
5803
  <!-- Display layers for WMS capabilities -->
5808
- ${this.wmsCapabilities ? O`<ul class="search-lists">
5809
- ${this.wmsCapabilities.Capability.Layer.Layer.map((e) => O`
5804
+ ${this.wmsCapabilities ? D`<ul class="search-lists">
5805
+ ${this.wmsCapabilities.Capability.Layer.Layer.map((e) => D`
5810
5806
  <li class="search-list">
5811
5807
  ${e.Name}
5812
5808
  <!-- Button to add layer -->
@@ -5818,8 +5814,8 @@ var il = (e, t) => {
5818
5814
  </button>
5819
5815
  </li>
5820
5816
  `)}
5821
- </ul>` : k}
5822
- ` : O`
5817
+ </ul>` : O}
5818
+ ` : D`
5823
5819
  <!-- Textarea for JSON input -->
5824
5820
  <div class="field small border no-margin">
5825
5821
  <textarea
@@ -5835,10 +5831,10 @@ var il = (e, t) => {
5835
5831
  <button
5836
5832
  class="add-layer-icon json-add-layer small square small-margin"
5837
5833
  style="position: absolute; bottom: 15px; right: 0; z-index: 1;"
5838
- disabled=${yn(this.jsonInput) ? k : !0}
5834
+ disabled=${!yn(this.jsonInput) || O}
5839
5835
  @click=${this.#r}
5840
5836
  >
5841
- ${this.unstyled ? "Add JSON" : O`<i class="small">${e.plus}</i>`}
5837
+ ${this.unstyled ? "Add JSON" : D`<i class="small">${e.plus}</i>`}
5842
5838
  </button>
5843
5839
  `}
5844
5840
  </div>
@@ -5912,7 +5908,7 @@ var sl = (e, t) => {
5912
5908
  //#endregion
5913
5909
  //#region src/main.js
5914
5910
  cl();
5915
- var dl = class extends Ue {
5911
+ var dl = class extends k {
5916
5912
  static properties = {
5917
5913
  for: { type: String },
5918
5914
  idProperty: { attribute: "id-property" },
@@ -5982,7 +5978,7 @@ var dl = class extends Ue {
5982
5978
  }
5983
5979
  render() {
5984
5980
  let e = this.map?.getLayers().getArray(), t = e && Ni(e, "layerControlOptional", !0)?.length > 0;
5985
- return O`
5981
+ return D`
5986
5982
  <style>
5987
5983
  ${!this.unstyled && this.#r}
5988
5984
  ${this.styleOverride}
@@ -5995,7 +5991,7 @@ var dl = class extends Ue {
5995
5991
  </span>
5996
5992
 
5997
5993
  <!-- Conditional rendering of add layers component -->
5998
- ${A(this.addExternalLayers && this.#e?.addOrUpdateLayer, () => O`
5994
+ ${A(this.addExternalLayers && this.#e?.addOrUpdateLayer, () => D`
5999
5995
  <eox-layercontrol-add-layers
6000
5996
  .noShadow=${!0}
6001
5997
  .eoxMap=${this.#e}
@@ -6004,7 +6000,7 @@ var dl = class extends Ue {
6004
6000
  `)}
6005
6001
 
6006
6002
  <!-- Conditional rendering of layer list component -->
6007
- ${A(this.map, () => O`
6003
+ ${A(this.map, () => D`
6008
6004
  <eox-layercontrol-layer-list
6009
6005
  .noShadow=${!0}
6010
6006
  class="layers"
@@ -6027,7 +6023,7 @@ var dl = class extends Ue {
6027
6023
  `)}
6028
6024
 
6029
6025
  <!-- Conditional rendering of optional list component -->
6030
- ${A(t, () => O`
6026
+ ${A(t, () => D`
6031
6027
  <eox-layercontrol-optional-list
6032
6028
  .noShadow=${!0}
6033
6029
  .idProperty=${this.idProperty}