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