@telia-ace/widget-conversation-flamingo 1.1.32-rc.0 → 1.1.32
Sign up to get free protection for your applications and to get access to all the features.
- package/{conversation-3beb5b93.mjs → conversation-30b4f564.mjs} +766 -753
- package/conversation-d2944e09.js +688 -0
- package/conversation.d.ts +1 -0
- package/{index-1d75daa4.js → index-0255770a.js} +1 -1
- package/{index-f785c1ce.js → index-47f7bb79.js} +1 -1
- package/{index-945905bd.mjs → index-59fe3cc0.mjs} +1 -1
- package/{index-291fb24c.mjs → index-7b4e9cb8.mjs} +152 -152
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
- package/conversation-c475dda3.js +0 -688
@@ -1,22 +1,22 @@
|
|
1
|
-
import { C as St } from "./index-
|
1
|
+
import { C as St } from "./index-59fe3cc0.mjs";
|
2
2
|
/**
|
3
3
|
* @license
|
4
4
|
* Copyright 2019 Google LLC
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
6
6
|
*/
|
7
|
-
const rt = globalThis, Dt = rt.ShadowRoot && (rt.ShadyCSS === void 0 || rt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
8
|
-
let
|
9
|
-
constructor(t,
|
10
|
-
if (this._$cssResult$ = !0, i !==
|
7
|
+
const rt = globalThis, Dt = rt.ShadowRoot && (rt.ShadyCSS === void 0 || rt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Bt = Symbol(), Jt = /* @__PURE__ */ new WeakMap();
|
8
|
+
let Oe = class {
|
9
|
+
constructor(t, e, i) {
|
10
|
+
if (this._$cssResult$ = !0, i !== Bt)
|
11
11
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
12
|
-
this.cssText = t, this.t =
|
12
|
+
this.cssText = t, this.t = e;
|
13
13
|
}
|
14
14
|
get styleSheet() {
|
15
15
|
let t = this.o;
|
16
|
-
const
|
16
|
+
const e = this.t;
|
17
17
|
if (Dt && t === void 0) {
|
18
|
-
const i =
|
19
|
-
i && (t = Jt.get(
|
18
|
+
const i = e !== void 0 && e.length === 1;
|
19
|
+
i && (t = Jt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Jt.set(e, t));
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
}
|
@@ -24,64 +24,64 @@ let ke = class {
|
|
24
24
|
return this.cssText;
|
25
25
|
}
|
26
26
|
};
|
27
|
-
const
|
28
|
-
const
|
27
|
+
const ls = (s) => new Oe(typeof s == "string" ? s : s + "", void 0, Bt), _ = (s, ...t) => {
|
28
|
+
const e = s.length === 1 ? s[0] : t.reduce((i, n, r) => i + ((o) => {
|
29
29
|
if (o._$cssResult$ === !0)
|
30
30
|
return o.cssText;
|
31
31
|
if (typeof o == "number")
|
32
32
|
return o;
|
33
33
|
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.");
|
34
|
-
})(n) +
|
35
|
-
return new
|
36
|
-
},
|
34
|
+
})(n) + s[r + 1], s[0]);
|
35
|
+
return new Oe(e, s, Bt);
|
36
|
+
}, cs = (s, t) => {
|
37
37
|
if (Dt)
|
38
|
-
|
38
|
+
s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
39
39
|
else
|
40
|
-
for (const
|
40
|
+
for (const e of t) {
|
41
41
|
const i = document.createElement("style"), n = rt.litNonce;
|
42
|
-
n !== void 0 && i.setAttribute("nonce", n), i.textContent =
|
42
|
+
n !== void 0 && i.setAttribute("nonce", n), i.textContent = e.cssText, s.appendChild(i);
|
43
43
|
}
|
44
|
-
}, Vt = Dt ? (
|
45
|
-
let
|
44
|
+
}, Vt = Dt ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
45
|
+
let e = "";
|
46
46
|
for (const i of t.cssRules)
|
47
|
-
|
48
|
-
return
|
49
|
-
})(
|
47
|
+
e += i.cssText;
|
48
|
+
return ls(e);
|
49
|
+
})(s) : s;
|
50
50
|
/**
|
51
51
|
* @license
|
52
52
|
* Copyright 2017 Google LLC
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
54
54
|
*/
|
55
|
-
const { is:
|
55
|
+
const { is: ds, defineProperty: hs, getOwnPropertyDescriptor: ps, getOwnPropertyNames: us, getOwnPropertySymbols: fs, getPrototypeOf: gs } = Object, S = globalThis, te = S.trustedTypes, $s = te ? te.emptyScript : "", Et = S.reactiveElementPolyfillSupport, W = (s, t) => s, ot = { toAttribute(s, t) {
|
56
56
|
switch (t) {
|
57
57
|
case Boolean:
|
58
|
-
|
58
|
+
s = s ? $s : null;
|
59
59
|
break;
|
60
60
|
case Object:
|
61
61
|
case Array:
|
62
|
-
|
62
|
+
s = s == null ? s : JSON.stringify(s);
|
63
63
|
}
|
64
|
-
return
|
65
|
-
}, fromAttribute(
|
66
|
-
let
|
64
|
+
return s;
|
65
|
+
}, fromAttribute(s, t) {
|
66
|
+
let e = s;
|
67
67
|
switch (t) {
|
68
68
|
case Boolean:
|
69
|
-
|
69
|
+
e = s !== null;
|
70
70
|
break;
|
71
71
|
case Number:
|
72
|
-
|
72
|
+
e = s === null ? null : Number(s);
|
73
73
|
break;
|
74
74
|
case Object:
|
75
75
|
case Array:
|
76
76
|
try {
|
77
|
-
|
77
|
+
e = JSON.parse(s);
|
78
78
|
} catch {
|
79
|
-
|
79
|
+
e = null;
|
80
80
|
}
|
81
81
|
}
|
82
|
-
return
|
83
|
-
} }, zt = (
|
84
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
82
|
+
return e;
|
83
|
+
} }, zt = (s, t) => !ds(s, t), ee = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: zt };
|
84
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), S.litPropertyMetadata ?? (S.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
85
85
|
let U = class extends HTMLElement {
|
86
86
|
static addInitializer(t) {
|
87
87
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
@@ -89,17 +89,17 @@ let U = class extends HTMLElement {
|
|
89
89
|
static get observedAttributes() {
|
90
90
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
91
91
|
}
|
92
|
-
static createProperty(t,
|
93
|
-
if (
|
94
|
-
const i = Symbol(), n = this.getPropertyDescriptor(t, i,
|
95
|
-
n !== void 0 &&
|
92
|
+
static createProperty(t, e = ee) {
|
93
|
+
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
94
|
+
const i = Symbol(), n = this.getPropertyDescriptor(t, i, e);
|
95
|
+
n !== void 0 && hs(this.prototype, t, n);
|
96
96
|
}
|
97
97
|
}
|
98
|
-
static getPropertyDescriptor(t,
|
99
|
-
const { get: n, set: r } =
|
100
|
-
return this[
|
98
|
+
static getPropertyDescriptor(t, e, i) {
|
99
|
+
const { get: n, set: r } = ps(this.prototype, t) ?? { get() {
|
100
|
+
return this[e];
|
101
101
|
}, set(o) {
|
102
|
-
this[
|
102
|
+
this[e] = o;
|
103
103
|
} };
|
104
104
|
return { get() {
|
105
105
|
return n == null ? void 0 : n.call(this);
|
@@ -114,43 +114,43 @@ let U = class extends HTMLElement {
|
|
114
114
|
static _$Ei() {
|
115
115
|
if (this.hasOwnProperty(W("elementProperties")))
|
116
116
|
return;
|
117
|
-
const t =
|
117
|
+
const t = gs(this);
|
118
118
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
119
119
|
}
|
120
120
|
static finalize() {
|
121
121
|
if (this.hasOwnProperty(W("finalized")))
|
122
122
|
return;
|
123
123
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(W("properties"))) {
|
124
|
-
const
|
124
|
+
const e = this.properties, i = [...us(e), ...fs(e)];
|
125
125
|
for (const n of i)
|
126
|
-
this.createProperty(n,
|
126
|
+
this.createProperty(n, e[n]);
|
127
127
|
}
|
128
128
|
const t = this[Symbol.metadata];
|
129
129
|
if (t !== null) {
|
130
|
-
const
|
131
|
-
if (
|
132
|
-
for (const [i, n] of
|
130
|
+
const e = litPropertyMetadata.get(t);
|
131
|
+
if (e !== void 0)
|
132
|
+
for (const [i, n] of e)
|
133
133
|
this.elementProperties.set(i, n);
|
134
134
|
}
|
135
135
|
this._$Eh = /* @__PURE__ */ new Map();
|
136
|
-
for (const [
|
137
|
-
const n = this._$Eu(
|
138
|
-
n !== void 0 && this._$Eh.set(n,
|
136
|
+
for (const [e, i] of this.elementProperties) {
|
137
|
+
const n = this._$Eu(e, i);
|
138
|
+
n !== void 0 && this._$Eh.set(n, e);
|
139
139
|
}
|
140
140
|
this.elementStyles = this.finalizeStyles(this.styles);
|
141
141
|
}
|
142
142
|
static finalizeStyles(t) {
|
143
|
-
const
|
143
|
+
const e = [];
|
144
144
|
if (Array.isArray(t)) {
|
145
145
|
const i = new Set(t.flat(1 / 0).reverse());
|
146
146
|
for (const n of i)
|
147
|
-
|
147
|
+
e.unshift(Vt(n));
|
148
148
|
} else
|
149
|
-
t !== void 0 &&
|
150
|
-
return
|
149
|
+
t !== void 0 && e.push(Vt(t));
|
150
|
+
return e;
|
151
151
|
}
|
152
|
-
static _$Eu(t,
|
153
|
-
const i =
|
152
|
+
static _$Eu(t, e) {
|
153
|
+
const i = e.attribute;
|
154
154
|
return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
|
155
155
|
}
|
156
156
|
constructor() {
|
@@ -158,78 +158,78 @@ let U = class extends HTMLElement {
|
|
158
158
|
}
|
159
159
|
_$Ev() {
|
160
160
|
var t;
|
161
|
-
this._$Eg = new Promise((
|
161
|
+
this._$Eg = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
|
162
162
|
}
|
163
163
|
addController(t) {
|
164
|
-
var
|
165
|
-
(this._$ES ?? (this._$ES = [])).push(t), this.renderRoot !== void 0 && this.isConnected && ((
|
164
|
+
var e;
|
165
|
+
(this._$ES ?? (this._$ES = [])).push(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
|
166
166
|
}
|
167
167
|
removeController(t) {
|
168
|
-
var
|
169
|
-
(
|
168
|
+
var e;
|
169
|
+
(e = this._$ES) == null || e.splice(this._$ES.indexOf(t) >>> 0, 1);
|
170
170
|
}
|
171
171
|
_$E_() {
|
172
|
-
const t = /* @__PURE__ */ new Map(),
|
173
|
-
for (const i of
|
172
|
+
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
173
|
+
for (const i of e.keys())
|
174
174
|
this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
175
175
|
t.size > 0 && (this._$Ep = t);
|
176
176
|
}
|
177
177
|
createRenderRoot() {
|
178
178
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
179
|
-
return
|
179
|
+
return cs(t, this.constructor.elementStyles), t;
|
180
180
|
}
|
181
181
|
connectedCallback() {
|
182
182
|
var t;
|
183
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) == null || t.forEach((
|
183
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) == null || t.forEach((e) => {
|
184
184
|
var i;
|
185
|
-
return (i =
|
185
|
+
return (i = e.hostConnected) == null ? void 0 : i.call(e);
|
186
186
|
});
|
187
187
|
}
|
188
188
|
enableUpdating(t) {
|
189
189
|
}
|
190
190
|
disconnectedCallback() {
|
191
191
|
var t;
|
192
|
-
(t = this._$ES) == null || t.forEach((
|
192
|
+
(t = this._$ES) == null || t.forEach((e) => {
|
193
193
|
var i;
|
194
|
-
return (i =
|
194
|
+
return (i = e.hostDisconnected) == null ? void 0 : i.call(e);
|
195
195
|
});
|
196
196
|
}
|
197
|
-
attributeChangedCallback(t,
|
197
|
+
attributeChangedCallback(t, e, i) {
|
198
198
|
this._$AK(t, i);
|
199
199
|
}
|
200
|
-
_$EO(t,
|
200
|
+
_$EO(t, e) {
|
201
201
|
var r;
|
202
202
|
const i = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, i);
|
203
203
|
if (n !== void 0 && i.reflect === !0) {
|
204
|
-
const o = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : ot).toAttribute(
|
204
|
+
const o = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : ot).toAttribute(e, i.type);
|
205
205
|
this._$Em = t, o == null ? this.removeAttribute(n) : this.setAttribute(n, o), this._$Em = null;
|
206
206
|
}
|
207
207
|
}
|
208
|
-
_$AK(t,
|
208
|
+
_$AK(t, e) {
|
209
209
|
var r;
|
210
210
|
const i = this.constructor, n = i._$Eh.get(t);
|
211
211
|
if (n !== void 0 && this._$Em !== n) {
|
212
212
|
const o = i.getPropertyOptions(n), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? o.converter : ot;
|
213
|
-
this._$Em = n, this[n] = a.fromAttribute(
|
213
|
+
this._$Em = n, this[n] = a.fromAttribute(e, o.type), this._$Em = null;
|
214
214
|
}
|
215
215
|
}
|
216
|
-
requestUpdate(t,
|
216
|
+
requestUpdate(t, e, i, n = !1, r) {
|
217
217
|
if (t !== void 0) {
|
218
|
-
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? zt)(n ? r : this[t],
|
218
|
+
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? zt)(n ? r : this[t], e))
|
219
219
|
return;
|
220
|
-
this.C(t,
|
220
|
+
this.C(t, e, i);
|
221
221
|
}
|
222
222
|
this.isUpdatePending === !1 && (this._$Eg = this._$EP());
|
223
223
|
}
|
224
|
-
C(t,
|
225
|
-
this._$AL.has(t) || this._$AL.set(t,
|
224
|
+
C(t, e, i) {
|
225
|
+
this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
|
226
226
|
}
|
227
227
|
async _$EP() {
|
228
228
|
this.isUpdatePending = !0;
|
229
229
|
try {
|
230
230
|
await this._$Eg;
|
231
|
-
} catch (
|
232
|
-
Promise.reject(
|
231
|
+
} catch (e) {
|
232
|
+
Promise.reject(e);
|
233
233
|
}
|
234
234
|
const t = this.scheduleUpdate();
|
235
235
|
return t != null && await t, !this.isUpdatePending;
|
@@ -253,22 +253,22 @@ let U = class extends HTMLElement {
|
|
253
253
|
o.wrapped !== !0 || this._$AL.has(r) || this[r] === void 0 || this.C(r, this[r], o);
|
254
254
|
}
|
255
255
|
let t = !1;
|
256
|
-
const
|
256
|
+
const e = this._$AL;
|
257
257
|
try {
|
258
|
-
t = this.shouldUpdate(
|
258
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$ES) == null || i.forEach((n) => {
|
259
259
|
var r;
|
260
260
|
return (r = n.hostUpdate) == null ? void 0 : r.call(n);
|
261
|
-
}), this.update(
|
261
|
+
}), this.update(e)) : this._$ET();
|
262
262
|
} catch (n) {
|
263
263
|
throw t = !1, this._$ET(), n;
|
264
264
|
}
|
265
|
-
t && this._$AE(
|
265
|
+
t && this._$AE(e);
|
266
266
|
}
|
267
267
|
willUpdate(t) {
|
268
268
|
}
|
269
269
|
_$AE(t) {
|
270
|
-
var
|
271
|
-
(
|
270
|
+
var e;
|
271
|
+
(e = this._$ES) == null || e.forEach((i) => {
|
272
272
|
var n;
|
273
273
|
return (n = i.hostUpdated) == null ? void 0 : n.call(i);
|
274
274
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
@@ -286,47 +286,47 @@ let U = class extends HTMLElement {
|
|
286
286
|
return !0;
|
287
287
|
}
|
288
288
|
update(t) {
|
289
|
-
this._$Ej && (this._$Ej = this._$Ej.forEach((
|
289
|
+
this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EO(e, this[e]))), this._$ET();
|
290
290
|
}
|
291
291
|
updated(t) {
|
292
292
|
}
|
293
293
|
firstUpdated(t) {
|
294
294
|
}
|
295
295
|
};
|
296
|
-
U.elementStyles = [], U.shadowRootOptions = { mode: "open" }, U[W("elementProperties")] = /* @__PURE__ */ new Map(), U[W("finalized")] = /* @__PURE__ */ new Map(),
|
296
|
+
U.elementStyles = [], U.shadowRootOptions = { mode: "open" }, U[W("elementProperties")] = /* @__PURE__ */ new Map(), U[W("finalized")] = /* @__PURE__ */ new Map(), Et == null || Et({ ReactiveElement: U }), (S.reactiveElementVersions ?? (S.reactiveElementVersions = [])).push("2.0.1");
|
297
297
|
/**
|
298
298
|
* @license
|
299
299
|
* Copyright 2017 Google LLC
|
300
300
|
* SPDX-License-Identifier: BSD-3-Clause
|
301
301
|
*/
|
302
|
-
const G = globalThis, at = G.trustedTypes, se = at ? at.createPolicy("lit-html", { createHTML: (
|
303
|
-
\f\r]`, F = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ie = /-->/g, ne = />/g, T = RegExp(`>|${
|
304
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), re = /'/g, oe = /"/g,
|
305
|
-
function
|
306
|
-
if (!Array.isArray(
|
302
|
+
const G = globalThis, at = G.trustedTypes, se = at ? at.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Pe = "$lit$", C = `lit$${(Math.random() + "").slice(9)}$`, Le = "?" + C, ms = `<${Le}>`, L = document, Z = () => L.createComment(""), X = (s) => s === null || typeof s != "object" && typeof s != "function", He = Array.isArray, vs = (s) => He(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", kt = `[
|
303
|
+
\f\r]`, F = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ie = /-->/g, ne = />/g, T = RegExp(`>|${kt}(?:([^\\s"'>=/]+)(${kt}*=${kt}*(?:[^
|
304
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), re = /'/g, oe = /"/g, Re = /^(?:script|style|textarea|title)$/i, ys = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), f = ys(1), E = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), ae = /* @__PURE__ */ new WeakMap(), P = L.createTreeWalker(L, 129);
|
305
|
+
function Ue(s, t) {
|
306
|
+
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
307
307
|
throw Error("invalid template strings array");
|
308
308
|
return se !== void 0 ? se.createHTML(t) : t;
|
309
309
|
}
|
310
|
-
const
|
311
|
-
const
|
310
|
+
const bs = (s, t) => {
|
311
|
+
const e = s.length - 1, i = [];
|
312
312
|
let n, r = t === 2 ? "<svg>" : "", o = F;
|
313
|
-
for (let a = 0; a <
|
314
|
-
const l =
|
313
|
+
for (let a = 0; a < e; a++) {
|
314
|
+
const l = s[a];
|
315
315
|
let c, d, h = -1, p = 0;
|
316
316
|
for (; p < l.length && (o.lastIndex = p, d = o.exec(l), d !== null); )
|
317
|
-
p = o.lastIndex, o === F ? d[1] === "!--" ? o = ie : d[1] !== void 0 ? o = ne : d[2] !== void 0 ? (
|
318
|
-
const g = o === T &&
|
319
|
-
r += o === F ? l +
|
317
|
+
p = o.lastIndex, o === F ? d[1] === "!--" ? o = ie : d[1] !== void 0 ? o = ne : d[2] !== void 0 ? (Re.test(d[2]) && (n = RegExp("</" + d[2], "g")), o = T) : d[3] !== void 0 && (o = T) : o === T ? d[0] === ">" ? (o = n ?? F, h = -1) : d[1] === void 0 ? h = -2 : (h = o.lastIndex - d[2].length, c = d[1], o = d[3] === void 0 ? T : d[3] === '"' ? oe : re) : o === oe || o === re ? o = T : o === ie || o === ne ? o = F : (o = T, n = void 0);
|
318
|
+
const g = o === T && s[a + 1].startsWith("/>") ? " " : "";
|
319
|
+
r += o === F ? l + ms : h >= 0 ? (i.push(c), l.slice(0, h) + Pe + l.slice(h) + C + g) : l + C + (h === -2 ? a : g);
|
320
320
|
}
|
321
|
-
return [
|
321
|
+
return [Ue(s, r + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
322
322
|
};
|
323
|
-
class
|
324
|
-
constructor({ strings: t, _$litType$:
|
323
|
+
class Y {
|
324
|
+
constructor({ strings: t, _$litType$: e }, i) {
|
325
325
|
let n;
|
326
326
|
this.parts = [];
|
327
327
|
let r = 0, o = 0;
|
328
|
-
const a = t.length - 1, l = this.parts, [c, d] =
|
329
|
-
if (this.el =
|
328
|
+
const a = t.length - 1, l = this.parts, [c, d] = bs(t, e);
|
329
|
+
if (this.el = Y.createElement(c, i), P.currentNode = this.el.content, e === 2) {
|
330
330
|
const h = this.el.content.firstChild;
|
331
331
|
h.replaceWith(...h.childNodes);
|
332
332
|
}
|
@@ -334,47 +334,47 @@ class K {
|
|
334
334
|
if (n.nodeType === 1) {
|
335
335
|
if (n.hasAttributes())
|
336
336
|
for (const h of n.getAttributeNames())
|
337
|
-
if (h.endsWith(
|
338
|
-
const p = d[o++], g = n.getAttribute(h).split(
|
339
|
-
l.push({ type: 1, index: r, name:
|
337
|
+
if (h.endsWith(Pe)) {
|
338
|
+
const p = d[o++], g = n.getAttribute(h).split(C), w = /([.?@])?(.*)/.exec(p);
|
339
|
+
l.push({ type: 1, index: r, name: w[2], strings: g, ctor: w[1] === "." ? xs : w[1] === "?" ? ws : w[1] === "@" ? As : vt }), n.removeAttribute(h);
|
340
340
|
} else
|
341
|
-
h.startsWith(
|
342
|
-
if (
|
343
|
-
const h = n.textContent.split(
|
341
|
+
h.startsWith(C) && (l.push({ type: 6, index: r }), n.removeAttribute(h));
|
342
|
+
if (Re.test(n.tagName)) {
|
343
|
+
const h = n.textContent.split(C), p = h.length - 1;
|
344
344
|
if (p > 0) {
|
345
345
|
n.textContent = at ? at.emptyScript : "";
|
346
346
|
for (let g = 0; g < p; g++)
|
347
|
-
n.append(h[g],
|
348
|
-
n.append(h[p],
|
347
|
+
n.append(h[g], Z()), P.nextNode(), l.push({ type: 2, index: ++r });
|
348
|
+
n.append(h[p], Z());
|
349
349
|
}
|
350
350
|
}
|
351
351
|
} else if (n.nodeType === 8)
|
352
|
-
if (n.data ===
|
352
|
+
if (n.data === Le)
|
353
353
|
l.push({ type: 2, index: r });
|
354
354
|
else {
|
355
355
|
let h = -1;
|
356
|
-
for (; (h = n.data.indexOf(
|
357
|
-
l.push({ type: 7, index: r }), h +=
|
356
|
+
for (; (h = n.data.indexOf(C, h + 1)) !== -1; )
|
357
|
+
l.push({ type: 7, index: r }), h += C.length - 1;
|
358
358
|
}
|
359
359
|
r++;
|
360
360
|
}
|
361
361
|
}
|
362
|
-
static createElement(t,
|
362
|
+
static createElement(t, e) {
|
363
363
|
const i = L.createElement("template");
|
364
364
|
return i.innerHTML = t, i;
|
365
365
|
}
|
366
366
|
}
|
367
|
-
function
|
367
|
+
function B(s, t, e = s, i) {
|
368
368
|
var o, a;
|
369
369
|
if (t === E)
|
370
370
|
return t;
|
371
|
-
let n = i !== void 0 ? (o =
|
372
|
-
const r =
|
373
|
-
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(
|
371
|
+
let n = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
|
372
|
+
const r = X(t) ? void 0 : t._$litDirective$;
|
373
|
+
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(s), n._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = n : e._$Cl = n), n !== void 0 && (t = B(s, n._$AS(s, t.values), n, i)), t;
|
374
374
|
}
|
375
|
-
class
|
376
|
-
constructor(t,
|
377
|
-
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM =
|
375
|
+
class _s {
|
376
|
+
constructor(t, e) {
|
377
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
378
378
|
}
|
379
379
|
get parentNode() {
|
380
380
|
return this._$AM.parentNode;
|
@@ -383,36 +383,36 @@ class ys {
|
|
383
383
|
return this._$AM._$AU;
|
384
384
|
}
|
385
385
|
u(t) {
|
386
|
-
const { el: { content:
|
386
|
+
const { el: { content: e }, parts: i } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ?? L).importNode(e, !0);
|
387
387
|
P.currentNode = n;
|
388
388
|
let r = P.nextNode(), o = 0, a = 0, l = i[0];
|
389
389
|
for (; l !== void 0; ) {
|
390
390
|
if (o === l.index) {
|
391
391
|
let c;
|
392
|
-
l.type === 2 ? c = new
|
392
|
+
l.type === 2 ? c = new Q(r, r.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (c = new Cs(r, this, t)), this._$AV.push(c), l = i[++a];
|
393
393
|
}
|
394
394
|
o !== (l == null ? void 0 : l.index) && (r = P.nextNode(), o++);
|
395
395
|
}
|
396
396
|
return P.currentNode = L, n;
|
397
397
|
}
|
398
398
|
p(t) {
|
399
|
-
let
|
399
|
+
let e = 0;
|
400
400
|
for (const i of this._$AV)
|
401
|
-
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i,
|
401
|
+
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
402
402
|
}
|
403
403
|
}
|
404
|
-
class
|
404
|
+
class Q {
|
405
405
|
get _$AU() {
|
406
406
|
var t;
|
407
407
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
408
408
|
}
|
409
|
-
constructor(t,
|
410
|
-
this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = t, this._$AB =
|
409
|
+
constructor(t, e, i, n) {
|
410
|
+
this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = n, this._$Cv = (n == null ? void 0 : n.isConnected) ?? !0;
|
411
411
|
}
|
412
412
|
get parentNode() {
|
413
413
|
let t = this._$AA.parentNode;
|
414
|
-
const
|
415
|
-
return
|
414
|
+
const e = this._$AM;
|
415
|
+
return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
|
416
416
|
}
|
417
417
|
get startNode() {
|
418
418
|
return this._$AA;
|
@@ -420,8 +420,8 @@ class Z {
|
|
420
420
|
get endNode() {
|
421
421
|
return this._$AB;
|
422
422
|
}
|
423
|
-
_$AI(t,
|
424
|
-
t =
|
423
|
+
_$AI(t, e = this) {
|
424
|
+
t = B(this, t, e), X(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== E && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : vs(t) ? this.T(t) : this._(t);
|
425
425
|
}
|
426
426
|
k(t) {
|
427
427
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -430,40 +430,40 @@ class Z {
|
|
430
430
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
431
431
|
}
|
432
432
|
_(t) {
|
433
|
-
this._$AH !== u &&
|
433
|
+
this._$AH !== u && X(this._$AH) ? this._$AA.nextSibling.data = t : this.$(L.createTextNode(t)), this._$AH = t;
|
434
434
|
}
|
435
435
|
g(t) {
|
436
436
|
var r;
|
437
|
-
const { values:
|
437
|
+
const { values: e, _$litType$: i } = t, n = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = Y.createElement(Ue(i.h, i.h[0]), this.options)), i);
|
438
438
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === n)
|
439
|
-
this._$AH.p(
|
439
|
+
this._$AH.p(e);
|
440
440
|
else {
|
441
|
-
const o = new
|
442
|
-
o.p(
|
441
|
+
const o = new _s(n, this), a = o.u(this.options);
|
442
|
+
o.p(e), this.$(a), this._$AH = o;
|
443
443
|
}
|
444
444
|
}
|
445
445
|
_$AC(t) {
|
446
|
-
let
|
447
|
-
return
|
446
|
+
let e = ae.get(t.strings);
|
447
|
+
return e === void 0 && ae.set(t.strings, e = new Y(t)), e;
|
448
448
|
}
|
449
449
|
T(t) {
|
450
|
-
|
451
|
-
const
|
450
|
+
He(this._$AH) || (this._$AH = [], this._$AR());
|
451
|
+
const e = this._$AH;
|
452
452
|
let i, n = 0;
|
453
453
|
for (const r of t)
|
454
|
-
n ===
|
455
|
-
n <
|
454
|
+
n === e.length ? e.push(i = new Q(this.k(Z()), this.k(Z()), this, this.options)) : i = e[n], i._$AI(r), n++;
|
455
|
+
n < e.length && (this._$AR(i && i._$AB.nextSibling, n), e.length = n);
|
456
456
|
}
|
457
|
-
_$AR(t = this._$AA.nextSibling,
|
457
|
+
_$AR(t = this._$AA.nextSibling, e) {
|
458
458
|
var i;
|
459
|
-
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0,
|
459
|
+
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
460
460
|
const n = t.nextSibling;
|
461
461
|
t.remove(), t = n;
|
462
462
|
}
|
463
463
|
}
|
464
464
|
setConnected(t) {
|
465
|
-
var
|
466
|
-
this._$AM === void 0 && (this._$Cv = t, (
|
465
|
+
var e;
|
466
|
+
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
467
467
|
}
|
468
468
|
}
|
469
469
|
class vt {
|
@@ -473,19 +473,19 @@ class vt {
|
|
473
473
|
get _$AU() {
|
474
474
|
return this._$AM._$AU;
|
475
475
|
}
|
476
|
-
constructor(t,
|
477
|
-
this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name =
|
476
|
+
constructor(t, e, i, n, r) {
|
477
|
+
this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = n, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = u;
|
478
478
|
}
|
479
|
-
_$AI(t,
|
479
|
+
_$AI(t, e = this, i, n) {
|
480
480
|
const r = this.strings;
|
481
481
|
let o = !1;
|
482
482
|
if (r === void 0)
|
483
|
-
t =
|
483
|
+
t = B(this, t, e, 0), o = !X(t) || t !== this._$AH && t !== E, o && (this._$AH = t);
|
484
484
|
else {
|
485
485
|
const a = t;
|
486
486
|
let l, c;
|
487
487
|
for (t = r[0], l = 0; l < r.length - 1; l++)
|
488
|
-
c =
|
488
|
+
c = B(this, a[i + l], e, l), c === E && (c = this._$AH[l]), o || (o = !X(c) || c !== this._$AH[l]), c === u ? t = u : t !== u && (t += (c ?? "") + r[l + 1]), this._$AH[l] = c;
|
489
489
|
}
|
490
490
|
o && !n && this.O(t);
|
491
491
|
}
|
@@ -493,7 +493,7 @@ class vt {
|
|
493
493
|
t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
494
494
|
}
|
495
495
|
}
|
496
|
-
class
|
496
|
+
class xs extends vt {
|
497
497
|
constructor() {
|
498
498
|
super(...arguments), this.type = 3;
|
499
499
|
}
|
@@ -501,7 +501,7 @@ class bs extends vt {
|
|
501
501
|
this.element[this.name] = t === u ? void 0 : t;
|
502
502
|
}
|
503
503
|
}
|
504
|
-
let
|
504
|
+
let ws = class extends vt {
|
505
505
|
constructor() {
|
506
506
|
super(...arguments), this.type = 4;
|
507
507
|
}
|
@@ -509,42 +509,42 @@ let _s = class extends vt {
|
|
509
509
|
this.element.toggleAttribute(this.name, !!t && t !== u);
|
510
510
|
}
|
511
511
|
};
|
512
|
-
class
|
513
|
-
constructor(t,
|
514
|
-
super(t,
|
512
|
+
class As extends vt {
|
513
|
+
constructor(t, e, i, n, r) {
|
514
|
+
super(t, e, i, n, r), this.type = 5;
|
515
515
|
}
|
516
|
-
_$AI(t,
|
517
|
-
if ((t =
|
516
|
+
_$AI(t, e = this) {
|
517
|
+
if ((t = B(this, t, e, 0) ?? u) === E)
|
518
518
|
return;
|
519
519
|
const i = this._$AH, n = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== u && (i === u || n);
|
520
520
|
n && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
521
521
|
}
|
522
522
|
handleEvent(t) {
|
523
|
-
var
|
524
|
-
typeof this._$AH == "function" ? this._$AH.call(((
|
523
|
+
var e;
|
524
|
+
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
525
525
|
}
|
526
526
|
}
|
527
|
-
class
|
528
|
-
constructor(t,
|
529
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM =
|
527
|
+
class Cs {
|
528
|
+
constructor(t, e, i) {
|
529
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
530
530
|
}
|
531
531
|
get _$AU() {
|
532
532
|
return this._$AM._$AU;
|
533
533
|
}
|
534
534
|
_$AI(t) {
|
535
|
-
|
535
|
+
B(this, t);
|
536
536
|
}
|
537
537
|
}
|
538
|
-
const
|
539
|
-
|
540
|
-
const
|
541
|
-
const i = (
|
538
|
+
const Tt = G.litHtmlPolyfillSupport;
|
539
|
+
Tt == null || Tt(Y, Q), (G.litHtmlVersions ?? (G.litHtmlVersions = [])).push("3.0.2");
|
540
|
+
const Ss = (s, t, e) => {
|
541
|
+
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
542
542
|
let n = i._$litPart$;
|
543
543
|
if (n === void 0) {
|
544
|
-
const r = (
|
545
|
-
i._$litPart$ = n = new
|
544
|
+
const r = (e == null ? void 0 : e.renderBefore) ?? null;
|
545
|
+
i._$litPart$ = n = new Q(t.insertBefore(Z(), r), r, void 0, e ?? {});
|
546
546
|
}
|
547
|
-
return n._$AI(
|
547
|
+
return n._$AI(s), n;
|
548
548
|
};
|
549
549
|
/**
|
550
550
|
* @license
|
@@ -556,13 +556,13 @@ let v = class extends U {
|
|
556
556
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
557
557
|
}
|
558
558
|
createRenderRoot() {
|
559
|
-
var
|
559
|
+
var e;
|
560
560
|
const t = super.createRenderRoot();
|
561
|
-
return (
|
561
|
+
return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
|
562
562
|
}
|
563
563
|
update(t) {
|
564
|
-
const
|
565
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
564
|
+
const e = this.render();
|
565
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Ss(e, this.renderRoot, this.renderOptions);
|
566
566
|
}
|
567
567
|
connectedCallback() {
|
568
568
|
var t;
|
@@ -576,12 +576,12 @@ let v = class extends U {
|
|
576
576
|
return E;
|
577
577
|
}
|
578
578
|
};
|
579
|
-
var
|
580
|
-
v._$litElement$ = !0, v.finalized = !0, (
|
581
|
-
const
|
582
|
-
|
579
|
+
var Te;
|
580
|
+
v._$litElement$ = !0, v.finalized = !0, (Te = globalThis.litElementHydrateSupport) == null || Te.call(globalThis, { LitElement: v });
|
581
|
+
const Ot = globalThis.litElementPolyfillSupport;
|
582
|
+
Ot == null || Ot({ LitElement: v });
|
583
583
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
584
|
-
const
|
584
|
+
const le = { name: "mute", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.4283 11.6761L53.1768 9.53891C53.9347 8.61282 53.7982 7.24774 52.8722 6.48993C51.9461 5.73211 50.581 5.86852 49.8232 6.79461L36.3333 23.2822V13.3972C36.3332 11.6447 35.2774 10.0648 33.6583 9.39418C32.0391 8.72356 30.1755 9.09425 28.9362 10.3334L18.1029 21.1668H14.6667C9.88247 21.1722 6.00547 25.0492 6 29.8334V34.1668C6.00547 38.951 9.88247 42.828 14.6667 42.8334H18.1029L19.3315 44.0621L10.8232 54.4613C10.0653 55.3874 10.2018 56.7525 11.1279 57.5103C12.0539 58.2681 13.419 58.1317 14.1768 57.2056L22.411 47.1416L28.9362 53.6668C30.1755 54.9059 32.0391 55.2766 33.6583 54.606C35.2774 53.9354 36.3332 52.3555 36.3333 50.603V30.1254L42.6092 22.4549C44.2201 25.3756 45.044 28.6649 45 32.0001C45.1184 36.1899 43.7698 40.2896 41.1872 43.5909C40.409 44.5001 40.5152 45.8679 41.4243 46.6461C42.3334 47.4243 43.7012 47.3183 44.4795 46.4093C47.7313 42.3208 49.4486 37.2227 49.3333 32.0001C49.403 27.3538 48.067 22.7949 45.5005 18.9211L48.6119 15.1182C52.019 20.0793 53.7867 25.9829 53.6667 32.0001C53.6667 39.0587 51.4873 45.6518 47.6872 50.0909C46.909 51.0001 47.0152 52.3679 47.9243 53.1461C48.8334 53.9243 50.2012 53.8183 50.9795 52.9093C55.4408 47.6968 58 40.0764 58 32.0001C58 24.21 55.6006 16.8662 51.4283 11.6761ZM19.8971 38.5H14.6667C12.2744 38.4977 10.3357 36.559 10.3333 34.1667V29.8334C10.3357 27.4411 12.2744 25.5024 14.6667 25.5H19.8971L32 13.3972V28.5784L22.089 40.6919L19.8971 38.5ZM31.9997 50.603L25.1682 43.7715L31.9997 35.4218V50.603Z"/></svg>' }, Es = { name: "send", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>' }, ce = { name: "volume", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M33.6578 9.3322C32.0391 8.65799 30.1735 9.02919 28.9362 10.2717L18.1029 21.105H14.6667C9.88247 21.1105 6.00547 24.9875 6 29.7717V34.105C6.00547 38.8892 9.88247 42.7662 14.6667 42.7717H18.1029L28.9362 53.605C30.1755 54.8442 32.0391 55.2149 33.6583 54.5442C35.2774 53.8736 36.3332 52.2937 36.3333 50.5412V13.3355C36.3365 11.5817 35.2794 10.0001 33.6578 9.3322ZM32 50.5411L19.8971 38.4382H14.6667C12.2744 38.4358 10.3357 36.4971 10.3333 34.1049V29.7716C10.3357 27.3793 12.2744 25.4406 14.6667 25.4382H19.8971L32 13.3353V50.5411ZM49.3334 31.9383C49.4487 37.161 47.7314 42.2591 44.4796 46.3475C43.7013 47.2565 42.3335 47.3625 41.4244 46.5843C40.5153 45.8061 40.4092 44.4383 41.1873 43.5291C43.7699 40.2278 45.1185 36.1282 45.0001 31.9383C45.1185 27.7485 43.7699 23.6488 41.1873 20.3475C40.4092 19.4383 40.5153 18.0705 41.4244 17.2923C42.3335 16.5141 43.7013 16.6201 44.4796 17.5291C47.7314 21.6176 49.4487 26.7157 49.3334 31.9383ZM58.0001 31.9383C58.0001 40.0147 55.441 47.635 50.9796 52.8475C50.2013 53.7565 48.8335 53.8625 47.9244 53.0843C47.0153 52.3061 46.9092 50.9383 47.6873 50.0291C51.4874 45.59 53.6668 38.9969 53.6668 31.9383C53.6668 24.8797 51.4874 18.2866 47.6873 13.8475C46.9092 12.9383 47.0153 11.5705 47.9244 10.7923C48.8335 10.0141 50.2013 10.1201 50.9796 11.0291C55.441 16.2416 58.0001 23.862 58.0001 31.9383Z"/></svg>' }, M = {
|
585
585
|
allRenderFn: !1,
|
586
586
|
cmpDidLoad: !0,
|
587
587
|
cmpDidUnload: !1,
|
@@ -665,181 +665,181 @@ const Ss = { name: "send", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.o
|
|
665
665
|
transformTagName: !1,
|
666
666
|
attachStyles: !0
|
667
667
|
};
|
668
|
-
let N,
|
669
|
-
const bt = typeof window < "u" ? window : {},
|
668
|
+
let N, Me, yt, Ne = !1, lt = !1, Ft = !1, y = !1, de = null, Rt = !1;
|
669
|
+
const bt = typeof window < "u" ? window : {}, A = bt.document || { head: {} }, je = bt.HTMLElement || class {
|
670
670
|
}, m = {
|
671
671
|
$flags$: 0,
|
672
672
|
$resourcesUrl$: "",
|
673
|
-
jmp: (
|
674
|
-
raf: (
|
675
|
-
ael: (
|
676
|
-
rel: (
|
677
|
-
ce: (
|
678
|
-
},
|
679
|
-
let
|
673
|
+
jmp: (s) => s(),
|
674
|
+
raf: (s) => requestAnimationFrame(s),
|
675
|
+
ael: (s, t, e, i) => s.addEventListener(t, e, i),
|
676
|
+
rel: (s, t, e, i) => s.removeEventListener(t, e, i),
|
677
|
+
ce: (s, t) => new CustomEvent(s, t)
|
678
|
+
}, ks = /* @__PURE__ */ (() => {
|
679
|
+
let s = !1;
|
680
680
|
try {
|
681
|
-
|
681
|
+
A.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
682
682
|
get() {
|
683
|
-
|
683
|
+
s = !0;
|
684
684
|
}
|
685
685
|
}));
|
686
686
|
} catch {
|
687
687
|
}
|
688
|
-
return
|
689
|
-
})(),
|
688
|
+
return s;
|
689
|
+
})(), Ts = (s) => Promise.resolve(s), Os = /* @__PURE__ */ (() => {
|
690
690
|
try {
|
691
691
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
692
692
|
} catch {
|
693
693
|
}
|
694
694
|
return !1;
|
695
|
-
})(),
|
696
|
-
|
697
|
-
const a =
|
695
|
+
})(), Ie = (s, t, e, i) => {
|
696
|
+
e && e.map(([n, r, o]) => {
|
697
|
+
const a = Ls(s, n), l = Ps(t, o), c = Hs(n);
|
698
698
|
m.ael(a, r, l, c), (t.$rmListeners$ = t.$rmListeners$ || []).push(() => m.rel(a, r, l, c));
|
699
699
|
});
|
700
|
-
},
|
700
|
+
}, Ps = (s, t) => (e) => {
|
701
701
|
try {
|
702
|
-
|
702
|
+
M.lazyLoad || s.$hostElement$[t](e);
|
703
703
|
} catch (i) {
|
704
704
|
J(i);
|
705
705
|
}
|
706
|
-
},
|
707
|
-
passive: (
|
708
|
-
capture: (
|
709
|
-
} : (
|
710
|
-
},
|
711
|
-
let i = ht.get(
|
712
|
-
|
713
|
-
},
|
714
|
-
let n =
|
715
|
-
if (
|
706
|
+
}, Ls = (s, t) => t & 4 ? A : t & 8 ? bt : t & 16 ? A.body : s, Hs = (s) => ks ? {
|
707
|
+
passive: (s & 1) !== 0,
|
708
|
+
capture: (s & 2) !== 0
|
709
|
+
} : (s & 2) !== 0, he = "http://www.w3.org/1999/xlink", H = (s, t = "") => () => {
|
710
|
+
}, pe = /* @__PURE__ */ new WeakMap(), Rs = (s, t, e) => {
|
711
|
+
let i = ht.get(s);
|
712
|
+
Os && e ? (i = i || new CSSStyleSheet(), i.replace(t)) : i = t, ht.set(s, i);
|
713
|
+
}, Us = (s, t, e, i) => {
|
714
|
+
let n = De(t, e), r = ht.get(n);
|
715
|
+
if (s = s.nodeType === 11 ? s : A, r)
|
716
716
|
if (typeof r == "string") {
|
717
|
-
|
718
|
-
let o =
|
719
|
-
o ||
|
717
|
+
s = s.head || s;
|
718
|
+
let o = pe.get(s), a;
|
719
|
+
o || pe.set(s, o = /* @__PURE__ */ new Set()), o.has(n) || (a = A.createElement("style"), a.innerHTML = r, s.insertBefore(a, s.querySelector("link")), o && o.add(n));
|
720
720
|
} else
|
721
|
-
|
721
|
+
s.adoptedStyleSheets.includes(r) || (s.adoptedStyleSheets = [...s.adoptedStyleSheets, r]);
|
722
722
|
return n;
|
723
|
-
},
|
724
|
-
const t =
|
725
|
-
i & 10 && (
|
726
|
-
},
|
723
|
+
}, Ms = (s) => {
|
724
|
+
const t = s.$cmpMeta$, e = s.$hostElement$, i = t.$flags$, n = H("attachStyles", t.$tagName$), r = Us(e.shadowRoot ? e.shadowRoot : e.getRootNode(), t, s.$modeName$);
|
725
|
+
i & 10 && (e["s-sc"] = r, e.classList.add(r + "-h"), i & 2 && e.classList.add(r + "-s")), n();
|
726
|
+
}, De = (s, t) => "sc-" + (t && s.$flags$ & 32 ? s.$tagName$ + "-" + t : s.$tagName$), Ns = (s) => hi.map((t) => t(s)).find((t) => !!t), ue = {}, js = "http://www.w3.org/2000/svg", Is = "http://www.w3.org/1999/xhtml", Ds = (s) => s != null, Wt = (s) => (s = typeof s, s === "object" || s === "function"), I = (s, t, ...e) => {
|
727
727
|
let i = null, n = null, r = null, o = !1, a = !1, l = [];
|
728
728
|
const c = (h) => {
|
729
729
|
for (let p = 0; p < h.length; p++)
|
730
|
-
i = h[p], Array.isArray(i) ? c(i) : i != null && typeof i != "boolean" && ((o = typeof
|
730
|
+
i = h[p], Array.isArray(i) ? c(i) : i != null && typeof i != "boolean" && ((o = typeof s != "function" && !Wt(i)) && (i = String(i)), o && a ? l[l.length - 1].$text$ += i : l.push(o ? ct(null, i) : i), a = o);
|
731
731
|
};
|
732
|
-
if (c(
|
732
|
+
if (c(e), t) {
|
733
733
|
t.key && (n = t.key), t.name && (r = t.name);
|
734
734
|
{
|
735
735
|
const h = t.className || t.class;
|
736
736
|
h && (t.class = typeof h != "object" ? h : Object.keys(h).filter((p) => h[p]).join(" "));
|
737
737
|
}
|
738
738
|
}
|
739
|
-
if (typeof
|
740
|
-
return
|
741
|
-
const d = ct(
|
739
|
+
if (typeof s == "function")
|
740
|
+
return s(t === null ? {} : t, l, zs);
|
741
|
+
const d = ct(s, null);
|
742
742
|
return d.$attrs$ = t, l.length > 0 && (d.$children$ = l), d.$key$ = n, d.$name$ = r, d;
|
743
|
-
}, ct = (
|
744
|
-
const
|
743
|
+
}, ct = (s, t) => {
|
744
|
+
const e = {
|
745
745
|
$flags$: 0,
|
746
|
-
$tag$:
|
746
|
+
$tag$: s,
|
747
747
|
$text$: t,
|
748
748
|
$elm$: null,
|
749
749
|
$children$: null
|
750
750
|
};
|
751
|
-
return
|
752
|
-
},
|
753
|
-
forEach: (
|
754
|
-
map: (
|
755
|
-
},
|
756
|
-
vattrs:
|
757
|
-
vchildren:
|
758
|
-
vkey:
|
759
|
-
vname:
|
760
|
-
vtag:
|
761
|
-
vtext:
|
762
|
-
}),
|
763
|
-
if (typeof
|
764
|
-
const
|
765
|
-
return
|
766
|
-
}
|
767
|
-
const t = ct(
|
768
|
-
return t.$attrs$ =
|
769
|
-
},
|
770
|
-
if (
|
771
|
-
let o =
|
751
|
+
return e.$attrs$ = null, e.$key$ = null, e.$name$ = null, e;
|
752
|
+
}, Gt = {}, Bs = (s) => s && s.$tag$ === Gt, zs = {
|
753
|
+
forEach: (s, t) => s.map(fe).forEach(t),
|
754
|
+
map: (s, t) => s.map(fe).map(t).map(Fs)
|
755
|
+
}, fe = (s) => ({
|
756
|
+
vattrs: s.$attrs$,
|
757
|
+
vchildren: s.$children$,
|
758
|
+
vkey: s.$key$,
|
759
|
+
vname: s.$name$,
|
760
|
+
vtag: s.$tag$,
|
761
|
+
vtext: s.$text$
|
762
|
+
}), Fs = (s) => {
|
763
|
+
if (typeof s.vtag == "function") {
|
764
|
+
const e = Object.assign({}, s.vattrs);
|
765
|
+
return s.vkey && (e.key = s.vkey), s.vname && (e.name = s.vname), I(s.vtag, e, ...s.vchildren || []);
|
766
|
+
}
|
767
|
+
const t = ct(s.vtag, s.vtext);
|
768
|
+
return t.$attrs$ = s.vattrs, t.$children$ = s.vchildren, t.$key$ = s.vkey, t.$name$ = s.vname, t;
|
769
|
+
}, ge = (s, t, e, i, n, r) => {
|
770
|
+
if (e !== i) {
|
771
|
+
let o = ye(s, t), a = t.toLowerCase();
|
772
772
|
if (t === "class") {
|
773
|
-
const l =
|
773
|
+
const l = s.classList, c = $e(e), d = $e(i);
|
774
774
|
l.remove(...c.filter((h) => h && !d.includes(h))), l.add(...d.filter((h) => h && !c.includes(h)));
|
775
775
|
} else if (t === "style") {
|
776
|
-
for (const l in
|
777
|
-
(!i || i[l] == null) && (l.includes("-") ?
|
776
|
+
for (const l in e)
|
777
|
+
(!i || i[l] == null) && (l.includes("-") ? s.style.removeProperty(l) : s.style[l] = "");
|
778
778
|
for (const l in i)
|
779
|
-
(!
|
779
|
+
(!e || i[l] !== e[l]) && (l.includes("-") ? s.style.setProperty(l, i[l]) : s.style[l] = i[l]);
|
780
780
|
} else if (t !== "key")
|
781
781
|
if (t === "ref")
|
782
|
-
i && i(
|
783
|
-
else if (!
|
784
|
-
t[2] === "-" ? t = t.slice(3) :
|
782
|
+
i && i(s);
|
783
|
+
else if (!s.__lookupSetter__(t) && t[0] === "o" && t[1] === "n")
|
784
|
+
t[2] === "-" ? t = t.slice(3) : ye(bt, a) ? t = a.slice(2) : t = a[2] + t.slice(3), e && m.rel(s, t, e, !1), i && m.ael(s, t, i, !1);
|
785
785
|
else {
|
786
|
-
const l =
|
786
|
+
const l = Wt(i);
|
787
787
|
if ((o || l && i !== null) && !n)
|
788
788
|
try {
|
789
|
-
if (
|
790
|
-
|
789
|
+
if (s.tagName.includes("-"))
|
790
|
+
s[t] = i;
|
791
791
|
else {
|
792
792
|
let d = i ?? "";
|
793
|
-
t === "list" ? o = !1 : (
|
793
|
+
t === "list" ? o = !1 : (e == null || s[t] != d) && (s[t] = d);
|
794
794
|
}
|
795
795
|
} catch {
|
796
796
|
}
|
797
797
|
let c = !1;
|
798
|
-
a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, c = !0), i == null || i === !1 ? (i !== !1 ||
|
798
|
+
a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, c = !0), i == null || i === !1 ? (i !== !1 || s.getAttribute(t) === "") && (c ? s.removeAttributeNS(he, t) : s.removeAttribute(t)) : (!o || r & 4 || n) && !l && (i = i === !0 ? "" : i, c ? s.setAttributeNS(he, t, i) : s.setAttribute(t, i));
|
799
799
|
}
|
800
800
|
}
|
801
|
-
},
|
802
|
-
const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r =
|
801
|
+
}, Ws = /\s/, $e = (s) => s ? s.split(Ws) : [], Be = (s, t, e, i) => {
|
802
|
+
const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = s && s.$attrs$ || ue, o = t.$attrs$ || ue;
|
803
803
|
for (i in r)
|
804
|
-
i in o ||
|
804
|
+
i in o || ge(n, i, r[i], void 0, e, t.$flags$);
|
805
805
|
for (i in o)
|
806
|
-
|
807
|
-
}, dt = (
|
808
|
-
let n = t.$children$[
|
809
|
-
if (
|
806
|
+
ge(n, i, r[i], o[i], e, t.$flags$);
|
807
|
+
}, dt = (s, t, e, i) => {
|
808
|
+
let n = t.$children$[e], r = 0, o, a, l;
|
809
|
+
if (Ne || (Ft = !0, n.$tag$ === "slot" && (N && i.classList.add(N + "-s"), n.$flags$ |= n.$children$ ? (
|
810
810
|
// slot element has fallback content
|
811
811
|
2
|
812
812
|
) : (
|
813
813
|
// slot element does not have fallback content
|
814
814
|
1
|
815
815
|
))), n.$text$ !== null)
|
816
|
-
o = n.$elm$ =
|
816
|
+
o = n.$elm$ = A.createTextNode(n.$text$);
|
817
817
|
else if (n.$flags$ & 1)
|
818
|
-
o = n.$elm$ =
|
818
|
+
o = n.$elm$ = A.createTextNode("");
|
819
819
|
else {
|
820
|
-
if (y || (y = n.$tag$ === "svg"), o = n.$elm$ =
|
820
|
+
if (y || (y = n.$tag$ === "svg"), o = n.$elm$ = A.createElementNS(y ? js : Is, n.$flags$ & 2 ? "slot-fb" : n.$tag$), y && n.$tag$ === "foreignObject" && (y = !1), Be(null, n, y), Ds(N) && o["s-si"] !== N && o.classList.add(o["s-si"] = N), n.$children$)
|
821
821
|
for (r = 0; r < n.$children$.length; ++r)
|
822
|
-
a = dt(
|
822
|
+
a = dt(s, n, r, o), a && o.appendChild(a);
|
823
823
|
n.$tag$ === "svg" ? y = !1 : o.tagName === "foreignObject" && (y = !0);
|
824
824
|
}
|
825
|
-
return o["s-hn"] = yt, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] =
|
826
|
-
},
|
825
|
+
return o["s-hn"] = yt, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = Me, o["s-sn"] = n.$name$ || "", l = s && s.$children$ && s.$children$[e], l && l.$tag$ === n.$tag$ && s.$elm$ && K(s.$elm$, !1)), o;
|
826
|
+
}, K = (s, t) => {
|
827
827
|
m.$flags$ |= 1;
|
828
|
-
const
|
829
|
-
for (let i =
|
830
|
-
const n =
|
831
|
-
n["s-hn"] !== yt && n["s-ol"] && (
|
828
|
+
const e = s.childNodes;
|
829
|
+
for (let i = e.length - 1; i >= 0; i--) {
|
830
|
+
const n = e[i];
|
831
|
+
n["s-hn"] !== yt && n["s-ol"] && (We(n).insertBefore(n, qt(n)), n["s-ol"].remove(), n["s-ol"] = void 0, Ft = !0), t && K(n, t);
|
832
832
|
}
|
833
833
|
m.$flags$ &= -2;
|
834
|
-
},
|
835
|
-
let o =
|
834
|
+
}, ze = (s, t, e, i, n, r) => {
|
835
|
+
let o = s["s-cr"] && s["s-cr"].parentNode || s, a;
|
836
836
|
for (o.shadowRoot && o.tagName === yt && (o = o.shadowRoot); n <= r; ++n)
|
837
|
-
i[n] && (a = dt(null,
|
838
|
-
},
|
839
|
-
for (; t <=
|
840
|
-
(i =
|
841
|
-
},
|
842
|
-
let n = 0, r = 0, o = 0, a = 0, l = t.length - 1, c = t[0], d = t[l], h = i.length - 1, p = i[0], g = i[h],
|
837
|
+
i[n] && (a = dt(null, e, n, s), a && (i[n].$elm$ = a, o.insertBefore(a, qt(t))));
|
838
|
+
}, Fe = (s, t, e, i, n) => {
|
839
|
+
for (; t <= e; ++t)
|
840
|
+
(i = s[t]) && (n = i.$elm$, Ze(i), lt = !0, n["s-ol"] ? n["s-ol"].remove() : K(n, !0), n.remove());
|
841
|
+
}, Gs = (s, t, e, i) => {
|
842
|
+
let n = 0, r = 0, o = 0, a = 0, l = t.length - 1, c = t[0], d = t[l], h = i.length - 1, p = i[0], g = i[h], w, st;
|
843
843
|
for (; n <= l && r <= h; )
|
844
844
|
if (c == null)
|
845
845
|
c = t[++n];
|
@@ -850,70 +850,70 @@ const bt = typeof window < "u" ? window : {}, w = bt.document || { head: {} }, N
|
|
850
850
|
else if (g == null)
|
851
851
|
g = i[--h];
|
852
852
|
else if (it(c, p))
|
853
|
-
|
853
|
+
j(c, p), c = t[++n], p = i[++r];
|
854
854
|
else if (it(d, g))
|
855
|
-
|
855
|
+
j(d, g), d = t[--l], g = i[--h];
|
856
856
|
else if (it(c, g))
|
857
|
-
(c.$tag$ === "slot" || g.$tag$ === "slot") &&
|
857
|
+
(c.$tag$ === "slot" || g.$tag$ === "slot") && K(c.$elm$.parentNode, !1), j(c, g), s.insertBefore(c.$elm$, d.$elm$.nextSibling), c = t[++n], g = i[--h];
|
858
858
|
else if (it(d, p))
|
859
|
-
(c.$tag$ === "slot" || g.$tag$ === "slot") &&
|
859
|
+
(c.$tag$ === "slot" || g.$tag$ === "slot") && K(d.$elm$.parentNode, !1), j(d, p), s.insertBefore(d.$elm$, c.$elm$), d = t[--l], p = i[++r];
|
860
860
|
else {
|
861
861
|
for (o = -1, a = n; a <= l; ++a)
|
862
862
|
if (t[a] && t[a].$key$ !== null && t[a].$key$ === p.$key$) {
|
863
863
|
o = a;
|
864
864
|
break;
|
865
865
|
}
|
866
|
-
o >= 0 ? (st = t[o], st.$tag$ !== p.$tag$ ?
|
866
|
+
o >= 0 ? (st = t[o], st.$tag$ !== p.$tag$ ? w = dt(t && t[r], e, o, s) : (j(st, p), t[o] = void 0, w = st.$elm$), p = i[++r]) : (w = dt(t && t[r], e, r, s), p = i[++r]), w && We(c.$elm$).insertBefore(w, qt(c.$elm$));
|
867
867
|
}
|
868
|
-
n > l ?
|
869
|
-
}, it = (
|
870
|
-
const
|
868
|
+
n > l ? ze(s, i[h + 1] == null ? null : i[h + 1].$elm$, e, i, r, h) : r > h && Fe(t, n, l);
|
869
|
+
}, it = (s, t) => s.$tag$ === t.$tag$ ? s.$tag$ === "slot" ? s.$name$ === t.$name$ : s.$key$ === t.$key$ : !1, qt = (s) => s && s["s-ol"] || s, We = (s) => (s["s-ol"] ? s["s-ol"] : s).parentNode, j = (s, t) => {
|
870
|
+
const e = t.$elm$ = s.$elm$, i = s.$children$, n = t.$children$, r = t.$tag$, o = t.$text$;
|
871
871
|
let a;
|
872
|
-
o === null ? (y = r === "svg" ? !0 : r === "foreignObject" ? !1 : y, r === "slot" ||
|
873
|
-
},
|
874
|
-
let t =
|
872
|
+
o === null ? (y = r === "svg" ? !0 : r === "foreignObject" ? !1 : y, r === "slot" || Be(s, t, y), i !== null && n !== null ? Gs(e, i, t, n) : n !== null ? (s.$text$ !== null && (e.textContent = ""), ze(e, null, t, n, 0, n.length - 1)) : i !== null && Fe(i, 0, i.length - 1), y && r === "svg" && (y = !1)) : (a = e["s-cr"]) ? a.parentNode.textContent = o : s.$text$ !== o && (e.data = o);
|
873
|
+
}, Ge = (s) => {
|
874
|
+
let t = s.childNodes, e, i, n, r, o, a;
|
875
875
|
for (i = 0, n = t.length; i < n; i++)
|
876
|
-
if (
|
877
|
-
if (
|
878
|
-
for (o =
|
879
|
-
if (a = t[r].nodeType, t[r]["s-hn"] !==
|
876
|
+
if (e = t[i], e.nodeType === 1) {
|
877
|
+
if (e["s-sr"]) {
|
878
|
+
for (o = e["s-sn"], e.hidden = !1, r = 0; r < n; r++)
|
879
|
+
if (a = t[r].nodeType, t[r]["s-hn"] !== e["s-hn"] || o !== "") {
|
880
880
|
if (a === 1 && o === t[r].getAttribute("slot")) {
|
881
|
-
|
881
|
+
e.hidden = !0;
|
882
882
|
break;
|
883
883
|
}
|
884
884
|
} else if (a === 1 || a === 3 && t[r].textContent.trim() !== "") {
|
885
|
-
|
885
|
+
e.hidden = !0;
|
886
886
|
break;
|
887
887
|
}
|
888
888
|
}
|
889
|
-
|
889
|
+
Ge(e);
|
890
890
|
}
|
891
|
-
}, b = [],
|
892
|
-
let t,
|
891
|
+
}, b = [], qe = (s) => {
|
892
|
+
let t, e, i, n, r, o, a = 0, l = s.childNodes, c = l.length;
|
893
893
|
for (; a < c; a++) {
|
894
|
-
if (t = l[a], t["s-sr"] && (
|
895
|
-
for (i =
|
896
|
-
|
894
|
+
if (t = l[a], t["s-sr"] && (e = t["s-cr"]) && e.parentNode)
|
895
|
+
for (i = e.parentNode.childNodes, n = t["s-sn"], o = i.length - 1; o >= 0; o--)
|
896
|
+
e = i[o], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== t["s-hn"] && (me(e, n) ? (r = b.find((d) => d.$nodeToRelocate$ === e), lt = !0, e["s-sn"] = e["s-sn"] || n, r ? r.$slotRefNode$ = t : b.push({
|
897
897
|
$slotRefNode$: t,
|
898
|
-
$nodeToRelocate$:
|
899
|
-
}),
|
900
|
-
|
901
|
-
})) : b.some((d) => d.$nodeToRelocate$ ===
|
902
|
-
$nodeToRelocate$:
|
898
|
+
$nodeToRelocate$: e
|
899
|
+
}), e["s-sr"] && b.map((d) => {
|
900
|
+
me(d.$nodeToRelocate$, e["s-sn"]) && (r = b.find((h) => h.$nodeToRelocate$ === e), r && !d.$slotRefNode$ && (d.$slotRefNode$ = r.$slotRefNode$));
|
901
|
+
})) : b.some((d) => d.$nodeToRelocate$ === e) || b.push({
|
902
|
+
$nodeToRelocate$: e
|
903
903
|
}));
|
904
|
-
t.nodeType === 1 &&
|
904
|
+
t.nodeType === 1 && qe(t);
|
905
905
|
}
|
906
|
-
},
|
907
|
-
|
908
|
-
},
|
909
|
-
const
|
910
|
-
yt =
|
906
|
+
}, me = (s, t) => s.nodeType === 1 ? s.getAttribute("slot") === null && t === "" || s.getAttribute("slot") === t : s["s-sn"] === t ? !0 : t === "", Ze = (s) => {
|
907
|
+
s.$attrs$ && s.$attrs$.ref && s.$attrs$.ref(null), s.$children$ && s.$children$.map(Ze);
|
908
|
+
}, qs = (s, t) => {
|
909
|
+
const e = s.$hostElement$, i = s.$cmpMeta$, n = s.$vnode$ || ct(null, null), r = Bs(t) ? t : I(null, null, t);
|
910
|
+
yt = e.tagName, i.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, i.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = e[o])), r.$tag$ = null, r.$flags$ |= 4, s.$vnode$ = r, r.$elm$ = n.$elm$ = e.shadowRoot || e, N = e["s-sc"], Me = e["s-cr"], Ne = (i.$flags$ & 1) !== 0, lt = !1, j(n, r);
|
911
911
|
{
|
912
|
-
if (m.$flags$ |= 1,
|
913
|
-
|
912
|
+
if (m.$flags$ |= 1, Ft) {
|
913
|
+
qe(r.$elm$);
|
914
914
|
let o, a, l, c, d, h, p = 0;
|
915
915
|
for (; p < b.length; p++)
|
916
|
-
o = b[p], a = o.$nodeToRelocate$, a["s-ol"] || (l =
|
916
|
+
o = b[p], a = o.$nodeToRelocate$, a["s-ol"] || (l = A.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
|
917
917
|
for (p = 0; p < b.length; p++)
|
918
918
|
if (o = b[p], a = o.$nodeToRelocate$, o.$slotRefNode$) {
|
919
919
|
for (c = o.$slotRefNode$.parentNode, d = o.$slotRefNode$.nextSibling, l = a["s-ol"]; l = l.previousSibling; )
|
@@ -925,83 +925,83 @@ const bt = typeof window < "u" ? window : {}, w = bt.document || { head: {} }, N
|
|
925
925
|
} else
|
926
926
|
a.nodeType === 1 && (a.hidden = !0);
|
927
927
|
}
|
928
|
-
lt &&
|
928
|
+
lt && Ge(r.$elm$), m.$flags$ &= -2, b.length = 0;
|
929
929
|
}
|
930
|
-
},
|
931
|
-
const i =
|
930
|
+
}, Zs = (s) => s, Xs = (s, t, e) => {
|
931
|
+
const i = Zs(s);
|
932
932
|
return {
|
933
|
-
emit: (n) =>
|
934
|
-
bubbles: !!(
|
935
|
-
composed: !!(
|
936
|
-
cancelable: !!(
|
933
|
+
emit: (n) => Ys(i, t, {
|
934
|
+
bubbles: !!(e & 4),
|
935
|
+
composed: !!(e & 2),
|
936
|
+
cancelable: !!(e & 1),
|
937
937
|
detail: n
|
938
938
|
})
|
939
939
|
};
|
940
|
-
},
|
941
|
-
const i = m.ce(t,
|
942
|
-
return
|
943
|
-
},
|
944
|
-
},
|
945
|
-
const
|
940
|
+
}, Ys = (s, t, e) => {
|
941
|
+
const i = m.ce(t, e);
|
942
|
+
return s.dispatchEvent(i), i;
|
943
|
+
}, Ks = (s, t) => {
|
944
|
+
}, Xe = (s, t) => (s.$flags$ |= 16, Ks(s, s.$ancestorComponent$), fi(() => Qs(s, t))), Qs = (s, t) => {
|
945
|
+
const e = s.$hostElement$, i = H("scheduleUpdate", s.$cmpMeta$.$tagName$), n = e;
|
946
946
|
let r;
|
947
|
-
return t ? r = D(n, "componentWillLoad") : r = D(n, "componentWillUpdate"), r =
|
948
|
-
},
|
949
|
-
const i =
|
950
|
-
i["s-rc"],
|
951
|
-
const r =
|
952
|
-
|
953
|
-
},
|
947
|
+
return t ? r = D(n, "componentWillLoad") : r = D(n, "componentWillUpdate"), r = ve(r, () => D(n, "componentWillRender")), i(), ve(r, () => Js(s, n, t));
|
948
|
+
}, Js = async (s, t, e) => {
|
949
|
+
const i = s.$hostElement$, n = H("update", s.$cmpMeta$.$tagName$);
|
950
|
+
i["s-rc"], e && Ms(s);
|
951
|
+
const r = H("render", s.$cmpMeta$.$tagName$);
|
952
|
+
Vs(s, t, i), r(), n(), ti(s);
|
953
|
+
}, Vs = (s, t, e) => {
|
954
954
|
try {
|
955
|
-
|
955
|
+
de = t, t = t.render && t.render(), s.$flags$ &= -17, s.$flags$ |= 2, (M.hasRenderFn || M.reflect) && (M.vdomRender || M.reflect) && (M.hydrateServerSide || qs(s, t));
|
956
956
|
} catch (a) {
|
957
|
-
J(a,
|
958
|
-
}
|
959
|
-
return
|
960
|
-
},
|
961
|
-
const t =
|
962
|
-
|
963
|
-
}, D = (
|
964
|
-
if (
|
957
|
+
J(a, s.$hostElement$);
|
958
|
+
}
|
959
|
+
return de = null, null;
|
960
|
+
}, ti = (s) => {
|
961
|
+
const t = s.$cmpMeta$.$tagName$, e = s.$hostElement$, i = H("postUpdate", t), n = e;
|
962
|
+
s.$ancestorComponent$, D(n, "componentDidRender"), s.$flags$ & 64 ? (D(n, "componentDidUpdate"), i()) : (s.$flags$ |= 64, D(n, "componentDidLoad"), i());
|
963
|
+
}, D = (s, t, e) => {
|
964
|
+
if (s && s[t])
|
965
965
|
try {
|
966
|
-
return
|
966
|
+
return s[t](e);
|
967
967
|
} catch (i) {
|
968
968
|
J(i);
|
969
969
|
}
|
970
|
-
},
|
971
|
-
const n = _t(
|
972
|
-
|
973
|
-
const c = Number.isNaN(o) && Number.isNaN(
|
974
|
-
if (
|
975
|
-
n.$instanceValues$.set(t,
|
970
|
+
}, ve = (s, t) => s && s.then ? s.then(t) : t(), ei = (s, t) => s != null && !Wt(s) ? t & 4 ? s === "false" ? !1 : s === "" || !!s : t & 2 ? parseFloat(s) : t & 1 ? String(s) : s : s, si = (s, t) => _t(s).$instanceValues$.get(t), ii = (s, t, e, i) => {
|
971
|
+
const n = _t(s), r = s, o = n.$instanceValues$.get(t), a = n.$flags$, l = r;
|
972
|
+
e = ei(e, i.$members$[t][0]);
|
973
|
+
const c = Number.isNaN(o) && Number.isNaN(e);
|
974
|
+
if (e !== o && !c) {
|
975
|
+
n.$instanceValues$.set(t, e);
|
976
976
|
{
|
977
977
|
if (i.$watchers$ && a & 128) {
|
978
978
|
const h = i.$watchers$[t];
|
979
979
|
h && h.map((p) => {
|
980
980
|
try {
|
981
|
-
l[p](
|
981
|
+
l[p](e, o, t);
|
982
982
|
} catch (g) {
|
983
983
|
J(g, r);
|
984
984
|
}
|
985
985
|
});
|
986
986
|
}
|
987
987
|
if ((a & 18) === 2) {
|
988
|
-
if (l.componentShouldUpdate && l.componentShouldUpdate(
|
988
|
+
if (l.componentShouldUpdate && l.componentShouldUpdate(e, o, t) === !1)
|
989
989
|
return;
|
990
|
-
|
990
|
+
Xe(n, !1);
|
991
991
|
}
|
992
992
|
}
|
993
993
|
}
|
994
|
-
},
|
994
|
+
}, ni = (s, t, e) => {
|
995
995
|
if (t.$members$) {
|
996
|
-
|
997
|
-
const i = Object.entries(t.$members$), n =
|
996
|
+
s.watchers && (t.$watchers$ = s.watchers);
|
997
|
+
const i = Object.entries(t.$members$), n = s.prototype;
|
998
998
|
i.map(([r, [o]]) => {
|
999
999
|
(o & 31 || o & 32) && Object.defineProperty(n, r, {
|
1000
1000
|
get() {
|
1001
|
-
return
|
1001
|
+
return si(this, r);
|
1002
1002
|
},
|
1003
1003
|
set(a) {
|
1004
|
-
|
1004
|
+
ii(this, r, a, t);
|
1005
1005
|
},
|
1006
1006
|
configurable: !0,
|
1007
1007
|
enumerable: !0
|
@@ -1018,7 +1018,7 @@ const bt = typeof window < "u" ? window : {}, w = bt.document || { head: {} }, N
|
|
1018
1018
|
return;
|
1019
1019
|
this[c] = l === null && typeof this[c] == "boolean" ? !1 : l;
|
1020
1020
|
});
|
1021
|
-
},
|
1021
|
+
}, s.observedAttributes = i.filter(
|
1022
1022
|
([o, a]) => a[0] & 15
|
1023
1023
|
/* HasAttribute */
|
1024
1024
|
).map(([o, a]) => {
|
@@ -1027,137 +1027,137 @@ const bt = typeof window < "u" ? window : {}, w = bt.document || { head: {} }, N
|
|
1027
1027
|
});
|
1028
1028
|
}
|
1029
1029
|
}
|
1030
|
-
return
|
1031
|
-
},
|
1032
|
-
if (!(t.$flags$ & 32) && (n =
|
1030
|
+
return s;
|
1031
|
+
}, ri = async (s, t, e, i, n) => {
|
1032
|
+
if (!(t.$flags$ & 32) && (n = s.constructor, t.$flags$ |= 32, customElements.whenDefined(e.$tagName$).then(() => t.$flags$ |= 128), n.style)) {
|
1033
1033
|
let o = n.style;
|
1034
|
-
typeof o != "string" && (o = o[t.$modeName$ =
|
1035
|
-
const a =
|
1034
|
+
typeof o != "string" && (o = o[t.$modeName$ = Ns(s)]);
|
1035
|
+
const a = De(e, t.$modeName$);
|
1036
1036
|
if (!ht.has(a)) {
|
1037
|
-
const l =
|
1038
|
-
|
1037
|
+
const l = H("registerStyles", e.$tagName$);
|
1038
|
+
Rs(a, o, !!(e.$flags$ & 1)), l();
|
1039
1039
|
}
|
1040
1040
|
}
|
1041
|
-
t.$ancestorComponent$, (() =>
|
1042
|
-
},
|
1043
|
-
},
|
1041
|
+
t.$ancestorComponent$, (() => Xe(t, !0))();
|
1042
|
+
}, oi = (s) => {
|
1043
|
+
}, ai = (s) => {
|
1044
1044
|
if (!(m.$flags$ & 1)) {
|
1045
|
-
const t = _t(
|
1046
|
-
t.$flags$ & 1 ? (
|
1047
|
-
if (r & 31 &&
|
1048
|
-
const o =
|
1049
|
-
delete
|
1050
|
-
}
|
1051
|
-
}),
|
1052
|
-
}
|
1053
|
-
},
|
1054
|
-
const t =
|
1055
|
-
t["s-cn"] = !0,
|
1056
|
-
},
|
1045
|
+
const t = _t(s), e = t.$cmpMeta$, i = H("connectedCallback", e.$tagName$);
|
1046
|
+
t.$flags$ & 1 ? (Ie(s, t, e.$listeners$), oi(t.$lazyInstance$)) : (t.$flags$ |= 1, e.$flags$ & 12 && li(s), e.$members$ && Object.entries(e.$members$).map(([n, [r]]) => {
|
1047
|
+
if (r & 31 && s.hasOwnProperty(n)) {
|
1048
|
+
const o = s[n];
|
1049
|
+
delete s[n], s[n] = o;
|
1050
|
+
}
|
1051
|
+
}), ri(s, t, e)), i();
|
1052
|
+
}
|
1053
|
+
}, li = (s) => {
|
1054
|
+
const t = s["s-cr"] = A.createComment("");
|
1055
|
+
t["s-cn"] = !0, s.insertBefore(t, s.firstChild);
|
1056
|
+
}, ci = (s) => {
|
1057
1057
|
if (!(m.$flags$ & 1)) {
|
1058
|
-
const t = _t(
|
1059
|
-
t.$rmListeners$ && (t.$rmListeners$.map((
|
1058
|
+
const t = _t(s);
|
1059
|
+
t.$rmListeners$ && (t.$rmListeners$.map((e) => e()), t.$rmListeners$ = void 0);
|
1060
1060
|
}
|
1061
|
-
},
|
1062
|
-
const
|
1061
|
+
}, Ye = (s, t) => {
|
1062
|
+
const e = {
|
1063
1063
|
$flags$: t[0],
|
1064
1064
|
$tagName$: t[1]
|
1065
1065
|
};
|
1066
|
-
|
1067
|
-
const i =
|
1068
|
-
return Object.assign(
|
1066
|
+
e.$members$ = t[2], e.$listeners$ = t[3], e.$watchers$ = s.$watchers$, e.$attrsToReflect$ = [];
|
1067
|
+
const i = s.prototype.connectedCallback, n = s.prototype.disconnectedCallback;
|
1068
|
+
return Object.assign(s.prototype, {
|
1069
1069
|
__registerHost() {
|
1070
|
-
|
1070
|
+
di(this, e);
|
1071
1071
|
},
|
1072
1072
|
connectedCallback() {
|
1073
|
-
|
1073
|
+
ai(this), i && i.call(this);
|
1074
1074
|
},
|
1075
1075
|
disconnectedCallback() {
|
1076
|
-
|
1076
|
+
ci(this), n && n.call(this);
|
1077
1077
|
},
|
1078
1078
|
__attachShadow() {
|
1079
1079
|
this.attachShadow({
|
1080
1080
|
mode: "open",
|
1081
|
-
delegatesFocus: !!(
|
1081
|
+
delegatesFocus: !!(e.$flags$ & 16)
|
1082
1082
|
});
|
1083
1083
|
}
|
1084
|
-
}),
|
1085
|
-
},
|
1086
|
-
const
|
1084
|
+
}), s.is = e.$tagName$, ni(s, e);
|
1085
|
+
}, Ke = /* @__PURE__ */ new WeakMap(), _t = (s) => Ke.get(s), di = (s, t) => {
|
1086
|
+
const e = {
|
1087
1087
|
$flags$: 0,
|
1088
|
-
$hostElement$:
|
1088
|
+
$hostElement$: s,
|
1089
1089
|
$cmpMeta$: t,
|
1090
1090
|
$instanceValues$: /* @__PURE__ */ new Map()
|
1091
1091
|
};
|
1092
|
-
return
|
1093
|
-
},
|
1094
|
-
|
1095
|
-
},
|
1096
|
-
for (let t = 0; t <
|
1092
|
+
return Ie(s, e, t.$listeners$), Ke.set(s, e);
|
1093
|
+
}, ye = (s, t) => t in s, J = (s, t) => (0, console.error)(s, t), ht = /* @__PURE__ */ new Map(), hi = [], be = [], Qe = [], pi = (s, t) => (e) => {
|
1094
|
+
s.push(e), Rt || (Rt = !0, t && m.$flags$ & 4 ? ui(Ut) : m.raf(Ut));
|
1095
|
+
}, _e = (s) => {
|
1096
|
+
for (let t = 0; t < s.length; t++)
|
1097
1097
|
try {
|
1098
|
-
|
1099
|
-
} catch (
|
1100
|
-
J(
|
1098
|
+
s[t](performance.now());
|
1099
|
+
} catch (e) {
|
1100
|
+
J(e);
|
1101
1101
|
}
|
1102
|
-
|
1102
|
+
s.length = 0;
|
1103
1103
|
}, Ut = () => {
|
1104
|
-
|
1105
|
-
},
|
1106
|
-
const { content: t = "", title:
|
1104
|
+
_e(be), _e(Qe), (Rt = be.length > 0) && m.raf(Ut);
|
1105
|
+
}, ui = (s) => Ts().then(s), fi = /* @__PURE__ */ pi(Qe, !0), gi = (s = {}) => {
|
1106
|
+
const { content: t = "", title: e, attributes: i = [] } = s;
|
1107
1107
|
let n = "", r = [
|
1108
1108
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
1109
1109
|
{ name: "fill", value: "currentColor" },
|
1110
1110
|
...i
|
1111
1111
|
];
|
1112
|
-
return
|
1113
|
-
},
|
1114
|
-
function
|
1115
|
-
return `${
|
1112
|
+
return e && (n = `<title>${e}</title>`), `<svg ${r.map((a) => `${a.name}="${a.value}"`).join(" ")}>${n}${t}</svg>`;
|
1113
|
+
}, $i = (s) => s.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
1114
|
+
function mi(s) {
|
1115
|
+
return `${s.getFullYear()}.${s.getMonth() + 1}`;
|
1116
1116
|
}
|
1117
|
-
class
|
1117
|
+
class vi {
|
1118
1118
|
constructor(t) {
|
1119
|
-
this.voca_component = t, this.voca_added =
|
1119
|
+
this.voca_component = t, this.voca_added = mi(/* @__PURE__ */ new Date());
|
1120
1120
|
}
|
1121
1121
|
}
|
1122
|
-
const
|
1122
|
+
const yi = "telia-vst{display:none}", bi = /* @__PURE__ */ Ye(class extends je {
|
1123
1123
|
constructor() {
|
1124
|
-
super(), this.__registerHost(), this.vocaInternalUStats =
|
1124
|
+
super(), this.__registerHost(), this.vocaInternalUStats = Xs(this, "vocaInternalUStats", 7);
|
1125
1125
|
}
|
1126
1126
|
connectedCallback() {
|
1127
|
-
this.vocaInternalUStats.emit(new
|
1127
|
+
this.vocaInternalUStats.emit(new vi(this.dataTrackingId));
|
1128
1128
|
}
|
1129
1129
|
render() {
|
1130
|
-
return
|
1130
|
+
return I(Gt, null);
|
1131
1131
|
}
|
1132
1132
|
static get style() {
|
1133
|
-
return
|
1133
|
+
return yi;
|
1134
1134
|
}
|
1135
1135
|
}, [0, "telia-vst", {
|
1136
1136
|
dataTrackingId: [1, "data-tracking-id"]
|
1137
1137
|
}]);
|
1138
|
-
function
|
1138
|
+
function Je() {
|
1139
1139
|
if (typeof customElements > "u")
|
1140
1140
|
return;
|
1141
1141
|
["telia-vst"].forEach((t) => {
|
1142
1142
|
switch (t) {
|
1143
1143
|
case "telia-vst":
|
1144
|
-
customElements.get(t) || customElements.define(t,
|
1144
|
+
customElements.get(t) || customElements.define(t, bi);
|
1145
1145
|
break;
|
1146
1146
|
}
|
1147
1147
|
});
|
1148
1148
|
}
|
1149
|
-
|
1150
|
-
function
|
1149
|
+
Je();
|
1150
|
+
function Mt() {
|
1151
1151
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
1152
1152
|
}
|
1153
|
-
function
|
1154
|
-
if (typeof
|
1155
|
-
return
|
1153
|
+
function _i() {
|
1154
|
+
if (typeof Mt().vocadsIcons !== void 0)
|
1155
|
+
return Mt().vocadsIcons;
|
1156
1156
|
}
|
1157
|
-
function
|
1158
|
-
return
|
1157
|
+
function xi() {
|
1158
|
+
return Mt().vocadsIconsRegistered;
|
1159
1159
|
}
|
1160
|
-
const
|
1160
|
+
const wi = ".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))}", Ai = /* @__PURE__ */ Ye(class extends je {
|
1161
1161
|
constructor() {
|
1162
1162
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
1163
1163
|
}
|
@@ -1169,27 +1169,27 @@ const _i = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
1169
1169
|
getSvgString() {
|
1170
1170
|
if (this.svg)
|
1171
1171
|
return this.svg;
|
1172
|
-
if (
|
1173
|
-
const
|
1174
|
-
return
|
1172
|
+
if (xi() && this.name) {
|
1173
|
+
const s = _i();
|
1174
|
+
return s[this.name] ? s[this.name].svg : "";
|
1175
1175
|
}
|
1176
1176
|
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"), "";
|
1177
1177
|
}
|
1178
1178
|
render() {
|
1179
|
-
let
|
1179
|
+
let s = this.getSvgString(), t = [{ name: "viewBox", value: "0 0 64 64" }];
|
1180
1180
|
this.allyTitle ? t = [...t, { name: "role", value: "img" }] : t = [
|
1181
1181
|
...t,
|
1182
1182
|
{ name: "aria-hidden", value: "true" }
|
1183
1183
|
];
|
1184
|
-
const
|
1185
|
-
content:
|
1184
|
+
const e = gi({
|
1185
|
+
content: $i(s),
|
1186
1186
|
attributes: t,
|
1187
1187
|
title: this.allyTitle
|
1188
1188
|
});
|
1189
|
-
return
|
1189
|
+
return I(Gt, { class: `telia-icon telia-icon--${this.size}` }, I("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: e }), I("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
1190
1190
|
}
|
1191
1191
|
static get style() {
|
1192
|
-
return
|
1192
|
+
return wi;
|
1193
1193
|
}
|
1194
1194
|
}, [0, "telia-icon", {
|
1195
1195
|
name: [1],
|
@@ -1198,97 +1198,97 @@ const _i = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
1198
1198
|
allyTitle: [1, "ally-title"],
|
1199
1199
|
dataTestid: [1, "data-testid"]
|
1200
1200
|
}]);
|
1201
|
-
function
|
1201
|
+
function Ci() {
|
1202
1202
|
if (typeof customElements > "u")
|
1203
1203
|
return;
|
1204
1204
|
["telia-icon", "telia-vst"].forEach((t) => {
|
1205
1205
|
switch (t) {
|
1206
1206
|
case "telia-icon":
|
1207
|
-
customElements.get(t) || customElements.define(t,
|
1207
|
+
customElements.get(t) || customElements.define(t, Ai);
|
1208
1208
|
break;
|
1209
1209
|
case "telia-vst":
|
1210
|
-
customElements.get(t) ||
|
1210
|
+
customElements.get(t) || Je();
|
1211
1211
|
break;
|
1212
1212
|
}
|
1213
1213
|
});
|
1214
1214
|
}
|
1215
|
-
|
1215
|
+
Ci();
|
1216
1216
|
/**
|
1217
1217
|
* @license
|
1218
1218
|
* Copyright 2017 Google LLC
|
1219
1219
|
* SPDX-License-Identifier: BSD-3-Clause
|
1220
1220
|
*/
|
1221
|
-
const V = (
|
1222
|
-
|
1223
|
-
customElements.define(
|
1224
|
-
}) : customElements.define(
|
1221
|
+
const V = (s) => (t, e) => {
|
1222
|
+
e !== void 0 ? e.addInitializer(() => {
|
1223
|
+
customElements.define(s, t);
|
1224
|
+
}) : customElements.define(s, t);
|
1225
1225
|
};
|
1226
1226
|
/**
|
1227
1227
|
* @license
|
1228
1228
|
* Copyright 2017 Google LLC
|
1229
1229
|
* SPDX-License-Identifier: BSD-3-Clause
|
1230
1230
|
*/
|
1231
|
-
const
|
1232
|
-
const { kind: i, metadata: n } =
|
1231
|
+
const Si = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: zt }, Ei = (s = Si, t, e) => {
|
1232
|
+
const { kind: i, metadata: n } = e;
|
1233
1233
|
let r = globalThis.litPropertyMetadata.get(n);
|
1234
|
-
if (r === void 0 && globalThis.litPropertyMetadata.set(n, r = /* @__PURE__ */ new Map()), r.set(
|
1235
|
-
const { name: o } =
|
1234
|
+
if (r === void 0 && globalThis.litPropertyMetadata.set(n, r = /* @__PURE__ */ new Map()), r.set(e.name, s), i === "accessor") {
|
1235
|
+
const { name: o } = e;
|
1236
1236
|
return { set(a) {
|
1237
1237
|
const l = t.get.call(this);
|
1238
|
-
t.set.call(this, a), this.requestUpdate(o, l,
|
1238
|
+
t.set.call(this, a), this.requestUpdate(o, l, s);
|
1239
1239
|
}, init(a) {
|
1240
|
-
return a !== void 0 && this.C(o, void 0,
|
1240
|
+
return a !== void 0 && this.C(o, void 0, s), a;
|
1241
1241
|
} };
|
1242
1242
|
}
|
1243
1243
|
if (i === "setter") {
|
1244
|
-
const { name: o } =
|
1244
|
+
const { name: o } = e;
|
1245
1245
|
return function(a) {
|
1246
1246
|
const l = this[o];
|
1247
|
-
t.call(this, a), this.requestUpdate(o, l,
|
1247
|
+
t.call(this, a), this.requestUpdate(o, l, s);
|
1248
1248
|
};
|
1249
1249
|
}
|
1250
1250
|
throw Error("Unsupported decorator location: " + i);
|
1251
1251
|
};
|
1252
|
-
function $(
|
1253
|
-
return (t,
|
1252
|
+
function $(s) {
|
1253
|
+
return (t, e) => typeof e == "object" ? Ei(s, t, e) : ((i, n, r) => {
|
1254
1254
|
const o = n.hasOwnProperty(r);
|
1255
1255
|
return n.constructor.createProperty(r, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(n, r) : void 0;
|
1256
|
-
})(
|
1256
|
+
})(s, t, e);
|
1257
1257
|
}
|
1258
1258
|
/**
|
1259
1259
|
* @license
|
1260
1260
|
* Copyright 2017 Google LLC
|
1261
1261
|
* SPDX-License-Identifier: BSD-3-Clause
|
1262
1262
|
*/
|
1263
|
-
function
|
1264
|
-
return $({ ...
|
1263
|
+
function x(s) {
|
1264
|
+
return $({ ...s, state: !0, attribute: !1 });
|
1265
1265
|
}
|
1266
1266
|
/**
|
1267
1267
|
* @license
|
1268
1268
|
* Copyright 2020 Google LLC
|
1269
1269
|
* SPDX-License-Identifier: BSD-3-Clause
|
1270
1270
|
*/
|
1271
|
-
const
|
1271
|
+
const ki = (s) => s.strings === void 0;
|
1272
1272
|
/**
|
1273
1273
|
* @license
|
1274
1274
|
* Copyright 2017 Google LLC
|
1275
1275
|
* SPDX-License-Identifier: BSD-3-Clause
|
1276
1276
|
*/
|
1277
|
-
const xt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, wt = (
|
1278
|
-
let
|
1277
|
+
const xt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, wt = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
1278
|
+
let Zt = class {
|
1279
1279
|
constructor(t) {
|
1280
1280
|
}
|
1281
1281
|
get _$AU() {
|
1282
1282
|
return this._$AM._$AU;
|
1283
1283
|
}
|
1284
|
-
_$AT(t,
|
1285
|
-
this._$Ct = t, this._$AM =
|
1284
|
+
_$AT(t, e, i) {
|
1285
|
+
this._$Ct = t, this._$AM = e, this._$Ci = i;
|
1286
1286
|
}
|
1287
|
-
_$AS(t,
|
1288
|
-
return this.update(t,
|
1287
|
+
_$AS(t, e) {
|
1288
|
+
return this.update(t, e);
|
1289
1289
|
}
|
1290
|
-
update(t,
|
1291
|
-
return this.render(...
|
1290
|
+
update(t, e) {
|
1291
|
+
return this.render(...e);
|
1292
1292
|
}
|
1293
1293
|
};
|
1294
1294
|
/**
|
@@ -1296,66 +1296,66 @@ let qt = class {
|
|
1296
1296
|
* Copyright 2017 Google LLC
|
1297
1297
|
* SPDX-License-Identifier: BSD-3-Clause
|
1298
1298
|
*/
|
1299
|
-
const q = (
|
1299
|
+
const q = (s, t) => {
|
1300
1300
|
var i;
|
1301
|
-
const
|
1302
|
-
if (
|
1301
|
+
const e = s._$AN;
|
1302
|
+
if (e === void 0)
|
1303
1303
|
return !1;
|
1304
|
-
for (const n of
|
1304
|
+
for (const n of e)
|
1305
1305
|
(i = n._$AO) == null || i.call(n, t, !1), q(n, t);
|
1306
1306
|
return !0;
|
1307
|
-
}, pt = (
|
1308
|
-
let t,
|
1307
|
+
}, pt = (s) => {
|
1308
|
+
let t, e;
|
1309
1309
|
do {
|
1310
|
-
if ((t =
|
1310
|
+
if ((t = s._$AM) === void 0)
|
1311
1311
|
break;
|
1312
|
-
|
1313
|
-
} while ((
|
1314
|
-
},
|
1315
|
-
for (let t; t =
|
1316
|
-
let
|
1317
|
-
if (
|
1318
|
-
t._$AN =
|
1319
|
-
else if (
|
1312
|
+
e = t._$AN, e.delete(s), s = t;
|
1313
|
+
} while ((e == null ? void 0 : e.size) === 0);
|
1314
|
+
}, Ve = (s) => {
|
1315
|
+
for (let t; t = s._$AM; s = t) {
|
1316
|
+
let e = t._$AN;
|
1317
|
+
if (e === void 0)
|
1318
|
+
t._$AN = e = /* @__PURE__ */ new Set();
|
1319
|
+
else if (e.has(s))
|
1320
1320
|
break;
|
1321
|
-
|
1321
|
+
e.add(s), Pi(t);
|
1322
1322
|
}
|
1323
1323
|
};
|
1324
|
-
function
|
1325
|
-
this._$AN !== void 0 ? (pt(this), this._$AM =
|
1324
|
+
function Ti(s) {
|
1325
|
+
this._$AN !== void 0 ? (pt(this), this._$AM = s, Ve(this)) : this._$AM = s;
|
1326
1326
|
}
|
1327
|
-
function
|
1327
|
+
function Oi(s, t = !1, e = 0) {
|
1328
1328
|
const i = this._$AH, n = this._$AN;
|
1329
1329
|
if (n !== void 0 && n.size !== 0)
|
1330
1330
|
if (t)
|
1331
1331
|
if (Array.isArray(i))
|
1332
|
-
for (let r =
|
1332
|
+
for (let r = e; r < i.length; r++)
|
1333
1333
|
q(i[r], !1), pt(i[r]);
|
1334
1334
|
else
|
1335
1335
|
i != null && (q(i, !1), pt(i));
|
1336
1336
|
else
|
1337
|
-
q(this,
|
1337
|
+
q(this, s);
|
1338
1338
|
}
|
1339
|
-
const
|
1340
|
-
|
1339
|
+
const Pi = (s) => {
|
1340
|
+
s.type == xt.CHILD && (s._$AP ?? (s._$AP = Oi), s._$AQ ?? (s._$AQ = Ti));
|
1341
1341
|
};
|
1342
|
-
let
|
1342
|
+
let ts = class extends Zt {
|
1343
1343
|
constructor() {
|
1344
1344
|
super(...arguments), this._$AN = void 0;
|
1345
1345
|
}
|
1346
|
-
_$AT(t,
|
1347
|
-
super._$AT(t,
|
1346
|
+
_$AT(t, e, i) {
|
1347
|
+
super._$AT(t, e, i), Ve(this), this.isConnected = t._$AU;
|
1348
1348
|
}
|
1349
|
-
_$AO(t,
|
1349
|
+
_$AO(t, e = !0) {
|
1350
1350
|
var i, n;
|
1351
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (n = this.disconnected) == null || n.call(this)),
|
1351
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (n = this.disconnected) == null || n.call(this)), e && (q(this, t), pt(this));
|
1352
1352
|
}
|
1353
1353
|
setValue(t) {
|
1354
|
-
if (
|
1354
|
+
if (ki(this._$Ct))
|
1355
1355
|
this._$Ct._$AI(t, this);
|
1356
1356
|
else {
|
1357
|
-
const
|
1358
|
-
|
1357
|
+
const e = [...this._$Ct._$AH];
|
1358
|
+
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
1359
1359
|
}
|
1360
1360
|
}
|
1361
1361
|
disconnected() {
|
@@ -1368,29 +1368,29 @@ let Je = class extends qt {
|
|
1368
1368
|
* Copyright 2020 Google LLC
|
1369
1369
|
* SPDX-License-Identifier: BSD-3-Clause
|
1370
1370
|
*/
|
1371
|
-
const ut = () => new
|
1372
|
-
class
|
1371
|
+
const ut = () => new Li();
|
1372
|
+
class Li {
|
1373
1373
|
}
|
1374
|
-
const
|
1375
|
-
render(
|
1374
|
+
const Pt = /* @__PURE__ */ new WeakMap(), ft = wt(class extends ts {
|
1375
|
+
render(s) {
|
1376
1376
|
return u;
|
1377
1377
|
}
|
1378
|
-
update(
|
1378
|
+
update(s, [t]) {
|
1379
1379
|
var i;
|
1380
|
-
const
|
1381
|
-
return
|
1380
|
+
const e = t !== this.G;
|
1381
|
+
return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (i = s.options) == null ? void 0 : i.host, this.ot(this.lt = s.element)), u;
|
1382
1382
|
}
|
1383
|
-
ot(
|
1383
|
+
ot(s) {
|
1384
1384
|
if (typeof this.G == "function") {
|
1385
1385
|
const t = this.ct ?? globalThis;
|
1386
|
-
let
|
1387
|
-
|
1386
|
+
let e = Pt.get(t);
|
1387
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), Pt.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ct, void 0), e.set(this.G, s), s !== void 0 && this.G.call(this.ct, s);
|
1388
1388
|
} else
|
1389
|
-
this.G.value =
|
1389
|
+
this.G.value = s;
|
1390
1390
|
}
|
1391
1391
|
get rt() {
|
1392
|
-
var
|
1393
|
-
return typeof this.G == "function" ? (
|
1392
|
+
var s, t;
|
1393
|
+
return typeof this.G == "function" ? (s = Pt.get(this.ct ?? globalThis)) == null ? void 0 : s.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
1394
1394
|
}
|
1395
1395
|
disconnected() {
|
1396
1396
|
this.rt === this.lt && this.ot(void 0);
|
@@ -1404,58 +1404,58 @@ const Ot = /* @__PURE__ */ new WeakMap(), ft = wt(class extends Je {
|
|
1404
1404
|
* Copyright 2018 Google LLC
|
1405
1405
|
* SPDX-License-Identifier: BSD-3-Clause
|
1406
1406
|
*/
|
1407
|
-
const Xt = wt(class extends
|
1408
|
-
constructor(
|
1407
|
+
const Xt = wt(class extends Zt {
|
1408
|
+
constructor(s) {
|
1409
1409
|
var t;
|
1410
|
-
if (super(
|
1410
|
+
if (super(s), s.type !== xt.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2)
|
1411
1411
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
1412
1412
|
}
|
1413
|
-
render(
|
1414
|
-
return " " + Object.keys(
|
1413
|
+
render(s) {
|
1414
|
+
return " " + Object.keys(s).filter((t) => s[t]).join(" ") + " ";
|
1415
1415
|
}
|
1416
|
-
update(
|
1416
|
+
update(s, [t]) {
|
1417
1417
|
var i, n;
|
1418
1418
|
if (this.it === void 0) {
|
1419
|
-
this.it = /* @__PURE__ */ new Set(),
|
1419
|
+
this.it = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.st = new Set(s.strings.join(" ").split(/\s/).filter((r) => r !== "")));
|
1420
1420
|
for (const r in t)
|
1421
1421
|
t[r] && !((i = this.st) != null && i.has(r)) && this.it.add(r);
|
1422
1422
|
return this.render(t);
|
1423
1423
|
}
|
1424
|
-
const
|
1424
|
+
const e = s.element.classList;
|
1425
1425
|
for (const r of this.it)
|
1426
|
-
r in t || (
|
1426
|
+
r in t || (e.remove(r), this.it.delete(r));
|
1427
1427
|
for (const r in t) {
|
1428
1428
|
const o = !!t[r];
|
1429
|
-
o === this.it.has(r) || (n = this.st) != null && n.has(r) || (o ? (
|
1429
|
+
o === this.it.has(r) || (n = this.st) != null && n.has(r) || (o ? (e.add(r), this.it.add(r)) : (e.remove(r), this.it.delete(r)));
|
1430
1430
|
}
|
1431
1431
|
return E;
|
1432
1432
|
}
|
1433
|
-
}),
|
1434
|
-
let
|
1435
|
-
const
|
1436
|
-
const
|
1437
|
-
return
|
1438
|
-
},
|
1439
|
-
const
|
1440
|
-
return
|
1441
|
-
},
|
1442
|
-
const
|
1443
|
-
return { value:
|
1444
|
-
}, top: (
|
1445
|
-
const
|
1446
|
-
return { value:
|
1447
|
-
}, width: (
|
1448
|
-
let
|
1449
|
-
t === 0 && (t = 1,
|
1450
|
-
const i =
|
1451
|
-
return { value: i, overrideFrom:
|
1452
|
-
}, height: (
|
1453
|
-
let
|
1454
|
-
t === 0 && (t = 1,
|
1455
|
-
const i =
|
1456
|
-
return { value: i, overrideFrom:
|
1457
|
-
} },
|
1458
|
-
class
|
1433
|
+
}), Hi = /* @__PURE__ */ new WeakMap();
|
1434
|
+
let xe = 0;
|
1435
|
+
const Lt = /* @__PURE__ */ new Map(), we = /* @__PURE__ */ new WeakSet(), Ae = () => new Promise((s) => requestAnimationFrame(s)), Ri = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Ui = [{ opacity: 0 }], Ce = [{ opacity: 0 }, { opacity: 1 }], Se = (s, t) => {
|
1436
|
+
const e = s - t;
|
1437
|
+
return e === 0 ? void 0 : e;
|
1438
|
+
}, Ee = (s, t) => {
|
1439
|
+
const e = s / t;
|
1440
|
+
return e === 1 ? void 0 : e;
|
1441
|
+
}, Ht = { left: (s, t) => {
|
1442
|
+
const e = Se(s, t);
|
1443
|
+
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
1444
|
+
}, top: (s, t) => {
|
1445
|
+
const e = Se(s, t);
|
1446
|
+
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
1447
|
+
}, width: (s, t) => {
|
1448
|
+
let e;
|
1449
|
+
t === 0 && (t = 1, e = { width: "1px" });
|
1450
|
+
const i = Ee(s, t);
|
1451
|
+
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
1452
|
+
}, height: (s, t) => {
|
1453
|
+
let e;
|
1454
|
+
t === 0 && (t = 1, e = { height: "1px" });
|
1455
|
+
const i = Ee(s, t);
|
1456
|
+
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1457
|
+
} }, Mi = { duration: 333, easing: "ease-in-out" }, Ni = ["left", "top", "width", "height", "opacity", "color", "background"], ke = /* @__PURE__ */ new WeakMap();
|
1458
|
+
class ji extends ts {
|
1459
1459
|
constructor(t) {
|
1460
1460
|
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === xt.CHILD)
|
1461
1461
|
throw Error("The `animate` directive must be used in attribute position.");
|
@@ -1463,8 +1463,8 @@ class Ni extends Je {
|
|
1463
1463
|
}
|
1464
1464
|
createFinished() {
|
1465
1465
|
var t;
|
1466
|
-
(t = this.resolveFinished) == null || t.call(this), this.finished = new Promise((
|
1467
|
-
this.h =
|
1466
|
+
(t = this.resolveFinished) == null || t.call(this), this.finished = new Promise((e) => {
|
1467
|
+
this.h = e;
|
1468
1468
|
});
|
1469
1469
|
}
|
1470
1470
|
async resolveFinished() {
|
@@ -1475,39 +1475,39 @@ class Ni extends Je {
|
|
1475
1475
|
return u;
|
1476
1476
|
}
|
1477
1477
|
getController() {
|
1478
|
-
return
|
1478
|
+
return Hi.get(this.l);
|
1479
1479
|
}
|
1480
1480
|
isDisabled() {
|
1481
1481
|
var t;
|
1482
1482
|
return this.options.disabled || ((t = this.getController()) == null ? void 0 : t.disabled);
|
1483
1483
|
}
|
1484
|
-
update(t, [
|
1484
|
+
update(t, [e]) {
|
1485
1485
|
var n;
|
1486
1486
|
const i = this.l === void 0;
|
1487
|
-
return i && (this.l = (n = t.options) == null ? void 0 : n.host, this.l.addController(this), this.element = t.element,
|
1487
|
+
return i && (this.l = (n = t.options) == null ? void 0 : n.host, this.l.addController(this), this.element = t.element, ke.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.u(e), this.render(e);
|
1488
1488
|
}
|
1489
1489
|
u(t) {
|
1490
1490
|
t = t ?? {};
|
1491
|
-
const
|
1492
|
-
|
1491
|
+
const e = this.getController();
|
1492
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = Ni), this.options = t;
|
1493
1493
|
}
|
1494
1494
|
p() {
|
1495
|
-
const t = {},
|
1495
|
+
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1496
1496
|
return this.options.properties.forEach((n) => {
|
1497
|
-
const r =
|
1497
|
+
const r = e[n] ?? (Ht[n] ? void 0 : i[n]), o = Number(r);
|
1498
1498
|
t[n] = isNaN(o) ? r + "" : o;
|
1499
1499
|
}), t;
|
1500
1500
|
}
|
1501
1501
|
m() {
|
1502
|
-
let t,
|
1503
|
-
return this.options.guard && (t = this.options.guard(),
|
1502
|
+
let t, e = !0;
|
1503
|
+
return this.options.guard && (t = this.options.guard(), e = ((i, n) => {
|
1504
1504
|
if (Array.isArray(i)) {
|
1505
1505
|
if (Array.isArray(n) && n.length === i.length && i.every((r, o) => r === n[o]))
|
1506
1506
|
return !1;
|
1507
1507
|
} else if (n === i)
|
1508
1508
|
return !1;
|
1509
1509
|
return !0;
|
1510
|
-
})(t, this.v)), this.o = this.l.hasUpdated && !this.isDisabled() && !this.isAnimating() &&
|
1510
|
+
})(t, this.v)), this.o = this.l.hasUpdated && !this.isDisabled() && !this.isAnimating() && e && this.element.isConnected, this.o && (this.v = Array.isArray(t) ? Array.from(t) : t), this.o;
|
1511
1511
|
}
|
1512
1512
|
hostUpdate() {
|
1513
1513
|
typeof this.optionsOrCallback == "function" && this.u(this.optionsOrCallback()), this.m() && (this.g = this.p(), this.t = this.t ?? this.element.parentNode, this.i = this.element.nextSibling);
|
@@ -1516,17 +1516,17 @@ class Ni extends Je {
|
|
1516
1516
|
if (!this.o || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
|
1517
1517
|
return;
|
1518
1518
|
let t;
|
1519
|
-
this.prepare(), await
|
1520
|
-
const
|
1519
|
+
this.prepare(), await Ae;
|
1520
|
+
const e = this._(), i = this.A(this.options.keyframeOptions, e), n = this.p();
|
1521
1521
|
if (this.g !== void 0) {
|
1522
|
-
const { from: r, to: o } = this.O(this.g, n,
|
1522
|
+
const { from: r, to: o } = this.O(this.g, n, e);
|
1523
1523
|
this.log("measured", [this.g, n, r, o]), t = this.calculateKeyframes(r, o);
|
1524
1524
|
} else {
|
1525
|
-
const r =
|
1525
|
+
const r = Lt.get(this.options.inId);
|
1526
1526
|
if (r) {
|
1527
|
-
|
1528
|
-
const { from: o, to: a } = this.O(r, n,
|
1529
|
-
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t,
|
1527
|
+
Lt.delete(this.options.inId);
|
1528
|
+
const { from: o, to: a } = this.O(r, n, e);
|
1529
|
+
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, xe++, t.forEach((l) => l.zIndex = xe);
|
1530
1530
|
} else
|
1531
1531
|
this.options.in && (t = [...this.options.in, {}]);
|
1532
1532
|
}
|
@@ -1536,16 +1536,16 @@ class Ni extends Je {
|
|
1536
1536
|
this.j !== void 0 && (this.element.setAttribute("style", this.j ?? ""), this.j = void 0);
|
1537
1537
|
}
|
1538
1538
|
commitStyles() {
|
1539
|
-
var t,
|
1540
|
-
this.j = this.element.getAttribute("style"), (t = this.webAnimation) == null || t.commitStyles(), (
|
1539
|
+
var t, e;
|
1540
|
+
this.j = this.element.getAttribute("style"), (t = this.webAnimation) == null || t.commitStyles(), (e = this.webAnimation) == null || e.cancel();
|
1541
1541
|
}
|
1542
1542
|
reconnected() {
|
1543
1543
|
}
|
1544
1544
|
async disconnected() {
|
1545
|
-
var
|
1546
|
-
if (!this.o || (this.options.id !== void 0 &&
|
1545
|
+
var e;
|
1546
|
+
if (!this.o || (this.options.id !== void 0 && Lt.set(this.options.id, this.g), this.options.out === void 0))
|
1547
1547
|
return;
|
1548
|
-
if (this.prepare(), await
|
1548
|
+
if (this.prepare(), await Ae(), (e = this.t) == null ? void 0 : e.isConnected) {
|
1549
1549
|
const i = this.i && this.i.parentNode === this.t ? this.i : null;
|
1550
1550
|
if (this.t.insertBefore(this.element, i), this.options.stabilizeOut) {
|
1551
1551
|
const n = this.p();
|
@@ -1561,47 +1561,47 @@ class Ni extends Je {
|
|
1561
1561
|
this.createFinished();
|
1562
1562
|
}
|
1563
1563
|
start() {
|
1564
|
-
var t,
|
1565
|
-
(
|
1564
|
+
var t, e;
|
1565
|
+
(e = (t = this.options).onStart) == null || e.call(t, this);
|
1566
1566
|
}
|
1567
1567
|
didFinish(t) {
|
1568
|
-
var
|
1569
|
-
t && ((i = (
|
1568
|
+
var e, i;
|
1569
|
+
t && ((i = (e = this.options).onComplete) == null || i.call(e, this)), this.g = void 0, this.animatingProperties = void 0, this.frames = void 0, this.resolveFinished();
|
1570
1570
|
}
|
1571
1571
|
_() {
|
1572
1572
|
const t = [];
|
1573
|
-
for (let
|
1574
|
-
const i =
|
1573
|
+
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
1574
|
+
const i = ke.get(e);
|
1575
1575
|
i && !i.isDisabled() && i && t.push(i);
|
1576
1576
|
}
|
1577
1577
|
return t;
|
1578
1578
|
}
|
1579
1579
|
get isHostRendered() {
|
1580
|
-
const t =
|
1580
|
+
const t = we.has(this.l);
|
1581
1581
|
return t || this.l.updateComplete.then(() => {
|
1582
|
-
|
1582
|
+
we.add(this.l);
|
1583
1583
|
}), t;
|
1584
1584
|
}
|
1585
|
-
A(t,
|
1586
|
-
const i = { ...
|
1587
|
-
return
|
1585
|
+
A(t, e = this._()) {
|
1586
|
+
const i = { ...Mi };
|
1587
|
+
return e.forEach((n) => Object.assign(i, n.options.keyframeOptions)), Object.assign(i, t), i;
|
1588
1588
|
}
|
1589
|
-
O(t,
|
1590
|
-
t = { ...t },
|
1589
|
+
O(t, e, i) {
|
1590
|
+
t = { ...t }, e = { ...e };
|
1591
1591
|
const n = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
1592
1592
|
let r = 1, o = 1;
|
1593
1593
|
return n !== void 0 && (n.forEach((a) => {
|
1594
1594
|
a.width && (r /= a.width), a.height && (o /= a.height);
|
1595
|
-
}), t.left !== void 0 &&
|
1595
|
+
}), t.left !== void 0 && e.left !== void 0 && (t.left = r * t.left, e.left = r * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = o * t.top, e.top = o * e.top)), { from: t, to: e };
|
1596
1596
|
}
|
1597
|
-
calculateKeyframes(t,
|
1597
|
+
calculateKeyframes(t, e, i = !1) {
|
1598
1598
|
const n = {}, r = {};
|
1599
1599
|
let o = !1;
|
1600
1600
|
const a = {};
|
1601
|
-
for (const l in
|
1602
|
-
const c = t[l], d =
|
1603
|
-
if (l in
|
1604
|
-
const h =
|
1601
|
+
for (const l in e) {
|
1602
|
+
const c = t[l], d = e[l];
|
1603
|
+
if (l in Ht) {
|
1604
|
+
const h = Ht[l];
|
1605
1605
|
if (c === void 0 || d === void 0)
|
1606
1606
|
continue;
|
1607
1607
|
const p = h(c, d);
|
@@ -1611,11 +1611,11 @@ class Ni extends Je {
|
|
1611
1611
|
}
|
1612
1612
|
return n.transformOrigin = r.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [n, r] : void 0;
|
1613
1613
|
}
|
1614
|
-
async animate(t,
|
1614
|
+
async animate(t, e = this.options.keyframeOptions) {
|
1615
1615
|
this.start(), this.frames = t;
|
1616
1616
|
let i = !1;
|
1617
1617
|
if (!this.isAnimating() && !this.isDisabled() && (this.options.onFrames && (this.frames = t = this.options.onFrames(this), this.log("modified frames", t)), t !== void 0)) {
|
1618
|
-
this.log("animate", [t,
|
1618
|
+
this.log("animate", [t, e]), i = !0, this.webAnimation = this.element.animate(t, e);
|
1619
1619
|
const n = this.getController();
|
1620
1620
|
n == null || n.add(this);
|
1621
1621
|
try {
|
@@ -1627,35 +1627,35 @@ class Ni extends Je {
|
|
1627
1627
|
return this.didFinish(i), i;
|
1628
1628
|
}
|
1629
1629
|
isAnimating() {
|
1630
|
-
var t,
|
1631
|
-
return ((t = this.webAnimation) == null ? void 0 : t.playState) === "running" || ((
|
1630
|
+
var t, e;
|
1631
|
+
return ((t = this.webAnimation) == null ? void 0 : t.playState) === "running" || ((e = this.webAnimation) == null ? void 0 : e.pending);
|
1632
1632
|
}
|
1633
|
-
log(t,
|
1634
|
-
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id,
|
1633
|
+
log(t, e) {
|
1634
|
+
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
1635
1635
|
}
|
1636
1636
|
}
|
1637
|
-
const Nt = wt(
|
1638
|
-
|
1639
|
-
},
|
1640
|
-
var
|
1641
|
-
nt((
|
1642
|
-
(i =
|
1637
|
+
const Nt = wt(ji), nt = (s, t, e) => {
|
1638
|
+
s && e.style.setProperty(t, s);
|
1639
|
+
}, es = (s, t) => {
|
1640
|
+
var e, i, n, r;
|
1641
|
+
nt((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), nt(
|
1642
|
+
(i = s.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
1643
1643
|
"--text-on-primary-background",
|
1644
1644
|
t
|
1645
1645
|
), nt(
|
1646
|
-
(n =
|
1646
|
+
(n = s.colors) == null ? void 0 : n.secondaryBackground,
|
1647
1647
|
"--secondary-background",
|
1648
1648
|
t
|
1649
1649
|
), nt(
|
1650
|
-
(r =
|
1650
|
+
(r = s.colors) == null ? void 0 : r.textOnSecondaryBackground,
|
1651
1651
|
"--text-on-secondary-background",
|
1652
1652
|
t
|
1653
1653
|
);
|
1654
1654
|
};
|
1655
|
-
var
|
1656
|
-
for (var n = i > 1 ? void 0 : i ?
|
1657
|
-
(o =
|
1658
|
-
return i && n &&
|
1655
|
+
var Ii = Object.defineProperty, Di = Object.getOwnPropertyDescriptor, tt = (s, t, e, i) => {
|
1656
|
+
for (var n = i > 1 ? void 0 : i ? Di(t, e) : t, r = s.length - 1, o; r >= 0; r--)
|
1657
|
+
(o = s[r]) && (n = (i ? o(t, e, n) : o(n)) || n);
|
1658
|
+
return i && n && Ii(t, e, n), n;
|
1659
1659
|
};
|
1660
1660
|
class k extends v {
|
1661
1661
|
constructor() {
|
@@ -1676,17 +1676,17 @@ class k extends v {
|
|
1676
1676
|
}
|
1677
1677
|
_applyBranding() {
|
1678
1678
|
var t;
|
1679
|
-
(t = this.application) != null && t.settings &&
|
1679
|
+
(t = this.application) != null && t.settings && es(this.application.settings.branding, this);
|
1680
1680
|
}
|
1681
1681
|
async _renderSymbol() {
|
1682
1682
|
var a, l, c;
|
1683
|
-
const t = (a = this.application) == null ? void 0 : a.branding(),
|
1684
|
-
if (
|
1685
|
-
return f` <img src=${
|
1683
|
+
const t = (a = this.application) == null ? void 0 : a.branding(), e = (l = t == null ? void 0 : t.graphics) == null ? void 0 : l.trigger;
|
1684
|
+
if (e)
|
1685
|
+
return f` <img src=${e} class="trigger-icon" alt="" /> `;
|
1686
1686
|
const i = (c = this.application) == null ? void 0 : c.triggerIcon;
|
1687
1687
|
if (!i)
|
1688
1688
|
return u;
|
1689
|
-
const n = async (d) => await import("./index-
|
1689
|
+
const n = async (d) => await import("./index-7b4e9cb8.mjs").then(
|
1690
1690
|
(p) => p[d]
|
1691
1691
|
), { type: r, content: o } = i;
|
1692
1692
|
switch (r) {
|
@@ -1706,15 +1706,15 @@ class k extends v {
|
|
1706
1706
|
this.offset = t;
|
1707
1707
|
}
|
1708
1708
|
render() {
|
1709
|
-
var t,
|
1709
|
+
var t, e, i, n;
|
1710
1710
|
return f`<div class="trigger-container">
|
1711
|
-
${!this.active && ((n = (i = (
|
1711
|
+
${!this.active && ((n = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && n.showButtonLabel) ? f`
|
1712
1712
|
<button
|
1713
1713
|
class="trigger-label"
|
1714
1714
|
@click=${this._toggleActive}
|
1715
1715
|
${Nt({
|
1716
1716
|
keyframeOptions: {},
|
1717
|
-
in:
|
1717
|
+
in: Ri,
|
1718
1718
|
stabilizeOut: !0,
|
1719
1719
|
skipInitial: !1
|
1720
1720
|
})}
|
@@ -1878,24 +1878,24 @@ tt([
|
|
1878
1878
|
$({ attribute: !1 })
|
1879
1879
|
], k.prototype, "application", 2);
|
1880
1880
|
tt([
|
1881
|
-
|
1881
|
+
x()
|
1882
1882
|
], k.prototype, "active", 2);
|
1883
1883
|
tt([
|
1884
|
-
|
1884
|
+
x()
|
1885
1885
|
], k.prototype, "loaded", 2);
|
1886
1886
|
tt([
|
1887
|
-
|
1887
|
+
x()
|
1888
1888
|
], k.prototype, "icon", 2);
|
1889
1889
|
tt([
|
1890
|
-
|
1890
|
+
x()
|
1891
1891
|
], k.prototype, "offset", 2);
|
1892
|
-
var
|
1893
|
-
for (var n = i > 1 ? void 0 : i ?
|
1894
|
-
(o =
|
1895
|
-
return i && n &&
|
1892
|
+
var Bi = Object.defineProperty, zi = Object.getOwnPropertyDescriptor, O = (s, t, e, i) => {
|
1893
|
+
for (var n = i > 1 ? void 0 : i ? zi(t, e) : t, r = s.length - 1, o; r >= 0; r--)
|
1894
|
+
(o = s[r]) && (n = (i ? o(t, e, n) : o(n)) || n);
|
1895
|
+
return i && n && Bi(t, e, n), n;
|
1896
1896
|
};
|
1897
|
-
const
|
1898
|
-
class t extends
|
1897
|
+
const ss = (s) => {
|
1898
|
+
class t extends s {
|
1899
1899
|
constructor() {
|
1900
1900
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
1901
1901
|
}
|
@@ -1949,12 +1949,12 @@ const ts = (e) => {
|
|
1949
1949
|
$({ attribute: !1 })
|
1950
1950
|
], t.prototype, "parent", 2), t;
|
1951
1951
|
};
|
1952
|
-
class
|
1952
|
+
class is extends ss(v) {
|
1953
1953
|
render() {
|
1954
1954
|
return f`Non resolved component`;
|
1955
1955
|
}
|
1956
1956
|
}
|
1957
|
-
|
1957
|
+
is.styles = [
|
1958
1958
|
_`
|
1959
1959
|
:host {
|
1960
1960
|
display: block;
|
@@ -1966,17 +1966,17 @@ es.styles = [
|
|
1966
1966
|
* Copyright 2021 Google LLC
|
1967
1967
|
* SPDX-License-Identifier: BSD-3-Clause
|
1968
1968
|
*/
|
1969
|
-
function*
|
1970
|
-
if (
|
1971
|
-
let
|
1972
|
-
for (const i of
|
1973
|
-
yield t(i,
|
1969
|
+
function* Fi(s, t) {
|
1970
|
+
if (s !== void 0) {
|
1971
|
+
let e = 0;
|
1972
|
+
for (const i of s)
|
1973
|
+
yield t(i, e++);
|
1974
1974
|
}
|
1975
1975
|
}
|
1976
|
-
var Yt = /* @__PURE__ */ ((
|
1977
|
-
for (var n = i > 1 ? void 0 : i ?
|
1978
|
-
(o =
|
1979
|
-
return i && n &&
|
1976
|
+
var Yt = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(Yt || {}), Wi = Object.defineProperty, Gi = Object.getOwnPropertyDescriptor, qi = (s, t, e, i) => {
|
1977
|
+
for (var n = i > 1 ? void 0 : i ? Gi(t, e) : t, r = s.length - 1, o; r >= 0; r--)
|
1978
|
+
(o = s[r]) && (n = (i ? o(t, e, n) : o(n)) || n);
|
1979
|
+
return i && n && Wi(t, e, n), n;
|
1980
1980
|
};
|
1981
1981
|
class Kt extends v {
|
1982
1982
|
constructor() {
|
@@ -1989,14 +1989,14 @@ class Kt extends v {
|
|
1989
1989
|
if (!this.wrapperRef.value)
|
1990
1990
|
return;
|
1991
1991
|
const t = this.application.settings;
|
1992
|
-
t != null && t.branding &&
|
1992
|
+
t != null && t.branding && es(t.branding, this.wrapperRef.value);
|
1993
1993
|
}
|
1994
1994
|
applyStyles() {
|
1995
1995
|
if (!this.wrapperRef.value)
|
1996
1996
|
return;
|
1997
|
-
const t = this.application.styles(),
|
1997
|
+
const t = this.application.styles(), e = this.wrapperRef.value;
|
1998
1998
|
Object.entries(t).forEach(([i, n]) => {
|
1999
|
-
|
1999
|
+
e.style.setProperty(`--${i}`, n);
|
2000
2000
|
});
|
2001
2001
|
}
|
2002
2002
|
firstUpdated(t) {
|
@@ -2004,7 +2004,7 @@ class Kt extends v {
|
|
2004
2004
|
}
|
2005
2005
|
render() {
|
2006
2006
|
return this.application.renderStrategy === Yt.Trigger && this.renderRoot.host.classList.add("floating"), f`<div class="widget-container" ${ft(this.wrapperRef)}>
|
2007
|
-
${
|
2007
|
+
${Fi(this.nodes, (t) => t)}
|
2008
2008
|
</div>`;
|
2009
2009
|
}
|
2010
2010
|
}
|
@@ -2100,13 +2100,13 @@ Kt.styles = _`
|
|
2100
2100
|
animation: slideDown 0.3s linear;
|
2101
2101
|
}
|
2102
2102
|
`;
|
2103
|
-
|
2103
|
+
qi([
|
2104
2104
|
$({ attribute: !1 })
|
2105
2105
|
], Kt.prototype, "application", 2);
|
2106
|
-
var
|
2107
|
-
for (var n = i > 1 ? void 0 : i ?
|
2108
|
-
(o =
|
2109
|
-
return i && n &&
|
2106
|
+
var Zi = Object.defineProperty, Xi = Object.getOwnPropertyDescriptor, Qt = (s, t, e, i) => {
|
2107
|
+
for (var n = i > 1 ? void 0 : i ? Xi(t, e) : t, r = s.length - 1, o; r >= 0; r--)
|
2108
|
+
(o = s[r]) && (n = (i ? o(t, e, n) : o(n)) || n);
|
2109
|
+
return i && n && Zi(t, e, n), n;
|
2110
2110
|
};
|
2111
2111
|
class et extends v {
|
2112
2112
|
constructor() {
|
@@ -2127,7 +2127,7 @@ class et extends v {
|
|
2127
2127
|
async getGlobalEnvironment() {
|
2128
2128
|
const t = globalThis.widgets;
|
2129
2129
|
t && (this.widget = t.applications.find(
|
2130
|
-
(
|
2130
|
+
(e) => e.name === this.name
|
2131
2131
|
), await this.activate());
|
2132
2132
|
}
|
2133
2133
|
render() {
|
@@ -2151,44 +2151,44 @@ Qt([
|
|
2151
2151
|
$({ attribute: !0 })
|
2152
2152
|
], et.prototype, "name", 2);
|
2153
2153
|
Qt([
|
2154
|
-
|
2154
|
+
x()
|
2155
2155
|
], et.prototype, "widget", 2);
|
2156
2156
|
Qt([
|
2157
|
-
|
2157
|
+
x()
|
2158
2158
|
], et.prototype, "status", 2);
|
2159
2159
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", k);
|
2160
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
2160
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", is);
|
2161
2161
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Kt);
|
2162
2162
|
customElements.get("ace-widget") || customElements.define("ace-widget", et);
|
2163
|
-
var
|
2164
|
-
for (var n = i > 1 ? void 0 : i ?
|
2165
|
-
(o =
|
2166
|
-
return i && n &&
|
2163
|
+
var Yi = Object.defineProperty, Ki = Object.getOwnPropertyDescriptor, At = (s, t, e, i) => {
|
2164
|
+
for (var n = i > 1 ? void 0 : i ? Ki(t, e) : t, r = s.length - 1, o; r >= 0; r--)
|
2165
|
+
(o = s[r]) && (n = (i ? o(t, e, n) : o(n)) || n);
|
2166
|
+
return i && n && Yi(t, e, n), n;
|
2167
2167
|
};
|
2168
2168
|
let z = class extends v {
|
2169
2169
|
constructor() {
|
2170
2170
|
super(...arguments), this.loading = !0, this.entries = [];
|
2171
2171
|
}
|
2172
2172
|
connectedCallback() {
|
2173
|
-
super.connectedCallback(), this.session.entries().subscribe((
|
2174
|
-
this.entries =
|
2175
|
-
}), this.session.isTyping().subscribe((
|
2176
|
-
this.loading =
|
2173
|
+
super.connectedCallback(), this.session.entries().subscribe((s) => {
|
2174
|
+
this.entries = s;
|
2175
|
+
}), this.session.isTyping().subscribe((s) => {
|
2176
|
+
this.loading = s;
|
2177
2177
|
});
|
2178
2178
|
}
|
2179
|
-
updated(
|
2179
|
+
updated(s) {
|
2180
2180
|
const t = new CustomEvent("updated", {});
|
2181
2181
|
this.dispatchEvent(t);
|
2182
2182
|
}
|
2183
2183
|
render() {
|
2184
2184
|
return f`<div class="conversation-session">
|
2185
2185
|
${this.entries.map(
|
2186
|
-
(
|
2186
|
+
(s) => f`<div class="conversation-entry" tabindex="-1">
|
2187
2187
|
<conversation-entry
|
2188
|
-
.entry=${
|
2188
|
+
.entry=${s}
|
2189
2189
|
${Nt({
|
2190
2190
|
keyframeOptions: {},
|
2191
|
-
in:
|
2191
|
+
in: Ce,
|
2192
2192
|
stabilizeOut: !0,
|
2193
2193
|
skipInitial: !1
|
2194
2194
|
})}
|
@@ -2199,8 +2199,8 @@ let z = class extends v {
|
|
2199
2199
|
${this.loading ? f`<ace-typing-state
|
2200
2200
|
${Nt({
|
2201
2201
|
keyframeOptions: {},
|
2202
|
-
in:
|
2203
|
-
out:
|
2202
|
+
in: Ce,
|
2203
|
+
out: Ui,
|
2204
2204
|
stabilizeOut: !0,
|
2205
2205
|
skipInitial: !1
|
2206
2206
|
})}
|
@@ -2228,35 +2228,35 @@ At([
|
|
2228
2228
|
$({ attribute: !1 })
|
2229
2229
|
], z.prototype, "session", 2);
|
2230
2230
|
At([
|
2231
|
-
|
2231
|
+
x()
|
2232
2232
|
], z.prototype, "entries", 2);
|
2233
2233
|
z = At([
|
2234
2234
|
V("ace-conversation-session")
|
2235
2235
|
], z);
|
2236
|
-
var
|
2237
|
-
for (var n = i > 1 ? void 0 : i ?
|
2238
|
-
(o =
|
2239
|
-
return i && n &&
|
2236
|
+
var Qi = Object.defineProperty, Ji = Object.getOwnPropertyDescriptor, ns = (s, t, e, i) => {
|
2237
|
+
for (var n = i > 1 ? void 0 : i ? Ji(t, e) : t, r = s.length - 1, o; r >= 0; r--)
|
2238
|
+
(o = s[r]) && (n = (i ? o(t, e, n) : o(n)) || n);
|
2239
|
+
return i && n && Qi(t, e, n), n;
|
2240
2240
|
};
|
2241
2241
|
let gt = class extends v {
|
2242
2242
|
connectedCallback() {
|
2243
|
-
var
|
2244
|
-
super.connectedCallback(), (
|
2243
|
+
var s;
|
2244
|
+
super.connectedCallback(), (s = this.entry.didUpdate) == null || s.subscribe(() => {
|
2245
2245
|
this.requestUpdate();
|
2246
2246
|
});
|
2247
2247
|
}
|
2248
|
-
_renderTimestamp(
|
2249
|
-
if (!
|
2248
|
+
_renderTimestamp(s, t) {
|
2249
|
+
if (!s && !t)
|
2250
2250
|
return u;
|
2251
|
-
const
|
2251
|
+
const e = (n) => new Date(n).toLocaleTimeString([], {
|
2252
2252
|
hour: "2-digit",
|
2253
2253
|
minute: "2-digit"
|
2254
2254
|
});
|
2255
2255
|
let i = "";
|
2256
|
-
return
|
2256
|
+
return s ? t ? i = `${s}: ${e(t)}` : i = s : t && (i = e(t)), f`<p class="conversation-timestamp">${i}</p>`;
|
2257
2257
|
}
|
2258
2258
|
render() {
|
2259
|
-
var
|
2259
|
+
var s, t;
|
2260
2260
|
switch (this.entry.type) {
|
2261
2261
|
case St.System:
|
2262
2262
|
return "";
|
@@ -2264,7 +2264,7 @@ let gt = class extends v {
|
|
2264
2264
|
return f`<div
|
2265
2265
|
class=${Xt({
|
2266
2266
|
"conversation-agent-message": !0,
|
2267
|
-
"has-avatar": !!((
|
2267
|
+
"has-avatar": !!((s = this.entry.sender) != null && s.avatar)
|
2268
2268
|
})}
|
2269
2269
|
>
|
2270
2270
|
${typeof ((t = this.entry.sender) == null ? void 0 : t.avatar) == "string" ? f`<div class="avatar">
|
@@ -2273,10 +2273,10 @@ let gt = class extends v {
|
|
2273
2273
|
|
2274
2274
|
<div class="entry-content">
|
2275
2275
|
${this.entry.messages.map(
|
2276
|
-
(
|
2276
|
+
(e) => f`
|
2277
2277
|
<div class="message-container">
|
2278
2278
|
<div class="message-content">
|
2279
|
-
<conversation-group .group=${
|
2279
|
+
<conversation-group .group=${e}></conversation-group>
|
2280
2280
|
</div>
|
2281
2281
|
</div>
|
2282
2282
|
`
|
@@ -2291,10 +2291,10 @@ let gt = class extends v {
|
|
2291
2291
|
return f`<div class="conversation-user-message">
|
2292
2292
|
<div class="entry-content">
|
2293
2293
|
${this.entry.messages.map(
|
2294
|
-
(
|
2294
|
+
(e) => f`
|
2295
2295
|
<div class="message-container">
|
2296
2296
|
<div class="message-content">
|
2297
|
-
<conversation-group .group=${
|
2297
|
+
<conversation-group .group=${e}></conversation-group>
|
2298
2298
|
</div>
|
2299
2299
|
</div>
|
2300
2300
|
`
|
@@ -2395,24 +2395,24 @@ gt.styles = [
|
|
2395
2395
|
}
|
2396
2396
|
`
|
2397
2397
|
];
|
2398
|
-
|
2398
|
+
ns([
|
2399
2399
|
$({ attribute: !1 })
|
2400
2400
|
], gt.prototype, "entry", 2);
|
2401
|
-
gt =
|
2401
|
+
gt = ns([
|
2402
2402
|
V("conversation-entry")
|
2403
2403
|
], gt);
|
2404
|
-
var
|
2405
|
-
for (var n = i > 1 ? void 0 : i ?
|
2406
|
-
(o =
|
2407
|
-
return i && n &&
|
2404
|
+
var Vi = Object.defineProperty, tn = Object.getOwnPropertyDescriptor, rs = (s, t, e, i) => {
|
2405
|
+
for (var n = i > 1 ? void 0 : i ? tn(t, e) : t, r = s.length - 1, o; r >= 0; r--)
|
2406
|
+
(o = s[r]) && (n = (i ? o(t, e, n) : o(n)) || n);
|
2407
|
+
return i && n && Vi(t, e, n), n;
|
2408
2408
|
};
|
2409
2409
|
let $t = class extends v {
|
2410
2410
|
render() {
|
2411
2411
|
return f`
|
2412
2412
|
<div class="message-group">
|
2413
2413
|
${this.group.items.map(
|
2414
|
-
([
|
2415
|
-
${
|
2414
|
+
([s, t]) => f`
|
2415
|
+
${s === "html" ? f`
|
2416
2416
|
<message-type-html .message=${t}></message-type-html>
|
2417
2417
|
` : u}
|
2418
2418
|
`
|
@@ -2437,18 +2437,18 @@ $t.styles = [
|
|
2437
2437
|
}
|
2438
2438
|
`
|
2439
2439
|
];
|
2440
|
-
|
2440
|
+
rs([
|
2441
2441
|
$({ attribute: !1 })
|
2442
2442
|
], $t.prototype, "group", 2);
|
2443
|
-
$t =
|
2443
|
+
$t = rs([
|
2444
2444
|
V("conversation-group")
|
2445
2445
|
], $t);
|
2446
|
-
var
|
2447
|
-
for (var n = i > 1 ? void 0 : i ?
|
2448
|
-
(o =
|
2449
|
-
return i && n &&
|
2446
|
+
var en = Object.defineProperty, sn = Object.getOwnPropertyDescriptor, nn = (s, t, e, i) => {
|
2447
|
+
for (var n = i > 1 ? void 0 : i ? sn(t, e) : t, r = s.length - 1, o; r >= 0; r--)
|
2448
|
+
(o = s[r]) && (n = (i ? o(t, e, n) : o(n)) || n);
|
2449
|
+
return i && n && en(t, e, n), n;
|
2450
2450
|
};
|
2451
|
-
let
|
2451
|
+
let jt = class extends v {
|
2452
2452
|
render() {
|
2453
2453
|
return f`<div class="container">
|
2454
2454
|
<div class="dot"></div>
|
@@ -2457,7 +2457,7 @@ let Mt = class extends v {
|
|
2457
2457
|
</div>`;
|
2458
2458
|
}
|
2459
2459
|
};
|
2460
|
-
|
2460
|
+
jt.styles = [
|
2461
2461
|
_`
|
2462
2462
|
:host {
|
2463
2463
|
display: block;
|
@@ -2494,15 +2494,15 @@ Mt.styles = [
|
|
2494
2494
|
}
|
2495
2495
|
`
|
2496
2496
|
];
|
2497
|
-
|
2497
|
+
jt = nn([
|
2498
2498
|
V("ace-typing-state")
|
2499
|
-
],
|
2499
|
+
], jt);
|
2500
2500
|
/**
|
2501
2501
|
* @license
|
2502
2502
|
* Copyright 2017 Google LLC
|
2503
2503
|
* SPDX-License-Identifier: BSD-3-Clause
|
2504
2504
|
*/
|
2505
|
-
class
|
2505
|
+
class It extends Zt {
|
2506
2506
|
constructor(t) {
|
2507
2507
|
if (super(t), this.et = u, t.type !== xt.CHILD)
|
2508
2508
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
@@ -2517,21 +2517,21 @@ class jt extends qt {
|
|
2517
2517
|
if (t === this.et)
|
2518
2518
|
return this.vt;
|
2519
2519
|
this.et = t;
|
2520
|
-
const
|
2521
|
-
return
|
2520
|
+
const e = [t];
|
2521
|
+
return e.raw = e, this.vt = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
2522
2522
|
}
|
2523
2523
|
}
|
2524
|
-
|
2525
|
-
const
|
2526
|
-
var
|
2527
|
-
for (var n = i > 1 ? void 0 : i ?
|
2528
|
-
(o =
|
2529
|
-
return i && n &&
|
2524
|
+
It.directiveName = "unsafeHTML", It.resultType = 1;
|
2525
|
+
const rn = wt(It);
|
2526
|
+
var on = Object.defineProperty, an = Object.getOwnPropertyDescriptor, os = (s, t, e, i) => {
|
2527
|
+
for (var n = i > 1 ? void 0 : i ? an(t, e) : t, r = s.length - 1, o; r >= 0; r--)
|
2528
|
+
(o = s[r]) && (n = (i ? o(t, e, n) : o(n)) || n);
|
2529
|
+
return i && n && on(t, e, n), n;
|
2530
2530
|
};
|
2531
2531
|
let mt = class extends v {
|
2532
2532
|
render() {
|
2533
2533
|
return f`<div class="message-type-html">
|
2534
|
-
${
|
2534
|
+
${rn(this.message.content)}
|
2535
2535
|
</div>`;
|
2536
2536
|
}
|
2537
2537
|
};
|
@@ -2550,23 +2550,23 @@ mt.styles = [
|
|
2550
2550
|
}
|
2551
2551
|
`
|
2552
2552
|
];
|
2553
|
-
|
2553
|
+
os([
|
2554
2554
|
$({ attribute: !1 })
|
2555
2555
|
], mt.prototype, "message", 2);
|
2556
|
-
mt =
|
2556
|
+
mt = os([
|
2557
2557
|
V("message-type-html")
|
2558
2558
|
], mt);
|
2559
|
-
var
|
2560
|
-
for (var n = i > 1 ? void 0 : i ?
|
2561
|
-
(o =
|
2562
|
-
return i && n &&
|
2559
|
+
var ln = Object.defineProperty, cn = Object.getOwnPropertyDescriptor, Ct = (s, t, e, i) => {
|
2560
|
+
for (var n = i > 1 ? void 0 : i ? cn(t, e) : t, r = s.length - 1, o; r >= 0; r--)
|
2561
|
+
(o = s[r]) && (n = (i ? o(t, e, n) : o(n)) || n);
|
2562
|
+
return i && n && ln(t, e, n), n;
|
2563
2563
|
};
|
2564
|
-
const
|
2565
|
-
|
2566
|
-
},
|
2567
|
-
class
|
2564
|
+
const dn = (s) => {
|
2565
|
+
s.scrollTo ? s.scrollTo({ top: s.scrollHeight, behavior: "smooth" }) : s.scrollTop = s.scrollHeight;
|
2566
|
+
}, as = ss(v);
|
2567
|
+
class R extends as {
|
2568
2568
|
constructor() {
|
2569
|
-
super(...arguments), this.message = "", this.platform = null, this.session = null, this.conversationContentRef = ut(), this.formRef = ut(), this.chatScrollHeight = 0;
|
2569
|
+
super(...arguments), this.message = "", this.muted = !1, this.platform = null, this.session = null, this.conversationContentRef = ut(), this.formRef = ut(), this.chatScrollHeight = 0;
|
2570
2570
|
}
|
2571
2571
|
async connectedCallback() {
|
2572
2572
|
super.connectedCallback();
|
@@ -2584,14 +2584,22 @@ class B extends rs {
|
|
2584
2584
|
}, 500);
|
2585
2585
|
return;
|
2586
2586
|
}
|
2587
|
-
const
|
2587
|
+
const e = new CustomEvent("user-submit", {
|
2588
2588
|
detail: { text: this.message }
|
2589
2589
|
});
|
2590
|
-
this.dispatchEvent(
|
2590
|
+
this.dispatchEvent(e), this.message = "";
|
2591
2591
|
}
|
2592
2592
|
_addHeaderOptions() {
|
2593
2593
|
const t = this.application.getComponent("widget-header");
|
2594
|
-
|
2594
|
+
if (!t)
|
2595
|
+
return;
|
2596
|
+
const e = t.addOption({
|
2597
|
+
label: this.muted ? "Unmute" : "Mute",
|
2598
|
+
icon: this.muted ? ce.svg : le.svg,
|
2599
|
+
onClick: () => {
|
2600
|
+
this.muted = !this.muted, this.muted ? (e.updateLabel("Unmute"), e.updateIcon(ce.svg)) : (e.updateLabel("Mute"), e.updateIcon(le.svg));
|
2601
|
+
}
|
2602
|
+
});
|
2595
2603
|
}
|
2596
2604
|
_inputHandler(t) {
|
2597
2605
|
this.message = t.target.value;
|
@@ -2601,8 +2609,8 @@ class B extends rs {
|
|
2601
2609
|
onSessionUpdated() {
|
2602
2610
|
const t = this.conversationContentRef.value;
|
2603
2611
|
t && setTimeout(() => {
|
2604
|
-
const
|
2605
|
-
|
2612
|
+
const e = t.scrollHeight;
|
2613
|
+
e > this.chatScrollHeight && (dn(t), this.chatScrollHeight = e);
|
2606
2614
|
}, 1e3);
|
2607
2615
|
}
|
2608
2616
|
render() {
|
@@ -2631,15 +2639,15 @@ class B extends rs {
|
|
2631
2639
|
/>
|
2632
2640
|
<div class="conversation-actions">
|
2633
2641
|
<button class="conversation-send-button" type="submit">
|
2634
|
-
<telia-icon svg=${
|
2642
|
+
<telia-icon svg=${Es.svg}></telia-icon>
|
2635
2643
|
</button>
|
2636
2644
|
</div>
|
2637
2645
|
</form>
|
2638
2646
|
</div>`;
|
2639
2647
|
}
|
2640
2648
|
}
|
2641
|
-
|
2642
|
-
|
2649
|
+
R.styles = [
|
2650
|
+
as.styles || [],
|
2643
2651
|
_`
|
2644
2652
|
:host {
|
2645
2653
|
font-family: var(--font-family);
|
@@ -2772,21 +2780,26 @@ B.styles = [
|
|
2772
2780
|
}
|
2773
2781
|
`
|
2774
2782
|
];
|
2775
|
-
|
2776
|
-
|
2777
|
-
],
|
2778
|
-
|
2779
|
-
|
2780
|
-
],
|
2781
|
-
|
2782
|
-
|
2783
|
-
],
|
2784
|
-
|
2783
|
+
Ct([
|
2784
|
+
x()
|
2785
|
+
], R.prototype, "message", 2);
|
2786
|
+
Ct([
|
2787
|
+
x()
|
2788
|
+
], R.prototype, "muted", 2);
|
2789
|
+
Ct([
|
2790
|
+
x()
|
2791
|
+
], R.prototype, "platform", 2);
|
2792
|
+
Ct([
|
2793
|
+
x()
|
2794
|
+
], R.prototype, "session", 2);
|
2795
|
+
const vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2785
2796
|
__proto__: null,
|
2786
|
-
Conversation:
|
2787
|
-
default:
|
2797
|
+
Conversation: R,
|
2798
|
+
default: R
|
2788
2799
|
}, Symbol.toStringTag, { value: "Module" }));
|
2789
2800
|
export {
|
2790
|
-
|
2791
|
-
|
2801
|
+
vn as c,
|
2802
|
+
le as m,
|
2803
|
+
Es as s,
|
2804
|
+
ce as v
|
2792
2805
|
};
|