@record-evolution/widget-mapbox 1.5.3 → 1.5.4
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/src/widget-mapbox.d.ts +8 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/widget-mapbox.js +367 -349
- package/dist/widget-mapbox.js.map +1 -1
- package/package.json +26 -28
- package/src/default-data.json +2 -0
- package/src/widget-mapbox.ts +35 -6
package/dist/widget-mapbox.js
CHANGED
|
@@ -34,21 +34,21 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
34
34
|
* Copyright 2019 Google LLC
|
|
35
35
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
36
36
|
*/
|
|
37
|
-
const t$
|
|
38
|
-
e$
|
|
39
|
-
s = Symbol(),
|
|
40
|
-
o$
|
|
37
|
+
const t$3 = globalThis,
|
|
38
|
+
e$3 = t$3.ShadowRoot && (void 0 === t$3.ShadyCSS || t$3.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
39
|
+
s$3 = Symbol(),
|
|
40
|
+
o$4 = new WeakMap();
|
|
41
41
|
let n$3 = class n {
|
|
42
42
|
constructor(t, e, o) {
|
|
43
|
-
if (this._$cssResult$ =
|
|
43
|
+
if (this._$cssResult$ = true, o !== s$3) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
44
44
|
this.cssText = t, this.t = e;
|
|
45
45
|
}
|
|
46
46
|
get styleSheet() {
|
|
47
47
|
let t = this.o;
|
|
48
48
|
const s = this.t;
|
|
49
|
-
if (e$
|
|
49
|
+
if (e$3 && void 0 === t) {
|
|
50
50
|
const e = void 0 !== s && 1 === s.length;
|
|
51
|
-
e && (t = o$
|
|
51
|
+
e && (t = o$4.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$4.set(s, t));
|
|
52
52
|
}
|
|
53
53
|
return t;
|
|
54
54
|
}
|
|
@@ -56,26 +56,26 @@ let n$3 = class n {
|
|
|
56
56
|
return this.cssText;
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
-
const r$
|
|
60
|
-
i$
|
|
59
|
+
const r$5 = t => new n$3("string" == typeof t ? t : t + "", void 0, s$3),
|
|
60
|
+
i$4 = (t, ...e) => {
|
|
61
61
|
const o = 1 === t.length ? t[0] : e.reduce((e, s, o) => e + (t => {
|
|
62
|
-
if (
|
|
62
|
+
if (true === t._$cssResult$) return t.cssText;
|
|
63
63
|
if ("number" == typeof t) return t;
|
|
64
64
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + t + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
65
65
|
})(s) + t[o + 1], t[0]);
|
|
66
|
-
return new n$3(o, t, s);
|
|
66
|
+
return new n$3(o, t, s$3);
|
|
67
67
|
},
|
|
68
68
|
S$1 = (s, o) => {
|
|
69
|
-
if (e$
|
|
69
|
+
if (e$3) s.adoptedStyleSheets = o.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet);else for (const e of o) {
|
|
70
70
|
const o = document.createElement("style"),
|
|
71
|
-
n = t$
|
|
71
|
+
n = t$3.litNonce;
|
|
72
72
|
void 0 !== n && o.setAttribute("nonce", n), o.textContent = e.cssText, s.appendChild(o);
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
c$
|
|
75
|
+
c$3 = e$3 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
|
|
76
76
|
let e = "";
|
|
77
77
|
for (const s of t.cssRules) e += s.cssText;
|
|
78
|
-
return r$
|
|
78
|
+
return r$5(e);
|
|
79
79
|
})(t) : t;
|
|
80
80
|
|
|
81
81
|
/**
|
|
@@ -84,23 +84,23 @@ const r$3 = t => new n$3("string" == typeof t ? t : t + "", void 0, s),
|
|
|
84
84
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
85
85
|
*/
|
|
86
86
|
const {
|
|
87
|
-
is: i$
|
|
88
|
-
defineProperty: e$
|
|
89
|
-
getOwnPropertyDescriptor:
|
|
90
|
-
getOwnPropertyNames:
|
|
91
|
-
getOwnPropertySymbols: o$
|
|
87
|
+
is: i$3,
|
|
88
|
+
defineProperty: e$2,
|
|
89
|
+
getOwnPropertyDescriptor: h$1,
|
|
90
|
+
getOwnPropertyNames: r$4,
|
|
91
|
+
getOwnPropertySymbols: o$3,
|
|
92
92
|
getPrototypeOf: n$2
|
|
93
93
|
} = Object,
|
|
94
|
-
a = globalThis,
|
|
95
|
-
c$
|
|
96
|
-
l = c$
|
|
97
|
-
p = a.reactiveElementPolyfillSupport,
|
|
98
|
-
d = (t, s) => t,
|
|
99
|
-
u = {
|
|
94
|
+
a$1 = globalThis,
|
|
95
|
+
c$2 = a$1.trustedTypes,
|
|
96
|
+
l$1 = c$2 ? c$2.emptyScript : "",
|
|
97
|
+
p$2 = a$1.reactiveElementPolyfillSupport,
|
|
98
|
+
d$1 = (t, s) => t,
|
|
99
|
+
u$3 = {
|
|
100
100
|
toAttribute(t, s) {
|
|
101
101
|
switch (s) {
|
|
102
102
|
case Boolean:
|
|
103
|
-
t = t ? l : null;
|
|
103
|
+
t = t ? l$1 : null;
|
|
104
104
|
break;
|
|
105
105
|
case Object:
|
|
106
106
|
case Array:
|
|
@@ -128,34 +128,35 @@ const {
|
|
|
128
128
|
return i;
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
|
-
f$
|
|
132
|
-
|
|
133
|
-
attribute:
|
|
131
|
+
f$1 = (t, s) => !i$3(t, s),
|
|
132
|
+
b = {
|
|
133
|
+
attribute: true,
|
|
134
134
|
type: String,
|
|
135
|
-
converter: u,
|
|
136
|
-
reflect:
|
|
137
|
-
|
|
135
|
+
converter: u$3,
|
|
136
|
+
reflect: false,
|
|
137
|
+
useDefault: false,
|
|
138
|
+
hasChanged: f$1
|
|
138
139
|
};
|
|
139
|
-
Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= new WeakMap();
|
|
140
|
-
class
|
|
140
|
+
Symbol.metadata ??= Symbol("metadata"), a$1.litPropertyMetadata ??= new WeakMap();
|
|
141
|
+
let y$1 = class y extends HTMLElement {
|
|
141
142
|
static addInitializer(t) {
|
|
142
143
|
this._$Ei(), (this.l ??= []).push(t);
|
|
143
144
|
}
|
|
144
145
|
static get observedAttributes() {
|
|
145
146
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
146
147
|
}
|
|
147
|
-
static createProperty(t, s =
|
|
148
|
-
if (s.state && (s.attribute =
|
|
148
|
+
static createProperty(t, s = b) {
|
|
149
|
+
if (s.state && (s.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = true), this.elementProperties.set(t, s), !s.noAccessor) {
|
|
149
150
|
const i = Symbol(),
|
|
150
|
-
|
|
151
|
-
void 0 !==
|
|
151
|
+
h = this.getPropertyDescriptor(t, i, s);
|
|
152
|
+
void 0 !== h && e$2(this.prototype, t, h);
|
|
152
153
|
}
|
|
153
154
|
}
|
|
154
155
|
static getPropertyDescriptor(t, s, i) {
|
|
155
156
|
const {
|
|
156
157
|
get: e,
|
|
157
|
-
set:
|
|
158
|
-
} =
|
|
158
|
+
set: r
|
|
159
|
+
} = h$1(this.prototype, t) ?? {
|
|
159
160
|
get() {
|
|
160
161
|
return this[s];
|
|
161
162
|
},
|
|
@@ -164,30 +165,28 @@ class b extends HTMLElement {
|
|
|
164
165
|
}
|
|
165
166
|
};
|
|
166
167
|
return {
|
|
167
|
-
get
|
|
168
|
-
return e?.call(this);
|
|
169
|
-
},
|
|
168
|
+
get: e,
|
|
170
169
|
set(s) {
|
|
171
|
-
const
|
|
172
|
-
|
|
170
|
+
const h = e?.call(this);
|
|
171
|
+
r?.call(this, s), this.requestUpdate(t, h, i);
|
|
173
172
|
},
|
|
174
|
-
configurable:
|
|
175
|
-
enumerable:
|
|
173
|
+
configurable: true,
|
|
174
|
+
enumerable: true
|
|
176
175
|
};
|
|
177
176
|
}
|
|
178
177
|
static getPropertyOptions(t) {
|
|
179
|
-
return this.elementProperties.get(t) ??
|
|
178
|
+
return this.elementProperties.get(t) ?? b;
|
|
180
179
|
}
|
|
181
180
|
static _$Ei() {
|
|
182
|
-
if (this.hasOwnProperty(d("elementProperties"))) return;
|
|
181
|
+
if (this.hasOwnProperty(d$1("elementProperties"))) return;
|
|
183
182
|
const t = n$2(this);
|
|
184
183
|
t.finalize(), void 0 !== t.l && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
185
184
|
}
|
|
186
185
|
static finalize() {
|
|
187
|
-
if (this.hasOwnProperty(d("finalized"))) return;
|
|
188
|
-
if (this.finalized =
|
|
186
|
+
if (this.hasOwnProperty(d$1("finalized"))) return;
|
|
187
|
+
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
|
|
189
188
|
const t = this.properties,
|
|
190
|
-
s = [...
|
|
189
|
+
s = [...r$4(t), ...o$3(t)];
|
|
191
190
|
for (const i of s) this.createProperty(i, t[i]);
|
|
192
191
|
}
|
|
193
192
|
const t = this[Symbol.metadata];
|
|
@@ -206,16 +205,16 @@ class b extends HTMLElement {
|
|
|
206
205
|
const i = [];
|
|
207
206
|
if (Array.isArray(s)) {
|
|
208
207
|
const e = new Set(s.flat(1 / 0).reverse());
|
|
209
|
-
for (const s of e) i.unshift(c$
|
|
210
|
-
} else void 0 !== s && i.push(c$
|
|
208
|
+
for (const s of e) i.unshift(c$3(s));
|
|
209
|
+
} else void 0 !== s && i.push(c$3(s));
|
|
211
210
|
return i;
|
|
212
211
|
}
|
|
213
212
|
static _$Eu(t, s) {
|
|
214
213
|
const i = s.attribute;
|
|
215
|
-
return
|
|
214
|
+
return false === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
|
|
216
215
|
}
|
|
217
216
|
constructor() {
|
|
218
|
-
super(), this._$Ep = void 0, this.isUpdatePending =
|
|
217
|
+
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
219
218
|
}
|
|
220
219
|
_$Ev() {
|
|
221
220
|
this._$ES = new Promise(t => this.enableUpdating = t), this._$AL = new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(t => t(this));
|
|
@@ -237,7 +236,7 @@ class b extends HTMLElement {
|
|
|
237
236
|
return S$1(t, this.constructor.elementStyles), t;
|
|
238
237
|
}
|
|
239
238
|
connectedCallback() {
|
|
240
|
-
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(
|
|
239
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach(t => t.hostConnected?.());
|
|
241
240
|
}
|
|
242
241
|
enableUpdating(t) {}
|
|
243
242
|
disconnectedCallback() {
|
|
@@ -246,12 +245,12 @@ class b extends HTMLElement {
|
|
|
246
245
|
attributeChangedCallback(t, s, i) {
|
|
247
246
|
this._$AK(t, i);
|
|
248
247
|
}
|
|
249
|
-
_$
|
|
248
|
+
_$ET(t, s) {
|
|
250
249
|
const i = this.constructor.elementProperties.get(t),
|
|
251
250
|
e = this.constructor._$Eu(t, i);
|
|
252
|
-
if (void 0 !== e &&
|
|
253
|
-
const
|
|
254
|
-
this._$Em = t, null ==
|
|
251
|
+
if (void 0 !== e && true === i.reflect) {
|
|
252
|
+
const h = (void 0 !== i.converter?.toAttribute ? i.converter : u$3).toAttribute(s, i.type);
|
|
253
|
+
this._$Em = t, null == h ? this.removeAttribute(e) : this.setAttribute(e, h), this._$Em = null;
|
|
255
254
|
}
|
|
256
255
|
}
|
|
257
256
|
_$AK(t, s) {
|
|
@@ -259,24 +258,30 @@ class b extends HTMLElement {
|
|
|
259
258
|
e = i._$Eh.get(t);
|
|
260
259
|
if (void 0 !== e && this._$Em !== e) {
|
|
261
260
|
const t = i.getPropertyOptions(e),
|
|
262
|
-
|
|
261
|
+
h = "function" == typeof t.converter ? {
|
|
263
262
|
fromAttribute: t.converter
|
|
264
|
-
} : void 0 !== t.converter?.fromAttribute ? t.converter : u;
|
|
265
|
-
this._$Em = e, this[e] =
|
|
263
|
+
} : void 0 !== t.converter?.fromAttribute ? t.converter : u$3;
|
|
264
|
+
this._$Em = e, this[e] = h.fromAttribute(s, t.type) ?? this._$Ej?.get(e) ?? null, this._$Em = null;
|
|
266
265
|
}
|
|
267
266
|
}
|
|
268
267
|
requestUpdate(t, s, i) {
|
|
269
268
|
if (void 0 !== t) {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
269
|
+
const e = this.constructor,
|
|
270
|
+
h = this[t];
|
|
271
|
+
if (i ??= e.getPropertyOptions(t), !((i.hasChanged ?? f$1)(h, s) || i.useDefault && i.reflect && h === this._$Ej?.get(t) && !this.hasAttribute(e._$Eu(t, i)))) return;
|
|
272
|
+
this.C(t, s, i);
|
|
273
|
+
}
|
|
274
|
+
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
275
|
+
}
|
|
276
|
+
C(t, s, {
|
|
277
|
+
useDefault: i,
|
|
278
|
+
reflect: e,
|
|
279
|
+
wrapped: h
|
|
280
|
+
}, r) {
|
|
281
|
+
i && !(this._$Ej ??= new Map()).has(t) && (this._$Ej.set(t, r ?? s ?? this[t]), true !== h || void 0 !== r) || (this._$AL.has(t) || (this.hasUpdated || i || (s = void 0), this._$AL.set(t, s)), true === e && this._$Em !== t && (this._$Eq ??= new Set()).add(t));
|
|
282
|
+
}
|
|
283
|
+
async _$EP() {
|
|
284
|
+
this.isUpdatePending = true;
|
|
280
285
|
try {
|
|
281
286
|
await this._$ES;
|
|
282
287
|
} catch (t) {
|
|
@@ -296,23 +301,29 @@ class b extends HTMLElement {
|
|
|
296
301
|
this._$Ep = void 0;
|
|
297
302
|
}
|
|
298
303
|
const t = this.constructor.elementProperties;
|
|
299
|
-
if (t.size > 0) for (const [s, i] of t)
|
|
304
|
+
if (t.size > 0) for (const [s, i] of t) {
|
|
305
|
+
const {
|
|
306
|
+
wrapped: t
|
|
307
|
+
} = i,
|
|
308
|
+
e = this[s];
|
|
309
|
+
true !== t || this._$AL.has(s) || void 0 === e || this.C(s, void 0, i, e);
|
|
310
|
+
}
|
|
300
311
|
}
|
|
301
|
-
let t =
|
|
312
|
+
let t = false;
|
|
302
313
|
const s = this._$AL;
|
|
303
314
|
try {
|
|
304
|
-
t = this.shouldUpdate(s), t ? (this.willUpdate(s), this._$EO?.forEach(t => t.hostUpdate?.()), this.update(s)) : this._$
|
|
315
|
+
t = this.shouldUpdate(s), t ? (this.willUpdate(s), this._$EO?.forEach(t => t.hostUpdate?.()), this.update(s)) : this._$EM();
|
|
305
316
|
} catch (s) {
|
|
306
|
-
throw t =
|
|
317
|
+
throw t = false, this._$EM(), s;
|
|
307
318
|
}
|
|
308
319
|
t && this._$AE(s);
|
|
309
320
|
}
|
|
310
321
|
willUpdate(t) {}
|
|
311
322
|
_$AE(t) {
|
|
312
|
-
this._$EO?.forEach(t => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated =
|
|
323
|
+
this._$EO?.forEach(t => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
|
|
313
324
|
}
|
|
314
|
-
_$
|
|
315
|
-
this._$AL = new Map(), this.isUpdatePending =
|
|
325
|
+
_$EM() {
|
|
326
|
+
this._$AL = new Map(), this.isUpdatePending = false;
|
|
316
327
|
}
|
|
317
328
|
get updateComplete() {
|
|
318
329
|
return this.getUpdateComplete();
|
|
@@ -321,149 +332,149 @@ class b extends HTMLElement {
|
|
|
321
332
|
return this._$ES;
|
|
322
333
|
}
|
|
323
334
|
shouldUpdate(t) {
|
|
324
|
-
return
|
|
335
|
+
return true;
|
|
325
336
|
}
|
|
326
337
|
update(t) {
|
|
327
|
-
this._$
|
|
338
|
+
this._$Eq &&= this._$Eq.forEach(t => this._$ET(t, this[t])), this._$EM();
|
|
328
339
|
}
|
|
329
340
|
updated(t) {}
|
|
330
341
|
firstUpdated(t) {}
|
|
331
|
-
}
|
|
332
|
-
|
|
342
|
+
};
|
|
343
|
+
y$1.elementStyles = [], y$1.shadowRootOptions = {
|
|
333
344
|
mode: "open"
|
|
334
|
-
},
|
|
335
|
-
ReactiveElement:
|
|
336
|
-
}), (a.reactiveElementVersions ??= []).push("2.0
|
|
345
|
+
}, y$1[d$1("elementProperties")] = new Map(), y$1[d$1("finalized")] = new Map(), p$2?.({
|
|
346
|
+
ReactiveElement: y$1
|
|
347
|
+
}), (a$1.reactiveElementVersions ??= []).push("2.1.0");
|
|
337
348
|
|
|
338
349
|
/**
|
|
339
350
|
* @license
|
|
340
351
|
* Copyright 2017 Google LLC
|
|
341
352
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
342
353
|
*/
|
|
343
|
-
const
|
|
344
|
-
|
|
345
|
-
|
|
354
|
+
const t$2 = globalThis,
|
|
355
|
+
i$2 = t$2.trustedTypes,
|
|
356
|
+
s$2 = i$2 ? i$2.createPolicy("lit-html", {
|
|
346
357
|
createHTML: t => t
|
|
347
358
|
}) : void 0,
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
$ = t =>
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
359
|
+
e$1 = "$lit$",
|
|
360
|
+
h = `lit$${Math.random().toFixed(9).slice(2)}$`,
|
|
361
|
+
o$2 = "?" + h,
|
|
362
|
+
n$1 = `<${o$2}>`,
|
|
363
|
+
r$3 = document,
|
|
364
|
+
l = () => r$3.createComment(""),
|
|
365
|
+
c$1 = t => null === t || "object" != typeof t && "function" != typeof t,
|
|
366
|
+
a = Array.isArray,
|
|
367
|
+
u$2 = t => a(t) || "function" == typeof t?.[Symbol.iterator],
|
|
368
|
+
d = "[ \t\n\f\r]",
|
|
369
|
+
f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
370
|
+
v$1 = /-->/g,
|
|
371
|
+
_ = />/g,
|
|
372
|
+
m$1 = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
373
|
+
p$1 = /'/g,
|
|
374
|
+
g = /"/g,
|
|
375
|
+
$ = /^(?:script|style|textarea|title)$/i,
|
|
376
|
+
y = t => (i, ...s) => ({
|
|
366
377
|
_$litType$: t,
|
|
367
378
|
strings: i,
|
|
368
379
|
values: s
|
|
369
380
|
}),
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
function
|
|
376
|
-
if (!
|
|
377
|
-
return void 0 !==
|
|
381
|
+
x = y(1),
|
|
382
|
+
T = Symbol.for("lit-noChange"),
|
|
383
|
+
E = Symbol.for("lit-nothing"),
|
|
384
|
+
A = new WeakMap(),
|
|
385
|
+
C = r$3.createTreeWalker(r$3, 129);
|
|
386
|
+
function P(t, i) {
|
|
387
|
+
if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
388
|
+
return void 0 !== s$2 ? s$2.createHTML(i) : i;
|
|
378
389
|
}
|
|
379
|
-
const
|
|
390
|
+
const V = (t, i) => {
|
|
380
391
|
const s = t.length - 1,
|
|
381
|
-
|
|
382
|
-
let
|
|
383
|
-
|
|
384
|
-
|
|
392
|
+
o = [];
|
|
393
|
+
let r,
|
|
394
|
+
l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "",
|
|
395
|
+
c = f;
|
|
385
396
|
for (let i = 0; i < s; i++) {
|
|
386
397
|
const s = t[i];
|
|
387
|
-
let
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
for (;
|
|
392
|
-
const
|
|
393
|
-
|
|
394
|
-
}
|
|
395
|
-
return [
|
|
398
|
+
let a,
|
|
399
|
+
u,
|
|
400
|
+
d = -1,
|
|
401
|
+
y = 0;
|
|
402
|
+
for (; y < s.length && (c.lastIndex = y, u = c.exec(s), null !== u);) y = c.lastIndex, c === f ? "!--" === u[1] ? c = v$1 : void 0 !== u[1] ? c = _ : void 0 !== u[2] ? ($.test(u[2]) && (r = RegExp("</" + u[2], "g")), c = m$1) : void 0 !== u[3] && (c = m$1) : c === m$1 ? ">" === u[0] ? (c = r ?? f, d = -1) : void 0 === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = void 0 === u[3] ? m$1 : '"' === u[3] ? g : p$1) : c === g || c === p$1 ? c = m$1 : c === v$1 || c === _ ? c = f : (c = m$1, r = void 0);
|
|
403
|
+
const x = c === m$1 && t[i + 1].startsWith("/>") ? " " : "";
|
|
404
|
+
l += c === f ? s + n$1 : d >= 0 ? (o.push(a), s.slice(0, d) + e$1 + s.slice(d) + h + x) : s + h + (-2 === d ? i : x);
|
|
405
|
+
}
|
|
406
|
+
return [P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")), o];
|
|
396
407
|
};
|
|
397
|
-
class
|
|
408
|
+
class N {
|
|
398
409
|
constructor({
|
|
399
410
|
strings: t,
|
|
400
|
-
_$litType$:
|
|
401
|
-
},
|
|
402
|
-
let
|
|
411
|
+
_$litType$: s
|
|
412
|
+
}, n) {
|
|
413
|
+
let r;
|
|
403
414
|
this.parts = [];
|
|
404
|
-
let
|
|
405
|
-
|
|
406
|
-
const
|
|
407
|
-
|
|
408
|
-
[
|
|
409
|
-
if (this.el =
|
|
415
|
+
let c = 0,
|
|
416
|
+
a = 0;
|
|
417
|
+
const u = t.length - 1,
|
|
418
|
+
d = this.parts,
|
|
419
|
+
[f, v] = V(t, s);
|
|
420
|
+
if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
|
|
410
421
|
const t = this.el.content.firstChild;
|
|
411
422
|
t.replaceWith(...t.childNodes);
|
|
412
423
|
}
|
|
413
|
-
for (; null !== (
|
|
414
|
-
if (1 ===
|
|
415
|
-
if (
|
|
416
|
-
const i = a
|
|
417
|
-
s =
|
|
418
|
-
|
|
419
|
-
|
|
424
|
+
for (; null !== (r = C.nextNode()) && d.length < u;) {
|
|
425
|
+
if (1 === r.nodeType) {
|
|
426
|
+
if (r.hasAttributes()) for (const t of r.getAttributeNames()) if (t.endsWith(e$1)) {
|
|
427
|
+
const i = v[a++],
|
|
428
|
+
s = r.getAttribute(t).split(h),
|
|
429
|
+
e = /([.?@])?(.*)/.exec(i);
|
|
430
|
+
d.push({
|
|
420
431
|
type: 1,
|
|
421
|
-
index:
|
|
422
|
-
name:
|
|
432
|
+
index: c,
|
|
433
|
+
name: e[2],
|
|
423
434
|
strings: s,
|
|
424
|
-
ctor: "." ===
|
|
425
|
-
}),
|
|
426
|
-
} else t.startsWith(
|
|
435
|
+
ctor: "." === e[1] ? H : "?" === e[1] ? I : "@" === e[1] ? L : k
|
|
436
|
+
}), r.removeAttribute(t);
|
|
437
|
+
} else t.startsWith(h) && (d.push({
|
|
427
438
|
type: 6,
|
|
428
|
-
index:
|
|
429
|
-
}),
|
|
430
|
-
if (
|
|
431
|
-
const t =
|
|
432
|
-
|
|
433
|
-
if (
|
|
434
|
-
|
|
435
|
-
for (let
|
|
439
|
+
index: c
|
|
440
|
+
}), r.removeAttribute(t));
|
|
441
|
+
if ($.test(r.tagName)) {
|
|
442
|
+
const t = r.textContent.split(h),
|
|
443
|
+
s = t.length - 1;
|
|
444
|
+
if (s > 0) {
|
|
445
|
+
r.textContent = i$2 ? i$2.emptyScript : "";
|
|
446
|
+
for (let i = 0; i < s; i++) r.append(t[i], l()), C.nextNode(), d.push({
|
|
436
447
|
type: 2,
|
|
437
|
-
index: ++
|
|
448
|
+
index: ++c
|
|
438
449
|
});
|
|
439
|
-
|
|
450
|
+
r.append(t[s], l());
|
|
440
451
|
}
|
|
441
452
|
}
|
|
442
|
-
} else if (8 ===
|
|
453
|
+
} else if (8 === r.nodeType) if (r.data === o$2) d.push({
|
|
443
454
|
type: 2,
|
|
444
|
-
index:
|
|
455
|
+
index: c
|
|
445
456
|
});else {
|
|
446
457
|
let t = -1;
|
|
447
|
-
for (; -1 !== (t =
|
|
458
|
+
for (; -1 !== (t = r.data.indexOf(h, t + 1));) d.push({
|
|
448
459
|
type: 7,
|
|
449
|
-
index:
|
|
450
|
-
}), t +=
|
|
460
|
+
index: c
|
|
461
|
+
}), t += h.length - 1;
|
|
451
462
|
}
|
|
452
|
-
|
|
463
|
+
c++;
|
|
453
464
|
}
|
|
454
465
|
}
|
|
455
466
|
static createElement(t, i) {
|
|
456
|
-
const s =
|
|
467
|
+
const s = r$3.createElement("template");
|
|
457
468
|
return s.innerHTML = t, s;
|
|
458
469
|
}
|
|
459
470
|
}
|
|
460
|
-
function
|
|
461
|
-
if (i ===
|
|
462
|
-
let h = void 0 !== e ? s.
|
|
463
|
-
const o =
|
|
464
|
-
return h?.constructor !== o && (h?._$AO?.(
|
|
471
|
+
function S(t, i, s = t, e) {
|
|
472
|
+
if (i === T) return i;
|
|
473
|
+
let h = void 0 !== e ? s._$Co?.[e] : s._$Cl;
|
|
474
|
+
const o = c$1(i) ? void 0 : i._$litDirective$;
|
|
475
|
+
return h?.constructor !== o && (h?._$AO?.(false), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? (s._$Co ??= [])[e] = h : s._$Cl = h), void 0 !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
|
|
465
476
|
}
|
|
466
|
-
class
|
|
477
|
+
let M$1 = class M {
|
|
467
478
|
constructor(t, i) {
|
|
468
479
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
|
469
480
|
}
|
|
@@ -480,32 +491,32 @@ class F {
|
|
|
480
491
|
},
|
|
481
492
|
parts: s
|
|
482
493
|
} = this._$AD,
|
|
483
|
-
e = (t?.creationScope ??
|
|
484
|
-
|
|
485
|
-
let h =
|
|
494
|
+
e = (t?.creationScope ?? r$3).importNode(i, true);
|
|
495
|
+
C.currentNode = e;
|
|
496
|
+
let h = C.nextNode(),
|
|
486
497
|
o = 0,
|
|
487
498
|
n = 0,
|
|
488
|
-
|
|
489
|
-
for (; void 0 !==
|
|
490
|
-
if (o ===
|
|
499
|
+
l = s[0];
|
|
500
|
+
for (; void 0 !== l;) {
|
|
501
|
+
if (o === l.index) {
|
|
491
502
|
let i;
|
|
492
|
-
2 ===
|
|
503
|
+
2 === l.type ? i = new R(h, h.nextSibling, this, t) : 1 === l.type ? i = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i = new z(h, this, t)), this._$AV.push(i), l = s[++n];
|
|
493
504
|
}
|
|
494
|
-
o !==
|
|
505
|
+
o !== l?.index && (h = C.nextNode(), o++);
|
|
495
506
|
}
|
|
496
|
-
return
|
|
507
|
+
return C.currentNode = r$3, e;
|
|
497
508
|
}
|
|
498
509
|
p(t) {
|
|
499
510
|
let i = 0;
|
|
500
511
|
for (const s of this._$AV) void 0 !== s && (void 0 !== s.strings ? (s._$AI(t, s, i), i += s.strings.length - 2) : s._$AI(t[i])), i++;
|
|
501
512
|
}
|
|
502
|
-
}
|
|
503
|
-
|
|
513
|
+
};
|
|
514
|
+
class R {
|
|
504
515
|
get _$AU() {
|
|
505
|
-
return this._$AM?._$AU ?? this.
|
|
516
|
+
return this._$AM?._$AU ?? this._$Cv;
|
|
506
517
|
}
|
|
507
518
|
constructor(t, i, s, e) {
|
|
508
|
-
this.type = 2, this._$AH =
|
|
519
|
+
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = e?.isConnected ?? true;
|
|
509
520
|
}
|
|
510
521
|
get parentNode() {
|
|
511
522
|
let t = this._$AA.parentNode;
|
|
@@ -519,7 +530,7 @@ let et$1 = class et {
|
|
|
519
530
|
return this._$AB;
|
|
520
531
|
}
|
|
521
532
|
_$AI(t, i = this) {
|
|
522
|
-
t =
|
|
533
|
+
t = S(this, t, i), c$1(t) ? t === E || null == t || "" === t ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== T && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u$2(t) ? this.k(t) : this._(t);
|
|
523
534
|
}
|
|
524
535
|
O(t) {
|
|
525
536
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -528,43 +539,43 @@ let et$1 = class et {
|
|
|
528
539
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
529
540
|
}
|
|
530
541
|
_(t) {
|
|
531
|
-
this._$AH !==
|
|
542
|
+
this._$AH !== E && c$1(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$3.createTextNode(t)), this._$AH = t;
|
|
532
543
|
}
|
|
533
544
|
$(t) {
|
|
534
545
|
const {
|
|
535
546
|
values: i,
|
|
536
547
|
_$litType$: s
|
|
537
548
|
} = t,
|
|
538
|
-
e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el =
|
|
549
|
+
e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = N.createElement(P(s.h, s.h[0]), this.options)), s);
|
|
539
550
|
if (this._$AH?._$AD === e) this._$AH.p(i);else {
|
|
540
|
-
const t = new
|
|
551
|
+
const t = new M$1(e, this),
|
|
541
552
|
s = t.u(this.options);
|
|
542
553
|
t.p(i), this.T(s), this._$AH = t;
|
|
543
554
|
}
|
|
544
555
|
}
|
|
545
556
|
_$AC(t) {
|
|
546
|
-
let i =
|
|
547
|
-
return void 0 === i &&
|
|
557
|
+
let i = A.get(t.strings);
|
|
558
|
+
return void 0 === i && A.set(t.strings, i = new N(t)), i;
|
|
548
559
|
}
|
|
549
560
|
k(t) {
|
|
550
|
-
|
|
561
|
+
a(this._$AH) || (this._$AH = [], this._$AR());
|
|
551
562
|
const i = this._$AH;
|
|
552
563
|
let s,
|
|
553
564
|
e = 0;
|
|
554
|
-
for (const h of t) e === i.length ? i.push(s = new
|
|
565
|
+
for (const h of t) e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
|
|
555
566
|
e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
|
|
556
567
|
}
|
|
557
568
|
_$AR(t = this._$AA.nextSibling, i) {
|
|
558
|
-
for (this._$AP?.(
|
|
569
|
+
for (this._$AP?.(false, true, i); t && t !== this._$AB;) {
|
|
559
570
|
const i = t.nextSibling;
|
|
560
571
|
t.remove(), t = i;
|
|
561
572
|
}
|
|
562
573
|
}
|
|
563
574
|
setConnected(t) {
|
|
564
|
-
void 0 === this._$AM && (this.
|
|
575
|
+
void 0 === this._$AM && (this._$Cv = t, this._$AP?.(t));
|
|
565
576
|
}
|
|
566
|
-
}
|
|
567
|
-
class
|
|
577
|
+
}
|
|
578
|
+
class k {
|
|
568
579
|
get tagName() {
|
|
569
580
|
return this.element.tagName;
|
|
570
581
|
}
|
|
@@ -572,54 +583,54 @@ class G {
|
|
|
572
583
|
return this._$AM._$AU;
|
|
573
584
|
}
|
|
574
585
|
constructor(t, i, s, e, h) {
|
|
575
|
-
this.type = 1, this._$AH =
|
|
586
|
+
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = E;
|
|
576
587
|
}
|
|
577
588
|
_$AI(t, i = this, s, e) {
|
|
578
589
|
const h = this.strings;
|
|
579
|
-
let o =
|
|
580
|
-
if (void 0 === h) t =
|
|
590
|
+
let o = false;
|
|
591
|
+
if (void 0 === h) t = S(this, t, i, 0), o = !c$1(t) || t !== this._$AH && t !== T, o && (this._$AH = t);else {
|
|
581
592
|
const e = t;
|
|
582
593
|
let n, r;
|
|
583
|
-
for (t = h[0], n = 0; n < h.length - 1; n++) r =
|
|
594
|
+
for (t = h[0], n = 0; n < h.length - 1; n++) r = S(this, e[s + n], i, n), r === T && (r = this._$AH[n]), o ||= !c$1(r) || r !== this._$AH[n], r === E ? t = E : t !== E && (t += (r ?? "") + h[n + 1]), this._$AH[n] = r;
|
|
584
595
|
}
|
|
585
596
|
o && !e && this.j(t);
|
|
586
597
|
}
|
|
587
598
|
j(t) {
|
|
588
|
-
t ===
|
|
599
|
+
t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
589
600
|
}
|
|
590
601
|
}
|
|
591
|
-
class
|
|
602
|
+
class H extends k {
|
|
592
603
|
constructor() {
|
|
593
604
|
super(...arguments), this.type = 3;
|
|
594
605
|
}
|
|
595
606
|
j(t) {
|
|
596
|
-
this.element[this.name] = t ===
|
|
607
|
+
this.element[this.name] = t === E ? void 0 : t;
|
|
597
608
|
}
|
|
598
609
|
}
|
|
599
|
-
class
|
|
610
|
+
class I extends k {
|
|
600
611
|
constructor() {
|
|
601
612
|
super(...arguments), this.type = 4;
|
|
602
613
|
}
|
|
603
614
|
j(t) {
|
|
604
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
615
|
+
this.element.toggleAttribute(this.name, !!t && t !== E);
|
|
605
616
|
}
|
|
606
617
|
}
|
|
607
|
-
class
|
|
618
|
+
class L extends k {
|
|
608
619
|
constructor(t, i, s, e, h) {
|
|
609
620
|
super(t, i, s, e, h), this.type = 5;
|
|
610
621
|
}
|
|
611
622
|
_$AI(t, i = this) {
|
|
612
|
-
if ((t =
|
|
623
|
+
if ((t = S(this, t, i, 0) ?? E) === T) return;
|
|
613
624
|
const s = this._$AH,
|
|
614
|
-
e = t ===
|
|
615
|
-
h = t !==
|
|
625
|
+
e = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive,
|
|
626
|
+
h = t !== E && (s === E || e);
|
|
616
627
|
e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
617
628
|
}
|
|
618
629
|
handleEvent(t) {
|
|
619
630
|
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
|
|
620
631
|
}
|
|
621
632
|
}
|
|
622
|
-
class
|
|
633
|
+
class z {
|
|
623
634
|
constructor(t, i, s) {
|
|
624
635
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
|
|
625
636
|
}
|
|
@@ -627,33 +638,19 @@ class K {
|
|
|
627
638
|
return this._$AM._$AU;
|
|
628
639
|
}
|
|
629
640
|
_$AI(t) {
|
|
630
|
-
|
|
641
|
+
S(this, t);
|
|
631
642
|
}
|
|
632
643
|
}
|
|
633
|
-
const
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
L: U,
|
|
639
|
-
R: F,
|
|
640
|
-
D: $,
|
|
641
|
-
V: z,
|
|
642
|
-
I: et$1,
|
|
643
|
-
H: G,
|
|
644
|
-
N: Z,
|
|
645
|
-
U: q,
|
|
646
|
-
B: Y,
|
|
647
|
-
F: K
|
|
648
|
-
},
|
|
649
|
-
Re = n$1.litHtmlPolyfillSupport;
|
|
650
|
-
Re?.(B, et$1), (n$1.litHtmlVersions ??= []).push("3.2.0");
|
|
651
|
-
const Q = (t, i, s) => {
|
|
644
|
+
const Z = {
|
|
645
|
+
I: R},
|
|
646
|
+
j = t$2.litHtmlPolyfillSupport;
|
|
647
|
+
j?.(N, R), (t$2.litHtmlVersions ??= []).push("3.3.0");
|
|
648
|
+
const B = (t, i, s) => {
|
|
652
649
|
const e = s?.renderBefore ?? i;
|
|
653
650
|
let h = e._$litPart$;
|
|
654
651
|
if (void 0 === h) {
|
|
655
652
|
const t = s?.renderBefore ?? null;
|
|
656
|
-
e._$litPart$ = h = new
|
|
653
|
+
e._$litPart$ = h = new R(i.insertBefore(l(), t), t, void 0, s ?? {});
|
|
657
654
|
}
|
|
658
655
|
return h._$AI(t), h;
|
|
659
656
|
};
|
|
@@ -663,38 +660,39 @@ const Q = (t, i, s) => {
|
|
|
663
660
|
* Copyright 2017 Google LLC
|
|
664
661
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
665
662
|
*/
|
|
666
|
-
|
|
663
|
+
const s$1 = globalThis;
|
|
664
|
+
let i$1 = class i extends y$1 {
|
|
667
665
|
constructor() {
|
|
668
666
|
super(...arguments), this.renderOptions = {
|
|
669
667
|
host: this
|
|
670
|
-
}, this.
|
|
668
|
+
}, this._$Do = void 0;
|
|
671
669
|
}
|
|
672
670
|
createRenderRoot() {
|
|
673
671
|
const t = super.createRenderRoot();
|
|
674
672
|
return this.renderOptions.renderBefore ??= t.firstChild, t;
|
|
675
673
|
}
|
|
676
674
|
update(t) {
|
|
677
|
-
const
|
|
678
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this.
|
|
675
|
+
const r = this.render();
|
|
676
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = B(r, this.renderRoot, this.renderOptions);
|
|
679
677
|
}
|
|
680
678
|
connectedCallback() {
|
|
681
|
-
super.connectedCallback(), this.
|
|
679
|
+
super.connectedCallback(), this._$Do?.setConnected(true);
|
|
682
680
|
}
|
|
683
681
|
disconnectedCallback() {
|
|
684
|
-
super.disconnectedCallback(), this.
|
|
682
|
+
super.disconnectedCallback(), this._$Do?.setConnected(false);
|
|
685
683
|
}
|
|
686
684
|
render() {
|
|
687
|
-
return
|
|
685
|
+
return T;
|
|
688
686
|
}
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
LitElement:
|
|
687
|
+
};
|
|
688
|
+
i$1._$litElement$ = true, i$1["finalized"] = true, s$1.litElementHydrateSupport?.({
|
|
689
|
+
LitElement: i$1
|
|
692
690
|
});
|
|
693
|
-
const
|
|
694
|
-
|
|
695
|
-
LitElement:
|
|
691
|
+
const o$1 = s$1.litElementPolyfillSupport;
|
|
692
|
+
o$1?.({
|
|
693
|
+
LitElement: i$1
|
|
696
694
|
});
|
|
697
|
-
(
|
|
695
|
+
(s$1.litElementVersions ??= []).push("4.2.0");
|
|
698
696
|
|
|
699
697
|
/**
|
|
700
698
|
* @license
|
|
@@ -702,19 +700,19 @@ f?.({
|
|
|
702
700
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
703
701
|
*/
|
|
704
702
|
const o = {
|
|
705
|
-
attribute:
|
|
703
|
+
attribute: true,
|
|
706
704
|
type: String,
|
|
707
|
-
converter: u,
|
|
708
|
-
reflect:
|
|
709
|
-
hasChanged: f$
|
|
705
|
+
converter: u$3,
|
|
706
|
+
reflect: false,
|
|
707
|
+
hasChanged: f$1
|
|
710
708
|
},
|
|
711
|
-
r$
|
|
709
|
+
r$2 = (t = o, e, r) => {
|
|
712
710
|
const {
|
|
713
711
|
kind: n,
|
|
714
712
|
metadata: i
|
|
715
713
|
} = r;
|
|
716
714
|
let s = globalThis.litPropertyMetadata.get(i);
|
|
717
|
-
if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map()), s.set(r.name, t), "accessor" === n) {
|
|
715
|
+
if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map()), "setter" === n && ((t = Object.create(t)).wrapped = true), s.set(r.name, t), "accessor" === n) {
|
|
718
716
|
const {
|
|
719
717
|
name: o
|
|
720
718
|
} = r;
|
|
@@ -724,7 +722,7 @@ const o = {
|
|
|
724
722
|
e.set.call(this, r), this.requestUpdate(o, n, t);
|
|
725
723
|
},
|
|
726
724
|
init(e) {
|
|
727
|
-
return void 0 !== e && this.
|
|
725
|
+
return void 0 !== e && this.C(o, void 0, t, e), e;
|
|
728
726
|
}
|
|
729
727
|
};
|
|
730
728
|
}
|
|
@@ -740,12 +738,9 @@ const o = {
|
|
|
740
738
|
throw Error("Unsupported decorator location: " + n);
|
|
741
739
|
};
|
|
742
740
|
function n(t) {
|
|
743
|
-
return (e, o) => "object" == typeof o ? r$
|
|
741
|
+
return (e, o) => "object" == typeof o ? r$2(t, e, o) : ((t, e, o) => {
|
|
744
742
|
const r = e.hasOwnProperty(o);
|
|
745
|
-
return e.constructor.createProperty(o, r ?
|
|
746
|
-
...t,
|
|
747
|
-
wrapped: !0
|
|
748
|
-
} : t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
|
|
743
|
+
return e.constructor.createProperty(o, t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
|
|
749
744
|
})(t, e, o);
|
|
750
745
|
}
|
|
751
746
|
|
|
@@ -754,11 +749,11 @@ function n(t) {
|
|
|
754
749
|
* Copyright 2017 Google LLC
|
|
755
750
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
756
751
|
*/
|
|
757
|
-
function r(r) {
|
|
752
|
+
function r$1(r) {
|
|
758
753
|
return n({
|
|
759
754
|
...r,
|
|
760
|
-
state:
|
|
761
|
-
attribute:
|
|
755
|
+
state: true,
|
|
756
|
+
attribute: false
|
|
762
757
|
});
|
|
763
758
|
}
|
|
764
759
|
|
|
@@ -767,14 +762,8 @@ function r(r) {
|
|
|
767
762
|
* Copyright 2017 Google LLC
|
|
768
763
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
769
764
|
*/
|
|
770
|
-
const t = {
|
|
771
|
-
|
|
772
|
-
CHILD: 2,
|
|
773
|
-
PROPERTY: 3,
|
|
774
|
-
BOOLEAN_ATTRIBUTE: 4,
|
|
775
|
-
EVENT: 5,
|
|
776
|
-
ELEMENT: 6
|
|
777
|
-
},
|
|
765
|
+
const t$1 = {
|
|
766
|
+
CHILD: 2},
|
|
778
767
|
e = t => (...e) => ({
|
|
779
768
|
_$litDirective$: t,
|
|
780
769
|
values: e
|
|
@@ -785,7 +774,7 @@ class i {
|
|
|
785
774
|
return this._$AM._$AU;
|
|
786
775
|
}
|
|
787
776
|
_$AT(t, e, i) {
|
|
788
|
-
this.
|
|
777
|
+
this._$Ct = t, this._$AM = e, this._$Ci = i;
|
|
789
778
|
}
|
|
790
779
|
_$AS(t, e) {
|
|
791
780
|
return this.update(t, e);
|
|
@@ -801,40 +790,40 @@ class i {
|
|
|
801
790
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
802
791
|
*/
|
|
803
792
|
const {
|
|
804
|
-
I:
|
|
805
|
-
} =
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
const
|
|
809
|
-
|
|
810
|
-
if (void 0 ===
|
|
811
|
-
const
|
|
812
|
-
|
|
813
|
-
|
|
793
|
+
I: t
|
|
794
|
+
} = Z,
|
|
795
|
+
s = () => document.createComment(""),
|
|
796
|
+
r = (o, i, n) => {
|
|
797
|
+
const e = o._$AA.parentNode,
|
|
798
|
+
l = void 0 === i ? o._$AB : i._$AA;
|
|
799
|
+
if (void 0 === n) {
|
|
800
|
+
const i = e.insertBefore(s(), l),
|
|
801
|
+
c = e.insertBefore(s(), l);
|
|
802
|
+
n = new t(i, c, o, o.options);
|
|
814
803
|
} else {
|
|
815
|
-
const t =
|
|
816
|
-
|
|
817
|
-
c =
|
|
804
|
+
const t = n._$AB.nextSibling,
|
|
805
|
+
i = n._$AM,
|
|
806
|
+
c = i !== o;
|
|
818
807
|
if (c) {
|
|
819
808
|
let t;
|
|
820
|
-
|
|
809
|
+
n._$AQ?.(o), n._$AM = o, void 0 !== n._$AP && (t = o._$AU) !== i._$AU && n._$AP(t);
|
|
821
810
|
}
|
|
822
|
-
if (t !==
|
|
823
|
-
let o =
|
|
811
|
+
if (t !== l || c) {
|
|
812
|
+
let o = n._$AA;
|
|
824
813
|
for (; o !== t;) {
|
|
825
814
|
const t = o.nextSibling;
|
|
826
|
-
|
|
815
|
+
e.insertBefore(o, l), o = t;
|
|
827
816
|
}
|
|
828
817
|
}
|
|
829
818
|
}
|
|
830
|
-
return
|
|
819
|
+
return n;
|
|
831
820
|
},
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
o._$AP?.(
|
|
821
|
+
v = (o, t, i = o) => (o._$AI(t, i), o),
|
|
822
|
+
u$1 = {},
|
|
823
|
+
m = (o, t = u$1) => o._$AH = t,
|
|
824
|
+
p = o => o._$AH,
|
|
825
|
+
M = o => {
|
|
826
|
+
o._$AP?.(false, true);
|
|
838
827
|
let t = o._$AA;
|
|
839
828
|
const i = o._$AB.nextSibling;
|
|
840
829
|
for (; t !== i;) {
|
|
@@ -848,14 +837,14 @@ const {
|
|
|
848
837
|
* Copyright 2017 Google LLC
|
|
849
838
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
850
839
|
*/
|
|
851
|
-
const
|
|
840
|
+
const u = (e, s, t) => {
|
|
852
841
|
const r = new Map();
|
|
853
842
|
for (let l = s; l <= t; l++) r.set(e[l], l);
|
|
854
843
|
return r;
|
|
855
844
|
},
|
|
856
|
-
|
|
845
|
+
c = e(class extends i {
|
|
857
846
|
constructor(e) {
|
|
858
|
-
if (super(e), e.type !== t.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
847
|
+
if (super(e), e.type !== t$1.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
859
848
|
}
|
|
860
849
|
dt(e, s, t) {
|
|
861
850
|
let r;
|
|
@@ -872,41 +861,41 @@ const Jt = (e, s, t) => {
|
|
|
872
861
|
render(e, s, t) {
|
|
873
862
|
return this.dt(e, s, t).values;
|
|
874
863
|
}
|
|
875
|
-
update(
|
|
876
|
-
const
|
|
864
|
+
update(s, [t, r$1, c]) {
|
|
865
|
+
const d = p(s),
|
|
877
866
|
{
|
|
878
|
-
values:
|
|
879
|
-
keys:
|
|
880
|
-
} = this.dt(
|
|
881
|
-
if (!Array.isArray(
|
|
882
|
-
const
|
|
883
|
-
|
|
884
|
-
let
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
for (;
|
|
891
|
-
if (
|
|
892
|
-
const
|
|
893
|
-
t = void 0 !==
|
|
867
|
+
values: p$1,
|
|
868
|
+
keys: a
|
|
869
|
+
} = this.dt(t, r$1, c);
|
|
870
|
+
if (!Array.isArray(d)) return this.ut = a, p$1;
|
|
871
|
+
const h = this.ut ??= [],
|
|
872
|
+
v$1 = [];
|
|
873
|
+
let m$1,
|
|
874
|
+
y,
|
|
875
|
+
x = 0,
|
|
876
|
+
j = d.length - 1,
|
|
877
|
+
k = 0,
|
|
878
|
+
w = p$1.length - 1;
|
|
879
|
+
for (; x <= j && k <= w;) if (null === d[x]) x++;else if (null === d[j]) j--;else if (h[x] === a[k]) v$1[k] = v(d[x], p$1[k]), x++, k++;else if (h[j] === a[w]) v$1[w] = v(d[j], p$1[w]), j--, w--;else if (h[x] === a[w]) v$1[w] = v(d[x], p$1[w]), r(s, v$1[w + 1], d[x]), x++, w--;else if (h[j] === a[k]) v$1[k] = v(d[j], p$1[k]), r(s, d[x], d[j]), j--, k++;else if (void 0 === m$1 && (m$1 = u(a, k, w), y = u(h, x, j)), m$1.has(h[x])) {
|
|
880
|
+
if (m$1.has(h[j])) {
|
|
881
|
+
const e = y.get(a[k]),
|
|
882
|
+
t = void 0 !== e ? d[e] : null;
|
|
894
883
|
if (null === t) {
|
|
895
|
-
const
|
|
896
|
-
|
|
897
|
-
} else
|
|
898
|
-
|
|
899
|
-
} else
|
|
900
|
-
} else
|
|
901
|
-
for (;
|
|
902
|
-
const
|
|
903
|
-
|
|
884
|
+
const e = r(s, d[x]);
|
|
885
|
+
v(e, p$1[k]), v$1[k] = e;
|
|
886
|
+
} else v$1[k] = v(t, p$1[k]), r(s, d[x], t), d[e] = null;
|
|
887
|
+
k++;
|
|
888
|
+
} else M(d[j]), j--;
|
|
889
|
+
} else M(d[x]), x++;
|
|
890
|
+
for (; k <= w;) {
|
|
891
|
+
const e = r(s, v$1[w + 1]);
|
|
892
|
+
v(e, p$1[k]), v$1[k++] = e;
|
|
904
893
|
}
|
|
905
|
-
for (;
|
|
906
|
-
const e =
|
|
907
|
-
null !== e &&
|
|
894
|
+
for (; x <= j;) {
|
|
895
|
+
const e = d[x++];
|
|
896
|
+
null !== e && M(e);
|
|
908
897
|
}
|
|
909
|
-
return this.ut =
|
|
898
|
+
return this.ut = a, m(s, v$1), T;
|
|
910
899
|
}
|
|
911
900
|
});
|
|
912
901
|
|
|
@@ -2089,14 +2078,14 @@ function validateWCAG2Parms(parms) {
|
|
|
2089
2078
|
};
|
|
2090
2079
|
}
|
|
2091
2080
|
|
|
2092
|
-
class WidgetMapbox extends
|
|
2081
|
+
class WidgetMapbox extends i$1 {
|
|
2093
2082
|
constructor() {
|
|
2094
2083
|
super();
|
|
2095
2084
|
this.map = undefined;
|
|
2096
2085
|
this.dataSets = [];
|
|
2097
2086
|
this.dataSources = new Map();
|
|
2098
2087
|
this.colors = new Map();
|
|
2099
|
-
this.version = '1.5.
|
|
2088
|
+
this.version = '1.5.4';
|
|
2100
2089
|
this.mapLoaded = false;
|
|
2101
2090
|
this.imageList = [];
|
|
2102
2091
|
this.resizeObserver = new ResizeObserver(() => {
|
|
@@ -2112,9 +2101,18 @@ class WidgetMapbox extends h {
|
|
|
2112
2101
|
}
|
|
2113
2102
|
}
|
|
2114
2103
|
update(changedProperties) {
|
|
2104
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2115
2105
|
if (changedProperties.has('inputData')) {
|
|
2116
2106
|
this.transformInputData();
|
|
2117
2107
|
}
|
|
2108
|
+
if (changedProperties.has('theme')) {
|
|
2109
|
+
const cssTextColor = getComputedStyle(this).getPropertyValue('--re-text-color').trim();
|
|
2110
|
+
const cssBgColor = getComputedStyle(this).getPropertyValue('--re-background-color').trim();
|
|
2111
|
+
this.themeBgColor = cssBgColor || ((_b = (_a = this.theme) === null || _a === void 0 ? void 0 : _a.theme_object) === null || _b === void 0 ? void 0 : _b.backgroundColor);
|
|
2112
|
+
this.themeTitleColor = cssTextColor || ((_f = (_e = (_d = (_c = this.theme) === null || _c === void 0 ? void 0 : _c.theme_object) === null || _d === void 0 ? void 0 : _d.title) === null || _e === void 0 ? void 0 : _e.textStyle) === null || _f === void 0 ? void 0 : _f.color);
|
|
2113
|
+
this.themeSubtitleColor =
|
|
2114
|
+
cssTextColor || ((_k = (_j = (_h = (_g = this.theme) === null || _g === void 0 ? void 0 : _g.theme_object) === null || _h === void 0 ? void 0 : _h.title) === null || _j === void 0 ? void 0 : _j.subtextStyle) === null || _k === void 0 ? void 0 : _k.color) || this.themeTitleColor;
|
|
2115
|
+
}
|
|
2118
2116
|
super.update(changedProperties);
|
|
2119
2117
|
}
|
|
2120
2118
|
firstUpdated() {
|
|
@@ -2575,20 +2573,29 @@ class WidgetMapbox extends h {
|
|
|
2575
2573
|
}
|
|
2576
2574
|
render() {
|
|
2577
2575
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2578
|
-
return
|
|
2576
|
+
return x `
|
|
2579
2577
|
<link
|
|
2580
2578
|
href="https://api.mapbox.com/mapbox-gl-js/v${mapboxgl.version}/mapbox-gl.css"
|
|
2581
2579
|
rel="stylesheet"
|
|
2582
2580
|
/>
|
|
2583
|
-
<div
|
|
2581
|
+
<div
|
|
2582
|
+
class="wrapper"
|
|
2583
|
+
style="background-color: ${this.themeBgColor}; color: ${this.themeTitleColor}"
|
|
2584
|
+
>
|
|
2584
2585
|
<header class="paging" ?active=${((_a = this.inputData) === null || _a === void 0 ? void 0 : _a.title) || ((_b = this.inputData) === null || _b === void 0 ? void 0 : _b.subTitle)}>
|
|
2585
2586
|
<div class="title">
|
|
2586
2587
|
<h3 class="paging" ?active=${(_c = this.inputData) === null || _c === void 0 ? void 0 : _c.title}>${(_d = this.inputData) === null || _d === void 0 ? void 0 : _d.title}</h3>
|
|
2587
|
-
<p
|
|
2588
|
+
<p
|
|
2589
|
+
class="paging"
|
|
2590
|
+
?active=${(_e = this.inputData) === null || _e === void 0 ? void 0 : _e.subTitle}
|
|
2591
|
+
style="color: ${this.themeSubtitleColor}"
|
|
2592
|
+
>
|
|
2593
|
+
${(_f = this.inputData) === null || _f === void 0 ? void 0 : _f.subTitle}
|
|
2594
|
+
</p>
|
|
2588
2595
|
</div>
|
|
2589
2596
|
<div class="legend paging" ?active=${(_g = this === null || this === void 0 ? void 0 : this.inputData) === null || _g === void 0 ? void 0 : _g.showLegend}>
|
|
2590
|
-
${
|
|
2591
|
-
return
|
|
2597
|
+
${c(this.dataSets, (ds) => ds.label, (ds) => {
|
|
2598
|
+
return x `
|
|
2592
2599
|
<div class="label">
|
|
2593
2600
|
<div
|
|
2594
2601
|
style="background: ${ds.color}; width: 24px; height: 12px;"
|
|
@@ -2605,12 +2612,10 @@ class WidgetMapbox extends h {
|
|
|
2605
2612
|
`;
|
|
2606
2613
|
}
|
|
2607
2614
|
}
|
|
2608
|
-
WidgetMapbox.styles = i$
|
|
2615
|
+
WidgetMapbox.styles = i$4 `
|
|
2609
2616
|
:host {
|
|
2610
2617
|
display: block;
|
|
2611
|
-
color: var(--re-bar-text-color, #000);
|
|
2612
2618
|
font-family: sans-serif;
|
|
2613
|
-
padding: 16px;
|
|
2614
2619
|
box-sizing: border-box;
|
|
2615
2620
|
margin: auto;
|
|
2616
2621
|
}
|
|
@@ -2645,6 +2650,8 @@ WidgetMapbox.styles = i$2 `
|
|
|
2645
2650
|
.wrapper {
|
|
2646
2651
|
display: flex;
|
|
2647
2652
|
flex-direction: column;
|
|
2653
|
+
box-sizing: border-box;
|
|
2654
|
+
padding: 16px;
|
|
2648
2655
|
height: 100%;
|
|
2649
2656
|
width: 100%;
|
|
2650
2657
|
}
|
|
@@ -2675,7 +2682,6 @@ WidgetMapbox.styles = i$2 `
|
|
|
2675
2682
|
|
|
2676
2683
|
.no-data {
|
|
2677
2684
|
font-size: 20px;
|
|
2678
|
-
color: var(--re-text-color, #000);
|
|
2679
2685
|
display: flex;
|
|
2680
2686
|
height: 100%;
|
|
2681
2687
|
width: 100%;
|
|
@@ -2688,18 +2694,30 @@ __decorate([
|
|
|
2688
2694
|
n({ type: Object })
|
|
2689
2695
|
], WidgetMapbox.prototype, "inputData", void 0);
|
|
2690
2696
|
__decorate([
|
|
2691
|
-
|
|
2697
|
+
n({ type: Object })
|
|
2698
|
+
], WidgetMapbox.prototype, "theme", void 0);
|
|
2699
|
+
__decorate([
|
|
2700
|
+
r$1()
|
|
2692
2701
|
], WidgetMapbox.prototype, "map", void 0);
|
|
2693
2702
|
__decorate([
|
|
2694
|
-
r()
|
|
2703
|
+
r$1()
|
|
2695
2704
|
], WidgetMapbox.prototype, "dataSets", void 0);
|
|
2696
2705
|
__decorate([
|
|
2697
|
-
r()
|
|
2706
|
+
r$1()
|
|
2698
2707
|
], WidgetMapbox.prototype, "dataSources", void 0);
|
|
2699
2708
|
__decorate([
|
|
2700
|
-
r()
|
|
2709
|
+
r$1()
|
|
2701
2710
|
], WidgetMapbox.prototype, "colors", void 0);
|
|
2702
|
-
|
|
2711
|
+
__decorate([
|
|
2712
|
+
r$1()
|
|
2713
|
+
], WidgetMapbox.prototype, "themeBgColor", void 0);
|
|
2714
|
+
__decorate([
|
|
2715
|
+
r$1()
|
|
2716
|
+
], WidgetMapbox.prototype, "themeTitleColor", void 0);
|
|
2717
|
+
__decorate([
|
|
2718
|
+
r$1()
|
|
2719
|
+
], WidgetMapbox.prototype, "themeSubtitleColor", void 0);
|
|
2720
|
+
window.customElements.define('widget-mapbox-1.5.4', WidgetMapbox);
|
|
2703
2721
|
|
|
2704
2722
|
export { WidgetMapbox };
|
|
2705
2723
|
//# sourceMappingURL=widget-mapbox.js.map
|