@telia-ace/widget-components-widget-header-flamingo 1.1.120-rc.30 → 1.1.120-rc.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
7
|
-
let
|
|
6
|
+
const $t = globalThis, ee = $t.ShadowRoot && ($t.ShadyCSS === void 0 || $t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ie = Symbol(), we = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let si = class {
|
|
8
8
|
constructor(t, e, s) {
|
|
9
|
-
if (this._$cssResult$ = !0, s !==
|
|
9
|
+
if (this._$cssResult$ = !0, s !== ie) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = t, this.t = e;
|
|
11
11
|
}
|
|
12
12
|
get styleSheet() {
|
|
13
13
|
let t = this.o;
|
|
14
14
|
const e = this.t;
|
|
15
|
-
if (
|
|
15
|
+
if (ee && t === void 0) {
|
|
16
16
|
const s = e !== void 0 && e.length === 1;
|
|
17
|
-
s && (t =
|
|
17
|
+
s && (t = we.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && we.set(e, t));
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
}
|
|
@@ -22,33 +22,33 @@ let ri = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const
|
|
25
|
+
const ts = (i) => new si(typeof i == "string" ? i : i + "", void 0, ie), B = (i, ...t) => {
|
|
26
26
|
const e = i.length === 1 ? i[0] : t.reduce((s, n, r) => s + ((o) => {
|
|
27
27
|
if (o._$cssResult$ === !0) return o.cssText;
|
|
28
28
|
if (typeof o == "number") return o;
|
|
29
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
30
|
})(n) + i[r + 1], i[0]);
|
|
31
|
-
return new
|
|
32
|
-
},
|
|
33
|
-
if (
|
|
31
|
+
return new si(e, i, ie);
|
|
32
|
+
}, es = (i, t) => {
|
|
33
|
+
if (ee) i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
34
34
|
else for (const e of t) {
|
|
35
|
-
const s = document.createElement("style"), n =
|
|
35
|
+
const s = document.createElement("style"), n = $t.litNonce;
|
|
36
36
|
n !== void 0 && s.setAttribute("nonce", n), s.textContent = e.cssText, i.appendChild(s);
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, _e = ee ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
|
|
39
39
|
let e = "";
|
|
40
40
|
for (const s of t.cssRules) e += s.cssText;
|
|
41
|
-
return
|
|
41
|
+
return ts(e);
|
|
42
42
|
})(i) : i;
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is
|
|
48
|
+
const { is, defineProperty: ss, getOwnPropertyDescriptor: ns, getOwnPropertyNames: rs, getOwnPropertySymbols: os, getPrototypeOf: as } = Object, T = globalThis, xe = T.trustedTypes, ls = xe ? xe.emptyScript : "", jt = T.reactiveElementPolyfillSupport, it = (i, t) => i, yt = { toAttribute(i, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
|
-
i = i ?
|
|
51
|
+
i = i ? ls : null;
|
|
52
52
|
break;
|
|
53
53
|
case Object:
|
|
54
54
|
case Array:
|
|
@@ -73,7 +73,7 @@ const { is: ns, defineProperty: rs, getOwnPropertyDescriptor: os, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
|
-
} },
|
|
76
|
+
} }, se = (i, t) => !is(i, t), Se = { attribute: !0, type: String, converter: yt, reflect: !1, useDefault: !1, hasChanged: se };
|
|
77
77
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), T.litPropertyMetadata ?? (T.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
78
|
let H = class extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
@@ -82,14 +82,14 @@ let H = class extends HTMLElement {
|
|
|
82
82
|
static get observedAttributes() {
|
|
83
83
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
84
84
|
}
|
|
85
|
-
static createProperty(t, e =
|
|
85
|
+
static createProperty(t, e = Se) {
|
|
86
86
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
87
87
|
const s = Symbol(), n = this.getPropertyDescriptor(t, s, e);
|
|
88
|
-
n !== void 0 &&
|
|
88
|
+
n !== void 0 && ss(this.prototype, t, n);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
static getPropertyDescriptor(t, e, s) {
|
|
92
|
-
const { get: n, set: r } =
|
|
92
|
+
const { get: n, set: r } = ns(this.prototype, t) ?? { get() {
|
|
93
93
|
return this[e];
|
|
94
94
|
}, set(o) {
|
|
95
95
|
this[e] = o;
|
|
@@ -100,17 +100,17 @@ let H = class extends HTMLElement {
|
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(t) {
|
|
103
|
-
return this.elementProperties.get(t) ??
|
|
103
|
+
return this.elementProperties.get(t) ?? Se;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
106
|
if (this.hasOwnProperty(it("elementProperties"))) return;
|
|
107
|
-
const t =
|
|
107
|
+
const t = as(this);
|
|
108
108
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
109
109
|
}
|
|
110
110
|
static finalize() {
|
|
111
111
|
if (this.hasOwnProperty(it("finalized"))) return;
|
|
112
112
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(it("properties"))) {
|
|
113
|
-
const e = this.properties, s = [...
|
|
113
|
+
const e = this.properties, s = [...rs(e), ...os(e)];
|
|
114
114
|
for (const n of s) this.createProperty(n, e[n]);
|
|
115
115
|
}
|
|
116
116
|
const t = this[Symbol.metadata];
|
|
@@ -129,8 +129,8 @@ let H = class extends HTMLElement {
|
|
|
129
129
|
const e = [];
|
|
130
130
|
if (Array.isArray(t)) {
|
|
131
131
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
132
|
-
for (const n of s) e.unshift(
|
|
133
|
-
} else t !== void 0 && e.push(
|
|
132
|
+
for (const n of s) e.unshift(_e(n));
|
|
133
|
+
} else t !== void 0 && e.push(_e(t));
|
|
134
134
|
return e;
|
|
135
135
|
}
|
|
136
136
|
static _$Eu(t, e) {
|
|
@@ -159,7 +159,7 @@ let H = class extends HTMLElement {
|
|
|
159
159
|
}
|
|
160
160
|
createRenderRoot() {
|
|
161
161
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
162
|
-
return
|
|
162
|
+
return es(t, this.constructor.elementStyles), t;
|
|
163
163
|
}
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var t;
|
|
@@ -184,7 +184,7 @@ let H = class extends HTMLElement {
|
|
|
184
184
|
var r;
|
|
185
185
|
const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
|
|
186
186
|
if (n !== void 0 && s.reflect === !0) {
|
|
187
|
-
const o = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter :
|
|
187
|
+
const o = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : yt).toAttribute(e, s.type);
|
|
188
188
|
this._$Em = t, o == null ? this.removeAttribute(n) : this.setAttribute(n, o), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
@@ -192,15 +192,17 @@ let H = class extends HTMLElement {
|
|
|
192
192
|
var r, o;
|
|
193
193
|
const s = this.constructor, n = s._$Eh.get(t);
|
|
194
194
|
if (n !== void 0 && this._$Em !== n) {
|
|
195
|
-
const a = s.getPropertyOptions(n), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter :
|
|
196
|
-
this._$Em = n
|
|
195
|
+
const a = s.getPropertyOptions(n), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : yt;
|
|
196
|
+
this._$Em = n;
|
|
197
|
+
const c = l.fromAttribute(e, a.type);
|
|
198
|
+
this[n] = c ?? ((o = this._$Ej) == null ? void 0 : o.get(n)) ?? c, this._$Em = null;
|
|
197
199
|
}
|
|
198
200
|
}
|
|
199
201
|
requestUpdate(t, e, s) {
|
|
200
202
|
var n;
|
|
201
203
|
if (t !== void 0) {
|
|
202
204
|
const r = this.constructor, o = this[t];
|
|
203
|
-
if (s ?? (s = r.getPropertyOptions(t)), !((s.hasChanged ??
|
|
205
|
+
if (s ?? (s = r.getPropertyOptions(t)), !((s.hasChanged ?? se)(o, e) || s.useDefault && s.reflect && o === ((n = this._$Ej) == null ? void 0 : n.get(t)) && !this.hasAttribute(r._$Eu(t, s)))) return;
|
|
204
206
|
this.C(t, e, s);
|
|
205
207
|
}
|
|
206
208
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -276,56 +278,56 @@ let H = class extends HTMLElement {
|
|
|
276
278
|
firstUpdated(t) {
|
|
277
279
|
}
|
|
278
280
|
};
|
|
279
|
-
H.elementStyles = [], H.shadowRootOptions = { mode: "open" }, H[it("elementProperties")] = /* @__PURE__ */ new Map(), H[it("finalized")] = /* @__PURE__ */ new Map(),
|
|
281
|
+
H.elementStyles = [], H.shadowRootOptions = { mode: "open" }, H[it("elementProperties")] = /* @__PURE__ */ new Map(), H[it("finalized")] = /* @__PURE__ */ new Map(), jt == null || jt({ ReactiveElement: H }), (T.reactiveElementVersions ?? (T.reactiveElementVersions = [])).push("2.1.1");
|
|
280
282
|
/**
|
|
281
283
|
* @license
|
|
282
284
|
* Copyright 2017 Google LLC
|
|
283
285
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
286
|
*/
|
|
285
|
-
const st = globalThis,
|
|
286
|
-
\f\r]`, et = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
287
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
288
|
-
function
|
|
289
|
-
if (!
|
|
290
|
-
return
|
|
291
|
-
}
|
|
292
|
-
const
|
|
287
|
+
const st = globalThis, bt = st.trustedTypes, Ae = bt ? bt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, ni = "$lit$", O = `lit$${Math.random().toFixed(9).slice(2)}$`, ri = "?" + O, cs = `<${ri}>`, M = document, rt = () => M.createComment(""), ot = (i) => i === null || typeof i != "object" && typeof i != "function", ne = Array.isArray, us = (i) => ne(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Nt = `[
|
|
288
|
+
\f\r]`, et = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ke = /-->/g, Ce = />/g, P = RegExp(`>|${Nt}(?:([^\\s"'>=/]+)(${Nt}*=${Nt}*(?:[^
|
|
289
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ee = /'/g, Oe = /"/g, oi = /^(?:script|style|textarea|title)$/i, hs = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), m = hs(1), j = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), Te = /* @__PURE__ */ new WeakMap(), I = M.createTreeWalker(M, 129);
|
|
290
|
+
function ai(i, t) {
|
|
291
|
+
if (!ne(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
292
|
+
return Ae !== void 0 ? Ae.createHTML(t) : t;
|
|
293
|
+
}
|
|
294
|
+
const ds = (i, t) => {
|
|
293
295
|
const e = i.length - 1, s = [];
|
|
294
296
|
let n, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = et;
|
|
295
297
|
for (let a = 0; a < e; a++) {
|
|
296
298
|
const l = i[a];
|
|
297
299
|
let c, u, h = -1, d = 0;
|
|
298
|
-
for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); ) d = o.lastIndex, o === et ? u[1] === "!--" ? o =
|
|
300
|
+
for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); ) d = o.lastIndex, o === et ? u[1] === "!--" ? o = ke : u[1] !== void 0 ? o = Ce : u[2] !== void 0 ? (oi.test(u[2]) && (n = RegExp("</" + u[2], "g")), o = P) : u[3] !== void 0 && (o = P) : o === P ? u[0] === ">" ? (o = n ?? et, h = -1) : u[1] === void 0 ? h = -2 : (h = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? P : u[3] === '"' ? Oe : Ee) : o === Oe || o === Ee ? o = P : o === ke || o === Ce ? o = et : (o = P, n = void 0);
|
|
299
301
|
const f = o === P && i[a + 1].startsWith("/>") ? " " : "";
|
|
300
|
-
r += o === et ? l +
|
|
302
|
+
r += o === et ? l + cs : h >= 0 ? (s.push(c), l.slice(0, h) + ni + l.slice(h) + O + f) : l + O + (h === -2 ? a : f);
|
|
301
303
|
}
|
|
302
|
-
return [
|
|
304
|
+
return [ai(i, r + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
303
305
|
};
|
|
304
|
-
let
|
|
306
|
+
let qt = class li {
|
|
305
307
|
constructor({ strings: t, _$litType$: e }, s) {
|
|
306
308
|
let n;
|
|
307
309
|
this.parts = [];
|
|
308
310
|
let r = 0, o = 0;
|
|
309
|
-
const a = t.length - 1, l = this.parts, [c, u] =
|
|
310
|
-
if (this.el =
|
|
311
|
+
const a = t.length - 1, l = this.parts, [c, u] = ds(t, e);
|
|
312
|
+
if (this.el = li.createElement(c, s), I.currentNode = this.el.content, e === 2 || e === 3) {
|
|
311
313
|
const h = this.el.content.firstChild;
|
|
312
314
|
h.replaceWith(...h.childNodes);
|
|
313
315
|
}
|
|
314
|
-
for (; (n =
|
|
316
|
+
for (; (n = I.nextNode()) !== null && l.length < a; ) {
|
|
315
317
|
if (n.nodeType === 1) {
|
|
316
|
-
if (n.hasAttributes()) for (const h of n.getAttributeNames()) if (h.endsWith(
|
|
318
|
+
if (n.hasAttributes()) for (const h of n.getAttributeNames()) if (h.endsWith(ni)) {
|
|
317
319
|
const d = u[o++], f = n.getAttribute(h).split(O), v = /([.?@])?(.*)/.exec(d);
|
|
318
|
-
l.push({ type: 1, index: r, name: v[2], strings: f, ctor: v[1] === "." ?
|
|
320
|
+
l.push({ type: 1, index: r, name: v[2], strings: f, ctor: v[1] === "." ? ps : v[1] === "?" ? gs : v[1] === "@" ? vs : Tt }), n.removeAttribute(h);
|
|
319
321
|
} else h.startsWith(O) && (l.push({ type: 6, index: r }), n.removeAttribute(h));
|
|
320
|
-
if (
|
|
322
|
+
if (oi.test(n.tagName)) {
|
|
321
323
|
const h = n.textContent.split(O), d = h.length - 1;
|
|
322
324
|
if (d > 0) {
|
|
323
|
-
n.textContent =
|
|
324
|
-
for (let f = 0; f < d; f++) n.append(h[f], rt()),
|
|
325
|
+
n.textContent = bt ? bt.emptyScript : "";
|
|
326
|
+
for (let f = 0; f < d; f++) n.append(h[f], rt()), I.nextNode(), l.push({ type: 2, index: ++r });
|
|
325
327
|
n.append(h[d], rt());
|
|
326
328
|
}
|
|
327
329
|
}
|
|
328
|
-
} else if (n.nodeType === 8) if (n.data ===
|
|
330
|
+
} else if (n.nodeType === 8) if (n.data === ri) l.push({ type: 2, index: r });
|
|
329
331
|
else {
|
|
330
332
|
let h = -1;
|
|
331
333
|
for (; (h = n.data.indexOf(O, h + 1)) !== -1; ) l.push({ type: 7, index: r }), h += O.length - 1;
|
|
@@ -345,7 +347,7 @@ function Z(i, t, e = i, s) {
|
|
|
345
347
|
const r = ot(t) ? void 0 : t._$litDirective$;
|
|
346
348
|
return (n == null ? void 0 : n.constructor) !== r && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), r === void 0 ? n = void 0 : (n = new r(i), n._$AT(i, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = n : e._$Cl = n), n !== void 0 && (t = Z(i, n._$AS(i, t.values), n, s)), t;
|
|
347
349
|
}
|
|
348
|
-
class
|
|
350
|
+
class fs {
|
|
349
351
|
constructor(t, e) {
|
|
350
352
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
351
353
|
}
|
|
@@ -357,23 +359,23 @@ class gs {
|
|
|
357
359
|
}
|
|
358
360
|
u(t) {
|
|
359
361
|
const { el: { content: e }, parts: s } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ?? M).importNode(e, !0);
|
|
360
|
-
|
|
361
|
-
let r =
|
|
362
|
+
I.currentNode = n;
|
|
363
|
+
let r = I.nextNode(), o = 0, a = 0, l = s[0];
|
|
362
364
|
for (; l !== void 0; ) {
|
|
363
365
|
if (o === l.index) {
|
|
364
366
|
let c;
|
|
365
|
-
l.type === 2 ? c = new
|
|
367
|
+
l.type === 2 ? c = new ct(r, r.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (c = new $s(r, this, t)), this._$AV.push(c), l = s[++a];
|
|
366
368
|
}
|
|
367
|
-
o !== (l == null ? void 0 : l.index) && (r =
|
|
369
|
+
o !== (l == null ? void 0 : l.index) && (r = I.nextNode(), o++);
|
|
368
370
|
}
|
|
369
|
-
return
|
|
371
|
+
return I.currentNode = M, n;
|
|
370
372
|
}
|
|
371
373
|
p(t) {
|
|
372
374
|
let e = 0;
|
|
373
375
|
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
|
374
376
|
}
|
|
375
377
|
}
|
|
376
|
-
class
|
|
378
|
+
class ct {
|
|
377
379
|
get _$AU() {
|
|
378
380
|
var t;
|
|
379
381
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
@@ -393,7 +395,7 @@ class ut {
|
|
|
393
395
|
return this._$AB;
|
|
394
396
|
}
|
|
395
397
|
_$AI(t, e = this) {
|
|
396
|
-
t = Z(this, t, e), ot(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== j && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) :
|
|
398
|
+
t = Z(this, t, e), ot(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== j && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : us(t) ? this.k(t) : this._(t);
|
|
397
399
|
}
|
|
398
400
|
O(t) {
|
|
399
401
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -406,27 +408,27 @@ class ut {
|
|
|
406
408
|
}
|
|
407
409
|
$(t) {
|
|
408
410
|
var r;
|
|
409
|
-
const { values: e, _$litType$: s } = t, n = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el =
|
|
411
|
+
const { values: e, _$litType$: s } = t, n = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = qt.createElement(ai(s.h, s.h[0]), this.options)), s);
|
|
410
412
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === n) this._$AH.p(e);
|
|
411
413
|
else {
|
|
412
|
-
const o = new
|
|
414
|
+
const o = new fs(n, this), a = o.u(this.options);
|
|
413
415
|
o.p(e), this.T(a), this._$AH = o;
|
|
414
416
|
}
|
|
415
417
|
}
|
|
416
418
|
_$AC(t) {
|
|
417
|
-
let e =
|
|
418
|
-
return e === void 0 &&
|
|
419
|
+
let e = Te.get(t.strings);
|
|
420
|
+
return e === void 0 && Te.set(t.strings, e = new qt(t)), e;
|
|
419
421
|
}
|
|
420
422
|
k(t) {
|
|
421
|
-
|
|
423
|
+
ne(this._$AH) || (this._$AH = [], this._$AR());
|
|
422
424
|
const e = this._$AH;
|
|
423
425
|
let s, n = 0;
|
|
424
|
-
for (const r of t) n === e.length ? e.push(s = new
|
|
426
|
+
for (const r of t) n === e.length ? e.push(s = new ct(this.O(rt()), this.O(rt()), this, this.options)) : s = e[n], s._$AI(r), n++;
|
|
425
427
|
n < e.length && (this._$AR(s && s._$AB.nextSibling, n), e.length = n);
|
|
426
428
|
}
|
|
427
429
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
428
430
|
var s;
|
|
429
|
-
for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t
|
|
431
|
+
for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t !== this._$AB; ) {
|
|
430
432
|
const n = t.nextSibling;
|
|
431
433
|
t.remove(), t = n;
|
|
432
434
|
}
|
|
@@ -436,7 +438,7 @@ class ut {
|
|
|
436
438
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
437
439
|
}
|
|
438
440
|
}
|
|
439
|
-
class
|
|
441
|
+
class Tt {
|
|
440
442
|
get tagName() {
|
|
441
443
|
return this.element.tagName;
|
|
442
444
|
}
|
|
@@ -461,7 +463,7 @@ class It {
|
|
|
461
463
|
t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
462
464
|
}
|
|
463
465
|
}
|
|
464
|
-
let
|
|
466
|
+
let ps = class extends Tt {
|
|
465
467
|
constructor() {
|
|
466
468
|
super(...arguments), this.type = 3;
|
|
467
469
|
}
|
|
@@ -469,7 +471,7 @@ let vs = class extends It {
|
|
|
469
471
|
this.element[this.name] = t === p ? void 0 : t;
|
|
470
472
|
}
|
|
471
473
|
};
|
|
472
|
-
class
|
|
474
|
+
class gs extends Tt {
|
|
473
475
|
constructor() {
|
|
474
476
|
super(...arguments), this.type = 4;
|
|
475
477
|
}
|
|
@@ -477,7 +479,7 @@ class $s extends It {
|
|
|
477
479
|
this.element.toggleAttribute(this.name, !!t && t !== p);
|
|
478
480
|
}
|
|
479
481
|
}
|
|
480
|
-
class
|
|
482
|
+
class vs extends Tt {
|
|
481
483
|
constructor(t, e, s, n, r) {
|
|
482
484
|
super(t, e, s, n, r), this.type = 5;
|
|
483
485
|
}
|
|
@@ -491,7 +493,7 @@ class ms extends It {
|
|
|
491
493
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
492
494
|
}
|
|
493
495
|
}
|
|
494
|
-
class
|
|
496
|
+
class $s {
|
|
495
497
|
constructor(t, e, s) {
|
|
496
498
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
497
499
|
}
|
|
@@ -502,14 +504,14 @@ class ys {
|
|
|
502
504
|
Z(this, t);
|
|
503
505
|
}
|
|
504
506
|
}
|
|
505
|
-
const
|
|
506
|
-
|
|
507
|
-
const
|
|
507
|
+
const Ft = st.litHtmlPolyfillSupport;
|
|
508
|
+
Ft == null || Ft(qt, ct), (st.litHtmlVersions ?? (st.litHtmlVersions = [])).push("3.3.1");
|
|
509
|
+
const ms = (i, t, e) => {
|
|
508
510
|
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
509
511
|
let n = s._$litPart$;
|
|
510
512
|
if (n === void 0) {
|
|
511
513
|
const r = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
512
|
-
s._$litPart$ = n = new
|
|
514
|
+
s._$litPart$ = n = new ct(t.insertBefore(rt(), r), r, void 0, e ?? {});
|
|
513
515
|
}
|
|
514
516
|
return n._$AI(i), n;
|
|
515
517
|
};
|
|
@@ -530,7 +532,7 @@ let A = class extends H {
|
|
|
530
532
|
}
|
|
531
533
|
update(t) {
|
|
532
534
|
const e = this.render();
|
|
533
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
535
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ms(e, this.renderRoot, this.renderOptions);
|
|
534
536
|
}
|
|
535
537
|
connectedCallback() {
|
|
536
538
|
var t;
|
|
@@ -544,17 +546,17 @@ let A = class extends H {
|
|
|
544
546
|
return j;
|
|
545
547
|
}
|
|
546
548
|
};
|
|
547
|
-
var
|
|
548
|
-
A._$litElement$ = !0, A.finalized = !0, (
|
|
549
|
-
const
|
|
550
|
-
|
|
551
|
-
(R.litElementVersions ?? (R.litElementVersions = [])).push("4.2.
|
|
549
|
+
var ii;
|
|
550
|
+
A._$litElement$ = !0, A.finalized = !0, (ii = R.litElementHydrateSupport) == null || ii.call(R, { LitElement: A });
|
|
551
|
+
const Bt = R.litElementPolyfillSupport;
|
|
552
|
+
Bt == null || Bt({ LitElement: A });
|
|
553
|
+
(R.litElementVersions ?? (R.litElementVersions = [])).push("4.2.1");
|
|
552
554
|
/**
|
|
553
555
|
* @license
|
|
554
556
|
* Copyright 2017 Google LLC
|
|
555
557
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
556
558
|
*/
|
|
557
|
-
const
|
|
559
|
+
const ys = { attribute: !0, type: String, converter: yt, reflect: !1, hasChanged: se }, bs = (i = ys, t, e) => {
|
|
558
560
|
const { kind: s, metadata: n } = e;
|
|
559
561
|
let r = globalThis.litPropertyMetadata.get(n);
|
|
560
562
|
if (r === void 0 && globalThis.litPropertyMetadata.set(n, r = /* @__PURE__ */ new Map()), s === "setter" && ((i = Object.create(i)).wrapped = !0), r.set(e.name, i), s === "accessor") {
|
|
@@ -576,7 +578,7 @@ const ws = { attribute: !0, type: String, converter: bt, reflect: !1, hasChanged
|
|
|
576
578
|
throw Error("Unsupported decorator location: " + s);
|
|
577
579
|
};
|
|
578
580
|
function w(i) {
|
|
579
|
-
return (t, e) => typeof e == "object" ?
|
|
581
|
+
return (t, e) => typeof e == "object" ? bs(i, t, e) : ((s, n, r) => {
|
|
580
582
|
const o = n.hasOwnProperty(r);
|
|
581
583
|
return n.constructor.createProperty(r, s), o ? Object.getOwnPropertyDescriptor(n, r) : void 0;
|
|
582
584
|
})(i, t, e);
|
|
@@ -594,14 +596,14 @@ function S(i) {
|
|
|
594
596
|
* Copyright 2020 Google LLC
|
|
595
597
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
596
598
|
*/
|
|
597
|
-
const
|
|
599
|
+
const ws = (i) => i.strings === void 0;
|
|
598
600
|
/**
|
|
599
601
|
* @license
|
|
600
602
|
* Copyright 2017 Google LLC
|
|
601
603
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
602
604
|
*/
|
|
603
|
-
const
|
|
604
|
-
let
|
|
605
|
+
const re = { ATTRIBUTE: 1, CHILD: 2 }, oe = (i) => (...t) => ({ _$litDirective$: i, values: t });
|
|
606
|
+
let ci = class {
|
|
605
607
|
constructor(t) {
|
|
606
608
|
}
|
|
607
609
|
get _$AU() {
|
|
@@ -628,45 +630,45 @@ const nt = (i, t) => {
|
|
|
628
630
|
if (e === void 0) return !1;
|
|
629
631
|
for (const n of e) (s = n._$AO) == null || s.call(n, t, !1), nt(n, t);
|
|
630
632
|
return !0;
|
|
631
|
-
},
|
|
633
|
+
}, wt = (i) => {
|
|
632
634
|
let t, e;
|
|
633
635
|
do {
|
|
634
636
|
if ((t = i._$AM) === void 0) break;
|
|
635
637
|
e = t._$AN, e.delete(i), i = t;
|
|
636
638
|
} while ((e == null ? void 0 : e.size) === 0);
|
|
637
|
-
},
|
|
639
|
+
}, ui = (i) => {
|
|
638
640
|
for (let t; t = i._$AM; i = t) {
|
|
639
641
|
let e = t._$AN;
|
|
640
642
|
if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
|
|
641
643
|
else if (e.has(i)) break;
|
|
642
|
-
e.add(i),
|
|
644
|
+
e.add(i), Ss(t);
|
|
643
645
|
}
|
|
644
646
|
};
|
|
645
|
-
function
|
|
646
|
-
this._$AN !== void 0 ? (
|
|
647
|
+
function _s(i) {
|
|
648
|
+
this._$AN !== void 0 ? (wt(this), this._$AM = i, ui(this)) : this._$AM = i;
|
|
647
649
|
}
|
|
648
|
-
function
|
|
650
|
+
function xs(i, t = !1, e = 0) {
|
|
649
651
|
const s = this._$AH, n = this._$AN;
|
|
650
|
-
if (n !== void 0 && n.size !== 0) if (t) if (Array.isArray(s)) for (let r = e; r < s.length; r++) nt(s[r], !1),
|
|
651
|
-
else s != null && (nt(s, !1),
|
|
652
|
+
if (n !== void 0 && n.size !== 0) if (t) if (Array.isArray(s)) for (let r = e; r < s.length; r++) nt(s[r], !1), wt(s[r]);
|
|
653
|
+
else s != null && (nt(s, !1), wt(s));
|
|
652
654
|
else nt(this, i);
|
|
653
655
|
}
|
|
654
|
-
const
|
|
655
|
-
i.type ==
|
|
656
|
+
const Ss = (i) => {
|
|
657
|
+
i.type == re.CHILD && (i._$AP ?? (i._$AP = xs), i._$AQ ?? (i._$AQ = _s));
|
|
656
658
|
};
|
|
657
|
-
class
|
|
659
|
+
class hi extends ci {
|
|
658
660
|
constructor() {
|
|
659
661
|
super(...arguments), this._$AN = void 0;
|
|
660
662
|
}
|
|
661
663
|
_$AT(t, e, s) {
|
|
662
|
-
super._$AT(t, e, s),
|
|
664
|
+
super._$AT(t, e, s), ui(this), this.isConnected = t._$AU;
|
|
663
665
|
}
|
|
664
666
|
_$AO(t, e = !0) {
|
|
665
667
|
var s, n;
|
|
666
|
-
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (n = this.disconnected) == null || n.call(this)), e && (nt(this, t),
|
|
668
|
+
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (n = this.disconnected) == null || n.call(this)), e && (nt(this, t), wt(this));
|
|
667
669
|
}
|
|
668
670
|
setValue(t) {
|
|
669
|
-
if (
|
|
671
|
+
if (ws(this._$Ct)) this._$Ct._$AI(t, this);
|
|
670
672
|
else {
|
|
671
673
|
const e = [...this._$Ct._$AH];
|
|
672
674
|
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
|
@@ -682,10 +684,10 @@ class fi extends hi {
|
|
|
682
684
|
* Copyright 2020 Google LLC
|
|
683
685
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
684
686
|
*/
|
|
685
|
-
const
|
|
686
|
-
let
|
|
687
|
+
const _t = () => new As();
|
|
688
|
+
let As = class {
|
|
687
689
|
};
|
|
688
|
-
const
|
|
690
|
+
const Ht = /* @__PURE__ */ new WeakMap(), xt = oe(class extends hi {
|
|
689
691
|
render(i) {
|
|
690
692
|
return p;
|
|
691
693
|
}
|
|
@@ -697,13 +699,13 @@ const Dt = /* @__PURE__ */ new WeakMap(), St = le(class extends fi {
|
|
|
697
699
|
rt(i) {
|
|
698
700
|
if (this.isConnected || (i = void 0), typeof this.G == "function") {
|
|
699
701
|
const t = this.ht ?? globalThis;
|
|
700
|
-
let e =
|
|
701
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
|
702
|
+
let e = Ht.get(t);
|
|
703
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), Ht.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ht, void 0), e.set(this.G, i), i !== void 0 && this.G.call(this.ht, i);
|
|
702
704
|
} else this.G.value = i;
|
|
703
705
|
}
|
|
704
706
|
get lt() {
|
|
705
707
|
var i, t;
|
|
706
|
-
return typeof this.G == "function" ? (i =
|
|
708
|
+
return typeof this.G == "function" ? (i = Ht.get(this.ht ?? globalThis)) == null ? void 0 : i.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
|
707
709
|
}
|
|
708
710
|
disconnected() {
|
|
709
711
|
this.lt === this.ct && this.rt(void 0);
|
|
@@ -712,23 +714,23 @@ const Dt = /* @__PURE__ */ new WeakMap(), St = le(class extends fi {
|
|
|
712
714
|
this.rt(this.ct);
|
|
713
715
|
}
|
|
714
716
|
});
|
|
715
|
-
var
|
|
716
|
-
return
|
|
717
|
+
var Gt = function(i, t) {
|
|
718
|
+
return Gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, s) {
|
|
717
719
|
e.__proto__ = s;
|
|
718
720
|
} || function(e, s) {
|
|
719
721
|
for (var n in s) Object.prototype.hasOwnProperty.call(s, n) && (e[n] = s[n]);
|
|
720
|
-
},
|
|
722
|
+
}, Gt(i, t);
|
|
721
723
|
};
|
|
722
|
-
function
|
|
724
|
+
function V(i, t) {
|
|
723
725
|
if (typeof t != "function" && t !== null)
|
|
724
726
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
725
|
-
|
|
727
|
+
Gt(i, t);
|
|
726
728
|
function e() {
|
|
727
729
|
this.constructor = i;
|
|
728
730
|
}
|
|
729
731
|
i.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
730
732
|
}
|
|
731
|
-
function
|
|
733
|
+
function ks(i, t, e, s) {
|
|
732
734
|
function n(r) {
|
|
733
735
|
return r instanceof e ? r : new e(function(o) {
|
|
734
736
|
o(r);
|
|
@@ -755,7 +757,7 @@ function Es(i, t, e, s) {
|
|
|
755
757
|
c((s = s.apply(i, t || [])).next());
|
|
756
758
|
});
|
|
757
759
|
}
|
|
758
|
-
function
|
|
760
|
+
function di(i, t) {
|
|
759
761
|
var e = { label: 0, sent: function() {
|
|
760
762
|
if (r[0] & 1) throw r[1];
|
|
761
763
|
return r[1];
|
|
@@ -825,7 +827,7 @@ function X(i) {
|
|
|
825
827
|
};
|
|
826
828
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
827
829
|
}
|
|
828
|
-
function
|
|
830
|
+
function Yt(i, t) {
|
|
829
831
|
var e = typeof Symbol == "function" && i[Symbol.iterator];
|
|
830
832
|
if (!e) return i;
|
|
831
833
|
var s = e.call(i), n, r = [], o;
|
|
@@ -842,7 +844,7 @@ function Zt(i, t) {
|
|
|
842
844
|
}
|
|
843
845
|
return r;
|
|
844
846
|
}
|
|
845
|
-
function
|
|
847
|
+
function Kt(i, t, e) {
|
|
846
848
|
if (e || arguments.length === 2) for (var s = 0, n = t.length, r; s < n; s++)
|
|
847
849
|
(r || !(s in t)) && (r || (r = Array.prototype.slice.call(t, 0, s)), r[s] = t[s]);
|
|
848
850
|
return i.concat(r || Array.prototype.slice.call(t));
|
|
@@ -850,7 +852,7 @@ function Xt(i, t, e) {
|
|
|
850
852
|
function G(i) {
|
|
851
853
|
return this instanceof G ? (this.v = i, this) : new G(i);
|
|
852
854
|
}
|
|
853
|
-
function
|
|
855
|
+
function Cs(i, t, e) {
|
|
854
856
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
855
857
|
var s = e.apply(i, t || []), n, r = [];
|
|
856
858
|
return n = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), a("next"), a("throw"), a("return", o), n[Symbol.asyncIterator] = function() {
|
|
@@ -863,8 +865,8 @@ function Os(i, t, e) {
|
|
|
863
865
|
}
|
|
864
866
|
function a(f, v) {
|
|
865
867
|
s[f] && (n[f] = function(g) {
|
|
866
|
-
return new Promise(function(
|
|
867
|
-
r.push([f, g,
|
|
868
|
+
return new Promise(function(pt, tt) {
|
|
869
|
+
r.push([f, g, pt, tt]) > 1 || l(f, g);
|
|
868
870
|
});
|
|
869
871
|
}, v && (n[f] = v(n[f])));
|
|
870
872
|
}
|
|
@@ -888,7 +890,7 @@ function Os(i, t, e) {
|
|
|
888
890
|
f(v), r.shift(), r.length && l(r[0][0], r[0][1]);
|
|
889
891
|
}
|
|
890
892
|
}
|
|
891
|
-
function
|
|
893
|
+
function Es(i) {
|
|
892
894
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
893
895
|
var t = i[Symbol.asyncIterator], e;
|
|
894
896
|
return t ? t.call(i) : (i = typeof X == "function" ? X(i) : i[Symbol.iterator](), e = {}, s("next"), s("throw"), s("return"), e[Symbol.asyncIterator] = function() {
|
|
@@ -910,13 +912,13 @@ function Ts(i) {
|
|
|
910
912
|
function $(i) {
|
|
911
913
|
return typeof i == "function";
|
|
912
914
|
}
|
|
913
|
-
function
|
|
915
|
+
function fi(i) {
|
|
914
916
|
var t = function(s) {
|
|
915
917
|
Error.call(s), s.stack = new Error().stack;
|
|
916
918
|
}, e = i(t);
|
|
917
919
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
|
918
920
|
}
|
|
919
|
-
var
|
|
921
|
+
var zt = fi(function(i) {
|
|
920
922
|
return function(e) {
|
|
921
923
|
i(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
|
922
924
|
` + e.map(function(s, n) {
|
|
@@ -925,13 +927,13 @@ var Wt = gi(function(i) {
|
|
|
925
927
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
|
926
928
|
};
|
|
927
929
|
});
|
|
928
|
-
function
|
|
930
|
+
function Zt(i, t) {
|
|
929
931
|
if (i) {
|
|
930
932
|
var e = i.indexOf(t);
|
|
931
933
|
0 <= e && i.splice(e, 1);
|
|
932
934
|
}
|
|
933
935
|
}
|
|
934
|
-
var
|
|
936
|
+
var Pt = function() {
|
|
935
937
|
function i(t) {
|
|
936
938
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
937
939
|
}
|
|
@@ -963,7 +965,7 @@ var Lt = function() {
|
|
|
963
965
|
try {
|
|
964
966
|
u();
|
|
965
967
|
} catch (g) {
|
|
966
|
-
r = g instanceof
|
|
968
|
+
r = g instanceof zt ? g.errors : [g];
|
|
967
969
|
}
|
|
968
970
|
var h = this._finalizers;
|
|
969
971
|
if (h) {
|
|
@@ -972,9 +974,9 @@ var Lt = function() {
|
|
|
972
974
|
for (var d = X(h), f = d.next(); !f.done; f = d.next()) {
|
|
973
975
|
var v = f.value;
|
|
974
976
|
try {
|
|
975
|
-
|
|
977
|
+
Pe(v);
|
|
976
978
|
} catch (g) {
|
|
977
|
-
r = r ?? [], g instanceof
|
|
979
|
+
r = r ?? [], g instanceof zt ? r = Kt(Kt([], Yt(r)), Yt(g.errors)) : r.push(g);
|
|
978
980
|
}
|
|
979
981
|
}
|
|
980
982
|
} catch (g) {
|
|
@@ -988,13 +990,13 @@ var Lt = function() {
|
|
|
988
990
|
}
|
|
989
991
|
}
|
|
990
992
|
if (r)
|
|
991
|
-
throw new
|
|
993
|
+
throw new zt(r);
|
|
992
994
|
}
|
|
993
995
|
}, i.prototype.add = function(t) {
|
|
994
996
|
var e;
|
|
995
997
|
if (t && t !== this)
|
|
996
998
|
if (this.closed)
|
|
997
|
-
|
|
999
|
+
Pe(t);
|
|
998
1000
|
else {
|
|
999
1001
|
if (t instanceof i) {
|
|
1000
1002
|
if (t.closed || t._hasParent(this))
|
|
@@ -1011,52 +1013,52 @@ var Lt = function() {
|
|
|
1011
1013
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
|
1012
1014
|
}, i.prototype._removeParent = function(t) {
|
|
1013
1015
|
var e = this._parentage;
|
|
1014
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
|
1016
|
+
e === t ? this._parentage = null : Array.isArray(e) && Zt(e, t);
|
|
1015
1017
|
}, i.prototype.remove = function(t) {
|
|
1016
1018
|
var e = this._finalizers;
|
|
1017
|
-
e &&
|
|
1019
|
+
e && Zt(e, t), t instanceof i && t._removeParent(this);
|
|
1018
1020
|
}, i.EMPTY = function() {
|
|
1019
1021
|
var t = new i();
|
|
1020
1022
|
return t.closed = !0, t;
|
|
1021
1023
|
}(), i;
|
|
1022
|
-
}(),
|
|
1023
|
-
function
|
|
1024
|
-
return i instanceof
|
|
1024
|
+
}(), pi = Pt.EMPTY;
|
|
1025
|
+
function gi(i) {
|
|
1026
|
+
return i instanceof Pt || i && "closed" in i && $(i.remove) && $(i.add) && $(i.unsubscribe);
|
|
1025
1027
|
}
|
|
1026
|
-
function
|
|
1028
|
+
function Pe(i) {
|
|
1027
1029
|
$(i) ? i() : i.unsubscribe();
|
|
1028
1030
|
}
|
|
1029
|
-
var
|
|
1031
|
+
var Os = {
|
|
1030
1032
|
Promise: void 0
|
|
1031
|
-
},
|
|
1033
|
+
}, Ts = {
|
|
1032
1034
|
setTimeout: function(i, t) {
|
|
1033
1035
|
for (var e = [], s = 2; s < arguments.length; s++)
|
|
1034
1036
|
e[s - 2] = arguments[s];
|
|
1035
|
-
return setTimeout.apply(void 0,
|
|
1037
|
+
return setTimeout.apply(void 0, Kt([i, t], Yt(e)));
|
|
1036
1038
|
},
|
|
1037
1039
|
clearTimeout: function(i) {
|
|
1038
1040
|
return clearTimeout(i);
|
|
1039
1041
|
},
|
|
1040
1042
|
delegate: void 0
|
|
1041
1043
|
};
|
|
1042
|
-
function
|
|
1043
|
-
|
|
1044
|
+
function vi(i) {
|
|
1045
|
+
Ts.setTimeout(function() {
|
|
1044
1046
|
throw i;
|
|
1045
1047
|
});
|
|
1046
1048
|
}
|
|
1047
1049
|
function Le() {
|
|
1048
1050
|
}
|
|
1049
|
-
function
|
|
1051
|
+
function mt(i) {
|
|
1050
1052
|
i();
|
|
1051
1053
|
}
|
|
1052
|
-
var
|
|
1053
|
-
|
|
1054
|
+
var ae = function(i) {
|
|
1055
|
+
V(t, i);
|
|
1054
1056
|
function t(e) {
|
|
1055
1057
|
var s = i.call(this) || this;
|
|
1056
|
-
return s.isStopped = !1, e ? (s.destination = e,
|
|
1058
|
+
return s.isStopped = !1, e ? (s.destination = e, gi(e) && e.add(s)) : s.destination = Is, s;
|
|
1057
1059
|
}
|
|
1058
1060
|
return t.create = function(e, s, n) {
|
|
1059
|
-
return new
|
|
1061
|
+
return new Xt(e, s, n);
|
|
1060
1062
|
}, t.prototype.next = function(e) {
|
|
1061
1063
|
this.isStopped || this._next(e);
|
|
1062
1064
|
}, t.prototype.error = function(e) {
|
|
@@ -1080,7 +1082,7 @@ var ce = function(i) {
|
|
|
1080
1082
|
this.unsubscribe();
|
|
1081
1083
|
}
|
|
1082
1084
|
}, t;
|
|
1083
|
-
}(
|
|
1085
|
+
}(Pt), Ps = function() {
|
|
1084
1086
|
function i(t) {
|
|
1085
1087
|
this.partialObserver = t;
|
|
1086
1088
|
}
|
|
@@ -1090,7 +1092,7 @@ var ce = function(i) {
|
|
|
1090
1092
|
try {
|
|
1091
1093
|
e.next(t);
|
|
1092
1094
|
} catch (s) {
|
|
1093
|
-
|
|
1095
|
+
gt(s);
|
|
1094
1096
|
}
|
|
1095
1097
|
}, i.prototype.error = function(t) {
|
|
1096
1098
|
var e = this.partialObserver;
|
|
@@ -1098,50 +1100,50 @@ var ce = function(i) {
|
|
|
1098
1100
|
try {
|
|
1099
1101
|
e.error(t);
|
|
1100
1102
|
} catch (s) {
|
|
1101
|
-
|
|
1103
|
+
gt(s);
|
|
1102
1104
|
}
|
|
1103
1105
|
else
|
|
1104
|
-
|
|
1106
|
+
gt(t);
|
|
1105
1107
|
}, i.prototype.complete = function() {
|
|
1106
1108
|
var t = this.partialObserver;
|
|
1107
1109
|
if (t.complete)
|
|
1108
1110
|
try {
|
|
1109
1111
|
t.complete();
|
|
1110
1112
|
} catch (e) {
|
|
1111
|
-
|
|
1113
|
+
gt(e);
|
|
1112
1114
|
}
|
|
1113
1115
|
}, i;
|
|
1114
|
-
}(),
|
|
1115
|
-
|
|
1116
|
+
}(), Xt = function(i) {
|
|
1117
|
+
V(t, i);
|
|
1116
1118
|
function t(e, s, n) {
|
|
1117
1119
|
var r = i.call(this) || this, o;
|
|
1118
1120
|
return $(e) || !e ? o = {
|
|
1119
1121
|
next: e ?? void 0,
|
|
1120
1122
|
error: s ?? void 0,
|
|
1121
1123
|
complete: n ?? void 0
|
|
1122
|
-
} : o = e, r.destination = new
|
|
1124
|
+
} : o = e, r.destination = new Ps(o), r;
|
|
1123
1125
|
}
|
|
1124
1126
|
return t;
|
|
1125
|
-
}(
|
|
1126
|
-
function
|
|
1127
|
-
|
|
1127
|
+
}(ae);
|
|
1128
|
+
function gt(i) {
|
|
1129
|
+
vi(i);
|
|
1128
1130
|
}
|
|
1129
|
-
function
|
|
1131
|
+
function Ls(i) {
|
|
1130
1132
|
throw i;
|
|
1131
1133
|
}
|
|
1132
|
-
var
|
|
1134
|
+
var Is = {
|
|
1133
1135
|
closed: !0,
|
|
1134
1136
|
next: Le,
|
|
1135
|
-
error:
|
|
1137
|
+
error: Ls,
|
|
1136
1138
|
complete: Le
|
|
1137
|
-
},
|
|
1139
|
+
}, le = function() {
|
|
1138
1140
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1139
1141
|
}();
|
|
1140
|
-
function
|
|
1142
|
+
function $i(i) {
|
|
1141
1143
|
return i;
|
|
1142
1144
|
}
|
|
1143
|
-
function
|
|
1144
|
-
return i.length === 0 ?
|
|
1145
|
+
function Rs(i) {
|
|
1146
|
+
return i.length === 0 ? $i : i.length === 1 ? i[0] : function(e) {
|
|
1145
1147
|
return i.reduce(function(s, n) {
|
|
1146
1148
|
return n(s);
|
|
1147
1149
|
}, e);
|
|
@@ -1155,8 +1157,8 @@ var _ = function() {
|
|
|
1155
1157
|
var e = new i();
|
|
1156
1158
|
return e.source = this, e.operator = t, e;
|
|
1157
1159
|
}, i.prototype.subscribe = function(t, e, s) {
|
|
1158
|
-
var n = this, r =
|
|
1159
|
-
return
|
|
1160
|
+
var n = this, r = Ms(t) ? t : new Xt(t, e, s);
|
|
1161
|
+
return mt(function() {
|
|
1160
1162
|
var o = n, a = o.operator, l = o.source;
|
|
1161
1163
|
r.add(a ? a.call(r, l) : l ? n._subscribe(r) : n._trySubscribe(r));
|
|
1162
1164
|
}), r;
|
|
@@ -1168,8 +1170,8 @@ var _ = function() {
|
|
|
1168
1170
|
}
|
|
1169
1171
|
}, i.prototype.forEach = function(t, e) {
|
|
1170
1172
|
var s = this;
|
|
1171
|
-
return e =
|
|
1172
|
-
var o = new
|
|
1173
|
+
return e = Ie(e), new e(function(n, r) {
|
|
1174
|
+
var o = new Xt({
|
|
1173
1175
|
next: function(a) {
|
|
1174
1176
|
try {
|
|
1175
1177
|
t(a);
|
|
@@ -1185,15 +1187,15 @@ var _ = function() {
|
|
|
1185
1187
|
}, i.prototype._subscribe = function(t) {
|
|
1186
1188
|
var e;
|
|
1187
1189
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
|
1188
|
-
}, i.prototype[
|
|
1190
|
+
}, i.prototype[le] = function() {
|
|
1189
1191
|
return this;
|
|
1190
1192
|
}, i.prototype.pipe = function() {
|
|
1191
1193
|
for (var t = [], e = 0; e < arguments.length; e++)
|
|
1192
1194
|
t[e] = arguments[e];
|
|
1193
|
-
return
|
|
1195
|
+
return Rs(t)(this);
|
|
1194
1196
|
}, i.prototype.toPromise = function(t) {
|
|
1195
1197
|
var e = this;
|
|
1196
|
-
return t =
|
|
1198
|
+
return t = Ie(t), new t(function(s, n) {
|
|
1197
1199
|
var r;
|
|
1198
1200
|
e.subscribe(function(o) {
|
|
1199
1201
|
return r = o;
|
|
@@ -1207,22 +1209,22 @@ var _ = function() {
|
|
|
1207
1209
|
return new i(t);
|
|
1208
1210
|
}, i;
|
|
1209
1211
|
}();
|
|
1210
|
-
function
|
|
1212
|
+
function Ie(i) {
|
|
1211
1213
|
var t;
|
|
1212
|
-
return (t = i ??
|
|
1214
|
+
return (t = i ?? Os.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1213
1215
|
}
|
|
1214
|
-
function
|
|
1216
|
+
function Us(i) {
|
|
1215
1217
|
return i && $(i.next) && $(i.error) && $(i.complete);
|
|
1216
1218
|
}
|
|
1217
|
-
function
|
|
1218
|
-
return i && i instanceof
|
|
1219
|
+
function Ms(i) {
|
|
1220
|
+
return i && i instanceof ae || Us(i) && gi(i);
|
|
1219
1221
|
}
|
|
1220
|
-
function
|
|
1222
|
+
function js(i) {
|
|
1221
1223
|
return $(i == null ? void 0 : i.lift);
|
|
1222
1224
|
}
|
|
1223
|
-
function
|
|
1225
|
+
function Lt(i) {
|
|
1224
1226
|
return function(t) {
|
|
1225
|
-
if (
|
|
1227
|
+
if (js(t))
|
|
1226
1228
|
return t.lift(function(e) {
|
|
1227
1229
|
try {
|
|
1228
1230
|
return i(e, this);
|
|
@@ -1233,11 +1235,11 @@ function Rt(i) {
|
|
|
1233
1235
|
throw new TypeError("Unable to lift unknown Observable type");
|
|
1234
1236
|
};
|
|
1235
1237
|
}
|
|
1236
|
-
function
|
|
1237
|
-
return new
|
|
1238
|
+
function St(i, t, e, s, n) {
|
|
1239
|
+
return new Ns(i, t, e, s, n);
|
|
1238
1240
|
}
|
|
1239
|
-
var
|
|
1240
|
-
|
|
1241
|
+
var Ns = function(i) {
|
|
1242
|
+
V(t, i);
|
|
1241
1243
|
function t(e, s, n, r, o, a) {
|
|
1242
1244
|
var l = i.call(this, e) || this;
|
|
1243
1245
|
return l.onFinalize = o, l.shouldUnsubscribe = a, l._next = s ? function(c) {
|
|
@@ -1271,25 +1273,25 @@ var Bs = function(i) {
|
|
|
1271
1273
|
i.prototype.unsubscribe.call(this), !s && ((e = this.onFinalize) === null || e === void 0 || e.call(this));
|
|
1272
1274
|
}
|
|
1273
1275
|
}, t;
|
|
1274
|
-
}(
|
|
1276
|
+
}(ae), Fs = fi(function(i) {
|
|
1275
1277
|
return function() {
|
|
1276
1278
|
i(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1277
1279
|
};
|
|
1278
|
-
}),
|
|
1279
|
-
|
|
1280
|
+
}), ut = function(i) {
|
|
1281
|
+
V(t, i);
|
|
1280
1282
|
function t() {
|
|
1281
1283
|
var e = i.call(this) || this;
|
|
1282
1284
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
|
1283
1285
|
}
|
|
1284
1286
|
return t.prototype.lift = function(e) {
|
|
1285
|
-
var s = new
|
|
1287
|
+
var s = new Re(this, this);
|
|
1286
1288
|
return s.operator = e, s;
|
|
1287
1289
|
}, t.prototype._throwIfClosed = function() {
|
|
1288
1290
|
if (this.closed)
|
|
1289
|
-
throw new
|
|
1291
|
+
throw new Fs();
|
|
1290
1292
|
}, t.prototype.next = function(e) {
|
|
1291
1293
|
var s = this;
|
|
1292
|
-
|
|
1294
|
+
mt(function() {
|
|
1293
1295
|
var n, r;
|
|
1294
1296
|
if (s._throwIfClosed(), !s.isStopped) {
|
|
1295
1297
|
s.currentObservers || (s.currentObservers = Array.from(s.observers));
|
|
@@ -1311,7 +1313,7 @@ var Bs = function(i) {
|
|
|
1311
1313
|
});
|
|
1312
1314
|
}, t.prototype.error = function(e) {
|
|
1313
1315
|
var s = this;
|
|
1314
|
-
|
|
1316
|
+
mt(function() {
|
|
1315
1317
|
if (s._throwIfClosed(), !s.isStopped) {
|
|
1316
1318
|
s.hasError = s.isStopped = !0, s.thrownError = e;
|
|
1317
1319
|
for (var n = s.observers; n.length; )
|
|
@@ -1320,7 +1322,7 @@ var Bs = function(i) {
|
|
|
1320
1322
|
});
|
|
1321
1323
|
}, t.prototype.complete = function() {
|
|
1322
1324
|
var e = this;
|
|
1323
|
-
|
|
1325
|
+
mt(function() {
|
|
1324
1326
|
if (e._throwIfClosed(), !e.isStopped) {
|
|
1325
1327
|
e.isStopped = !0;
|
|
1326
1328
|
for (var s = e.observers; s.length; )
|
|
@@ -1342,8 +1344,8 @@ var Bs = function(i) {
|
|
|
1342
1344
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
|
1343
1345
|
}, t.prototype._innerSubscribe = function(e) {
|
|
1344
1346
|
var s = this, n = this, r = n.hasError, o = n.isStopped, a = n.observers;
|
|
1345
|
-
return r || o ?
|
|
1346
|
-
s.currentObservers = null,
|
|
1347
|
+
return r || o ? pi : (this.currentObservers = null, a.push(e), new Pt(function() {
|
|
1348
|
+
s.currentObservers = null, Zt(a, e);
|
|
1347
1349
|
}));
|
|
1348
1350
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
|
1349
1351
|
var s = this, n = s.hasError, r = s.thrownError, o = s.isStopped;
|
|
@@ -1352,10 +1354,10 @@ var Bs = function(i) {
|
|
|
1352
1354
|
var e = new _();
|
|
1353
1355
|
return e.source = this, e;
|
|
1354
1356
|
}, t.create = function(e, s) {
|
|
1355
|
-
return new
|
|
1357
|
+
return new Re(e, s);
|
|
1356
1358
|
}, t;
|
|
1357
|
-
}(_),
|
|
1358
|
-
|
|
1359
|
+
}(_), Re = function(i) {
|
|
1360
|
+
V(t, i);
|
|
1359
1361
|
function t(e, s) {
|
|
1360
1362
|
var n = i.call(this) || this;
|
|
1361
1363
|
return n.destination = e, n.source = s, n;
|
|
@@ -1371,10 +1373,10 @@ var Bs = function(i) {
|
|
|
1371
1373
|
(s = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || s === void 0 || s.call(e);
|
|
1372
1374
|
}, t.prototype._subscribe = function(e) {
|
|
1373
1375
|
var s, n;
|
|
1374
|
-
return (n = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(e)) !== null && n !== void 0 ? n :
|
|
1376
|
+
return (n = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(e)) !== null && n !== void 0 ? n : pi;
|
|
1375
1377
|
}, t;
|
|
1376
|
-
}(
|
|
1377
|
-
|
|
1378
|
+
}(ut), mi = function(i) {
|
|
1379
|
+
V(t, i);
|
|
1378
1380
|
function t(e) {
|
|
1379
1381
|
var s = i.call(this) || this;
|
|
1380
1382
|
return s._value = e, s;
|
|
@@ -1396,47 +1398,47 @@ var Bs = function(i) {
|
|
|
1396
1398
|
}, t.prototype.next = function(e) {
|
|
1397
1399
|
i.prototype.next.call(this, this._value = e);
|
|
1398
1400
|
}, t;
|
|
1399
|
-
}(
|
|
1401
|
+
}(ut), Bs = new _(function(i) {
|
|
1400
1402
|
return i.complete();
|
|
1401
1403
|
});
|
|
1402
|
-
function
|
|
1404
|
+
function Hs(i) {
|
|
1403
1405
|
return i && $(i.schedule);
|
|
1404
1406
|
}
|
|
1405
|
-
function
|
|
1407
|
+
function yi(i) {
|
|
1406
1408
|
return i[i.length - 1];
|
|
1407
1409
|
}
|
|
1408
|
-
function
|
|
1409
|
-
return
|
|
1410
|
+
function zs(i) {
|
|
1411
|
+
return Hs(yi(i)) ? i.pop() : void 0;
|
|
1410
1412
|
}
|
|
1411
|
-
function
|
|
1412
|
-
return typeof
|
|
1413
|
+
function Ds(i, t) {
|
|
1414
|
+
return typeof yi(i) == "number" ? i.pop() : t;
|
|
1413
1415
|
}
|
|
1414
|
-
var
|
|
1416
|
+
var bi = function(i) {
|
|
1415
1417
|
return i && typeof i.length == "number" && typeof i != "function";
|
|
1416
1418
|
};
|
|
1417
|
-
function
|
|
1419
|
+
function wi(i) {
|
|
1418
1420
|
return $(i == null ? void 0 : i.then);
|
|
1419
1421
|
}
|
|
1420
|
-
function
|
|
1421
|
-
return $(i[
|
|
1422
|
+
function _i(i) {
|
|
1423
|
+
return $(i[le]);
|
|
1422
1424
|
}
|
|
1423
|
-
function
|
|
1425
|
+
function xi(i) {
|
|
1424
1426
|
return Symbol.asyncIterator && $(i == null ? void 0 : i[Symbol.asyncIterator]);
|
|
1425
1427
|
}
|
|
1426
|
-
function
|
|
1428
|
+
function Si(i) {
|
|
1427
1429
|
return new TypeError("You provided " + (i !== null && typeof i == "object" ? "an invalid object" : "'" + i + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
1428
1430
|
}
|
|
1429
|
-
function
|
|
1431
|
+
function Ws() {
|
|
1430
1432
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
1431
1433
|
}
|
|
1432
|
-
var
|
|
1433
|
-
function
|
|
1434
|
-
return $(i == null ? void 0 : i[
|
|
1434
|
+
var Ai = Ws();
|
|
1435
|
+
function ki(i) {
|
|
1436
|
+
return $(i == null ? void 0 : i[Ai]);
|
|
1435
1437
|
}
|
|
1436
|
-
function
|
|
1437
|
-
return
|
|
1438
|
+
function Ci(i) {
|
|
1439
|
+
return Cs(this, arguments, function() {
|
|
1438
1440
|
var e, s, n, r;
|
|
1439
|
-
return
|
|
1441
|
+
return di(this, function(o) {
|
|
1440
1442
|
switch (o.label) {
|
|
1441
1443
|
case 0:
|
|
1442
1444
|
e = i.getReader(), o.label = 1;
|
|
@@ -1464,53 +1466,53 @@ function Oi(i) {
|
|
|
1464
1466
|
});
|
|
1465
1467
|
});
|
|
1466
1468
|
}
|
|
1467
|
-
function
|
|
1469
|
+
function Ei(i) {
|
|
1468
1470
|
return $(i == null ? void 0 : i.getReader);
|
|
1469
1471
|
}
|
|
1470
|
-
function
|
|
1472
|
+
function J(i) {
|
|
1471
1473
|
if (i instanceof _)
|
|
1472
1474
|
return i;
|
|
1473
1475
|
if (i != null) {
|
|
1474
|
-
if (Si(i))
|
|
1475
|
-
return Ys(i);
|
|
1476
1476
|
if (_i(i))
|
|
1477
|
-
return
|
|
1477
|
+
return qs(i);
|
|
1478
|
+
if (bi(i))
|
|
1479
|
+
return Gs(i);
|
|
1480
|
+
if (wi(i))
|
|
1481
|
+
return Ys(i);
|
|
1478
1482
|
if (xi(i))
|
|
1479
|
-
return
|
|
1480
|
-
if (
|
|
1481
|
-
return
|
|
1483
|
+
return Oi(i);
|
|
1484
|
+
if (ki(i))
|
|
1485
|
+
return Ks(i);
|
|
1482
1486
|
if (Ei(i))
|
|
1483
|
-
return
|
|
1484
|
-
if (Ti(i))
|
|
1485
|
-
return Qs(i);
|
|
1487
|
+
return Zs(i);
|
|
1486
1488
|
}
|
|
1487
|
-
throw
|
|
1489
|
+
throw Si(i);
|
|
1488
1490
|
}
|
|
1489
|
-
function
|
|
1491
|
+
function qs(i) {
|
|
1490
1492
|
return new _(function(t) {
|
|
1491
|
-
var e = i[
|
|
1493
|
+
var e = i[le]();
|
|
1492
1494
|
if ($(e.subscribe))
|
|
1493
1495
|
return e.subscribe(t);
|
|
1494
1496
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
1495
1497
|
});
|
|
1496
1498
|
}
|
|
1497
|
-
function
|
|
1499
|
+
function Gs(i) {
|
|
1498
1500
|
return new _(function(t) {
|
|
1499
1501
|
for (var e = 0; e < i.length && !t.closed; e++)
|
|
1500
1502
|
t.next(i[e]);
|
|
1501
1503
|
t.complete();
|
|
1502
1504
|
});
|
|
1503
1505
|
}
|
|
1504
|
-
function
|
|
1506
|
+
function Ys(i) {
|
|
1505
1507
|
return new _(function(t) {
|
|
1506
1508
|
i.then(function(e) {
|
|
1507
1509
|
t.closed || (t.next(e), t.complete());
|
|
1508
1510
|
}, function(e) {
|
|
1509
1511
|
return t.error(e);
|
|
1510
|
-
}).then(null,
|
|
1512
|
+
}).then(null, vi);
|
|
1511
1513
|
});
|
|
1512
1514
|
}
|
|
1513
|
-
function
|
|
1515
|
+
function Ks(i) {
|
|
1514
1516
|
return new _(function(t) {
|
|
1515
1517
|
var e, s;
|
|
1516
1518
|
try {
|
|
@@ -1531,24 +1533,24 @@ function Xs(i) {
|
|
|
1531
1533
|
t.complete();
|
|
1532
1534
|
});
|
|
1533
1535
|
}
|
|
1534
|
-
function
|
|
1536
|
+
function Oi(i) {
|
|
1535
1537
|
return new _(function(t) {
|
|
1536
|
-
|
|
1538
|
+
Xs(i, t).catch(function(e) {
|
|
1537
1539
|
return t.error(e);
|
|
1538
1540
|
});
|
|
1539
1541
|
});
|
|
1540
1542
|
}
|
|
1541
|
-
function
|
|
1542
|
-
return
|
|
1543
|
+
function Zs(i) {
|
|
1544
|
+
return Oi(Ci(i));
|
|
1543
1545
|
}
|
|
1544
|
-
function
|
|
1546
|
+
function Xs(i, t) {
|
|
1545
1547
|
var e, s, n, r;
|
|
1546
|
-
return
|
|
1548
|
+
return ks(this, void 0, void 0, function() {
|
|
1547
1549
|
var o, a;
|
|
1548
|
-
return
|
|
1550
|
+
return di(this, function(l) {
|
|
1549
1551
|
switch (l.label) {
|
|
1550
1552
|
case 0:
|
|
1551
|
-
l.trys.push([0, 5, 6, 11]), e =
|
|
1553
|
+
l.trys.push([0, 5, 6, 11]), e = Es(i), l.label = 1;
|
|
1552
1554
|
case 1:
|
|
1553
1555
|
return [4, e.next()];
|
|
1554
1556
|
case 2:
|
|
@@ -1587,9 +1589,9 @@ function U(i, t, e, s, n) {
|
|
|
1587
1589
|
if (i.add(r), !n)
|
|
1588
1590
|
return r;
|
|
1589
1591
|
}
|
|
1590
|
-
function
|
|
1591
|
-
return t === void 0 && (t = 0),
|
|
1592
|
-
e.subscribe(
|
|
1592
|
+
function Ti(i, t) {
|
|
1593
|
+
return t === void 0 && (t = 0), Lt(function(e, s) {
|
|
1594
|
+
e.subscribe(St(s, function(n) {
|
|
1593
1595
|
return U(s, i, function() {
|
|
1594
1596
|
return s.next(n);
|
|
1595
1597
|
}, t);
|
|
@@ -1604,20 +1606,20 @@ function Ii(i, t) {
|
|
|
1604
1606
|
}));
|
|
1605
1607
|
});
|
|
1606
1608
|
}
|
|
1607
|
-
function
|
|
1608
|
-
return t === void 0 && (t = 0),
|
|
1609
|
+
function Pi(i, t) {
|
|
1610
|
+
return t === void 0 && (t = 0), Lt(function(e, s) {
|
|
1609
1611
|
s.add(i.schedule(function() {
|
|
1610
1612
|
return e.subscribe(s);
|
|
1611
1613
|
}, t));
|
|
1612
1614
|
});
|
|
1613
1615
|
}
|
|
1614
|
-
function
|
|
1615
|
-
return
|
|
1616
|
+
function Qs(i, t) {
|
|
1617
|
+
return J(i).pipe(Pi(t), Ti(t));
|
|
1616
1618
|
}
|
|
1617
|
-
function
|
|
1618
|
-
return
|
|
1619
|
+
function Vs(i, t) {
|
|
1620
|
+
return J(i).pipe(Pi(t), Ti(t));
|
|
1619
1621
|
}
|
|
1620
|
-
function
|
|
1622
|
+
function Js(i, t) {
|
|
1621
1623
|
return new _(function(e) {
|
|
1622
1624
|
var s = 0;
|
|
1623
1625
|
return t.schedule(function() {
|
|
@@ -1625,11 +1627,11 @@ function en(i, t) {
|
|
|
1625
1627
|
});
|
|
1626
1628
|
});
|
|
1627
1629
|
}
|
|
1628
|
-
function
|
|
1630
|
+
function tn(i, t) {
|
|
1629
1631
|
return new _(function(e) {
|
|
1630
1632
|
var s;
|
|
1631
1633
|
return U(e, t, function() {
|
|
1632
|
-
s = i[
|
|
1634
|
+
s = i[Ai](), U(e, t, function() {
|
|
1633
1635
|
var n, r, o;
|
|
1634
1636
|
try {
|
|
1635
1637
|
n = s.next(), r = n.value, o = n.done;
|
|
@@ -1644,7 +1646,7 @@ function sn(i, t) {
|
|
|
1644
1646
|
};
|
|
1645
1647
|
});
|
|
1646
1648
|
}
|
|
1647
|
-
function
|
|
1649
|
+
function Li(i, t) {
|
|
1648
1650
|
if (!i)
|
|
1649
1651
|
throw new Error("Iterable cannot be null");
|
|
1650
1652
|
return new _(function(e) {
|
|
@@ -1658,93 +1660,93 @@ function Ri(i, t) {
|
|
|
1658
1660
|
});
|
|
1659
1661
|
});
|
|
1660
1662
|
}
|
|
1661
|
-
function
|
|
1662
|
-
return
|
|
1663
|
+
function en(i, t) {
|
|
1664
|
+
return Li(Ci(i), t);
|
|
1663
1665
|
}
|
|
1664
|
-
function
|
|
1666
|
+
function sn(i, t) {
|
|
1665
1667
|
if (i != null) {
|
|
1666
|
-
if (Si(i))
|
|
1667
|
-
return Vs(i, t);
|
|
1668
1668
|
if (_i(i))
|
|
1669
|
-
return
|
|
1669
|
+
return Qs(i, t);
|
|
1670
|
+
if (bi(i))
|
|
1671
|
+
return Js(i, t);
|
|
1672
|
+
if (wi(i))
|
|
1673
|
+
return Vs(i, t);
|
|
1670
1674
|
if (xi(i))
|
|
1675
|
+
return Li(i, t);
|
|
1676
|
+
if (ki(i))
|
|
1671
1677
|
return tn(i, t);
|
|
1672
|
-
if (Ai(i))
|
|
1673
|
-
return Ri(i, t);
|
|
1674
1678
|
if (Ei(i))
|
|
1675
|
-
return
|
|
1676
|
-
if (Ti(i))
|
|
1677
|
-
return nn(i, t);
|
|
1679
|
+
return en(i, t);
|
|
1678
1680
|
}
|
|
1679
|
-
throw
|
|
1681
|
+
throw Si(i);
|
|
1680
1682
|
}
|
|
1681
|
-
function
|
|
1682
|
-
return t ?
|
|
1683
|
+
function nn(i, t) {
|
|
1684
|
+
return t ? sn(i, t) : J(i);
|
|
1683
1685
|
}
|
|
1684
|
-
function
|
|
1685
|
-
return
|
|
1686
|
+
function rn(i, t) {
|
|
1687
|
+
return Lt(function(e, s) {
|
|
1686
1688
|
var n = 0;
|
|
1687
|
-
e.subscribe(
|
|
1689
|
+
e.subscribe(St(s, function(r) {
|
|
1688
1690
|
s.next(i.call(t, r, n++));
|
|
1689
1691
|
}));
|
|
1690
1692
|
});
|
|
1691
1693
|
}
|
|
1692
|
-
function
|
|
1694
|
+
function on(i, t, e, s, n, r, o, a) {
|
|
1693
1695
|
var l = [], c = 0, u = 0, h = !1, d = function() {
|
|
1694
1696
|
h && !l.length && !c && t.complete();
|
|
1695
1697
|
}, f = function(g) {
|
|
1696
1698
|
return c < s ? v(g) : l.push(g);
|
|
1697
1699
|
}, v = function(g) {
|
|
1698
1700
|
c++;
|
|
1699
|
-
var
|
|
1700
|
-
|
|
1701
|
+
var pt = !1;
|
|
1702
|
+
J(e(g, u++)).subscribe(St(t, function(tt) {
|
|
1701
1703
|
t.next(tt);
|
|
1702
1704
|
}, function() {
|
|
1703
|
-
|
|
1705
|
+
pt = !0;
|
|
1704
1706
|
}, void 0, function() {
|
|
1705
|
-
if (
|
|
1707
|
+
if (pt)
|
|
1706
1708
|
try {
|
|
1707
1709
|
c--;
|
|
1708
1710
|
for (var tt = function() {
|
|
1709
|
-
var
|
|
1710
|
-
o || v(
|
|
1711
|
+
var Mt = l.shift();
|
|
1712
|
+
o || v(Mt);
|
|
1711
1713
|
}; l.length && c < s; )
|
|
1712
1714
|
tt();
|
|
1713
1715
|
d();
|
|
1714
|
-
} catch (
|
|
1715
|
-
t.error(
|
|
1716
|
+
} catch (Mt) {
|
|
1717
|
+
t.error(Mt);
|
|
1716
1718
|
}
|
|
1717
1719
|
}));
|
|
1718
1720
|
};
|
|
1719
|
-
return i.subscribe(
|
|
1721
|
+
return i.subscribe(St(t, f, function() {
|
|
1720
1722
|
h = !0, d();
|
|
1721
1723
|
})), function() {
|
|
1722
1724
|
};
|
|
1723
1725
|
}
|
|
1724
|
-
function
|
|
1725
|
-
return e === void 0 && (e = 1 / 0), $(t) ?
|
|
1726
|
-
return
|
|
1726
|
+
function Ii(i, t, e) {
|
|
1727
|
+
return e === void 0 && (e = 1 / 0), $(t) ? Ii(function(s, n) {
|
|
1728
|
+
return rn(function(r, o) {
|
|
1727
1729
|
return t(s, r, n, o);
|
|
1728
|
-
})(
|
|
1729
|
-
}, e) : (typeof t == "number" && (e = t),
|
|
1730
|
-
return
|
|
1730
|
+
})(J(i(s, n)));
|
|
1731
|
+
}, e) : (typeof t == "number" && (e = t), Lt(function(s, n) {
|
|
1732
|
+
return on(s, n, i, e);
|
|
1731
1733
|
}));
|
|
1732
1734
|
}
|
|
1733
|
-
function
|
|
1734
|
-
return i === void 0 && (i = 1 / 0),
|
|
1735
|
+
function an(i) {
|
|
1736
|
+
return i === void 0 && (i = 1 / 0), Ii($i, i);
|
|
1735
1737
|
}
|
|
1736
|
-
function
|
|
1738
|
+
function ln() {
|
|
1737
1739
|
for (var i = [], t = 0; t < arguments.length; t++)
|
|
1738
1740
|
i[t] = arguments[t];
|
|
1739
|
-
var e =
|
|
1740
|
-
return n.length ? n.length === 1 ?
|
|
1741
|
+
var e = zs(i), s = Ds(i, 1 / 0), n = i;
|
|
1742
|
+
return n.length ? n.length === 1 ? J(n[0]) : an(s)(nn(n, e)) : Bs;
|
|
1741
1743
|
}
|
|
1742
|
-
var
|
|
1744
|
+
var cn = Object.defineProperty, un = (i, t, e, s) => {
|
|
1743
1745
|
for (var n = void 0, r = i.length - 1, o; r >= 0; r--)
|
|
1744
1746
|
(o = i[r]) && (n = o(t, e, n) || n);
|
|
1745
|
-
return n &&
|
|
1747
|
+
return n && cn(t, e, n), n;
|
|
1746
1748
|
};
|
|
1747
|
-
const
|
|
1749
|
+
const ge = class ge extends A {
|
|
1748
1750
|
constructor() {
|
|
1749
1751
|
super(...arguments), this.anchor = "BottomRight";
|
|
1750
1752
|
}
|
|
@@ -1756,7 +1758,7 @@ const ve = class ve extends A {
|
|
|
1756
1758
|
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), p;
|
|
1757
1759
|
}
|
|
1758
1760
|
};
|
|
1759
|
-
|
|
1761
|
+
ge.styles = [
|
|
1760
1762
|
B`
|
|
1761
1763
|
:host {
|
|
1762
1764
|
position: fixed;
|
|
@@ -1775,38 +1777,38 @@ ve.styles = [
|
|
|
1775
1777
|
}
|
|
1776
1778
|
`
|
|
1777
1779
|
];
|
|
1778
|
-
let
|
|
1779
|
-
|
|
1780
|
+
let At = ge;
|
|
1781
|
+
un([
|
|
1780
1782
|
w({ attribute: !0 })
|
|
1781
|
-
],
|
|
1782
|
-
const
|
|
1783
|
-
let
|
|
1784
|
-
const
|
|
1783
|
+
], At.prototype, "anchor");
|
|
1784
|
+
const hn = /* @__PURE__ */ new WeakMap();
|
|
1785
|
+
let Ue = 0;
|
|
1786
|
+
const Dt = /* @__PURE__ */ new Map(), Me = /* @__PURE__ */ new WeakSet(), je = () => new Promise((i) => requestAnimationFrame(i)), dn = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Ne = (i, t) => {
|
|
1785
1787
|
const e = i - t;
|
|
1786
1788
|
return e === 0 ? void 0 : e;
|
|
1787
|
-
},
|
|
1789
|
+
}, Fe = (i, t) => {
|
|
1788
1790
|
const e = i / t;
|
|
1789
1791
|
return e === 1 ? void 0 : e;
|
|
1790
|
-
},
|
|
1791
|
-
const e =
|
|
1792
|
+
}, Wt = { left: (i, t) => {
|
|
1793
|
+
const e = Ne(i, t);
|
|
1792
1794
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
|
1793
1795
|
}, top: (i, t) => {
|
|
1794
|
-
const e =
|
|
1796
|
+
const e = Ne(i, t);
|
|
1795
1797
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
|
1796
1798
|
}, width: (i, t) => {
|
|
1797
1799
|
let e;
|
|
1798
1800
|
t === 0 && (t = 1, e = { width: "1px" });
|
|
1799
|
-
const s =
|
|
1801
|
+
const s = Fe(i, t);
|
|
1800
1802
|
return { value: s, overrideFrom: e, transform: s == null || isNaN(s) ? void 0 : `scaleX(${s})` };
|
|
1801
1803
|
}, height: (i, t) => {
|
|
1802
1804
|
let e;
|
|
1803
1805
|
t === 0 && (t = 1, e = { height: "1px" });
|
|
1804
|
-
const s =
|
|
1806
|
+
const s = Fe(i, t);
|
|
1805
1807
|
return { value: s, overrideFrom: e, transform: s == null || isNaN(s) ? void 0 : `scaleY(${s})` };
|
|
1806
|
-
} },
|
|
1807
|
-
class
|
|
1808
|
+
} }, fn = { duration: 333, easing: "ease-in-out" }, pn = ["left", "top", "width", "height", "opacity", "color", "background"], Be = /* @__PURE__ */ new WeakMap();
|
|
1809
|
+
class gn extends hi {
|
|
1808
1810
|
constructor(t) {
|
|
1809
|
-
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type ===
|
|
1811
|
+
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === re.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
|
1810
1812
|
this.createFinished();
|
|
1811
1813
|
}
|
|
1812
1814
|
createFinished() {
|
|
@@ -1823,7 +1825,7 @@ class $n extends fi {
|
|
|
1823
1825
|
return p;
|
|
1824
1826
|
}
|
|
1825
1827
|
getController() {
|
|
1826
|
-
return
|
|
1828
|
+
return hn.get(this.u);
|
|
1827
1829
|
}
|
|
1828
1830
|
isDisabled() {
|
|
1829
1831
|
var t;
|
|
@@ -1832,17 +1834,17 @@ class $n extends fi {
|
|
|
1832
1834
|
update(t, [e]) {
|
|
1833
1835
|
var n;
|
|
1834
1836
|
const s = this.u === void 0;
|
|
1835
|
-
return s && (this.u = (n = t.options) == null ? void 0 : n.host, this.u.addController(this), this.u.updateComplete.then((r) => this.t = !0), this.element = t.element,
|
|
1837
|
+
return s && (this.u = (n = t.options) == null ? void 0 : n.host, this.u.addController(this), this.u.updateComplete.then((r) => this.t = !0), this.element = t.element, Be.set(this.element, this)), this.optionsOrCallback = e, (s || typeof e != "function") && this.p(e), this.render(e);
|
|
1836
1838
|
}
|
|
1837
1839
|
p(t) {
|
|
1838
1840
|
t = t ?? {};
|
|
1839
1841
|
const e = this.getController();
|
|
1840
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
|
1842
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = pn), this.options = t;
|
|
1841
1843
|
}
|
|
1842
1844
|
m() {
|
|
1843
1845
|
const t = {}, e = this.element.getBoundingClientRect(), s = getComputedStyle(this.element);
|
|
1844
1846
|
return this.options.properties.forEach((n) => {
|
|
1845
|
-
const r = e[n] ?? (
|
|
1847
|
+
const r = e[n] ?? (Wt[n] ? void 0 : s[n]), o = Number(r);
|
|
1846
1848
|
t[n] = isNaN(o) ? r + "" : o;
|
|
1847
1849
|
}), t;
|
|
1848
1850
|
}
|
|
@@ -1861,17 +1863,17 @@ class $n extends fi {
|
|
|
1861
1863
|
async hostUpdated() {
|
|
1862
1864
|
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered) return;
|
|
1863
1865
|
let t;
|
|
1864
|
-
this.prepare(), await
|
|
1866
|
+
this.prepare(), await je;
|
|
1865
1867
|
const e = this.O(), s = this.j(this.options.keyframeOptions, e), n = this.m();
|
|
1866
1868
|
if (this.A !== void 0) {
|
|
1867
1869
|
const { from: r, to: o } = this.N(this.A, n, e);
|
|
1868
1870
|
this.log("measured", [this.A, n, r, o]), t = this.calculateKeyframes(r, o);
|
|
1869
1871
|
} else {
|
|
1870
|
-
const r =
|
|
1872
|
+
const r = Dt.get(this.options.inId);
|
|
1871
1873
|
if (r) {
|
|
1872
|
-
|
|
1874
|
+
Dt.delete(this.options.inId);
|
|
1873
1875
|
const { from: o, to: a } = this.N(r, n, e);
|
|
1874
|
-
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t,
|
|
1876
|
+
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Ue++, t.forEach((l) => l.zIndex = Ue);
|
|
1875
1877
|
} else this.options.in && (t = [...this.options.in, {}]);
|
|
1876
1878
|
}
|
|
1877
1879
|
this.animate(t, s);
|
|
@@ -1887,8 +1889,8 @@ class $n extends fi {
|
|
|
1887
1889
|
}
|
|
1888
1890
|
async disconnected() {
|
|
1889
1891
|
var e;
|
|
1890
|
-
if (!this.h || (this.options.id !== void 0 &&
|
|
1891
|
-
if (this.prepare(), await
|
|
1892
|
+
if (!this.h || (this.options.id !== void 0 && Dt.set(this.options.id, this.A), this.options.out === void 0)) return;
|
|
1893
|
+
if (this.prepare(), await je(), (e = this.i) == null ? void 0 : e.isConnected) {
|
|
1892
1894
|
const s = this.o && this.o.parentNode === this.i ? this.o : null;
|
|
1893
1895
|
if (this.i.insertBefore(this.element, s), this.options.stabilizeOut) {
|
|
1894
1896
|
const n = this.m();
|
|
@@ -1914,19 +1916,19 @@ class $n extends fi {
|
|
|
1914
1916
|
O() {
|
|
1915
1917
|
const t = [];
|
|
1916
1918
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
|
1917
|
-
const s =
|
|
1919
|
+
const s = Be.get(e);
|
|
1918
1920
|
s && !s.isDisabled() && s && t.push(s);
|
|
1919
1921
|
}
|
|
1920
1922
|
return t;
|
|
1921
1923
|
}
|
|
1922
1924
|
get isHostRendered() {
|
|
1923
|
-
const t =
|
|
1925
|
+
const t = Me.has(this.u);
|
|
1924
1926
|
return t || this.u.updateComplete.then(() => {
|
|
1925
|
-
|
|
1927
|
+
Me.add(this.u);
|
|
1926
1928
|
}), t;
|
|
1927
1929
|
}
|
|
1928
1930
|
j(t, e = this.O()) {
|
|
1929
|
-
const s = { ...
|
|
1931
|
+
const s = { ...fn };
|
|
1930
1932
|
return e.forEach((n) => Object.assign(s, n.options.keyframeOptions)), Object.assign(s, t), s;
|
|
1931
1933
|
}
|
|
1932
1934
|
N(t, e, s) {
|
|
@@ -1943,8 +1945,8 @@ class $n extends fi {
|
|
|
1943
1945
|
const a = {};
|
|
1944
1946
|
for (const l in e) {
|
|
1945
1947
|
const c = t[l], u = e[l];
|
|
1946
|
-
if (l in
|
|
1947
|
-
const h =
|
|
1948
|
+
if (l in Wt) {
|
|
1949
|
+
const h = Wt[l];
|
|
1948
1950
|
if (c === void 0 || u === void 0) continue;
|
|
1949
1951
|
const d = h(c, u);
|
|
1950
1952
|
d.transform !== void 0 && (a[l] = d.value, o = !0, n.transform = `${n.transform ?? ""} ${d.transform}`, d.overrideFrom !== void 0 && Object.assign(n, d.overrideFrom));
|
|
@@ -1975,16 +1977,16 @@ class $n extends fi {
|
|
|
1975
1977
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
|
1976
1978
|
}
|
|
1977
1979
|
}
|
|
1978
|
-
const
|
|
1980
|
+
const vn = oe(gn), $n = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>' }, mn = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M18 36C15.7909 36 14 34.2091 14 32C14 29.7909 15.7909 28 18 28C20.2091 28 22 29.7909 22 32C22 34.2091 20.2091 36 18 36ZM28 32C28 34.2091 29.7909 36 32 36C34.2091 36 36 34.2091 36 32C36 29.7909 34.2091 28 32 28C29.7909 28 28 29.7909 28 32ZM46 36C43.7909 36 42 34.2091 42 32C42 29.7909 43.7909 28 46 28C48.2091 28 50 29.7909 50 32C50 34.2091 48.2091 36 46 36Z"/></svg>' }, yn = { 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>' };
|
|
1979
1981
|
/**
|
|
1980
1982
|
* @license
|
|
1981
1983
|
* Copyright 2018 Google LLC
|
|
1982
1984
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1983
1985
|
*/
|
|
1984
|
-
const
|
|
1986
|
+
const He = oe(class extends ci {
|
|
1985
1987
|
constructor(i) {
|
|
1986
1988
|
var t;
|
|
1987
|
-
if (super(i), i.type !==
|
|
1989
|
+
if (super(i), i.type !== re.ATTRIBUTE || i.name !== "class" || ((t = i.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.");
|
|
1988
1990
|
}
|
|
1989
1991
|
render(i) {
|
|
1990
1992
|
return " " + Object.keys(i).filter((t) => i[t]).join(" ") + " ";
|
|
@@ -2006,7 +2008,7 @@ const ze = le(class extends hi {
|
|
|
2006
2008
|
}
|
|
2007
2009
|
}), C = (i, t, e) => {
|
|
2008
2010
|
i && e.style.setProperty(t, i);
|
|
2009
|
-
},
|
|
2011
|
+
}, Ri = (i, t) => {
|
|
2010
2012
|
var e, s, n, r, o, a, l, c, u;
|
|
2011
2013
|
C((e = i.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), C(
|
|
2012
2014
|
(s = i.colors) == null ? void 0 : s.textOnPrimaryBackground,
|
|
@@ -2038,14 +2040,14 @@ const ze = le(class extends hi {
|
|
|
2038
2040
|
t
|
|
2039
2041
|
), C((u = i.colors) == null ? void 0 : u.focusColor, "--focus-color", t);
|
|
2040
2042
|
};
|
|
2041
|
-
var
|
|
2043
|
+
var bn = Object.defineProperty, ht = (i, t, e, s) => {
|
|
2042
2044
|
for (var n = void 0, r = i.length - 1, o; r >= 0; r--)
|
|
2043
2045
|
(o = i[r]) && (n = o(t, e, n) || n);
|
|
2044
|
-
return n &&
|
|
2046
|
+
return n && bn(t, e, n), n;
|
|
2045
2047
|
};
|
|
2046
|
-
const
|
|
2048
|
+
const ve = class ve extends A {
|
|
2047
2049
|
constructor() {
|
|
2048
|
-
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef =
|
|
2050
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = _t(), this.widgetActive$ = new mi(!1), this.componentIsDestroyed$ = new ut();
|
|
2049
2051
|
}
|
|
2050
2052
|
async connectedCallback() {
|
|
2051
2053
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
|
@@ -2080,7 +2082,7 @@ const $e = class $e extends A {
|
|
|
2080
2082
|
}
|
|
2081
2083
|
_applyBranding() {
|
|
2082
2084
|
var t;
|
|
2083
|
-
(t = this.application) != null && t.settings &&
|
|
2085
|
+
(t = this.application) != null && t.settings && Ri(this.application.settings.branding, this);
|
|
2084
2086
|
}
|
|
2085
2087
|
async _renderSymbol() {
|
|
2086
2088
|
var a, l, c;
|
|
@@ -2090,7 +2092,7 @@ const $e = class $e extends A {
|
|
|
2090
2092
|
const s = (c = this.application) == null ? void 0 : c.triggerIcon;
|
|
2091
2093
|
if (!s)
|
|
2092
2094
|
return p;
|
|
2093
|
-
const n = async (u) =>
|
|
2095
|
+
const n = async (u) => yn, { type: r, content: o } = s;
|
|
2094
2096
|
switch (r) {
|
|
2095
2097
|
case "Telia": {
|
|
2096
2098
|
const u = await n();
|
|
@@ -2120,11 +2122,11 @@ const $e = class $e extends A {
|
|
|
2120
2122
|
render() {
|
|
2121
2123
|
var t, e, s, n, r, o, a;
|
|
2122
2124
|
return m`<div
|
|
2123
|
-
class=${
|
|
2125
|
+
class=${He({
|
|
2124
2126
|
"trigger-container": !0,
|
|
2125
2127
|
hidden: !this.triggerVisible
|
|
2126
2128
|
})}
|
|
2127
|
-
${
|
|
2129
|
+
${xt(this.containerRef)}
|
|
2128
2130
|
>
|
|
2129
2131
|
${!this.active && ((n = (s = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : s.other) != null && n.showButtonLabel) ? m`
|
|
2130
2132
|
<button
|
|
@@ -2132,9 +2134,9 @@ const $e = class $e extends A {
|
|
|
2132
2134
|
aria-label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
|
2133
2135
|
class="trigger-label"
|
|
2134
2136
|
@click=${this.toggleActive}
|
|
2135
|
-
${
|
|
2137
|
+
${vn({
|
|
2136
2138
|
keyframeOptions: {},
|
|
2137
|
-
in:
|
|
2139
|
+
in: dn,
|
|
2138
2140
|
stabilizeOut: !0,
|
|
2139
2141
|
skipInitial: !1
|
|
2140
2142
|
})}
|
|
@@ -2146,7 +2148,7 @@ const $e = class $e extends A {
|
|
|
2146
2148
|
<button
|
|
2147
2149
|
type="button"
|
|
2148
2150
|
aria-label="${((a = (o = (r = this.application) == null ? void 0 : r.settings) == null ? void 0 : o.branding.other) == null ? void 0 : a.buttonLabelText) ?? "Widget trigger"}"
|
|
2149
|
-
class=${
|
|
2151
|
+
class=${He({
|
|
2150
2152
|
trigger: !0,
|
|
2151
2153
|
active: this.active,
|
|
2152
2154
|
rendered: this.loaded
|
|
@@ -2185,7 +2187,7 @@ const $e = class $e extends A {
|
|
|
2185
2187
|
</div>`;
|
|
2186
2188
|
}
|
|
2187
2189
|
};
|
|
2188
|
-
|
|
2190
|
+
ve.styles = [
|
|
2189
2191
|
B`
|
|
2190
2192
|
:host {
|
|
2191
2193
|
--voca-rem-multiplier: 0.625;
|
|
@@ -2317,28 +2319,28 @@ $e.styles = [
|
|
|
2317
2319
|
}
|
|
2318
2320
|
`
|
|
2319
2321
|
];
|
|
2320
|
-
let E =
|
|
2321
|
-
|
|
2322
|
+
let E = ve;
|
|
2323
|
+
ht([
|
|
2322
2324
|
w({ attribute: !1 })
|
|
2323
2325
|
], E.prototype, "application");
|
|
2324
|
-
|
|
2326
|
+
ht([
|
|
2325
2327
|
S()
|
|
2326
2328
|
], E.prototype, "active");
|
|
2327
|
-
|
|
2329
|
+
ht([
|
|
2328
2330
|
S()
|
|
2329
2331
|
], E.prototype, "triggerVisible");
|
|
2330
|
-
|
|
2332
|
+
ht([
|
|
2331
2333
|
S()
|
|
2332
2334
|
], E.prototype, "loaded");
|
|
2333
|
-
|
|
2335
|
+
ht([
|
|
2334
2336
|
S()
|
|
2335
2337
|
], E.prototype, "icon");
|
|
2336
|
-
var
|
|
2338
|
+
var wn = Object.defineProperty, L = (i, t, e, s) => {
|
|
2337
2339
|
for (var n = void 0, r = i.length - 1, o; r >= 0; r--)
|
|
2338
2340
|
(o = i[r]) && (n = o(t, e, n) || n);
|
|
2339
|
-
return n &&
|
|
2341
|
+
return n && wn(t, e, n), n;
|
|
2340
2342
|
};
|
|
2341
|
-
const
|
|
2343
|
+
const Ui = (i) => {
|
|
2342
2344
|
const e = class e extends i {
|
|
2343
2345
|
constructor() {
|
|
2344
2346
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
|
@@ -2379,52 +2381,52 @@ const ji = (i) => {
|
|
|
2379
2381
|
`
|
|
2380
2382
|
];
|
|
2381
2383
|
let t = e;
|
|
2382
|
-
return
|
|
2384
|
+
return L([
|
|
2383
2385
|
w()
|
|
2384
|
-
], t.prototype, "properties"),
|
|
2386
|
+
], t.prototype, "properties"), L([
|
|
2385
2387
|
w()
|
|
2386
|
-
], t.prototype, "context"),
|
|
2388
|
+
], t.prototype, "context"), L([
|
|
2387
2389
|
w()
|
|
2388
|
-
], t.prototype, "layout"),
|
|
2390
|
+
], t.prototype, "layout"), L([
|
|
2389
2391
|
w()
|
|
2390
|
-
], t.prototype, "name"),
|
|
2392
|
+
], t.prototype, "name"), L([
|
|
2391
2393
|
w()
|
|
2392
|
-
], t.prototype, "type"),
|
|
2394
|
+
], t.prototype, "type"), L([
|
|
2393
2395
|
w({ attribute: !1 })
|
|
2394
|
-
], t.prototype, "application"),
|
|
2396
|
+
], t.prototype, "application"), L([
|
|
2395
2397
|
w({ attribute: !1 })
|
|
2396
2398
|
], t.prototype, "parent"), t;
|
|
2397
|
-
},
|
|
2399
|
+
}, $e = class $e extends Ui(A) {
|
|
2398
2400
|
render() {
|
|
2399
2401
|
return m`Non resolved component`;
|
|
2400
2402
|
}
|
|
2401
2403
|
};
|
|
2402
|
-
|
|
2404
|
+
$e.styles = [
|
|
2403
2405
|
B`
|
|
2404
2406
|
:host {
|
|
2405
2407
|
display: block;
|
|
2406
2408
|
}
|
|
2407
2409
|
`
|
|
2408
2410
|
];
|
|
2409
|
-
let
|
|
2411
|
+
let Qt = $e;
|
|
2410
2412
|
/**
|
|
2411
2413
|
* @license
|
|
2412
2414
|
* Copyright 2021 Google LLC
|
|
2413
2415
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2414
2416
|
*/
|
|
2415
|
-
function*
|
|
2417
|
+
function* _n(i, t) {
|
|
2416
2418
|
if (i !== void 0) {
|
|
2417
2419
|
let e = 0;
|
|
2418
2420
|
for (const s of i) yield t(s, e++);
|
|
2419
2421
|
}
|
|
2420
2422
|
}
|
|
2421
|
-
var
|
|
2423
|
+
var ce = /* @__PURE__ */ ((i) => (i.Inline = "inline", i.Trigger = "trigger", i))(ce || {}), z = /* @__PURE__ */ ((i) => (i.NonAuthenticated = "non-authenticated", i.Authenticating = "authenticating", i.Authenticated = "authenticated", i.ChatEnded = "chat-ended", i))(z || {});
|
|
2422
2424
|
/**
|
|
2423
2425
|
* @license
|
|
2424
2426
|
* Copyright 2021 Google LLC
|
|
2425
2427
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2426
2428
|
*/
|
|
2427
|
-
let
|
|
2429
|
+
let xn = class extends Event {
|
|
2428
2430
|
constructor(t, e, s, n) {
|
|
2429
2431
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e, this.callback = s, this.subscribe = n ?? !1;
|
|
2430
2432
|
}
|
|
@@ -2439,7 +2441,7 @@ let An = class extends Event {
|
|
|
2439
2441
|
* Copyright 2021 Google LLC
|
|
2440
2442
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2441
2443
|
*/
|
|
2442
|
-
class
|
|
2444
|
+
class Sn {
|
|
2443
2445
|
get value() {
|
|
2444
2446
|
return this.o;
|
|
2445
2447
|
}
|
|
@@ -2472,12 +2474,12 @@ class kn {
|
|
|
2472
2474
|
* Copyright 2021 Google LLC
|
|
2473
2475
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2474
2476
|
*/
|
|
2475
|
-
let
|
|
2477
|
+
let An = class extends Event {
|
|
2476
2478
|
constructor(t, e) {
|
|
2477
2479
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e;
|
|
2478
2480
|
}
|
|
2479
2481
|
};
|
|
2480
|
-
class
|
|
2482
|
+
class ze extends Sn {
|
|
2481
2483
|
constructor(t, e, s) {
|
|
2482
2484
|
var n, r;
|
|
2483
2485
|
super(e.context !== void 0 ? e.initialValue : s), this.onContextRequest = (o) => {
|
|
@@ -2487,7 +2489,7 @@ class De extends kn {
|
|
|
2487
2489
|
}, this.onProviderRequest = (o) => {
|
|
2488
2490
|
if (o.context !== this.context || (o.contextTarget ?? o.composedPath()[0]) === this.host) return;
|
|
2489
2491
|
const a = /* @__PURE__ */ new Set();
|
|
2490
|
-
for (const [l, { consumerHost: c }] of this.subscriptions) a.has(l) || (a.add(l), c.dispatchEvent(new
|
|
2492
|
+
for (const [l, { consumerHost: c }] of this.subscriptions) a.has(l) || (a.add(l), c.dispatchEvent(new xn(this.context, c, l, !0)));
|
|
2491
2493
|
o.stopPropagation();
|
|
2492
2494
|
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (r = (n = this.host).addController) == null || r.call(n, this);
|
|
2493
2495
|
}
|
|
@@ -2495,7 +2497,7 @@ class De extends kn {
|
|
|
2495
2497
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
2496
2498
|
}
|
|
2497
2499
|
hostConnected() {
|
|
2498
|
-
this.host.dispatchEvent(new
|
|
2500
|
+
this.host.dispatchEvent(new An(this.context, this.host));
|
|
2499
2501
|
}
|
|
2500
2502
|
}
|
|
2501
2503
|
/**
|
|
@@ -2503,7 +2505,7 @@ class De extends kn {
|
|
|
2503
2505
|
* Copyright 2017 Google LLC
|
|
2504
2506
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2505
2507
|
*/
|
|
2506
|
-
function
|
|
2508
|
+
function kn({ context: i }) {
|
|
2507
2509
|
return (t, e) => {
|
|
2508
2510
|
const s = /* @__PURE__ */ new WeakMap();
|
|
2509
2511
|
if (typeof e == "object") return { get() {
|
|
@@ -2511,11 +2513,11 @@ function En({ context: i }) {
|
|
|
2511
2513
|
}, set(n) {
|
|
2512
2514
|
return s.get(this).setValue(n), t.set.call(this, n);
|
|
2513
2515
|
}, init(n) {
|
|
2514
|
-
return s.set(this, new
|
|
2516
|
+
return s.set(this, new ze(this, { context: i, initialValue: n })), n;
|
|
2515
2517
|
} };
|
|
2516
2518
|
{
|
|
2517
2519
|
t.constructor.addInitializer((o) => {
|
|
2518
|
-
s.set(o, new
|
|
2520
|
+
s.set(o, new ze(o, { context: i }));
|
|
2519
2521
|
});
|
|
2520
2522
|
const n = Object.getOwnPropertyDescriptor(t, e);
|
|
2521
2523
|
let r;
|
|
@@ -2536,14 +2538,14 @@ function En({ context: i }) {
|
|
|
2536
2538
|
}
|
|
2537
2539
|
};
|
|
2538
2540
|
}
|
|
2539
|
-
var
|
|
2541
|
+
var Cn = Object.defineProperty, Mi = (i, t, e, s) => {
|
|
2540
2542
|
for (var n = void 0, r = i.length - 1, o; r >= 0; r--)
|
|
2541
2543
|
(o = i[r]) && (n = o(t, e, n) || n);
|
|
2542
|
-
return n &&
|
|
2544
|
+
return n && Cn(t, e, n), n;
|
|
2543
2545
|
};
|
|
2544
|
-
const
|
|
2546
|
+
const En = "application", me = class me extends A {
|
|
2545
2547
|
constructor() {
|
|
2546
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
|
2548
|
+
super(...arguments), this.nodes = [], this.wrapperRef = _t(), this.fullscreen = !1, this.isReady = new mi(!1);
|
|
2547
2549
|
}
|
|
2548
2550
|
addChild(t) {
|
|
2549
2551
|
t.parent = this, this.nodes.push(t);
|
|
@@ -2552,7 +2554,7 @@ const Tn = "application", ye = class ye extends A {
|
|
|
2552
2554
|
if (!this.wrapperRef.value)
|
|
2553
2555
|
return;
|
|
2554
2556
|
const t = this.application.settings;
|
|
2555
|
-
t != null && t.branding &&
|
|
2557
|
+
t != null && t.branding && Ri(t.branding, this.wrapperRef.value);
|
|
2556
2558
|
}
|
|
2557
2559
|
applyStyles() {
|
|
2558
2560
|
if (!this.wrapperRef.value)
|
|
@@ -2568,12 +2570,12 @@ const Tn = "application", ye = class ye extends A {
|
|
|
2568
2570
|
render() {
|
|
2569
2571
|
var s, n;
|
|
2570
2572
|
const t = this.application.settings.components.conversation;
|
|
2571
|
-
return ((n = (s = t == null ? void 0 : t.properties) == null ? void 0 : s.chat) == null ? void 0 : n.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy ===
|
|
2572
|
-
${
|
|
2573
|
+
return ((n = (s = t == null ? void 0 : t.properties) == null ? void 0 : s.chat) == null ? void 0 : n.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === ce.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")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), m`<div class="widget-container" ${xt(this.wrapperRef)}>
|
|
2574
|
+
${_n(this.nodes, (r) => r)}
|
|
2573
2575
|
</div>`;
|
|
2574
2576
|
}
|
|
2575
2577
|
};
|
|
2576
|
-
|
|
2578
|
+
me.styles = B`
|
|
2577
2579
|
:host {
|
|
2578
2580
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
|
2579
2581
|
--spacing-xs: 0.2rem;
|
|
@@ -2739,59 +2741,20 @@ ye.styles = B`
|
|
|
2739
2741
|
animation: none;
|
|
2740
2742
|
}
|
|
2741
2743
|
`;
|
|
2742
|
-
let
|
|
2743
|
-
|
|
2744
|
+
let at = me;
|
|
2745
|
+
Mi([
|
|
2744
2746
|
w({ attribute: !0 })
|
|
2745
|
-
],
|
|
2746
|
-
|
|
2747
|
+
], at.prototype, "fullscreen");
|
|
2748
|
+
Mi([
|
|
2747
2749
|
w({ attribute: !1 }),
|
|
2748
|
-
|
|
2749
|
-
],
|
|
2750
|
-
|
|
2751
|
-
// TODO:
|
|
2752
|
-
// private static endpoint = 'http://localhost:5299/api'; // TODO:
|
|
2753
|
-
constructor(t = Pt.endpoint) {
|
|
2754
|
-
this._endpoint = t;
|
|
2755
|
-
}
|
|
2756
|
-
async getSite(t) {
|
|
2757
|
-
const s = await (await fetch(t)).json();
|
|
2758
|
-
return s ? {
|
|
2759
|
-
id: s.id,
|
|
2760
|
-
triggers: s.triggers || [],
|
|
2761
|
-
apps: (s.widgets || []).map((n) => {
|
|
2762
|
-
let r = at.Trigger;
|
|
2763
|
-
n.renderStrategy.toLowerCase() === "inline" && (r = at.Inline);
|
|
2764
|
-
const o = n.widgetId ? n.widgetId : n.id, a = typeof n.autoActivate == "boolean" ? n.autoActivate : !1, l = typeof n.anchor == "string" ? n.anchor : "BottomRight", c = typeof n.triggerIcon == "string" ? n.triggerIcon : "question";
|
|
2765
|
-
return {
|
|
2766
|
-
id: o,
|
|
2767
|
-
widgetId: o,
|
|
2768
|
-
renderStrategy: r,
|
|
2769
|
-
autoActivate: a,
|
|
2770
|
-
anchor: l,
|
|
2771
|
-
triggerIcon: {
|
|
2772
|
-
type: "Telia",
|
|
2773
|
-
content: c
|
|
2774
|
-
}
|
|
2775
|
-
};
|
|
2776
|
-
})
|
|
2777
|
-
} : null;
|
|
2778
|
-
}
|
|
2779
|
-
async getWidget(t) {
|
|
2780
|
-
const s = await (await fetch(`${this._endpoint}/widget/${t}`)).json();
|
|
2781
|
-
return s ? {
|
|
2782
|
-
name: s.name,
|
|
2783
|
-
config: JSON.parse(s.configuration)
|
|
2784
|
-
} : null;
|
|
2785
|
-
}
|
|
2786
|
-
};
|
|
2787
|
-
Pt.endpoint = "https://widgets.ace.teliacompany.net/api";
|
|
2788
|
-
let We = Pt;
|
|
2789
|
-
var Pn = Object.defineProperty, he = (i, t, e, s) => {
|
|
2750
|
+
kn({ context: En })
|
|
2751
|
+
], at.prototype, "application");
|
|
2752
|
+
var On = Object.defineProperty, ue = (i, t, e, s) => {
|
|
2790
2753
|
for (var n = void 0, r = i.length - 1, o; r >= 0; r--)
|
|
2791
2754
|
(o = i[r]) && (n = o(t, e, n) || n);
|
|
2792
|
-
return n &&
|
|
2755
|
+
return n && On(t, e, n), n;
|
|
2793
2756
|
};
|
|
2794
|
-
const
|
|
2757
|
+
const ye = class ye extends A {
|
|
2795
2758
|
constructor() {
|
|
2796
2759
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
|
2797
2760
|
}
|
|
@@ -2816,34 +2779,34 @@ const be = class be extends A {
|
|
|
2816
2779
|
render() {
|
|
2817
2780
|
if (!this.widget || this.status !== "activated")
|
|
2818
2781
|
return p;
|
|
2819
|
-
if (this.widget.renderStrategy ===
|
|
2782
|
+
if (this.widget.renderStrategy === ce.Trigger) {
|
|
2820
2783
|
const t = new E();
|
|
2821
2784
|
return t.application = this.widget, t;
|
|
2822
2785
|
}
|
|
2823
2786
|
return this.widget.render();
|
|
2824
2787
|
}
|
|
2825
2788
|
};
|
|
2826
|
-
|
|
2789
|
+
ye.styles = [
|
|
2827
2790
|
B`
|
|
2828
2791
|
:host {
|
|
2829
2792
|
display: block;
|
|
2830
2793
|
}
|
|
2831
2794
|
`
|
|
2832
2795
|
];
|
|
2833
|
-
let Q =
|
|
2834
|
-
|
|
2796
|
+
let Q = ye;
|
|
2797
|
+
ue([
|
|
2835
2798
|
w({ attribute: !0 })
|
|
2836
2799
|
], Q.prototype, "name");
|
|
2837
|
-
|
|
2800
|
+
ue([
|
|
2838
2801
|
S()
|
|
2839
2802
|
], Q.prototype, "widget");
|
|
2840
|
-
|
|
2803
|
+
ue([
|
|
2841
2804
|
S()
|
|
2842
2805
|
], Q.prototype, "status");
|
|
2843
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
|
2806
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", At);
|
|
2844
2807
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", E);
|
|
2845
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
|
2846
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
|
2808
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Qt);
|
|
2809
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", at);
|
|
2847
2810
|
customElements.get("ace-widget") || customElements.define("ace-widget", Q);
|
|
2848
2811
|
const D = {
|
|
2849
2812
|
allRenderFn: !1,
|
|
@@ -2929,8 +2892,8 @@ const D = {
|
|
|
2929
2892
|
transformTagName: !1,
|
|
2930
2893
|
attachStyles: !0
|
|
2931
2894
|
};
|
|
2932
|
-
let W,
|
|
2933
|
-
const
|
|
2895
|
+
let W, ji, It, Ni = !1, kt = !1, he = !1, b = !1, De = null, Vt = !1;
|
|
2896
|
+
const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, Fi = Rt.HTMLElement || class {
|
|
2934
2897
|
}, y = {
|
|
2935
2898
|
$flags$: 0,
|
|
2936
2899
|
$resourcesUrl$: "",
|
|
@@ -2939,7 +2902,7 @@ const Mt = typeof window < "u" ? window : {}, k = Mt.document || { head: {} }, H
|
|
|
2939
2902
|
ael: (i, t, e, s) => i.addEventListener(t, e, s),
|
|
2940
2903
|
rel: (i, t, e, s) => i.removeEventListener(t, e, s),
|
|
2941
2904
|
ce: (i, t) => new CustomEvent(i, t)
|
|
2942
|
-
},
|
|
2905
|
+
}, Tn = /* @__PURE__ */ (() => {
|
|
2943
2906
|
let i = !1;
|
|
2944
2907
|
try {
|
|
2945
2908
|
k.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
|
@@ -2950,47 +2913,47 @@ const Mt = typeof window < "u" ? window : {}, k = Mt.document || { head: {} }, H
|
|
|
2950
2913
|
} catch {
|
|
2951
2914
|
}
|
|
2952
2915
|
return i;
|
|
2953
|
-
})(),
|
|
2916
|
+
})(), Pn = (i) => Promise.resolve(i), Ln = /* @__PURE__ */ (() => {
|
|
2954
2917
|
try {
|
|
2955
2918
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
|
2956
2919
|
} catch {
|
|
2957
2920
|
}
|
|
2958
2921
|
return !1;
|
|
2959
|
-
})(),
|
|
2922
|
+
})(), Bi = (i, t, e, s) => {
|
|
2960
2923
|
e && e.map(([n, r, o]) => {
|
|
2961
|
-
const a =
|
|
2924
|
+
const a = Rn(i, n), l = In(t, o), c = Un(n);
|
|
2962
2925
|
y.ael(a, r, l, c), (t.$rmListeners$ = t.$rmListeners$ || []).push(() => y.rel(a, r, l, c));
|
|
2963
2926
|
});
|
|
2964
|
-
},
|
|
2927
|
+
}, In = (i, t) => (e) => {
|
|
2965
2928
|
try {
|
|
2966
2929
|
D.lazyLoad || i.$hostElement$[t](e);
|
|
2967
2930
|
} catch (s) {
|
|
2968
|
-
|
|
2931
|
+
dt(s);
|
|
2969
2932
|
}
|
|
2970
|
-
},
|
|
2933
|
+
}, Rn = (i, t) => t & 4 ? k : t & 8 ? Rt : t & 16 ? k.body : i, Un = (i) => Tn ? {
|
|
2971
2934
|
passive: (i & 1) !== 0,
|
|
2972
2935
|
capture: (i & 2) !== 0
|
|
2973
|
-
} : (i & 2) !== 0,
|
|
2974
|
-
},
|
|
2975
|
-
let s =
|
|
2976
|
-
|
|
2977
|
-
},
|
|
2978
|
-
let n =
|
|
2936
|
+
} : (i & 2) !== 0, We = "http://www.w3.org/1999/xlink", N = (i, t = "") => () => {
|
|
2937
|
+
}, qe = /* @__PURE__ */ new WeakMap(), Mn = (i, t, e) => {
|
|
2938
|
+
let s = Ot.get(i);
|
|
2939
|
+
Ln && e ? (s = s || new CSSStyleSheet(), s.replace(t)) : s = t, Ot.set(i, s);
|
|
2940
|
+
}, jn = (i, t, e, s) => {
|
|
2941
|
+
let n = Hi(t, e), r = Ot.get(n);
|
|
2979
2942
|
if (i = i.nodeType === 11 ? i : k, r)
|
|
2980
2943
|
if (typeof r == "string") {
|
|
2981
2944
|
i = i.head || i;
|
|
2982
|
-
let o =
|
|
2983
|
-
o ||
|
|
2945
|
+
let o = qe.get(i), a;
|
|
2946
|
+
o || qe.set(i, o = /* @__PURE__ */ new Set()), o.has(n) || (a = k.createElement("style"), a.innerHTML = r, i.insertBefore(a, i.querySelector("link")), o && o.add(n));
|
|
2984
2947
|
} else i.adoptedStyleSheets.includes(r) || (i.adoptedStyleSheets = [...i.adoptedStyleSheets, r]);
|
|
2985
2948
|
return n;
|
|
2986
|
-
},
|
|
2987
|
-
const t = i.$cmpMeta$, e = i.$hostElement$, s = t.$flags$, n = N("attachStyles", t.$tagName$), r =
|
|
2949
|
+
}, Nn = (i) => {
|
|
2950
|
+
const t = i.$cmpMeta$, e = i.$hostElement$, s = t.$flags$, n = N("attachStyles", t.$tagName$), r = jn(e.shadowRoot ? e.shadowRoot : e.getRootNode(), t, i.$modeName$);
|
|
2988
2951
|
s & 10 && (e["s-sc"] = r, e.classList.add(r + "-h"), s & 2 && e.classList.add(r + "-s")), n();
|
|
2989
|
-
},
|
|
2952
|
+
}, Hi = (i, t) => "sc-" + (t && i.$flags$ & 32 ? i.$tagName$ + "-" + t : i.$tagName$), Fn = (i) => fr.map((t) => t(i)).find((t) => !!t), Ge = {}, Bn = "http://www.w3.org/2000/svg", Hn = "http://www.w3.org/1999/xhtml", zn = (i) => i != null, de = (i) => (i = typeof i, i === "object" || i === "function"), Y = (i, t, ...e) => {
|
|
2990
2953
|
let s = null, n = null, r = null, o = !1, a = !1, l = [];
|
|
2991
2954
|
const c = (h) => {
|
|
2992
2955
|
for (let d = 0; d < h.length; d++)
|
|
2993
|
-
s = h[d], Array.isArray(s) ? c(s) : s != null && typeof s != "boolean" && ((o = typeof i != "function" && !
|
|
2956
|
+
s = h[d], Array.isArray(s) ? c(s) : s != null && typeof s != "boolean" && ((o = typeof i != "function" && !de(s)) && (s = String(s)), o && a ? l[l.length - 1].$text$ += s : l.push(o ? Ct(null, s) : s), a = o);
|
|
2994
2957
|
};
|
|
2995
2958
|
if (c(e), t) {
|
|
2996
2959
|
t.key && (n = t.key), t.name && (r = t.name);
|
|
@@ -3000,10 +2963,10 @@ const Mt = typeof window < "u" ? window : {}, k = Mt.document || { head: {} }, H
|
|
|
3000
2963
|
}
|
|
3001
2964
|
}
|
|
3002
2965
|
if (typeof i == "function")
|
|
3003
|
-
return i(t === null ? {} : t, l,
|
|
3004
|
-
const u =
|
|
2966
|
+
return i(t === null ? {} : t, l, Wn);
|
|
2967
|
+
const u = Ct(i, null);
|
|
3005
2968
|
return u.$attrs$ = t, l.length > 0 && (u.$children$ = l), u.$key$ = n, u.$name$ = r, u;
|
|
3006
|
-
},
|
|
2969
|
+
}, Ct = (i, t) => {
|
|
3007
2970
|
const e = {
|
|
3008
2971
|
$flags$: 0,
|
|
3009
2972
|
$tag$: i,
|
|
@@ -3012,28 +2975,28 @@ const Mt = typeof window < "u" ? window : {}, k = Mt.document || { head: {} }, H
|
|
|
3012
2975
|
$children$: null
|
|
3013
2976
|
};
|
|
3014
2977
|
return e.$attrs$ = null, e.$key$ = null, e.$name$ = null, e;
|
|
3015
|
-
},
|
|
3016
|
-
forEach: (i, t) => i.map(
|
|
3017
|
-
map: (i, t) => i.map(
|
|
3018
|
-
},
|
|
2978
|
+
}, fe = {}, Dn = (i) => i && i.$tag$ === fe, Wn = {
|
|
2979
|
+
forEach: (i, t) => i.map(Ye).forEach(t),
|
|
2980
|
+
map: (i, t) => i.map(Ye).map(t).map(qn)
|
|
2981
|
+
}, Ye = (i) => ({
|
|
3019
2982
|
vattrs: i.$attrs$,
|
|
3020
2983
|
vchildren: i.$children$,
|
|
3021
2984
|
vkey: i.$key$,
|
|
3022
2985
|
vname: i.$name$,
|
|
3023
2986
|
vtag: i.$tag$,
|
|
3024
2987
|
vtext: i.$text$
|
|
3025
|
-
}),
|
|
2988
|
+
}), qn = (i) => {
|
|
3026
2989
|
if (typeof i.vtag == "function") {
|
|
3027
2990
|
const e = Object.assign({}, i.vattrs);
|
|
3028
2991
|
return i.vkey && (e.key = i.vkey), i.vname && (e.name = i.vname), Y(i.vtag, e, ...i.vchildren || []);
|
|
3029
2992
|
}
|
|
3030
|
-
const t =
|
|
2993
|
+
const t = Ct(i.vtag, i.vtext);
|
|
3031
2994
|
return t.$attrs$ = i.vattrs, t.$children$ = i.vchildren, t.$key$ = i.vkey, t.$name$ = i.vname, t;
|
|
3032
|
-
},
|
|
2995
|
+
}, Ke = (i, t, e, s, n, r) => {
|
|
3033
2996
|
if (e !== s) {
|
|
3034
|
-
let o =
|
|
2997
|
+
let o = Ve(i, t), a = t.toLowerCase();
|
|
3035
2998
|
if (t === "class") {
|
|
3036
|
-
const l = i.classList, c =
|
|
2999
|
+
const l = i.classList, c = Ze(e), u = Ze(s);
|
|
3037
3000
|
l.remove(...c.filter((h) => h && !u.includes(h))), l.add(...u.filter((h) => h && !c.includes(h)));
|
|
3038
3001
|
} else if (t === "style") {
|
|
3039
3002
|
for (const l in e)
|
|
@@ -3044,9 +3007,9 @@ const Mt = typeof window < "u" ? window : {}, k = Mt.document || { head: {} }, H
|
|
|
3044
3007
|
if (t === "ref")
|
|
3045
3008
|
s && s(i);
|
|
3046
3009
|
else if (!i.__lookupSetter__(t) && t[0] === "o" && t[1] === "n")
|
|
3047
|
-
t[2] === "-" ? t = t.slice(3) :
|
|
3010
|
+
t[2] === "-" ? t = t.slice(3) : Ve(Rt, a) ? t = a.slice(2) : t = a[2] + t.slice(3), e && y.rel(i, t, e, !1), s && y.ael(i, t, s, !1);
|
|
3048
3011
|
else {
|
|
3049
|
-
const l =
|
|
3012
|
+
const l = de(s);
|
|
3050
3013
|
if ((o || l && s !== null) && !n)
|
|
3051
3014
|
try {
|
|
3052
3015
|
if (i.tagName.includes("-"))
|
|
@@ -3058,18 +3021,18 @@ const Mt = typeof window < "u" ? window : {}, k = Mt.document || { head: {} }, H
|
|
|
3058
3021
|
} catch {
|
|
3059
3022
|
}
|
|
3060
3023
|
let c = !1;
|
|
3061
|
-
a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, c = !0), s == null || s === !1 ? (s !== !1 || i.getAttribute(t) === "") && (c ? i.removeAttributeNS(
|
|
3024
|
+
a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, c = !0), s == null || s === !1 ? (s !== !1 || i.getAttribute(t) === "") && (c ? i.removeAttributeNS(We, t) : i.removeAttribute(t)) : (!o || r & 4 || n) && !l && (s = s === !0 ? "" : s, c ? i.setAttributeNS(We, t, s) : i.setAttribute(t, s));
|
|
3062
3025
|
}
|
|
3063
3026
|
}
|
|
3064
|
-
},
|
|
3065
|
-
const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = i && i.$attrs$ ||
|
|
3027
|
+
}, Gn = /\s/, Ze = (i) => i ? i.split(Gn) : [], zi = (i, t, e, s) => {
|
|
3028
|
+
const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = i && i.$attrs$ || Ge, o = t.$attrs$ || Ge;
|
|
3066
3029
|
for (s in r)
|
|
3067
|
-
s in o ||
|
|
3030
|
+
s in o || Ke(n, s, r[s], void 0, e, t.$flags$);
|
|
3068
3031
|
for (s in o)
|
|
3069
|
-
|
|
3070
|
-
},
|
|
3032
|
+
Ke(n, s, r[s], o[s], e, t.$flags$);
|
|
3033
|
+
}, Et = (i, t, e, s) => {
|
|
3071
3034
|
let n = t.$children$[e], r = 0, o, a, l;
|
|
3072
|
-
if (
|
|
3035
|
+
if (Ni || (he = !0, n.$tag$ === "slot" && (W && s.classList.add(W + "-s"), n.$flags$ |= n.$children$ ? (
|
|
3073
3036
|
// slot element has fallback content
|
|
3074
3037
|
2
|
|
3075
3038
|
) : (
|
|
@@ -3080,28 +3043,28 @@ const Mt = typeof window < "u" ? window : {}, k = Mt.document || { head: {} }, H
|
|
|
3080
3043
|
else if (n.$flags$ & 1)
|
|
3081
3044
|
o = n.$elm$ = k.createTextNode("");
|
|
3082
3045
|
else {
|
|
3083
|
-
if (b || (b = n.$tag$ === "svg"), o = n.$elm$ = k.createElementNS(b ?
|
|
3046
|
+
if (b || (b = n.$tag$ === "svg"), o = n.$elm$ = k.createElementNS(b ? Bn : Hn, n.$flags$ & 2 ? "slot-fb" : n.$tag$), b && n.$tag$ === "foreignObject" && (b = !1), zi(null, n, b), zn(W) && o["s-si"] !== W && o.classList.add(o["s-si"] = W), n.$children$)
|
|
3084
3047
|
for (r = 0; r < n.$children$.length; ++r)
|
|
3085
|
-
a =
|
|
3048
|
+
a = Et(i, n, r, o), a && o.appendChild(a);
|
|
3086
3049
|
n.$tag$ === "svg" ? b = !1 : o.tagName === "foreignObject" && (b = !0);
|
|
3087
3050
|
}
|
|
3088
|
-
return o["s-hn"] =
|
|
3089
|
-
},
|
|
3051
|
+
return o["s-hn"] = It, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = ji, o["s-sn"] = n.$name$ || "", l = i && i.$children$ && i.$children$[e], l && l.$tag$ === n.$tag$ && i.$elm$ && lt(i.$elm$, !1)), o;
|
|
3052
|
+
}, lt = (i, t) => {
|
|
3090
3053
|
y.$flags$ |= 1;
|
|
3091
3054
|
const e = i.childNodes;
|
|
3092
3055
|
for (let s = e.length - 1; s >= 0; s--) {
|
|
3093
3056
|
const n = e[s];
|
|
3094
|
-
n["s-hn"] !==
|
|
3057
|
+
n["s-hn"] !== It && n["s-ol"] && (qi(n).insertBefore(n, pe(n)), n["s-ol"].remove(), n["s-ol"] = void 0, he = !0), t && lt(n, t);
|
|
3095
3058
|
}
|
|
3096
3059
|
y.$flags$ &= -2;
|
|
3097
|
-
},
|
|
3060
|
+
}, Di = (i, t, e, s, n, r) => {
|
|
3098
3061
|
let o = i["s-cr"] && i["s-cr"].parentNode || i, a;
|
|
3099
|
-
for (o.shadowRoot && o.tagName ===
|
|
3100
|
-
s[n] && (a =
|
|
3101
|
-
},
|
|
3062
|
+
for (o.shadowRoot && o.tagName === It && (o = o.shadowRoot); n <= r; ++n)
|
|
3063
|
+
s[n] && (a = Et(null, e, n, i), a && (s[n].$elm$ = a, o.insertBefore(a, pe(t))));
|
|
3064
|
+
}, Wi = (i, t, e, s, n) => {
|
|
3102
3065
|
for (; t <= e; ++t)
|
|
3103
|
-
(s = i[t]) && (n = s.$elm$,
|
|
3104
|
-
},
|
|
3066
|
+
(s = i[t]) && (n = s.$elm$, Ki(s), kt = !0, n["s-ol"] ? n["s-ol"].remove() : lt(n, !0), n.remove());
|
|
3067
|
+
}, Yn = (i, t, e, s) => {
|
|
3105
3068
|
let n = 0, r = 0, o = 0, a = 0, l = t.length - 1, c = t[0], u = t[l], h = s.length - 1, d = s[0], f = s[h], v, g;
|
|
3106
3069
|
for (; n <= l && r <= h; )
|
|
3107
3070
|
if (c == null)
|
|
@@ -3112,28 +3075,28 @@ const Mt = typeof window < "u" ? window : {}, k = Mt.document || { head: {} }, H
|
|
|
3112
3075
|
d = s[++r];
|
|
3113
3076
|
else if (f == null)
|
|
3114
3077
|
f = s[--h];
|
|
3115
|
-
else if (
|
|
3078
|
+
else if (vt(c, d))
|
|
3116
3079
|
q(c, d), c = t[++n], d = s[++r];
|
|
3117
|
-
else if (
|
|
3080
|
+
else if (vt(u, f))
|
|
3118
3081
|
q(u, f), u = t[--l], f = s[--h];
|
|
3119
|
-
else if (
|
|
3120
|
-
(c.$tag$ === "slot" || f.$tag$ === "slot") &&
|
|
3121
|
-
else if (
|
|
3122
|
-
(c.$tag$ === "slot" || f.$tag$ === "slot") &&
|
|
3082
|
+
else if (vt(c, f))
|
|
3083
|
+
(c.$tag$ === "slot" || f.$tag$ === "slot") && lt(c.$elm$.parentNode, !1), q(c, f), i.insertBefore(c.$elm$, u.$elm$.nextSibling), c = t[++n], f = s[--h];
|
|
3084
|
+
else if (vt(u, d))
|
|
3085
|
+
(c.$tag$ === "slot" || f.$tag$ === "slot") && lt(u.$elm$.parentNode, !1), q(u, d), i.insertBefore(u.$elm$, c.$elm$), u = t[--l], d = s[++r];
|
|
3123
3086
|
else {
|
|
3124
3087
|
for (o = -1, a = n; a <= l; ++a)
|
|
3125
3088
|
if (t[a] && t[a].$key$ !== null && t[a].$key$ === d.$key$) {
|
|
3126
3089
|
o = a;
|
|
3127
3090
|
break;
|
|
3128
3091
|
}
|
|
3129
|
-
o >= 0 ? (g = t[o], g.$tag$ !== d.$tag$ ? v =
|
|
3092
|
+
o >= 0 ? (g = t[o], g.$tag$ !== d.$tag$ ? v = Et(t && t[r], e, o, i) : (q(g, d), t[o] = void 0, v = g.$elm$), d = s[++r]) : (v = Et(t && t[r], e, r, i), d = s[++r]), v && qi(c.$elm$).insertBefore(v, pe(c.$elm$));
|
|
3130
3093
|
}
|
|
3131
|
-
n > l ?
|
|
3132
|
-
},
|
|
3094
|
+
n > l ? Di(i, s[h + 1] == null ? null : s[h + 1].$elm$, e, s, r, h) : r > h && Wi(t, n, l);
|
|
3095
|
+
}, vt = (i, t) => i.$tag$ === t.$tag$ ? i.$tag$ === "slot" ? i.$name$ === t.$name$ : i.$key$ === t.$key$ : !1, pe = (i) => i && i["s-ol"] || i, qi = (i) => (i["s-ol"] ? i["s-ol"] : i).parentNode, q = (i, t) => {
|
|
3133
3096
|
const e = t.$elm$ = i.$elm$, s = i.$children$, n = t.$children$, r = t.$tag$, o = t.$text$;
|
|
3134
3097
|
let a;
|
|
3135
|
-
o === null ? (b = r === "svg" ? !0 : r === "foreignObject" ? !1 : b, r === "slot" ||
|
|
3136
|
-
},
|
|
3098
|
+
o === null ? (b = r === "svg" ? !0 : r === "foreignObject" ? !1 : b, r === "slot" || zi(i, t, b), s !== null && n !== null ? Yn(e, s, t, n) : n !== null ? (i.$text$ !== null && (e.textContent = ""), Di(e, null, t, n, 0, n.length - 1)) : s !== null && Wi(s, 0, s.length - 1), b && r === "svg" && (b = !1)) : (a = e["s-cr"]) ? a.parentNode.textContent = o : i.$text$ !== o && (e.data = o);
|
|
3099
|
+
}, Gi = (i) => {
|
|
3137
3100
|
let t = i.childNodes, e, s, n, r, o, a;
|
|
3138
3101
|
for (s = 0, n = t.length; s < n; s++)
|
|
3139
3102
|
if (e = t[s], e.nodeType === 1) {
|
|
@@ -3149,31 +3112,31 @@ const Mt = typeof window < "u" ? window : {}, k = Mt.document || { head: {} }, H
|
|
|
3149
3112
|
break;
|
|
3150
3113
|
}
|
|
3151
3114
|
}
|
|
3152
|
-
|
|
3115
|
+
Gi(e);
|
|
3153
3116
|
}
|
|
3154
|
-
}, x = [],
|
|
3117
|
+
}, x = [], Yi = (i) => {
|
|
3155
3118
|
let t, e, s, n, r, o, a = 0, l = i.childNodes, c = l.length;
|
|
3156
3119
|
for (; a < c; a++) {
|
|
3157
3120
|
if (t = l[a], t["s-sr"] && (e = t["s-cr"]) && e.parentNode)
|
|
3158
3121
|
for (s = e.parentNode.childNodes, n = t["s-sn"], o = s.length - 1; o >= 0; o--)
|
|
3159
|
-
e = s[o], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== t["s-hn"] && (
|
|
3122
|
+
e = s[o], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== t["s-hn"] && (Xe(e, n) ? (r = x.find((u) => u.$nodeToRelocate$ === e), kt = !0, e["s-sn"] = e["s-sn"] || n, r ? r.$slotRefNode$ = t : x.push({
|
|
3160
3123
|
$slotRefNode$: t,
|
|
3161
3124
|
$nodeToRelocate$: e
|
|
3162
3125
|
}), e["s-sr"] && x.map((u) => {
|
|
3163
|
-
|
|
3126
|
+
Xe(u.$nodeToRelocate$, e["s-sn"]) && (r = x.find((h) => h.$nodeToRelocate$ === e), r && !u.$slotRefNode$ && (u.$slotRefNode$ = r.$slotRefNode$));
|
|
3164
3127
|
})) : x.some((u) => u.$nodeToRelocate$ === e) || x.push({
|
|
3165
3128
|
$nodeToRelocate$: e
|
|
3166
3129
|
}));
|
|
3167
|
-
t.nodeType === 1 &&
|
|
3130
|
+
t.nodeType === 1 && Yi(t);
|
|
3168
3131
|
}
|
|
3169
|
-
},
|
|
3170
|
-
i.$attrs$ && i.$attrs$.ref && i.$attrs$.ref(null), i.$children$ && i.$children$.map(
|
|
3171
|
-
},
|
|
3172
|
-
const e = i.$hostElement$, s = i.$cmpMeta$, n = i.$vnode$ ||
|
|
3173
|
-
|
|
3132
|
+
}, Xe = (i, t) => i.nodeType === 1 ? i.getAttribute("slot") === null && t === "" || i.getAttribute("slot") === t : i["s-sn"] === t ? !0 : t === "", Ki = (i) => {
|
|
3133
|
+
i.$attrs$ && i.$attrs$.ref && i.$attrs$.ref(null), i.$children$ && i.$children$.map(Ki);
|
|
3134
|
+
}, Kn = (i, t) => {
|
|
3135
|
+
const e = i.$hostElement$, s = i.$cmpMeta$, n = i.$vnode$ || Ct(null, null), r = Dn(t) ? t : Y(null, null, t);
|
|
3136
|
+
It = e.tagName, s.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = e[o])), r.$tag$ = null, r.$flags$ |= 4, i.$vnode$ = r, r.$elm$ = n.$elm$ = e.shadowRoot || e, W = e["s-sc"], ji = e["s-cr"], Ni = (s.$flags$ & 1) !== 0, kt = !1, q(n, r);
|
|
3174
3137
|
{
|
|
3175
|
-
if (y.$flags$ |= 1,
|
|
3176
|
-
|
|
3138
|
+
if (y.$flags$ |= 1, he) {
|
|
3139
|
+
Yi(r.$elm$);
|
|
3177
3140
|
let o, a, l, c, u, h, d = 0;
|
|
3178
3141
|
for (; d < x.length; d++)
|
|
3179
3142
|
o = x[d], a = o.$nodeToRelocate$, a["s-ol"] || (l = k.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
|
|
@@ -3188,39 +3151,39 @@ const Mt = typeof window < "u" ? window : {}, k = Mt.document || { head: {} }, H
|
|
|
3188
3151
|
} else
|
|
3189
3152
|
a.nodeType === 1 && (a.hidden = !0);
|
|
3190
3153
|
}
|
|
3191
|
-
|
|
3154
|
+
kt && Gi(r.$elm$), y.$flags$ &= -2, x.length = 0;
|
|
3192
3155
|
}
|
|
3193
|
-
},
|
|
3194
|
-
const s =
|
|
3156
|
+
}, Zn = (i) => i, Xn = (i, t, e) => {
|
|
3157
|
+
const s = Zn(i);
|
|
3195
3158
|
return {
|
|
3196
|
-
emit: (n) =>
|
|
3159
|
+
emit: (n) => Qn(s, t, {
|
|
3197
3160
|
bubbles: !0,
|
|
3198
3161
|
composed: !0,
|
|
3199
3162
|
cancelable: !0,
|
|
3200
3163
|
detail: n
|
|
3201
3164
|
})
|
|
3202
3165
|
};
|
|
3203
|
-
},
|
|
3166
|
+
}, Qn = (i, t, e) => {
|
|
3204
3167
|
const s = y.ce(t, e);
|
|
3205
3168
|
return i.dispatchEvent(s), s;
|
|
3206
|
-
},
|
|
3207
|
-
},
|
|
3169
|
+
}, Vn = (i, t) => {
|
|
3170
|
+
}, Zi = (i, t) => (i.$flags$ |= 16, Vn(i, i.$ancestorComponent$), vr(() => Jn(i, t))), Jn = (i, t) => {
|
|
3208
3171
|
const e = i.$hostElement$, s = N("scheduleUpdate", i.$cmpMeta$.$tagName$), n = e;
|
|
3209
3172
|
let r;
|
|
3210
|
-
return t ? r = K(n, "componentWillLoad") : r = K(n, "componentWillUpdate"), r =
|
|
3211
|
-
},
|
|
3173
|
+
return t ? r = K(n, "componentWillLoad") : r = K(n, "componentWillUpdate"), r = Qe(r, () => K(n, "componentWillRender")), s(), Qe(r, () => tr(i, n, t));
|
|
3174
|
+
}, tr = async (i, t, e) => {
|
|
3212
3175
|
const s = i.$hostElement$, n = N("update", i.$cmpMeta$.$tagName$);
|
|
3213
|
-
s["s-rc"], e &&
|
|
3176
|
+
s["s-rc"], e && Nn(i);
|
|
3214
3177
|
const r = N("render", i.$cmpMeta$.$tagName$);
|
|
3215
|
-
|
|
3216
|
-
},
|
|
3178
|
+
er(i, t, s), r(), n(), ir(i);
|
|
3179
|
+
}, er = (i, t, e) => {
|
|
3217
3180
|
try {
|
|
3218
|
-
|
|
3181
|
+
De = t, t = t.render && t.render(), i.$flags$ &= -17, i.$flags$ |= 2, (D.hasRenderFn || D.reflect) && (D.vdomRender || D.reflect) && (D.hydrateServerSide || Kn(i, t));
|
|
3219
3182
|
} catch (a) {
|
|
3220
|
-
|
|
3183
|
+
dt(a, i.$hostElement$);
|
|
3221
3184
|
}
|
|
3222
|
-
return
|
|
3223
|
-
},
|
|
3185
|
+
return De = null, null;
|
|
3186
|
+
}, ir = (i) => {
|
|
3224
3187
|
const t = i.$cmpMeta$.$tagName$, e = i.$hostElement$, s = N("postUpdate", t), n = e;
|
|
3225
3188
|
i.$ancestorComponent$, K(n, "componentDidRender"), i.$flags$ & 64 ? (K(n, "componentDidUpdate"), s()) : (i.$flags$ |= 64, K(n, "componentDidLoad"), s());
|
|
3226
3189
|
}, K = (i, t, e) => {
|
|
@@ -3228,11 +3191,11 @@ const Mt = typeof window < "u" ? window : {}, k = Mt.document || { head: {} }, H
|
|
|
3228
3191
|
try {
|
|
3229
3192
|
return i[t](e);
|
|
3230
3193
|
} catch (s) {
|
|
3231
|
-
|
|
3194
|
+
dt(s);
|
|
3232
3195
|
}
|
|
3233
|
-
},
|
|
3234
|
-
const n =
|
|
3235
|
-
e =
|
|
3196
|
+
}, Qe = (i, t) => i && i.then ? i.then(t) : t(), sr = (i, t) => i != null && !de(i) ? t & 4 ? i === "false" ? !1 : i === "" || !!i : t & 2 ? parseFloat(i) : t & 1 ? String(i) : i : i, nr = (i, t) => Ut(i).$instanceValues$.get(t), rr = (i, t, e, s) => {
|
|
3197
|
+
const n = Ut(i), r = i, o = n.$instanceValues$.get(t), a = n.$flags$, l = r;
|
|
3198
|
+
e = sr(e, s.$members$[t][0]);
|
|
3236
3199
|
const c = Number.isNaN(o) && Number.isNaN(e);
|
|
3237
3200
|
if (e !== o && !c) {
|
|
3238
3201
|
n.$instanceValues$.set(t, e);
|
|
@@ -3243,28 +3206,28 @@ const Mt = typeof window < "u" ? window : {}, k = Mt.document || { head: {} }, H
|
|
|
3243
3206
|
try {
|
|
3244
3207
|
l[d](e, o, t);
|
|
3245
3208
|
} catch (f) {
|
|
3246
|
-
|
|
3209
|
+
dt(f, r);
|
|
3247
3210
|
}
|
|
3248
3211
|
});
|
|
3249
3212
|
}
|
|
3250
3213
|
if ((a & 18) === 2) {
|
|
3251
3214
|
if (l.componentShouldUpdate && l.componentShouldUpdate(e, o, t) === !1)
|
|
3252
3215
|
return;
|
|
3253
|
-
|
|
3216
|
+
Zi(n, !1);
|
|
3254
3217
|
}
|
|
3255
3218
|
}
|
|
3256
3219
|
}
|
|
3257
|
-
},
|
|
3220
|
+
}, or = (i, t, e) => {
|
|
3258
3221
|
if (t.$members$) {
|
|
3259
3222
|
i.watchers && (t.$watchers$ = i.watchers);
|
|
3260
3223
|
const s = Object.entries(t.$members$), n = i.prototype;
|
|
3261
3224
|
s.map(([r, [o]]) => {
|
|
3262
3225
|
(o & 31 || o & 32) && Object.defineProperty(n, r, {
|
|
3263
3226
|
get() {
|
|
3264
|
-
return
|
|
3227
|
+
return nr(this, r);
|
|
3265
3228
|
},
|
|
3266
3229
|
set(a) {
|
|
3267
|
-
|
|
3230
|
+
rr(this, r, a, t);
|
|
3268
3231
|
},
|
|
3269
3232
|
configurable: !0,
|
|
3270
3233
|
enumerable: !0
|
|
@@ -3291,37 +3254,37 @@ const Mt = typeof window < "u" ? window : {}, k = Mt.document || { head: {} }, H
|
|
|
3291
3254
|
}
|
|
3292
3255
|
}
|
|
3293
3256
|
return i;
|
|
3294
|
-
},
|
|
3257
|
+
}, ar = async (i, t, e, s, n) => {
|
|
3295
3258
|
if ((t.$flags$ & 32) === 0 && (n = i.constructor, t.$flags$ |= 32, customElements.whenDefined(e.$tagName$).then(() => t.$flags$ |= 128), n.style)) {
|
|
3296
3259
|
let o = n.style;
|
|
3297
|
-
typeof o != "string" && (o = o[t.$modeName$ =
|
|
3298
|
-
const a =
|
|
3299
|
-
if (!
|
|
3260
|
+
typeof o != "string" && (o = o[t.$modeName$ = Fn(i)]);
|
|
3261
|
+
const a = Hi(e, t.$modeName$);
|
|
3262
|
+
if (!Ot.has(a)) {
|
|
3300
3263
|
const l = N("registerStyles", e.$tagName$);
|
|
3301
|
-
|
|
3264
|
+
Mn(a, o, !!(e.$flags$ & 1)), l();
|
|
3302
3265
|
}
|
|
3303
3266
|
}
|
|
3304
|
-
t.$ancestorComponent$,
|
|
3305
|
-
},
|
|
3306
|
-
},
|
|
3267
|
+
t.$ancestorComponent$, Zi(t, !0);
|
|
3268
|
+
}, lr = (i) => {
|
|
3269
|
+
}, cr = (i) => {
|
|
3307
3270
|
if ((y.$flags$ & 1) === 0) {
|
|
3308
|
-
const t =
|
|
3309
|
-
t.$flags$ & 1 ? (
|
|
3271
|
+
const t = Ut(i), e = t.$cmpMeta$, s = N("connectedCallback", e.$tagName$);
|
|
3272
|
+
t.$flags$ & 1 ? (Bi(i, t, e.$listeners$), lr(t.$lazyInstance$)) : (t.$flags$ |= 1, e.$flags$ & 12 && ur(i), e.$members$ && Object.entries(e.$members$).map(([n, [r]]) => {
|
|
3310
3273
|
if (r & 31 && i.hasOwnProperty(n)) {
|
|
3311
3274
|
const o = i[n];
|
|
3312
3275
|
delete i[n], i[n] = o;
|
|
3313
3276
|
}
|
|
3314
|
-
}),
|
|
3277
|
+
}), ar(i, t, e)), s();
|
|
3315
3278
|
}
|
|
3316
|
-
},
|
|
3279
|
+
}, ur = (i) => {
|
|
3317
3280
|
const t = i["s-cr"] = k.createComment("");
|
|
3318
3281
|
t["s-cn"] = !0, i.insertBefore(t, i.firstChild);
|
|
3319
|
-
},
|
|
3282
|
+
}, hr = (i) => {
|
|
3320
3283
|
if ((y.$flags$ & 1) === 0) {
|
|
3321
|
-
const t =
|
|
3284
|
+
const t = Ut(i);
|
|
3322
3285
|
t.$rmListeners$ && (t.$rmListeners$.map((e) => e()), t.$rmListeners$ = void 0);
|
|
3323
3286
|
}
|
|
3324
|
-
},
|
|
3287
|
+
}, Xi = (i, t) => {
|
|
3325
3288
|
const e = {
|
|
3326
3289
|
$flags$: t[0],
|
|
3327
3290
|
$tagName$: t[1]
|
|
@@ -3330,13 +3293,13 @@ const Mt = typeof window < "u" ? window : {}, k = Mt.document || { head: {} }, H
|
|
|
3330
3293
|
const s = i.prototype.connectedCallback, n = i.prototype.disconnectedCallback;
|
|
3331
3294
|
return Object.assign(i.prototype, {
|
|
3332
3295
|
__registerHost() {
|
|
3333
|
-
|
|
3296
|
+
dr(this, e);
|
|
3334
3297
|
},
|
|
3335
3298
|
connectedCallback() {
|
|
3336
|
-
|
|
3299
|
+
cr(this), s && s.call(this);
|
|
3337
3300
|
},
|
|
3338
3301
|
disconnectedCallback() {
|
|
3339
|
-
|
|
3302
|
+
hr(this), n && n.call(this);
|
|
3340
3303
|
},
|
|
3341
3304
|
__attachShadow() {
|
|
3342
3305
|
this.attachShadow({
|
|
@@ -3344,28 +3307,28 @@ const Mt = typeof window < "u" ? window : {}, k = Mt.document || { head: {} }, H
|
|
|
3344
3307
|
delegatesFocus: !!(e.$flags$ & 16)
|
|
3345
3308
|
});
|
|
3346
3309
|
}
|
|
3347
|
-
}), i.is = e.$tagName$,
|
|
3348
|
-
},
|
|
3310
|
+
}), i.is = e.$tagName$, or(i, e);
|
|
3311
|
+
}, Qi = /* @__PURE__ */ new WeakMap(), Ut = (i) => Qi.get(i), dr = (i, t) => {
|
|
3349
3312
|
const e = {
|
|
3350
3313
|
$flags$: 0,
|
|
3351
3314
|
$hostElement$: i,
|
|
3352
3315
|
$cmpMeta$: t,
|
|
3353
3316
|
$instanceValues$: /* @__PURE__ */ new Map()
|
|
3354
3317
|
};
|
|
3355
|
-
return
|
|
3356
|
-
},
|
|
3357
|
-
i.push(e),
|
|
3358
|
-
},
|
|
3318
|
+
return Bi(i, e, t.$listeners$), Qi.set(i, e);
|
|
3319
|
+
}, Ve = (i, t) => t in i, dt = (i, t) => (0, console.error)(i, t), Ot = /* @__PURE__ */ new Map(), fr = [], Je = [], Vi = [], pr = (i, t) => (e) => {
|
|
3320
|
+
i.push(e), Vt || (Vt = !0, t && y.$flags$ & 4 ? gr(Jt) : y.raf(Jt));
|
|
3321
|
+
}, ti = (i) => {
|
|
3359
3322
|
for (let t = 0; t < i.length; t++)
|
|
3360
3323
|
try {
|
|
3361
3324
|
i[t](performance.now());
|
|
3362
3325
|
} catch (e) {
|
|
3363
|
-
|
|
3326
|
+
dt(e);
|
|
3364
3327
|
}
|
|
3365
3328
|
i.length = 0;
|
|
3366
|
-
},
|
|
3367
|
-
|
|
3368
|
-
},
|
|
3329
|
+
}, Jt = () => {
|
|
3330
|
+
ti(Je), ti(Vi), (Vt = Je.length > 0) && y.raf(Jt);
|
|
3331
|
+
}, gr = (i) => Pn().then(i), vr = /* @__PURE__ */ pr(Vi, !0), $r = (i = {}) => {
|
|
3369
3332
|
const { content: t = "", title: e, attributes: s = [] } = i;
|
|
3370
3333
|
let n = "", r = [
|
|
3371
3334
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
@@ -3373,54 +3336,54 @@ const Mt = typeof window < "u" ? window : {}, k = Mt.document || { head: {} }, H
|
|
|
3373
3336
|
...s
|
|
3374
3337
|
];
|
|
3375
3338
|
return e && (n = `<title>${e}</title>`), `<svg ${r.map((a) => `${a.name}="${a.value}"`).join(" ")}>${n}${t}</svg>`;
|
|
3376
|
-
},
|
|
3377
|
-
function
|
|
3339
|
+
}, mr = (i) => i.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
|
3340
|
+
function yr(i) {
|
|
3378
3341
|
return `${i.getFullYear()}.${i.getMonth() + 1}`;
|
|
3379
3342
|
}
|
|
3380
|
-
class
|
|
3343
|
+
class br {
|
|
3381
3344
|
constructor(t) {
|
|
3382
|
-
this.voca_component = t, this.voca_added =
|
|
3345
|
+
this.voca_component = t, this.voca_added = yr(/* @__PURE__ */ new Date());
|
|
3383
3346
|
}
|
|
3384
3347
|
}
|
|
3385
|
-
const
|
|
3348
|
+
const wr = "telia-vst{display:none}", _r = /* @__PURE__ */ Xi(class extends Fi {
|
|
3386
3349
|
constructor() {
|
|
3387
|
-
super(), this.__registerHost(), this.vocaInternalUStats =
|
|
3350
|
+
super(), this.__registerHost(), this.vocaInternalUStats = Xn(this, "vocaInternalUStats");
|
|
3388
3351
|
}
|
|
3389
3352
|
connectedCallback() {
|
|
3390
|
-
this.vocaInternalUStats.emit(new
|
|
3353
|
+
this.vocaInternalUStats.emit(new br(this.dataTrackingId));
|
|
3391
3354
|
}
|
|
3392
3355
|
render() {
|
|
3393
|
-
return Y(
|
|
3356
|
+
return Y(fe, null);
|
|
3394
3357
|
}
|
|
3395
3358
|
static get style() {
|
|
3396
|
-
return
|
|
3359
|
+
return wr;
|
|
3397
3360
|
}
|
|
3398
3361
|
}, [0, "telia-vst", {
|
|
3399
3362
|
dataTrackingId: [1, "data-tracking-id"]
|
|
3400
3363
|
}]);
|
|
3401
|
-
function
|
|
3364
|
+
function Ji() {
|
|
3402
3365
|
if (typeof customElements > "u")
|
|
3403
3366
|
return;
|
|
3404
3367
|
["telia-vst"].forEach((t) => {
|
|
3405
3368
|
switch (t) {
|
|
3406
3369
|
case "telia-vst":
|
|
3407
|
-
customElements.get(t) || customElements.define(t,
|
|
3370
|
+
customElements.get(t) || customElements.define(t, _r);
|
|
3408
3371
|
break;
|
|
3409
3372
|
}
|
|
3410
3373
|
});
|
|
3411
3374
|
}
|
|
3412
|
-
|
|
3413
|
-
function
|
|
3375
|
+
Ji();
|
|
3376
|
+
function te() {
|
|
3414
3377
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
|
3415
3378
|
}
|
|
3416
|
-
function
|
|
3417
|
-
if (typeof
|
|
3418
|
-
return
|
|
3379
|
+
function xr() {
|
|
3380
|
+
if (typeof te().vocadsIcons !== void 0)
|
|
3381
|
+
return te().vocadsIcons;
|
|
3419
3382
|
}
|
|
3420
|
-
function
|
|
3421
|
-
return
|
|
3383
|
+
function Sr() {
|
|
3384
|
+
return te().vocadsIconsRegistered;
|
|
3422
3385
|
}
|
|
3423
|
-
const
|
|
3386
|
+
const Ar = ".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}", kr = /* @__PURE__ */ Xi(class extends Fi {
|
|
3424
3387
|
constructor() {
|
|
3425
3388
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
|
3426
3389
|
}
|
|
@@ -3432,8 +3395,8 @@ const Cr = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
|
3432
3395
|
getSvgString() {
|
|
3433
3396
|
if (this.svg)
|
|
3434
3397
|
return this.svg;
|
|
3435
|
-
if (
|
|
3436
|
-
const i =
|
|
3398
|
+
if (Sr() && this.name) {
|
|
3399
|
+
const i = xr();
|
|
3437
3400
|
return i[this.name] ? i[this.name].svg : "";
|
|
3438
3401
|
}
|
|
3439
3402
|
return this.name && console.warn(this.name, "Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"), "";
|
|
@@ -3444,15 +3407,15 @@ const Cr = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
|
3444
3407
|
...t,
|
|
3445
3408
|
{ name: "aria-hidden", value: "true" }
|
|
3446
3409
|
];
|
|
3447
|
-
const e =
|
|
3448
|
-
content:
|
|
3410
|
+
const e = $r({
|
|
3411
|
+
content: mr(i),
|
|
3449
3412
|
attributes: t,
|
|
3450
3413
|
title: this.allyTitle
|
|
3451
3414
|
});
|
|
3452
|
-
return Y(
|
|
3415
|
+
return Y(fe, { class: `telia-icon telia-icon--${this.size}` }, Y("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: e }), Y("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
|
3453
3416
|
}
|
|
3454
3417
|
static get style() {
|
|
3455
|
-
return
|
|
3418
|
+
return Ar;
|
|
3456
3419
|
}
|
|
3457
3420
|
}, [0, "telia-icon", {
|
|
3458
3421
|
name: [1],
|
|
@@ -3461,28 +3424,28 @@ const Cr = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
|
3461
3424
|
allyTitle: [1, "ally-title"],
|
|
3462
3425
|
dataTestid: [1, "data-testid"]
|
|
3463
3426
|
}]);
|
|
3464
|
-
function
|
|
3427
|
+
function Cr() {
|
|
3465
3428
|
if (typeof customElements > "u")
|
|
3466
3429
|
return;
|
|
3467
3430
|
["telia-icon", "telia-vst"].forEach((t) => {
|
|
3468
3431
|
switch (t) {
|
|
3469
3432
|
case "telia-icon":
|
|
3470
|
-
customElements.get(t) || customElements.define(t,
|
|
3433
|
+
customElements.get(t) || customElements.define(t, kr);
|
|
3471
3434
|
break;
|
|
3472
3435
|
case "telia-vst":
|
|
3473
|
-
customElements.get(t) ||
|
|
3436
|
+
customElements.get(t) || Ji();
|
|
3474
3437
|
break;
|
|
3475
3438
|
}
|
|
3476
3439
|
});
|
|
3477
3440
|
}
|
|
3478
|
-
|
|
3479
|
-
const
|
|
3441
|
+
Cr();
|
|
3442
|
+
const Er = () => "10000000-1000-4000-8000-100000000000".replace(
|
|
3480
3443
|
/[018]/g,
|
|
3481
3444
|
(i) => (+i ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +i / 4).toString(16)
|
|
3482
|
-
),
|
|
3483
|
-
class
|
|
3445
|
+
), Or = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() : Er();
|
|
3446
|
+
class Tr {
|
|
3484
3447
|
constructor(t, e, s, n, r, o, a = !0) {
|
|
3485
|
-
this.label = t, this.icon = e, this.onClick = s, this.closeOnClick = n, this.key = r, this.update = new
|
|
3448
|
+
this.label = t, this.icon = e, this.onClick = s, this.closeOnClick = n, this.key = r, this.update = new ut(), this.id = Or(), this._controller = o, this.enabled = a;
|
|
3486
3449
|
}
|
|
3487
3450
|
updateLabel(t) {
|
|
3488
3451
|
this.label = t, this.update.next();
|
|
@@ -3497,7 +3460,7 @@ class Ir {
|
|
|
3497
3460
|
return this.update.asObservable();
|
|
3498
3461
|
}
|
|
3499
3462
|
}
|
|
3500
|
-
class
|
|
3463
|
+
class Pr {
|
|
3501
3464
|
constructor(t) {
|
|
3502
3465
|
this._options = [], this._subscription = null, this._host = t, t.addController(this);
|
|
3503
3466
|
}
|
|
@@ -3507,7 +3470,7 @@ class Lr {
|
|
|
3507
3470
|
this._subscription && this._subscription.unsubscribe(), this._options = [];
|
|
3508
3471
|
}
|
|
3509
3472
|
addOption(t) {
|
|
3510
|
-
const e = new
|
|
3473
|
+
const e = new Tr(
|
|
3511
3474
|
t.label,
|
|
3512
3475
|
t.icon,
|
|
3513
3476
|
t.onClick,
|
|
@@ -3523,7 +3486,7 @@ class Lr {
|
|
|
3523
3486
|
handleUpdate() {
|
|
3524
3487
|
this._subscription && this._subscription.unsubscribe();
|
|
3525
3488
|
const t = this._options.map((e) => e.subscribe());
|
|
3526
|
-
this._subscription =
|
|
3489
|
+
this._subscription = ln(t).subscribe(() => {
|
|
3527
3490
|
this._host.requestUpdate();
|
|
3528
3491
|
});
|
|
3529
3492
|
}
|
|
@@ -3537,14 +3500,14 @@ class Lr {
|
|
|
3537
3500
|
return this._options.length > 0;
|
|
3538
3501
|
}
|
|
3539
3502
|
}
|
|
3540
|
-
var
|
|
3503
|
+
var Lr = Object.defineProperty, ft = (i, t, e, s) => {
|
|
3541
3504
|
for (var n = void 0, r = i.length - 1, o; r >= 0; r--)
|
|
3542
3505
|
(o = i[r]) && (n = o(t, e, n) || n);
|
|
3543
|
-
return n &&
|
|
3506
|
+
return n && Lr(t, e, n), n;
|
|
3544
3507
|
};
|
|
3545
|
-
const
|
|
3508
|
+
const ei = Ui(A), be = class be extends ei {
|
|
3546
3509
|
constructor() {
|
|
3547
|
-
super(...arguments), this.optionsIsVisible = !1, this.authState = z.NonAuthenticated, this.userName = "", this.authUrl = "", this.showAuthOptions = !0, this.shouldUseAuth = !1, this.options = new
|
|
3510
|
+
super(...arguments), this.optionsIsVisible = !1, this.authState = z.NonAuthenticated, this.userName = "", this.authUrl = "", this.showAuthOptions = !0, this.shouldUseAuth = !1, this.options = new Pr(this), this.optionsRef = _t(), this.optionsTriggerRef = _t(), this.actions$ = new ut(), this.onClickOutside = (t) => {
|
|
3548
3511
|
!this.optionsTriggerRef.value || !this.optionsRef.value || t.composedPath().includes(this.optionsTriggerRef.value) || t.composedPath().includes(this.optionsRef.value) || (this.optionsIsVisible = !1);
|
|
3549
3512
|
}, this.onGlobalKeyDown = (t) => {
|
|
3550
3513
|
var e, s;
|
|
@@ -3685,21 +3648,21 @@ const si = ji(A), we = class we extends si {
|
|
|
3685
3648
|
type="button"
|
|
3686
3649
|
@click=${this.onToggleOptionsMenuClick}
|
|
3687
3650
|
class="widget-header__action-button"
|
|
3688
|
-
${
|
|
3651
|
+
${xt(this.optionsTriggerRef)}
|
|
3689
3652
|
title=${s.getOrFallback("widget-header.ellipses", "Options")}
|
|
3690
3653
|
aria-haspopup="dialog"
|
|
3691
3654
|
aria-expanded="${this.optionsIsVisible ? "true" : "false"}"
|
|
3692
3655
|
aria-label=${s.getOrFallback("widget-header.ellipses", "Options")}
|
|
3693
3656
|
data-testid="options-button"
|
|
3694
3657
|
>
|
|
3695
|
-
<telia-icon svg=${
|
|
3658
|
+
<telia-icon svg=${mn.svg}></telia-icon>
|
|
3696
3659
|
</button>
|
|
3697
3660
|
${this.optionsIsVisible ? m`
|
|
3698
3661
|
<div
|
|
3699
3662
|
role="dialog"
|
|
3700
3663
|
aria-modal="true"
|
|
3701
3664
|
class="options-menu"
|
|
3702
|
-
${
|
|
3665
|
+
${xt(this.optionsRef)}
|
|
3703
3666
|
aria-labelledby="options-menu-title"
|
|
3704
3667
|
>
|
|
3705
3668
|
<h3 id="options-menu-title" tabindex="-1">
|
|
@@ -3738,14 +3701,14 @@ const si = ji(A), we = class we extends si {
|
|
|
3738
3701
|
)}
|
|
3739
3702
|
data-testid="minimize-button"
|
|
3740
3703
|
>
|
|
3741
|
-
<telia-icon svg=${
|
|
3704
|
+
<telia-icon svg=${$n.svg}></telia-icon>
|
|
3742
3705
|
</button>`}
|
|
3743
3706
|
</div>
|
|
3744
3707
|
</div>`;
|
|
3745
3708
|
}
|
|
3746
3709
|
};
|
|
3747
|
-
|
|
3748
|
-
|
|
3710
|
+
be.styles = [
|
|
3711
|
+
ei.styles || [],
|
|
3749
3712
|
B`
|
|
3750
3713
|
:host {
|
|
3751
3714
|
--header-text-color: var(--text-on-primary-background);
|
|
@@ -3892,20 +3855,20 @@ we.styles = [
|
|
|
3892
3855
|
}
|
|
3893
3856
|
`
|
|
3894
3857
|
];
|
|
3895
|
-
let F =
|
|
3896
|
-
|
|
3858
|
+
let F = be;
|
|
3859
|
+
ft([
|
|
3897
3860
|
S()
|
|
3898
3861
|
], F.prototype, "optionsIsVisible");
|
|
3899
|
-
|
|
3862
|
+
ft([
|
|
3900
3863
|
S()
|
|
3901
3864
|
], F.prototype, "authState");
|
|
3902
|
-
|
|
3865
|
+
ft([
|
|
3903
3866
|
S()
|
|
3904
3867
|
], F.prototype, "userName");
|
|
3905
|
-
|
|
3868
|
+
ft([
|
|
3906
3869
|
S()
|
|
3907
3870
|
], F.prototype, "authUrl");
|
|
3908
|
-
|
|
3871
|
+
ft([
|
|
3909
3872
|
S()
|
|
3910
3873
|
], F.prototype, "showAuthOptions");
|
|
3911
3874
|
export {
|