@eox/layercontrol 0.17.2 → 0.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eox-layercontrol.js +1072 -1075
- package/dist/eox-layercontrol.umd.cjs +62 -47
- package/package.json +1 -1
package/dist/eox-layercontrol.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var Do = Object.defineProperty;
|
|
2
|
-
var No = (
|
|
3
|
-
var H = (
|
|
4
|
-
if (!t.has(
|
|
5
|
-
throw TypeError("Cannot " +
|
|
2
|
+
var No = (n, t, e) => t in n ? Do(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
|
+
var H = (n, t, e) => (No(n, typeof t != "symbol" ? t + "" : t, e), e), mn = (n, t, e) => {
|
|
4
|
+
if (!t.has(n))
|
|
5
|
+
throw TypeError("Cannot " + e);
|
|
6
6
|
};
|
|
7
|
-
var R = (
|
|
8
|
-
if (t.has(
|
|
7
|
+
var R = (n, t, e) => (mn(n, t, "read from private field"), e ? e.call(n) : t.get(n)), $ = (n, t, e) => {
|
|
8
|
+
if (t.has(n))
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
|
-
t instanceof WeakSet ? t.add(
|
|
11
|
-
}, Jt = (
|
|
12
|
-
var
|
|
10
|
+
t instanceof WeakSet ? t.add(n) : t.set(n, e);
|
|
11
|
+
}, Jt = (n, t, e, i) => (mn(n, t, "write to private field"), i ? i.call(n, e) : t.set(n, e), e);
|
|
12
|
+
var k = (n, t, e) => (mn(n, t, "access private method"), e);
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2019 Google LLC
|
|
@@ -17,17 +17,17 @@ var U = (e, t, n) => (mn(e, t, "access private method"), n);
|
|
|
17
17
|
*/
|
|
18
18
|
const Te = globalThis, Fn = Te.ShadowRoot && (Te.ShadyCSS === void 0 || Te.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, _i = Symbol(), ti = /* @__PURE__ */ new WeakMap();
|
|
19
19
|
let Mo = class {
|
|
20
|
-
constructor(t,
|
|
20
|
+
constructor(t, e, i) {
|
|
21
21
|
if (this._$cssResult$ = !0, i !== _i)
|
|
22
22
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
23
|
-
this.cssText = t, this.t =
|
|
23
|
+
this.cssText = t, this.t = e;
|
|
24
24
|
}
|
|
25
25
|
get styleSheet() {
|
|
26
26
|
let t = this.o;
|
|
27
|
-
const
|
|
27
|
+
const e = this.t;
|
|
28
28
|
if (Fn && t === void 0) {
|
|
29
|
-
const i =
|
|
30
|
-
i && (t = ti.get(
|
|
29
|
+
const i = e !== void 0 && e.length === 1;
|
|
30
|
+
i && (t = ti.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && ti.set(e, t));
|
|
31
31
|
}
|
|
32
32
|
return t;
|
|
33
33
|
}
|
|
@@ -35,54 +35,54 @@ let Mo = class {
|
|
|
35
35
|
return this.cssText;
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
const Io = (
|
|
38
|
+
const Io = (n) => new Mo(typeof n == "string" ? n : n + "", void 0, _i), Ho = (n, t) => {
|
|
39
39
|
if (Fn)
|
|
40
|
-
|
|
40
|
+
n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
41
41
|
else
|
|
42
|
-
for (const
|
|
42
|
+
for (const e of t) {
|
|
43
43
|
const i = document.createElement("style"), o = Te.litNonce;
|
|
44
|
-
o !== void 0 && i.setAttribute("nonce", o), i.textContent =
|
|
44
|
+
o !== void 0 && i.setAttribute("nonce", o), i.textContent = e.cssText, n.appendChild(i);
|
|
45
45
|
}
|
|
46
|
-
}, ei = Fn ? (
|
|
47
|
-
let
|
|
46
|
+
}, ei = Fn ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
|
|
47
|
+
let e = "";
|
|
48
48
|
for (const i of t.cssRules)
|
|
49
|
-
|
|
50
|
-
return Io(
|
|
51
|
-
})(
|
|
49
|
+
e += i.cssText;
|
|
50
|
+
return Io(e);
|
|
51
|
+
})(n) : n;
|
|
52
52
|
/**
|
|
53
53
|
* @license
|
|
54
54
|
* Copyright 2017 Google LLC
|
|
55
55
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
56
56
|
*/
|
|
57
|
-
const { is: Bo, defineProperty: Vo, getOwnPropertyDescriptor: Lo, getOwnPropertyNames:
|
|
57
|
+
const { is: Bo, defineProperty: Vo, getOwnPropertyDescriptor: Lo, getOwnPropertyNames: ko, getOwnPropertySymbols: Uo, getPrototypeOf: Fo } = Object, $t = globalThis, ni = $t.trustedTypes, jo = ni ? ni.emptyScript : "", yn = $t.reactiveElementPolyfillSupport, ie = (n, t) => n, Mn = { toAttribute(n, t) {
|
|
58
58
|
switch (t) {
|
|
59
59
|
case Boolean:
|
|
60
|
-
|
|
60
|
+
n = n ? jo : null;
|
|
61
61
|
break;
|
|
62
62
|
case Object:
|
|
63
63
|
case Array:
|
|
64
|
-
|
|
64
|
+
n = n == null ? n : JSON.stringify(n);
|
|
65
65
|
}
|
|
66
|
-
return
|
|
67
|
-
}, fromAttribute(
|
|
68
|
-
let
|
|
66
|
+
return n;
|
|
67
|
+
}, fromAttribute(n, t) {
|
|
68
|
+
let e = n;
|
|
69
69
|
switch (t) {
|
|
70
70
|
case Boolean:
|
|
71
|
-
|
|
71
|
+
e = n !== null;
|
|
72
72
|
break;
|
|
73
73
|
case Number:
|
|
74
|
-
|
|
74
|
+
e = n === null ? null : Number(n);
|
|
75
75
|
break;
|
|
76
76
|
case Object:
|
|
77
77
|
case Array:
|
|
78
78
|
try {
|
|
79
|
-
|
|
79
|
+
e = JSON.parse(n);
|
|
80
80
|
} catch {
|
|
81
|
-
|
|
81
|
+
e = null;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
return
|
|
85
|
-
} }, Ai = (
|
|
84
|
+
return e;
|
|
85
|
+
} }, Ai = (n, t) => !Bo(n, t), ii = { attribute: !0, type: String, converter: Mn, reflect: !1, hasChanged: Ai };
|
|
86
86
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), $t.litPropertyMetadata ?? ($t.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
87
87
|
class Bt extends HTMLElement {
|
|
88
88
|
static addInitializer(t) {
|
|
@@ -91,17 +91,17 @@ class Bt extends HTMLElement {
|
|
|
91
91
|
static get observedAttributes() {
|
|
92
92
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
93
93
|
}
|
|
94
|
-
static createProperty(t,
|
|
95
|
-
if (
|
|
96
|
-
const i = Symbol(), o = this.getPropertyDescriptor(t, i,
|
|
94
|
+
static createProperty(t, e = ii) {
|
|
95
|
+
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
96
|
+
const i = Symbol(), o = this.getPropertyDescriptor(t, i, e);
|
|
97
97
|
o !== void 0 && Vo(this.prototype, t, o);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
static getPropertyDescriptor(t,
|
|
100
|
+
static getPropertyDescriptor(t, e, i) {
|
|
101
101
|
const { get: o, set: r } = Lo(this.prototype, t) ?? { get() {
|
|
102
|
-
return this[
|
|
102
|
+
return this[e];
|
|
103
103
|
}, set(s) {
|
|
104
|
-
this[
|
|
104
|
+
this[e] = s;
|
|
105
105
|
} };
|
|
106
106
|
return { get() {
|
|
107
107
|
return o == null ? void 0 : o.call(this);
|
|
@@ -123,36 +123,36 @@ class Bt extends HTMLElement {
|
|
|
123
123
|
if (this.hasOwnProperty(ie("finalized")))
|
|
124
124
|
return;
|
|
125
125
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ie("properties"))) {
|
|
126
|
-
const
|
|
126
|
+
const e = this.properties, i = [...ko(e), ...Uo(e)];
|
|
127
127
|
for (const o of i)
|
|
128
|
-
this.createProperty(o,
|
|
128
|
+
this.createProperty(o, e[o]);
|
|
129
129
|
}
|
|
130
130
|
const t = this[Symbol.metadata];
|
|
131
131
|
if (t !== null) {
|
|
132
|
-
const
|
|
133
|
-
if (
|
|
134
|
-
for (const [i, o] of
|
|
132
|
+
const e = litPropertyMetadata.get(t);
|
|
133
|
+
if (e !== void 0)
|
|
134
|
+
for (const [i, o] of e)
|
|
135
135
|
this.elementProperties.set(i, o);
|
|
136
136
|
}
|
|
137
137
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
138
|
-
for (const [
|
|
139
|
-
const o = this._$Eu(
|
|
140
|
-
o !== void 0 && this._$Eh.set(o,
|
|
138
|
+
for (const [e, i] of this.elementProperties) {
|
|
139
|
+
const o = this._$Eu(e, i);
|
|
140
|
+
o !== void 0 && this._$Eh.set(o, e);
|
|
141
141
|
}
|
|
142
142
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
143
143
|
}
|
|
144
144
|
static finalizeStyles(t) {
|
|
145
|
-
const
|
|
145
|
+
const e = [];
|
|
146
146
|
if (Array.isArray(t)) {
|
|
147
147
|
const i = new Set(t.flat(1 / 0).reverse());
|
|
148
148
|
for (const o of i)
|
|
149
|
-
|
|
149
|
+
e.unshift(ei(o));
|
|
150
150
|
} else
|
|
151
|
-
t !== void 0 &&
|
|
152
|
-
return
|
|
151
|
+
t !== void 0 && e.push(ei(t));
|
|
152
|
+
return e;
|
|
153
153
|
}
|
|
154
|
-
static _$Eu(t,
|
|
155
|
-
const i =
|
|
154
|
+
static _$Eu(t, e) {
|
|
155
|
+
const i = e.attribute;
|
|
156
156
|
return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
157
157
|
}
|
|
158
158
|
constructor() {
|
|
@@ -160,19 +160,19 @@ class Bt extends HTMLElement {
|
|
|
160
160
|
}
|
|
161
161
|
_$Ev() {
|
|
162
162
|
var t;
|
|
163
|
-
this._$ES = new Promise((
|
|
163
|
+
this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
|
|
164
164
|
}
|
|
165
165
|
addController(t) {
|
|
166
|
-
var
|
|
167
|
-
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((
|
|
166
|
+
var e;
|
|
167
|
+
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
|
|
168
168
|
}
|
|
169
169
|
removeController(t) {
|
|
170
|
-
var
|
|
171
|
-
(
|
|
170
|
+
var e;
|
|
171
|
+
(e = this._$EO) == null || e.delete(t);
|
|
172
172
|
}
|
|
173
173
|
_$E_() {
|
|
174
|
-
const t = /* @__PURE__ */ new Map(),
|
|
175
|
-
for (const i of
|
|
174
|
+
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
|
175
|
+
for (const i of e.keys())
|
|
176
176
|
this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
|
177
177
|
t.size > 0 && (this._$Ep = t);
|
|
178
178
|
}
|
|
@@ -182,56 +182,56 @@ class Bt extends HTMLElement {
|
|
|
182
182
|
}
|
|
183
183
|
connectedCallback() {
|
|
184
184
|
var t;
|
|
185
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((
|
|
185
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
|
186
186
|
var i;
|
|
187
|
-
return (i =
|
|
187
|
+
return (i = e.hostConnected) == null ? void 0 : i.call(e);
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
enableUpdating(t) {
|
|
191
191
|
}
|
|
192
192
|
disconnectedCallback() {
|
|
193
193
|
var t;
|
|
194
|
-
(t = this._$EO) == null || t.forEach((
|
|
194
|
+
(t = this._$EO) == null || t.forEach((e) => {
|
|
195
195
|
var i;
|
|
196
|
-
return (i =
|
|
196
|
+
return (i = e.hostDisconnected) == null ? void 0 : i.call(e);
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
|
-
attributeChangedCallback(t,
|
|
199
|
+
attributeChangedCallback(t, e, i) {
|
|
200
200
|
this._$AK(t, i);
|
|
201
201
|
}
|
|
202
|
-
_$EC(t,
|
|
202
|
+
_$EC(t, e) {
|
|
203
203
|
var r;
|
|
204
204
|
const i = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, i);
|
|
205
205
|
if (o !== void 0 && i.reflect === !0) {
|
|
206
|
-
const s = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : Mn).toAttribute(
|
|
206
|
+
const s = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : Mn).toAttribute(e, i.type);
|
|
207
207
|
this._$Em = t, s == null ? this.removeAttribute(o) : this.setAttribute(o, s), this._$Em = null;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
_$AK(t,
|
|
210
|
+
_$AK(t, e) {
|
|
211
211
|
var r;
|
|
212
212
|
const i = this.constructor, o = i._$Eh.get(t);
|
|
213
213
|
if (o !== void 0 && this._$Em !== o) {
|
|
214
214
|
const s = i.getPropertyOptions(o), a = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((r = s.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? s.converter : Mn;
|
|
215
|
-
this._$Em = o, this[o] = a.fromAttribute(
|
|
215
|
+
this._$Em = o, this[o] = a.fromAttribute(e, s.type), this._$Em = null;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
requestUpdate(t,
|
|
218
|
+
requestUpdate(t, e, i) {
|
|
219
219
|
if (t !== void 0) {
|
|
220
|
-
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Ai)(this[t],
|
|
220
|
+
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Ai)(this[t], e))
|
|
221
221
|
return;
|
|
222
|
-
this.P(t,
|
|
222
|
+
this.P(t, e, i);
|
|
223
223
|
}
|
|
224
224
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
225
225
|
}
|
|
226
|
-
P(t,
|
|
227
|
-
this._$AL.has(t) || this._$AL.set(t,
|
|
226
|
+
P(t, e, i) {
|
|
227
|
+
this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
|
|
228
228
|
}
|
|
229
229
|
async _$ET() {
|
|
230
230
|
this.isUpdatePending = !0;
|
|
231
231
|
try {
|
|
232
232
|
await this._$ES;
|
|
233
|
-
} catch (
|
|
234
|
-
Promise.reject(
|
|
233
|
+
} catch (e) {
|
|
234
|
+
Promise.reject(e);
|
|
235
235
|
}
|
|
236
236
|
const t = this.scheduleUpdate();
|
|
237
237
|
return t != null && await t, !this.isUpdatePending;
|
|
@@ -255,22 +255,22 @@ class Bt extends HTMLElement {
|
|
|
255
255
|
s.wrapped !== !0 || this._$AL.has(r) || this[r] === void 0 || this.P(r, this[r], s);
|
|
256
256
|
}
|
|
257
257
|
let t = !1;
|
|
258
|
-
const
|
|
258
|
+
const e = this._$AL;
|
|
259
259
|
try {
|
|
260
|
-
t = this.shouldUpdate(
|
|
260
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((o) => {
|
|
261
261
|
var r;
|
|
262
262
|
return (r = o.hostUpdate) == null ? void 0 : r.call(o);
|
|
263
|
-
}), this.update(
|
|
263
|
+
}), this.update(e)) : this._$EU();
|
|
264
264
|
} catch (o) {
|
|
265
265
|
throw t = !1, this._$EU(), o;
|
|
266
266
|
}
|
|
267
|
-
t && this._$AE(
|
|
267
|
+
t && this._$AE(e);
|
|
268
268
|
}
|
|
269
269
|
willUpdate(t) {
|
|
270
270
|
}
|
|
271
271
|
_$AE(t) {
|
|
272
|
-
var
|
|
273
|
-
(
|
|
272
|
+
var e;
|
|
273
|
+
(e = this._$EO) == null || e.forEach((i) => {
|
|
274
274
|
var o;
|
|
275
275
|
return (o = i.hostUpdated) == null ? void 0 : o.call(i);
|
|
276
276
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
@@ -288,7 +288,7 @@ class Bt extends HTMLElement {
|
|
|
288
288
|
return !0;
|
|
289
289
|
}
|
|
290
290
|
update(t) {
|
|
291
|
-
this._$Ej && (this._$Ej = this._$Ej.forEach((
|
|
291
|
+
this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
|
|
292
292
|
}
|
|
293
293
|
updated(t) {
|
|
294
294
|
}
|
|
@@ -301,82 +301,82 @@ Bt.elementStyles = [], Bt.shadowRootOptions = { mode: "open" }, Bt[ie("elementPr
|
|
|
301
301
|
* Copyright 2017 Google LLC
|
|
302
302
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
303
303
|
*/
|
|
304
|
-
const oe = globalThis, Be = oe.trustedTypes, oi = Be ? Be.createPolicy("lit-html", { createHTML: (
|
|
304
|
+
const oe = globalThis, Be = oe.trustedTypes, oi = Be ? Be.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, jn = "$lit$", ht = `lit$${(Math.random() + "").slice(9)}$`, zn = "?" + ht, zo = `<${zn}>`, Nt = document, ce = () => Nt.createComment(""), de = (n) => n === null || typeof n != "object" && typeof n != "function", Ci = Array.isArray, Ti = (n) => Ci(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", bn = `[
|
|
305
305
|
\f\r]`, Kt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ri = /-->/g, si = />/g, At = RegExp(`>|${bn}(?:([^\\s"'>=/]+)(${bn}*=${bn}*(?:[^
|
|
306
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), ai = /'/g, li = /"/g, Pi = /^(?:script|style|textarea|title)$/i, Zo = (
|
|
307
|
-
function Oi(
|
|
308
|
-
if (!Array.isArray(
|
|
306
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ai = /'/g, li = /"/g, Pi = /^(?:script|style|textarea|title)$/i, Zo = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), x = Zo(1), it = Symbol.for("lit-noChange"), T = Symbol.for("lit-nothing"), ui = /* @__PURE__ */ new WeakMap(), Rt = Nt.createTreeWalker(Nt, 129);
|
|
307
|
+
function Oi(n, t) {
|
|
308
|
+
if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
|
|
309
309
|
throw Error("invalid template strings array");
|
|
310
310
|
return oi !== void 0 ? oi.createHTML(t) : t;
|
|
311
311
|
}
|
|
312
|
-
const Ri = (
|
|
313
|
-
const
|
|
312
|
+
const Ri = (n, t) => {
|
|
313
|
+
const e = n.length - 1, i = [];
|
|
314
314
|
let o, r = t === 2 ? "<svg>" : "", s = Kt;
|
|
315
|
-
for (let a = 0; a <
|
|
316
|
-
const l =
|
|
317
|
-
let u,
|
|
318
|
-
for (; p < l.length && (s.lastIndex = p,
|
|
319
|
-
p = s.lastIndex, s === Kt ?
|
|
320
|
-
const f = s === At &&
|
|
321
|
-
r += s === Kt ? l + zo :
|
|
322
|
-
}
|
|
323
|
-
return [Oi(
|
|
315
|
+
for (let a = 0; a < e; a++) {
|
|
316
|
+
const l = n[a];
|
|
317
|
+
let u, d, c = -1, p = 0;
|
|
318
|
+
for (; p < l.length && (s.lastIndex = p, d = s.exec(l), d !== null); )
|
|
319
|
+
p = s.lastIndex, s === Kt ? d[1] === "!--" ? s = ri : d[1] !== void 0 ? s = si : d[2] !== void 0 ? (Pi.test(d[2]) && (o = RegExp("</" + d[2], "g")), s = At) : d[3] !== void 0 && (s = At) : s === At ? d[0] === ">" ? (s = o ?? Kt, c = -1) : d[1] === void 0 ? c = -2 : (c = s.lastIndex - d[2].length, u = d[1], s = d[3] === void 0 ? At : d[3] === '"' ? li : ai) : s === li || s === ai ? s = At : s === ri || s === si ? s = Kt : (s = At, o = void 0);
|
|
320
|
+
const f = s === At && n[a + 1].startsWith("/>") ? " " : "";
|
|
321
|
+
r += s === Kt ? l + zo : c >= 0 ? (i.push(u), l.slice(0, c) + jn + l.slice(c) + ht + f) : l + ht + (c === -2 ? a : f);
|
|
322
|
+
}
|
|
323
|
+
return [Oi(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
|
324
324
|
};
|
|
325
325
|
class he {
|
|
326
|
-
constructor({ strings: t, _$litType$:
|
|
326
|
+
constructor({ strings: t, _$litType$: e }, i) {
|
|
327
327
|
let o;
|
|
328
328
|
this.parts = [];
|
|
329
329
|
let r = 0, s = 0;
|
|
330
|
-
const a = t.length - 1, l = this.parts, [u,
|
|
331
|
-
if (this.el = he.createElement(u, i), Rt.currentNode = this.el.content,
|
|
332
|
-
const
|
|
333
|
-
|
|
330
|
+
const a = t.length - 1, l = this.parts, [u, d] = Ri(t, e);
|
|
331
|
+
if (this.el = he.createElement(u, i), Rt.currentNode = this.el.content, e === 2) {
|
|
332
|
+
const c = this.el.content.firstChild;
|
|
333
|
+
c.replaceWith(...c.childNodes);
|
|
334
334
|
}
|
|
335
335
|
for (; (o = Rt.nextNode()) !== null && l.length < a; ) {
|
|
336
336
|
if (o.nodeType === 1) {
|
|
337
337
|
if (o.hasAttributes())
|
|
338
|
-
for (const
|
|
339
|
-
if (
|
|
340
|
-
const p =
|
|
341
|
-
l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Ni : g[1] === "?" ? Mi : g[1] === "@" ? Ii : ve }), o.removeAttribute(
|
|
338
|
+
for (const c of o.getAttributeNames())
|
|
339
|
+
if (c.endsWith(jn)) {
|
|
340
|
+
const p = d[s++], f = o.getAttribute(c).split(ht), g = /([.?@])?(.*)/.exec(p);
|
|
341
|
+
l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Ni : g[1] === "?" ? Mi : g[1] === "@" ? Ii : ve }), o.removeAttribute(c);
|
|
342
342
|
} else
|
|
343
|
-
|
|
343
|
+
c.startsWith(ht) && (l.push({ type: 6, index: r }), o.removeAttribute(c));
|
|
344
344
|
if (Pi.test(o.tagName)) {
|
|
345
|
-
const
|
|
345
|
+
const c = o.textContent.split(ht), p = c.length - 1;
|
|
346
346
|
if (p > 0) {
|
|
347
347
|
o.textContent = Be ? Be.emptyScript : "";
|
|
348
348
|
for (let f = 0; f < p; f++)
|
|
349
|
-
o.append(
|
|
350
|
-
o.append(
|
|
349
|
+
o.append(c[f], ce()), Rt.nextNode(), l.push({ type: 2, index: ++r });
|
|
350
|
+
o.append(c[p], ce());
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
} else if (o.nodeType === 8)
|
|
354
354
|
if (o.data === zn)
|
|
355
355
|
l.push({ type: 2, index: r });
|
|
356
356
|
else {
|
|
357
|
-
let
|
|
358
|
-
for (; (
|
|
359
|
-
l.push({ type: 7, index: r }),
|
|
357
|
+
let c = -1;
|
|
358
|
+
for (; (c = o.data.indexOf(ht, c + 1)) !== -1; )
|
|
359
|
+
l.push({ type: 7, index: r }), c += ht.length - 1;
|
|
360
360
|
}
|
|
361
361
|
r++;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
static createElement(t,
|
|
364
|
+
static createElement(t, e) {
|
|
365
365
|
const i = Nt.createElement("template");
|
|
366
366
|
return i.innerHTML = t, i;
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
function Mt(
|
|
369
|
+
function Mt(n, t, e = n, i) {
|
|
370
370
|
var s, a;
|
|
371
371
|
if (t === it)
|
|
372
372
|
return t;
|
|
373
|
-
let o = i !== void 0 ? (s =
|
|
374
|
-
const r =
|
|
375
|
-
return (o == null ? void 0 : o.constructor) !== r && ((a = o == null ? void 0 : o._$AO) == null || a.call(o, !1), r === void 0 ? o = void 0 : (o = new r(
|
|
373
|
+
let o = i !== void 0 ? (s = e._$Co) == null ? void 0 : s[i] : e._$Cl;
|
|
374
|
+
const r = de(t) ? void 0 : t._$litDirective$;
|
|
375
|
+
return (o == null ? void 0 : o.constructor) !== r && ((a = o == null ? void 0 : o._$AO) == null || a.call(o, !1), r === void 0 ? o = void 0 : (o = new r(n), o._$AT(n, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = o : e._$Cl = o), o !== void 0 && (t = Mt(n, o._$AS(n, t.values), o, i)), t;
|
|
376
376
|
}
|
|
377
377
|
class Di {
|
|
378
|
-
constructor(t,
|
|
379
|
-
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM =
|
|
378
|
+
constructor(t, e) {
|
|
379
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
380
380
|
}
|
|
381
381
|
get parentNode() {
|
|
382
382
|
return this._$AM.parentNode;
|
|
@@ -385,7 +385,7 @@ class Di {
|
|
|
385
385
|
return this._$AM._$AU;
|
|
386
386
|
}
|
|
387
387
|
u(t) {
|
|
388
|
-
const { el: { content:
|
|
388
|
+
const { el: { content: e }, parts: i } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? Nt).importNode(e, !0);
|
|
389
389
|
Rt.currentNode = o;
|
|
390
390
|
let r = Rt.nextNode(), s = 0, a = 0, l = i[0];
|
|
391
391
|
for (; l !== void 0; ) {
|
|
@@ -398,9 +398,9 @@ class Di {
|
|
|
398
398
|
return Rt.currentNode = Nt, o;
|
|
399
399
|
}
|
|
400
400
|
p(t) {
|
|
401
|
-
let
|
|
401
|
+
let e = 0;
|
|
402
402
|
for (const i of this._$AV)
|
|
403
|
-
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i,
|
|
403
|
+
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
class Xt {
|
|
@@ -408,13 +408,13 @@ class Xt {
|
|
|
408
408
|
var t;
|
|
409
409
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
410
410
|
}
|
|
411
|
-
constructor(t,
|
|
412
|
-
this.type = 2, this._$AH = T, this._$AN = void 0, this._$AA = t, this._$AB =
|
|
411
|
+
constructor(t, e, i, o) {
|
|
412
|
+
this.type = 2, this._$AH = T, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = o, this._$Cv = (o == null ? void 0 : o.isConnected) ?? !0;
|
|
413
413
|
}
|
|
414
414
|
get parentNode() {
|
|
415
415
|
let t = this._$AA.parentNode;
|
|
416
|
-
const
|
|
417
|
-
return
|
|
416
|
+
const e = this._$AM;
|
|
417
|
+
return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
|
|
418
418
|
}
|
|
419
419
|
get startNode() {
|
|
420
420
|
return this._$AA;
|
|
@@ -422,8 +422,8 @@ class Xt {
|
|
|
422
422
|
get endNode() {
|
|
423
423
|
return this._$AB;
|
|
424
424
|
}
|
|
425
|
-
_$AI(t,
|
|
426
|
-
t = Mt(this, t,
|
|
425
|
+
_$AI(t, e = this) {
|
|
426
|
+
t = Mt(this, t, e), de(t) ? t === T || t == null || t === "" ? (this._$AH !== T && this._$AR(), this._$AH = T) : t !== this._$AH && t !== it && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ti(t) ? this.k(t) : this._(t);
|
|
427
427
|
}
|
|
428
428
|
S(t) {
|
|
429
429
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -432,40 +432,40 @@ class Xt {
|
|
|
432
432
|
this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
|
|
433
433
|
}
|
|
434
434
|
_(t) {
|
|
435
|
-
this._$AH !== T &&
|
|
435
|
+
this._$AH !== T && de(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Nt.createTextNode(t)), this._$AH = t;
|
|
436
436
|
}
|
|
437
437
|
$(t) {
|
|
438
438
|
var r;
|
|
439
|
-
const { values:
|
|
439
|
+
const { values: e, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = he.createElement(Oi(i.h, i.h[0]), this.options)), i);
|
|
440
440
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === o)
|
|
441
|
-
this._$AH.p(
|
|
441
|
+
this._$AH.p(e);
|
|
442
442
|
else {
|
|
443
443
|
const s = new Di(o, this), a = s.u(this.options);
|
|
444
|
-
s.p(
|
|
444
|
+
s.p(e), this.T(a), this._$AH = s;
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
_$AC(t) {
|
|
448
|
-
let
|
|
449
|
-
return
|
|
448
|
+
let e = ui.get(t.strings);
|
|
449
|
+
return e === void 0 && ui.set(t.strings, e = new he(t)), e;
|
|
450
450
|
}
|
|
451
451
|
k(t) {
|
|
452
452
|
Ci(this._$AH) || (this._$AH = [], this._$AR());
|
|
453
|
-
const
|
|
453
|
+
const e = this._$AH;
|
|
454
454
|
let i, o = 0;
|
|
455
455
|
for (const r of t)
|
|
456
|
-
o ===
|
|
457
|
-
o <
|
|
456
|
+
o === e.length ? e.push(i = new Xt(this.S(ce()), this.S(ce()), this, this.options)) : i = e[o], i._$AI(r), o++;
|
|
457
|
+
o < e.length && (this._$AR(i && i._$AB.nextSibling, o), e.length = o);
|
|
458
458
|
}
|
|
459
|
-
_$AR(t = this._$AA.nextSibling,
|
|
459
|
+
_$AR(t = this._$AA.nextSibling, e) {
|
|
460
460
|
var i;
|
|
461
|
-
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0,
|
|
461
|
+
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
|
462
462
|
const o = t.nextSibling;
|
|
463
463
|
t.remove(), t = o;
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
466
|
setConnected(t) {
|
|
467
|
-
var
|
|
468
|
-
this._$AM === void 0 && (this._$Cv = t, (
|
|
467
|
+
var e;
|
|
468
|
+
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
471
|
class ve {
|
|
@@ -475,19 +475,19 @@ class ve {
|
|
|
475
475
|
get _$AU() {
|
|
476
476
|
return this._$AM._$AU;
|
|
477
477
|
}
|
|
478
|
-
constructor(t,
|
|
479
|
-
this.type = 1, this._$AH = T, this._$AN = void 0, this.element = t, this.name =
|
|
478
|
+
constructor(t, e, i, o, r) {
|
|
479
|
+
this.type = 1, this._$AH = T, this._$AN = void 0, this.element = t, this.name = e, this._$AM = o, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = T;
|
|
480
480
|
}
|
|
481
|
-
_$AI(t,
|
|
481
|
+
_$AI(t, e = this, i, o) {
|
|
482
482
|
const r = this.strings;
|
|
483
483
|
let s = !1;
|
|
484
484
|
if (r === void 0)
|
|
485
|
-
t = Mt(this, t,
|
|
485
|
+
t = Mt(this, t, e, 0), s = !de(t) || t !== this._$AH && t !== it, s && (this._$AH = t);
|
|
486
486
|
else {
|
|
487
487
|
const a = t;
|
|
488
488
|
let l, u;
|
|
489
489
|
for (t = r[0], l = 0; l < r.length - 1; l++)
|
|
490
|
-
u = Mt(this, a[i + l],
|
|
490
|
+
u = Mt(this, a[i + l], e, l), u === it && (u = this._$AH[l]), s || (s = !de(u) || u !== this._$AH[l]), u === T ? t = T : t !== T && (t += (u ?? "") + r[l + 1]), this._$AH[l] = u;
|
|
491
491
|
}
|
|
492
492
|
s && !o && this.j(t);
|
|
493
493
|
}
|
|
@@ -512,23 +512,23 @@ class Mi extends ve {
|
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
514
|
class Ii extends ve {
|
|
515
|
-
constructor(t,
|
|
516
|
-
super(t,
|
|
515
|
+
constructor(t, e, i, o, r) {
|
|
516
|
+
super(t, e, i, o, r), this.type = 5;
|
|
517
517
|
}
|
|
518
|
-
_$AI(t,
|
|
519
|
-
if ((t = Mt(this, t,
|
|
518
|
+
_$AI(t, e = this) {
|
|
519
|
+
if ((t = Mt(this, t, e, 0) ?? T) === it)
|
|
520
520
|
return;
|
|
521
521
|
const i = this._$AH, o = t === T && i !== T || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== T && (i === T || o);
|
|
522
522
|
o && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
523
523
|
}
|
|
524
524
|
handleEvent(t) {
|
|
525
|
-
var
|
|
526
|
-
typeof this._$AH == "function" ? this._$AH.call(((
|
|
525
|
+
var e;
|
|
526
|
+
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
class Hi {
|
|
530
|
-
constructor(t,
|
|
531
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM =
|
|
530
|
+
constructor(t, e, i) {
|
|
531
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
|
532
532
|
}
|
|
533
533
|
get _$AU() {
|
|
534
534
|
return this._$AM._$AU;
|
|
@@ -539,14 +539,14 @@ class Hi {
|
|
|
539
539
|
}
|
|
540
540
|
const Xo = { P: jn, A: ht, C: zn, M: 1, L: Ri, R: Di, D: Ti, V: Mt, I: Xt, H: ve, N: Mi, U: Ii, B: Ni, F: Hi }, vn = oe.litHtmlPolyfillSupport;
|
|
541
541
|
vn == null || vn(he, Xt), (oe.litHtmlVersions ?? (oe.litHtmlVersions = [])).push("3.1.2");
|
|
542
|
-
const Yo = (
|
|
543
|
-
const i = (
|
|
542
|
+
const Yo = (n, t, e) => {
|
|
543
|
+
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
544
544
|
let o = i._$litPart$;
|
|
545
545
|
if (o === void 0) {
|
|
546
|
-
const r = (
|
|
547
|
-
i._$litPart$ = o = new Xt(t.insertBefore(
|
|
546
|
+
const r = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
547
|
+
i._$litPart$ = o = new Xt(t.insertBefore(ce(), r), r, void 0, e ?? {});
|
|
548
548
|
}
|
|
549
|
-
return o._$AI(
|
|
549
|
+
return o._$AI(n), o;
|
|
550
550
|
};
|
|
551
551
|
/**
|
|
552
552
|
* @license
|
|
@@ -558,13 +558,13 @@ let et = class extends Bt {
|
|
|
558
558
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
559
559
|
}
|
|
560
560
|
createRenderRoot() {
|
|
561
|
-
var
|
|
561
|
+
var e;
|
|
562
562
|
const t = super.createRenderRoot();
|
|
563
|
-
return (
|
|
563
|
+
return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
|
|
564
564
|
}
|
|
565
565
|
update(t) {
|
|
566
|
-
const
|
|
567
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Yo(
|
|
566
|
+
const e = this.render();
|
|
567
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Yo(e, this.renderRoot, this.renderOptions);
|
|
568
568
|
}
|
|
569
569
|
connectedCallback() {
|
|
570
570
|
var t;
|
|
@@ -588,29 +588,29 @@ wn == null || wn({ LitElement: et });
|
|
|
588
588
|
* Copyright 2021 Google LLC
|
|
589
589
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
590
590
|
*/
|
|
591
|
-
function ot(
|
|
592
|
-
return
|
|
591
|
+
function ot(n, t, e) {
|
|
592
|
+
return n ? t(n) : e == null ? void 0 : e(n);
|
|
593
593
|
}
|
|
594
594
|
/**
|
|
595
595
|
* @license
|
|
596
596
|
* Copyright 2017 Google LLC
|
|
597
597
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
598
598
|
*/
|
|
599
|
-
const wt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Zn = (
|
|
599
|
+
const wt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Zn = (n) => (...t) => ({ _$litDirective$: n, values: t });
|
|
600
600
|
class Xn {
|
|
601
601
|
constructor(t) {
|
|
602
602
|
}
|
|
603
603
|
get _$AU() {
|
|
604
604
|
return this._$AM._$AU;
|
|
605
605
|
}
|
|
606
|
-
_$AT(t,
|
|
607
|
-
this._$Ct = t, this._$AM =
|
|
606
|
+
_$AT(t, e, i) {
|
|
607
|
+
this._$Ct = t, this._$AM = e, this._$Ci = i;
|
|
608
608
|
}
|
|
609
|
-
_$AS(t,
|
|
610
|
-
return this.update(t,
|
|
609
|
+
_$AS(t, e) {
|
|
610
|
+
return this.update(t, e);
|
|
611
611
|
}
|
|
612
|
-
update(t,
|
|
613
|
-
return this.render(...
|
|
612
|
+
update(t, e) {
|
|
613
|
+
return this.render(...e);
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
/**
|
|
@@ -618,33 +618,33 @@ class Xn {
|
|
|
618
618
|
* Copyright 2020 Google LLC
|
|
619
619
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
620
620
|
*/
|
|
621
|
-
const { I: qo } = Xo, Wo = (
|
|
621
|
+
const { I: qo } = Xo, Wo = (n) => n.strings === void 0, ci = () => document.createComment(""), Qt = (n, t, e) => {
|
|
622
622
|
var r;
|
|
623
|
-
const i =
|
|
624
|
-
if (
|
|
625
|
-
const s = i.insertBefore(
|
|
626
|
-
|
|
623
|
+
const i = n._$AA.parentNode, o = t === void 0 ? n._$AB : t._$AA;
|
|
624
|
+
if (e === void 0) {
|
|
625
|
+
const s = i.insertBefore(ci(), o), a = i.insertBefore(ci(), o);
|
|
626
|
+
e = new qo(s, a, n, n.options);
|
|
627
627
|
} else {
|
|
628
|
-
const s =
|
|
628
|
+
const s = e._$AB.nextSibling, a = e._$AM, l = a !== n;
|
|
629
629
|
if (l) {
|
|
630
630
|
let u;
|
|
631
|
-
(r =
|
|
631
|
+
(r = e._$AQ) == null || r.call(e, n), e._$AM = n, e._$AP !== void 0 && (u = n._$AU) !== a._$AU && e._$AP(u);
|
|
632
632
|
}
|
|
633
633
|
if (s !== o || l) {
|
|
634
|
-
let u =
|
|
634
|
+
let u = e._$AA;
|
|
635
635
|
for (; u !== s; ) {
|
|
636
|
-
const
|
|
637
|
-
i.insertBefore(u, o), u =
|
|
636
|
+
const d = u.nextSibling;
|
|
637
|
+
i.insertBefore(u, o), u = d;
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
|
-
return
|
|
642
|
-
}, Ct = (
|
|
641
|
+
return e;
|
|
642
|
+
}, Ct = (n, t, e = n) => (n._$AI(t, e), n), Go = {}, Bi = (n, t = Go) => n._$AH = t, Jo = (n) => n._$AH, En = (n) => {
|
|
643
643
|
var i;
|
|
644
|
-
(i =
|
|
645
|
-
let t =
|
|
646
|
-
const
|
|
647
|
-
for (; t !==
|
|
644
|
+
(i = n._$AP) == null || i.call(n, !1, !0);
|
|
645
|
+
let t = n._$AA;
|
|
646
|
+
const e = n._$AB.nextSibling;
|
|
647
|
+
for (; t !== e; ) {
|
|
648
648
|
const o = t.nextSibling;
|
|
649
649
|
t.remove(), t = o;
|
|
650
650
|
}
|
|
@@ -654,69 +654,69 @@ const { I: qo } = Xo, Wo = (e) => e.strings === void 0, di = () => document.crea
|
|
|
654
654
|
* Copyright 2017 Google LLC
|
|
655
655
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
656
656
|
*/
|
|
657
|
-
const
|
|
657
|
+
const di = (n, t, e) => {
|
|
658
658
|
const i = /* @__PURE__ */ new Map();
|
|
659
|
-
for (let o = t; o <=
|
|
660
|
-
i.set(
|
|
659
|
+
for (let o = t; o <= e; o++)
|
|
660
|
+
i.set(n[o], o);
|
|
661
661
|
return i;
|
|
662
662
|
}, Ko = Zn(class extends Xn {
|
|
663
|
-
constructor(
|
|
664
|
-
if (super(
|
|
663
|
+
constructor(n) {
|
|
664
|
+
if (super(n), n.type !== wt.CHILD)
|
|
665
665
|
throw Error("repeat() can only be used in text expressions");
|
|
666
666
|
}
|
|
667
|
-
dt(
|
|
667
|
+
dt(n, t, e) {
|
|
668
668
|
let i;
|
|
669
|
-
|
|
669
|
+
e === void 0 ? e = t : t !== void 0 && (i = t);
|
|
670
670
|
const o = [], r = [];
|
|
671
671
|
let s = 0;
|
|
672
|
-
for (const a of
|
|
673
|
-
o[s] = i ? i(a, s) : s, r[s] =
|
|
672
|
+
for (const a of n)
|
|
673
|
+
o[s] = i ? i(a, s) : s, r[s] = e(a, s), s++;
|
|
674
674
|
return { values: r, keys: o };
|
|
675
675
|
}
|
|
676
|
-
render(
|
|
677
|
-
return this.dt(
|
|
676
|
+
render(n, t, e) {
|
|
677
|
+
return this.dt(n, t, e).values;
|
|
678
678
|
}
|
|
679
|
-
update(
|
|
680
|
-
const o = Jo(
|
|
679
|
+
update(n, [t, e, i]) {
|
|
680
|
+
const o = Jo(n), { values: r, keys: s } = this.dt(t, e, i);
|
|
681
681
|
if (!Array.isArray(o))
|
|
682
682
|
return this.ut = s, r;
|
|
683
683
|
const a = this.ut ?? (this.ut = []), l = [];
|
|
684
|
-
let u,
|
|
685
|
-
for (;
|
|
686
|
-
if (o[
|
|
687
|
-
|
|
684
|
+
let u, d, c = 0, p = o.length - 1, f = 0, g = r.length - 1;
|
|
685
|
+
for (; c <= p && f <= g; )
|
|
686
|
+
if (o[c] === null)
|
|
687
|
+
c++;
|
|
688
688
|
else if (o[p] === null)
|
|
689
689
|
p--;
|
|
690
|
-
else if (a[
|
|
691
|
-
l[f] = Ct(o[
|
|
690
|
+
else if (a[c] === s[f])
|
|
691
|
+
l[f] = Ct(o[c], r[f]), c++, f++;
|
|
692
692
|
else if (a[p] === s[g])
|
|
693
693
|
l[g] = Ct(o[p], r[g]), p--, g--;
|
|
694
|
-
else if (a[
|
|
695
|
-
l[g] = Ct(o[
|
|
694
|
+
else if (a[c] === s[g])
|
|
695
|
+
l[g] = Ct(o[c], r[g]), Qt(n, l[g + 1], o[c]), c++, g--;
|
|
696
696
|
else if (a[p] === s[f])
|
|
697
|
-
l[f] = Ct(o[p], r[f]), Qt(
|
|
698
|
-
else if (u === void 0 && (u =
|
|
697
|
+
l[f] = Ct(o[p], r[f]), Qt(n, o[c], o[p]), p--, f++;
|
|
698
|
+
else if (u === void 0 && (u = di(s, f, g), d = di(a, c, p)), u.has(a[c]))
|
|
699
699
|
if (u.has(a[p])) {
|
|
700
|
-
const y =
|
|
700
|
+
const y = d.get(s[f]), P = y !== void 0 ? o[y] : null;
|
|
701
701
|
if (P === null) {
|
|
702
|
-
const L = Qt(
|
|
702
|
+
const L = Qt(n, o[c]);
|
|
703
703
|
Ct(L, r[f]), l[f] = L;
|
|
704
704
|
} else
|
|
705
|
-
l[f] = Ct(P, r[f]), Qt(
|
|
705
|
+
l[f] = Ct(P, r[f]), Qt(n, o[c], P), o[y] = null;
|
|
706
706
|
f++;
|
|
707
707
|
} else
|
|
708
708
|
En(o[p]), p--;
|
|
709
709
|
else
|
|
710
|
-
En(o[
|
|
710
|
+
En(o[c]), c++;
|
|
711
711
|
for (; f <= g; ) {
|
|
712
|
-
const y = Qt(
|
|
712
|
+
const y = Qt(n, l[g + 1]);
|
|
713
713
|
Ct(y, r[f]), l[f++] = y;
|
|
714
714
|
}
|
|
715
|
-
for (;
|
|
716
|
-
const y = o[
|
|
715
|
+
for (; c <= p; ) {
|
|
716
|
+
const y = o[c++];
|
|
717
717
|
y !== null && En(y);
|
|
718
718
|
}
|
|
719
|
-
return this.ut = s, Bi(
|
|
719
|
+
return this.ut = s, Bi(n, l), it;
|
|
720
720
|
}
|
|
721
721
|
});
|
|
722
722
|
/**
|
|
@@ -725,7 +725,7 @@ const ci = (e, t, n) => {
|
|
|
725
725
|
* @license BSD-2-Clause
|
|
726
726
|
* @preserve
|
|
727
727
|
*/
|
|
728
|
-
var E = (
|
|
728
|
+
var E = (n) => n !== void 0, Vi = (n, t, e) => t in n ? n[t] : n[t] = e;
|
|
729
729
|
const pe = {
|
|
730
730
|
ELEMENT: 1,
|
|
731
731
|
ATTRIBUTE: 2,
|
|
@@ -764,66 +764,66 @@ class Qo {
|
|
|
764
764
|
* @return {string} All text content.
|
|
765
765
|
* @api
|
|
766
766
|
*/
|
|
767
|
-
getAllTextContent(t,
|
|
768
|
-
return fn(t,
|
|
767
|
+
getAllTextContent(t, e) {
|
|
768
|
+
return fn(t, e).join("");
|
|
769
769
|
}
|
|
770
770
|
}
|
|
771
|
-
function fn(
|
|
772
|
-
return Li(
|
|
771
|
+
function fn(n, t) {
|
|
772
|
+
return Li(n, t, []).join("");
|
|
773
773
|
}
|
|
774
|
-
function Li(
|
|
775
|
-
if (
|
|
776
|
-
t ?
|
|
774
|
+
function Li(n, t, e) {
|
|
775
|
+
if (n.nodeType === pe.CDATA_SECTION || n.nodeType === pe.TEXT)
|
|
776
|
+
t ? e.push(String(n.nodeValue).replace(/(\r\n|\r|\n)/g, "")) : e.push(n.nodeValue);
|
|
777
777
|
else {
|
|
778
778
|
var i;
|
|
779
|
-
for (i =
|
|
780
|
-
Li(i, t,
|
|
779
|
+
for (i = n.firstChild; i; i = i.nextSibling)
|
|
780
|
+
Li(i, t, e);
|
|
781
781
|
}
|
|
782
|
-
return
|
|
782
|
+
return e;
|
|
783
783
|
}
|
|
784
|
-
function tr(
|
|
784
|
+
function tr(n, t, e, i) {
|
|
785
785
|
for (var o = er(t); o; o = nr(o)) {
|
|
786
|
-
var r = o.namespaceURI || null, s =
|
|
786
|
+
var r = o.namespaceURI || null, s = n[r];
|
|
787
787
|
if (E(s)) {
|
|
788
788
|
var a = s[o.localName];
|
|
789
|
-
E(a) && a.call(i, o,
|
|
789
|
+
E(a) && a.call(i, o, e);
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
|
-
function er(
|
|
794
|
-
let t =
|
|
793
|
+
function er(n) {
|
|
794
|
+
let t = n.firstElementChild || n.firstChild;
|
|
795
795
|
for (; t && t.nodeType !== pe.ELEMENT; )
|
|
796
796
|
t = t.nextSibling;
|
|
797
797
|
return t;
|
|
798
798
|
}
|
|
799
|
-
function nr(
|
|
800
|
-
let t =
|
|
799
|
+
function nr(n) {
|
|
800
|
+
let t = n.nextElementSibling || n.nextSibling;
|
|
801
801
|
for (; t && t.nodeType !== pe.ELEMENT; )
|
|
802
802
|
t = t.nextSibling;
|
|
803
803
|
return t;
|
|
804
804
|
}
|
|
805
|
-
function F(
|
|
805
|
+
function F(n, t, e) {
|
|
806
806
|
return (
|
|
807
807
|
/** @type {Object.<string, Object.<string, XMLParser.Parser>>} */
|
|
808
|
-
ir(
|
|
808
|
+
ir(n, t, e)
|
|
809
809
|
);
|
|
810
810
|
}
|
|
811
|
-
function ir(
|
|
812
|
-
var i = E(
|
|
813
|
-
for (o = 0, r =
|
|
814
|
-
i[
|
|
811
|
+
function ir(n, t, e) {
|
|
812
|
+
var i = E(e) ? e : {}, o, r;
|
|
813
|
+
for (o = 0, r = n.length; o < r; ++o)
|
|
814
|
+
i[n[o]] = t;
|
|
815
815
|
return i;
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function ki(n, t) {
|
|
818
818
|
return (
|
|
819
819
|
/**
|
|
820
820
|
* @param {Node} node Node.
|
|
821
821
|
* @param {Array.<*>} objectStack Object stack.
|
|
822
822
|
*/
|
|
823
|
-
function(
|
|
824
|
-
var o =
|
|
823
|
+
function(e, i) {
|
|
824
|
+
var o = n.call(
|
|
825
825
|
E(t) ? t : this,
|
|
826
|
-
|
|
826
|
+
e,
|
|
827
827
|
i
|
|
828
828
|
);
|
|
829
829
|
if (E(o)) {
|
|
@@ -833,18 +833,18 @@ function Ui(e, t) {
|
|
|
833
833
|
}
|
|
834
834
|
);
|
|
835
835
|
}
|
|
836
|
-
function V(
|
|
837
|
-
return i.push(
|
|
836
|
+
function V(n, t, e, i, o) {
|
|
837
|
+
return i.push(n), tr(t, e, i, o), i.pop();
|
|
838
838
|
}
|
|
839
|
-
function m(
|
|
839
|
+
function m(n, t, e) {
|
|
840
840
|
return (
|
|
841
841
|
/**
|
|
842
842
|
* @param {Node} node Node.
|
|
843
843
|
* @param {Array.<*>} objectStack Object stack.
|
|
844
844
|
*/
|
|
845
845
|
function(i, o) {
|
|
846
|
-
let r =
|
|
847
|
-
E(
|
|
846
|
+
let r = n.call(
|
|
847
|
+
E(e) ? e : this,
|
|
848
848
|
i,
|
|
849
849
|
o
|
|
850
850
|
);
|
|
@@ -858,15 +858,15 @@ function m(e, t, n) {
|
|
|
858
858
|
}
|
|
859
859
|
);
|
|
860
860
|
}
|
|
861
|
-
function G(
|
|
861
|
+
function G(n, t, e) {
|
|
862
862
|
return (
|
|
863
863
|
/**
|
|
864
864
|
* @param {Node} node Node.
|
|
865
865
|
* @param {Array.<*>} objectStack Object stack.
|
|
866
866
|
*/
|
|
867
867
|
function(i, o) {
|
|
868
|
-
var r =
|
|
869
|
-
E(
|
|
868
|
+
var r = n.call(
|
|
869
|
+
E(e) ? e : this,
|
|
870
870
|
i,
|
|
871
871
|
o
|
|
872
872
|
);
|
|
@@ -881,89 +881,89 @@ function G(e, t, n) {
|
|
|
881
881
|
);
|
|
882
882
|
}
|
|
883
883
|
const or = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
|
|
884
|
-
function rr(
|
|
885
|
-
return
|
|
884
|
+
function rr(n) {
|
|
885
|
+
return n.replace(or, "");
|
|
886
886
|
}
|
|
887
|
-
function Dt(
|
|
888
|
-
const t = /^\s*(true|1)|(false|0)\s*$/.exec(
|
|
887
|
+
function Dt(n) {
|
|
888
|
+
const t = /^\s*(true|1)|(false|0)\s*$/.exec(n);
|
|
889
889
|
if (t)
|
|
890
890
|
return E(t[1]) || !1;
|
|
891
891
|
}
|
|
892
|
-
function Lt(
|
|
893
|
-
return pt(fn(
|
|
892
|
+
function Lt(n) {
|
|
893
|
+
return pt(fn(n, !1));
|
|
894
894
|
}
|
|
895
|
-
function pt(
|
|
896
|
-
const t = /^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(
|
|
895
|
+
function pt(n) {
|
|
896
|
+
const t = /^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(n);
|
|
897
897
|
if (t)
|
|
898
898
|
return parseFloat(t[1]);
|
|
899
899
|
}
|
|
900
|
-
function xn(
|
|
901
|
-
return Ve(fn(
|
|
900
|
+
function xn(n) {
|
|
901
|
+
return Ve(fn(n, !1));
|
|
902
902
|
}
|
|
903
|
-
function Ve(
|
|
904
|
-
const t = /^\s*(\d+)\s*$/.exec(
|
|
903
|
+
function Ve(n) {
|
|
904
|
+
const t = /^\s*(\d+)\s*$/.exec(n);
|
|
905
905
|
if (t)
|
|
906
906
|
return parseInt(t[1], 10);
|
|
907
907
|
}
|
|
908
|
-
function _(
|
|
909
|
-
return rr(fn(
|
|
908
|
+
function _(n) {
|
|
909
|
+
return rr(fn(n, !1));
|
|
910
910
|
}
|
|
911
911
|
const sr = "http://www.w3.org/1999/xlink";
|
|
912
|
-
function Yn(
|
|
913
|
-
return
|
|
912
|
+
function Yn(n) {
|
|
913
|
+
return n.getAttributeNS(sr, "href");
|
|
914
914
|
}
|
|
915
|
-
function ar(
|
|
916
|
-
return V({}, Mr,
|
|
915
|
+
function ar(n, t) {
|
|
916
|
+
return V({}, Mr, n, t);
|
|
917
917
|
}
|
|
918
|
-
function
|
|
918
|
+
function Ui(n) {
|
|
919
919
|
return [
|
|
920
|
-
pt(
|
|
921
|
-
pt(
|
|
922
|
-
pt(
|
|
923
|
-
pt(
|
|
920
|
+
pt(n.getAttribute("minx")),
|
|
921
|
+
pt(n.getAttribute("miny")),
|
|
922
|
+
pt(n.getAttribute("maxx")),
|
|
923
|
+
pt(n.getAttribute("maxy"))
|
|
924
924
|
];
|
|
925
925
|
}
|
|
926
|
-
function lr(
|
|
927
|
-
const
|
|
928
|
-
pt(
|
|
929
|
-
pt(
|
|
926
|
+
function lr(n, t) {
|
|
927
|
+
const e = Ui(n), i = [
|
|
928
|
+
pt(n.getAttribute("resx")),
|
|
929
|
+
pt(n.getAttribute("resy"))
|
|
930
930
|
];
|
|
931
931
|
return {
|
|
932
|
-
crs:
|
|
933
|
-
extent:
|
|
932
|
+
crs: n.getAttribute("CRS") || n.getAttribute("SRS"),
|
|
933
|
+
extent: e,
|
|
934
934
|
res: i
|
|
935
935
|
};
|
|
936
936
|
}
|
|
937
|
-
function ur(
|
|
938
|
-
const
|
|
939
|
-
if (!(!E(
|
|
940
|
-
return
|
|
937
|
+
function ur(n, t) {
|
|
938
|
+
const e = Ui(n);
|
|
939
|
+
if (!(!E(e[0]) || !E(e[1]) || !E(e[2]) || !E(e[3])))
|
|
940
|
+
return e;
|
|
941
941
|
}
|
|
942
|
-
function
|
|
943
|
-
const
|
|
944
|
-
return { min:
|
|
942
|
+
function cr(n, t) {
|
|
943
|
+
const e = parseFloat(n.getAttribute("min")), i = parseFloat(n.getAttribute("max"));
|
|
944
|
+
return { min: e, max: i };
|
|
945
945
|
}
|
|
946
|
-
function
|
|
947
|
-
const
|
|
946
|
+
function dr(n, t) {
|
|
947
|
+
const e = V(
|
|
948
948
|
{},
|
|
949
949
|
Ir,
|
|
950
|
-
|
|
950
|
+
n,
|
|
951
951
|
t
|
|
952
952
|
);
|
|
953
|
-
if (!E(
|
|
953
|
+
if (!E(e))
|
|
954
954
|
return;
|
|
955
955
|
const i = (
|
|
956
956
|
/** @type {number|undefined} */
|
|
957
|
-
|
|
957
|
+
e.westBoundLongitude
|
|
958
958
|
), o = (
|
|
959
959
|
/** @type {number|undefined} */
|
|
960
|
-
|
|
960
|
+
e.southBoundLatitude
|
|
961
961
|
), r = (
|
|
962
962
|
/** @type {number|undefined} */
|
|
963
|
-
|
|
963
|
+
e.eastBoundLongitude
|
|
964
964
|
), s = (
|
|
965
965
|
/** @type {number|undefined} */
|
|
966
|
-
|
|
966
|
+
e.northBoundLatitude
|
|
967
967
|
);
|
|
968
968
|
if (!(!E(i) || !E(o) || !E(r) || !E(s)))
|
|
969
969
|
return [
|
|
@@ -973,57 +973,57 @@ function cr(e, t) {
|
|
|
973
973
|
s
|
|
974
974
|
];
|
|
975
975
|
}
|
|
976
|
-
function hr(
|
|
977
|
-
return V({}, Tr,
|
|
976
|
+
function hr(n, t) {
|
|
977
|
+
return V({}, Tr, n, t);
|
|
978
978
|
}
|
|
979
|
-
function pr(
|
|
980
|
-
return V({}, Pr,
|
|
979
|
+
function pr(n, t) {
|
|
980
|
+
return V({}, Pr, n, t);
|
|
981
981
|
}
|
|
982
|
-
function fr(
|
|
982
|
+
function fr(n, t) {
|
|
983
983
|
return V(
|
|
984
984
|
{},
|
|
985
985
|
Or,
|
|
986
|
-
|
|
986
|
+
n,
|
|
987
987
|
t
|
|
988
988
|
);
|
|
989
989
|
}
|
|
990
|
-
function gr(
|
|
990
|
+
function gr(n, t) {
|
|
991
991
|
return V(
|
|
992
992
|
{},
|
|
993
993
|
Rr,
|
|
994
|
-
|
|
994
|
+
n,
|
|
995
995
|
t
|
|
996
996
|
);
|
|
997
997
|
}
|
|
998
|
-
function mr(
|
|
998
|
+
function mr(n, t) {
|
|
999
999
|
return V(
|
|
1000
1000
|
{},
|
|
1001
1001
|
Dr,
|
|
1002
|
-
|
|
1002
|
+
n,
|
|
1003
1003
|
t
|
|
1004
1004
|
);
|
|
1005
1005
|
}
|
|
1006
|
-
function yr(
|
|
1006
|
+
function yr(n, t) {
|
|
1007
1007
|
return V(
|
|
1008
1008
|
[],
|
|
1009
1009
|
Nr,
|
|
1010
|
-
|
|
1010
|
+
n,
|
|
1011
1011
|
t
|
|
1012
1012
|
);
|
|
1013
1013
|
}
|
|
1014
|
-
function br(
|
|
1015
|
-
const
|
|
1014
|
+
function br(n, t) {
|
|
1015
|
+
const e = Dt(n.getAttribute("queryable"));
|
|
1016
1016
|
return V(
|
|
1017
1017
|
{
|
|
1018
|
-
queryable: E(
|
|
1018
|
+
queryable: E(e) ? e : !1
|
|
1019
1019
|
},
|
|
1020
1020
|
zi,
|
|
1021
|
-
|
|
1021
|
+
n,
|
|
1022
1022
|
t
|
|
1023
1023
|
);
|
|
1024
1024
|
}
|
|
1025
|
-
function vr(
|
|
1026
|
-
var
|
|
1025
|
+
function vr(n, t) {
|
|
1026
|
+
var e = (
|
|
1027
1027
|
/** @type {Object.<string,*>} */
|
|
1028
1028
|
t[t.length - 1]
|
|
1029
1029
|
);
|
|
@@ -1032,33 +1032,33 @@ function vr(e, t) {
|
|
|
1032
1032
|
V(
|
|
1033
1033
|
{},
|
|
1034
1034
|
zi,
|
|
1035
|
-
|
|
1035
|
+
n,
|
|
1036
1036
|
t
|
|
1037
1037
|
)
|
|
1038
1038
|
);
|
|
1039
1039
|
if (!E(i))
|
|
1040
1040
|
return;
|
|
1041
|
-
let o = Dt(
|
|
1042
|
-
E(o) || (o =
|
|
1043
|
-
let r = Ve(
|
|
1044
|
-
E(r) || (r =
|
|
1045
|
-
let s = Dt(
|
|
1046
|
-
E(s) || (s =
|
|
1047
|
-
let a = Dt(
|
|
1048
|
-
E(a) || (a =
|
|
1049
|
-
let l = pt(
|
|
1050
|
-
E(l) || (l =
|
|
1051
|
-
let u = pt(
|
|
1052
|
-
E(u) || (u =
|
|
1053
|
-
const
|
|
1054
|
-
for (let p = 0, f =
|
|
1055
|
-
const g =
|
|
1041
|
+
let o = Dt(n.getAttribute("queryable"));
|
|
1042
|
+
E(o) || (o = e.queryable), i.queryable = E(o) ? o : !1;
|
|
1043
|
+
let r = Ve(n.getAttribute("cascaded"));
|
|
1044
|
+
E(r) || (r = e.cascaded), i.cascaded = r;
|
|
1045
|
+
let s = Dt(n.getAttribute("opaque"));
|
|
1046
|
+
E(s) || (s = e.opaque), i.opaque = E(s) ? s : !1;
|
|
1047
|
+
let a = Dt(n.getAttribute("noSubsets"));
|
|
1048
|
+
E(a) || (a = e.noSubsets), i.noSubsets = E(a) ? a : !1;
|
|
1049
|
+
let l = pt(n.getAttribute("fixedWidth"));
|
|
1050
|
+
E(l) || (l = e.fixedWidth), i.fixedWidth = l;
|
|
1051
|
+
let u = pt(n.getAttribute("fixedHeight"));
|
|
1052
|
+
E(u) || (u = e.fixedHeight), i.fixedHeight = u;
|
|
1053
|
+
const d = ["Style", "CRS", "AuthorityURL"];
|
|
1054
|
+
for (let p = 0, f = d.length; p < f; p++) {
|
|
1055
|
+
const g = d[p], y = e[g];
|
|
1056
1056
|
if (E(y)) {
|
|
1057
1057
|
let P = Vi(i, g, []);
|
|
1058
1058
|
P = P.concat(y), i[g] = P;
|
|
1059
1059
|
}
|
|
1060
1060
|
}
|
|
1061
|
-
const
|
|
1061
|
+
const c = [
|
|
1062
1062
|
"EX_GeographicBoundingBox",
|
|
1063
1063
|
"BoundingBox",
|
|
1064
1064
|
"Dimension",
|
|
@@ -1066,75 +1066,75 @@ function vr(e, t) {
|
|
|
1066
1066
|
"MinScaleDenominator",
|
|
1067
1067
|
"MaxScaleDenominator"
|
|
1068
1068
|
];
|
|
1069
|
-
for (let p = 0, f =
|
|
1070
|
-
const g =
|
|
1069
|
+
for (let p = 0, f = c.length; p < f; p++) {
|
|
1070
|
+
const g = c[p], y = i[g];
|
|
1071
1071
|
if (!E(y)) {
|
|
1072
|
-
const P =
|
|
1072
|
+
const P = e[g];
|
|
1073
1073
|
i[g] = P;
|
|
1074
1074
|
}
|
|
1075
1075
|
}
|
|
1076
1076
|
return i;
|
|
1077
1077
|
}
|
|
1078
|
-
function wr(
|
|
1078
|
+
function wr(n, t) {
|
|
1079
1079
|
return {
|
|
1080
|
-
name:
|
|
1081
|
-
units:
|
|
1082
|
-
unitSymbol:
|
|
1083
|
-
default:
|
|
1084
|
-
multipleValues: Dt(
|
|
1085
|
-
nearestValue: Dt(
|
|
1086
|
-
current: Dt(
|
|
1087
|
-
values: _(
|
|
1080
|
+
name: n.getAttribute("name"),
|
|
1081
|
+
units: n.getAttribute("units"),
|
|
1082
|
+
unitSymbol: n.getAttribute("unitSymbol"),
|
|
1083
|
+
default: n.getAttribute("default"),
|
|
1084
|
+
multipleValues: Dt(n.getAttribute("multipleValues")),
|
|
1085
|
+
nearestValue: Dt(n.getAttribute("nearestValue")),
|
|
1086
|
+
current: Dt(n.getAttribute("current")),
|
|
1087
|
+
values: _(n)
|
|
1088
1088
|
};
|
|
1089
1089
|
}
|
|
1090
|
-
function gt(
|
|
1090
|
+
function gt(n, t) {
|
|
1091
1091
|
return V(
|
|
1092
1092
|
{},
|
|
1093
|
-
|
|
1094
|
-
|
|
1093
|
+
Ur,
|
|
1094
|
+
n,
|
|
1095
1095
|
t
|
|
1096
1096
|
);
|
|
1097
1097
|
}
|
|
1098
|
-
function Er(
|
|
1099
|
-
return V({}, Hr,
|
|
1098
|
+
function Er(n, t) {
|
|
1099
|
+
return V({}, Hr, n, t);
|
|
1100
1100
|
}
|
|
1101
|
-
function xr(
|
|
1102
|
-
return V({}, Vr,
|
|
1101
|
+
function xr(n, t) {
|
|
1102
|
+
return V({}, Vr, n, t);
|
|
1103
1103
|
}
|
|
1104
|
-
function Sr(
|
|
1105
|
-
return V({}, Lr,
|
|
1104
|
+
function Sr(n, t) {
|
|
1105
|
+
return V({}, Lr, n, t);
|
|
1106
1106
|
}
|
|
1107
|
-
function Sn(
|
|
1108
|
-
return V({}, Br,
|
|
1107
|
+
function Sn(n, t) {
|
|
1108
|
+
return V({}, Br, n, t);
|
|
1109
1109
|
}
|
|
1110
|
-
function Fi(
|
|
1111
|
-
var
|
|
1112
|
-
if (E(
|
|
1110
|
+
function Fi(n, t) {
|
|
1111
|
+
var e = gt(n, t);
|
|
1112
|
+
if (E(e)) {
|
|
1113
1113
|
const i = [
|
|
1114
|
-
Ve(
|
|
1115
|
-
Ve(
|
|
1114
|
+
Ve(n.getAttribute("width")),
|
|
1115
|
+
Ve(n.getAttribute("height"))
|
|
1116
1116
|
];
|
|
1117
|
-
return
|
|
1117
|
+
return e.size = i, e;
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
1120
|
-
function $r(
|
|
1121
|
-
var
|
|
1122
|
-
if (E(
|
|
1123
|
-
return
|
|
1120
|
+
function $r(n, t) {
|
|
1121
|
+
var e = gt(n, t);
|
|
1122
|
+
if (E(e))
|
|
1123
|
+
return e.name = n.getAttribute("name"), e;
|
|
1124
1124
|
}
|
|
1125
|
-
function _r(
|
|
1126
|
-
var
|
|
1127
|
-
if (E(
|
|
1128
|
-
return
|
|
1125
|
+
function _r(n, t) {
|
|
1126
|
+
var e = gt(n, t);
|
|
1127
|
+
if (E(e))
|
|
1128
|
+
return e.type = n.getAttribute("type"), e;
|
|
1129
1129
|
}
|
|
1130
|
-
function Ar(
|
|
1131
|
-
return V({},
|
|
1130
|
+
function Ar(n, t) {
|
|
1131
|
+
return V({}, kr, n, t);
|
|
1132
1132
|
}
|
|
1133
|
-
function ji(
|
|
1133
|
+
function ji(n, t) {
|
|
1134
1134
|
return V(
|
|
1135
1135
|
[],
|
|
1136
1136
|
Fr,
|
|
1137
|
-
|
|
1137
|
+
n,
|
|
1138
1138
|
t
|
|
1139
1139
|
);
|
|
1140
1140
|
}
|
|
@@ -1198,7 +1198,7 @@ const j = [
|
|
|
1198
1198
|
), Nr = F(
|
|
1199
1199
|
j,
|
|
1200
1200
|
{
|
|
1201
|
-
Format:
|
|
1201
|
+
Format: ki(_)
|
|
1202
1202
|
}
|
|
1203
1203
|
), zi = F(
|
|
1204
1204
|
j,
|
|
@@ -1209,7 +1209,7 @@ const j = [
|
|
|
1209
1209
|
KeywordList: m(ji),
|
|
1210
1210
|
CRS: G(_),
|
|
1211
1211
|
SRS: G(_),
|
|
1212
|
-
EX_GeographicBoundingBox: m(
|
|
1212
|
+
EX_GeographicBoundingBox: m(dr),
|
|
1213
1213
|
LatLonBoundingBox: m(ur),
|
|
1214
1214
|
BoundingBox: G(lr),
|
|
1215
1215
|
Dimension: G(wr),
|
|
@@ -1222,7 +1222,7 @@ const j = [
|
|
|
1222
1222
|
Style: G(Ar),
|
|
1223
1223
|
MinScaleDenominator: m(Lt),
|
|
1224
1224
|
MaxScaleDenominator: m(Lt),
|
|
1225
|
-
ScaleHint: m(
|
|
1225
|
+
ScaleHint: m(cr),
|
|
1226
1226
|
Layer: G(vr)
|
|
1227
1227
|
}
|
|
1228
1228
|
), Mr = F(
|
|
@@ -1275,7 +1275,7 @@ const j = [
|
|
|
1275
1275
|
gt
|
|
1276
1276
|
)
|
|
1277
1277
|
}
|
|
1278
|
-
),
|
|
1278
|
+
), kr = F(
|
|
1279
1279
|
j,
|
|
1280
1280
|
{
|
|
1281
1281
|
Name: m(_),
|
|
@@ -1285,7 +1285,7 @@ const j = [
|
|
|
1285
1285
|
StyleSheetURL: m(gt),
|
|
1286
1286
|
StyleURL: m(gt)
|
|
1287
1287
|
}
|
|
1288
|
-
),
|
|
1288
|
+
), Ur = F(
|
|
1289
1289
|
j,
|
|
1290
1290
|
{
|
|
1291
1291
|
Format: m(_),
|
|
@@ -1294,7 +1294,7 @@ const j = [
|
|
|
1294
1294
|
), Fr = F(
|
|
1295
1295
|
j,
|
|
1296
1296
|
{
|
|
1297
|
-
Keyword:
|
|
1297
|
+
Keyword: ki(_)
|
|
1298
1298
|
}
|
|
1299
1299
|
);
|
|
1300
1300
|
class jr {
|
|
@@ -1304,8 +1304,8 @@ class jr {
|
|
|
1304
1304
|
* @param {String=} xmlString
|
|
1305
1305
|
* @constructor
|
|
1306
1306
|
*/
|
|
1307
|
-
constructor(t,
|
|
1308
|
-
!
|
|
1307
|
+
constructor(t, e) {
|
|
1308
|
+
!e && typeof window < "u" && (e = window.DOMParser), this.version = void 0, this._parser = new Qo(e), this._data = t;
|
|
1309
1309
|
}
|
|
1310
1310
|
/**
|
|
1311
1311
|
* @param {String} xmlString
|
|
@@ -1333,9 +1333,9 @@ class jr {
|
|
|
1333
1333
|
* @return {Object|null}
|
|
1334
1334
|
*/
|
|
1335
1335
|
readFromDocument(t) {
|
|
1336
|
-
for (let
|
|
1337
|
-
if (
|
|
1338
|
-
return this.readFromNode(
|
|
1336
|
+
for (let e = t.firstChild; e; e = e.nextSibling)
|
|
1337
|
+
if (e.nodeType == pe.ELEMENT)
|
|
1338
|
+
return this.readFromNode(e);
|
|
1339
1339
|
return null;
|
|
1340
1340
|
}
|
|
1341
1341
|
/**
|
|
@@ -1348,9 +1348,9 @@ class jr {
|
|
|
1348
1348
|
}, Cr, t, []) || null;
|
|
1349
1349
|
}
|
|
1350
1350
|
}
|
|
1351
|
-
async function zr(
|
|
1352
|
-
let t = new URL(
|
|
1353
|
-
|
|
1351
|
+
async function zr(n) {
|
|
1352
|
+
let t = new URL(n), e = t.searchParams;
|
|
1353
|
+
e.set("SERVICE", "WMS"), e.set("REQUEST", "GetCapabilities");
|
|
1354
1354
|
let i = t.toString();
|
|
1355
1355
|
const o = await fetch(i);
|
|
1356
1356
|
if (o.ok) {
|
|
@@ -1359,35 +1359,35 @@ async function zr(e) {
|
|
|
1359
1359
|
} else
|
|
1360
1360
|
throw new Error(`Error: ${o.status}`);
|
|
1361
1361
|
}
|
|
1362
|
-
function qn(
|
|
1363
|
-
const t = /\b(?:wms|ows)\b/i,
|
|
1364
|
-
return t.test(
|
|
1362
|
+
function qn(n) {
|
|
1363
|
+
const t = /\b(?:wms|ows)\b/i, e = /{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;
|
|
1364
|
+
return t.test(n) ? "TileWMS" : e.test(n) ? "XYZ" : !1;
|
|
1365
1365
|
}
|
|
1366
|
-
function Zr(
|
|
1367
|
-
const
|
|
1368
|
-
return !!(
|
|
1366
|
+
function Zr(n) {
|
|
1367
|
+
const e = /^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(n), i = qn(n);
|
|
1368
|
+
return !!(n && e && i);
|
|
1369
1369
|
}
|
|
1370
|
-
function Zi(
|
|
1371
|
-
return
|
|
1370
|
+
function Zi(n) {
|
|
1371
|
+
return n.replace(
|
|
1372
1372
|
/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,
|
|
1373
1373
|
'"$2": '
|
|
1374
1374
|
).replace(/,\s*}/g, "}").replace(/,\s*]/g, "]").replace(/\s*(\{|}|\[|\]|,)\s*/g, "$1").replaceAll('": //', "://");
|
|
1375
1375
|
}
|
|
1376
|
-
function Xr(
|
|
1376
|
+
function Xr(n) {
|
|
1377
1377
|
try {
|
|
1378
|
-
return JSON.parse(Zi(
|
|
1378
|
+
return JSON.parse(Zi(n)), !!n;
|
|
1379
1379
|
} catch {
|
|
1380
1380
|
return !1;
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
1383
|
-
function Yr(
|
|
1384
|
-
const
|
|
1383
|
+
function Yr(n, t) {
|
|
1384
|
+
const e = new URL(n).searchParams;
|
|
1385
1385
|
Object.entries(t).forEach(([s, a]) => {
|
|
1386
1386
|
typeof a == "object" && !Array.isArray(a) && a !== null ? Object.keys(a).forEach((l) => {
|
|
1387
|
-
|
|
1388
|
-
}) :
|
|
1387
|
+
e.set(l, a[l]);
|
|
1388
|
+
}) : e.set(s, a);
|
|
1389
1389
|
});
|
|
1390
|
-
const i =
|
|
1390
|
+
const i = n.split("?")[0], o = e.toString();
|
|
1391
1391
|
return `${i}?${o}`;
|
|
1392
1392
|
}
|
|
1393
1393
|
/**!
|
|
@@ -1396,191 +1396,191 @@ function Yr(e, t) {
|
|
|
1396
1396
|
* @author owenm <owen23355@gmail.com>
|
|
1397
1397
|
* @license MIT
|
|
1398
1398
|
*/
|
|
1399
|
-
function hi(
|
|
1400
|
-
var
|
|
1399
|
+
function hi(n, t) {
|
|
1400
|
+
var e = Object.keys(n);
|
|
1401
1401
|
if (Object.getOwnPropertySymbols) {
|
|
1402
|
-
var i = Object.getOwnPropertySymbols(
|
|
1402
|
+
var i = Object.getOwnPropertySymbols(n);
|
|
1403
1403
|
t && (i = i.filter(function(o) {
|
|
1404
|
-
return Object.getOwnPropertyDescriptor(
|
|
1405
|
-
})),
|
|
1404
|
+
return Object.getOwnPropertyDescriptor(n, o).enumerable;
|
|
1405
|
+
})), e.push.apply(e, i);
|
|
1406
1406
|
}
|
|
1407
|
-
return
|
|
1407
|
+
return e;
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1409
|
+
function ct(n) {
|
|
1410
1410
|
for (var t = 1; t < arguments.length; t++) {
|
|
1411
|
-
var
|
|
1412
|
-
t % 2 ? hi(Object(
|
|
1413
|
-
qr(
|
|
1414
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
1415
|
-
Object.defineProperty(
|
|
1411
|
+
var e = arguments[t] != null ? arguments[t] : {};
|
|
1412
|
+
t % 2 ? hi(Object(e), !0).forEach(function(i) {
|
|
1413
|
+
qr(n, i, e[i]);
|
|
1414
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(e)) : hi(Object(e)).forEach(function(i) {
|
|
1415
|
+
Object.defineProperty(n, i, Object.getOwnPropertyDescriptor(e, i));
|
|
1416
1416
|
});
|
|
1417
1417
|
}
|
|
1418
|
-
return
|
|
1418
|
+
return n;
|
|
1419
1419
|
}
|
|
1420
|
-
function Pe(
|
|
1420
|
+
function Pe(n) {
|
|
1421
1421
|
"@babel/helpers - typeof";
|
|
1422
1422
|
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Pe = function(t) {
|
|
1423
1423
|
return typeof t;
|
|
1424
1424
|
} : Pe = function(t) {
|
|
1425
1425
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1426
|
-
}, Pe(
|
|
1426
|
+
}, Pe(n);
|
|
1427
1427
|
}
|
|
1428
|
-
function qr(
|
|
1429
|
-
return t in
|
|
1430
|
-
value:
|
|
1428
|
+
function qr(n, t, e) {
|
|
1429
|
+
return t in n ? Object.defineProperty(n, t, {
|
|
1430
|
+
value: e,
|
|
1431
1431
|
enumerable: !0,
|
|
1432
1432
|
configurable: !0,
|
|
1433
1433
|
writable: !0
|
|
1434
|
-
}) :
|
|
1434
|
+
}) : n[t] = e, n;
|
|
1435
1435
|
}
|
|
1436
1436
|
function mt() {
|
|
1437
|
-
return mt = Object.assign || function(
|
|
1437
|
+
return mt = Object.assign || function(n) {
|
|
1438
1438
|
for (var t = 1; t < arguments.length; t++) {
|
|
1439
|
-
var
|
|
1440
|
-
for (var i in
|
|
1441
|
-
Object.prototype.hasOwnProperty.call(
|
|
1439
|
+
var e = arguments[t];
|
|
1440
|
+
for (var i in e)
|
|
1441
|
+
Object.prototype.hasOwnProperty.call(e, i) && (n[i] = e[i]);
|
|
1442
1442
|
}
|
|
1443
|
-
return
|
|
1443
|
+
return n;
|
|
1444
1444
|
}, mt.apply(this, arguments);
|
|
1445
1445
|
}
|
|
1446
|
-
function Wr(
|
|
1447
|
-
if (
|
|
1446
|
+
function Wr(n, t) {
|
|
1447
|
+
if (n == null)
|
|
1448
1448
|
return {};
|
|
1449
|
-
var
|
|
1449
|
+
var e = {}, i = Object.keys(n), o, r;
|
|
1450
1450
|
for (r = 0; r < i.length; r++)
|
|
1451
|
-
o = i[r], !(t.indexOf(o) >= 0) && (
|
|
1452
|
-
return
|
|
1451
|
+
o = i[r], !(t.indexOf(o) >= 0) && (e[o] = n[o]);
|
|
1452
|
+
return e;
|
|
1453
1453
|
}
|
|
1454
|
-
function Gr(
|
|
1455
|
-
if (
|
|
1454
|
+
function Gr(n, t) {
|
|
1455
|
+
if (n == null)
|
|
1456
1456
|
return {};
|
|
1457
|
-
var
|
|
1457
|
+
var e = Wr(n, t), i, o;
|
|
1458
1458
|
if (Object.getOwnPropertySymbols) {
|
|
1459
|
-
var r = Object.getOwnPropertySymbols(
|
|
1459
|
+
var r = Object.getOwnPropertySymbols(n);
|
|
1460
1460
|
for (o = 0; o < r.length; o++)
|
|
1461
|
-
i = r[o], !(t.indexOf(i) >= 0) && Object.prototype.propertyIsEnumerable.call(
|
|
1461
|
+
i = r[o], !(t.indexOf(i) >= 0) && Object.prototype.propertyIsEnumerable.call(n, i) && (e[i] = n[i]);
|
|
1462
1462
|
}
|
|
1463
|
-
return
|
|
1463
|
+
return e;
|
|
1464
1464
|
}
|
|
1465
1465
|
var Jr = "1.15.2";
|
|
1466
|
-
function ft(
|
|
1466
|
+
function ft(n) {
|
|
1467
1467
|
if (typeof window < "u" && window.navigator)
|
|
1468
|
-
return !!/* @__PURE__ */ navigator.userAgent.match(
|
|
1468
|
+
return !!/* @__PURE__ */ navigator.userAgent.match(n);
|
|
1469
1469
|
}
|
|
1470
1470
|
var yt = ft(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), we = ft(/Edge/i), pi = ft(/firefox/i), re = ft(/safari/i) && !ft(/chrome/i) && !ft(/android/i), Xi = ft(/iP(ad|od|hone)/i), Yi = ft(/chrome/i) && ft(/android/i), qi = {
|
|
1471
1471
|
capture: !1,
|
|
1472
1472
|
passive: !1
|
|
1473
1473
|
};
|
|
1474
|
-
function A(
|
|
1475
|
-
|
|
1474
|
+
function A(n, t, e) {
|
|
1475
|
+
n.addEventListener(t, e, !yt && qi);
|
|
1476
1476
|
}
|
|
1477
|
-
function S(
|
|
1478
|
-
|
|
1477
|
+
function S(n, t, e) {
|
|
1478
|
+
n.removeEventListener(t, e, !yt && qi);
|
|
1479
1479
|
}
|
|
1480
|
-
function Le(
|
|
1480
|
+
function Le(n, t) {
|
|
1481
1481
|
if (t) {
|
|
1482
|
-
if (t[0] === ">" && (t = t.substring(1)),
|
|
1482
|
+
if (t[0] === ">" && (t = t.substring(1)), n)
|
|
1483
1483
|
try {
|
|
1484
|
-
if (
|
|
1485
|
-
return
|
|
1486
|
-
if (
|
|
1487
|
-
return
|
|
1488
|
-
if (
|
|
1489
|
-
return
|
|
1484
|
+
if (n.matches)
|
|
1485
|
+
return n.matches(t);
|
|
1486
|
+
if (n.msMatchesSelector)
|
|
1487
|
+
return n.msMatchesSelector(t);
|
|
1488
|
+
if (n.webkitMatchesSelector)
|
|
1489
|
+
return n.webkitMatchesSelector(t);
|
|
1490
1490
|
} catch {
|
|
1491
1491
|
return !1;
|
|
1492
1492
|
}
|
|
1493
1493
|
return !1;
|
|
1494
1494
|
}
|
|
1495
1495
|
}
|
|
1496
|
-
function Kr(
|
|
1497
|
-
return
|
|
1496
|
+
function Kr(n) {
|
|
1497
|
+
return n.host && n !== document && n.host.nodeType ? n.host : n.parentNode;
|
|
1498
1498
|
}
|
|
1499
|
-
function lt(
|
|
1500
|
-
if (
|
|
1501
|
-
|
|
1499
|
+
function lt(n, t, e, i) {
|
|
1500
|
+
if (n) {
|
|
1501
|
+
e = e || document;
|
|
1502
1502
|
do {
|
|
1503
|
-
if (t != null && (t[0] === ">" ?
|
|
1504
|
-
return
|
|
1505
|
-
if (
|
|
1503
|
+
if (t != null && (t[0] === ">" ? n.parentNode === e && Le(n, t) : Le(n, t)) || i && n === e)
|
|
1504
|
+
return n;
|
|
1505
|
+
if (n === e)
|
|
1506
1506
|
break;
|
|
1507
|
-
} while (
|
|
1507
|
+
} while (n = Kr(n));
|
|
1508
1508
|
}
|
|
1509
1509
|
return null;
|
|
1510
1510
|
}
|
|
1511
1511
|
var fi = /\s+/g;
|
|
1512
|
-
function K(
|
|
1513
|
-
if (
|
|
1514
|
-
if (
|
|
1515
|
-
|
|
1512
|
+
function K(n, t, e) {
|
|
1513
|
+
if (n && t)
|
|
1514
|
+
if (n.classList)
|
|
1515
|
+
n.classList[e ? "add" : "remove"](t);
|
|
1516
1516
|
else {
|
|
1517
|
-
var i = (" " +
|
|
1518
|
-
|
|
1517
|
+
var i = (" " + n.className + " ").replace(fi, " ").replace(" " + t + " ", " ");
|
|
1518
|
+
n.className = (i + (e ? " " + t : "")).replace(fi, " ");
|
|
1519
1519
|
}
|
|
1520
1520
|
}
|
|
1521
|
-
function b(
|
|
1522
|
-
var i =
|
|
1521
|
+
function b(n, t, e) {
|
|
1522
|
+
var i = n && n.style;
|
|
1523
1523
|
if (i) {
|
|
1524
|
-
if (
|
|
1525
|
-
return document.defaultView && document.defaultView.getComputedStyle ?
|
|
1526
|
-
!(t in i) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), i[t] =
|
|
1524
|
+
if (e === void 0)
|
|
1525
|
+
return document.defaultView && document.defaultView.getComputedStyle ? e = document.defaultView.getComputedStyle(n, "") : n.currentStyle && (e = n.currentStyle), t === void 0 ? e : e[t];
|
|
1526
|
+
!(t in i) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), i[t] = e + (typeof e == "string" ? "" : "px");
|
|
1527
1527
|
}
|
|
1528
1528
|
}
|
|
1529
|
-
function
|
|
1530
|
-
var
|
|
1531
|
-
if (typeof
|
|
1532
|
-
|
|
1529
|
+
function Ut(n, t) {
|
|
1530
|
+
var e = "";
|
|
1531
|
+
if (typeof n == "string")
|
|
1532
|
+
e = n;
|
|
1533
1533
|
else
|
|
1534
1534
|
do {
|
|
1535
|
-
var i = b(
|
|
1536
|
-
i && i !== "none" && (
|
|
1537
|
-
} while (!t && (
|
|
1535
|
+
var i = b(n, "transform");
|
|
1536
|
+
i && i !== "none" && (e = i + " " + e);
|
|
1537
|
+
} while (!t && (n = n.parentNode));
|
|
1538
1538
|
var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
1539
|
-
return o && new o(
|
|
1539
|
+
return o && new o(e);
|
|
1540
1540
|
}
|
|
1541
|
-
function Wi(
|
|
1542
|
-
if (
|
|
1543
|
-
var i =
|
|
1544
|
-
if (
|
|
1541
|
+
function Wi(n, t, e) {
|
|
1542
|
+
if (n) {
|
|
1543
|
+
var i = n.getElementsByTagName(t), o = 0, r = i.length;
|
|
1544
|
+
if (e)
|
|
1545
1545
|
for (; o < r; o++)
|
|
1546
|
-
|
|
1546
|
+
e(i[o], o);
|
|
1547
1547
|
return i;
|
|
1548
1548
|
}
|
|
1549
1549
|
return [];
|
|
1550
1550
|
}
|
|
1551
1551
|
function ut() {
|
|
1552
|
-
var
|
|
1553
|
-
return
|
|
1552
|
+
var n = document.scrollingElement;
|
|
1553
|
+
return n || document.documentElement;
|
|
1554
1554
|
}
|
|
1555
|
-
function I(
|
|
1556
|
-
if (!(!
|
|
1557
|
-
var r, s, a, l, u,
|
|
1558
|
-
if (
|
|
1555
|
+
function I(n, t, e, i, o) {
|
|
1556
|
+
if (!(!n.getBoundingClientRect && n !== window)) {
|
|
1557
|
+
var r, s, a, l, u, d, c;
|
|
1558
|
+
if (n !== window && n.parentNode && n !== ut() ? (r = n.getBoundingClientRect(), s = r.top, a = r.left, l = r.bottom, u = r.right, d = r.height, c = r.width) : (s = 0, a = 0, l = window.innerHeight, u = window.innerWidth, d = window.innerHeight, c = window.innerWidth), (t || e) && n !== window && (o = o || n.parentNode, !yt))
|
|
1559
1559
|
do
|
|
1560
|
-
if (o && o.getBoundingClientRect && (b(o, "transform") !== "none" ||
|
|
1560
|
+
if (o && o.getBoundingClientRect && (b(o, "transform") !== "none" || e && b(o, "position") !== "static")) {
|
|
1561
1561
|
var p = o.getBoundingClientRect();
|
|
1562
1562
|
s -= p.top + parseInt(b(o, "border-top-width")), a -= p.left + parseInt(b(o, "border-left-width")), l = s + r.height, u = a + r.width;
|
|
1563
1563
|
break;
|
|
1564
1564
|
}
|
|
1565
1565
|
while (o = o.parentNode);
|
|
1566
|
-
if (i &&
|
|
1567
|
-
var f =
|
|
1568
|
-
f && (s /= y, a /= g,
|
|
1566
|
+
if (i && n !== window) {
|
|
1567
|
+
var f = Ut(o || n), g = f && f.a, y = f && f.d;
|
|
1568
|
+
f && (s /= y, a /= g, c /= g, d /= y, l = s + d, u = a + c);
|
|
1569
1569
|
}
|
|
1570
1570
|
return {
|
|
1571
1571
|
top: s,
|
|
1572
1572
|
left: a,
|
|
1573
1573
|
bottom: l,
|
|
1574
1574
|
right: u,
|
|
1575
|
-
width:
|
|
1576
|
-
height:
|
|
1575
|
+
width: c,
|
|
1576
|
+
height: d
|
|
1577
1577
|
};
|
|
1578
1578
|
}
|
|
1579
1579
|
}
|
|
1580
|
-
function gi(
|
|
1581
|
-
for (var i = St(
|
|
1582
|
-
var r = I(i)[
|
|
1583
|
-
if (
|
|
1580
|
+
function gi(n, t, e) {
|
|
1581
|
+
for (var i = St(n, !0), o = I(n)[t]; i; ) {
|
|
1582
|
+
var r = I(i)[e], s = void 0;
|
|
1583
|
+
if (e === "top" || e === "left" ? s = o >= r : s = o <= r, !s)
|
|
1584
1584
|
return i;
|
|
1585
1585
|
if (i === ut())
|
|
1586
1586
|
break;
|
|
@@ -1588,9 +1588,9 @@ function gi(e, t, n) {
|
|
|
1588
1588
|
}
|
|
1589
1589
|
return !1;
|
|
1590
1590
|
}
|
|
1591
|
-
function Zt(
|
|
1592
|
-
for (var o = 0, r = 0, s =
|
|
1593
|
-
if (s[r].style.display !== "none" && s[r] !== v.ghost && (i || s[r] !== v.dragged) && lt(s[r],
|
|
1591
|
+
function Zt(n, t, e, i) {
|
|
1592
|
+
for (var o = 0, r = 0, s = n.children; r < s.length; ) {
|
|
1593
|
+
if (s[r].style.display !== "none" && s[r] !== v.ghost && (i || s[r] !== v.dragged) && lt(s[r], e.draggable, n, !1)) {
|
|
1594
1594
|
if (o === t)
|
|
1595
1595
|
return s[r];
|
|
1596
1596
|
o++;
|
|
@@ -1599,70 +1599,70 @@ function Zt(e, t, n, i) {
|
|
|
1599
1599
|
}
|
|
1600
1600
|
return null;
|
|
1601
1601
|
}
|
|
1602
|
-
function Wn(
|
|
1603
|
-
for (var
|
|
1604
|
-
|
|
1605
|
-
return
|
|
1602
|
+
function Wn(n, t) {
|
|
1603
|
+
for (var e = n.lastElementChild; e && (e === v.ghost || b(e, "display") === "none" || t && !Le(e, t)); )
|
|
1604
|
+
e = e.previousElementSibling;
|
|
1605
|
+
return e || null;
|
|
1606
1606
|
}
|
|
1607
|
-
function nt(
|
|
1608
|
-
var
|
|
1609
|
-
if (!
|
|
1607
|
+
function nt(n, t) {
|
|
1608
|
+
var e = 0;
|
|
1609
|
+
if (!n || !n.parentNode)
|
|
1610
1610
|
return -1;
|
|
1611
|
-
for (;
|
|
1612
|
-
|
|
1613
|
-
return
|
|
1611
|
+
for (; n = n.previousElementSibling; )
|
|
1612
|
+
n.nodeName.toUpperCase() !== "TEMPLATE" && n !== v.clone && (!t || Le(n, t)) && e++;
|
|
1613
|
+
return e;
|
|
1614
1614
|
}
|
|
1615
|
-
function mi(
|
|
1616
|
-
var t = 0,
|
|
1617
|
-
if (
|
|
1615
|
+
function mi(n) {
|
|
1616
|
+
var t = 0, e = 0, i = ut();
|
|
1617
|
+
if (n)
|
|
1618
1618
|
do {
|
|
1619
|
-
var o =
|
|
1620
|
-
t +=
|
|
1621
|
-
} while (
|
|
1622
|
-
return [t,
|
|
1623
|
-
}
|
|
1624
|
-
function Qr(
|
|
1625
|
-
for (var
|
|
1626
|
-
if (
|
|
1619
|
+
var o = Ut(n), r = o.a, s = o.d;
|
|
1620
|
+
t += n.scrollLeft * r, e += n.scrollTop * s;
|
|
1621
|
+
} while (n !== i && (n = n.parentNode));
|
|
1622
|
+
return [t, e];
|
|
1623
|
+
}
|
|
1624
|
+
function Qr(n, t) {
|
|
1625
|
+
for (var e in n)
|
|
1626
|
+
if (n.hasOwnProperty(e)) {
|
|
1627
1627
|
for (var i in t)
|
|
1628
|
-
if (t.hasOwnProperty(i) && t[i] === e
|
|
1629
|
-
return Number(
|
|
1628
|
+
if (t.hasOwnProperty(i) && t[i] === n[e][i])
|
|
1629
|
+
return Number(e);
|
|
1630
1630
|
}
|
|
1631
1631
|
return -1;
|
|
1632
1632
|
}
|
|
1633
|
-
function St(
|
|
1634
|
-
if (!
|
|
1633
|
+
function St(n, t) {
|
|
1634
|
+
if (!n || !n.getBoundingClientRect)
|
|
1635
1635
|
return ut();
|
|
1636
|
-
var
|
|
1636
|
+
var e = n, i = !1;
|
|
1637
1637
|
do
|
|
1638
|
-
if (
|
|
1639
|
-
var o = b(
|
|
1640
|
-
if (
|
|
1641
|
-
if (!
|
|
1638
|
+
if (e.clientWidth < e.scrollWidth || e.clientHeight < e.scrollHeight) {
|
|
1639
|
+
var o = b(e);
|
|
1640
|
+
if (e.clientWidth < e.scrollWidth && (o.overflowX == "auto" || o.overflowX == "scroll") || e.clientHeight < e.scrollHeight && (o.overflowY == "auto" || o.overflowY == "scroll")) {
|
|
1641
|
+
if (!e.getBoundingClientRect || e === document.body)
|
|
1642
1642
|
return ut();
|
|
1643
1643
|
if (i || t)
|
|
1644
|
-
return
|
|
1644
|
+
return e;
|
|
1645
1645
|
i = !0;
|
|
1646
1646
|
}
|
|
1647
1647
|
}
|
|
1648
|
-
while (
|
|
1648
|
+
while (e = e.parentNode);
|
|
1649
1649
|
return ut();
|
|
1650
1650
|
}
|
|
1651
|
-
function ts(
|
|
1652
|
-
if (
|
|
1653
|
-
for (var
|
|
1654
|
-
t.hasOwnProperty(
|
|
1655
|
-
return
|
|
1651
|
+
function ts(n, t) {
|
|
1652
|
+
if (n && t)
|
|
1653
|
+
for (var e in t)
|
|
1654
|
+
t.hasOwnProperty(e) && (n[e] = t[e]);
|
|
1655
|
+
return n;
|
|
1656
1656
|
}
|
|
1657
|
-
function $n(
|
|
1658
|
-
return Math.round(
|
|
1657
|
+
function $n(n, t) {
|
|
1658
|
+
return Math.round(n.top) === Math.round(t.top) && Math.round(n.left) === Math.round(t.left) && Math.round(n.height) === Math.round(t.height) && Math.round(n.width) === Math.round(t.width);
|
|
1659
1659
|
}
|
|
1660
1660
|
var se;
|
|
1661
|
-
function Gi(
|
|
1661
|
+
function Gi(n, t) {
|
|
1662
1662
|
return function() {
|
|
1663
1663
|
if (!se) {
|
|
1664
|
-
var
|
|
1665
|
-
|
|
1664
|
+
var e = arguments, i = this;
|
|
1665
|
+
e.length === 1 ? n.call(i, e[0]) : n.apply(i, e), se = setTimeout(function() {
|
|
1666
1666
|
se = void 0;
|
|
1667
1667
|
}, t);
|
|
1668
1668
|
}
|
|
@@ -1671,18 +1671,18 @@ function Gi(e, t) {
|
|
|
1671
1671
|
function es() {
|
|
1672
1672
|
clearTimeout(se), se = void 0;
|
|
1673
1673
|
}
|
|
1674
|
-
function Ji(
|
|
1675
|
-
|
|
1674
|
+
function Ji(n, t, e) {
|
|
1675
|
+
n.scrollLeft += t, n.scrollTop += e;
|
|
1676
1676
|
}
|
|
1677
|
-
function Ki(
|
|
1678
|
-
var t = window.Polymer,
|
|
1679
|
-
return t && t.dom ? t.dom(
|
|
1677
|
+
function Ki(n) {
|
|
1678
|
+
var t = window.Polymer, e = window.jQuery || window.Zepto;
|
|
1679
|
+
return t && t.dom ? t.dom(n).cloneNode(!0) : e ? e(n).clone(!0)[0] : n.cloneNode(!0);
|
|
1680
1680
|
}
|
|
1681
|
-
function Qi(
|
|
1681
|
+
function Qi(n, t, e) {
|
|
1682
1682
|
var i = {};
|
|
1683
|
-
return Array.from(
|
|
1683
|
+
return Array.from(n.children).forEach(function(o) {
|
|
1684
1684
|
var r, s, a, l;
|
|
1685
|
-
if (!(!lt(o, t.draggable,
|
|
1685
|
+
if (!(!lt(o, t.draggable, n, !1) || o.animated || o === e)) {
|
|
1686
1686
|
var u = I(o);
|
|
1687
1687
|
i.left = Math.min((r = i.left) !== null && r !== void 0 ? r : 1 / 0, u.left), i.top = Math.min((s = i.top) !== null && s !== void 0 ? s : 1 / 0, u.top), i.right = Math.max((a = i.right) !== null && a !== void 0 ? a : -1 / 0, u.right), i.bottom = Math.max((l = i.bottom) !== null && l !== void 0 ? l : -1 / 0, u.bottom);
|
|
1688
1688
|
}
|
|
@@ -1690,20 +1690,20 @@ function Qi(e, t, n) {
|
|
|
1690
1690
|
}
|
|
1691
1691
|
var tt = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
1692
1692
|
function ns() {
|
|
1693
|
-
var
|
|
1693
|
+
var n = [], t;
|
|
1694
1694
|
return {
|
|
1695
1695
|
captureAnimationState: function() {
|
|
1696
|
-
if (
|
|
1696
|
+
if (n = [], !!this.options.animation) {
|
|
1697
1697
|
var i = [].slice.call(this.el.children);
|
|
1698
1698
|
i.forEach(function(o) {
|
|
1699
1699
|
if (!(b(o, "display") === "none" || o === v.ghost)) {
|
|
1700
|
-
|
|
1700
|
+
n.push({
|
|
1701
1701
|
target: o,
|
|
1702
1702
|
rect: I(o)
|
|
1703
1703
|
});
|
|
1704
|
-
var r =
|
|
1704
|
+
var r = ct({}, n[n.length - 1].rect);
|
|
1705
1705
|
if (o.thisAnimationDuration) {
|
|
1706
|
-
var s =
|
|
1706
|
+
var s = Ut(o, !0);
|
|
1707
1707
|
s && (r.top -= s.f, r.left -= s.e);
|
|
1708
1708
|
}
|
|
1709
1709
|
o.fromRect = r;
|
|
@@ -1712,10 +1712,10 @@ function ns() {
|
|
|
1712
1712
|
}
|
|
1713
1713
|
},
|
|
1714
1714
|
addAnimationState: function(i) {
|
|
1715
|
-
|
|
1715
|
+
n.push(i);
|
|
1716
1716
|
},
|
|
1717
1717
|
removeAnimationState: function(i) {
|
|
1718
|
-
|
|
1718
|
+
n.splice(Qr(n, {
|
|
1719
1719
|
target: i
|
|
1720
1720
|
}), 1);
|
|
1721
1721
|
},
|
|
@@ -1726,63 +1726,63 @@ function ns() {
|
|
|
1726
1726
|
return;
|
|
1727
1727
|
}
|
|
1728
1728
|
var r = !1, s = 0;
|
|
1729
|
-
|
|
1730
|
-
var l = 0, u = a.target,
|
|
1731
|
-
y && (
|
|
1732
|
-
(g.top -
|
|
1729
|
+
n.forEach(function(a) {
|
|
1730
|
+
var l = 0, u = a.target, d = u.fromRect, c = I(u), p = u.prevFromRect, f = u.prevToRect, g = a.rect, y = Ut(u, !0);
|
|
1731
|
+
y && (c.top -= y.f, c.left -= y.e), u.toRect = c, u.thisAnimationDuration && $n(p, c) && !$n(d, c) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1732
|
+
(g.top - c.top) / (g.left - c.left) === (d.top - c.top) / (d.left - c.left) && (l = os(g, p, f, o.options)), $n(c, d) || (u.prevFromRect = d, u.prevToRect = c, l || (l = o.options.animation), o.animate(u, g, c, l)), l && (r = !0, s = Math.max(s, l), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
1733
1733
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
1734
1734
|
}, l), u.thisAnimationDuration = l);
|
|
1735
1735
|
}), clearTimeout(t), r ? t = setTimeout(function() {
|
|
1736
1736
|
typeof i == "function" && i();
|
|
1737
|
-
}, s) : typeof i == "function" && i(),
|
|
1737
|
+
}, s) : typeof i == "function" && i(), n = [];
|
|
1738
1738
|
},
|
|
1739
1739
|
animate: function(i, o, r, s) {
|
|
1740
1740
|
if (s) {
|
|
1741
1741
|
b(i, "transition", ""), b(i, "transform", "");
|
|
1742
|
-
var a =
|
|
1743
|
-
i.animatingX = !!
|
|
1742
|
+
var a = Ut(this.el), l = a && a.a, u = a && a.d, d = (o.left - r.left) / (l || 1), c = (o.top - r.top) / (u || 1);
|
|
1743
|
+
i.animatingX = !!d, i.animatingY = !!c, b(i, "transform", "translate3d(" + d + "px," + c + "px,0)"), this.forRepaintDummy = is(i), b(i, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), b(i, "transform", "translate3d(0,0,0)"), typeof i.animated == "number" && clearTimeout(i.animated), i.animated = setTimeout(function() {
|
|
1744
1744
|
b(i, "transition", ""), b(i, "transform", ""), i.animated = !1, i.animatingX = !1, i.animatingY = !1;
|
|
1745
1745
|
}, s);
|
|
1746
1746
|
}
|
|
1747
1747
|
}
|
|
1748
1748
|
};
|
|
1749
1749
|
}
|
|
1750
|
-
function is(
|
|
1751
|
-
return
|
|
1750
|
+
function is(n) {
|
|
1751
|
+
return n.offsetWidth;
|
|
1752
1752
|
}
|
|
1753
|
-
function os(
|
|
1754
|
-
return Math.sqrt(Math.pow(t.top -
|
|
1753
|
+
function os(n, t, e, i) {
|
|
1754
|
+
return Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) / Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) * i.animation;
|
|
1755
1755
|
}
|
|
1756
1756
|
var It = [], _n = {
|
|
1757
1757
|
initializeByDefault: !0
|
|
1758
1758
|
}, Ee = {
|
|
1759
1759
|
mount: function(t) {
|
|
1760
|
-
for (var
|
|
1761
|
-
_n.hasOwnProperty(
|
|
1760
|
+
for (var e in _n)
|
|
1761
|
+
_n.hasOwnProperty(e) && !(e in t) && (t[e] = _n[e]);
|
|
1762
1762
|
It.forEach(function(i) {
|
|
1763
1763
|
if (i.pluginName === t.pluginName)
|
|
1764
1764
|
throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
|
|
1765
1765
|
}), It.push(t);
|
|
1766
1766
|
},
|
|
1767
|
-
pluginEvent: function(t,
|
|
1767
|
+
pluginEvent: function(t, e, i) {
|
|
1768
1768
|
var o = this;
|
|
1769
1769
|
this.eventCanceled = !1, i.cancel = function() {
|
|
1770
1770
|
o.eventCanceled = !0;
|
|
1771
1771
|
};
|
|
1772
1772
|
var r = t + "Global";
|
|
1773
1773
|
It.forEach(function(s) {
|
|
1774
|
-
|
|
1775
|
-
sortable:
|
|
1776
|
-
}, i)),
|
|
1777
|
-
sortable:
|
|
1774
|
+
e[s.pluginName] && (e[s.pluginName][r] && e[s.pluginName][r](ct({
|
|
1775
|
+
sortable: e
|
|
1776
|
+
}, i)), e.options[s.pluginName] && e[s.pluginName][t] && e[s.pluginName][t](ct({
|
|
1777
|
+
sortable: e
|
|
1778
1778
|
}, i)));
|
|
1779
1779
|
});
|
|
1780
1780
|
},
|
|
1781
|
-
initializePlugins: function(t,
|
|
1781
|
+
initializePlugins: function(t, e, i, o) {
|
|
1782
1782
|
It.forEach(function(a) {
|
|
1783
1783
|
var l = a.pluginName;
|
|
1784
1784
|
if (!(!t.options[l] && !a.initializeByDefault)) {
|
|
1785
|
-
var u = new a(t,
|
|
1785
|
+
var u = new a(t, e, t.options);
|
|
1786
1786
|
u.sortable = t, u.options = t.options, t[l] = u, mt(i, u.defaults);
|
|
1787
1787
|
}
|
|
1788
1788
|
});
|
|
@@ -1792,36 +1792,36 @@ var It = [], _n = {
|
|
|
1792
1792
|
typeof s < "u" && (t.options[r] = s);
|
|
1793
1793
|
}
|
|
1794
1794
|
},
|
|
1795
|
-
getEventProperties: function(t,
|
|
1795
|
+
getEventProperties: function(t, e) {
|
|
1796
1796
|
var i = {};
|
|
1797
1797
|
return It.forEach(function(o) {
|
|
1798
|
-
typeof o.eventProperties == "function" && mt(i, o.eventProperties.call(
|
|
1798
|
+
typeof o.eventProperties == "function" && mt(i, o.eventProperties.call(e[o.pluginName], t));
|
|
1799
1799
|
}), i;
|
|
1800
1800
|
},
|
|
1801
|
-
modifyOption: function(t,
|
|
1801
|
+
modifyOption: function(t, e, i) {
|
|
1802
1802
|
var o;
|
|
1803
1803
|
return It.forEach(function(r) {
|
|
1804
|
-
t[r.pluginName] && r.optionListeners && typeof r.optionListeners[
|
|
1804
|
+
t[r.pluginName] && r.optionListeners && typeof r.optionListeners[e] == "function" && (o = r.optionListeners[e].call(t[r.pluginName], i));
|
|
1805
1805
|
}), o;
|
|
1806
1806
|
}
|
|
1807
1807
|
};
|
|
1808
|
-
function rs(
|
|
1809
|
-
var t =
|
|
1810
|
-
if (t = t ||
|
|
1808
|
+
function rs(n) {
|
|
1809
|
+
var t = n.sortable, e = n.rootEl, i = n.name, o = n.targetEl, r = n.cloneEl, s = n.toEl, a = n.fromEl, l = n.oldIndex, u = n.newIndex, d = n.oldDraggableIndex, c = n.newDraggableIndex, p = n.originalEvent, f = n.putSortable, g = n.extraEventProperties;
|
|
1810
|
+
if (t = t || e && e[tt], !!t) {
|
|
1811
1811
|
var y, P = t.options, L = "on" + i.charAt(0).toUpperCase() + i.substr(1);
|
|
1812
1812
|
window.CustomEvent && !yt && !we ? y = new CustomEvent(i, {
|
|
1813
1813
|
bubbles: !0,
|
|
1814
1814
|
cancelable: !0
|
|
1815
|
-
}) : (y = document.createEvent("Event"), y.initEvent(i, !0, !0)), y.to = s ||
|
|
1816
|
-
var B =
|
|
1815
|
+
}) : (y = document.createEvent("Event"), y.initEvent(i, !0, !0)), y.to = s || e, y.from = a || e, y.item = o || e, y.clone = r, y.oldIndex = l, y.newIndex = u, y.oldDraggableIndex = d, y.newDraggableIndex = c, y.originalEvent = p, y.pullMode = f ? f.lastPutMode : void 0;
|
|
1816
|
+
var B = ct(ct({}, g), Ee.getEventProperties(i, t));
|
|
1817
1817
|
for (var J in B)
|
|
1818
1818
|
y[J] = B[J];
|
|
1819
|
-
|
|
1819
|
+
e && e.dispatchEvent(y), P[L] && P[L].call(t, y);
|
|
1820
1820
|
}
|
|
1821
1821
|
}
|
|
1822
|
-
var ss = ["evt"], W = function(t,
|
|
1822
|
+
var ss = ["evt"], W = function(t, e) {
|
|
1823
1823
|
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.evt, r = Gr(i, ss);
|
|
1824
|
-
Ee.pluginEvent.bind(v)(t,
|
|
1824
|
+
Ee.pluginEvent.bind(v)(t, e, ct({
|
|
1825
1825
|
dragEl: h,
|
|
1826
1826
|
parentEl: N,
|
|
1827
1827
|
ghostEl: w,
|
|
@@ -1831,10 +1831,10 @@ var ss = ["evt"], W = function(t, n) {
|
|
|
1831
1831
|
cloneEl: D,
|
|
1832
1832
|
cloneHidden: xt,
|
|
1833
1833
|
dragStarted: te,
|
|
1834
|
-
putSortable:
|
|
1834
|
+
putSortable: U,
|
|
1835
1835
|
activeSortable: v.active,
|
|
1836
1836
|
originalEvent: o,
|
|
1837
|
-
oldIndex:
|
|
1837
|
+
oldIndex: kt,
|
|
1838
1838
|
oldDraggableIndex: ae,
|
|
1839
1839
|
newIndex: Q,
|
|
1840
1840
|
newDraggableIndex: Et,
|
|
@@ -1848,68 +1848,68 @@ var ss = ["evt"], W = function(t, n) {
|
|
|
1848
1848
|
},
|
|
1849
1849
|
dispatchSortableEvent: function(a) {
|
|
1850
1850
|
q({
|
|
1851
|
-
sortable:
|
|
1851
|
+
sortable: e,
|
|
1852
1852
|
name: a,
|
|
1853
1853
|
originalEvent: o
|
|
1854
1854
|
});
|
|
1855
1855
|
}
|
|
1856
1856
|
}, r));
|
|
1857
1857
|
};
|
|
1858
|
-
function q(
|
|
1859
|
-
rs(
|
|
1860
|
-
putSortable:
|
|
1858
|
+
function q(n) {
|
|
1859
|
+
rs(ct({
|
|
1860
|
+
putSortable: U,
|
|
1861
1861
|
cloneEl: D,
|
|
1862
1862
|
targetEl: h,
|
|
1863
1863
|
rootEl: O,
|
|
1864
|
-
oldIndex:
|
|
1864
|
+
oldIndex: kt,
|
|
1865
1865
|
oldDraggableIndex: ae,
|
|
1866
1866
|
newIndex: Q,
|
|
1867
1867
|
newDraggableIndex: Et
|
|
1868
|
-
},
|
|
1868
|
+
}, n));
|
|
1869
1869
|
}
|
|
1870
|
-
var h, N, w, O, Ot, Oe, D, xt,
|
|
1870
|
+
var h, N, w, O, Ot, Oe, D, xt, kt, Q, ae, Et, Se, U, Vt = !1, ke = !1, Ue = [], Tt, at, An, Cn, yi, bi, te, Ht, le, ue = !1, $e = !1, Re, X, Tn = [], In = !1, Fe = [], gn = typeof document < "u", _e = Xi, vi = we || yt ? "cssFloat" : "float", as = gn && !Yi && !Xi && "draggable" in document.createElement("div"), to = function() {
|
|
1871
1871
|
if (gn) {
|
|
1872
1872
|
if (yt)
|
|
1873
1873
|
return !1;
|
|
1874
|
-
var
|
|
1875
|
-
return
|
|
1874
|
+
var n = document.createElement("x");
|
|
1875
|
+
return n.style.cssText = "pointer-events:auto", n.style.pointerEvents === "auto";
|
|
1876
1876
|
}
|
|
1877
|
-
}(), eo = function(t,
|
|
1878
|
-
var i = b(t), o = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), r = Zt(t, 0,
|
|
1877
|
+
}(), eo = function(t, e) {
|
|
1878
|
+
var i = b(t), o = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), r = Zt(t, 0, e), s = Zt(t, 1, e), a = r && b(r), l = s && b(s), u = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + I(r).width, d = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + I(s).width;
|
|
1879
1879
|
if (i.display === "flex")
|
|
1880
1880
|
return i.flexDirection === "column" || i.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1881
1881
|
if (i.display === "grid")
|
|
1882
1882
|
return i.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
1883
1883
|
if (r && a.float && a.float !== "none") {
|
|
1884
|
-
var
|
|
1885
|
-
return s && (l.clear === "both" || l.clear ===
|
|
1884
|
+
var c = a.float === "left" ? "left" : "right";
|
|
1885
|
+
return s && (l.clear === "both" || l.clear === c) ? "vertical" : "horizontal";
|
|
1886
1886
|
}
|
|
1887
|
-
return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= o && i[vi] === "none" || s && i[vi] === "none" && u +
|
|
1888
|
-
}, ls = function(t,
|
|
1889
|
-
var o = i ? t.left : t.top, r = i ? t.right : t.bottom, s = i ? t.width : t.height, a = i ?
|
|
1887
|
+
return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= o && i[vi] === "none" || s && i[vi] === "none" && u + d > o) ? "vertical" : "horizontal";
|
|
1888
|
+
}, ls = function(t, e, i) {
|
|
1889
|
+
var o = i ? t.left : t.top, r = i ? t.right : t.bottom, s = i ? t.width : t.height, a = i ? e.left : e.top, l = i ? e.right : e.bottom, u = i ? e.width : e.height;
|
|
1890
1890
|
return o === a || r === l || o + s / 2 === a + u / 2;
|
|
1891
|
-
}, us = function(t,
|
|
1891
|
+
}, us = function(t, e) {
|
|
1892
1892
|
var i;
|
|
1893
|
-
return
|
|
1893
|
+
return Ue.some(function(o) {
|
|
1894
1894
|
var r = o[tt].options.emptyInsertThreshold;
|
|
1895
1895
|
if (!(!r || Wn(o))) {
|
|
1896
|
-
var s = I(o), a = t >= s.left - r && t <= s.right + r, l =
|
|
1896
|
+
var s = I(o), a = t >= s.left - r && t <= s.right + r, l = e >= s.top - r && e <= s.bottom + r;
|
|
1897
1897
|
if (a && l)
|
|
1898
1898
|
return i = o;
|
|
1899
1899
|
}
|
|
1900
1900
|
}), i;
|
|
1901
1901
|
}, no = function(t) {
|
|
1902
|
-
function
|
|
1903
|
-
return function(a, l, u,
|
|
1904
|
-
var
|
|
1905
|
-
if (r == null && (s ||
|
|
1902
|
+
function e(r, s) {
|
|
1903
|
+
return function(a, l, u, d) {
|
|
1904
|
+
var c = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
|
|
1905
|
+
if (r == null && (s || c))
|
|
1906
1906
|
return !0;
|
|
1907
1907
|
if (r == null || r === !1)
|
|
1908
1908
|
return !1;
|
|
1909
1909
|
if (s && r === "clone")
|
|
1910
1910
|
return r;
|
|
1911
1911
|
if (typeof r == "function")
|
|
1912
|
-
return
|
|
1912
|
+
return e(r(a, l, u, d), s)(a, l, u, d);
|
|
1913
1913
|
var p = (s ? a : l).options.group.name;
|
|
1914
1914
|
return r === !0 || typeof r == "string" && r === p || r.join && r.indexOf(p) > -1;
|
|
1915
1915
|
};
|
|
@@ -1917,41 +1917,41 @@ var h, N, w, O, Ot, Oe, D, xt, Ut, Q, ae, Et, Se, k, Vt = !1, Ue = !1, ke = [],
|
|
|
1917
1917
|
var i = {}, o = t.group;
|
|
1918
1918
|
(!o || Pe(o) != "object") && (o = {
|
|
1919
1919
|
name: o
|
|
1920
|
-
}), i.name = o.name, i.checkPull =
|
|
1920
|
+
}), i.name = o.name, i.checkPull = e(o.pull, !0), i.checkPut = e(o.put), i.revertClone = o.revertClone, t.group = i;
|
|
1921
1921
|
}, io = function() {
|
|
1922
1922
|
!to && w && b(w, "display", "none");
|
|
1923
1923
|
}, oo = function() {
|
|
1924
1924
|
!to && w && b(w, "display", "");
|
|
1925
1925
|
};
|
|
1926
|
-
gn && !Yi && document.addEventListener("click", function(
|
|
1927
|
-
if (
|
|
1928
|
-
return
|
|
1926
|
+
gn && !Yi && document.addEventListener("click", function(n) {
|
|
1927
|
+
if (ke)
|
|
1928
|
+
return n.preventDefault(), n.stopPropagation && n.stopPropagation(), n.stopImmediatePropagation && n.stopImmediatePropagation(), ke = !1, !1;
|
|
1929
1929
|
}, !0);
|
|
1930
1930
|
var Pt = function(t) {
|
|
1931
1931
|
if (h) {
|
|
1932
1932
|
t = t.touches ? t.touches[0] : t;
|
|
1933
|
-
var
|
|
1934
|
-
if (
|
|
1933
|
+
var e = us(t.clientX, t.clientY);
|
|
1934
|
+
if (e) {
|
|
1935
1935
|
var i = {};
|
|
1936
1936
|
for (var o in t)
|
|
1937
1937
|
t.hasOwnProperty(o) && (i[o] = t[o]);
|
|
1938
|
-
i.target = i.rootEl =
|
|
1938
|
+
i.target = i.rootEl = e, i.preventDefault = void 0, i.stopPropagation = void 0, e[tt]._onDragOver(i);
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
1941
|
-
},
|
|
1941
|
+
}, cs = function(t) {
|
|
1942
1942
|
h && h.parentNode[tt]._isOutsideThisEl(t.target);
|
|
1943
1943
|
};
|
|
1944
|
-
function v(
|
|
1945
|
-
if (!(
|
|
1946
|
-
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(
|
|
1947
|
-
this.el =
|
|
1948
|
-
var
|
|
1944
|
+
function v(n, t) {
|
|
1945
|
+
if (!(n && n.nodeType && n.nodeType === 1))
|
|
1946
|
+
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));
|
|
1947
|
+
this.el = n, this.options = t = mt({}, t), n[tt] = this;
|
|
1948
|
+
var e = {
|
|
1949
1949
|
group: null,
|
|
1950
1950
|
sort: !0,
|
|
1951
1951
|
disabled: !1,
|
|
1952
1952
|
store: null,
|
|
1953
1953
|
handle: null,
|
|
1954
|
-
draggable: /^[uo]l$/i.test(
|
|
1954
|
+
draggable: /^[uo]l$/i.test(n.nodeName) ? ">li" : ">*",
|
|
1955
1955
|
swapThreshold: 1,
|
|
1956
1956
|
// percentage; 0 <= x <= 1
|
|
1957
1957
|
invertSwap: !1,
|
|
@@ -1960,7 +1960,7 @@ function v(e, t) {
|
|
|
1960
1960
|
// will be set to same as swapThreshold if default
|
|
1961
1961
|
removeCloneOnHide: !0,
|
|
1962
1962
|
direction: function() {
|
|
1963
|
-
return eo(
|
|
1963
|
+
return eo(n, this.options);
|
|
1964
1964
|
},
|
|
1965
1965
|
ghostClass: "sortable-ghost",
|
|
1966
1966
|
chosenClass: "sortable-chosen",
|
|
@@ -1990,13 +1990,13 @@ function v(e, t) {
|
|
|
1990
1990
|
supportPointer: v.supportPointer !== !1 && "PointerEvent" in window && !re,
|
|
1991
1991
|
emptyInsertThreshold: 5
|
|
1992
1992
|
};
|
|
1993
|
-
Ee.initializePlugins(this,
|
|
1994
|
-
for (var i in
|
|
1995
|
-
!(i in t) && (t[i] =
|
|
1993
|
+
Ee.initializePlugins(this, n, e);
|
|
1994
|
+
for (var i in e)
|
|
1995
|
+
!(i in t) && (t[i] = e[i]);
|
|
1996
1996
|
no(t);
|
|
1997
1997
|
for (var o in this)
|
|
1998
1998
|
o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
|
|
1999
|
-
this.nativeDraggable = t.forceFallback ? !1 : as, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? A(
|
|
1999
|
+
this.nativeDraggable = t.forceFallback ? !1 : as, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? A(n, "pointerdown", this._onTapStart) : (A(n, "mousedown", this._onTapStart), A(n, "touchstart", this._onTapStart)), this.nativeDraggable && (A(n, "dragover", this), A(n, "dragenter", this)), Ue.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), mt(this, ns());
|
|
2000
2000
|
}
|
|
2001
2001
|
v.prototype = /** @lends Sortable.prototype */
|
|
2002
2002
|
{
|
|
@@ -2004,40 +2004,40 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2004
2004
|
_isOutsideThisEl: function(t) {
|
|
2005
2005
|
!this.el.contains(t) && t !== this.el && (Ht = null);
|
|
2006
2006
|
},
|
|
2007
|
-
_getDirection: function(t,
|
|
2008
|
-
return typeof this.options.direction == "function" ? this.options.direction.call(this, t,
|
|
2007
|
+
_getDirection: function(t, e) {
|
|
2008
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, h) : this.options.direction;
|
|
2009
2009
|
},
|
|
2010
2010
|
_onTapStart: function(t) {
|
|
2011
2011
|
if (t.cancelable) {
|
|
2012
|
-
var
|
|
2012
|
+
var e = this, i = this.el, o = this.options, r = o.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, d = o.filter;
|
|
2013
2013
|
if (bs(i), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !u.isContentEditable && !(!this.nativeDraggable && re && l && l.tagName.toUpperCase() === "SELECT") && (l = lt(l, o.draggable, i, !1), !(l && l.animated) && Oe !== l)) {
|
|
2014
|
-
if (
|
|
2015
|
-
if (
|
|
2014
|
+
if (kt = nt(l), ae = nt(l, o.draggable), typeof d == "function") {
|
|
2015
|
+
if (d.call(this, t, l, this)) {
|
|
2016
2016
|
q({
|
|
2017
|
-
sortable:
|
|
2017
|
+
sortable: e,
|
|
2018
2018
|
rootEl: u,
|
|
2019
2019
|
name: "filter",
|
|
2020
2020
|
targetEl: l,
|
|
2021
2021
|
toEl: i,
|
|
2022
2022
|
fromEl: i
|
|
2023
|
-
}), W("filter",
|
|
2023
|
+
}), W("filter", e, {
|
|
2024
2024
|
evt: t
|
|
2025
2025
|
}), r && t.cancelable && t.preventDefault();
|
|
2026
2026
|
return;
|
|
2027
2027
|
}
|
|
2028
|
-
} else if (
|
|
2029
|
-
if (
|
|
2028
|
+
} else if (d && (d = d.split(",").some(function(c) {
|
|
2029
|
+
if (c = lt(u, c.trim(), i, !1), c)
|
|
2030
2030
|
return q({
|
|
2031
|
-
sortable:
|
|
2032
|
-
rootEl:
|
|
2031
|
+
sortable: e,
|
|
2032
|
+
rootEl: c,
|
|
2033
2033
|
name: "filter",
|
|
2034
2034
|
targetEl: l,
|
|
2035
2035
|
fromEl: i,
|
|
2036
2036
|
toEl: i
|
|
2037
|
-
}), W("filter",
|
|
2037
|
+
}), W("filter", e, {
|
|
2038
2038
|
evt: t
|
|
2039
2039
|
}), !0;
|
|
2040
|
-
}),
|
|
2040
|
+
}), d)) {
|
|
2041
2041
|
r && t.cancelable && t.preventDefault();
|
|
2042
2042
|
return;
|
|
2043
2043
|
}
|
|
@@ -2045,31 +2045,31 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2045
2045
|
}
|
|
2046
2046
|
}
|
|
2047
2047
|
},
|
|
2048
|
-
_prepareDragStart: function(t,
|
|
2048
|
+
_prepareDragStart: function(t, e, i) {
|
|
2049
2049
|
var o = this, r = o.el, s = o.options, a = r.ownerDocument, l;
|
|
2050
2050
|
if (i && !h && i.parentNode === r) {
|
|
2051
2051
|
var u = I(i);
|
|
2052
2052
|
if (O = r, h = i, N = h.parentNode, Ot = h.nextSibling, Oe = i, Se = s.group, v.dragged = h, Tt = {
|
|
2053
2053
|
target: h,
|
|
2054
|
-
clientX: (
|
|
2055
|
-
clientY: (
|
|
2056
|
-
}, yi = Tt.clientX - u.left, bi = Tt.clientY - u.top, this._lastX = (
|
|
2054
|
+
clientX: (e || t).clientX,
|
|
2055
|
+
clientY: (e || t).clientY
|
|
2056
|
+
}, yi = Tt.clientX - u.left, bi = Tt.clientY - u.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, h.style["will-change"] = "all", l = function() {
|
|
2057
2057
|
if (W("delayEnded", o, {
|
|
2058
2058
|
evt: t
|
|
2059
2059
|
}), v.eventCanceled) {
|
|
2060
2060
|
o._onDrop();
|
|
2061
2061
|
return;
|
|
2062
2062
|
}
|
|
2063
|
-
o._disableDelayedDragEvents(), !pi && o.nativeDraggable && (h.draggable = !0), o._triggerDragStart(t,
|
|
2063
|
+
o._disableDelayedDragEvents(), !pi && o.nativeDraggable && (h.draggable = !0), o._triggerDragStart(t, e), q({
|
|
2064
2064
|
sortable: o,
|
|
2065
2065
|
name: "choose",
|
|
2066
2066
|
originalEvent: t
|
|
2067
2067
|
}), K(h, s.chosenClass, !0);
|
|
2068
|
-
}, s.ignore.split(",").forEach(function(
|
|
2069
|
-
Wi(h,
|
|
2068
|
+
}, s.ignore.split(",").forEach(function(d) {
|
|
2069
|
+
Wi(h, d.trim(), Pn);
|
|
2070
2070
|
}), A(a, "dragover", Pt), A(a, "mousemove", Pt), A(a, "touchmove", Pt), A(a, "mouseup", o._onDrop), A(a, "touchend", o._onDrop), A(a, "touchcancel", o._onDrop), pi && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), W("delayStart", this, {
|
|
2071
2071
|
evt: t
|
|
2072
|
-
}), s.delay && (!s.delayOnTouchOnly ||
|
|
2072
|
+
}), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(we || yt))) {
|
|
2073
2073
|
if (v.eventCanceled) {
|
|
2074
2074
|
this._onDrop();
|
|
2075
2075
|
return;
|
|
@@ -2080,8 +2080,8 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2080
2080
|
}
|
|
2081
2081
|
},
|
|
2082
2082
|
_delayedDragTouchMoveHandler: function(t) {
|
|
2083
|
-
var
|
|
2084
|
-
Math.max(Math.abs(
|
|
2083
|
+
var e = t.touches ? t.touches[0] : t;
|
|
2084
|
+
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();
|
|
2085
2085
|
},
|
|
2086
2086
|
_disableDelayedDrag: function() {
|
|
2087
2087
|
h && Pn(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
@@ -2090,8 +2090,8 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2090
2090
|
var t = this.el.ownerDocument;
|
|
2091
2091
|
S(t, "mouseup", this._disableDelayedDrag), S(t, "touchend", this._disableDelayedDrag), S(t, "touchcancel", this._disableDelayedDrag), S(t, "mousemove", this._delayedDragTouchMoveHandler), S(t, "touchmove", this._delayedDragTouchMoveHandler), S(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
2092
2092
|
},
|
|
2093
|
-
_triggerDragStart: function(t,
|
|
2094
|
-
|
|
2093
|
+
_triggerDragStart: function(t, e) {
|
|
2094
|
+
e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? A(document, "pointermove", this._onTouchMove) : e ? A(document, "touchmove", this._onTouchMove) : A(document, "mousemove", this._onTouchMove) : (A(h, "dragend", this), A(O, "dragstart", this._onDragStart));
|
|
2095
2095
|
try {
|
|
2096
2096
|
document.selection ? De(function() {
|
|
2097
2097
|
document.selection.empty();
|
|
@@ -2099,16 +2099,16 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2099
2099
|
} catch {
|
|
2100
2100
|
}
|
|
2101
2101
|
},
|
|
2102
|
-
_dragStarted: function(t,
|
|
2102
|
+
_dragStarted: function(t, e) {
|
|
2103
2103
|
if (Vt = !1, O && h) {
|
|
2104
2104
|
W("dragStarted", this, {
|
|
2105
|
-
evt:
|
|
2106
|
-
}), this.nativeDraggable && A(document, "dragover",
|
|
2105
|
+
evt: e
|
|
2106
|
+
}), this.nativeDraggable && A(document, "dragover", cs);
|
|
2107
2107
|
var i = this.options;
|
|
2108
2108
|
!t && K(h, i.dragClass, !1), K(h, i.ghostClass, !0), v.active = this, t && this._appendGhost(), q({
|
|
2109
2109
|
sortable: this,
|
|
2110
2110
|
name: "start",
|
|
2111
|
-
originalEvent:
|
|
2111
|
+
originalEvent: e
|
|
2112
2112
|
});
|
|
2113
2113
|
} else
|
|
2114
2114
|
this._nulling();
|
|
@@ -2116,60 +2116,60 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2116
2116
|
_emulateDragOver: function() {
|
|
2117
2117
|
if (at) {
|
|
2118
2118
|
this._lastX = at.clientX, this._lastY = at.clientY, io();
|
|
2119
|
-
for (var t = document.elementFromPoint(at.clientX, at.clientY),
|
|
2120
|
-
|
|
2121
|
-
if (h.parentNode[tt]._isOutsideThisEl(t),
|
|
2119
|
+
for (var t = document.elementFromPoint(at.clientX, at.clientY), e = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(at.clientX, at.clientY), t !== e); )
|
|
2120
|
+
e = t;
|
|
2121
|
+
if (h.parentNode[tt]._isOutsideThisEl(t), e)
|
|
2122
2122
|
do {
|
|
2123
|
-
if (
|
|
2123
|
+
if (e[tt]) {
|
|
2124
2124
|
var i = void 0;
|
|
2125
|
-
if (i =
|
|
2125
|
+
if (i = e[tt]._onDragOver({
|
|
2126
2126
|
clientX: at.clientX,
|
|
2127
2127
|
clientY: at.clientY,
|
|
2128
2128
|
target: t,
|
|
2129
|
-
rootEl:
|
|
2129
|
+
rootEl: e
|
|
2130
2130
|
}), i && !this.options.dragoverBubble)
|
|
2131
2131
|
break;
|
|
2132
2132
|
}
|
|
2133
|
-
t =
|
|
2134
|
-
} while (
|
|
2133
|
+
t = e;
|
|
2134
|
+
} while (e = e.parentNode);
|
|
2135
2135
|
oo();
|
|
2136
2136
|
}
|
|
2137
2137
|
},
|
|
2138
2138
|
_onTouchMove: function(t) {
|
|
2139
2139
|
if (Tt) {
|
|
2140
|
-
var
|
|
2140
|
+
var e = this.options, i = e.fallbackTolerance, o = e.fallbackOffset, r = t.touches ? t.touches[0] : t, s = w && Ut(w, !0), a = w && s && s.a, l = w && s && s.d, u = _e && X && mi(X), d = (r.clientX - Tt.clientX + o.x) / (a || 1) + (u ? u[0] - Tn[0] : 0) / (a || 1), c = (r.clientY - Tt.clientY + o.y) / (l || 1) + (u ? u[1] - Tn[1] : 0) / (l || 1);
|
|
2141
2141
|
if (!v.active && !Vt) {
|
|
2142
2142
|
if (i && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < i)
|
|
2143
2143
|
return;
|
|
2144
2144
|
this._onDragStart(t, !0);
|
|
2145
2145
|
}
|
|
2146
2146
|
if (w) {
|
|
2147
|
-
s ? (s.e +=
|
|
2147
|
+
s ? (s.e += d - (An || 0), s.f += c - (Cn || 0)) : s = {
|
|
2148
2148
|
a: 1,
|
|
2149
2149
|
b: 0,
|
|
2150
2150
|
c: 0,
|
|
2151
2151
|
d: 1,
|
|
2152
|
-
e:
|
|
2153
|
-
f:
|
|
2152
|
+
e: d,
|
|
2153
|
+
f: c
|
|
2154
2154
|
};
|
|
2155
2155
|
var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
|
|
2156
|
-
b(w, "webkitTransform", p), b(w, "mozTransform", p), b(w, "msTransform", p), b(w, "transform", p), An =
|
|
2156
|
+
b(w, "webkitTransform", p), b(w, "mozTransform", p), b(w, "msTransform", p), b(w, "transform", p), An = d, Cn = c, at = r;
|
|
2157
2157
|
}
|
|
2158
2158
|
t.cancelable && t.preventDefault();
|
|
2159
2159
|
}
|
|
2160
2160
|
},
|
|
2161
2161
|
_appendGhost: function() {
|
|
2162
2162
|
if (!w) {
|
|
2163
|
-
var t = this.options.fallbackOnBody ? document.body : O,
|
|
2163
|
+
var t = this.options.fallbackOnBody ? document.body : O, e = I(h, !0, _e, !0, t), i = this.options;
|
|
2164
2164
|
if (_e) {
|
|
2165
2165
|
for (X = t; b(X, "position") === "static" && b(X, "transform") === "none" && X !== document; )
|
|
2166
2166
|
X = X.parentNode;
|
|
2167
|
-
X !== document.body && X !== document.documentElement ? (X === document && (X = ut()),
|
|
2167
|
+
X !== document.body && X !== document.documentElement ? (X === document && (X = ut()), e.top += X.scrollTop, e.left += X.scrollLeft) : X = ut(), Tn = mi(X);
|
|
2168
2168
|
}
|
|
2169
|
-
w = h.cloneNode(!0), K(w, i.ghostClass, !1), K(w, i.fallbackClass, !0), K(w, i.dragClass, !0), b(w, "transition", ""), b(w, "transform", ""), b(w, "box-sizing", "border-box"), b(w, "margin", 0), b(w, "top",
|
|
2169
|
+
w = h.cloneNode(!0), K(w, i.ghostClass, !1), K(w, i.fallbackClass, !0), K(w, i.dragClass, !0), b(w, "transition", ""), b(w, "transform", ""), b(w, "box-sizing", "border-box"), b(w, "margin", 0), b(w, "top", e.top), b(w, "left", e.left), b(w, "width", e.width), b(w, "height", e.height), b(w, "opacity", "0.8"), b(w, "position", _e ? "absolute" : "fixed"), b(w, "zIndex", "100000"), b(w, "pointerEvents", "none"), v.ghost = w, t.appendChild(w), b(w, "transform-origin", yi / parseInt(w.style.width) * 100 + "% " + bi / parseInt(w.style.height) * 100 + "%");
|
|
2170
2170
|
}
|
|
2171
2171
|
},
|
|
2172
|
-
_onDragStart: function(t,
|
|
2172
|
+
_onDragStart: function(t, e) {
|
|
2173
2173
|
var i = this, o = t.dataTransfer, r = i.options;
|
|
2174
2174
|
if (W("dragStart", this, {
|
|
2175
2175
|
evt: t
|
|
@@ -2182,27 +2182,27 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2182
2182
|
sortable: i,
|
|
2183
2183
|
name: "clone"
|
|
2184
2184
|
}));
|
|
2185
|
-
}), !
|
|
2185
|
+
}), !e && K(h, r.dragClass, !0), e ? (ke = !0, i._loopId = setInterval(i._emulateDragOver, 50)) : (S(document, "mouseup", i._onDrop), S(document, "touchend", i._onDrop), S(document, "touchcancel", i._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(i, o, h)), A(document, "drop", i), b(h, "transform", "translateZ(0)")), Vt = !0, i._dragStartId = De(i._dragStarted.bind(i, e, t)), A(document, "selectstart", i), te = !0, re && b(document.body, "user-select", "none");
|
|
2186
2186
|
},
|
|
2187
2187
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
2188
2188
|
_onDragOver: function(t) {
|
|
2189
|
-
var
|
|
2189
|
+
var e = this.el, i = t.target, o, r, s, a = this.options, l = a.group, u = v.active, d = Se === l, c = a.sort, p = U || u, f, g = this, y = !1;
|
|
2190
2190
|
if (In)
|
|
2191
2191
|
return;
|
|
2192
2192
|
function P(Gt, Oo) {
|
|
2193
|
-
W(Gt, g,
|
|
2193
|
+
W(Gt, g, ct({
|
|
2194
2194
|
evt: t,
|
|
2195
|
-
isOwner:
|
|
2195
|
+
isOwner: d,
|
|
2196
2196
|
axis: f ? "vertical" : "horizontal",
|
|
2197
2197
|
revert: s,
|
|
2198
2198
|
dragRect: o,
|
|
2199
2199
|
targetRect: r,
|
|
2200
|
-
canSort:
|
|
2200
|
+
canSort: c,
|
|
2201
2201
|
fromSortable: p,
|
|
2202
2202
|
target: i,
|
|
2203
2203
|
completed: B,
|
|
2204
2204
|
onMove: function(Qn, Ro) {
|
|
2205
|
-
return Ae(O,
|
|
2205
|
+
return Ae(O, e, h, o, Qn, I(Qn), t, Ro);
|
|
2206
2206
|
},
|
|
2207
2207
|
changed: J
|
|
2208
2208
|
}, Oo));
|
|
@@ -2213,62 +2213,62 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2213
2213
|
function B(Gt) {
|
|
2214
2214
|
return P("dragOverCompleted", {
|
|
2215
2215
|
insertion: Gt
|
|
2216
|
-
}), Gt && (
|
|
2216
|
+
}), Gt && (d ? u._hideClone() : u._showClone(g), g !== p && (K(h, U ? U.options.ghostClass : u.options.ghostClass, !1), K(h, a.ghostClass, !0)), U !== g && g !== v.active ? U = g : g === v.active && U && (U = null), p === g && (g._ignoreWhileAnimating = i), g.animateAll(function() {
|
|
2217
2217
|
P("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
|
|
2218
|
-
}), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i === h && !h.animated || i ===
|
|
2218
|
+
}), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i === h && !h.animated || i === e && !i.animated) && (Ht = null), !a.dragoverBubble && !t.rootEl && i !== document && (h.parentNode[tt]._isOutsideThisEl(t.target), !Gt && Pt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), y = !0;
|
|
2219
2219
|
}
|
|
2220
2220
|
function J() {
|
|
2221
2221
|
Q = nt(h), Et = nt(h, a.draggable), q({
|
|
2222
2222
|
sortable: g,
|
|
2223
2223
|
name: "change",
|
|
2224
|
-
toEl:
|
|
2224
|
+
toEl: e,
|
|
2225
2225
|
newIndex: Q,
|
|
2226
2226
|
newDraggableIndex: Et,
|
|
2227
2227
|
originalEvent: t
|
|
2228
2228
|
});
|
|
2229
2229
|
}
|
|
2230
|
-
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i = lt(i, a.draggable,
|
|
2230
|
+
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i = lt(i, a.draggable, e, !0), P("dragOver"), v.eventCanceled)
|
|
2231
2231
|
return y;
|
|
2232
2232
|
if (h.contains(t.target) || i.animated && i.animatingX && i.animatingY || g._ignoreWhileAnimating === i)
|
|
2233
2233
|
return B(!1);
|
|
2234
|
-
if (
|
|
2234
|
+
if (ke = !1, u && !a.disabled && (d ? c || (s = N !== O) : U === this || (this.lastPutMode = Se.checkPull(this, u, h, t)) && l.checkPut(this, u, h, t))) {
|
|
2235
2235
|
if (f = this._getDirection(t, i) === "vertical", o = I(h), P("dragOverValid"), v.eventCanceled)
|
|
2236
2236
|
return y;
|
|
2237
2237
|
if (s)
|
|
2238
2238
|
return N = O, L(), this._hideClone(), P("revert"), v.eventCanceled || (Ot ? O.insertBefore(h, Ot) : O.appendChild(h)), B(!0);
|
|
2239
|
-
var Y = Wn(
|
|
2239
|
+
var Y = Wn(e, a.draggable);
|
|
2240
2240
|
if (!Y || fs(t, f, this) && !Y.animated) {
|
|
2241
2241
|
if (Y === h)
|
|
2242
2242
|
return B(!1);
|
|
2243
|
-
if (Y &&
|
|
2244
|
-
return L(), Y && Y.nextSibling ?
|
|
2243
|
+
if (Y && e === t.target && (i = Y), i && (r = I(i)), Ae(O, e, h, o, i, r, t, !!i) !== !1)
|
|
2244
|
+
return L(), Y && Y.nextSibling ? e.insertBefore(h, Y.nextSibling) : e.appendChild(h), N = e, J(), B(!0);
|
|
2245
2245
|
} else if (Y && ps(t, f, this)) {
|
|
2246
|
-
var rt = Zt(
|
|
2246
|
+
var rt = Zt(e, 0, a, !0);
|
|
2247
2247
|
if (rt === h)
|
|
2248
2248
|
return B(!1);
|
|
2249
|
-
if (i = rt, r = I(i), Ae(O,
|
|
2250
|
-
return L(),
|
|
2251
|
-
} else if (i.parentNode ===
|
|
2249
|
+
if (i = rt, r = I(i), Ae(O, e, h, o, i, r, t, !1) !== !1)
|
|
2250
|
+
return L(), e.insertBefore(h, rt), N = e, J(), B(!0);
|
|
2251
|
+
} else if (i.parentNode === e) {
|
|
2252
2252
|
r = I(i);
|
|
2253
|
-
var C = 0, z, st = h.parentNode !==
|
|
2253
|
+
var C = 0, z, st = h.parentNode !== e, Z = !ls(h.animated && h.toRect || o, i.animated && i.toRect || r, f), Yt = f ? "top" : "left", bt = gi(i, "top", "top") || gi(h, "top", "top"), qt = bt ? bt.scrollTop : void 0;
|
|
2254
2254
|
Ht !== i && (z = r[Yt], ue = !1, $e = !Z && a.invertSwap || st), C = gs(t, i, r, f, Z ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, $e, Ht === i);
|
|
2255
|
-
var
|
|
2255
|
+
var dt;
|
|
2256
2256
|
if (C !== 0) {
|
|
2257
2257
|
var _t = nt(h);
|
|
2258
2258
|
do
|
|
2259
|
-
_t -= C,
|
|
2260
|
-
while (
|
|
2259
|
+
_t -= C, dt = N.children[_t];
|
|
2260
|
+
while (dt && (b(dt, "display") === "none" || dt === w));
|
|
2261
2261
|
}
|
|
2262
|
-
if (C === 0 ||
|
|
2262
|
+
if (C === 0 || dt === i)
|
|
2263
2263
|
return B(!1);
|
|
2264
2264
|
Ht = i, le = C;
|
|
2265
2265
|
var Wt = i.nextElementSibling, vt = !1;
|
|
2266
2266
|
vt = C === 1;
|
|
2267
|
-
var xe = Ae(O,
|
|
2267
|
+
var xe = Ae(O, e, h, o, i, r, t, vt);
|
|
2268
2268
|
if (xe !== !1)
|
|
2269
|
-
return (xe === 1 || xe === -1) && (vt = xe === 1), In = !0, setTimeout(hs, 30), L(), vt && !Wt ?
|
|
2269
|
+
return (xe === 1 || xe === -1) && (vt = xe === 1), In = !0, setTimeout(hs, 30), L(), vt && !Wt ? e.appendChild(h) : i.parentNode.insertBefore(h, vt ? Wt : i), bt && Ji(bt, 0, qt - bt.scrollTop), N = h.parentNode, z !== void 0 && !$e && (Re = Math.abs(z - I(i)[Yt])), J(), B(!0);
|
|
2270
2270
|
}
|
|
2271
|
-
if (
|
|
2271
|
+
if (e.contains(h))
|
|
2272
2272
|
return B(!1);
|
|
2273
2273
|
}
|
|
2274
2274
|
return !1;
|
|
@@ -2282,14 +2282,14 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2282
2282
|
S(t, "mouseup", this._onDrop), S(t, "touchend", this._onDrop), S(t, "pointerup", this._onDrop), S(t, "touchcancel", this._onDrop), S(document, "selectstart", this);
|
|
2283
2283
|
},
|
|
2284
2284
|
_onDrop: function(t) {
|
|
2285
|
-
var
|
|
2285
|
+
var e = this.el, i = this.options;
|
|
2286
2286
|
if (Q = nt(h), Et = nt(h, i.draggable), W("drop", this, {
|
|
2287
2287
|
evt: t
|
|
2288
2288
|
}), N = h && h.parentNode, Q = nt(h), Et = nt(h, i.draggable), v.eventCanceled) {
|
|
2289
2289
|
this._nulling();
|
|
2290
2290
|
return;
|
|
2291
2291
|
}
|
|
2292
|
-
Vt = !1, $e = !1, ue = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Hn(this.cloneId), Hn(this._dragStartId), this.nativeDraggable && (S(document, "drop", this), S(
|
|
2292
|
+
Vt = !1, $e = !1, ue = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Hn(this.cloneId), Hn(this._dragStartId), this.nativeDraggable && (S(document, "drop", this), S(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), re && b(document.body, "user-select", ""), b(h, "transform", ""), t && (te && (t.cancelable && t.preventDefault(), !i.dropBubble && t.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (O === N || U && U.lastPutMode !== "clone") && D && D.parentNode && D.parentNode.removeChild(D), h && (this.nativeDraggable && S(h, "dragend", this), Pn(h), h.style["will-change"] = "", te && !Vt && K(h, U ? U.options.ghostClass : this.options.ghostClass, !1), K(h, this.options.chosenClass, !1), q({
|
|
2293
2293
|
sortable: this,
|
|
2294
2294
|
name: "unchoose",
|
|
2295
2295
|
toEl: N,
|
|
@@ -2318,7 +2318,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2318
2318
|
name: "sort",
|
|
2319
2319
|
toEl: N,
|
|
2320
2320
|
originalEvent: t
|
|
2321
|
-
})),
|
|
2321
|
+
})), U && U.save()) : Q !== kt && Q >= 0 && (q({
|
|
2322
2322
|
sortable: this,
|
|
2323
2323
|
name: "update",
|
|
2324
2324
|
toEl: N,
|
|
@@ -2328,7 +2328,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2328
2328
|
name: "sort",
|
|
2329
2329
|
toEl: N,
|
|
2330
2330
|
originalEvent: t
|
|
2331
|
-
})), v.active && ((Q == null || Q === -1) && (Q =
|
|
2331
|
+
})), v.active && ((Q == null || Q === -1) && (Q = kt, Et = ae), q({
|
|
2332
2332
|
sortable: this,
|
|
2333
2333
|
name: "end",
|
|
2334
2334
|
toEl: N,
|
|
@@ -2336,7 +2336,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2336
2336
|
}), this.save()))), this._nulling();
|
|
2337
2337
|
},
|
|
2338
2338
|
_nulling: function() {
|
|
2339
|
-
W("nulling", this), O = h = N = w = Ot = D = Oe = xt = Tt = at = te = Q = Et =
|
|
2339
|
+
W("nulling", this), O = h = N = w = Ot = D = Oe = xt = Tt = at = te = Q = Et = kt = ae = Ht = le = U = Se = v.dragged = v.ghost = v.clone = v.active = null, Fe.forEach(function(t) {
|
|
2340
2340
|
t.checked = !0;
|
|
2341
2341
|
}), Fe.length = An = Cn = 0;
|
|
2342
2342
|
},
|
|
@@ -2348,7 +2348,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2348
2348
|
break;
|
|
2349
2349
|
case "dragenter":
|
|
2350
2350
|
case "dragover":
|
|
2351
|
-
h && (this._onDragOver(t),
|
|
2351
|
+
h && (this._onDragOver(t), ds(t));
|
|
2352
2352
|
break;
|
|
2353
2353
|
case "selectstart":
|
|
2354
2354
|
t.preventDefault();
|
|
@@ -2360,22 +2360,22 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2360
2360
|
* @returns {String[]}
|
|
2361
2361
|
*/
|
|
2362
2362
|
toArray: function() {
|
|
2363
|
-
for (var t = [],
|
|
2364
|
-
|
|
2363
|
+
for (var t = [], e, i = this.el.children, o = 0, r = i.length, s = this.options; o < r; o++)
|
|
2364
|
+
e = i[o], lt(e, s.draggable, this.el, !1) && t.push(e.getAttribute(s.dataIdAttr) || ys(e));
|
|
2365
2365
|
return t;
|
|
2366
2366
|
},
|
|
2367
2367
|
/**
|
|
2368
2368
|
* Sorts the elements according to the array.
|
|
2369
2369
|
* @param {String[]} order order of the items
|
|
2370
2370
|
*/
|
|
2371
|
-
sort: function(t,
|
|
2371
|
+
sort: function(t, e) {
|
|
2372
2372
|
var i = {}, o = this.el;
|
|
2373
2373
|
this.toArray().forEach(function(r, s) {
|
|
2374
2374
|
var a = o.children[s];
|
|
2375
2375
|
lt(a, this.options.draggable, o, !1) && (i[r] = a);
|
|
2376
|
-
}, this),
|
|
2376
|
+
}, this), e && this.captureAnimationState(), t.forEach(function(r) {
|
|
2377
2377
|
i[r] && (o.removeChild(i[r]), o.appendChild(i[r]));
|
|
2378
|
-
}),
|
|
2378
|
+
}), e && this.animateAll();
|
|
2379
2379
|
},
|
|
2380
2380
|
/**
|
|
2381
2381
|
* Save the current sorting
|
|
@@ -2390,8 +2390,8 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2390
2390
|
* @param {String} [selector] default: `options.draggable`
|
|
2391
2391
|
* @returns {HTMLElement|null}
|
|
2392
2392
|
*/
|
|
2393
|
-
closest: function(t,
|
|
2394
|
-
return lt(t,
|
|
2393
|
+
closest: function(t, e) {
|
|
2394
|
+
return lt(t, e || this.options.draggable, this.el, !1);
|
|
2395
2395
|
},
|
|
2396
2396
|
/**
|
|
2397
2397
|
* Set/get option
|
|
@@ -2399,12 +2399,12 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2399
2399
|
* @param {*} [value]
|
|
2400
2400
|
* @returns {*}
|
|
2401
2401
|
*/
|
|
2402
|
-
option: function(t,
|
|
2402
|
+
option: function(t, e) {
|
|
2403
2403
|
var i = this.options;
|
|
2404
|
-
if (
|
|
2404
|
+
if (e === void 0)
|
|
2405
2405
|
return i[t];
|
|
2406
|
-
var o = Ee.modifyOption(this, t,
|
|
2407
|
-
typeof o < "u" ? i[t] = o : i[t] =
|
|
2406
|
+
var o = Ee.modifyOption(this, t, e);
|
|
2407
|
+
typeof o < "u" ? i[t] = o : i[t] = e, t === "group" && no(i);
|
|
2408
2408
|
},
|
|
2409
2409
|
/**
|
|
2410
2410
|
* Destroy
|
|
@@ -2412,9 +2412,9 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2412
2412
|
destroy: function() {
|
|
2413
2413
|
W("destroy", this);
|
|
2414
2414
|
var t = this.el;
|
|
2415
|
-
t[tt] = null, S(t, "mousedown", this._onTapStart), S(t, "touchstart", this._onTapStart), S(t, "pointerdown", this._onTapStart), this.nativeDraggable && (S(t, "dragover", this), S(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(
|
|
2416
|
-
|
|
2417
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
2415
|
+
t[tt] = null, S(t, "mousedown", this._onTapStart), S(t, "touchstart", this._onTapStart), S(t, "pointerdown", this._onTapStart), this.nativeDraggable && (S(t, "dragover", this), S(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(e) {
|
|
2416
|
+
e.removeAttribute("draggable");
|
|
2417
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), Ue.splice(Ue.indexOf(this.el), 1), this.el = t = null;
|
|
2418
2418
|
},
|
|
2419
2419
|
_hideClone: function() {
|
|
2420
2420
|
if (!xt) {
|
|
@@ -2435,74 +2435,74 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2435
2435
|
}
|
|
2436
2436
|
}
|
|
2437
2437
|
};
|
|
2438
|
-
function
|
|
2439
|
-
|
|
2438
|
+
function ds(n) {
|
|
2439
|
+
n.dataTransfer && (n.dataTransfer.dropEffect = "move"), n.cancelable && n.preventDefault();
|
|
2440
2440
|
}
|
|
2441
|
-
function Ae(
|
|
2442
|
-
var l, u =
|
|
2441
|
+
function Ae(n, t, e, i, o, r, s, a) {
|
|
2442
|
+
var l, u = n[tt], d = u.options.onMove, c;
|
|
2443
2443
|
return window.CustomEvent && !yt && !we ? l = new CustomEvent("move", {
|
|
2444
2444
|
bubbles: !0,
|
|
2445
2445
|
cancelable: !0
|
|
2446
|
-
}) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from =
|
|
2446
|
+
}) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = n, l.dragged = e, l.draggedRect = i, l.related = o || t, l.relatedRect = r || I(t), l.willInsertAfter = a, l.originalEvent = s, n.dispatchEvent(l), d && (c = d.call(u, l, s)), c;
|
|
2447
2447
|
}
|
|
2448
|
-
function Pn(
|
|
2449
|
-
|
|
2448
|
+
function Pn(n) {
|
|
2449
|
+
n.draggable = !1;
|
|
2450
2450
|
}
|
|
2451
2451
|
function hs() {
|
|
2452
2452
|
In = !1;
|
|
2453
2453
|
}
|
|
2454
|
-
function ps(
|
|
2455
|
-
var i = I(Zt(
|
|
2456
|
-
return t ?
|
|
2454
|
+
function ps(n, t, e) {
|
|
2455
|
+
var i = I(Zt(e.el, 0, e.options, !0)), o = Qi(e.el, e.options, w), r = 10;
|
|
2456
|
+
return t ? n.clientX < o.left - r || n.clientY < i.top && n.clientX < i.right : n.clientY < o.top - r || n.clientY < i.bottom && n.clientX < i.left;
|
|
2457
2457
|
}
|
|
2458
|
-
function fs(
|
|
2459
|
-
var i = I(Wn(
|
|
2460
|
-
return t ?
|
|
2458
|
+
function fs(n, t, e) {
|
|
2459
|
+
var i = I(Wn(e.el, e.options.draggable)), o = Qi(e.el, e.options, w), r = 10;
|
|
2460
|
+
return t ? n.clientX > o.right + r || n.clientY > i.bottom && n.clientX > i.left : n.clientY > o.bottom + r || n.clientX > i.right && n.clientY > i.top;
|
|
2461
2461
|
}
|
|
2462
|
-
function gs(
|
|
2463
|
-
var l = i ?
|
|
2462
|
+
function gs(n, t, e, i, o, r, s, a) {
|
|
2463
|
+
var l = i ? n.clientY : n.clientX, u = i ? e.height : e.width, d = i ? e.top : e.left, c = i ? e.bottom : e.right, p = !1;
|
|
2464
2464
|
if (!s) {
|
|
2465
2465
|
if (a && Re < u * o) {
|
|
2466
|
-
if (!ue && (le === 1 ? l >
|
|
2466
|
+
if (!ue && (le === 1 ? l > d + u * r / 2 : l < c - u * r / 2) && (ue = !0), ue)
|
|
2467
2467
|
p = !0;
|
|
2468
|
-
else if (le === 1 ? l <
|
|
2468
|
+
else if (le === 1 ? l < d + Re : l > c - Re)
|
|
2469
2469
|
return -le;
|
|
2470
|
-
} else if (l >
|
|
2470
|
+
} else if (l > d + u * (1 - o) / 2 && l < c - u * (1 - o) / 2)
|
|
2471
2471
|
return ms(t);
|
|
2472
2472
|
}
|
|
2473
|
-
return p = p || s, p && (l <
|
|
2473
|
+
return p = p || s, p && (l < d + u * r / 2 || l > c - u * r / 2) ? l > d + u / 2 ? 1 : -1 : 0;
|
|
2474
2474
|
}
|
|
2475
|
-
function ms(
|
|
2476
|
-
return nt(h) < nt(
|
|
2475
|
+
function ms(n) {
|
|
2476
|
+
return nt(h) < nt(n) ? 1 : -1;
|
|
2477
2477
|
}
|
|
2478
|
-
function ys(
|
|
2479
|
-
for (var t =
|
|
2480
|
-
i += t.charCodeAt(
|
|
2478
|
+
function ys(n) {
|
|
2479
|
+
for (var t = n.tagName + n.className + n.src + n.href + n.textContent, e = t.length, i = 0; e--; )
|
|
2480
|
+
i += t.charCodeAt(e);
|
|
2481
2481
|
return i.toString(36);
|
|
2482
2482
|
}
|
|
2483
|
-
function bs(
|
|
2483
|
+
function bs(n) {
|
|
2484
2484
|
Fe.length = 0;
|
|
2485
|
-
for (var t =
|
|
2486
|
-
var i = t[
|
|
2485
|
+
for (var t = n.getElementsByTagName("input"), e = t.length; e--; ) {
|
|
2486
|
+
var i = t[e];
|
|
2487
2487
|
i.checked && Fe.push(i);
|
|
2488
2488
|
}
|
|
2489
2489
|
}
|
|
2490
|
-
function De(
|
|
2491
|
-
return setTimeout(
|
|
2490
|
+
function De(n) {
|
|
2491
|
+
return setTimeout(n, 0);
|
|
2492
2492
|
}
|
|
2493
|
-
function Hn(
|
|
2494
|
-
return clearTimeout(
|
|
2493
|
+
function Hn(n) {
|
|
2494
|
+
return clearTimeout(n);
|
|
2495
2495
|
}
|
|
2496
|
-
gn && A(document, "touchmove", function(
|
|
2497
|
-
(v.active || Vt) &&
|
|
2496
|
+
gn && A(document, "touchmove", function(n) {
|
|
2497
|
+
(v.active || Vt) && n.cancelable && n.preventDefault();
|
|
2498
2498
|
});
|
|
2499
2499
|
v.utils = {
|
|
2500
2500
|
on: A,
|
|
2501
2501
|
off: S,
|
|
2502
2502
|
css: b,
|
|
2503
2503
|
find: Wi,
|
|
2504
|
-
is: function(t,
|
|
2505
|
-
return !!lt(t,
|
|
2504
|
+
is: function(t, e) {
|
|
2505
|
+
return !!lt(t, e, t, !1);
|
|
2506
2506
|
},
|
|
2507
2507
|
extend: ts,
|
|
2508
2508
|
throttle: Gi,
|
|
@@ -2515,25 +2515,25 @@ v.utils = {
|
|
|
2515
2515
|
detectDirection: eo,
|
|
2516
2516
|
getChild: Zt
|
|
2517
2517
|
};
|
|
2518
|
-
v.get = function(
|
|
2519
|
-
return
|
|
2518
|
+
v.get = function(n) {
|
|
2519
|
+
return n[tt];
|
|
2520
2520
|
};
|
|
2521
2521
|
v.mount = function() {
|
|
2522
|
-
for (var
|
|
2523
|
-
t[
|
|
2522
|
+
for (var n = arguments.length, t = new Array(n), e = 0; e < n; e++)
|
|
2523
|
+
t[e] = arguments[e];
|
|
2524
2524
|
t[0].constructor === Array && (t = t[0]), t.forEach(function(i) {
|
|
2525
2525
|
if (!i.prototype || !i.prototype.constructor)
|
|
2526
2526
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));
|
|
2527
|
-
i.utils && (v.utils =
|
|
2527
|
+
i.utils && (v.utils = ct(ct({}, v.utils), i.utils)), Ee.mount(i);
|
|
2528
2528
|
});
|
|
2529
2529
|
};
|
|
2530
|
-
v.create = function(
|
|
2531
|
-
return new v(
|
|
2530
|
+
v.create = function(n, t) {
|
|
2531
|
+
return new v(n, t);
|
|
2532
2532
|
};
|
|
2533
2533
|
v.version = Jr;
|
|
2534
2534
|
var M = [], ee, Bn, Vn = !1, On, Rn, je, ne;
|
|
2535
2535
|
function vs() {
|
|
2536
|
-
function
|
|
2536
|
+
function n() {
|
|
2537
2537
|
this.defaults = {
|
|
2538
2538
|
scroll: !0,
|
|
2539
2539
|
forceAutoScrollFallback: !1,
|
|
@@ -2544,13 +2544,13 @@ function vs() {
|
|
|
2544
2544
|
for (var t in this)
|
|
2545
2545
|
t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
|
|
2546
2546
|
}
|
|
2547
|
-
return
|
|
2548
|
-
dragStarted: function(
|
|
2549
|
-
var i =
|
|
2547
|
+
return n.prototype = {
|
|
2548
|
+
dragStarted: function(e) {
|
|
2549
|
+
var i = e.originalEvent;
|
|
2550
2550
|
this.sortable.nativeDraggable ? A(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? A(document, "pointermove", this._handleFallbackAutoScroll) : i.touches ? A(document, "touchmove", this._handleFallbackAutoScroll) : A(document, "mousemove", this._handleFallbackAutoScroll);
|
|
2551
2551
|
},
|
|
2552
|
-
dragOverCompleted: function(
|
|
2553
|
-
var i =
|
|
2552
|
+
dragOverCompleted: function(e) {
|
|
2553
|
+
var i = e.originalEvent;
|
|
2554
2554
|
!this.options.dragOverBubble && !i.rootEl && this._handleAutoScroll(i);
|
|
2555
2555
|
},
|
|
2556
2556
|
drop: function() {
|
|
@@ -2559,68 +2559,68 @@ function vs() {
|
|
|
2559
2559
|
nulling: function() {
|
|
2560
2560
|
je = Bn = ee = Vn = ne = On = Rn = null, M.length = 0;
|
|
2561
2561
|
},
|
|
2562
|
-
_handleFallbackAutoScroll: function(
|
|
2563
|
-
this._handleAutoScroll(
|
|
2562
|
+
_handleFallbackAutoScroll: function(e) {
|
|
2563
|
+
this._handleAutoScroll(e, !0);
|
|
2564
2564
|
},
|
|
2565
|
-
_handleAutoScroll: function(
|
|
2566
|
-
var o = this, r = (
|
|
2567
|
-
if (je =
|
|
2568
|
-
Dn(
|
|
2565
|
+
_handleAutoScroll: function(e, i) {
|
|
2566
|
+
var o = this, r = (e.touches ? e.touches[0] : e).clientX, s = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, s);
|
|
2567
|
+
if (je = e, i || this.options.forceAutoScrollFallback || we || yt || re) {
|
|
2568
|
+
Dn(e, this.options, a, i);
|
|
2569
2569
|
var l = St(a, !0);
|
|
2570
2570
|
Vn && (!ne || r !== On || s !== Rn) && (ne && wi(), ne = setInterval(function() {
|
|
2571
2571
|
var u = St(document.elementFromPoint(r, s), !0);
|
|
2572
|
-
u !== l && (l = u, Ne()), Dn(
|
|
2572
|
+
u !== l && (l = u, Ne()), Dn(e, o.options, u, i);
|
|
2573
2573
|
}, 10), On = r, Rn = s);
|
|
2574
2574
|
} else {
|
|
2575
2575
|
if (!this.options.bubbleScroll || St(a, !0) === ut()) {
|
|
2576
2576
|
Ne();
|
|
2577
2577
|
return;
|
|
2578
2578
|
}
|
|
2579
|
-
Dn(
|
|
2579
|
+
Dn(e, this.options, St(a, !1), !1);
|
|
2580
2580
|
}
|
|
2581
2581
|
}
|
|
2582
|
-
}, mt(
|
|
2582
|
+
}, mt(n, {
|
|
2583
2583
|
pluginName: "scroll",
|
|
2584
2584
|
initializeByDefault: !0
|
|
2585
2585
|
});
|
|
2586
2586
|
}
|
|
2587
2587
|
function Ne() {
|
|
2588
|
-
M.forEach(function(
|
|
2589
|
-
clearInterval(
|
|
2588
|
+
M.forEach(function(n) {
|
|
2589
|
+
clearInterval(n.pid);
|
|
2590
2590
|
}), M = [];
|
|
2591
2591
|
}
|
|
2592
2592
|
function wi() {
|
|
2593
2593
|
clearInterval(ne);
|
|
2594
2594
|
}
|
|
2595
|
-
var Dn = Gi(function(
|
|
2595
|
+
var Dn = Gi(function(n, t, e, i) {
|
|
2596
2596
|
if (t.scroll) {
|
|
2597
|
-
var o = (
|
|
2598
|
-
Bn !==
|
|
2599
|
-
var
|
|
2597
|
+
var o = (n.touches ? n.touches[0] : n).clientX, r = (n.touches ? n.touches[0] : n).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = ut(), u = !1, d;
|
|
2598
|
+
Bn !== e && (Bn = e, Ne(), ee = t.scroll, d = t.scrollFn, ee === !0 && (ee = St(e, !0)));
|
|
2599
|
+
var c = 0, p = ee;
|
|
2600
2600
|
do {
|
|
2601
2601
|
var f = p, g = I(f), y = g.top, P = g.bottom, L = g.left, B = g.right, J = g.width, Y = g.height, rt = void 0, C = void 0, z = f.scrollWidth, st = f.scrollHeight, Z = b(f), Yt = f.scrollLeft, bt = f.scrollTop;
|
|
2602
2602
|
f === l ? (rt = J < z && (Z.overflowX === "auto" || Z.overflowX === "scroll" || Z.overflowX === "visible"), C = Y < st && (Z.overflowY === "auto" || Z.overflowY === "scroll" || Z.overflowY === "visible")) : (rt = J < z && (Z.overflowX === "auto" || Z.overflowX === "scroll"), C = Y < st && (Z.overflowY === "auto" || Z.overflowY === "scroll"));
|
|
2603
|
-
var qt = rt && (Math.abs(B - o) <= s && Yt + J < z) - (Math.abs(L - o) <= s && !!Yt),
|
|
2604
|
-
if (!M[
|
|
2605
|
-
for (var _t = 0; _t <=
|
|
2603
|
+
var qt = rt && (Math.abs(B - o) <= s && Yt + J < z) - (Math.abs(L - o) <= s && !!Yt), dt = C && (Math.abs(P - r) <= s && bt + Y < st) - (Math.abs(y - r) <= s && !!bt);
|
|
2604
|
+
if (!M[c])
|
|
2605
|
+
for (var _t = 0; _t <= c; _t++)
|
|
2606
2606
|
M[_t] || (M[_t] = {});
|
|
2607
|
-
(M[
|
|
2607
|
+
(M[c].vx != qt || M[c].vy != dt || M[c].el !== f) && (M[c].el = f, M[c].vx = qt, M[c].vy = dt, clearInterval(M[c].pid), (qt != 0 || dt != 0) && (u = !0, M[c].pid = setInterval((function() {
|
|
2608
2608
|
i && this.layer === 0 && v.active._onTouchMove(je);
|
|
2609
2609
|
var Wt = M[this.layer].vy ? M[this.layer].vy * a : 0, vt = M[this.layer].vx ? M[this.layer].vx * a : 0;
|
|
2610
|
-
typeof
|
|
2610
|
+
typeof d == "function" && d.call(v.dragged.parentNode[tt], vt, Wt, n, je, M[this.layer].el) !== "continue" || Ji(M[this.layer].el, vt, Wt);
|
|
2611
2611
|
}).bind({
|
|
2612
|
-
layer:
|
|
2613
|
-
}), 24))),
|
|
2612
|
+
layer: c
|
|
2613
|
+
}), 24))), c++;
|
|
2614
2614
|
} while (t.bubbleScroll && p !== l && (p = St(p, !1)));
|
|
2615
2615
|
Vn = u;
|
|
2616
2616
|
}
|
|
2617
2617
|
}, 30), ro = function(t) {
|
|
2618
|
-
var
|
|
2619
|
-
if (
|
|
2618
|
+
var e = t.originalEvent, i = t.putSortable, o = t.dragEl, r = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
|
|
2619
|
+
if (e) {
|
|
2620
2620
|
var u = i || r;
|
|
2621
2621
|
a();
|
|
2622
|
-
var
|
|
2623
|
-
l(), u && !u.el.contains(
|
|
2622
|
+
var d = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, c = document.elementFromPoint(d.clientX, d.clientY);
|
|
2623
|
+
l(), u && !u.el.contains(c) && (s("spill"), this.onSpill({
|
|
2624
2624
|
dragEl: o,
|
|
2625
2625
|
putSortable: i
|
|
2626
2626
|
}));
|
|
@@ -2631,14 +2631,14 @@ function Gn() {
|
|
|
2631
2631
|
Gn.prototype = {
|
|
2632
2632
|
startIndex: null,
|
|
2633
2633
|
dragStart: function(t) {
|
|
2634
|
-
var
|
|
2635
|
-
this.startIndex =
|
|
2634
|
+
var e = t.oldDraggableIndex;
|
|
2635
|
+
this.startIndex = e;
|
|
2636
2636
|
},
|
|
2637
2637
|
onSpill: function(t) {
|
|
2638
|
-
var
|
|
2638
|
+
var e = t.dragEl, i = t.putSortable;
|
|
2639
2639
|
this.sortable.captureAnimationState(), i && i.captureAnimationState();
|
|
2640
2640
|
var o = Zt(this.sortable.el, this.startIndex, this.options);
|
|
2641
|
-
o ? this.sortable.el.insertBefore(
|
|
2641
|
+
o ? this.sortable.el.insertBefore(e, o) : this.sortable.el.appendChild(e), this.sortable.animateAll(), i && i.animateAll();
|
|
2642
2642
|
},
|
|
2643
2643
|
drop: ro
|
|
2644
2644
|
};
|
|
@@ -2649,8 +2649,8 @@ function Jn() {
|
|
|
2649
2649
|
}
|
|
2650
2650
|
Jn.prototype = {
|
|
2651
2651
|
onSpill: function(t) {
|
|
2652
|
-
var
|
|
2653
|
-
o.captureAnimationState(),
|
|
2652
|
+
var e = t.dragEl, i = t.putSortable, o = i || this.sortable;
|
|
2653
|
+
o.captureAnimationState(), e.parentNode && e.parentNode.removeChild(e), o.animateAll();
|
|
2654
2654
|
},
|
|
2655
2655
|
drop: ro
|
|
2656
2656
|
};
|
|
@@ -2659,40 +2659,40 @@ mt(Jn, {
|
|
|
2659
2659
|
});
|
|
2660
2660
|
v.mount(new vs());
|
|
2661
2661
|
v.mount(Jn, Gn);
|
|
2662
|
-
const ws = (
|
|
2663
|
-
const t =
|
|
2664
|
-
let
|
|
2665
|
-
return
|
|
2662
|
+
const ws = (n) => {
|
|
2663
|
+
const t = n.item;
|
|
2664
|
+
let e = Array.prototype.slice.call(t.parentNode.childNodes);
|
|
2665
|
+
return e = e.filter(
|
|
2666
2666
|
(i) => i.nodeType != Node.ELEMENT_NODE || !i.classList.contains("sortable-fallback")
|
|
2667
|
-
),
|
|
2668
|
-
}, Es = (
|
|
2669
|
-
const a =
|
|
2670
|
-
for (const y of
|
|
2667
|
+
), e;
|
|
2668
|
+
}, Es = (n, t, e, i, o, r) => {
|
|
2669
|
+
const a = n.item.parentNode;
|
|
2670
|
+
for (const y of e)
|
|
2671
2671
|
a.appendChild(y);
|
|
2672
|
-
if (
|
|
2672
|
+
if (n.oldIndex == n.newIndex)
|
|
2673
2673
|
return;
|
|
2674
2674
|
const l = i.getArray(), u = (
|
|
2675
2675
|
/** @type {Element & {layer: import("ol/layer").Layer}} */
|
|
2676
|
-
|
|
2677
|
-
),
|
|
2678
|
-
(y) => y.get(o) ==
|
|
2676
|
+
n.item.querySelector("eox-layercontrol-layer").layer.get(o)
|
|
2677
|
+
), d = l.find((y) => y.get(o) === u), c = r.dataset.layer, p = l.find(
|
|
2678
|
+
(y) => y.get(o) == c
|
|
2679
2679
|
);
|
|
2680
2680
|
let f, g;
|
|
2681
2681
|
for (f = 0; f < l.length; f++)
|
|
2682
|
-
if (l[f] ==
|
|
2682
|
+
if (l[f] == d) {
|
|
2683
2683
|
i.removeAt(f);
|
|
2684
2684
|
break;
|
|
2685
2685
|
}
|
|
2686
2686
|
for (g = 0; g < l.length; g++)
|
|
2687
2687
|
if (l[g] === p) {
|
|
2688
|
-
f > g ? i.insertAt(g,
|
|
2688
|
+
f > g ? i.insertAt(g, d) : i.insertAt(g + 1, d);
|
|
2689
2689
|
break;
|
|
2690
2690
|
}
|
|
2691
2691
|
t.requestUpdate();
|
|
2692
2692
|
};
|
|
2693
|
-
function xs(
|
|
2693
|
+
function xs(n, t, e, i) {
|
|
2694
2694
|
let o = [], r = null;
|
|
2695
|
-
|
|
2695
|
+
n._sortable = v.create(n, {
|
|
2696
2696
|
handle: ".drag-handle",
|
|
2697
2697
|
filter: ".drag-handle.disabled",
|
|
2698
2698
|
swapThreshold: 0.5,
|
|
@@ -2702,18 +2702,18 @@ function xs(e, t, n, i) {
|
|
|
2702
2702
|
onMove: (s) => {
|
|
2703
2703
|
r = s.related;
|
|
2704
2704
|
},
|
|
2705
|
-
onEnd: (s) => Es(s, i, o, t,
|
|
2705
|
+
onEnd: (s) => Es(s, i, o, t, e, r)
|
|
2706
2706
|
});
|
|
2707
2707
|
}
|
|
2708
|
-
function Ss(
|
|
2709
|
-
const o =
|
|
2708
|
+
function Ss(n, t, e, i) {
|
|
2709
|
+
const o = n.getArray();
|
|
2710
2710
|
let r = !1;
|
|
2711
2711
|
o.forEach((s) => {
|
|
2712
2712
|
const a = s.ol_uid;
|
|
2713
|
-
s.get(t) || (s.set(t, a), r = !0), s.get(
|
|
2713
|
+
s.get(t) || (s.set(t, a), r = !0), s.get(e) || (s.set(e, `layer ${a}`), r = !0), r && i.requestUpdate();
|
|
2714
2714
|
});
|
|
2715
2715
|
}
|
|
2716
|
-
function Kn(
|
|
2716
|
+
function Kn(n, t, e) {
|
|
2717
2717
|
let i = [];
|
|
2718
2718
|
const o = (r, s, a) => {
|
|
2719
2719
|
i = [
|
|
@@ -2733,67 +2733,67 @@ function Kn(e, t, n) {
|
|
|
2733
2733
|
)
|
|
2734
2734
|
), i;
|
|
2735
2735
|
};
|
|
2736
|
-
return o(
|
|
2736
|
+
return o(n, t, e), i;
|
|
2737
2737
|
}
|
|
2738
|
-
function $s(
|
|
2739
|
-
if (!
|
|
2738
|
+
function $s(n, t, e) {
|
|
2739
|
+
if (!n || !t)
|
|
2740
2740
|
return !1;
|
|
2741
|
-
if (!so(
|
|
2741
|
+
if (!so(n, e))
|
|
2742
2742
|
return !0;
|
|
2743
|
-
const i =
|
|
2743
|
+
const i = n.get("minZoom"), o = n.get("maxZoom"), r = t.getView().getZoom();
|
|
2744
2744
|
return r > i && r < o;
|
|
2745
2745
|
}
|
|
2746
|
-
function so(
|
|
2747
|
-
const
|
|
2748
|
-
return !!(t && (
|
|
2746
|
+
function so(n, t) {
|
|
2747
|
+
const e = n.get("minZoom"), i = n.get("maxZoom");
|
|
2748
|
+
return !!(t && (e !== -1 / 0 || i !== 1 / 0));
|
|
2749
2749
|
}
|
|
2750
|
-
function _s(
|
|
2750
|
+
function _s(n, t) {
|
|
2751
2751
|
var o, r, s;
|
|
2752
|
-
return !
|
|
2752
|
+
return !n || !t ? void 0 : n.getLayers ? "group" : ((s = (o = t.getInteractions().getArray().filter((a) => a.freehand_ !== void 0).map((a) => a.source_)) == null ? void 0 : o.ol_uid) == null ? void 0 : s.includes(
|
|
2753
2753
|
// @ts-ignore
|
|
2754
|
-
|
|
2755
|
-
)) ? "draw" :
|
|
2754
|
+
n.getSource ? (r = n.getSource()) == null ? void 0 : r.ol_uid : void 0
|
|
2755
|
+
)) ? "draw" : n.declutter_ !== void 0 ? "vector" : "raster";
|
|
2756
2756
|
}
|
|
2757
|
-
function ao(
|
|
2757
|
+
function ao(n, t) {
|
|
2758
2758
|
var i;
|
|
2759
|
-
let
|
|
2760
|
-
for (const o in
|
|
2761
|
-
const r =
|
|
2759
|
+
let e = {};
|
|
2760
|
+
for (const o in n) {
|
|
2761
|
+
const r = n[o].type;
|
|
2762
2762
|
if (r && r !== "object")
|
|
2763
|
-
|
|
2764
|
-
else if (typeof
|
|
2763
|
+
e[o] = r === "number" ? Number(t[o]) : t[o];
|
|
2764
|
+
else if (typeof n[o] == "object" && ((i = n[o]) != null && i.properties)) {
|
|
2765
2765
|
const s = ao(
|
|
2766
|
-
|
|
2766
|
+
n[o].properties,
|
|
2767
2767
|
t
|
|
2768
2768
|
);
|
|
2769
|
-
Object.keys(s).length > 0 && (
|
|
2769
|
+
Object.keys(s).length > 0 && (e[o] = s);
|
|
2770
2770
|
}
|
|
2771
2771
|
}
|
|
2772
|
-
return
|
|
2772
|
+
return e;
|
|
2773
2773
|
}
|
|
2774
|
-
function As(
|
|
2774
|
+
function As(n, t) {
|
|
2775
2775
|
var r;
|
|
2776
|
-
if (!t || !
|
|
2776
|
+
if (!t || !n.getSource().getTileUrlFunction())
|
|
2777
2777
|
return null;
|
|
2778
|
-
const
|
|
2778
|
+
const e = new URL(n.getSource().getTileUrlFunction()([0, 0, 0])), i = Object.fromEntries(e.searchParams.entries()), o = ao(
|
|
2779
2779
|
((r = t.schema) == null ? void 0 : r.properties) || t.schema,
|
|
2780
2780
|
i
|
|
2781
2781
|
);
|
|
2782
2782
|
return Object.keys(o).length ? o : null;
|
|
2783
2783
|
}
|
|
2784
|
-
const Cs = (
|
|
2785
|
-
(
|
|
2786
|
-
), Ts = (
|
|
2784
|
+
const Cs = (n, t) => n == null ? void 0 : n.filter(
|
|
2785
|
+
(e) => ["remove", "sort"].filter((i) => t != null && t.get("layerControlDisable") ? i !== "sort" : !0).includes(e)
|
|
2786
|
+
), Ts = (n, t) => n == null ? void 0 : n.filter((e) => {
|
|
2787
2787
|
let i = !0;
|
|
2788
|
-
return ["remove", "sort"].includes(
|
|
2789
|
-
}), Ps = (
|
|
2790
|
-
<button slot="${
|
|
2791
|
-
`, Os = (
|
|
2788
|
+
return ["remove", "sort"].includes(e) && (i = !1), e === "info" && (i = t.get("description")), e === "config" && (i = t.get("layerConfig")), i;
|
|
2789
|
+
}), Ps = (n, t) => x`
|
|
2790
|
+
<button slot="${n}-icon" class="icon">${t ? n : T}</button>
|
|
2791
|
+
`, Os = (n) => x`
|
|
2792
2792
|
<button
|
|
2793
2793
|
class="remove-icon icon"
|
|
2794
2794
|
@click=${() => {
|
|
2795
|
-
const { layer: t } =
|
|
2796
|
-
t == null || t.set("layerControlOptional", !0), t == null || t.setVisible(!1),
|
|
2795
|
+
const { layer: t } = n;
|
|
2796
|
+
t == null || t.set("layerControlOptional", !0), t == null || t.setVisible(!1), n.dispatchEvent(
|
|
2797
2797
|
new CustomEvent("changed", {
|
|
2798
2798
|
detail: t,
|
|
2799
2799
|
bubbles: !0
|
|
@@ -2801,16 +2801,16 @@ const Cs = (e, t) => e == null ? void 0 : e.filter(
|
|
|
2801
2801
|
);
|
|
2802
2802
|
}}
|
|
2803
2803
|
>
|
|
2804
|
-
${
|
|
2804
|
+
${n.unstyled ? "x" : T}
|
|
2805
2805
|
</button>
|
|
2806
|
-
`, Rs = (
|
|
2806
|
+
`, Rs = (n) => x`
|
|
2807
2807
|
<span class="button sort-icon icon drag-handle">
|
|
2808
|
-
${
|
|
2808
|
+
${n ? "═" : T}
|
|
2809
2809
|
</span>
|
|
2810
|
-
`, lo = (
|
|
2811
|
-
var
|
|
2810
|
+
`, lo = (n) => {
|
|
2811
|
+
var e;
|
|
2812
2812
|
const t = ["layerControlHide", "layerControlOptional"];
|
|
2813
|
-
return (
|
|
2813
|
+
return (e = n == null ? void 0 : n.getArray()) == null ? void 0 : e.filter((i) => t.every((o) => !i.get(o)));
|
|
2814
2814
|
};
|
|
2815
2815
|
/**
|
|
2816
2816
|
* @license
|
|
@@ -2818,28 +2818,28 @@ const Cs = (e, t) => e == null ? void 0 : e.filter(
|
|
|
2818
2818
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2819
2819
|
*/
|
|
2820
2820
|
const uo = Zn(class extends Xn {
|
|
2821
|
-
constructor(
|
|
2822
|
-
if (super(
|
|
2821
|
+
constructor(n) {
|
|
2822
|
+
if (super(n), n.type !== wt.PROPERTY && n.type !== wt.ATTRIBUTE && n.type !== wt.BOOLEAN_ATTRIBUTE)
|
|
2823
2823
|
throw Error("The `live` directive is not allowed on child or event bindings");
|
|
2824
|
-
if (!Wo(
|
|
2824
|
+
if (!Wo(n))
|
|
2825
2825
|
throw Error("`live` bindings can only contain a single expression");
|
|
2826
2826
|
}
|
|
2827
|
-
render(
|
|
2828
|
-
return
|
|
2827
|
+
render(n) {
|
|
2828
|
+
return n;
|
|
2829
2829
|
}
|
|
2830
|
-
update(
|
|
2830
|
+
update(n, [t]) {
|
|
2831
2831
|
if (t === it || t === T)
|
|
2832
2832
|
return t;
|
|
2833
|
-
const
|
|
2834
|
-
if (
|
|
2835
|
-
if (t ===
|
|
2833
|
+
const e = n.element, i = n.name;
|
|
2834
|
+
if (n.type === wt.PROPERTY) {
|
|
2835
|
+
if (t === e[i])
|
|
2836
2836
|
return it;
|
|
2837
|
-
} else if (
|
|
2838
|
-
if (!!t ===
|
|
2837
|
+
} else if (n.type === wt.BOOLEAN_ATTRIBUTE) {
|
|
2838
|
+
if (!!t === e.hasAttribute(i))
|
|
2839
2839
|
return it;
|
|
2840
|
-
} else if (
|
|
2840
|
+
} else if (n.type === wt.ATTRIBUTE && e.getAttribute(i) === t + "")
|
|
2841
2841
|
return it;
|
|
2842
|
-
return Bi(
|
|
2842
|
+
return Bi(n), t;
|
|
2843
2843
|
}
|
|
2844
2844
|
});
|
|
2845
2845
|
/**
|
|
@@ -2862,8 +2862,8 @@ class Ln extends Xn {
|
|
|
2862
2862
|
if (t === this.it)
|
|
2863
2863
|
return this._t;
|
|
2864
2864
|
this.it = t;
|
|
2865
|
-
const
|
|
2866
|
-
return
|
|
2865
|
+
const e = [t];
|
|
2866
|
+
return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
|
2867
2867
|
}
|
|
2868
2868
|
}
|
|
2869
2869
|
Ln.directiveName = "unsafeHTML", Ln.resultType = 1;
|
|
@@ -2873,45 +2873,45 @@ const Ds = Zn(Ln);
|
|
|
2873
2873
|
* Copyright 2021 Google LLC
|
|
2874
2874
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2875
2875
|
*/
|
|
2876
|
-
function* Me(
|
|
2877
|
-
if (
|
|
2878
|
-
let
|
|
2879
|
-
for (const i of
|
|
2880
|
-
yield t(i,
|
|
2876
|
+
function* Me(n, t) {
|
|
2877
|
+
if (n !== void 0) {
|
|
2878
|
+
let e = 0;
|
|
2879
|
+
for (const i of n)
|
|
2880
|
+
yield t(i, e++);
|
|
2881
2881
|
}
|
|
2882
2882
|
}
|
|
2883
|
-
const Ns = (
|
|
2883
|
+
const Ns = (n, t, e) => {
|
|
2884
2884
|
let i = t;
|
|
2885
|
-
return
|
|
2886
|
-
(...o) => Yr(i(...o),
|
|
2887
|
-
),
|
|
2885
|
+
return e.layer.getSource().getTileUrlFunction() && (i || (i = e.layer.getSource().getTileUrlFunction()), e.layer.getSource().setTileUrlFunction(
|
|
2886
|
+
(...o) => Yr(i(...o), n)
|
|
2887
|
+
), e.layer.getSource().setKey(/* @__PURE__ */ new Date())), i;
|
|
2888
2888
|
};
|
|
2889
2889
|
var Ce = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2890
|
-
function Ms(
|
|
2891
|
-
return
|
|
2890
|
+
function Ms(n) {
|
|
2891
|
+
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
2892
2892
|
}
|
|
2893
|
-
var Is = "Expected a function", Ei = NaN, Hs = "[object Symbol]", Bs = /^\s+|\s+$/g, Vs = /^[-+]0x[0-9a-f]+$/i, Ls = /^0b[01]+$/i,
|
|
2893
|
+
var Is = "Expected a function", Ei = NaN, Hs = "[object Symbol]", Bs = /^\s+|\s+$/g, Vs = /^[-+]0x[0-9a-f]+$/i, Ls = /^0b[01]+$/i, ks = /^0o[0-7]+$/i, Us = parseInt, Fs = typeof Ce == "object" && Ce && Ce.Object === Object && Ce, js = typeof self == "object" && self && self.Object === Object && self, zs = Fs || js || Function("return this")(), Zs = Object.prototype, Xs = Zs.toString, Ys = Math.max, qs = Math.min, Nn = function() {
|
|
2894
2894
|
return zs.Date.now();
|
|
2895
2895
|
};
|
|
2896
|
-
function Ws(
|
|
2897
|
-
var i, o, r, s, a, l, u = 0,
|
|
2898
|
-
if (typeof
|
|
2896
|
+
function Ws(n, t, e) {
|
|
2897
|
+
var i, o, r, s, a, l, u = 0, d = !1, c = !1, p = !0;
|
|
2898
|
+
if (typeof n != "function")
|
|
2899
2899
|
throw new TypeError(Is);
|
|
2900
|
-
t = xi(t) || 0,
|
|
2900
|
+
t = xi(t) || 0, kn(e) && (d = !!e.leading, c = "maxWait" in e, r = c ? Ys(xi(e.maxWait) || 0, t) : r, p = "trailing" in e ? !!e.trailing : p);
|
|
2901
2901
|
function f(C) {
|
|
2902
2902
|
var z = i, st = o;
|
|
2903
|
-
return i = o = void 0, u = C, s =
|
|
2903
|
+
return i = o = void 0, u = C, s = n.apply(st, z), s;
|
|
2904
2904
|
}
|
|
2905
2905
|
function g(C) {
|
|
2906
|
-
return u = C, a = setTimeout(L, t),
|
|
2906
|
+
return u = C, a = setTimeout(L, t), d ? f(C) : s;
|
|
2907
2907
|
}
|
|
2908
2908
|
function y(C) {
|
|
2909
2909
|
var z = C - l, st = C - u, Z = t - z;
|
|
2910
|
-
return
|
|
2910
|
+
return c ? qs(Z, r - st) : Z;
|
|
2911
2911
|
}
|
|
2912
2912
|
function P(C) {
|
|
2913
2913
|
var z = C - l, st = C - u;
|
|
2914
|
-
return l === void 0 || z >= t || z < 0 ||
|
|
2914
|
+
return l === void 0 || z >= t || z < 0 || c && st >= r;
|
|
2915
2915
|
}
|
|
2916
2916
|
function L() {
|
|
2917
2917
|
var C = Nn();
|
|
@@ -2933,37 +2933,37 @@ function Ws(e, t, n) {
|
|
|
2933
2933
|
if (i = arguments, o = this, l = C, z) {
|
|
2934
2934
|
if (a === void 0)
|
|
2935
2935
|
return g(l);
|
|
2936
|
-
if (
|
|
2936
|
+
if (c)
|
|
2937
2937
|
return a = setTimeout(L, t), f(l);
|
|
2938
2938
|
}
|
|
2939
2939
|
return a === void 0 && (a = setTimeout(L, t)), s;
|
|
2940
2940
|
}
|
|
2941
2941
|
return rt.cancel = J, rt.flush = Y, rt;
|
|
2942
2942
|
}
|
|
2943
|
-
function
|
|
2944
|
-
var t = typeof
|
|
2945
|
-
return !!
|
|
2943
|
+
function kn(n) {
|
|
2944
|
+
var t = typeof n;
|
|
2945
|
+
return !!n && (t == "object" || t == "function");
|
|
2946
2946
|
}
|
|
2947
|
-
function Gs(
|
|
2948
|
-
return !!
|
|
2947
|
+
function Gs(n) {
|
|
2948
|
+
return !!n && typeof n == "object";
|
|
2949
2949
|
}
|
|
2950
|
-
function Js(
|
|
2951
|
-
return typeof
|
|
2950
|
+
function Js(n) {
|
|
2951
|
+
return typeof n == "symbol" || Gs(n) && Xs.call(n) == Hs;
|
|
2952
2952
|
}
|
|
2953
|
-
function xi(
|
|
2954
|
-
if (typeof
|
|
2955
|
-
return
|
|
2956
|
-
if (Js(
|
|
2953
|
+
function xi(n) {
|
|
2954
|
+
if (typeof n == "number")
|
|
2955
|
+
return n;
|
|
2956
|
+
if (Js(n))
|
|
2957
2957
|
return Ei;
|
|
2958
|
-
if (
|
|
2959
|
-
var t = typeof
|
|
2960
|
-
|
|
2958
|
+
if (kn(n)) {
|
|
2959
|
+
var t = typeof n.valueOf == "function" ? n.valueOf() : n;
|
|
2960
|
+
n = kn(t) ? t + "" : t;
|
|
2961
2961
|
}
|
|
2962
|
-
if (typeof
|
|
2963
|
-
return
|
|
2964
|
-
|
|
2965
|
-
var
|
|
2966
|
-
return
|
|
2962
|
+
if (typeof n != "string")
|
|
2963
|
+
return n === 0 ? n : +n;
|
|
2964
|
+
n = n.replace(Bs, "");
|
|
2965
|
+
var e = Ls.test(n);
|
|
2966
|
+
return e || ks.test(n) ? Us(n.slice(2), e ? 2 : 8) : Vs.test(n) ? Ei : +n;
|
|
2967
2967
|
}
|
|
2968
2968
|
var Ks = Ws;
|
|
2969
2969
|
const co = /* @__PURE__ */ Ms(Ks);
|
|
@@ -2997,7 +2997,7 @@ class ho extends et {
|
|
|
2997
2997
|
$(this, me, void 0);
|
|
2998
2998
|
$(this, Ze, "");
|
|
2999
2999
|
$(this, Xe, "");
|
|
3000
|
-
this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.debouncedDataChange = co(
|
|
3000
|
+
this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.debouncedDataChange = co(k(this, ze, po), 1e3, {
|
|
3001
3001
|
leading: !0
|
|
3002
3002
|
});
|
|
3003
3003
|
}
|
|
@@ -3012,7 +3012,7 @@ class ho extends et {
|
|
|
3012
3012
|
*/
|
|
3013
3013
|
render() {
|
|
3014
3014
|
Jt(this, ge, As(this.layer, this.layerConfig)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
|
|
3015
|
-
const
|
|
3015
|
+
const e = {
|
|
3016
3016
|
disable_edit_json: !0,
|
|
3017
3017
|
disable_collapse: !0,
|
|
3018
3018
|
disable_properties: !0
|
|
@@ -3029,7 +3029,7 @@ class ho extends et {
|
|
|
3029
3029
|
<eox-jsonform
|
|
3030
3030
|
.schema=${this.layerConfig.schema}
|
|
3031
3031
|
.value=${R(this, ge)}
|
|
3032
|
-
.options=${
|
|
3032
|
+
.options=${e}
|
|
3033
3033
|
@change=${this.debouncedDataChange}
|
|
3034
3034
|
></eox-jsonform>
|
|
3035
3035
|
`
|
|
@@ -3037,8 +3037,8 @@ class ho extends et {
|
|
|
3037
3037
|
`;
|
|
3038
3038
|
}
|
|
3039
3039
|
}
|
|
3040
|
-
fe = new WeakMap(), ge = new WeakMap(), me = new WeakMap(), ze = new WeakSet(), po = function(
|
|
3041
|
-
Jt(this, fe,
|
|
3040
|
+
fe = new WeakMap(), ge = new WeakMap(), me = new WeakMap(), ze = new WeakSet(), po = function(e) {
|
|
3041
|
+
Jt(this, fe, e.detail), Jt(this, me, Ns(
|
|
3042
3042
|
R(this, fe),
|
|
3043
3043
|
R(this, me),
|
|
3044
3044
|
this
|
|
@@ -3059,7 +3059,7 @@ class fo extends et {
|
|
|
3059
3059
|
constructor() {
|
|
3060
3060
|
super();
|
|
3061
3061
|
/** @param {number} index */
|
|
3062
|
-
$(this, ye, (
|
|
3062
|
+
$(this, ye, (e) => this.selectedTab === e && "highlighted");
|
|
3063
3063
|
$(this, Ye, `
|
|
3064
3064
|
.tabbed figure {
|
|
3065
3065
|
margin: 0;
|
|
@@ -3116,7 +3116,7 @@ class fo extends et {
|
|
|
3116
3116
|
* It sets up navigation for switching between tabs and offers customizable icons for tabs and actions.
|
|
3117
3117
|
*/
|
|
3118
3118
|
render() {
|
|
3119
|
-
const
|
|
3119
|
+
const e = this.tabs, i = this.actions, o = i.length + e.length > 1;
|
|
3120
3120
|
return x`
|
|
3121
3121
|
<style>
|
|
3122
3122
|
${R(this, Ye)}
|
|
@@ -3131,7 +3131,7 @@ class fo extends et {
|
|
|
3131
3131
|
<div>
|
|
3132
3132
|
<!-- Labels for tabs -->
|
|
3133
3133
|
${Me(
|
|
3134
|
-
|
|
3134
|
+
e,
|
|
3135
3135
|
(r, s) => x`
|
|
3136
3136
|
<label
|
|
3137
3137
|
class=${R(this, ye).call(this, s)}
|
|
@@ -3161,7 +3161,7 @@ class fo extends et {
|
|
|
3161
3161
|
<figure>
|
|
3162
3162
|
<!-- Content for each tab -->
|
|
3163
3163
|
${Me(
|
|
3164
|
-
|
|
3164
|
+
e,
|
|
3165
3165
|
(r, s) => x`
|
|
3166
3166
|
<div class="tab ${R(this, ye).call(this, s)}">
|
|
3167
3167
|
<!-- Content slot for each tab -->
|
|
@@ -3229,6 +3229,11 @@ button[disabled],
|
|
|
3229
3229
|
cursor: not-allowed;
|
|
3230
3230
|
}
|
|
3231
3231
|
|
|
3232
|
+
button.block,
|
|
3233
|
+
.button.block {
|
|
3234
|
+
display: block;
|
|
3235
|
+
}
|
|
3236
|
+
|
|
3232
3237
|
button.outline,
|
|
3233
3238
|
.button.outline {
|
|
3234
3239
|
background: transparent;
|
|
@@ -3259,6 +3264,11 @@ button.icon-text,
|
|
|
3259
3264
|
text-indent: 26px;
|
|
3260
3265
|
}
|
|
3261
3266
|
|
|
3267
|
+
button.icon-text.block,
|
|
3268
|
+
.button.icon-text.block {
|
|
3269
|
+
text-indent: 20px;
|
|
3270
|
+
}
|
|
3271
|
+
|
|
3262
3272
|
button.icon:before, button.icon-text:before,
|
|
3263
3273
|
.button.icon:before, .button.icon-text:before {
|
|
3264
3274
|
position: absolute;
|
|
@@ -3266,6 +3276,11 @@ button.icon:before, button.icon-text:before,
|
|
|
3266
3276
|
line-height: initial;
|
|
3267
3277
|
}
|
|
3268
3278
|
|
|
3279
|
+
button.icon-text.block:before,
|
|
3280
|
+
.button.icon-text.block:before {
|
|
3281
|
+
text-indent: -54px;
|
|
3282
|
+
}
|
|
3283
|
+
|
|
3269
3284
|
button.icon:before,
|
|
3270
3285
|
.button.icon:before {
|
|
3271
3286
|
width: 24px;
|
|
@@ -3436,7 +3451,7 @@ class mo extends et {
|
|
|
3436
3451
|
* @param {string} tool - Tool parameter for Button generation.
|
|
3437
3452
|
* @returns {import("lit").HTMLTemplateResult} - The generated Button element.
|
|
3438
3453
|
*/
|
|
3439
|
-
H(this, "_button", (
|
|
3454
|
+
H(this, "_button", (e) => Ps(e, this.unstyled));
|
|
3440
3455
|
$(this, We, "");
|
|
3441
3456
|
$(this, Ge, `
|
|
3442
3457
|
${Qs}
|
|
@@ -3545,10 +3560,10 @@ class mo extends et {
|
|
|
3545
3560
|
}
|
|
3546
3561
|
render() {
|
|
3547
3562
|
var l;
|
|
3548
|
-
const
|
|
3563
|
+
const e = Cs(this.tools, this.layer), i = Ts(this.tools, this.layer), o = this[`_${e == null ? void 0 : e[0]}Button`] ? (
|
|
3549
3564
|
// @ts-ignore
|
|
3550
|
-
this[`_${
|
|
3551
|
-
) : T, r = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s =
|
|
3565
|
+
this[`_${e == null ? void 0 : e[0]}Button`]()
|
|
3566
|
+
) : T, r = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = e == null ? void 0 : e.length, a = i == null ? void 0 : i.length;
|
|
3552
3567
|
return x`
|
|
3553
3568
|
<style>
|
|
3554
3569
|
${R(this, We)}
|
|
@@ -3576,12 +3591,12 @@ class mo extends et {
|
|
|
3576
3591
|
</summary>
|
|
3577
3592
|
<eox-layercontrol-tabs
|
|
3578
3593
|
.noShadow=${!1}
|
|
3579
|
-
.actions=${
|
|
3594
|
+
.actions=${e}
|
|
3580
3595
|
.tabs=${i}
|
|
3581
3596
|
.unstyled=${this.unstyled}
|
|
3582
3597
|
>
|
|
3583
3598
|
<!-- Rendering tabs and content -->
|
|
3584
|
-
${Me(i, (
|
|
3599
|
+
${Me(i, (d) => this._button(d))}
|
|
3585
3600
|
|
|
3586
3601
|
<div slot="info-content">
|
|
3587
3602
|
${Ds(this.layer.get("description"))}
|
|
@@ -3594,7 +3609,7 @@ class mo extends et {
|
|
|
3594
3609
|
max="1"
|
|
3595
3610
|
step="0.01"
|
|
3596
3611
|
value=${uo((u = this.layer) == null ? void 0 : u.getOpacity())}
|
|
3597
|
-
@input=${(
|
|
3612
|
+
@input=${(d) => this.layer.setOpacity(parseFloat(d.target.value))}
|
|
3598
3613
|
/>
|
|
3599
3614
|
</div>
|
|
3600
3615
|
<div slot="config-content">
|
|
@@ -3636,31 +3651,31 @@ customElements.define(
|
|
|
3636
3651
|
"eox-layercontrol-layer-tools",
|
|
3637
3652
|
mo
|
|
3638
3653
|
);
|
|
3639
|
-
const na = (
|
|
3654
|
+
const na = (n) => {
|
|
3640
3655
|
const t = () => {
|
|
3641
|
-
const
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3656
|
+
const e = $s(
|
|
3657
|
+
n.layer,
|
|
3658
|
+
n.map,
|
|
3659
|
+
n.showLayerZoomState
|
|
3645
3660
|
);
|
|
3646
3661
|
let i = !1;
|
|
3647
|
-
!
|
|
3662
|
+
!e && n.currLayerVisibilityBasedOnZoom ? (n.currLayerVisibilityBasedOnZoom = !1, i = !0) : e && !n.currLayerVisibilityBasedOnZoom && (n.currLayerVisibilityBasedOnZoom = !0, i = !0), i && (n.requestUpdate(), n.dispatchEvent(
|
|
3648
3663
|
new CustomEvent("change:resolution", { bubbles: !0 })
|
|
3649
3664
|
));
|
|
3650
3665
|
};
|
|
3651
3666
|
so(
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
) && (t(),
|
|
3655
|
-
}, ia = (
|
|
3656
|
-
const
|
|
3657
|
-
|
|
3667
|
+
n.layer,
|
|
3668
|
+
n.showLayerZoomState
|
|
3669
|
+
) && (t(), n.map.getView().on("change:resolution", () => t()));
|
|
3670
|
+
}, ia = (n, t) => {
|
|
3671
|
+
const e = t.layer;
|
|
3672
|
+
e.setVisible(n.target.checked), n.target.checked && e.get("layerControlExclusive") && t.parentNode.parentNode.querySelectorAll(
|
|
3658
3673
|
"li > eox-layercontrol-layer"
|
|
3659
3674
|
).forEach((o) => {
|
|
3660
3675
|
var r;
|
|
3661
|
-
o.layer !==
|
|
3676
|
+
o.layer !== e && ((r = o.layer) != null && r.get("layerControlExclusive")) && (o.layer.setVisible(!1), o.requestUpdate());
|
|
3662
3677
|
}), t.dispatchEvent(
|
|
3663
|
-
new CustomEvent("changed", { bubbles: !0, detail:
|
|
3678
|
+
new CustomEvent("changed", { bubbles: !0, detail: e })
|
|
3664
3679
|
), t.requestUpdate();
|
|
3665
3680
|
};
|
|
3666
3681
|
var Ft, Ie, Je, bo, Ke, Qe;
|
|
@@ -3751,7 +3766,7 @@ class yo extends et {
|
|
|
3751
3766
|
*/
|
|
3752
3767
|
render() {
|
|
3753
3768
|
var l;
|
|
3754
|
-
const
|
|
3769
|
+
const e = this.layer.getVisible(), i = e ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", r = k(this, Ft, Ie).call(this, "layerControlDisable") ? "disabled" : "", s = k(this, Ft, Ie).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
|
|
3755
3770
|
return x`
|
|
3756
3771
|
<style>
|
|
3757
3772
|
${R(this, Ke)}
|
|
@@ -3766,12 +3781,12 @@ class yo extends et {
|
|
|
3766
3781
|
<!-- Input element for layer visibility -->
|
|
3767
3782
|
<input
|
|
3768
3783
|
type=${s}
|
|
3769
|
-
.checked=${uo(
|
|
3770
|
-
@click=${
|
|
3784
|
+
.checked=${uo(e)}
|
|
3785
|
+
@click=${k(this, Je, bo)}
|
|
3771
3786
|
/>
|
|
3772
3787
|
|
|
3773
3788
|
<!-- Layer title -->
|
|
3774
|
-
<span class="title">${
|
|
3789
|
+
<span class="title">${k(this, Ft, Ie).call(this, this.titleProperty)}</span>
|
|
3775
3790
|
${ot(
|
|
3776
3791
|
a,
|
|
3777
3792
|
() => x`<span class="tools-placeholder"></span>`
|
|
@@ -3791,11 +3806,11 @@ class yo extends et {
|
|
|
3791
3806
|
`;
|
|
3792
3807
|
}
|
|
3793
3808
|
}
|
|
3794
|
-
Ft = new WeakSet(), Ie = function(
|
|
3809
|
+
Ft = new WeakSet(), Ie = function(e) {
|
|
3795
3810
|
var i;
|
|
3796
|
-
return (i = this.layer) == null ? void 0 : i.get(
|
|
3797
|
-
}, Je = new WeakSet(), bo = function(
|
|
3798
|
-
ia(
|
|
3811
|
+
return (i = this.layer) == null ? void 0 : i.get(e);
|
|
3812
|
+
}, Je = new WeakSet(), bo = function(e) {
|
|
3813
|
+
ia(e, this);
|
|
3799
3814
|
}, Ke = new WeakMap(), Qe = new WeakMap(), // Define static properties for the component
|
|
3800
3815
|
H(yo, "properties", {
|
|
3801
3816
|
layer: { attribute: !1 },
|
|
@@ -3852,7 +3867,7 @@ class vo extends et {
|
|
|
3852
3867
|
*/
|
|
3853
3868
|
render() {
|
|
3854
3869
|
var o, r;
|
|
3855
|
-
const
|
|
3870
|
+
const e = !!((o = this.group) != null && o.get("layerControlExpand")), i = (r = lo(
|
|
3856
3871
|
this.group.getLayers()
|
|
3857
3872
|
)) == null ? void 0 : r.length;
|
|
3858
3873
|
return x`
|
|
@@ -3865,7 +3880,7 @@ class vo extends et {
|
|
|
3865
3880
|
() => x`
|
|
3866
3881
|
<!-- Render the details element with the layer control -->
|
|
3867
3882
|
<details
|
|
3868
|
-
open=${
|
|
3883
|
+
open=${e || T}
|
|
3869
3884
|
data-children-length=${i}
|
|
3870
3885
|
>
|
|
3871
3886
|
<summary>
|
|
@@ -3915,24 +3930,21 @@ customElements.define(
|
|
|
3915
3930
|
"eox-layercontrol-layer-group",
|
|
3916
3931
|
vo
|
|
3917
3932
|
);
|
|
3918
|
-
const oa = (
|
|
3919
|
-
const { layers: t, idProperty:
|
|
3920
|
-
|
|
3921
|
-
|
|
3933
|
+
const oa = (n) => {
|
|
3934
|
+
const { layers: t, idProperty: e, titleProperty: i, renderRoot: o } = n, r = co(() => {
|
|
3935
|
+
n.requestUpdate(), n.dispatchEvent(
|
|
3936
|
+
new CustomEvent("changed", { bubbles: !0 })
|
|
3937
|
+
);
|
|
3938
|
+
}, 50), s = () => r();
|
|
3939
|
+
if (t && (t.hasListener("change:length") && (t == null || t.un("change:length", s)), t.on("change:length", s), t)) {
|
|
3940
|
+
const a = o.querySelector("ul");
|
|
3922
3941
|
Ss(
|
|
3923
3942
|
t,
|
|
3924
|
-
|
|
3943
|
+
e,
|
|
3925
3944
|
i,
|
|
3926
|
-
|
|
3927
|
-
), xs(
|
|
3945
|
+
n
|
|
3946
|
+
), xs(a, t, e, n);
|
|
3928
3947
|
}
|
|
3929
|
-
}, ra = (e) => {
|
|
3930
|
-
const { layers: t } = e, n = co(() => {
|
|
3931
|
-
e.requestUpdate(), e.dispatchEvent(
|
|
3932
|
-
new CustomEvent("changed", { bubbles: !0 })
|
|
3933
|
-
);
|
|
3934
|
-
}, 50), i = () => n();
|
|
3935
|
-
t && (t.hasListener("change:length") && (t == null || t.un("change:length", i)), t.on("change:length", i));
|
|
3936
3948
|
};
|
|
3937
3949
|
var nn, on;
|
|
3938
3950
|
class wo extends et {
|
|
@@ -3976,12 +3988,6 @@ class wo extends et {
|
|
|
3976
3988
|
firstUpdated() {
|
|
3977
3989
|
oa(this);
|
|
3978
3990
|
}
|
|
3979
|
-
/**
|
|
3980
|
-
* Executes logic after subsequent updates of the component.
|
|
3981
|
-
*/
|
|
3982
|
-
updated() {
|
|
3983
|
-
ra(this);
|
|
3984
|
-
}
|
|
3985
3991
|
/**
|
|
3986
3992
|
* Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
|
|
3987
3993
|
*/
|
|
@@ -3993,7 +3999,7 @@ class wo extends et {
|
|
|
3993
3999
|
* layer groups or individual layers accordingly. Utilizes conditional rendering and iterates through available layers.
|
|
3994
4000
|
*/
|
|
3995
4001
|
render() {
|
|
3996
|
-
const
|
|
4002
|
+
const e = this.layers ? lo(this.layers).reverse() : [];
|
|
3997
4003
|
return x`
|
|
3998
4004
|
<style>
|
|
3999
4005
|
${R(this, nn)}
|
|
@@ -4004,7 +4010,7 @@ class wo extends et {
|
|
|
4004
4010
|
this.layers,
|
|
4005
4011
|
() => x`
|
|
4006
4012
|
${Ko(
|
|
4007
|
-
|
|
4013
|
+
e,
|
|
4008
4014
|
(i) => i,
|
|
4009
4015
|
(i) => x`
|
|
4010
4016
|
<li
|
|
@@ -4059,27 +4065,27 @@ H(wo, "properties", {
|
|
|
4059
4065
|
noShadow: { type: Boolean }
|
|
4060
4066
|
});
|
|
4061
4067
|
customElements.define("eox-layercontrol-layer-list", wo);
|
|
4062
|
-
const
|
|
4063
|
-
const t =
|
|
4068
|
+
const ra = (n) => {
|
|
4069
|
+
const t = n.querySelector(
|
|
4064
4070
|
"select[name=optional]"
|
|
4065
|
-
),
|
|
4066
|
-
|
|
4071
|
+
), e = t ? t.value : null, i = Kn(
|
|
4072
|
+
n.layers.getArray(),
|
|
4067
4073
|
"layerControlOptional",
|
|
4068
4074
|
!0
|
|
4069
4075
|
).find(
|
|
4070
4076
|
(o) => (
|
|
4071
4077
|
// @ts-ignore
|
|
4072
|
-
(o.get(
|
|
4078
|
+
(o.get(n.idProperty) || o.ol_uid) === e
|
|
4073
4079
|
)
|
|
4074
4080
|
);
|
|
4075
|
-
i == null || i.set("layerControlOptional", !1), i == null || i.setVisible(!0),
|
|
4081
|
+
i == null || i.set("layerControlOptional", !1), i == null || i.setVisible(!0), n.dispatchEvent(
|
|
4076
4082
|
new CustomEvent("changed", { bubbles: !0 })
|
|
4077
|
-
),
|
|
4083
|
+
), n.renderRoot.parentNode.querySelectorAll("eox-layercontrol-layer-list").forEach(
|
|
4078
4084
|
(o) => (
|
|
4079
4085
|
/** @type {import("lit").LitElement} */
|
|
4080
4086
|
o.requestUpdate()
|
|
4081
4087
|
)
|
|
4082
|
-
),
|
|
4088
|
+
), n.requestUpdate();
|
|
4083
4089
|
};
|
|
4084
4090
|
var rn, xo;
|
|
4085
4091
|
class Eo extends et {
|
|
@@ -4104,7 +4110,7 @@ class Eo extends et {
|
|
|
4104
4110
|
* Generates dropdown options based on the extracted layer information.
|
|
4105
4111
|
*/
|
|
4106
4112
|
render() {
|
|
4107
|
-
const
|
|
4113
|
+
const e = Kn(
|
|
4108
4114
|
this.layers.getArray(),
|
|
4109
4115
|
"layerControlOptional",
|
|
4110
4116
|
!0
|
|
@@ -4121,19 +4127,19 @@ class Eo extends et {
|
|
|
4121
4127
|
</option>
|
|
4122
4128
|
|
|
4123
4129
|
<!-- Mapping through filtered layers list to generate dropdown options -->
|
|
4124
|
-
${
|
|
4130
|
+
${e.map((i) => {
|
|
4125
4131
|
const o = i.get(this.idProperty) || i.ol_uid, r = i.get(this.titleProperty), s = `layer ${i.get(this.idProperty)}`;
|
|
4126
4132
|
return x` <option value="${o}">${r || s}</option> `;
|
|
4127
4133
|
})}
|
|
4128
4134
|
</select>
|
|
4129
4135
|
|
|
4130
4136
|
<!-- Button to handle adding layers -->
|
|
4131
|
-
<button @click="${
|
|
4137
|
+
<button @click="${k(this, rn, xo)}">add</button>
|
|
4132
4138
|
`;
|
|
4133
4139
|
}
|
|
4134
4140
|
}
|
|
4135
4141
|
rn = new WeakSet(), xo = function() {
|
|
4136
|
-
|
|
4142
|
+
ra(this);
|
|
4137
4143
|
}, // Define static properties for the component
|
|
4138
4144
|
H(Eo, "properties", {
|
|
4139
4145
|
idProperty: { attribute: "id-property" },
|
|
@@ -4146,39 +4152,39 @@ customElements.define(
|
|
|
4146
4152
|
"eox-layercontrol-optional-list",
|
|
4147
4153
|
Eo
|
|
4148
4154
|
);
|
|
4149
|
-
const
|
|
4150
|
-
t.jsonInput =
|
|
4151
|
-
}, Si = (
|
|
4155
|
+
const sa = (n, t) => {
|
|
4156
|
+
t.jsonInput = n.target.value, t.requestUpdate();
|
|
4157
|
+
}, Si = (n) => {
|
|
4152
4158
|
const t = JSON.parse(
|
|
4153
|
-
`{"data":${Zi(
|
|
4159
|
+
`{"data":${Zi(n.jsonInput)}}`
|
|
4154
4160
|
);
|
|
4155
|
-
Array.isArray(t.data) ? t.data.forEach((
|
|
4156
|
-
|
|
4157
|
-
}) :
|
|
4158
|
-
},
|
|
4159
|
-
t.urlInput =
|
|
4161
|
+
Array.isArray(t.data) ? t.data.forEach((e) => {
|
|
4162
|
+
n.eoxMap.addOrUpdateLayer(e);
|
|
4163
|
+
}) : n.eoxMap.addOrUpdateLayer(t.data), n.jsonInput = null, n.requestUpdate();
|
|
4164
|
+
}, aa = (n, t) => {
|
|
4165
|
+
t.urlInput = n.target.value, t.requestUpdate();
|
|
4160
4166
|
};
|
|
4161
|
-
async function
|
|
4162
|
-
const t =
|
|
4163
|
-
if (
|
|
4167
|
+
async function la(n) {
|
|
4168
|
+
const t = n.urlInput;
|
|
4169
|
+
if (n.wmsCapabilities = null, n.searchLoad = !0, n.requestUpdate(), !t)
|
|
4164
4170
|
return !1;
|
|
4165
4171
|
if (qn(t) === "XYZ")
|
|
4166
4172
|
return { Name: t };
|
|
4167
4173
|
try {
|
|
4168
|
-
const
|
|
4169
|
-
|
|
4174
|
+
const e = await zr(t);
|
|
4175
|
+
n.wmsCapabilities = e;
|
|
4170
4176
|
} catch {
|
|
4171
4177
|
} finally {
|
|
4172
|
-
|
|
4178
|
+
n.searchLoad = !1, n.requestUpdate();
|
|
4173
4179
|
}
|
|
4174
4180
|
return !1;
|
|
4175
4181
|
}
|
|
4176
|
-
const
|
|
4177
|
-
const { Name:
|
|
4182
|
+
const ua = (n, t) => {
|
|
4183
|
+
const { Name: e } = n, i = qn(t.urlInput) || "XYZ", o = {
|
|
4178
4184
|
type: "Tile",
|
|
4179
4185
|
properties: {
|
|
4180
|
-
id:
|
|
4181
|
-
title:
|
|
4186
|
+
id: e,
|
|
4187
|
+
title: e
|
|
4182
4188
|
// Set the title property to the same as id
|
|
4183
4189
|
},
|
|
4184
4190
|
source: {
|
|
@@ -4186,16 +4192,16 @@ const da = (e, t) => {
|
|
|
4186
4192
|
url: t.urlInput,
|
|
4187
4193
|
// Set the URL from the instance
|
|
4188
4194
|
params: {
|
|
4189
|
-
LAYERS:
|
|
4195
|
+
LAYERS: e
|
|
4190
4196
|
// Set the 'LAYERS' parameter to the provided layer 'Name'
|
|
4191
4197
|
}
|
|
4192
4198
|
}
|
|
4193
4199
|
};
|
|
4194
4200
|
t.jsonInput = JSON.stringify(o);
|
|
4195
|
-
}, ca = (
|
|
4196
|
-
t.open =
|
|
4201
|
+
}, ca = (n, t) => {
|
|
4202
|
+
t.open = n || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
|
|
4197
4203
|
};
|
|
4198
|
-
var sn, $o, an, _o, be,
|
|
4204
|
+
var sn, $o, an, _o, be, Un, ln, Ao, un, Co, jt, He, cn, dn;
|
|
4199
4205
|
class So extends et {
|
|
4200
4206
|
constructor() {
|
|
4201
4207
|
super();
|
|
@@ -4262,7 +4268,7 @@ class So extends et {
|
|
|
4262
4268
|
* @type {import("wms-capabilities").WMSCapabilitiesJSON}
|
|
4263
4269
|
*/
|
|
4264
4270
|
H(this, "wmsCapabilities", null);
|
|
4265
|
-
$(this,
|
|
4271
|
+
$(this, cn, `
|
|
4266
4272
|
.eox-add-layer-main .open {
|
|
4267
4273
|
position: relative;
|
|
4268
4274
|
}
|
|
@@ -4270,7 +4276,7 @@ class So extends et {
|
|
|
4270
4276
|
display: none;
|
|
4271
4277
|
}
|
|
4272
4278
|
`);
|
|
4273
|
-
$(this,
|
|
4279
|
+
$(this, dn, `
|
|
4274
4280
|
.eox-add {
|
|
4275
4281
|
background: #f0f2f5;
|
|
4276
4282
|
border-top: 1px solid #0041701a;
|
|
@@ -4419,24 +4425,24 @@ class So extends et {
|
|
|
4419
4425
|
* Handles input fields, search, and addition of layers.
|
|
4420
4426
|
*/
|
|
4421
4427
|
render() {
|
|
4422
|
-
const
|
|
4428
|
+
const e = this.open ? "open" : "close", i = this.open === "url", o = this.open === "json", r = !Zr(this.urlInput) || this.searchLoad ? !0 : T;
|
|
4423
4429
|
return x`
|
|
4424
4430
|
<style>
|
|
4425
|
-
${R(this,
|
|
4426
|
-
${!this.unstyled && R(this,
|
|
4431
|
+
${R(this, cn)}
|
|
4432
|
+
${!this.unstyled && R(this, dn)}
|
|
4427
4433
|
</style>
|
|
4428
4434
|
<div class="eox-add-layer-main">
|
|
4429
4435
|
<div class="eox-add-layer-col">
|
|
4430
4436
|
<!-- Tabbed interface for URL and JSON -->
|
|
4431
|
-
<ul class="eox-add-layer-tab ${
|
|
4437
|
+
<ul class="eox-add-layer-tab ${e}">
|
|
4432
4438
|
<li
|
|
4433
|
-
@click=${() =>
|
|
4439
|
+
@click=${() => k(this, jt, He).call(this, "url")}
|
|
4434
4440
|
class="${i ? "active" : ""}"
|
|
4435
4441
|
>
|
|
4436
4442
|
URL
|
|
4437
4443
|
</li>
|
|
4438
4444
|
<li
|
|
4439
|
-
@click=${() =>
|
|
4445
|
+
@click=${() => k(this, jt, He).call(this, "json")}
|
|
4440
4446
|
class="${o ? "active" : ""}"
|
|
4441
4447
|
>
|
|
4442
4448
|
JSON
|
|
@@ -4446,12 +4452,12 @@ class So extends et {
|
|
|
4446
4452
|
<!-- Button to toggle tabs -->
|
|
4447
4453
|
<button
|
|
4448
4454
|
class="add-icon icon"
|
|
4449
|
-
@click=${() =>
|
|
4455
|
+
@click=${() => k(this, jt, He).call(this, this.open ? null : "url")}
|
|
4450
4456
|
>
|
|
4451
4457
|
${this.unstyled ? "Add Layer" : ""}
|
|
4452
4458
|
</button>
|
|
4453
4459
|
</div>
|
|
4454
|
-
<div class="eox-add ${
|
|
4460
|
+
<div class="eox-add ${e}">
|
|
4455
4461
|
${i ? x`
|
|
4456
4462
|
<!-- Input field for URL -->
|
|
4457
4463
|
<div class="eox-add-layer-col">
|
|
@@ -4460,14 +4466,14 @@ class So extends et {
|
|
|
4460
4466
|
class="add-url"
|
|
4461
4467
|
placeholder="Add URL (WMS/XYZ)"
|
|
4462
4468
|
.value="${this.urlInput}"
|
|
4463
|
-
@input=${
|
|
4469
|
+
@input=${k(this, sn, $o)}
|
|
4464
4470
|
>
|
|
4465
4471
|
</input>
|
|
4466
4472
|
<!-- Search button for URL -->
|
|
4467
4473
|
<button
|
|
4468
4474
|
class="search-icon"
|
|
4469
4475
|
disabled=${r}
|
|
4470
|
-
@click=${
|
|
4476
|
+
@click=${k(this, an, _o)}
|
|
4471
4477
|
>
|
|
4472
4478
|
${this.unstyled ? "Search" : ""}
|
|
4473
4479
|
</button>
|
|
@@ -4486,7 +4492,7 @@ class So extends et {
|
|
|
4486
4492
|
class="add-layer-icon icon"
|
|
4487
4493
|
@click=${() => (
|
|
4488
4494
|
//@ts-ignore
|
|
4489
|
-
|
|
4495
|
+
k(this, be, Un).call(this, s)
|
|
4490
4496
|
)}
|
|
4491
4497
|
>
|
|
4492
4498
|
${this.unstyled ? "+" : ""}
|
|
@@ -4501,7 +4507,7 @@ class So extends et {
|
|
|
4501
4507
|
<textarea
|
|
4502
4508
|
class="add-layer-input"
|
|
4503
4509
|
placeholder="Please put a valid eox-map layer JSON."
|
|
4504
|
-
@input=${
|
|
4510
|
+
@input=${k(this, un, Co)}
|
|
4505
4511
|
.value=${this.jsonInput}
|
|
4506
4512
|
></textarea>
|
|
4507
4513
|
|
|
@@ -4509,7 +4515,7 @@ class So extends et {
|
|
|
4509
4515
|
<button
|
|
4510
4516
|
class="add-layer-icon json-add-layer"
|
|
4511
4517
|
disabled=${Xr(this.jsonInput) ? T : !0}
|
|
4512
|
-
@click=${
|
|
4518
|
+
@click=${k(this, ln, Ao)}
|
|
4513
4519
|
>
|
|
4514
4520
|
${this.unstyled ? "Add JSON" : ""}
|
|
4515
4521
|
</button>
|
|
@@ -4519,39 +4525,36 @@ class So extends et {
|
|
|
4519
4525
|
`;
|
|
4520
4526
|
}
|
|
4521
4527
|
}
|
|
4522
|
-
sn = new WeakSet(), $o = function(
|
|
4523
|
-
|
|
4528
|
+
sn = new WeakSet(), $o = function(e) {
|
|
4529
|
+
aa(e, this);
|
|
4524
4530
|
}, an = new WeakSet(), _o = async function() {
|
|
4525
|
-
const
|
|
4526
|
-
|
|
4527
|
-
}, be = new WeakSet(),
|
|
4528
|
-
|
|
4531
|
+
const e = await la(this);
|
|
4532
|
+
e && k(this, be, Un).call(this, e);
|
|
4533
|
+
}, be = new WeakSet(), Un = function(e) {
|
|
4534
|
+
ua(e, this), Si(this);
|
|
4529
4535
|
}, ln = new WeakSet(), Ao = function() {
|
|
4530
4536
|
Si(this);
|
|
4531
|
-
}, un = new WeakSet(), Co = function(
|
|
4532
|
-
|
|
4533
|
-
}, jt = new WeakSet(), He = function(
|
|
4534
|
-
ca(
|
|
4535
|
-
},
|
|
4537
|
+
}, un = new WeakSet(), Co = function(e) {
|
|
4538
|
+
sa(e, this);
|
|
4539
|
+
}, jt = new WeakSet(), He = function(e) {
|
|
4540
|
+
ca(e, this);
|
|
4541
|
+
}, cn = new WeakMap(), dn = new WeakMap(), // Define static properties for the component
|
|
4536
4542
|
H(So, "properties", {
|
|
4537
4543
|
eoxMap: { attribute: !1, state: !0 },
|
|
4538
4544
|
unstyled: { type: Boolean },
|
|
4539
4545
|
noShadow: { type: Boolean }
|
|
4540
4546
|
});
|
|
4541
4547
|
customElements.define("eox-layercontrol-add-layers", So);
|
|
4542
|
-
const
|
|
4543
|
-
if (t.requestUpdate(),
|
|
4544
|
-
const
|
|
4548
|
+
const da = (n, t) => {
|
|
4549
|
+
if (t.requestUpdate(), n.target.tagName === "EOX-LAYERCONTROL-LAYER-TOOLS") {
|
|
4550
|
+
const e = t.renderRoot.querySelector(
|
|
4545
4551
|
"eox-layercontrol-optional-list"
|
|
4546
4552
|
);
|
|
4547
|
-
|
|
4548
|
-
}
|
|
4549
|
-
},
|
|
4550
|
-
const t = e.
|
|
4551
|
-
return
|
|
4552
|
-
}, fa = (e) => {
|
|
4553
|
-
const t = document.querySelector(e.for);
|
|
4554
|
-
t && t.map !== e.map && (e.map = t.map);
|
|
4553
|
+
e == null || e.requestUpdate();
|
|
4554
|
+
}
|
|
4555
|
+
}, ha = (n) => {
|
|
4556
|
+
const t = n.for, e = document.querySelector(t);
|
|
4557
|
+
return e && e.map !== n.map && (n.map = e.map), e;
|
|
4555
4558
|
};
|
|
4556
4559
|
var zt, hn, Po, pn;
|
|
4557
4560
|
class To extends et {
|
|
@@ -4573,22 +4576,16 @@ class To extends et {
|
|
|
4573
4576
|
$(this, pn, "* { font-family: Roboto, sans-serif; }");
|
|
4574
4577
|
this.for = "eox-map", this.idProperty = "id", this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = ["info", "opacity", "config", "remove", "sort"], this.addExternalLayers = !1, this.unstyled = !1, this.styleOverride = "";
|
|
4575
4578
|
}
|
|
4576
|
-
/**
|
|
4577
|
-
* Called when the component is updated
|
|
4578
|
-
*/
|
|
4579
|
-
updated() {
|
|
4580
|
-
fa(this);
|
|
4581
|
-
}
|
|
4582
4579
|
/**
|
|
4583
4580
|
* Called when the component is first updated
|
|
4584
4581
|
* Updated #eoxMap after first update.
|
|
4585
4582
|
*/
|
|
4586
4583
|
firstUpdated() {
|
|
4587
|
-
Jt(this, zt,
|
|
4584
|
+
Jt(this, zt, ha(this));
|
|
4588
4585
|
}
|
|
4589
4586
|
render() {
|
|
4590
4587
|
var o, r, s;
|
|
4591
|
-
const
|
|
4588
|
+
const e = (o = this.map) == null ? void 0 : o.getLayers().getArray(), i = e && ((r = Kn(e, "layerControlOptional", !0)) == null ? void 0 : r.length) > 0;
|
|
4592
4589
|
return x`
|
|
4593
4590
|
<style>
|
|
4594
4591
|
${!this.unstyled && R(this, pn)}
|
|
@@ -4621,7 +4618,7 @@ class To extends et {
|
|
|
4621
4618
|
.showLayerZoomState=${this.showLayerZoomState}
|
|
4622
4619
|
.tools=${this.tools}
|
|
4623
4620
|
.unstyled=${this.unstyled}
|
|
4624
|
-
@changed=${
|
|
4621
|
+
@changed=${k(this, hn, Po)}
|
|
4625
4622
|
></eox-layercontrol-layer-list>
|
|
4626
4623
|
`
|
|
4627
4624
|
)}
|
|
@@ -4642,8 +4639,8 @@ class To extends et {
|
|
|
4642
4639
|
`;
|
|
4643
4640
|
}
|
|
4644
4641
|
}
|
|
4645
|
-
zt = new WeakMap(), hn = new WeakSet(), Po = function(
|
|
4646
|
-
|
|
4642
|
+
zt = new WeakMap(), hn = new WeakSet(), Po = function(e) {
|
|
4643
|
+
da(e, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: e.detail }));
|
|
4647
4644
|
}, pn = new WeakMap(), // Define static properties for the component
|
|
4648
4645
|
H(To, "properties", {
|
|
4649
4646
|
for: { type: String },
|