@telia-ace/widget-components-area-flamingo 1.1.81-rc.0 → 1.1.81-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/{area-578e1251.mjs → area-B8LkuHzi.mjs} +617 -650
- package/area-DB6yb3U4.js +438 -0
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
- package/area-e1807618.js +0 -438
- package/index.d.ts +0 -2
@@ -3,19 +3,18 @@
|
|
3
3
|
* Copyright 2019 Google LLC
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
5
5
|
*/
|
6
|
-
const
|
7
|
-
let
|
6
|
+
const q = globalThis, bt = q.ShadowRoot && (q.ShadyCSS === void 0 || q.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, $t = Symbol(), Ut = /* @__PURE__ */ new WeakMap();
|
7
|
+
let ne = class {
|
8
8
|
constructor(t, e, i) {
|
9
|
-
if (this._$cssResult$ = !0, i !==
|
10
|
-
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
9
|
+
if (this._$cssResult$ = !0, i !== $t) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
11
10
|
this.cssText = t, this.t = e;
|
12
11
|
}
|
13
12
|
get styleSheet() {
|
14
13
|
let t = this.o;
|
15
14
|
const e = this.t;
|
16
|
-
if (
|
15
|
+
if (bt && t === void 0) {
|
17
16
|
const i = e !== void 0 && e.length === 1;
|
18
|
-
i && (t =
|
17
|
+
i && (t = Ut.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Ut.set(e, t));
|
19
18
|
}
|
20
19
|
return t;
|
21
20
|
}
|
@@ -23,38 +22,33 @@ let Gt = class {
|
|
23
22
|
return this.cssText;
|
24
23
|
}
|
25
24
|
};
|
26
|
-
const
|
27
|
-
const e = s.length === 1 ? s[0] : t.reduce((i, r,
|
28
|
-
if (
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
const i = document.createElement("style"), r = W.litNonce;
|
41
|
-
r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
|
42
|
-
}
|
43
|
-
}, St = gt ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
25
|
+
const xe = (s) => new ne(typeof s == "string" ? s : s + "", void 0, $t), O = (s, ...t) => {
|
26
|
+
const e = s.length === 1 ? s[0] : t.reduce((i, r, n) => i + ((o) => {
|
27
|
+
if (o._$cssResult$ === !0) return o.cssText;
|
28
|
+
if (typeof o == "number") return o;
|
29
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
30
|
+
})(r) + s[n + 1], s[0]);
|
31
|
+
return new ne(e, s, $t);
|
32
|
+
}, Ee = (s, t) => {
|
33
|
+
if (bt) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
34
|
+
else for (const e of t) {
|
35
|
+
const i = document.createElement("style"), r = q.litNonce;
|
36
|
+
r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
|
37
|
+
}
|
38
|
+
}, jt = bt ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
44
39
|
let e = "";
|
45
|
-
for (const i of t.cssRules)
|
46
|
-
|
47
|
-
return ve(e);
|
40
|
+
for (const i of t.cssRules) e += i.cssText;
|
41
|
+
return xe(e);
|
48
42
|
})(s) : s;
|
49
43
|
/**
|
50
44
|
* @license
|
51
45
|
* Copyright 2017 Google LLC
|
52
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
53
47
|
*/
|
54
|
-
const { is:
|
48
|
+
const { is: Ce, defineProperty: Se, getOwnPropertyDescriptor: Pe, getOwnPropertyNames: Oe, getOwnPropertySymbols: ke, getPrototypeOf: Te } = Object, w = globalThis, Mt = w.trustedTypes, Re = Mt ? Mt.emptyScript : "", it = w.reactiveElementPolyfillSupport, N = (s, t) => s, Z = { toAttribute(s, t) {
|
55
49
|
switch (t) {
|
56
50
|
case Boolean:
|
57
|
-
s = s ?
|
51
|
+
s = s ? Re : null;
|
58
52
|
break;
|
59
53
|
case Object:
|
60
54
|
case Array:
|
@@ -79,57 +73,52 @@ const { is: ye, defineProperty: be, getOwnPropertyDescriptor: $e, getOwnProperty
|
|
79
73
|
}
|
80
74
|
}
|
81
75
|
return e;
|
82
|
-
} },
|
83
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
84
|
-
let
|
76
|
+
} }, _t = (s, t) => !Ce(s, t), Nt = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: _t };
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), w.litPropertyMetadata ?? (w.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
78
|
+
let T = class extends HTMLElement {
|
85
79
|
static addInitializer(t) {
|
86
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
87
81
|
}
|
88
82
|
static get observedAttributes() {
|
89
83
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
90
84
|
}
|
91
|
-
static createProperty(t, e =
|
85
|
+
static createProperty(t, e = Nt) {
|
92
86
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
93
87
|
const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
|
94
|
-
r !== void 0 &&
|
88
|
+
r !== void 0 && Se(this.prototype, t, r);
|
95
89
|
}
|
96
90
|
}
|
97
91
|
static getPropertyDescriptor(t, e, i) {
|
98
|
-
const { get: r, set:
|
92
|
+
const { get: r, set: n } = Pe(this.prototype, t) ?? { get() {
|
99
93
|
return this[e];
|
100
|
-
}, set(
|
101
|
-
this[e] =
|
94
|
+
}, set(o) {
|
95
|
+
this[e] = o;
|
102
96
|
} };
|
103
97
|
return { get() {
|
104
98
|
return r == null ? void 0 : r.call(this);
|
105
|
-
}, set(
|
99
|
+
}, set(o) {
|
106
100
|
const a = r == null ? void 0 : r.call(this);
|
107
|
-
|
101
|
+
n.call(this, o), this.requestUpdate(t, a, i);
|
108
102
|
}, configurable: !0, enumerable: !0 };
|
109
103
|
}
|
110
104
|
static getPropertyOptions(t) {
|
111
|
-
return this.elementProperties.get(t) ??
|
105
|
+
return this.elementProperties.get(t) ?? Nt;
|
112
106
|
}
|
113
107
|
static _$Ei() {
|
114
|
-
if (this.hasOwnProperty(
|
115
|
-
|
116
|
-
const t = Ae(this);
|
108
|
+
if (this.hasOwnProperty(N("elementProperties"))) return;
|
109
|
+
const t = Te(this);
|
117
110
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
118
111
|
}
|
119
112
|
static finalize() {
|
120
|
-
if (this.hasOwnProperty(
|
121
|
-
|
122
|
-
|
123
|
-
const
|
124
|
-
for (const r of i)
|
125
|
-
this.createProperty(r, e[r]);
|
113
|
+
if (this.hasOwnProperty(N("finalized"))) return;
|
114
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(N("properties"))) {
|
115
|
+
const e = this.properties, i = [...Oe(e), ...ke(e)];
|
116
|
+
for (const r of i) this.createProperty(r, e[r]);
|
126
117
|
}
|
127
118
|
const t = this[Symbol.metadata];
|
128
119
|
if (t !== null) {
|
129
120
|
const e = litPropertyMetadata.get(t);
|
130
|
-
if (e !== void 0)
|
131
|
-
for (const [i, r] of e)
|
132
|
-
this.elementProperties.set(i, r);
|
121
|
+
if (e !== void 0) for (const [i, r] of e) this.elementProperties.set(i, r);
|
133
122
|
}
|
134
123
|
this._$Eh = /* @__PURE__ */ new Map();
|
135
124
|
for (const [e, i] of this.elementProperties) {
|
@@ -142,10 +131,8 @@ let k = class extends HTMLElement {
|
|
142
131
|
const e = [];
|
143
132
|
if (Array.isArray(t)) {
|
144
133
|
const i = new Set(t.flat(1 / 0).reverse());
|
145
|
-
for (const r of i)
|
146
|
-
|
147
|
-
} else
|
148
|
-
t !== void 0 && e.push(St(t));
|
134
|
+
for (const r of i) e.unshift(jt(r));
|
135
|
+
} else t !== void 0 && e.push(jt(t));
|
149
136
|
return e;
|
150
137
|
}
|
151
138
|
static _$Eu(t, e) {
|
@@ -169,13 +156,12 @@ let k = class extends HTMLElement {
|
|
169
156
|
}
|
170
157
|
_$E_() {
|
171
158
|
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
172
|
-
for (const i of e.keys())
|
173
|
-
this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
159
|
+
for (const i of e.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
174
160
|
t.size > 0 && (this._$Ep = t);
|
175
161
|
}
|
176
162
|
createRenderRoot() {
|
177
163
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
178
|
-
return
|
164
|
+
return Ee(t, this.constructor.elementStyles), t;
|
179
165
|
}
|
180
166
|
connectedCallback() {
|
181
167
|
var t;
|
@@ -197,25 +183,24 @@ let k = class extends HTMLElement {
|
|
197
183
|
this._$AK(t, i);
|
198
184
|
}
|
199
185
|
_$EC(t, e) {
|
200
|
-
var
|
186
|
+
var n;
|
201
187
|
const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
|
202
188
|
if (r !== void 0 && i.reflect === !0) {
|
203
|
-
const
|
204
|
-
this._$Em = t,
|
189
|
+
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : Z).toAttribute(e, i.type);
|
190
|
+
this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
|
205
191
|
}
|
206
192
|
}
|
207
193
|
_$AK(t, e) {
|
208
|
-
var
|
194
|
+
var n;
|
209
195
|
const i = this.constructor, r = i._$Eh.get(t);
|
210
196
|
if (r !== void 0 && this._$Em !== r) {
|
211
|
-
const
|
212
|
-
this._$Em = r, this[r] = a.fromAttribute(e,
|
197
|
+
const o = i.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : Z;
|
198
|
+
this._$Em = r, this[r] = a.fromAttribute(e, o.type), this._$Em = null;
|
213
199
|
}
|
214
200
|
}
|
215
201
|
requestUpdate(t, e, i) {
|
216
202
|
if (t !== void 0) {
|
217
|
-
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ??
|
218
|
-
return;
|
203
|
+
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? _t)(this[t], e)) return;
|
219
204
|
this.P(t, e, i);
|
220
205
|
}
|
221
206
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
@@ -238,25 +223,21 @@ let k = class extends HTMLElement {
|
|
238
223
|
}
|
239
224
|
performUpdate() {
|
240
225
|
var i;
|
241
|
-
if (!this.isUpdatePending)
|
242
|
-
return;
|
226
|
+
if (!this.isUpdatePending) return;
|
243
227
|
if (!this.hasUpdated) {
|
244
228
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
245
|
-
for (const [
|
246
|
-
this[o] = n;
|
229
|
+
for (const [n, o] of this._$Ep) this[n] = o;
|
247
230
|
this._$Ep = void 0;
|
248
231
|
}
|
249
232
|
const r = this.constructor.elementProperties;
|
250
|
-
if (r.size > 0)
|
251
|
-
for (const [o, n] of r)
|
252
|
-
n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n);
|
233
|
+
if (r.size > 0) for (const [n, o] of r) o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], o);
|
253
234
|
}
|
254
235
|
let t = !1;
|
255
236
|
const e = this._$AL;
|
256
237
|
try {
|
257
238
|
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((r) => {
|
258
|
-
var
|
259
|
-
return (
|
239
|
+
var n;
|
240
|
+
return (n = r.hostUpdate) == null ? void 0 : n.call(r);
|
260
241
|
}), this.update(e)) : this._$EU();
|
261
242
|
} catch (r) {
|
262
243
|
throw t = !1, this._$EU(), r;
|
@@ -292,70 +273,61 @@ let k = class extends HTMLElement {
|
|
292
273
|
firstUpdated(t) {
|
293
274
|
}
|
294
275
|
};
|
295
|
-
|
276
|
+
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[N("elementProperties")] = /* @__PURE__ */ new Map(), T[N("finalized")] = /* @__PURE__ */ new Map(), it == null || it({ ReactiveElement: T }), (w.reactiveElementVersions ?? (w.reactiveElementVersions = [])).push("2.0.4");
|
296
277
|
/**
|
297
278
|
* @license
|
298
279
|
* Copyright 2017 Google LLC
|
299
280
|
* SPDX-License-Identifier: BSD-3-Clause
|
300
281
|
*/
|
301
|
-
const
|
302
|
-
\f\r]`,
|
303
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
304
|
-
function
|
305
|
-
if (!
|
306
|
-
|
307
|
-
return Tt !== void 0 ? Tt.createHTML(t) : t;
|
282
|
+
const I = globalThis, K = I.trustedTypes, It = K ? K.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, oe = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, ae = "?" + _, Ue = `<${ae}>`, S = document, H = () => S.createComment(""), B = (s) => s === null || typeof s != "object" && typeof s != "function", wt = Array.isArray, je = (s) => wt(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", st = `[
|
283
|
+
\f\r]`, M = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Lt = /-->/g, Ht = />/g, A = RegExp(`>|${st}(?:([^\\s"'>=/]+)(${st}*=${st}*(?:[^
|
284
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Bt = /'/g, Dt = /"/g, ce = /^(?:script|style|textarea|title)$/i, Me = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), E = Me(1), P = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), zt = /* @__PURE__ */ new WeakMap(), C = S.createTreeWalker(S, 129);
|
285
|
+
function he(s, t) {
|
286
|
+
if (!wt(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
287
|
+
return It !== void 0 ? It.createHTML(t) : t;
|
308
288
|
}
|
309
|
-
const
|
289
|
+
const Ne = (s, t) => {
|
310
290
|
const e = s.length - 1, i = [];
|
311
|
-
let r,
|
291
|
+
let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = M;
|
312
292
|
for (let a = 0; a < e; a++) {
|
313
293
|
const c = s[a];
|
314
|
-
let h, l,
|
315
|
-
for (;
|
316
|
-
|
317
|
-
|
318
|
-
o += n === j ? c + Ce : p >= 0 ? (i.push(h), c.slice(0, p) + Xt + c.slice(p) + $ + f) : c + $ + (p === -2 ? a : f);
|
294
|
+
let h, l, d = -1, p = 0;
|
295
|
+
for (; p < c.length && (o.lastIndex = p, l = o.exec(c), l !== null); ) p = o.lastIndex, o === M ? l[1] === "!--" ? o = Lt : l[1] !== void 0 ? o = Ht : l[2] !== void 0 ? (ce.test(l[2]) && (r = RegExp("</" + l[2], "g")), o = A) : l[3] !== void 0 && (o = A) : o === A ? l[0] === ">" ? (o = r ?? M, d = -1) : l[1] === void 0 ? d = -2 : (d = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? A : l[3] === '"' ? Dt : Bt) : o === Dt || o === Bt ? o = A : o === Lt || o === Ht ? o = M : (o = A, r = void 0);
|
296
|
+
const f = o === A && s[a + 1].startsWith("/>") ? " " : "";
|
297
|
+
n += o === M ? c + Ue : d >= 0 ? (i.push(h), c.slice(0, d) + oe + c.slice(d) + _ + f) : c + _ + (d === -2 ? a : f);
|
319
298
|
}
|
320
|
-
return [
|
299
|
+
return [he(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
321
300
|
};
|
322
|
-
let
|
301
|
+
let dt = class le {
|
323
302
|
constructor({ strings: t, _$litType$: e }, i) {
|
324
303
|
let r;
|
325
304
|
this.parts = [];
|
326
|
-
let
|
327
|
-
const a = t.length - 1, c = this.parts, [h, l] =
|
328
|
-
if (this.el =
|
329
|
-
const
|
330
|
-
|
305
|
+
let n = 0, o = 0;
|
306
|
+
const a = t.length - 1, c = this.parts, [h, l] = Ne(t, e);
|
307
|
+
if (this.el = le.createElement(h, i), C.currentNode = this.el.content, e === 2 || e === 3) {
|
308
|
+
const d = this.el.content.firstChild;
|
309
|
+
d.replaceWith(...d.childNodes);
|
331
310
|
}
|
332
|
-
for (; (r =
|
311
|
+
for (; (r = C.nextNode()) !== null && c.length < a; ) {
|
333
312
|
if (r.nodeType === 1) {
|
334
|
-
if (r.hasAttributes())
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
r.textContent = Z ? Z.emptyScript : "";
|
345
|
-
for (let f = 0; f < u; f++)
|
346
|
-
r.append(p[f], H()), E.nextNode(), c.push({ type: 2, index: ++o });
|
347
|
-
r.append(p[u], H());
|
313
|
+
if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(oe)) {
|
314
|
+
const p = l[o++], f = r.getAttribute(d).split(_), k = /([.?@])?(.*)/.exec(p);
|
315
|
+
c.push({ type: 1, index: n, name: k[2], strings: f, ctor: k[1] === "." ? Le : k[1] === "?" ? He : k[1] === "@" ? Be : tt }), r.removeAttribute(d);
|
316
|
+
} else d.startsWith(_) && (c.push({ type: 6, index: n }), r.removeAttribute(d));
|
317
|
+
if (ce.test(r.tagName)) {
|
318
|
+
const d = r.textContent.split(_), p = d.length - 1;
|
319
|
+
if (p > 0) {
|
320
|
+
r.textContent = K ? K.emptyScript : "";
|
321
|
+
for (let f = 0; f < p; f++) r.append(d[f], H()), C.nextNode(), c.push({ type: 2, index: ++n });
|
322
|
+
r.append(d[p], H());
|
348
323
|
}
|
349
324
|
}
|
350
|
-
} else if (r.nodeType === 8)
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
c.push({ type: 7, index: o }), p += $.length - 1;
|
357
|
-
}
|
358
|
-
o++;
|
325
|
+
} else if (r.nodeType === 8) if (r.data === ae) c.push({ type: 2, index: n });
|
326
|
+
else {
|
327
|
+
let d = -1;
|
328
|
+
for (; (d = r.data.indexOf(_, d + 1)) !== -1; ) c.push({ type: 7, index: n }), d += _.length - 1;
|
329
|
+
}
|
330
|
+
n++;
|
359
331
|
}
|
360
332
|
}
|
361
333
|
static createElement(t, e) {
|
@@ -363,15 +335,14 @@ let ht = class ee {
|
|
363
335
|
return i.innerHTML = t, i;
|
364
336
|
}
|
365
337
|
};
|
366
|
-
function
|
367
|
-
var
|
368
|
-
if (t === P)
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
return (r == null ? void 0 : r.constructor) !== o && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), o === void 0 ? r = void 0 : (r = new o(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = U(s, r._$AS(s, t.values), r, i)), t;
|
338
|
+
function R(s, t, e = s, i) {
|
339
|
+
var o, a;
|
340
|
+
if (t === P) return t;
|
341
|
+
let r = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
|
342
|
+
const n = B(t) ? void 0 : t._$litDirective$;
|
343
|
+
return (r == null ? void 0 : r.constructor) !== n && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), n === void 0 ? r = void 0 : (r = new n(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = R(s, r._$AS(s, t.values), r, i)), t;
|
373
344
|
}
|
374
|
-
class
|
345
|
+
class Ie {
|
375
346
|
constructor(t, e) {
|
376
347
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
377
348
|
}
|
@@ -383,30 +354,29 @@ class Oe {
|
|
383
354
|
}
|
384
355
|
u(t) {
|
385
356
|
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? S).importNode(e, !0);
|
386
|
-
|
387
|
-
let
|
357
|
+
C.currentNode = r;
|
358
|
+
let n = C.nextNode(), o = 0, a = 0, c = i[0];
|
388
359
|
for (; c !== void 0; ) {
|
389
|
-
if (
|
360
|
+
if (o === c.index) {
|
390
361
|
let h;
|
391
|
-
c.type === 2 ? h = new
|
362
|
+
c.type === 2 ? h = new z(n, n.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (h = new De(n, this, t)), this._$AV.push(h), c = i[++a];
|
392
363
|
}
|
393
|
-
|
364
|
+
o !== (c == null ? void 0 : c.index) && (n = C.nextNode(), o++);
|
394
365
|
}
|
395
|
-
return
|
366
|
+
return C.currentNode = S, r;
|
396
367
|
}
|
397
368
|
p(t) {
|
398
369
|
let e = 0;
|
399
|
-
for (const i of this._$AV)
|
400
|
-
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
370
|
+
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
401
371
|
}
|
402
372
|
}
|
403
|
-
class
|
373
|
+
class z {
|
404
374
|
get _$AU() {
|
405
375
|
var t;
|
406
376
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
407
377
|
}
|
408
378
|
constructor(t, e, i, r) {
|
409
|
-
this.type = 2, this._$AH =
|
379
|
+
this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
|
410
380
|
}
|
411
381
|
get parentNode() {
|
412
382
|
let t = this._$AA.parentNode;
|
@@ -420,7 +390,7 @@ class B {
|
|
420
390
|
return this._$AB;
|
421
391
|
}
|
422
392
|
_$AI(t, e = this) {
|
423
|
-
t =
|
393
|
+
t = R(this, t, e), B(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : je(t) ? this.k(t) : this._(t);
|
424
394
|
}
|
425
395
|
O(t) {
|
426
396
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -429,28 +399,26 @@ class B {
|
|
429
399
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
430
400
|
}
|
431
401
|
_(t) {
|
432
|
-
this._$AH !==
|
402
|
+
this._$AH !== u && B(this._$AH) ? this._$AA.nextSibling.data = t : this.T(S.createTextNode(t)), this._$AH = t;
|
433
403
|
}
|
434
404
|
$(t) {
|
435
|
-
var
|
436
|
-
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
437
|
-
if (((
|
438
|
-
this._$AH.p(e);
|
405
|
+
var n;
|
406
|
+
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = dt.createElement(he(i.h, i.h[0]), this.options)), i);
|
407
|
+
if (((n = this._$AH) == null ? void 0 : n._$AD) === r) this._$AH.p(e);
|
439
408
|
else {
|
440
|
-
const
|
441
|
-
|
409
|
+
const o = new Ie(r, this), a = o.u(this.options);
|
410
|
+
o.p(e), this.T(a), this._$AH = o;
|
442
411
|
}
|
443
412
|
}
|
444
413
|
_$AC(t) {
|
445
|
-
let e =
|
446
|
-
return e === void 0 &&
|
414
|
+
let e = zt.get(t.strings);
|
415
|
+
return e === void 0 && zt.set(t.strings, e = new dt(t)), e;
|
447
416
|
}
|
448
417
|
k(t) {
|
449
|
-
|
418
|
+
wt(this._$AH) || (this._$AH = [], this._$AR());
|
450
419
|
const e = this._$AH;
|
451
420
|
let i, r = 0;
|
452
|
-
for (const
|
453
|
-
r === e.length ? e.push(i = new B(this.O(H()), this.O(H()), this, this.options)) : i = e[r], i._$AI(o), r++;
|
421
|
+
for (const n of t) r === e.length ? e.push(i = new z(this.O(H()), this.O(H()), this, this.options)) : i = e[r], i._$AI(n), r++;
|
454
422
|
r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
|
455
423
|
}
|
456
424
|
_$AR(t = this._$AA.nextSibling, e) {
|
@@ -465,65 +433,62 @@ class B {
|
|
465
433
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
466
434
|
}
|
467
435
|
}
|
468
|
-
class
|
436
|
+
class tt {
|
469
437
|
get tagName() {
|
470
438
|
return this.element.tagName;
|
471
439
|
}
|
472
440
|
get _$AU() {
|
473
441
|
return this._$AM._$AU;
|
474
442
|
}
|
475
|
-
constructor(t, e, i, r,
|
476
|
-
this.type = 1, this._$AH =
|
443
|
+
constructor(t, e, i, r, n) {
|
444
|
+
this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = u;
|
477
445
|
}
|
478
446
|
_$AI(t, e = this, i, r) {
|
479
|
-
const
|
480
|
-
let
|
481
|
-
if (
|
482
|
-
t = U(this, t, e, 0), n = !I(t) || t !== this._$AH && t !== P, n && (this._$AH = t);
|
447
|
+
const n = this.strings;
|
448
|
+
let o = !1;
|
449
|
+
if (n === void 0) t = R(this, t, e, 0), o = !B(t) || t !== this._$AH && t !== P, o && (this._$AH = t);
|
483
450
|
else {
|
484
451
|
const a = t;
|
485
452
|
let c, h;
|
486
|
-
for (t =
|
487
|
-
h = U(this, a[i + c], e, c), h === P && (h = this._$AH[c]), n || (n = !I(h) || h !== this._$AH[c]), h === d ? t = d : t !== d && (t += (h ?? "") + o[c + 1]), this._$AH[c] = h;
|
453
|
+
for (t = n[0], c = 0; c < n.length - 1; c++) h = R(this, a[i + c], e, c), h === P && (h = this._$AH[c]), o || (o = !B(h) || h !== this._$AH[c]), h === u ? t = u : t !== u && (t += (h ?? "") + n[c + 1]), this._$AH[c] = h;
|
488
454
|
}
|
489
|
-
|
455
|
+
o && !r && this.j(t);
|
490
456
|
}
|
491
457
|
j(t) {
|
492
|
-
t ===
|
458
|
+
t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
493
459
|
}
|
494
460
|
}
|
495
|
-
class
|
461
|
+
class Le extends tt {
|
496
462
|
constructor() {
|
497
463
|
super(...arguments), this.type = 3;
|
498
464
|
}
|
499
465
|
j(t) {
|
500
|
-
this.element[this.name] = t ===
|
466
|
+
this.element[this.name] = t === u ? void 0 : t;
|
501
467
|
}
|
502
468
|
}
|
503
|
-
class
|
469
|
+
class He extends tt {
|
504
470
|
constructor() {
|
505
471
|
super(...arguments), this.type = 4;
|
506
472
|
}
|
507
473
|
j(t) {
|
508
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
474
|
+
this.element.toggleAttribute(this.name, !!t && t !== u);
|
509
475
|
}
|
510
476
|
}
|
511
|
-
class
|
512
|
-
constructor(t, e, i, r,
|
513
|
-
super(t, e, i, r,
|
477
|
+
class Be extends tt {
|
478
|
+
constructor(t, e, i, r, n) {
|
479
|
+
super(t, e, i, r, n), this.type = 5;
|
514
480
|
}
|
515
481
|
_$AI(t, e = this) {
|
516
|
-
if ((t =
|
517
|
-
|
518
|
-
|
519
|
-
r && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
482
|
+
if ((t = R(this, t, e, 0) ?? u) === P) return;
|
483
|
+
const i = this._$AH, r = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== u && (i === u || r);
|
484
|
+
r && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
520
485
|
}
|
521
486
|
handleEvent(t) {
|
522
487
|
var e;
|
523
488
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
524
489
|
}
|
525
490
|
}
|
526
|
-
class
|
491
|
+
class De {
|
527
492
|
constructor(t, e, i) {
|
528
493
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
529
494
|
}
|
@@ -531,17 +496,17 @@ class Re {
|
|
531
496
|
return this._$AM._$AU;
|
532
497
|
}
|
533
498
|
_$AI(t) {
|
534
|
-
|
499
|
+
R(this, t);
|
535
500
|
}
|
536
501
|
}
|
537
|
-
const
|
538
|
-
|
539
|
-
const
|
502
|
+
const rt = I.litHtmlPolyfillSupport;
|
503
|
+
rt == null || rt(dt, z), (I.litHtmlVersions ?? (I.litHtmlVersions = [])).push("3.2.1");
|
504
|
+
const ze = (s, t, e) => {
|
540
505
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
541
506
|
let r = i._$litPart$;
|
542
507
|
if (r === void 0) {
|
543
|
-
const
|
544
|
-
i._$litPart$ = r = new
|
508
|
+
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
509
|
+
i._$litPart$ = r = new z(t.insertBefore(H(), n), n, void 0, e ?? {});
|
545
510
|
}
|
546
511
|
return r._$AI(s), r;
|
547
512
|
};
|
@@ -550,7 +515,7 @@ const je = (s, t, e) => {
|
|
550
515
|
* Copyright 2017 Google LLC
|
551
516
|
* SPDX-License-Identifier: BSD-3-Clause
|
552
517
|
*/
|
553
|
-
let m = class extends
|
518
|
+
let m = class extends T {
|
554
519
|
constructor() {
|
555
520
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
556
521
|
}
|
@@ -561,7 +526,7 @@ let m = class extends k {
|
|
561
526
|
}
|
562
527
|
update(t) {
|
563
528
|
const e = this.render();
|
564
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
529
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ze(e, this.renderRoot, this.renderOptions);
|
565
530
|
}
|
566
531
|
connectedCallback() {
|
567
532
|
var t;
|
@@ -575,35 +540,33 @@ let m = class extends k {
|
|
575
540
|
return P;
|
576
541
|
}
|
577
542
|
};
|
578
|
-
var
|
579
|
-
m._$litElement$ = !0, m.finalized = !0, (
|
580
|
-
const
|
581
|
-
|
543
|
+
var re;
|
544
|
+
m._$litElement$ = !0, m.finalized = !0, (re = globalThis.litElementHydrateSupport) == null || re.call(globalThis, { LitElement: m });
|
545
|
+
const nt = globalThis.litElementPolyfillSupport;
|
546
|
+
nt == null || nt({ LitElement: m });
|
582
547
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
583
548
|
/**
|
584
549
|
* @license
|
585
550
|
* Copyright 2021 Google LLC
|
586
551
|
* SPDX-License-Identifier: BSD-3-Clause
|
587
552
|
*/
|
588
|
-
function*
|
553
|
+
function* de(s, t) {
|
589
554
|
if (s !== void 0) {
|
590
555
|
let e = 0;
|
591
|
-
for (const i of s)
|
592
|
-
yield t(i, e++);
|
556
|
+
for (const i of s) yield t(i, e++);
|
593
557
|
}
|
594
558
|
}
|
595
|
-
var
|
596
|
-
return
|
559
|
+
var ut = function(s, t) {
|
560
|
+
return ut = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
|
597
561
|
e.__proto__ = i;
|
598
562
|
} || function(e, i) {
|
599
|
-
for (var r in i)
|
600
|
-
|
601
|
-
}, lt(s, t);
|
563
|
+
for (var r in i) Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]);
|
564
|
+
}, ut(s, t);
|
602
565
|
};
|
603
|
-
function
|
566
|
+
function V(s, t) {
|
604
567
|
if (typeof t != "function" && t !== null)
|
605
568
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
606
|
-
|
569
|
+
ut(s, t);
|
607
570
|
function e() {
|
608
571
|
this.constructor = s;
|
609
572
|
}
|
@@ -611,52 +574,46 @@ function D(s, t) {
|
|
611
574
|
}
|
612
575
|
function pt(s) {
|
613
576
|
var t = typeof Symbol == "function" && Symbol.iterator, e = t && s[t], i = 0;
|
614
|
-
if (e)
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
}
|
621
|
-
};
|
577
|
+
if (e) return e.call(s);
|
578
|
+
if (s && typeof s.length == "number") return {
|
579
|
+
next: function() {
|
580
|
+
return s && i >= s.length && (s = void 0), { value: s && s[i++], done: !s };
|
581
|
+
}
|
582
|
+
};
|
622
583
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
623
584
|
}
|
624
|
-
function
|
585
|
+
function ft(s, t) {
|
625
586
|
var e = typeof Symbol == "function" && s[Symbol.iterator];
|
626
|
-
if (!e)
|
627
|
-
|
628
|
-
var i = e.call(s), r, o = [], n;
|
587
|
+
if (!e) return s;
|
588
|
+
var i = e.call(s), r, n = [], o;
|
629
589
|
try {
|
630
|
-
for (; (t === void 0 || t-- > 0) && !(r = i.next()).done; )
|
631
|
-
o.push(r.value);
|
590
|
+
for (; (t === void 0 || t-- > 0) && !(r = i.next()).done; ) n.push(r.value);
|
632
591
|
} catch (a) {
|
633
|
-
|
592
|
+
o = { error: a };
|
634
593
|
} finally {
|
635
594
|
try {
|
636
595
|
r && !r.done && (e = i.return) && e.call(i);
|
637
596
|
} finally {
|
638
|
-
if (
|
639
|
-
throw n.error;
|
597
|
+
if (o) throw o.error;
|
640
598
|
}
|
641
599
|
}
|
642
|
-
return
|
600
|
+
return n;
|
643
601
|
}
|
644
|
-
function
|
645
|
-
if (e || arguments.length === 2)
|
646
|
-
|
647
|
-
|
648
|
-
return s.concat(o || Array.prototype.slice.call(t));
|
602
|
+
function gt(s, t, e) {
|
603
|
+
if (e || arguments.length === 2) for (var i = 0, r = t.length, n; i < r; i++)
|
604
|
+
(n || !(i in t)) && (n || (n = Array.prototype.slice.call(t, 0, i)), n[i] = t[i]);
|
605
|
+
return s.concat(n || Array.prototype.slice.call(t));
|
649
606
|
}
|
650
607
|
function b(s) {
|
651
608
|
return typeof s == "function";
|
652
609
|
}
|
653
|
-
function
|
610
|
+
function ue(s) {
|
654
611
|
var t = function(i) {
|
655
612
|
Error.call(i), i.stack = new Error().stack;
|
656
613
|
}, e = s(t);
|
657
614
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
658
615
|
}
|
659
|
-
var
|
616
|
+
var ot = ue(function(s) {
|
660
617
|
return function(e) {
|
661
618
|
s(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
662
619
|
` + e.map(function(i, r) {
|
@@ -665,25 +622,25 @@ var rt = se(function(s) {
|
|
665
622
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
666
623
|
};
|
667
624
|
});
|
668
|
-
function
|
625
|
+
function vt(s, t) {
|
669
626
|
if (s) {
|
670
627
|
var e = s.indexOf(t);
|
671
628
|
0 <= e && s.splice(e, 1);
|
672
629
|
}
|
673
630
|
}
|
674
|
-
var
|
631
|
+
var et = function() {
|
675
632
|
function s(t) {
|
676
633
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
677
634
|
}
|
678
635
|
return s.prototype.unsubscribe = function() {
|
679
|
-
var t, e, i, r,
|
636
|
+
var t, e, i, r, n;
|
680
637
|
if (!this.closed) {
|
681
638
|
this.closed = !0;
|
682
|
-
var
|
683
|
-
if (
|
684
|
-
if (this._parentage = null, Array.isArray(
|
639
|
+
var o = this._parentage;
|
640
|
+
if (o)
|
641
|
+
if (this._parentage = null, Array.isArray(o))
|
685
642
|
try {
|
686
|
-
for (var a = pt(
|
643
|
+
for (var a = pt(o), c = a.next(); !c.done; c = a.next()) {
|
687
644
|
var h = c.value;
|
688
645
|
h.remove(this);
|
689
646
|
}
|
@@ -693,50 +650,48 @@ var Q = function() {
|
|
693
650
|
try {
|
694
651
|
c && !c.done && (e = a.return) && e.call(a);
|
695
652
|
} finally {
|
696
|
-
if (t)
|
697
|
-
throw t.error;
|
653
|
+
if (t) throw t.error;
|
698
654
|
}
|
699
655
|
}
|
700
656
|
else
|
701
|
-
|
657
|
+
o.remove(this);
|
702
658
|
var l = this.initialTeardown;
|
703
659
|
if (b(l))
|
704
660
|
try {
|
705
661
|
l();
|
706
662
|
} catch (v) {
|
707
|
-
|
663
|
+
n = v instanceof ot ? v.errors : [v];
|
708
664
|
}
|
709
|
-
var
|
710
|
-
if (
|
665
|
+
var d = this._finalizers;
|
666
|
+
if (d) {
|
711
667
|
this._finalizers = null;
|
712
668
|
try {
|
713
|
-
for (var
|
714
|
-
var
|
669
|
+
for (var p = pt(d), f = p.next(); !f.done; f = p.next()) {
|
670
|
+
var k = f.value;
|
715
671
|
try {
|
716
|
-
|
672
|
+
Vt(k);
|
717
673
|
} catch (v) {
|
718
|
-
|
674
|
+
n = n ?? [], v instanceof ot ? n = gt(gt([], ft(n)), ft(v.errors)) : n.push(v);
|
719
675
|
}
|
720
676
|
}
|
721
677
|
} catch (v) {
|
722
678
|
i = { error: v };
|
723
679
|
} finally {
|
724
680
|
try {
|
725
|
-
f && !f.done && (r =
|
681
|
+
f && !f.done && (r = p.return) && r.call(p);
|
726
682
|
} finally {
|
727
|
-
if (i)
|
728
|
-
throw i.error;
|
683
|
+
if (i) throw i.error;
|
729
684
|
}
|
730
685
|
}
|
731
686
|
}
|
732
|
-
if (
|
733
|
-
throw new
|
687
|
+
if (n)
|
688
|
+
throw new ot(n);
|
734
689
|
}
|
735
690
|
}, s.prototype.add = function(t) {
|
736
691
|
var e;
|
737
692
|
if (t && t !== this)
|
738
693
|
if (this.closed)
|
739
|
-
|
694
|
+
Vt(t);
|
740
695
|
else {
|
741
696
|
if (t instanceof s) {
|
742
697
|
if (t.closed || t._hasParent(this))
|
@@ -753,58 +708,56 @@ var Q = function() {
|
|
753
708
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
754
709
|
}, s.prototype._removeParent = function(t) {
|
755
710
|
var e = this._parentage;
|
756
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
711
|
+
e === t ? this._parentage = null : Array.isArray(e) && vt(e, t);
|
757
712
|
}, s.prototype.remove = function(t) {
|
758
713
|
var e = this._finalizers;
|
759
|
-
e &&
|
714
|
+
e && vt(e, t), t instanceof s && t._removeParent(this);
|
760
715
|
}, s.EMPTY = function() {
|
761
716
|
var t = new s();
|
762
717
|
return t.closed = !0, t;
|
763
718
|
}(), s;
|
764
|
-
}(),
|
765
|
-
function
|
766
|
-
return s instanceof
|
719
|
+
}(), pe = et.EMPTY;
|
720
|
+
function fe(s) {
|
721
|
+
return s instanceof et || s && "closed" in s && b(s.remove) && b(s.add) && b(s.unsubscribe);
|
767
722
|
}
|
768
|
-
function
|
723
|
+
function Vt(s) {
|
769
724
|
b(s) ? s() : s.unsubscribe();
|
770
725
|
}
|
771
|
-
var
|
726
|
+
var ge = {
|
772
727
|
onUnhandledError: null,
|
773
728
|
onStoppedNotification: null,
|
774
729
|
Promise: void 0,
|
775
730
|
useDeprecatedSynchronousErrorHandling: !1,
|
776
731
|
useDeprecatedNextContext: !1
|
777
|
-
},
|
732
|
+
}, Ve = {
|
778
733
|
setTimeout: function(s, t) {
|
779
734
|
for (var e = [], i = 2; i < arguments.length; i++)
|
780
735
|
e[i - 2] = arguments[i];
|
781
|
-
|
782
|
-
return r != null && r.setTimeout ? r.setTimeout.apply(r, G([s, t], K(e))) : setTimeout.apply(void 0, G([s, t], K(e)));
|
736
|
+
return setTimeout.apply(void 0, gt([s, t], ft(e)));
|
783
737
|
},
|
784
738
|
clearTimeout: function(s) {
|
785
|
-
|
786
|
-
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(s);
|
739
|
+
return clearTimeout(s);
|
787
740
|
},
|
788
741
|
delegate: void 0
|
789
742
|
};
|
790
|
-
function
|
791
|
-
|
743
|
+
function Fe(s) {
|
744
|
+
Ve.setTimeout(function() {
|
792
745
|
throw s;
|
793
746
|
});
|
794
747
|
}
|
795
|
-
function
|
748
|
+
function Ft() {
|
796
749
|
}
|
797
|
-
function
|
750
|
+
function W(s) {
|
798
751
|
s();
|
799
752
|
}
|
800
|
-
var
|
801
|
-
|
753
|
+
var ve = function(s) {
|
754
|
+
V(t, s);
|
802
755
|
function t(e) {
|
803
756
|
var i = s.call(this) || this;
|
804
|
-
return i.isStopped = !1, e ? (i.destination = e,
|
757
|
+
return i.isStopped = !1, e ? (i.destination = e, fe(e) && e.add(i)) : i.destination = Ze, i;
|
805
758
|
}
|
806
759
|
return t.create = function(e, i, r) {
|
807
|
-
return new
|
760
|
+
return new mt(e, i, r);
|
808
761
|
}, t.prototype.next = function(e) {
|
809
762
|
this.isStopped || this._next(e);
|
810
763
|
}, t.prototype.error = function(e) {
|
@@ -828,11 +781,11 @@ var ae = function(s) {
|
|
828
781
|
this.unsubscribe();
|
829
782
|
}
|
830
783
|
}, t;
|
831
|
-
}(
|
832
|
-
function
|
833
|
-
return
|
784
|
+
}(et), Ye = Function.prototype.bind;
|
785
|
+
function at(s, t) {
|
786
|
+
return Ye.call(s, t);
|
834
787
|
}
|
835
|
-
var
|
788
|
+
var qe = function() {
|
836
789
|
function s(t) {
|
837
790
|
this.partialObserver = t;
|
838
791
|
}
|
@@ -842,7 +795,7 @@ var Le = function() {
|
|
842
795
|
try {
|
843
796
|
e.next(t);
|
844
797
|
} catch (i) {
|
845
|
-
|
798
|
+
Y(i);
|
846
799
|
}
|
847
800
|
}, s.prototype.error = function(t) {
|
848
801
|
var e = this.partialObserver;
|
@@ -850,68 +803,68 @@ var Le = function() {
|
|
850
803
|
try {
|
851
804
|
e.error(t);
|
852
805
|
} catch (i) {
|
853
|
-
|
806
|
+
Y(i);
|
854
807
|
}
|
855
808
|
else
|
856
|
-
|
809
|
+
Y(t);
|
857
810
|
}, s.prototype.complete = function() {
|
858
811
|
var t = this.partialObserver;
|
859
812
|
if (t.complete)
|
860
813
|
try {
|
861
814
|
t.complete();
|
862
815
|
} catch (e) {
|
863
|
-
|
816
|
+
Y(e);
|
864
817
|
}
|
865
818
|
}, s;
|
866
|
-
}(),
|
867
|
-
|
819
|
+
}(), mt = function(s) {
|
820
|
+
V(t, s);
|
868
821
|
function t(e, i, r) {
|
869
|
-
var
|
822
|
+
var n = s.call(this) || this, o;
|
870
823
|
if (b(e) || !e)
|
871
|
-
|
824
|
+
o = {
|
872
825
|
next: e ?? void 0,
|
873
826
|
error: i ?? void 0,
|
874
827
|
complete: r ?? void 0
|
875
828
|
};
|
876
829
|
else {
|
877
830
|
var a;
|
878
|
-
|
879
|
-
return
|
880
|
-
},
|
881
|
-
next: e.next &&
|
882
|
-
error: e.error &&
|
883
|
-
complete: e.complete &&
|
884
|
-
}) :
|
831
|
+
n && ge.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
832
|
+
return n.unsubscribe();
|
833
|
+
}, o = {
|
834
|
+
next: e.next && at(e.next, a),
|
835
|
+
error: e.error && at(e.error, a),
|
836
|
+
complete: e.complete && at(e.complete, a)
|
837
|
+
}) : o = e;
|
885
838
|
}
|
886
|
-
return
|
839
|
+
return n.destination = new qe(o), n;
|
887
840
|
}
|
888
841
|
return t;
|
889
|
-
}(
|
890
|
-
function
|
891
|
-
|
842
|
+
}(ve);
|
843
|
+
function Y(s) {
|
844
|
+
Fe(s);
|
892
845
|
}
|
893
|
-
function
|
846
|
+
function We(s) {
|
894
847
|
throw s;
|
895
848
|
}
|
896
|
-
var
|
849
|
+
var Ze = {
|
897
850
|
closed: !0,
|
898
|
-
next:
|
899
|
-
error:
|
900
|
-
complete:
|
901
|
-
},
|
851
|
+
next: Ft,
|
852
|
+
error: We,
|
853
|
+
complete: Ft
|
854
|
+
}, Ke = function() {
|
902
855
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
903
856
|
}();
|
904
|
-
function
|
857
|
+
function Ge(s) {
|
905
858
|
return s;
|
906
859
|
}
|
907
|
-
function
|
908
|
-
return s.length === 0 ?
|
860
|
+
function Xe(s) {
|
861
|
+
return s.length === 0 ? Ge : s.length === 1 ? s[0] : function(e) {
|
909
862
|
return s.reduce(function(i, r) {
|
910
863
|
return r(i);
|
911
864
|
}, e);
|
912
865
|
};
|
913
866
|
}
|
914
|
-
var
|
867
|
+
var Yt = function() {
|
915
868
|
function s(t) {
|
916
869
|
t && (this._subscribe = t);
|
917
870
|
}
|
@@ -919,11 +872,11 @@ var Ht = function() {
|
|
919
872
|
var e = new s();
|
920
873
|
return e.source = this, e.operator = t, e;
|
921
874
|
}, s.prototype.subscribe = function(t, e, i) {
|
922
|
-
var r = this,
|
923
|
-
return
|
924
|
-
var
|
925
|
-
|
926
|
-
}),
|
875
|
+
var r = this, n = Qe(t) ? t : new mt(t, e, i);
|
876
|
+
return W(function() {
|
877
|
+
var o = r, a = o.operator, c = o.source;
|
878
|
+
n.add(a ? a.call(n, c) : c ? r._subscribe(n) : r._trySubscribe(n));
|
879
|
+
}), n;
|
927
880
|
}, s.prototype._trySubscribe = function(t) {
|
928
881
|
try {
|
929
882
|
return this._subscribe(t);
|
@@ -932,79 +885,79 @@ var Ht = function() {
|
|
932
885
|
}
|
933
886
|
}, s.prototype.forEach = function(t, e) {
|
934
887
|
var i = this;
|
935
|
-
return e =
|
936
|
-
var
|
888
|
+
return e = qt(e), new e(function(r, n) {
|
889
|
+
var o = new mt({
|
937
890
|
next: function(a) {
|
938
891
|
try {
|
939
892
|
t(a);
|
940
893
|
} catch (c) {
|
941
|
-
|
894
|
+
n(c), o.unsubscribe();
|
942
895
|
}
|
943
896
|
},
|
944
|
-
error:
|
897
|
+
error: n,
|
945
898
|
complete: r
|
946
899
|
});
|
947
|
-
i.subscribe(
|
900
|
+
i.subscribe(o);
|
948
901
|
});
|
949
902
|
}, s.prototype._subscribe = function(t) {
|
950
903
|
var e;
|
951
904
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
952
|
-
}, s.prototype[
|
905
|
+
}, s.prototype[Ke] = function() {
|
953
906
|
return this;
|
954
907
|
}, s.prototype.pipe = function() {
|
955
908
|
for (var t = [], e = 0; e < arguments.length; e++)
|
956
909
|
t[e] = arguments[e];
|
957
|
-
return
|
910
|
+
return Xe(t)(this);
|
958
911
|
}, s.prototype.toPromise = function(t) {
|
959
912
|
var e = this;
|
960
|
-
return t =
|
961
|
-
var
|
962
|
-
e.subscribe(function(
|
963
|
-
return
|
964
|
-
}, function(
|
965
|
-
return r(
|
913
|
+
return t = qt(t), new t(function(i, r) {
|
914
|
+
var n;
|
915
|
+
e.subscribe(function(o) {
|
916
|
+
return n = o;
|
917
|
+
}, function(o) {
|
918
|
+
return r(o);
|
966
919
|
}, function() {
|
967
|
-
return i(
|
920
|
+
return i(n);
|
968
921
|
});
|
969
922
|
});
|
970
923
|
}, s.create = function(t) {
|
971
924
|
return new s(t);
|
972
925
|
}, s;
|
973
926
|
}();
|
974
|
-
function
|
927
|
+
function qt(s) {
|
975
928
|
var t;
|
976
|
-
return (t = s ??
|
929
|
+
return (t = s ?? ge.Promise) !== null && t !== void 0 ? t : Promise;
|
977
930
|
}
|
978
|
-
function
|
931
|
+
function Je(s) {
|
979
932
|
return s && b(s.next) && b(s.error) && b(s.complete);
|
980
933
|
}
|
981
|
-
function
|
982
|
-
return s && s instanceof
|
934
|
+
function Qe(s) {
|
935
|
+
return s && s instanceof ve || Je(s) && fe(s);
|
983
936
|
}
|
984
|
-
var
|
937
|
+
var ti = ue(function(s) {
|
985
938
|
return function() {
|
986
939
|
s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
987
940
|
};
|
988
|
-
}),
|
989
|
-
|
941
|
+
}), At = function(s) {
|
942
|
+
V(t, s);
|
990
943
|
function t() {
|
991
944
|
var e = s.call(this) || this;
|
992
945
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
993
946
|
}
|
994
947
|
return t.prototype.lift = function(e) {
|
995
|
-
var i = new
|
948
|
+
var i = new Wt(this, this);
|
996
949
|
return i.operator = e, i;
|
997
950
|
}, t.prototype._throwIfClosed = function() {
|
998
951
|
if (this.closed)
|
999
|
-
throw new
|
952
|
+
throw new ti();
|
1000
953
|
}, t.prototype.next = function(e) {
|
1001
954
|
var i = this;
|
1002
|
-
|
1003
|
-
var r,
|
955
|
+
W(function() {
|
956
|
+
var r, n;
|
1004
957
|
if (i._throwIfClosed(), !i.isStopped) {
|
1005
958
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
1006
959
|
try {
|
1007
|
-
for (var
|
960
|
+
for (var o = pt(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
1008
961
|
var c = a.value;
|
1009
962
|
c.next(e);
|
1010
963
|
}
|
@@ -1012,17 +965,16 @@ var We = se(function(s) {
|
|
1012
965
|
r = { error: h };
|
1013
966
|
} finally {
|
1014
967
|
try {
|
1015
|
-
a && !a.done && (
|
968
|
+
a && !a.done && (n = o.return) && n.call(o);
|
1016
969
|
} finally {
|
1017
|
-
if (r)
|
1018
|
-
throw r.error;
|
970
|
+
if (r) throw r.error;
|
1019
971
|
}
|
1020
972
|
}
|
1021
973
|
}
|
1022
974
|
});
|
1023
975
|
}, t.prototype.error = function(e) {
|
1024
976
|
var i = this;
|
1025
|
-
|
977
|
+
W(function() {
|
1026
978
|
if (i._throwIfClosed(), !i.isStopped) {
|
1027
979
|
i.hasError = i.isStopped = !0, i.thrownError = e;
|
1028
980
|
for (var r = i.observers; r.length; )
|
@@ -1031,7 +983,7 @@ var We = se(function(s) {
|
|
1031
983
|
});
|
1032
984
|
}, t.prototype.complete = function() {
|
1033
985
|
var e = this;
|
1034
|
-
|
986
|
+
W(function() {
|
1035
987
|
if (e._throwIfClosed(), !e.isStopped) {
|
1036
988
|
e.isStopped = !0;
|
1037
989
|
for (var i = e.observers; i.length; )
|
@@ -1052,21 +1004,21 @@ var We = se(function(s) {
|
|
1052
1004
|
}, t.prototype._subscribe = function(e) {
|
1053
1005
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
1054
1006
|
}, t.prototype._innerSubscribe = function(e) {
|
1055
|
-
var i = this, r = this,
|
1056
|
-
return
|
1057
|
-
i.currentObservers = null,
|
1007
|
+
var i = this, r = this, n = r.hasError, o = r.isStopped, a = r.observers;
|
1008
|
+
return n || o ? pe : (this.currentObservers = null, a.push(e), new et(function() {
|
1009
|
+
i.currentObservers = null, vt(a, e);
|
1058
1010
|
}));
|
1059
1011
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
1060
|
-
var i = this, r = i.hasError,
|
1061
|
-
r ? e.error(
|
1012
|
+
var i = this, r = i.hasError, n = i.thrownError, o = i.isStopped;
|
1013
|
+
r ? e.error(n) : o && e.complete();
|
1062
1014
|
}, t.prototype.asObservable = function() {
|
1063
|
-
var e = new
|
1015
|
+
var e = new Yt();
|
1064
1016
|
return e.source = this, e;
|
1065
1017
|
}, t.create = function(e, i) {
|
1066
|
-
return new
|
1018
|
+
return new Wt(e, i);
|
1067
1019
|
}, t;
|
1068
|
-
}(
|
1069
|
-
|
1020
|
+
}(Yt), Wt = function(s) {
|
1021
|
+
V(t, s);
|
1070
1022
|
function t(e, i) {
|
1071
1023
|
var r = s.call(this) || this;
|
1072
1024
|
return r.destination = e, r.source = i, r;
|
@@ -1082,10 +1034,10 @@ var We = se(function(s) {
|
|
1082
1034
|
(i = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || i === void 0 || i.call(e);
|
1083
1035
|
}, t.prototype._subscribe = function(e) {
|
1084
1036
|
var i, r;
|
1085
|
-
return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r :
|
1037
|
+
return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r : pe;
|
1086
1038
|
}, t;
|
1087
|
-
}(
|
1088
|
-
|
1039
|
+
}(At), ei = function(s) {
|
1040
|
+
V(t, s);
|
1089
1041
|
function t(e) {
|
1090
1042
|
var i = s.call(this) || this;
|
1091
1043
|
return i._value = e, i;
|
@@ -1100,44 +1052,44 @@ var We = se(function(s) {
|
|
1100
1052
|
var i = s.prototype._subscribe.call(this, e);
|
1101
1053
|
return !i.closed && e.next(this._value), i;
|
1102
1054
|
}, t.prototype.getValue = function() {
|
1103
|
-
var e = this, i = e.hasError, r = e.thrownError,
|
1055
|
+
var e = this, i = e.hasError, r = e.thrownError, n = e._value;
|
1104
1056
|
if (i)
|
1105
1057
|
throw r;
|
1106
|
-
return this._throwIfClosed(),
|
1058
|
+
return this._throwIfClosed(), n;
|
1107
1059
|
}, t.prototype.next = function(e) {
|
1108
1060
|
s.prototype.next.call(this, this._value = e);
|
1109
1061
|
}, t;
|
1110
|
-
}(
|
1062
|
+
}(At);
|
1111
1063
|
/**
|
1112
1064
|
* @license
|
1113
1065
|
* Copyright 2017 Google LLC
|
1114
1066
|
* SPDX-License-Identifier: BSD-3-Clause
|
1115
1067
|
*/
|
1116
|
-
const
|
1068
|
+
const ii = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: _t }, si = (s = ii, t, e) => {
|
1117
1069
|
const { kind: i, metadata: r } = e;
|
1118
|
-
let
|
1119
|
-
if (
|
1120
|
-
const { name:
|
1070
|
+
let n = globalThis.litPropertyMetadata.get(r);
|
1071
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, s), i === "accessor") {
|
1072
|
+
const { name: o } = e;
|
1121
1073
|
return { set(a) {
|
1122
1074
|
const c = t.get.call(this);
|
1123
|
-
t.set.call(this, a), this.requestUpdate(
|
1075
|
+
t.set.call(this, a), this.requestUpdate(o, c, s);
|
1124
1076
|
}, init(a) {
|
1125
|
-
return a !== void 0 && this.P(
|
1077
|
+
return a !== void 0 && this.P(o, void 0, s), a;
|
1126
1078
|
} };
|
1127
1079
|
}
|
1128
1080
|
if (i === "setter") {
|
1129
|
-
const { name:
|
1081
|
+
const { name: o } = e;
|
1130
1082
|
return function(a) {
|
1131
|
-
const c = this[
|
1132
|
-
t.call(this, a), this.requestUpdate(
|
1083
|
+
const c = this[o];
|
1084
|
+
t.call(this, a), this.requestUpdate(o, c, s);
|
1133
1085
|
};
|
1134
1086
|
}
|
1135
1087
|
throw Error("Unsupported decorator location: " + i);
|
1136
1088
|
};
|
1137
1089
|
function g(s) {
|
1138
|
-
return (t, e) => typeof e == "object" ?
|
1139
|
-
const
|
1140
|
-
return r.constructor.createProperty(
|
1090
|
+
return (t, e) => typeof e == "object" ? si(s, t, e) : ((i, r, n) => {
|
1091
|
+
const o = r.hasOwnProperty(n);
|
1092
|
+
return r.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
1141
1093
|
})(s, t, e);
|
1142
1094
|
}
|
1143
1095
|
/**
|
@@ -1145,15 +1097,15 @@ function g(s) {
|
|
1145
1097
|
* Copyright 2017 Google LLC
|
1146
1098
|
* SPDX-License-Identifier: BSD-3-Clause
|
1147
1099
|
*/
|
1148
|
-
function
|
1100
|
+
function j(s) {
|
1149
1101
|
return g({ ...s, state: !0, attribute: !1 });
|
1150
1102
|
}
|
1151
|
-
var
|
1152
|
-
for (var r =
|
1153
|
-
(
|
1154
|
-
return
|
1103
|
+
var ri = Object.defineProperty, ni = (s, t, e, i) => {
|
1104
|
+
for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
|
1105
|
+
(o = s[n]) && (r = o(t, e, r) || r);
|
1106
|
+
return r && ri(t, e, r), r;
|
1155
1107
|
};
|
1156
|
-
class
|
1108
|
+
const St = class St extends m {
|
1157
1109
|
constructor() {
|
1158
1110
|
super(...arguments), this.anchor = "BottomRight";
|
1159
1111
|
}
|
@@ -1162,10 +1114,10 @@ class $t extends m {
|
|
1162
1114
|
return (e = this.shadowRoot) == null || e.appendChild(t), t;
|
1163
1115
|
}
|
1164
1116
|
render() {
|
1165
|
-
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"),
|
1117
|
+
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), u;
|
1166
1118
|
}
|
1167
|
-
}
|
1168
|
-
|
1119
|
+
};
|
1120
|
+
St.styles = [
|
1169
1121
|
O`
|
1170
1122
|
:host {
|
1171
1123
|
position: fixed;
|
@@ -1184,16 +1136,17 @@ $t.styles = [
|
|
1184
1136
|
}
|
1185
1137
|
`
|
1186
1138
|
];
|
1187
|
-
|
1139
|
+
let G = St;
|
1140
|
+
ni([
|
1188
1141
|
g({ attribute: !0 })
|
1189
|
-
],
|
1142
|
+
], G.prototype, "anchor");
|
1190
1143
|
/**
|
1191
1144
|
* @license
|
1192
1145
|
* Copyright 2017 Google LLC
|
1193
1146
|
* SPDX-License-Identifier: BSD-3-Clause
|
1194
1147
|
*/
|
1195
|
-
const
|
1196
|
-
let
|
1148
|
+
const xt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Et = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
1149
|
+
let me = class {
|
1197
1150
|
constructor(t) {
|
1198
1151
|
}
|
1199
1152
|
get _$AU() {
|
@@ -1214,7 +1167,7 @@ let ce = class {
|
|
1214
1167
|
* Copyright 2020 Google LLC
|
1215
1168
|
* SPDX-License-Identifier: BSD-3-Clause
|
1216
1169
|
*/
|
1217
|
-
const
|
1170
|
+
const oi = (s) => s.strings === void 0;
|
1218
1171
|
/**
|
1219
1172
|
* @license
|
1220
1173
|
* Copyright 2017 Google LLC
|
@@ -1223,60 +1176,48 @@ const Je = (s) => s.strings === void 0;
|
|
1223
1176
|
const L = (s, t) => {
|
1224
1177
|
var i;
|
1225
1178
|
const e = s._$AN;
|
1226
|
-
if (e === void 0)
|
1227
|
-
|
1228
|
-
for (const r of e)
|
1229
|
-
(i = r._$AO) == null || i.call(r, t, !1), L(r, t);
|
1179
|
+
if (e === void 0) return !1;
|
1180
|
+
for (const r of e) (i = r._$AO) == null || i.call(r, t, !1), L(r, t);
|
1230
1181
|
return !0;
|
1231
1182
|
}, X = (s) => {
|
1232
1183
|
let t, e;
|
1233
1184
|
do {
|
1234
|
-
if ((t = s._$AM) === void 0)
|
1235
|
-
break;
|
1185
|
+
if ((t = s._$AM) === void 0) break;
|
1236
1186
|
e = t._$AN, e.delete(s), s = t;
|
1237
1187
|
} while ((e == null ? void 0 : e.size) === 0);
|
1238
|
-
},
|
1188
|
+
}, ye = (s) => {
|
1239
1189
|
for (let t; t = s._$AM; s = t) {
|
1240
1190
|
let e = t._$AN;
|
1241
|
-
if (e === void 0)
|
1242
|
-
|
1243
|
-
|
1244
|
-
break;
|
1245
|
-
e.add(s), ei(t);
|
1191
|
+
if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
|
1192
|
+
else if (e.has(s)) break;
|
1193
|
+
e.add(s), hi(t);
|
1246
1194
|
}
|
1247
1195
|
};
|
1248
|
-
function
|
1249
|
-
this._$AN !== void 0 ? (X(this), this._$AM = s,
|
1196
|
+
function ai(s) {
|
1197
|
+
this._$AN !== void 0 ? (X(this), this._$AM = s, ye(this)) : this._$AM = s;
|
1250
1198
|
}
|
1251
|
-
function
|
1199
|
+
function ci(s, t = !1, e = 0) {
|
1252
1200
|
const i = this._$AH, r = this._$AN;
|
1253
|
-
if (r !== void 0 && r.size !== 0)
|
1254
|
-
|
1255
|
-
|
1256
|
-
for (let o = e; o < i.length; o++)
|
1257
|
-
L(i[o], !1), X(i[o]);
|
1258
|
-
else
|
1259
|
-
i != null && (L(i, !1), X(i));
|
1260
|
-
else
|
1261
|
-
L(this, s);
|
1201
|
+
if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(i)) for (let n = e; n < i.length; n++) L(i[n], !1), X(i[n]);
|
1202
|
+
else i != null && (L(i, !1), X(i));
|
1203
|
+
else L(this, s);
|
1262
1204
|
}
|
1263
|
-
const
|
1264
|
-
s.type ==
|
1205
|
+
const hi = (s) => {
|
1206
|
+
s.type == xt.CHILD && (s._$AP ?? (s._$AP = ci), s._$AQ ?? (s._$AQ = ai));
|
1265
1207
|
};
|
1266
|
-
class
|
1208
|
+
class be extends me {
|
1267
1209
|
constructor() {
|
1268
1210
|
super(...arguments), this._$AN = void 0;
|
1269
1211
|
}
|
1270
1212
|
_$AT(t, e, i) {
|
1271
|
-
super._$AT(t, e, i),
|
1213
|
+
super._$AT(t, e, i), ye(this), this.isConnected = t._$AU;
|
1272
1214
|
}
|
1273
1215
|
_$AO(t, e = !0) {
|
1274
1216
|
var i, r;
|
1275
1217
|
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (L(this, t), X(this));
|
1276
1218
|
}
|
1277
1219
|
setValue(t) {
|
1278
|
-
if (
|
1279
|
-
this._$Ct._$AI(t, this);
|
1220
|
+
if (oi(this._$Ct)) this._$Ct._$AI(t, this);
|
1280
1221
|
else {
|
1281
1222
|
const e = [...this._$Ct._$AH];
|
1282
1223
|
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
@@ -1287,35 +1228,34 @@ class le extends ce {
|
|
1287
1228
|
reconnected() {
|
1288
1229
|
}
|
1289
1230
|
}
|
1290
|
-
const
|
1291
|
-
let
|
1292
|
-
const
|
1231
|
+
const li = /* @__PURE__ */ new WeakMap();
|
1232
|
+
let Zt = 0;
|
1233
|
+
const ct = /* @__PURE__ */ new Map(), Kt = /* @__PURE__ */ new WeakSet(), Gt = () => new Promise((s) => requestAnimationFrame(s)), di = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Xt = (s, t) => {
|
1293
1234
|
const e = s - t;
|
1294
1235
|
return e === 0 ? void 0 : e;
|
1295
|
-
},
|
1236
|
+
}, Jt = (s, t) => {
|
1296
1237
|
const e = s / t;
|
1297
1238
|
return e === 1 ? void 0 : e;
|
1298
|
-
},
|
1299
|
-
const e =
|
1239
|
+
}, ht = { left: (s, t) => {
|
1240
|
+
const e = Xt(s, t);
|
1300
1241
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
1301
1242
|
}, top: (s, t) => {
|
1302
|
-
const e =
|
1243
|
+
const e = Xt(s, t);
|
1303
1244
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
1304
1245
|
}, width: (s, t) => {
|
1305
1246
|
let e;
|
1306
1247
|
t === 0 && (t = 1, e = { width: "1px" });
|
1307
|
-
const i =
|
1248
|
+
const i = Jt(s, t);
|
1308
1249
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
1309
1250
|
}, height: (s, t) => {
|
1310
1251
|
let e;
|
1311
1252
|
t === 0 && (t = 1, e = { height: "1px" });
|
1312
|
-
const i =
|
1253
|
+
const i = Jt(s, t);
|
1313
1254
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1314
|
-
} },
|
1315
|
-
class
|
1255
|
+
} }, ui = { duration: 333, easing: "ease-in-out" }, pi = ["left", "top", "width", "height", "opacity", "color", "background"], Qt = /* @__PURE__ */ new WeakMap();
|
1256
|
+
class fi extends be {
|
1316
1257
|
constructor(t) {
|
1317
|
-
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type ===
|
1318
|
-
throw Error("The `animate` directive must be used in attribute position.");
|
1258
|
+
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === xt.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
1319
1259
|
this.createFinished();
|
1320
1260
|
}
|
1321
1261
|
createFinished() {
|
@@ -1329,10 +1269,10 @@ class ni extends le {
|
|
1329
1269
|
(t = this.l) == null || t.call(this), this.l = void 0;
|
1330
1270
|
}
|
1331
1271
|
render(t) {
|
1332
|
-
return
|
1272
|
+
return u;
|
1333
1273
|
}
|
1334
1274
|
getController() {
|
1335
|
-
return
|
1275
|
+
return li.get(this.u);
|
1336
1276
|
}
|
1337
1277
|
isDisabled() {
|
1338
1278
|
var t;
|
@@ -1341,28 +1281,26 @@ class ni extends le {
|
|
1341
1281
|
update(t, [e]) {
|
1342
1282
|
var r;
|
1343
1283
|
const i = this.u === void 0;
|
1344
|
-
return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((
|
1284
|
+
return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((n) => this.t = !0), this.element = t.element, Qt.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
|
1345
1285
|
}
|
1346
1286
|
p(t) {
|
1347
1287
|
t = t ?? {};
|
1348
1288
|
const e = this.getController();
|
1349
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
1289
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = pi), this.options = t;
|
1350
1290
|
}
|
1351
1291
|
m() {
|
1352
1292
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1353
1293
|
return this.options.properties.forEach((r) => {
|
1354
|
-
const
|
1355
|
-
t[r] = isNaN(
|
1294
|
+
const n = e[r] ?? (ht[r] ? void 0 : i[r]), o = Number(n);
|
1295
|
+
t[r] = isNaN(o) ? n + "" : o;
|
1356
1296
|
}), t;
|
1357
1297
|
}
|
1358
1298
|
v() {
|
1359
1299
|
let t, e = !0;
|
1360
1300
|
return this.options.guard && (t = this.options.guard(), e = ((i, r) => {
|
1361
1301
|
if (Array.isArray(i)) {
|
1362
|
-
if (Array.isArray(r) && r.length === i.length && i.every((
|
1363
|
-
|
1364
|
-
} else if (r === i)
|
1365
|
-
return !1;
|
1302
|
+
if (Array.isArray(r) && r.length === i.length && i.every((n, o) => n === r[o])) return !1;
|
1303
|
+
} else if (r === i) return !1;
|
1366
1304
|
return !0;
|
1367
1305
|
})(t, this._)), this.h = this.t && !this.isDisabled() && !this.isAnimating() && e && this.element.isConnected, this.h && (this._ = Array.isArray(t) ? Array.from(t) : t), this.h;
|
1368
1306
|
}
|
@@ -1370,22 +1308,20 @@ class ni extends le {
|
|
1370
1308
|
typeof this.optionsOrCallback == "function" && this.p(this.optionsOrCallback()), this.v() && (this.A = this.m(), this.i = this.i ?? this.element.parentNode, this.o = this.element.nextSibling);
|
1371
1309
|
}
|
1372
1310
|
async hostUpdated() {
|
1373
|
-
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
|
1374
|
-
return;
|
1311
|
+
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered) return;
|
1375
1312
|
let t;
|
1376
|
-
this.prepare(), await
|
1313
|
+
this.prepare(), await Gt;
|
1377
1314
|
const e = this.O(), i = this.j(this.options.keyframeOptions, e), r = this.m();
|
1378
1315
|
if (this.A !== void 0) {
|
1379
|
-
const { from:
|
1380
|
-
this.log("measured", [this.A, r,
|
1316
|
+
const { from: n, to: o } = this.N(this.A, r, e);
|
1317
|
+
this.log("measured", [this.A, r, n, o]), t = this.calculateKeyframes(n, o);
|
1381
1318
|
} else {
|
1382
|
-
const
|
1383
|
-
if (
|
1384
|
-
|
1385
|
-
const { from:
|
1386
|
-
t = this.calculateKeyframes(
|
1387
|
-
} else
|
1388
|
-
this.options.in && (t = [...this.options.in, {}]);
|
1319
|
+
const n = ct.get(this.options.inId);
|
1320
|
+
if (n) {
|
1321
|
+
ct.delete(this.options.inId);
|
1322
|
+
const { from: o, to: a } = this.N(n, r, e);
|
1323
|
+
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Zt++, t.forEach((c) => c.zIndex = Zt);
|
1324
|
+
} else this.options.in && (t = [...this.options.in, {}]);
|
1389
1325
|
}
|
1390
1326
|
this.animate(t, i);
|
1391
1327
|
}
|
@@ -1400,15 +1336,14 @@ class ni extends le {
|
|
1400
1336
|
}
|
1401
1337
|
async disconnected() {
|
1402
1338
|
var e;
|
1403
|
-
if (!this.h || (this.options.id !== void 0 &&
|
1404
|
-
|
1405
|
-
if (this.prepare(), await Vt(), (e = this.i) == null ? void 0 : e.isConnected) {
|
1339
|
+
if (!this.h || (this.options.id !== void 0 && ct.set(this.options.id, this.A), this.options.out === void 0)) return;
|
1340
|
+
if (this.prepare(), await Gt(), (e = this.i) == null ? void 0 : e.isConnected) {
|
1406
1341
|
const i = this.o && this.o.parentNode === this.i ? this.o : null;
|
1407
1342
|
if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
|
1408
1343
|
const r = this.m();
|
1409
1344
|
this.log("stabilizing out");
|
1410
|
-
const
|
1411
|
-
getComputedStyle(this.element).position !== "static" ||
|
1345
|
+
const n = this.A.left - r.left, o = this.A.top - r.top;
|
1346
|
+
getComputedStyle(this.element).position !== "static" || n === 0 && o === 0 || (this.element.style.position = "relative"), n !== 0 && (this.element.style.left = n + "px"), o !== 0 && (this.element.style.top = o + "px");
|
1412
1347
|
}
|
1413
1348
|
}
|
1414
1349
|
const t = this.j(this.options.keyframeOptions);
|
@@ -1428,45 +1363,43 @@ class ni extends le {
|
|
1428
1363
|
O() {
|
1429
1364
|
const t = [];
|
1430
1365
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
1431
|
-
const i =
|
1366
|
+
const i = Qt.get(e);
|
1432
1367
|
i && !i.isDisabled() && i && t.push(i);
|
1433
1368
|
}
|
1434
1369
|
return t;
|
1435
1370
|
}
|
1436
1371
|
get isHostRendered() {
|
1437
|
-
const t =
|
1372
|
+
const t = Kt.has(this.u);
|
1438
1373
|
return t || this.u.updateComplete.then(() => {
|
1439
|
-
|
1374
|
+
Kt.add(this.u);
|
1440
1375
|
}), t;
|
1441
1376
|
}
|
1442
1377
|
j(t, e = this.O()) {
|
1443
|
-
const i = { ...
|
1378
|
+
const i = { ...ui };
|
1444
1379
|
return e.forEach((r) => Object.assign(i, r.options.keyframeOptions)), Object.assign(i, t), i;
|
1445
1380
|
}
|
1446
1381
|
N(t, e, i) {
|
1447
1382
|
t = { ...t }, e = { ...e };
|
1448
1383
|
const r = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
1449
|
-
let
|
1384
|
+
let n = 1, o = 1;
|
1450
1385
|
return r.length > 0 && (r.forEach((a) => {
|
1451
|
-
a.width && (
|
1452
|
-
}), t.left !== void 0 && e.left !== void 0 && (t.left =
|
1386
|
+
a.width && (n /= a.width), a.height && (o /= a.height);
|
1387
|
+
}), t.left !== void 0 && e.left !== void 0 && (t.left = n * t.left, e.left = n * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = o * t.top, e.top = o * e.top)), { from: t, to: e };
|
1453
1388
|
}
|
1454
1389
|
calculateKeyframes(t, e, i = !1) {
|
1455
|
-
const r = {},
|
1456
|
-
let
|
1390
|
+
const r = {}, n = {};
|
1391
|
+
let o = !1;
|
1457
1392
|
const a = {};
|
1458
1393
|
for (const c in e) {
|
1459
1394
|
const h = t[c], l = e[c];
|
1460
|
-
if (c in
|
1461
|
-
const
|
1462
|
-
if (h === void 0 || l === void 0)
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
} else
|
1467
|
-
h !== l && h !== void 0 && l !== void 0 && (n = !0, r[c] = h, o[c] = l);
|
1395
|
+
if (c in ht) {
|
1396
|
+
const d = ht[c];
|
1397
|
+
if (h === void 0 || l === void 0) continue;
|
1398
|
+
const p = d(h, l);
|
1399
|
+
p.transform !== void 0 && (a[c] = p.value, o = !0, r.transform = `${r.transform ?? ""} ${p.transform}`, p.overrideFrom !== void 0 && Object.assign(r, p.overrideFrom));
|
1400
|
+
} else h !== l && h !== void 0 && l !== void 0 && (o = !0, r[c] = h, n[c] = l);
|
1468
1401
|
}
|
1469
|
-
return r.transformOrigin =
|
1402
|
+
return r.transformOrigin = n.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [r, n] : void 0;
|
1470
1403
|
}
|
1471
1404
|
async animate(t, e = this.options.keyframeOptions) {
|
1472
1405
|
this.start(), this.frames = t;
|
@@ -1491,17 +1424,16 @@ class ni extends le {
|
|
1491
1424
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
1492
1425
|
}
|
1493
1426
|
}
|
1494
|
-
const
|
1427
|
+
const gi = Et(fi), vi = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' };
|
1495
1428
|
/**
|
1496
1429
|
* @license
|
1497
1430
|
* Copyright 2018 Google LLC
|
1498
1431
|
* SPDX-License-Identifier: BSD-3-Clause
|
1499
1432
|
*/
|
1500
|
-
const
|
1433
|
+
const te = Et(class extends me {
|
1501
1434
|
constructor(s) {
|
1502
1435
|
var t;
|
1503
|
-
if (super(s), s.type !==
|
1504
|
-
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
1436
|
+
if (super(s), s.type !== xt.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
1505
1437
|
}
|
1506
1438
|
render(s) {
|
1507
1439
|
return " " + Object.keys(s).filter((t) => s[t]).join(" ") + " ";
|
@@ -1509,24 +1441,22 @@ const qt = wt(class extends ce {
|
|
1509
1441
|
update(s, [t]) {
|
1510
1442
|
var i, r;
|
1511
1443
|
if (this.st === void 0) {
|
1512
|
-
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((
|
1513
|
-
for (const
|
1514
|
-
t[o] && !((i = this.nt) != null && i.has(o)) && this.st.add(o);
|
1444
|
+
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((n) => n !== "")));
|
1445
|
+
for (const n in t) t[n] && !((i = this.nt) != null && i.has(n)) && this.st.add(n);
|
1515
1446
|
return this.render(t);
|
1516
1447
|
}
|
1517
1448
|
const e = s.element.classList;
|
1518
|
-
for (const
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
n === this.st.has(o) || (r = this.nt) != null && r.has(o) || (n ? (e.add(o), this.st.add(o)) : (e.remove(o), this.st.delete(o)));
|
1449
|
+
for (const n of this.st) n in t || (e.remove(n), this.st.delete(n));
|
1450
|
+
for (const n in t) {
|
1451
|
+
const o = !!t[n];
|
1452
|
+
o === this.st.has(n) || (r = this.nt) != null && r.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
|
1523
1453
|
}
|
1524
1454
|
return P;
|
1525
1455
|
}
|
1526
1456
|
}), y = (s, t, e) => {
|
1527
1457
|
s && e.style.setProperty(t, s);
|
1528
|
-
},
|
1529
|
-
var e, i, r,
|
1458
|
+
}, $e = (s, t) => {
|
1459
|
+
var e, i, r, n, o, a, c, h, l;
|
1530
1460
|
y((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), y(
|
1531
1461
|
(i = s.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
1532
1462
|
"--text-on-primary-background",
|
@@ -1536,11 +1466,11 @@ const qt = wt(class extends ce {
|
|
1536
1466
|
"--secondary-background",
|
1537
1467
|
t
|
1538
1468
|
), y(
|
1539
|
-
(
|
1469
|
+
(n = s.colors) == null ? void 0 : n.textOnSecondaryBackground,
|
1540
1470
|
"--text-on-secondary-background",
|
1541
1471
|
t
|
1542
1472
|
), y(
|
1543
|
-
(
|
1473
|
+
(o = s.colors) == null ? void 0 : o.interactiveDestructiveBackground,
|
1544
1474
|
"--destructive-color",
|
1545
1475
|
t
|
1546
1476
|
), y(
|
@@ -1562,29 +1492,28 @@ const qt = wt(class extends ce {
|
|
1562
1492
|
* Copyright 2020 Google LLC
|
1563
1493
|
* SPDX-License-Identifier: BSD-3-Clause
|
1564
1494
|
*/
|
1565
|
-
const
|
1566
|
-
class
|
1495
|
+
const _e = () => new mi();
|
1496
|
+
class mi {
|
1567
1497
|
}
|
1568
|
-
const
|
1498
|
+
const lt = /* @__PURE__ */ new WeakMap(), we = Et(class extends be {
|
1569
1499
|
render(s) {
|
1570
|
-
return
|
1500
|
+
return u;
|
1571
1501
|
}
|
1572
1502
|
update(s, [t]) {
|
1573
1503
|
var i;
|
1574
1504
|
const e = t !== this.Y;
|
1575
|
-
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i = s.options) == null ? void 0 : i.host, this.rt(this.ct = s.element)),
|
1505
|
+
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i = s.options) == null ? void 0 : i.host, this.rt(this.ct = s.element)), u;
|
1576
1506
|
}
|
1577
1507
|
rt(s) {
|
1578
1508
|
if (this.isConnected || (s = void 0), typeof this.Y == "function") {
|
1579
1509
|
const t = this.ht ?? globalThis;
|
1580
|
-
let e =
|
1581
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
1582
|
-
} else
|
1583
|
-
this.Y.value = s;
|
1510
|
+
let e = lt.get(t);
|
1511
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), lt.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y, s), s !== void 0 && this.Y.call(this.ht, s);
|
1512
|
+
} else this.Y.value = s;
|
1584
1513
|
}
|
1585
1514
|
get lt() {
|
1586
1515
|
var s, t;
|
1587
|
-
return typeof this.Y == "function" ? (s =
|
1516
|
+
return typeof this.Y == "function" ? (s = lt.get(this.ht ?? globalThis)) == null ? void 0 : s.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
|
1588
1517
|
}
|
1589
1518
|
disconnected() {
|
1590
1519
|
this.lt === this.ct && this.rt(void 0);
|
@@ -1593,14 +1522,14 @@ const ct = /* @__PURE__ */ new WeakMap(), ue = wt(class extends le {
|
|
1593
1522
|
this.rt(this.ct);
|
1594
1523
|
}
|
1595
1524
|
});
|
1596
|
-
var
|
1597
|
-
for (var r =
|
1598
|
-
(
|
1599
|
-
return
|
1525
|
+
var yi = Object.defineProperty, F = (s, t, e, i) => {
|
1526
|
+
for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
|
1527
|
+
(o = s[n]) && (r = o(t, e, r) || r);
|
1528
|
+
return r && yi(t, e, r), r;
|
1600
1529
|
};
|
1601
|
-
class
|
1530
|
+
const Pt = class Pt extends m {
|
1602
1531
|
constructor() {
|
1603
|
-
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef =
|
1532
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = _e(), this.widgetActive$ = new ei(!1), this.componentIsDestroyed$ = new At();
|
1604
1533
|
}
|
1605
1534
|
async connectedCallback() {
|
1606
1535
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
@@ -1635,28 +1564,28 @@ class w extends m {
|
|
1635
1564
|
}
|
1636
1565
|
_applyBranding() {
|
1637
1566
|
var t;
|
1638
|
-
(t = this.application) != null && t.settings &&
|
1567
|
+
(t = this.application) != null && t.settings && $e(this.application.settings.branding, this);
|
1639
1568
|
}
|
1640
1569
|
async _renderSymbol() {
|
1641
1570
|
var a, c, h;
|
1642
1571
|
const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
|
1643
1572
|
if (e)
|
1644
|
-
return
|
1573
|
+
return E` <img src=${e} class="trigger-icon" alt="" /> `;
|
1645
1574
|
const i = (h = this.application) == null ? void 0 : h.triggerIcon;
|
1646
1575
|
if (!i)
|
1647
|
-
return
|
1648
|
-
const r = async (l) =>
|
1649
|
-
switch (
|
1576
|
+
return u;
|
1577
|
+
const r = async (l) => vi, { type: n, content: o } = i;
|
1578
|
+
switch (n) {
|
1650
1579
|
case "Telia": {
|
1651
1580
|
const l = await r();
|
1652
|
-
return l ?
|
1581
|
+
return l ? E`<telia-icon
|
1653
1582
|
class="trigger-icon"
|
1654
1583
|
svg=${l.svg}
|
1655
1584
|
size="lg"
|
1656
|
-
></telia-icon>` :
|
1585
|
+
></telia-icon>` : u;
|
1657
1586
|
}
|
1658
1587
|
default:
|
1659
|
-
return
|
1588
|
+
return u;
|
1660
1589
|
}
|
1661
1590
|
}
|
1662
1591
|
hideTrigger() {
|
@@ -1667,32 +1596,32 @@ class w extends m {
|
|
1667
1596
|
}
|
1668
1597
|
render() {
|
1669
1598
|
var t, e, i, r;
|
1670
|
-
return
|
1671
|
-
class=${
|
1599
|
+
return E`<div
|
1600
|
+
class=${te({
|
1672
1601
|
"trigger-container": !0,
|
1673
1602
|
hidden: !this.triggerVisible
|
1674
1603
|
})}
|
1675
|
-
${
|
1604
|
+
${we(this.containerRef)}
|
1676
1605
|
>
|
1677
|
-
${!this.active && ((r = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && r.showButtonLabel) ?
|
1606
|
+
${!this.active && ((r = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && r.showButtonLabel) ? E`
|
1678
1607
|
<button
|
1679
1608
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
1680
1609
|
class="trigger-label"
|
1681
1610
|
@click=${this.toggleActive}
|
1682
|
-
${
|
1611
|
+
${gi({
|
1683
1612
|
keyframeOptions: {},
|
1684
|
-
in:
|
1613
|
+
in: di,
|
1685
1614
|
stabilizeOut: !0,
|
1686
1615
|
skipInitial: !1
|
1687
1616
|
})}
|
1688
1617
|
>
|
1689
1618
|
${this.application.settings.branding.other.buttonLabelText}
|
1690
1619
|
</button>
|
1691
|
-
` :
|
1620
|
+
` : u}
|
1692
1621
|
|
1693
1622
|
<button
|
1694
1623
|
label="Widget trigger"
|
1695
|
-
class=${
|
1624
|
+
class=${te({
|
1696
1625
|
trigger: !0,
|
1697
1626
|
active: this.active,
|
1698
1627
|
rendered: this.loaded
|
@@ -1730,8 +1659,8 @@ class w extends m {
|
|
1730
1659
|
</button>
|
1731
1660
|
</div>`;
|
1732
1661
|
}
|
1733
|
-
}
|
1734
|
-
|
1662
|
+
};
|
1663
|
+
Pt.styles = [
|
1735
1664
|
O`
|
1736
1665
|
:host {
|
1737
1666
|
--voca-rem-multiplier: 0.625;
|
@@ -1863,42 +1792,43 @@ w.styles = [
|
|
1863
1792
|
}
|
1864
1793
|
`
|
1865
1794
|
];
|
1866
|
-
|
1795
|
+
let $ = Pt;
|
1796
|
+
F([
|
1867
1797
|
g({ attribute: !1 })
|
1868
|
-
],
|
1869
|
-
|
1870
|
-
|
1871
|
-
],
|
1872
|
-
|
1873
|
-
|
1874
|
-
],
|
1875
|
-
|
1876
|
-
|
1877
|
-
],
|
1878
|
-
|
1879
|
-
|
1880
|
-
],
|
1881
|
-
var
|
1882
|
-
for (var r =
|
1883
|
-
(
|
1884
|
-
return
|
1798
|
+
], $.prototype, "application");
|
1799
|
+
F([
|
1800
|
+
j()
|
1801
|
+
], $.prototype, "active");
|
1802
|
+
F([
|
1803
|
+
j()
|
1804
|
+
], $.prototype, "triggerVisible");
|
1805
|
+
F([
|
1806
|
+
j()
|
1807
|
+
], $.prototype, "loaded");
|
1808
|
+
F([
|
1809
|
+
j()
|
1810
|
+
], $.prototype, "icon");
|
1811
|
+
var bi = Object.defineProperty, x = (s, t, e, i) => {
|
1812
|
+
for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
|
1813
|
+
(o = s[n]) && (r = o(t, e, r) || r);
|
1814
|
+
return r && bi(t, e, r), r;
|
1885
1815
|
};
|
1886
|
-
const
|
1887
|
-
class
|
1816
|
+
const Ae = (s) => {
|
1817
|
+
const e = class e extends s {
|
1888
1818
|
constructor() {
|
1889
1819
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
1890
1820
|
}
|
1891
|
-
writeProperties(
|
1892
|
-
this.properties =
|
1821
|
+
writeProperties(r) {
|
1822
|
+
this.properties = r;
|
1893
1823
|
}
|
1894
|
-
writeLayout(
|
1895
|
-
this.layout =
|
1824
|
+
writeLayout(r) {
|
1825
|
+
this.layout = r;
|
1896
1826
|
}
|
1897
|
-
writeContext(
|
1898
|
-
this.context =
|
1827
|
+
writeContext(r) {
|
1828
|
+
this.context = r;
|
1899
1829
|
}
|
1900
|
-
addChild(
|
1901
|
-
|
1830
|
+
addChild(r) {
|
1831
|
+
r.parent = this, this.nodes.push(r);
|
1902
1832
|
}
|
1903
1833
|
connectedCallback() {
|
1904
1834
|
super.connectedCallback(), this.renderRoot.host.style.setProperty(
|
@@ -1906,8 +1836,8 @@ const fe = (s) => {
|
|
1906
1836
|
this.layout.size === "full" ? "var(--columns, 1)" : `min(${this.layout.size || "var(--columns)"}, var(--columns))`
|
1907
1837
|
), this.application.mountComponent(this);
|
1908
1838
|
}
|
1909
|
-
}
|
1910
|
-
|
1839
|
+
};
|
1840
|
+
e.styles = [
|
1911
1841
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
1912
1842
|
O`
|
1913
1843
|
:host {
|
@@ -1922,41 +1852,43 @@ const fe = (s) => {
|
|
1922
1852
|
box-sizing: border-box;
|
1923
1853
|
}
|
1924
1854
|
`
|
1925
|
-
]
|
1855
|
+
];
|
1856
|
+
let t = e;
|
1857
|
+
return x([
|
1926
1858
|
g()
|
1927
|
-
], t.prototype, "properties"
|
1859
|
+
], t.prototype, "properties"), x([
|
1928
1860
|
g()
|
1929
|
-
], t.prototype, "context"
|
1861
|
+
], t.prototype, "context"), x([
|
1930
1862
|
g()
|
1931
|
-
], t.prototype, "layout"
|
1863
|
+
], t.prototype, "layout"), x([
|
1932
1864
|
g()
|
1933
|
-
], t.prototype, "name"
|
1865
|
+
], t.prototype, "name"), x([
|
1934
1866
|
g()
|
1935
|
-
], t.prototype, "type"
|
1867
|
+
], t.prototype, "type"), x([
|
1936
1868
|
g({ attribute: !1 })
|
1937
|
-
], t.prototype, "application"
|
1869
|
+
], t.prototype, "application"), x([
|
1938
1870
|
g({ attribute: !1 })
|
1939
|
-
], t.prototype, "parent"
|
1940
|
-
}
|
1941
|
-
class ge extends fe(m) {
|
1871
|
+
], t.prototype, "parent"), t;
|
1872
|
+
}, Ot = class Ot extends Ae(m) {
|
1942
1873
|
render() {
|
1943
|
-
return
|
1874
|
+
return E`Non resolved component`;
|
1944
1875
|
}
|
1945
|
-
}
|
1946
|
-
|
1876
|
+
};
|
1877
|
+
Ot.styles = [
|
1947
1878
|
O`
|
1948
1879
|
:host {
|
1949
1880
|
display: block;
|
1950
1881
|
}
|
1951
1882
|
`
|
1952
1883
|
];
|
1953
|
-
|
1884
|
+
let yt = Ot;
|
1885
|
+
var D = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(D || {});
|
1954
1886
|
/**
|
1955
1887
|
* @license
|
1956
1888
|
* Copyright 2021 Google LLC
|
1957
1889
|
* SPDX-License-Identifier: BSD-3-Clause
|
1958
1890
|
*/
|
1959
|
-
let
|
1891
|
+
let $i = class extends Event {
|
1960
1892
|
constructor(t, e, i) {
|
1961
1893
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = i ?? !1;
|
1962
1894
|
}
|
@@ -1971,7 +1903,7 @@ let fi = class extends Event {
|
|
1971
1903
|
* Copyright 2021 Google LLC
|
1972
1904
|
* SPDX-License-Identifier: BSD-3-Clause
|
1973
1905
|
*/
|
1974
|
-
class
|
1906
|
+
class _i {
|
1975
1907
|
get value() {
|
1976
1908
|
return this.o;
|
1977
1909
|
}
|
@@ -1984,13 +1916,11 @@ class gi {
|
|
1984
1916
|
}
|
1985
1917
|
constructor(t) {
|
1986
1918
|
this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {
|
1987
|
-
for (const [e, { disposer: i }] of this.subscriptions)
|
1988
|
-
e(this.o, i);
|
1919
|
+
for (const [e, { disposer: i }] of this.subscriptions) e(this.o, i);
|
1989
1920
|
}, t !== void 0 && (this.value = t);
|
1990
1921
|
}
|
1991
1922
|
addCallback(t, e, i) {
|
1992
|
-
if (!i)
|
1993
|
-
return void t(this.value);
|
1923
|
+
if (!i) return void t(this.value);
|
1994
1924
|
this.subscriptions.has(t) || this.subscriptions.set(t, { disposer: () => {
|
1995
1925
|
this.subscriptions.delete(t);
|
1996
1926
|
}, consumerHost: e });
|
@@ -2006,32 +1936,30 @@ class gi {
|
|
2006
1936
|
* Copyright 2021 Google LLC
|
2007
1937
|
* SPDX-License-Identifier: BSD-3-Clause
|
2008
1938
|
*/
|
2009
|
-
let
|
1939
|
+
let wi = class extends Event {
|
2010
1940
|
constructor(t) {
|
2011
1941
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
|
2012
1942
|
}
|
2013
1943
|
};
|
2014
|
-
class
|
1944
|
+
class ee extends _i {
|
2015
1945
|
constructor(t, e, i) {
|
2016
|
-
var r,
|
2017
|
-
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (
|
2018
|
-
const a =
|
2019
|
-
|
2020
|
-
}, this.onProviderRequest = (
|
2021
|
-
const a =
|
2022
|
-
if (
|
2023
|
-
return;
|
1946
|
+
var r, n;
|
1947
|
+
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
|
1948
|
+
const a = o.composedPath()[0];
|
1949
|
+
o.context === this.context && a !== this.host && (o.stopPropagation(), this.addCallback(o.callback, a, o.subscribe));
|
1950
|
+
}, this.onProviderRequest = (o) => {
|
1951
|
+
const a = o.composedPath()[0];
|
1952
|
+
if (o.context !== this.context || a === this.host) return;
|
2024
1953
|
const c = /* @__PURE__ */ new Set();
|
2025
|
-
for (const [h, { consumerHost: l }] of this.subscriptions)
|
2026
|
-
|
2027
|
-
|
2028
|
-
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (o = (r = this.host).addController) == null || o.call(r, this);
|
1954
|
+
for (const [h, { consumerHost: l }] of this.subscriptions) c.has(h) || (c.add(h), l.dispatchEvent(new $i(this.context, h, !0)));
|
1955
|
+
o.stopPropagation();
|
1956
|
+
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (n = (r = this.host).addController) == null || n.call(r, this);
|
2029
1957
|
}
|
2030
1958
|
attachListeners() {
|
2031
1959
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
2032
1960
|
}
|
2033
1961
|
hostConnected() {
|
2034
|
-
this.host.dispatchEvent(new
|
1962
|
+
this.host.dispatchEvent(new wi(this.context));
|
2035
1963
|
}
|
2036
1964
|
}
|
2037
1965
|
/**
|
@@ -2039,53 +1967,51 @@ class Zt extends gi {
|
|
2039
1967
|
* Copyright 2017 Google LLC
|
2040
1968
|
* SPDX-License-Identifier: BSD-3-Clause
|
2041
1969
|
*/
|
2042
|
-
function
|
1970
|
+
function Ai({ context: s }) {
|
2043
1971
|
return (t, e) => {
|
2044
1972
|
const i = /* @__PURE__ */ new WeakMap();
|
2045
|
-
if (typeof e == "object")
|
2046
|
-
|
2047
|
-
|
2048
|
-
|
2049
|
-
|
2050
|
-
|
2051
|
-
|
2052
|
-
|
2053
|
-
|
2054
|
-
|
2055
|
-
|
2056
|
-
} };
|
1973
|
+
if (typeof e == "object") return e.addInitializer(function() {
|
1974
|
+
i.set(this, new ee(this, { context: s }));
|
1975
|
+
}), { get() {
|
1976
|
+
return t.get.call(this);
|
1977
|
+
}, set(r) {
|
1978
|
+
var n;
|
1979
|
+
return (n = i.get(this)) == null || n.setValue(r), t.set.call(this, r);
|
1980
|
+
}, init(r) {
|
1981
|
+
var n;
|
1982
|
+
return (n = i.get(this)) == null || n.setValue(r), r;
|
1983
|
+
} };
|
2057
1984
|
{
|
2058
|
-
t.constructor.addInitializer((
|
2059
|
-
i.set(
|
1985
|
+
t.constructor.addInitializer((o) => {
|
1986
|
+
i.set(o, new ee(o, { context: s }));
|
2060
1987
|
});
|
2061
1988
|
const r = Object.getOwnPropertyDescriptor(t, e);
|
2062
|
-
let
|
1989
|
+
let n;
|
2063
1990
|
if (r === void 0) {
|
2064
|
-
const
|
2065
|
-
|
2066
|
-
return
|
1991
|
+
const o = /* @__PURE__ */ new WeakMap();
|
1992
|
+
n = { get() {
|
1993
|
+
return o.get(this);
|
2067
1994
|
}, set(a) {
|
2068
|
-
i.get(this).setValue(a),
|
1995
|
+
i.get(this).setValue(a), o.set(this, a);
|
2069
1996
|
}, configurable: !0, enumerable: !0 };
|
2070
1997
|
} else {
|
2071
|
-
const
|
2072
|
-
|
2073
|
-
i.get(this).setValue(a),
|
1998
|
+
const o = r.set;
|
1999
|
+
n = { ...r, set(a) {
|
2000
|
+
i.get(this).setValue(a), o == null || o.call(this, a);
|
2074
2001
|
} };
|
2075
2002
|
}
|
2076
|
-
return void Object.defineProperty(t, e,
|
2003
|
+
return void Object.defineProperty(t, e, n);
|
2077
2004
|
}
|
2078
2005
|
};
|
2079
2006
|
}
|
2080
|
-
var
|
2081
|
-
for (var r =
|
2082
|
-
(
|
2083
|
-
return
|
2007
|
+
var xi = Object.defineProperty, Ei = (s, t, e, i) => {
|
2008
|
+
for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
|
2009
|
+
(o = s[n]) && (r = o(t, e, r) || r);
|
2010
|
+
return r && xi(t, e, r), r;
|
2084
2011
|
};
|
2085
|
-
const
|
2086
|
-
class xt extends m {
|
2012
|
+
const Ci = "application", kt = class kt extends m {
|
2087
2013
|
constructor() {
|
2088
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
2014
|
+
super(...arguments), this.nodes = [], this.wrapperRef = _e();
|
2089
2015
|
}
|
2090
2016
|
addChild(t) {
|
2091
2017
|
t.parent = this, this.nodes.push(t);
|
@@ -2094,7 +2020,7 @@ class xt extends m {
|
|
2094
2020
|
if (!this.wrapperRef.value)
|
2095
2021
|
return;
|
2096
2022
|
const t = this.application.settings;
|
2097
|
-
t != null && t.branding &&
|
2023
|
+
t != null && t.branding && $e(t.branding, this.wrapperRef.value);
|
2098
2024
|
}
|
2099
2025
|
applyStyles() {
|
2100
2026
|
if (!this.wrapperRef.value)
|
@@ -2110,12 +2036,12 @@ class xt extends m {
|
|
2110
2036
|
render() {
|
2111
2037
|
var i, r;
|
2112
2038
|
const t = this.application.settings.components.conversation;
|
2113
|
-
return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy ===
|
2114
|
-
${
|
2039
|
+
return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === D.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), E`<div class="widget-container" ${we(this.wrapperRef)}>
|
2040
|
+
${de(this.nodes, (n) => n)}
|
2115
2041
|
</div>`;
|
2116
2042
|
}
|
2117
|
-
}
|
2118
|
-
|
2043
|
+
};
|
2044
|
+
kt.styles = O`
|
2119
2045
|
:host {
|
2120
2046
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
2121
2047
|
--spacing-xs: 0.2rem;
|
@@ -2251,16 +2177,56 @@ xt.styles = O`
|
|
2251
2177
|
pointer-events: none;
|
2252
2178
|
}
|
2253
2179
|
`;
|
2254
|
-
|
2180
|
+
let J = kt;
|
2181
|
+
Ei([
|
2255
2182
|
g({ attribute: !1 }),
|
2256
|
-
|
2257
|
-
],
|
2258
|
-
|
2259
|
-
|
2260
|
-
|
2261
|
-
|
2183
|
+
Ai({ context: Ci })
|
2184
|
+
], J.prototype, "application");
|
2185
|
+
const Q = class Q {
|
2186
|
+
// TODO:
|
2187
|
+
// private static endpoint = 'http://localhost:5299/api'; // TODO:
|
2188
|
+
constructor(t = Q.endpoint) {
|
2189
|
+
this._endpoint = t;
|
2190
|
+
}
|
2191
|
+
async getSite(t) {
|
2192
|
+
const i = await (await fetch(t)).json();
|
2193
|
+
return i ? {
|
2194
|
+
id: i.id,
|
2195
|
+
triggers: i.triggers || [],
|
2196
|
+
apps: (i.widgets || []).map((r) => {
|
2197
|
+
let n = D.Trigger;
|
2198
|
+
r.renderStrategy.toLowerCase() === "inline" && (n = D.Inline);
|
2199
|
+
const o = r.widgetId ? r.widgetId : r.id, a = typeof r.autoActivate == "boolean" ? r.autoActivate : !1, c = typeof r.anchor == "string" ? r.anchor : "BottomRight", h = typeof r.triggerIcon == "string" ? r.triggerIcon : "question";
|
2200
|
+
return {
|
2201
|
+
id: o,
|
2202
|
+
widgetId: o,
|
2203
|
+
renderStrategy: n,
|
2204
|
+
autoActivate: a,
|
2205
|
+
anchor: c,
|
2206
|
+
triggerIcon: {
|
2207
|
+
type: "Telia",
|
2208
|
+
content: h
|
2209
|
+
}
|
2210
|
+
};
|
2211
|
+
})
|
2212
|
+
} : null;
|
2213
|
+
}
|
2214
|
+
async getWidget(t) {
|
2215
|
+
const i = await (await fetch(`${this._endpoint}/widget/${t}`)).json();
|
2216
|
+
return i ? {
|
2217
|
+
name: i.name,
|
2218
|
+
config: JSON.parse(i.configuration)
|
2219
|
+
} : null;
|
2220
|
+
}
|
2262
2221
|
};
|
2263
|
-
|
2222
|
+
Q.endpoint = "https://widgets.ace.teliacompany.net/api";
|
2223
|
+
let ie = Q;
|
2224
|
+
var Si = Object.defineProperty, Ct = (s, t, e, i) => {
|
2225
|
+
for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
|
2226
|
+
(o = s[n]) && (r = o(t, e, r) || r);
|
2227
|
+
return r && Si(t, e, r), r;
|
2228
|
+
};
|
2229
|
+
const Tt = class Tt extends m {
|
2264
2230
|
constructor() {
|
2265
2231
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
2266
2232
|
}
|
@@ -2284,59 +2250,59 @@ class V extends m {
|
|
2284
2250
|
}
|
2285
2251
|
render() {
|
2286
2252
|
if (!this.widget || this.status !== "activated")
|
2287
|
-
return
|
2288
|
-
if (this.widget.renderStrategy ===
|
2289
|
-
const t = new
|
2253
|
+
return u;
|
2254
|
+
if (this.widget.renderStrategy === D.Trigger) {
|
2255
|
+
const t = new $();
|
2290
2256
|
return t.application = this.widget, t;
|
2291
2257
|
}
|
2292
2258
|
return this.widget.render();
|
2293
2259
|
}
|
2294
|
-
}
|
2295
|
-
|
2260
|
+
};
|
2261
|
+
Tt.styles = [
|
2296
2262
|
O`
|
2297
2263
|
:host {
|
2298
2264
|
display: block;
|
2299
2265
|
}
|
2300
2266
|
`
|
2301
2267
|
];
|
2268
|
+
let U = Tt;
|
2302
2269
|
Ct([
|
2303
2270
|
g({ attribute: !0 })
|
2304
|
-
],
|
2271
|
+
], U.prototype, "name");
|
2305
2272
|
Ct([
|
2306
|
-
|
2307
|
-
],
|
2273
|
+
j()
|
2274
|
+
], U.prototype, "widget");
|
2308
2275
|
Ct([
|
2309
|
-
|
2310
|
-
],
|
2311
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
2312
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
2313
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
2314
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
2315
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
2316
|
-
const
|
2276
|
+
j()
|
2277
|
+
], U.prototype, "status");
|
2278
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", G);
|
2279
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", $);
|
2280
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", yt);
|
2281
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", J);
|
2282
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", U);
|
2283
|
+
const Pi = (s) => {
|
2317
2284
|
const t = {};
|
2318
2285
|
return Object.keys(s).forEach((e) => {
|
2319
2286
|
e.indexOf("css-") > -1 && (t[e] = s[e]);
|
2320
2287
|
}), t;
|
2321
|
-
},
|
2322
|
-
const e =
|
2288
|
+
}, Oi = (s, t) => {
|
2289
|
+
const e = Pi(t);
|
2323
2290
|
Object.entries(e).forEach(([i, r]) => {
|
2324
2291
|
s.style.setProperty(i.replace("css-", ""), r);
|
2325
2292
|
});
|
2326
|
-
}
|
2327
|
-
class Ei extends fe(m) {
|
2293
|
+
}, Rt = class Rt extends Ae(m) {
|
2328
2294
|
constructor() {
|
2329
2295
|
super(...arguments), this.nodes = [];
|
2330
2296
|
}
|
2331
2297
|
render() {
|
2332
2298
|
var t;
|
2333
|
-
return
|
2299
|
+
return Oi(this.renderRoot.host, this.properties), this.renderRoot.host.style.setProperty(
|
2334
2300
|
"--columns",
|
2335
2301
|
((t = this.properties.columns) == null ? void 0 : t.toString()) || "1"
|
2336
|
-
),
|
2302
|
+
), E`${de(this.nodes, (e) => e)}`;
|
2337
2303
|
}
|
2338
|
-
}
|
2339
|
-
|
2304
|
+
};
|
2305
|
+
Rt.styles = [
|
2340
2306
|
O`
|
2341
2307
|
:host {
|
2342
2308
|
height: 100%;
|
@@ -2349,7 +2315,8 @@ Ei.styles = [
|
|
2349
2315
|
}
|
2350
2316
|
`
|
2351
2317
|
];
|
2318
|
+
let se = Rt;
|
2352
2319
|
export {
|
2353
|
-
|
2354
|
-
|
2320
|
+
se as Area,
|
2321
|
+
se as default
|
2355
2322
|
};
|