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