@telia-ace/widget-side-menu 1.1.111-rc.8 → 1.1.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@ var zt = function(i, t) {
|
|
|
2
2
|
return zt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, s) {
|
|
3
3
|
e.__proto__ = s;
|
|
4
4
|
} || function(e, s) {
|
|
5
|
-
for (var
|
|
5
|
+
for (var r in s) Object.prototype.hasOwnProperty.call(s, r) && (e[r] = s[r]);
|
|
6
6
|
}, zt(i, t);
|
|
7
7
|
};
|
|
8
8
|
function Z(i, t) {
|
|
@@ -15,12 +15,12 @@ function Z(i, t) {
|
|
|
15
15
|
i.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
16
16
|
}
|
|
17
17
|
function es(i, t, e, s) {
|
|
18
|
-
function n
|
|
19
|
-
return
|
|
20
|
-
o(
|
|
18
|
+
function r(n) {
|
|
19
|
+
return n instanceof e ? n : new e(function(o) {
|
|
20
|
+
o(n);
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
return new (e || (e = Promise))(function(
|
|
23
|
+
return new (e || (e = Promise))(function(n, o) {
|
|
24
24
|
function a(u) {
|
|
25
25
|
try {
|
|
26
26
|
c(s.next(u));
|
|
@@ -36,16 +36,16 @@ function es(i, t, e, s) {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
function c(u) {
|
|
39
|
-
u.done ?
|
|
39
|
+
u.done ? n(u.value) : r(u.value).then(a, l);
|
|
40
40
|
}
|
|
41
41
|
c((s = s.apply(i, t || [])).next());
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
function si(i, t) {
|
|
45
45
|
var e = { label: 0, sent: function() {
|
|
46
|
-
if (
|
|
47
|
-
return
|
|
48
|
-
}, trys: [], ops: [] }, s,
|
|
46
|
+
if (n[0] & 1) throw n[1];
|
|
47
|
+
return n[1];
|
|
48
|
+
}, trys: [], ops: [] }, s, r, n, o = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
49
49
|
return o.next = a(0), o.throw = a(1), o.return = a(2), typeof Symbol == "function" && (o[Symbol.iterator] = function() {
|
|
50
50
|
return this;
|
|
51
51
|
}), o;
|
|
@@ -57,45 +57,45 @@ function si(i, t) {
|
|
|
57
57
|
function l(c) {
|
|
58
58
|
if (s) throw new TypeError("Generator is already executing.");
|
|
59
59
|
for (; o && (o = 0, c[0] && (e = 0)), e; ) try {
|
|
60
|
-
if (s = 1,
|
|
61
|
-
switch (
|
|
60
|
+
if (s = 1, r && (n = c[0] & 2 ? r.return : c[0] ? r.throw || ((n = r.return) && n.call(r), 0) : r.next) && !(n = n.call(r, c[1])).done) return n;
|
|
61
|
+
switch (r = 0, n && (c = [c[0] & 2, n.value]), c[0]) {
|
|
62
62
|
case 0:
|
|
63
63
|
case 1:
|
|
64
|
-
|
|
64
|
+
n = c;
|
|
65
65
|
break;
|
|
66
66
|
case 4:
|
|
67
67
|
return e.label++, { value: c[1], done: !1 };
|
|
68
68
|
case 5:
|
|
69
|
-
e.label++,
|
|
69
|
+
e.label++, r = c[1], c = [0];
|
|
70
70
|
continue;
|
|
71
71
|
case 7:
|
|
72
72
|
c = e.ops.pop(), e.trys.pop();
|
|
73
73
|
continue;
|
|
74
74
|
default:
|
|
75
|
-
if (
|
|
75
|
+
if (n = e.trys, !(n = n.length > 0 && n[n.length - 1]) && (c[0] === 6 || c[0] === 2)) {
|
|
76
76
|
e = 0;
|
|
77
77
|
continue;
|
|
78
78
|
}
|
|
79
|
-
if (c[0] === 3 && (!
|
|
79
|
+
if (c[0] === 3 && (!n || c[1] > n[0] && c[1] < n[3])) {
|
|
80
80
|
e.label = c[1];
|
|
81
81
|
break;
|
|
82
82
|
}
|
|
83
|
-
if (c[0] === 6 && e.label <
|
|
84
|
-
e.label =
|
|
83
|
+
if (c[0] === 6 && e.label < n[1]) {
|
|
84
|
+
e.label = n[1], n = c;
|
|
85
85
|
break;
|
|
86
86
|
}
|
|
87
|
-
if (
|
|
88
|
-
e.label =
|
|
87
|
+
if (n && e.label < n[2]) {
|
|
88
|
+
e.label = n[2], e.ops.push(c);
|
|
89
89
|
break;
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
n[2] && e.ops.pop(), e.trys.pop();
|
|
92
92
|
continue;
|
|
93
93
|
}
|
|
94
94
|
c = t.call(i, e);
|
|
95
95
|
} catch (u) {
|
|
96
|
-
c = [6, u],
|
|
96
|
+
c = [6, u], r = 0;
|
|
97
97
|
} finally {
|
|
98
|
-
s =
|
|
98
|
+
s = n = 0;
|
|
99
99
|
}
|
|
100
100
|
if (c[0] & 5) throw c[1];
|
|
101
101
|
return { value: c[0] ? c[1] : void 0, done: !0 };
|
|
@@ -114,55 +114,55 @@ function q(i) {
|
|
|
114
114
|
function Ft(i, t) {
|
|
115
115
|
var e = typeof Symbol == "function" && i[Symbol.iterator];
|
|
116
116
|
if (!e) return i;
|
|
117
|
-
var s = e.call(i),
|
|
117
|
+
var s = e.call(i), r, n = [], o;
|
|
118
118
|
try {
|
|
119
|
-
for (; (t === void 0 || t-- > 0) && !(
|
|
119
|
+
for (; (t === void 0 || t-- > 0) && !(r = s.next()).done; ) n.push(r.value);
|
|
120
120
|
} catch (a) {
|
|
121
121
|
o = { error: a };
|
|
122
122
|
} finally {
|
|
123
123
|
try {
|
|
124
|
-
|
|
124
|
+
r && !r.done && (e = s.return) && e.call(s);
|
|
125
125
|
} finally {
|
|
126
126
|
if (o) throw o.error;
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
return
|
|
129
|
+
return n;
|
|
130
130
|
}
|
|
131
131
|
function Yt(i, t, e) {
|
|
132
|
-
if (e || arguments.length === 2) for (var s = 0,
|
|
133
|
-
(
|
|
134
|
-
return i.concat(
|
|
132
|
+
if (e || arguments.length === 2) for (var s = 0, r = t.length, n; s < r; s++)
|
|
133
|
+
(n || !(s in t)) && (n || (n = Array.prototype.slice.call(t, 0, s)), n[s] = t[s]);
|
|
134
|
+
return i.concat(n || Array.prototype.slice.call(t));
|
|
135
135
|
}
|
|
136
136
|
function F(i) {
|
|
137
137
|
return this instanceof F ? (this.v = i, this) : new F(i);
|
|
138
138
|
}
|
|
139
139
|
function is(i, t, e) {
|
|
140
140
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
141
|
-
var s = e.apply(i, t || []),
|
|
142
|
-
return
|
|
141
|
+
var s = e.apply(i, t || []), r, n = [];
|
|
142
|
+
return r = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), a("next"), a("throw"), a("return", o), r[Symbol.asyncIterator] = function() {
|
|
143
143
|
return this;
|
|
144
|
-
},
|
|
144
|
+
}, r;
|
|
145
145
|
function o(f) {
|
|
146
146
|
return function($) {
|
|
147
147
|
return Promise.resolve($).then(f, h);
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
150
|
function a(f, $) {
|
|
151
|
-
s[f] && (
|
|
151
|
+
s[f] && (r[f] = function(g) {
|
|
152
152
|
return new Promise(function(ut, Q) {
|
|
153
|
-
|
|
153
|
+
n.push([f, g, ut, Q]) > 1 || l(f, g);
|
|
154
154
|
});
|
|
155
|
-
}, $ && (
|
|
155
|
+
}, $ && (r[f] = $(r[f])));
|
|
156
156
|
}
|
|
157
157
|
function l(f, $) {
|
|
158
158
|
try {
|
|
159
159
|
c(s[f]($));
|
|
160
160
|
} catch (g) {
|
|
161
|
-
d(
|
|
161
|
+
d(n[0][3], g);
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
function c(f) {
|
|
165
|
-
f.value instanceof F ? Promise.resolve(f.value.v).then(u, h) : d(
|
|
165
|
+
f.value instanceof F ? Promise.resolve(f.value.v).then(u, h) : d(n[0][2], f);
|
|
166
166
|
}
|
|
167
167
|
function u(f) {
|
|
168
168
|
l("next", f);
|
|
@@ -171,7 +171,7 @@ function is(i, t, e) {
|
|
|
171
171
|
l("throw", f);
|
|
172
172
|
}
|
|
173
173
|
function d(f, $) {
|
|
174
|
-
f($),
|
|
174
|
+
f($), n.shift(), n.length && l(n[0][0], n[0][1]);
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
function ss(i) {
|
|
@@ -180,33 +180,33 @@ function ss(i) {
|
|
|
180
180
|
return t ? t.call(i) : (i = typeof q == "function" ? q(i) : i[Symbol.iterator](), e = {}, s("next"), s("throw"), s("return"), e[Symbol.asyncIterator] = function() {
|
|
181
181
|
return this;
|
|
182
182
|
}, e);
|
|
183
|
-
function s(
|
|
184
|
-
e[
|
|
183
|
+
function s(n) {
|
|
184
|
+
e[n] = i[n] && function(o) {
|
|
185
185
|
return new Promise(function(a, l) {
|
|
186
|
-
o = i[
|
|
186
|
+
o = i[n](o), r(a, l, o.done, o.value);
|
|
187
187
|
});
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
function n
|
|
190
|
+
function r(n, o, a, l) {
|
|
191
191
|
Promise.resolve(l).then(function(c) {
|
|
192
|
-
|
|
192
|
+
n({ value: c, done: a });
|
|
193
193
|
}, o);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
function v(i) {
|
|
197
197
|
return typeof i == "function";
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function ri(i) {
|
|
200
200
|
var t = function(s) {
|
|
201
201
|
Error.call(s), s.stack = new Error().stack;
|
|
202
202
|
}, e = i(t);
|
|
203
203
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
|
204
204
|
}
|
|
205
|
-
var Rt =
|
|
205
|
+
var Rt = ri(function(i) {
|
|
206
206
|
return function(e) {
|
|
207
207
|
i(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
|
208
|
-
` + e.map(function(s,
|
|
209
|
-
return
|
|
208
|
+
` + e.map(function(s, r) {
|
|
209
|
+
return r + 1 + ") " + s.toString();
|
|
210
210
|
}).join(`
|
|
211
211
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
|
212
212
|
};
|
|
@@ -222,7 +222,7 @@ var kt = function() {
|
|
|
222
222
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
223
223
|
}
|
|
224
224
|
return i.prototype.unsubscribe = function() {
|
|
225
|
-
var t, e, s,
|
|
225
|
+
var t, e, s, r, n;
|
|
226
226
|
if (!this.closed) {
|
|
227
227
|
this.closed = !0;
|
|
228
228
|
var o = this._parentage;
|
|
@@ -249,7 +249,7 @@ var kt = function() {
|
|
|
249
249
|
try {
|
|
250
250
|
u();
|
|
251
251
|
} catch (g) {
|
|
252
|
-
|
|
252
|
+
n = g instanceof Rt ? g.errors : [g];
|
|
253
253
|
}
|
|
254
254
|
var h = this._finalizers;
|
|
255
255
|
if (h) {
|
|
@@ -260,21 +260,21 @@ var kt = function() {
|
|
|
260
260
|
try {
|
|
261
261
|
ye($);
|
|
262
262
|
} catch (g) {
|
|
263
|
-
|
|
263
|
+
n = n ?? [], g instanceof Rt ? n = Yt(Yt([], Ft(n)), Ft(g.errors)) : n.push(g);
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
} catch (g) {
|
|
267
267
|
s = { error: g };
|
|
268
268
|
} finally {
|
|
269
269
|
try {
|
|
270
|
-
f && !f.done && (
|
|
270
|
+
f && !f.done && (r = d.return) && r.call(d);
|
|
271
271
|
} finally {
|
|
272
272
|
if (s) throw s.error;
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
if (
|
|
277
|
-
throw new Rt(
|
|
276
|
+
if (n)
|
|
277
|
+
throw new Rt(n);
|
|
278
278
|
}
|
|
279
279
|
}, i.prototype.add = function(t) {
|
|
280
280
|
var e;
|
|
@@ -305,16 +305,16 @@ var kt = function() {
|
|
|
305
305
|
var t = new i();
|
|
306
306
|
return t.closed = !0, t;
|
|
307
307
|
}(), i;
|
|
308
|
-
}(),
|
|
308
|
+
}(), ni = kt.EMPTY;
|
|
309
309
|
function oi(i) {
|
|
310
310
|
return i instanceof kt || i && "closed" in i && v(i.remove) && v(i.add) && v(i.unsubscribe);
|
|
311
311
|
}
|
|
312
312
|
function ye(i) {
|
|
313
313
|
v(i) ? i() : i.unsubscribe();
|
|
314
314
|
}
|
|
315
|
-
var
|
|
315
|
+
var rs = {
|
|
316
316
|
Promise: void 0
|
|
317
|
-
},
|
|
317
|
+
}, ns = {
|
|
318
318
|
setTimeout: function(i, t) {
|
|
319
319
|
for (var e = [], s = 2; s < arguments.length; s++)
|
|
320
320
|
e[s - 2] = arguments[s];
|
|
@@ -326,7 +326,7 @@ var ns = {
|
|
|
326
326
|
delegate: void 0
|
|
327
327
|
};
|
|
328
328
|
function ai(i) {
|
|
329
|
-
|
|
329
|
+
ns.setTimeout(function() {
|
|
330
330
|
throw i;
|
|
331
331
|
});
|
|
332
332
|
}
|
|
@@ -341,8 +341,8 @@ var Vt = function(i) {
|
|
|
341
341
|
var s = i.call(this) || this;
|
|
342
342
|
return s.isStopped = !1, e ? (s.destination = e, oi(e) && e.add(s)) : s.destination = ls, s;
|
|
343
343
|
}
|
|
344
|
-
return t.create = function(e, s,
|
|
345
|
-
return new qt(e, s,
|
|
344
|
+
return t.create = function(e, s, r) {
|
|
345
|
+
return new qt(e, s, r);
|
|
346
346
|
}, t.prototype.next = function(e) {
|
|
347
347
|
this.isStopped || this._next(e);
|
|
348
348
|
}, t.prototype.error = function(e) {
|
|
@@ -399,13 +399,13 @@ var Vt = function(i) {
|
|
|
399
399
|
}, i;
|
|
400
400
|
}(), qt = function(i) {
|
|
401
401
|
Z(t, i);
|
|
402
|
-
function t(e, s,
|
|
403
|
-
var
|
|
402
|
+
function t(e, s, r) {
|
|
403
|
+
var n = i.call(this) || this, o;
|
|
404
404
|
return v(e) || !e ? o = {
|
|
405
405
|
next: e ?? void 0,
|
|
406
406
|
error: s ?? void 0,
|
|
407
|
-
complete:
|
|
408
|
-
} : o = e,
|
|
407
|
+
complete: r ?? void 0
|
|
408
|
+
} : o = e, n.destination = new os(o), n;
|
|
409
409
|
}
|
|
410
410
|
return t;
|
|
411
411
|
}(Vt);
|
|
@@ -428,8 +428,8 @@ function li(i) {
|
|
|
428
428
|
}
|
|
429
429
|
function cs(i) {
|
|
430
430
|
return i.length === 0 ? li : i.length === 1 ? i[0] : function(e) {
|
|
431
|
-
return i.reduce(function(s,
|
|
432
|
-
return
|
|
431
|
+
return i.reduce(function(s, r) {
|
|
432
|
+
return r(s);
|
|
433
433
|
}, e);
|
|
434
434
|
};
|
|
435
435
|
}
|
|
@@ -441,11 +441,11 @@ var _ = function() {
|
|
|
441
441
|
var e = new i();
|
|
442
442
|
return e.source = this, e.operator = t, e;
|
|
443
443
|
}, i.prototype.subscribe = function(t, e, s) {
|
|
444
|
-
var
|
|
444
|
+
var r = this, n = hs(t) ? t : new qt(t, e, s);
|
|
445
445
|
return ft(function() {
|
|
446
|
-
var o =
|
|
447
|
-
|
|
448
|
-
}),
|
|
446
|
+
var o = r, a = o.operator, l = o.source;
|
|
447
|
+
n.add(a ? a.call(n, l) : l ? r._subscribe(n) : r._trySubscribe(n));
|
|
448
|
+
}), n;
|
|
449
449
|
}, i.prototype._trySubscribe = function(t) {
|
|
450
450
|
try {
|
|
451
451
|
return this._subscribe(t);
|
|
@@ -454,17 +454,17 @@ var _ = function() {
|
|
|
454
454
|
}
|
|
455
455
|
}, i.prototype.forEach = function(t, e) {
|
|
456
456
|
var s = this;
|
|
457
|
-
return e = _e(e), new e(function(
|
|
457
|
+
return e = _e(e), new e(function(r, n) {
|
|
458
458
|
var o = new qt({
|
|
459
459
|
next: function(a) {
|
|
460
460
|
try {
|
|
461
461
|
t(a);
|
|
462
462
|
} catch (l) {
|
|
463
|
-
|
|
463
|
+
n(l), o.unsubscribe();
|
|
464
464
|
}
|
|
465
465
|
},
|
|
466
|
-
error:
|
|
467
|
-
complete:
|
|
466
|
+
error: n,
|
|
467
|
+
complete: r
|
|
468
468
|
});
|
|
469
469
|
s.subscribe(o);
|
|
470
470
|
});
|
|
@@ -479,14 +479,14 @@ var _ = function() {
|
|
|
479
479
|
return cs(t)(this);
|
|
480
480
|
}, i.prototype.toPromise = function(t) {
|
|
481
481
|
var e = this;
|
|
482
|
-
return t = _e(t), new t(function(s,
|
|
483
|
-
var
|
|
482
|
+
return t = _e(t), new t(function(s, r) {
|
|
483
|
+
var n;
|
|
484
484
|
e.subscribe(function(o) {
|
|
485
|
-
return
|
|
485
|
+
return n = o;
|
|
486
486
|
}, function(o) {
|
|
487
|
-
return
|
|
487
|
+
return r(o);
|
|
488
488
|
}, function() {
|
|
489
|
-
return s(
|
|
489
|
+
return s(n);
|
|
490
490
|
});
|
|
491
491
|
});
|
|
492
492
|
}, i.create = function(t) {
|
|
@@ -495,7 +495,7 @@ var _ = function() {
|
|
|
495
495
|
}();
|
|
496
496
|
function _e(i) {
|
|
497
497
|
var t;
|
|
498
|
-
return (t = i ??
|
|
498
|
+
return (t = i ?? rs.Promise) !== null && t !== void 0 ? t : Promise;
|
|
499
499
|
}
|
|
500
500
|
function us(i) {
|
|
501
501
|
return i && v(i.next) && v(i.error) && v(i.complete);
|
|
@@ -519,12 +519,12 @@ function Et(i) {
|
|
|
519
519
|
throw new TypeError("Unable to lift unknown Observable type");
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
|
-
function gt(i, t, e, s,
|
|
523
|
-
return new fs(i, t, e, s,
|
|
522
|
+
function gt(i, t, e, s, r) {
|
|
523
|
+
return new fs(i, t, e, s, r);
|
|
524
524
|
}
|
|
525
525
|
var fs = function(i) {
|
|
526
526
|
Z(t, i);
|
|
527
|
-
function t(e, s,
|
|
527
|
+
function t(e, s, r, n, o, a) {
|
|
528
528
|
var l = i.call(this, e) || this;
|
|
529
529
|
return l.onFinalize = o, l.shouldUnsubscribe = a, l._next = s ? function(c) {
|
|
530
530
|
try {
|
|
@@ -532,17 +532,17 @@ var fs = function(i) {
|
|
|
532
532
|
} catch (u) {
|
|
533
533
|
e.error(u);
|
|
534
534
|
}
|
|
535
|
-
} : i.prototype._next, l._error =
|
|
535
|
+
} : i.prototype._next, l._error = n ? function(c) {
|
|
536
536
|
try {
|
|
537
|
-
|
|
537
|
+
n(c);
|
|
538
538
|
} catch (u) {
|
|
539
539
|
e.error(u);
|
|
540
540
|
} finally {
|
|
541
541
|
this.unsubscribe();
|
|
542
542
|
}
|
|
543
|
-
} : i.prototype._error, l._complete =
|
|
543
|
+
} : i.prototype._error, l._complete = r ? function() {
|
|
544
544
|
try {
|
|
545
|
-
|
|
545
|
+
r();
|
|
546
546
|
} catch (c) {
|
|
547
547
|
e.error(c);
|
|
548
548
|
} finally {
|
|
@@ -557,7 +557,7 @@ var fs = function(i) {
|
|
|
557
557
|
i.prototype.unsubscribe.call(this), !s && ((e = this.onFinalize) === null || e === void 0 || e.call(this));
|
|
558
558
|
}
|
|
559
559
|
}, t;
|
|
560
|
-
}(Vt), ps =
|
|
560
|
+
}(Vt), ps = ri(function(i) {
|
|
561
561
|
return function() {
|
|
562
562
|
i(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
563
563
|
};
|
|
@@ -576,7 +576,7 @@ var fs = function(i) {
|
|
|
576
576
|
}, t.prototype.next = function(e) {
|
|
577
577
|
var s = this;
|
|
578
578
|
ft(function() {
|
|
579
|
-
var
|
|
579
|
+
var r, n;
|
|
580
580
|
if (s._throwIfClosed(), !s.isStopped) {
|
|
581
581
|
s.currentObservers || (s.currentObservers = Array.from(s.observers));
|
|
582
582
|
try {
|
|
@@ -585,12 +585,12 @@ var fs = function(i) {
|
|
|
585
585
|
l.next(e);
|
|
586
586
|
}
|
|
587
587
|
} catch (c) {
|
|
588
|
-
|
|
588
|
+
r = { error: c };
|
|
589
589
|
} finally {
|
|
590
590
|
try {
|
|
591
|
-
a && !a.done && (
|
|
591
|
+
a && !a.done && (n = o.return) && n.call(o);
|
|
592
592
|
} finally {
|
|
593
|
-
if (
|
|
593
|
+
if (r) throw r.error;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
596
|
}
|
|
@@ -600,8 +600,8 @@ var fs = function(i) {
|
|
|
600
600
|
ft(function() {
|
|
601
601
|
if (s._throwIfClosed(), !s.isStopped) {
|
|
602
602
|
s.hasError = s.isStopped = !0, s.thrownError = e;
|
|
603
|
-
for (var
|
|
604
|
-
|
|
603
|
+
for (var r = s.observers; r.length; )
|
|
604
|
+
r.shift().error(e);
|
|
605
605
|
}
|
|
606
606
|
});
|
|
607
607
|
}, t.prototype.complete = function() {
|
|
@@ -627,13 +627,13 @@ var fs = function(i) {
|
|
|
627
627
|
}, t.prototype._subscribe = function(e) {
|
|
628
628
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
|
629
629
|
}, t.prototype._innerSubscribe = function(e) {
|
|
630
|
-
var s = this,
|
|
631
|
-
return
|
|
630
|
+
var s = this, r = this, n = r.hasError, o = r.isStopped, a = r.observers;
|
|
631
|
+
return n || o ? ni : (this.currentObservers = null, a.push(e), new kt(function() {
|
|
632
632
|
s.currentObservers = null, Wt(a, e);
|
|
633
633
|
}));
|
|
634
634
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
|
635
|
-
var s = this,
|
|
636
|
-
|
|
635
|
+
var s = this, r = s.hasError, n = s.thrownError, o = s.isStopped;
|
|
636
|
+
r ? e.error(n) : o && e.complete();
|
|
637
637
|
}, t.prototype.asObservable = function() {
|
|
638
638
|
var e = new _();
|
|
639
639
|
return e.source = this, e;
|
|
@@ -643,21 +643,21 @@ var fs = function(i) {
|
|
|
643
643
|
}(_), we = function(i) {
|
|
644
644
|
Z(t, i);
|
|
645
645
|
function t(e, s) {
|
|
646
|
-
var
|
|
647
|
-
return
|
|
646
|
+
var r = i.call(this) || this;
|
|
647
|
+
return r.destination = e, r.source = s, r;
|
|
648
648
|
}
|
|
649
649
|
return t.prototype.next = function(e) {
|
|
650
|
-
var s,
|
|
651
|
-
(
|
|
650
|
+
var s, r;
|
|
651
|
+
(r = (s = this.destination) === null || s === void 0 ? void 0 : s.next) === null || r === void 0 || r.call(s, e);
|
|
652
652
|
}, t.prototype.error = function(e) {
|
|
653
|
-
var s,
|
|
654
|
-
(
|
|
653
|
+
var s, r;
|
|
654
|
+
(r = (s = this.destination) === null || s === void 0 ? void 0 : s.error) === null || r === void 0 || r.call(s, e);
|
|
655
655
|
}, t.prototype.complete = function() {
|
|
656
656
|
var e, s;
|
|
657
657
|
(s = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || s === void 0 || s.call(e);
|
|
658
658
|
}, t.prototype._subscribe = function(e) {
|
|
659
|
-
var s,
|
|
660
|
-
return (
|
|
659
|
+
var s, r;
|
|
660
|
+
return (r = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(e)) !== null && r !== void 0 ? r : ni;
|
|
661
661
|
}, t;
|
|
662
662
|
}(Ct), ci = function(i) {
|
|
663
663
|
Z(t, i);
|
|
@@ -675,10 +675,10 @@ var fs = function(i) {
|
|
|
675
675
|
var s = i.prototype._subscribe.call(this, e);
|
|
676
676
|
return !s.closed && e.next(this._value), s;
|
|
677
677
|
}, t.prototype.getValue = function() {
|
|
678
|
-
var e = this, s = e.hasError,
|
|
678
|
+
var e = this, s = e.hasError, r = e.thrownError, n = e._value;
|
|
679
679
|
if (s)
|
|
680
|
-
throw
|
|
681
|
-
return this._throwIfClosed(),
|
|
680
|
+
throw r;
|
|
681
|
+
return this._throwIfClosed(), n;
|
|
682
682
|
}, t.prototype.next = function(e) {
|
|
683
683
|
i.prototype.next.call(this, this._value = e);
|
|
684
684
|
}, t;
|
|
@@ -721,7 +721,7 @@ function vi(i) {
|
|
|
721
721
|
}
|
|
722
722
|
function mi(i) {
|
|
723
723
|
return is(this, arguments, function() {
|
|
724
|
-
var e, s,
|
|
724
|
+
var e, s, r, n;
|
|
725
725
|
return si(this, function(o) {
|
|
726
726
|
switch (o.label) {
|
|
727
727
|
case 0:
|
|
@@ -731,11 +731,11 @@ function mi(i) {
|
|
|
731
731
|
case 2:
|
|
732
732
|
return [4, F(e.read())];
|
|
733
733
|
case 3:
|
|
734
|
-
return s = o.sent(),
|
|
734
|
+
return s = o.sent(), r = s.value, n = s.done, n ? [4, F(void 0)] : [3, 5];
|
|
735
735
|
case 4:
|
|
736
736
|
return [2, o.sent()];
|
|
737
737
|
case 5:
|
|
738
|
-
return [4, F(
|
|
738
|
+
return [4, F(r)];
|
|
739
739
|
case 6:
|
|
740
740
|
return [4, o.sent()];
|
|
741
741
|
case 7:
|
|
@@ -800,8 +800,8 @@ function xs(i) {
|
|
|
800
800
|
return new _(function(t) {
|
|
801
801
|
var e, s;
|
|
802
802
|
try {
|
|
803
|
-
for (var
|
|
804
|
-
var o =
|
|
803
|
+
for (var r = q(i), n = r.next(); !n.done; n = r.next()) {
|
|
804
|
+
var o = n.value;
|
|
805
805
|
if (t.next(o), t.closed)
|
|
806
806
|
return;
|
|
807
807
|
}
|
|
@@ -809,7 +809,7 @@ function xs(i) {
|
|
|
809
809
|
e = { error: a };
|
|
810
810
|
} finally {
|
|
811
811
|
try {
|
|
812
|
-
|
|
812
|
+
n && !n.done && (s = r.return) && s.call(r);
|
|
813
813
|
} finally {
|
|
814
814
|
if (e) throw e.error;
|
|
815
815
|
}
|
|
@@ -828,7 +828,7 @@ function Ss(i) {
|
|
|
828
828
|
return bi(mi(i));
|
|
829
829
|
}
|
|
830
830
|
function As(i, t) {
|
|
831
|
-
var e, s,
|
|
831
|
+
var e, s, r, n;
|
|
832
832
|
return es(this, void 0, void 0, function() {
|
|
833
833
|
var o, a;
|
|
834
834
|
return si(this, function(l) {
|
|
@@ -847,15 +847,15 @@ function As(i, t) {
|
|
|
847
847
|
case 4:
|
|
848
848
|
return [3, 11];
|
|
849
849
|
case 5:
|
|
850
|
-
return a = l.sent(),
|
|
850
|
+
return a = l.sent(), r = { error: a }, [3, 11];
|
|
851
851
|
case 6:
|
|
852
|
-
return l.trys.push([6, , 9, 10]), s && !s.done && (
|
|
852
|
+
return l.trys.push([6, , 9, 10]), s && !s.done && (n = e.return) ? [4, n.call(e)] : [3, 8];
|
|
853
853
|
case 7:
|
|
854
854
|
l.sent(), l.label = 8;
|
|
855
855
|
case 8:
|
|
856
856
|
return [3, 10];
|
|
857
857
|
case 9:
|
|
858
|
-
if (
|
|
858
|
+
if (r) throw r.error;
|
|
859
859
|
return [7];
|
|
860
860
|
case 10:
|
|
861
861
|
return [7];
|
|
@@ -865,27 +865,27 @@ function As(i, t) {
|
|
|
865
865
|
});
|
|
866
866
|
});
|
|
867
867
|
}
|
|
868
|
-
function L(i, t, e, s,
|
|
869
|
-
s === void 0 && (s = 0),
|
|
870
|
-
var
|
|
871
|
-
e(),
|
|
868
|
+
function L(i, t, e, s, r) {
|
|
869
|
+
s === void 0 && (s = 0), r === void 0 && (r = !1);
|
|
870
|
+
var n = t.schedule(function() {
|
|
871
|
+
e(), r ? i.add(this.schedule(null, s)) : this.unsubscribe();
|
|
872
872
|
}, s);
|
|
873
|
-
if (i.add(
|
|
874
|
-
return
|
|
873
|
+
if (i.add(n), !r)
|
|
874
|
+
return n;
|
|
875
875
|
}
|
|
876
876
|
function _i(i, t) {
|
|
877
877
|
return t === void 0 && (t = 0), Et(function(e, s) {
|
|
878
|
-
e.subscribe(gt(s, function(
|
|
878
|
+
e.subscribe(gt(s, function(r) {
|
|
879
879
|
return L(s, i, function() {
|
|
880
|
-
return s.next(
|
|
880
|
+
return s.next(r);
|
|
881
881
|
}, t);
|
|
882
882
|
}, function() {
|
|
883
883
|
return L(s, i, function() {
|
|
884
884
|
return s.complete();
|
|
885
885
|
}, t);
|
|
886
|
-
}, function(
|
|
886
|
+
}, function(r) {
|
|
887
887
|
return L(s, i, function() {
|
|
888
|
-
return s.error(
|
|
888
|
+
return s.error(r);
|
|
889
889
|
}, t);
|
|
890
890
|
}));
|
|
891
891
|
});
|
|
@@ -916,14 +916,14 @@ function Os(i, t) {
|
|
|
916
916
|
var s;
|
|
917
917
|
return L(e, t, function() {
|
|
918
918
|
s = i[$i](), L(e, t, function() {
|
|
919
|
-
var
|
|
919
|
+
var r, n, o;
|
|
920
920
|
try {
|
|
921
|
-
|
|
921
|
+
r = s.next(), n = r.value, o = r.done;
|
|
922
922
|
} catch (a) {
|
|
923
923
|
e.error(a);
|
|
924
924
|
return;
|
|
925
925
|
}
|
|
926
|
-
o ? e.complete() : e.next(
|
|
926
|
+
o ? e.complete() : e.next(n);
|
|
927
927
|
}, 0, !0);
|
|
928
928
|
}), function() {
|
|
929
929
|
return v(s == null ? void 0 : s.return) && s.return();
|
|
@@ -937,8 +937,8 @@ function xi(i, t) {
|
|
|
937
937
|
L(e, t, function() {
|
|
938
938
|
var s = i[Symbol.asyncIterator]();
|
|
939
939
|
L(e, t, function() {
|
|
940
|
-
s.next().then(function(
|
|
941
|
-
|
|
940
|
+
s.next().then(function(r) {
|
|
941
|
+
r.done ? e.complete() : e.next(r.value);
|
|
942
942
|
});
|
|
943
943
|
}, 0, !0);
|
|
944
944
|
});
|
|
@@ -969,13 +969,13 @@ function Is(i, t) {
|
|
|
969
969
|
}
|
|
970
970
|
function Ls(i, t) {
|
|
971
971
|
return Et(function(e, s) {
|
|
972
|
-
var
|
|
973
|
-
e.subscribe(gt(s, function(
|
|
974
|
-
s.next(i.call(t,
|
|
972
|
+
var r = 0;
|
|
973
|
+
e.subscribe(gt(s, function(n) {
|
|
974
|
+
s.next(i.call(t, n, r++));
|
|
975
975
|
}));
|
|
976
976
|
});
|
|
977
977
|
}
|
|
978
|
-
function Rs(i, t, e, s,
|
|
978
|
+
function Rs(i, t, e, s, r, n, o, a) {
|
|
979
979
|
var l = [], c = 0, u = 0, h = !1, d = function() {
|
|
980
980
|
h && !l.length && !c && t.complete();
|
|
981
981
|
}, f = function(g) {
|
|
@@ -1008,12 +1008,12 @@ function Rs(i, t, e, s, n, r, o, a) {
|
|
|
1008
1008
|
};
|
|
1009
1009
|
}
|
|
1010
1010
|
function Si(i, t, e) {
|
|
1011
|
-
return e === void 0 && (e = 1 / 0), v(t) ? Si(function(s,
|
|
1012
|
-
return Ls(function(
|
|
1013
|
-
return t(s,
|
|
1014
|
-
})(X(i(s,
|
|
1015
|
-
}, e) : (typeof t == "number" && (e = t), Et(function(s,
|
|
1016
|
-
return Rs(s,
|
|
1011
|
+
return e === void 0 && (e = 1 / 0), v(t) ? Si(function(s, r) {
|
|
1012
|
+
return Ls(function(n, o) {
|
|
1013
|
+
return t(s, n, r, o);
|
|
1014
|
+
})(X(i(s, r)));
|
|
1015
|
+
}, e) : (typeof t == "number" && (e = t), Et(function(s, r) {
|
|
1016
|
+
return Rs(s, r, i, e);
|
|
1017
1017
|
}));
|
|
1018
1018
|
}
|
|
1019
1019
|
function Us(i) {
|
|
@@ -1022,8 +1022,8 @@ function Us(i) {
|
|
|
1022
1022
|
function js() {
|
|
1023
1023
|
for (var i = [], t = 0; t < arguments.length; t++)
|
|
1024
1024
|
i[t] = arguments[t];
|
|
1025
|
-
var e = vs(i), s = ms(i, 1 / 0),
|
|
1026
|
-
return
|
|
1025
|
+
var e = vs(i), s = ms(i, 1 / 0), r = i;
|
|
1026
|
+
return r.length ? r.length === 1 ? X(r[0]) : Us(s)(Is(r, e)) : gs;
|
|
1027
1027
|
}
|
|
1028
1028
|
/**
|
|
1029
1029
|
* @license
|
|
@@ -1050,17 +1050,17 @@ let Ai = class {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
};
|
|
1052
1052
|
const Ms = (i) => new Ai(typeof i == "string" ? i : i + "", void 0, ie), M = (i, ...t) => {
|
|
1053
|
-
const e = i.length === 1 ? i[0] : t.reduce((s,
|
|
1053
|
+
const e = i.length === 1 ? i[0] : t.reduce((s, r, n) => s + ((o) => {
|
|
1054
1054
|
if (o._$cssResult$ === !0) return o.cssText;
|
|
1055
1055
|
if (typeof o == "number") return o;
|
|
1056
1056
|
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.");
|
|
1057
|
-
})(
|
|
1057
|
+
})(r) + i[n + 1], i[0]);
|
|
1058
1058
|
return new Ai(e, i, ie);
|
|
1059
1059
|
}, Ns = (i, t) => {
|
|
1060
1060
|
if (ee) i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
1061
1061
|
else for (const e of t) {
|
|
1062
|
-
const s = document.createElement("style"),
|
|
1063
|
-
|
|
1062
|
+
const s = document.createElement("style"), r = pt.litNonce;
|
|
1063
|
+
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, i.appendChild(s);
|
|
1064
1064
|
}
|
|
1065
1065
|
}, Se = ee ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
|
|
1066
1066
|
let e = "";
|
|
@@ -1111,21 +1111,21 @@ let B = class extends HTMLElement {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
static createProperty(t, e = ke) {
|
|
1113
1113
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
1114
|
-
const s = Symbol(),
|
|
1115
|
-
|
|
1114
|
+
const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
|
|
1115
|
+
r !== void 0 && Hs(this.prototype, t, r);
|
|
1116
1116
|
}
|
|
1117
1117
|
}
|
|
1118
1118
|
static getPropertyDescriptor(t, e, s) {
|
|
1119
|
-
const { get:
|
|
1119
|
+
const { get: r, set: n } = Ds(this.prototype, t) ?? { get() {
|
|
1120
1120
|
return this[e];
|
|
1121
1121
|
}, set(o) {
|
|
1122
1122
|
this[e] = o;
|
|
1123
1123
|
} };
|
|
1124
1124
|
return { get() {
|
|
1125
|
-
return
|
|
1125
|
+
return r == null ? void 0 : r.call(this);
|
|
1126
1126
|
}, set(o) {
|
|
1127
|
-
const a =
|
|
1128
|
-
|
|
1127
|
+
const a = r == null ? void 0 : r.call(this);
|
|
1128
|
+
n.call(this, o), this.requestUpdate(t, a, s);
|
|
1129
1129
|
}, configurable: !0, enumerable: !0 };
|
|
1130
1130
|
}
|
|
1131
1131
|
static getPropertyOptions(t) {
|
|
@@ -1140,17 +1140,17 @@ let B = class extends HTMLElement {
|
|
|
1140
1140
|
if (this.hasOwnProperty(V("finalized"))) return;
|
|
1141
1141
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(V("properties"))) {
|
|
1142
1142
|
const e = this.properties, s = [...zs(e), ...Fs(e)];
|
|
1143
|
-
for (const
|
|
1143
|
+
for (const r of s) this.createProperty(r, e[r]);
|
|
1144
1144
|
}
|
|
1145
1145
|
const t = this[Symbol.metadata];
|
|
1146
1146
|
if (t !== null) {
|
|
1147
1147
|
const e = litPropertyMetadata.get(t);
|
|
1148
|
-
if (e !== void 0) for (const [s,
|
|
1148
|
+
if (e !== void 0) for (const [s, r] of e) this.elementProperties.set(s, r);
|
|
1149
1149
|
}
|
|
1150
1150
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
1151
1151
|
for (const [e, s] of this.elementProperties) {
|
|
1152
|
-
const
|
|
1153
|
-
|
|
1152
|
+
const r = this._$Eu(e, s);
|
|
1153
|
+
r !== void 0 && this._$Eh.set(r, e);
|
|
1154
1154
|
}
|
|
1155
1155
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
1156
1156
|
}
|
|
@@ -1158,7 +1158,7 @@ let B = class extends HTMLElement {
|
|
|
1158
1158
|
const e = [];
|
|
1159
1159
|
if (Array.isArray(t)) {
|
|
1160
1160
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
1161
|
-
for (const
|
|
1161
|
+
for (const r of s) e.unshift(Se(r));
|
|
1162
1162
|
} else t !== void 0 && e.push(Se(t));
|
|
1163
1163
|
return e;
|
|
1164
1164
|
}
|
|
@@ -1210,19 +1210,19 @@ let B = class extends HTMLElement {
|
|
|
1210
1210
|
this._$AK(t, s);
|
|
1211
1211
|
}
|
|
1212
1212
|
_$EC(t, e) {
|
|
1213
|
-
var
|
|
1214
|
-
const s = this.constructor.elementProperties.get(t),
|
|
1215
|
-
if (
|
|
1216
|
-
const o = (((
|
|
1217
|
-
this._$Em = t, o == null ? this.removeAttribute(
|
|
1213
|
+
var n;
|
|
1214
|
+
const s = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, s);
|
|
1215
|
+
if (r !== void 0 && s.reflect === !0) {
|
|
1216
|
+
const o = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : $t).toAttribute(e, s.type);
|
|
1217
|
+
this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
|
|
1218
1218
|
}
|
|
1219
1219
|
}
|
|
1220
1220
|
_$AK(t, e) {
|
|
1221
|
-
var
|
|
1222
|
-
const s = this.constructor,
|
|
1223
|
-
if (
|
|
1224
|
-
const o = s.getPropertyOptions(
|
|
1225
|
-
this._$Em =
|
|
1221
|
+
var n;
|
|
1222
|
+
const s = this.constructor, r = s._$Eh.get(t);
|
|
1223
|
+
if (r !== void 0 && this._$Em !== r) {
|
|
1224
|
+
const o = s.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : $t;
|
|
1225
|
+
this._$Em = r, this[r] = a.fromAttribute(e, o.type), this._$Em = null;
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
1228
|
requestUpdate(t, e, s) {
|
|
@@ -1253,21 +1253,21 @@ let B = class extends HTMLElement {
|
|
|
1253
1253
|
if (!this.isUpdatePending) return;
|
|
1254
1254
|
if (!this.hasUpdated) {
|
|
1255
1255
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
1256
|
-
for (const [
|
|
1256
|
+
for (const [n, o] of this._$Ep) this[n] = o;
|
|
1257
1257
|
this._$Ep = void 0;
|
|
1258
1258
|
}
|
|
1259
|
-
const
|
|
1260
|
-
if (
|
|
1259
|
+
const r = this.constructor.elementProperties;
|
|
1260
|
+
if (r.size > 0) for (const [n, o] of r) o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], o);
|
|
1261
1261
|
}
|
|
1262
1262
|
let t = !1;
|
|
1263
1263
|
const e = this._$AL;
|
|
1264
1264
|
try {
|
|
1265
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((
|
|
1266
|
-
var
|
|
1267
|
-
return (
|
|
1265
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((r) => {
|
|
1266
|
+
var n;
|
|
1267
|
+
return (n = r.hostUpdate) == null ? void 0 : n.call(r);
|
|
1268
1268
|
}), this.update(e)) : this._$EU();
|
|
1269
|
-
} catch (
|
|
1270
|
-
throw t = !1, this._$EU(),
|
|
1269
|
+
} catch (r) {
|
|
1270
|
+
throw t = !1, this._$EU(), r;
|
|
1271
1271
|
}
|
|
1272
1272
|
t && this._$AE(e);
|
|
1273
1273
|
}
|
|
@@ -1276,8 +1276,8 @@ let B = class extends HTMLElement {
|
|
|
1276
1276
|
_$AE(t) {
|
|
1277
1277
|
var e;
|
|
1278
1278
|
(e = this._$EO) == null || e.forEach((s) => {
|
|
1279
|
-
var
|
|
1280
|
-
return (
|
|
1279
|
+
var r;
|
|
1280
|
+
return (r = s.hostUpdated) == null ? void 0 : r.call(s);
|
|
1281
1281
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
1282
1282
|
}
|
|
1283
1283
|
_$EU() {
|
|
@@ -1306,55 +1306,55 @@ B.elementStyles = [], B.shadowRootOptions = { mode: "open" }, B[V("elementProper
|
|
|
1306
1306
|
* Copyright 2017 Google LLC
|
|
1307
1307
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1308
1308
|
*/
|
|
1309
|
-
const tt = globalThis, vt = tt.trustedTypes, Ee = vt ? vt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, ki = "$lit$", C = `lit$${Math.random().toFixed(9).slice(2)}$`, Ei = "?" + C, qs = `<${Ei}>`, R = document, it = () => R.createComment(""), st = (i) => i === null || typeof i != "object" && typeof i != "function",
|
|
1309
|
+
const tt = globalThis, vt = tt.trustedTypes, Ee = vt ? vt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, ki = "$lit$", C = `lit$${Math.random().toFixed(9).slice(2)}$`, Ei = "?" + C, qs = `<${Ei}>`, R = document, it = () => R.createComment(""), st = (i) => i === null || typeof i != "object" && typeof i != "function", re = Array.isArray, Gs = (i) => re(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", jt = `[
|
|
1310
1310
|
\f\r]`, J = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ce = /-->/g, Oe = />/g, T = RegExp(`>|${jt}(?:([^\\s"'>=/]+)(${jt}*=${jt}*(?:[^
|
|
1311
1311
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), Te = /'/g, Pe = /"/g, Ci = /^(?:script|style|textarea|title)$/i, Ks = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), k = Ks(1), U = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), Ie = /* @__PURE__ */ new WeakMap(), I = R.createTreeWalker(R, 129);
|
|
1312
1312
|
function Oi(i, t) {
|
|
1313
|
-
if (!
|
|
1313
|
+
if (!re(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1314
1314
|
return Ee !== void 0 ? Ee.createHTML(t) : t;
|
|
1315
1315
|
}
|
|
1316
1316
|
const Zs = (i, t) => {
|
|
1317
1317
|
const e = i.length - 1, s = [];
|
|
1318
|
-
let
|
|
1318
|
+
let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = J;
|
|
1319
1319
|
for (let a = 0; a < e; a++) {
|
|
1320
1320
|
const l = i[a];
|
|
1321
1321
|
let c, u, h = -1, d = 0;
|
|
1322
|
-
for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); ) d = o.lastIndex, o === J ? u[1] === "!--" ? o = Ce : u[1] !== void 0 ? o = Oe : u[2] !== void 0 ? (Ci.test(u[2]) && (
|
|
1322
|
+
for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); ) d = o.lastIndex, o === J ? u[1] === "!--" ? o = Ce : u[1] !== void 0 ? o = Oe : u[2] !== void 0 ? (Ci.test(u[2]) && (r = RegExp("</" + u[2], "g")), o = T) : u[3] !== void 0 && (o = T) : o === T ? u[0] === ">" ? (o = r ?? J, h = -1) : u[1] === void 0 ? h = -2 : (h = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? T : u[3] === '"' ? Pe : Te) : o === Pe || o === Te ? o = T : o === Ce || o === Oe ? o = J : (o = T, r = void 0);
|
|
1323
1323
|
const f = o === T && i[a + 1].startsWith("/>") ? " " : "";
|
|
1324
|
-
|
|
1324
|
+
n += o === J ? l + qs : h >= 0 ? (s.push(c), l.slice(0, h) + ki + l.slice(h) + C + f) : l + C + (h === -2 ? a : f);
|
|
1325
1325
|
}
|
|
1326
|
-
return [Oi(i,
|
|
1326
|
+
return [Oi(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
1327
1327
|
};
|
|
1328
1328
|
let Gt = class Ti {
|
|
1329
1329
|
constructor({ strings: t, _$litType$: e }, s) {
|
|
1330
|
-
let
|
|
1330
|
+
let r;
|
|
1331
1331
|
this.parts = [];
|
|
1332
|
-
let
|
|
1332
|
+
let n = 0, o = 0;
|
|
1333
1333
|
const a = t.length - 1, l = this.parts, [c, u] = Zs(t, e);
|
|
1334
1334
|
if (this.el = Ti.createElement(c, s), I.currentNode = this.el.content, e === 2 || e === 3) {
|
|
1335
1335
|
const h = this.el.content.firstChild;
|
|
1336
1336
|
h.replaceWith(...h.childNodes);
|
|
1337
1337
|
}
|
|
1338
|
-
for (; (
|
|
1339
|
-
if (
|
|
1340
|
-
if (
|
|
1341
|
-
const d = u[o++], f =
|
|
1342
|
-
l.push({ type: 1, index:
|
|
1343
|
-
} else h.startsWith(C) && (l.push({ type: 6, index:
|
|
1344
|
-
if (Ci.test(
|
|
1345
|
-
const h =
|
|
1338
|
+
for (; (r = I.nextNode()) !== null && l.length < a; ) {
|
|
1339
|
+
if (r.nodeType === 1) {
|
|
1340
|
+
if (r.hasAttributes()) for (const h of r.getAttributeNames()) if (h.endsWith(ki)) {
|
|
1341
|
+
const d = u[o++], f = r.getAttribute(h).split(C), $ = /([.?@])?(.*)/.exec(d);
|
|
1342
|
+
l.push({ type: 1, index: n, name: $[2], strings: f, ctor: $[1] === "." ? Qs : $[1] === "?" ? Js : $[1] === "@" ? Vs : Ot }), r.removeAttribute(h);
|
|
1343
|
+
} else h.startsWith(C) && (l.push({ type: 6, index: n }), r.removeAttribute(h));
|
|
1344
|
+
if (Ci.test(r.tagName)) {
|
|
1345
|
+
const h = r.textContent.split(C), d = h.length - 1;
|
|
1346
1346
|
if (d > 0) {
|
|
1347
|
-
|
|
1348
|
-
for (let f = 0; f < d; f++)
|
|
1349
|
-
|
|
1347
|
+
r.textContent = vt ? vt.emptyScript : "";
|
|
1348
|
+
for (let f = 0; f < d; f++) r.append(h[f], it()), I.nextNode(), l.push({ type: 2, index: ++n });
|
|
1349
|
+
r.append(h[d], it());
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
|
-
} else if (
|
|
1352
|
+
} else if (r.nodeType === 8) if (r.data === Ei) l.push({ type: 2, index: n });
|
|
1353
1353
|
else {
|
|
1354
1354
|
let h = -1;
|
|
1355
|
-
for (; (h =
|
|
1355
|
+
for (; (h = r.data.indexOf(C, h + 1)) !== -1; ) l.push({ type: 7, index: n }), h += C.length - 1;
|
|
1356
1356
|
}
|
|
1357
|
-
|
|
1357
|
+
n++;
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
1360
|
static createElement(t, e) {
|
|
@@ -1365,9 +1365,9 @@ let Gt = class Ti {
|
|
|
1365
1365
|
function G(i, t, e = i, s) {
|
|
1366
1366
|
var o, a;
|
|
1367
1367
|
if (t === U) return t;
|
|
1368
|
-
let
|
|
1369
|
-
const
|
|
1370
|
-
return (
|
|
1368
|
+
let r = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
|
|
1369
|
+
const n = st(t) ? void 0 : t._$litDirective$;
|
|
1370
|
+
return (r == null ? void 0 : r.constructor) !== n && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), n === void 0 ? r = void 0 : (r = new n(i), r._$AT(i, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = r : e._$Cl = r), r !== void 0 && (t = G(i, r._$AS(i, t.values), r, s)), t;
|
|
1371
1371
|
}
|
|
1372
1372
|
class Xs {
|
|
1373
1373
|
constructor(t, e) {
|
|
@@ -1380,17 +1380,17 @@ class Xs {
|
|
|
1380
1380
|
return this._$AM._$AU;
|
|
1381
1381
|
}
|
|
1382
1382
|
u(t) {
|
|
1383
|
-
const { el: { content: e }, parts: s } = this._$AD,
|
|
1384
|
-
I.currentNode =
|
|
1385
|
-
let
|
|
1383
|
+
const { el: { content: e }, parts: s } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? R).importNode(e, !0);
|
|
1384
|
+
I.currentNode = r;
|
|
1385
|
+
let n = I.nextNode(), o = 0, a = 0, l = s[0];
|
|
1386
1386
|
for (; l !== void 0; ) {
|
|
1387
1387
|
if (o === l.index) {
|
|
1388
1388
|
let c;
|
|
1389
|
-
l.type === 2 ? c = new at(
|
|
1389
|
+
l.type === 2 ? c = new at(n, n.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(n, l.name, l.strings, this, t) : l.type === 6 && (c = new tr(n, this, t)), this._$AV.push(c), l = s[++a];
|
|
1390
1390
|
}
|
|
1391
|
-
o !== (l == null ? void 0 : l.index) && (
|
|
1391
|
+
o !== (l == null ? void 0 : l.index) && (n = I.nextNode(), o++);
|
|
1392
1392
|
}
|
|
1393
|
-
return I.currentNode = R,
|
|
1393
|
+
return I.currentNode = R, r;
|
|
1394
1394
|
}
|
|
1395
1395
|
p(t) {
|
|
1396
1396
|
let e = 0;
|
|
@@ -1402,8 +1402,8 @@ class at {
|
|
|
1402
1402
|
var t;
|
|
1403
1403
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
1404
1404
|
}
|
|
1405
|
-
constructor(t, e, s,
|
|
1406
|
-
this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options =
|
|
1405
|
+
constructor(t, e, s, r) {
|
|
1406
|
+
this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
|
|
1407
1407
|
}
|
|
1408
1408
|
get parentNode() {
|
|
1409
1409
|
let t = this._$AA.parentNode;
|
|
@@ -1429,11 +1429,11 @@ class at {
|
|
|
1429
1429
|
this._$AH !== p && st(this._$AH) ? this._$AA.nextSibling.data = t : this.T(R.createTextNode(t)), this._$AH = t;
|
|
1430
1430
|
}
|
|
1431
1431
|
$(t) {
|
|
1432
|
-
var
|
|
1433
|
-
const { values: e, _$litType$: s } = t,
|
|
1434
|
-
if (((
|
|
1432
|
+
var n;
|
|
1433
|
+
const { values: e, _$litType$: s } = t, r = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = Gt.createElement(Oi(s.h, s.h[0]), this.options)), s);
|
|
1434
|
+
if (((n = this._$AH) == null ? void 0 : n._$AD) === r) this._$AH.p(e);
|
|
1435
1435
|
else {
|
|
1436
|
-
const o = new Xs(
|
|
1436
|
+
const o = new Xs(r, this), a = o.u(this.options);
|
|
1437
1437
|
o.p(e), this.T(a), this._$AH = o;
|
|
1438
1438
|
}
|
|
1439
1439
|
}
|
|
@@ -1442,17 +1442,17 @@ class at {
|
|
|
1442
1442
|
return e === void 0 && Ie.set(t.strings, e = new Gt(t)), e;
|
|
1443
1443
|
}
|
|
1444
1444
|
k(t) {
|
|
1445
|
-
|
|
1445
|
+
re(this._$AH) || (this._$AH = [], this._$AR());
|
|
1446
1446
|
const e = this._$AH;
|
|
1447
|
-
let s,
|
|
1448
|
-
for (const
|
|
1449
|
-
|
|
1447
|
+
let s, r = 0;
|
|
1448
|
+
for (const n of t) r === e.length ? e.push(s = new at(this.O(it()), this.O(it()), this, this.options)) : s = e[r], s._$AI(n), r++;
|
|
1449
|
+
r < e.length && (this._$AR(s && s._$AB.nextSibling, r), e.length = r);
|
|
1450
1450
|
}
|
|
1451
1451
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
1452
1452
|
var s;
|
|
1453
1453
|
for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
|
1454
|
-
const
|
|
1455
|
-
t.remove(), t =
|
|
1454
|
+
const r = t.nextSibling;
|
|
1455
|
+
t.remove(), t = r;
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
1458
|
setConnected(t) {
|
|
@@ -1467,19 +1467,19 @@ class Ot {
|
|
|
1467
1467
|
get _$AU() {
|
|
1468
1468
|
return this._$AM._$AU;
|
|
1469
1469
|
}
|
|
1470
|
-
constructor(t, e, s,
|
|
1471
|
-
this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM =
|
|
1470
|
+
constructor(t, e, s, r, n) {
|
|
1471
|
+
this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = p;
|
|
1472
1472
|
}
|
|
1473
|
-
_$AI(t, e = this, s,
|
|
1474
|
-
const
|
|
1473
|
+
_$AI(t, e = this, s, r) {
|
|
1474
|
+
const n = this.strings;
|
|
1475
1475
|
let o = !1;
|
|
1476
|
-
if (
|
|
1476
|
+
if (n === void 0) t = G(this, t, e, 0), o = !st(t) || t !== this._$AH && t !== U, o && (this._$AH = t);
|
|
1477
1477
|
else {
|
|
1478
1478
|
const a = t;
|
|
1479
1479
|
let l, c;
|
|
1480
|
-
for (t =
|
|
1480
|
+
for (t = n[0], l = 0; l < n.length - 1; l++) c = G(this, a[s + l], e, l), c === U && (c = this._$AH[l]), o || (o = !st(c) || c !== this._$AH[l]), c === p ? t = p : t !== p && (t += (c ?? "") + n[l + 1]), this._$AH[l] = c;
|
|
1481
1481
|
}
|
|
1482
|
-
o && !
|
|
1482
|
+
o && !r && this.j(t);
|
|
1483
1483
|
}
|
|
1484
1484
|
j(t) {
|
|
1485
1485
|
t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
@@ -1502,20 +1502,20 @@ class Js extends Ot {
|
|
|
1502
1502
|
}
|
|
1503
1503
|
}
|
|
1504
1504
|
class Vs extends Ot {
|
|
1505
|
-
constructor(t, e, s,
|
|
1506
|
-
super(t, e, s,
|
|
1505
|
+
constructor(t, e, s, r, n) {
|
|
1506
|
+
super(t, e, s, r, n), this.type = 5;
|
|
1507
1507
|
}
|
|
1508
1508
|
_$AI(t, e = this) {
|
|
1509
1509
|
if ((t = G(this, t, e, 0) ?? p) === U) return;
|
|
1510
|
-
const s = this._$AH,
|
|
1511
|
-
|
|
1510
|
+
const s = this._$AH, r = t === p && s !== p || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== p && (s === p || r);
|
|
1511
|
+
r && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
1512
1512
|
}
|
|
1513
1513
|
handleEvent(t) {
|
|
1514
1514
|
var e;
|
|
1515
1515
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
1516
1516
|
}
|
|
1517
1517
|
}
|
|
1518
|
-
class
|
|
1518
|
+
class tr {
|
|
1519
1519
|
constructor(t, e, s) {
|
|
1520
1520
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
1521
1521
|
}
|
|
@@ -1528,14 +1528,14 @@ class tn {
|
|
|
1528
1528
|
}
|
|
1529
1529
|
const Mt = tt.litHtmlPolyfillSupport;
|
|
1530
1530
|
Mt == null || Mt(Gt, at), (tt.litHtmlVersions ?? (tt.litHtmlVersions = [])).push("3.2.1");
|
|
1531
|
-
const
|
|
1531
|
+
const er = (i, t, e) => {
|
|
1532
1532
|
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
1533
|
-
let
|
|
1534
|
-
if (
|
|
1535
|
-
const
|
|
1536
|
-
s._$litPart$ =
|
|
1533
|
+
let r = s._$litPart$;
|
|
1534
|
+
if (r === void 0) {
|
|
1535
|
+
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
1536
|
+
s._$litPart$ = r = new at(t.insertBefore(it(), n), n, void 0, e ?? {});
|
|
1537
1537
|
}
|
|
1538
|
-
return
|
|
1538
|
+
return r._$AI(i), r;
|
|
1539
1539
|
};
|
|
1540
1540
|
/**
|
|
1541
1541
|
* @license
|
|
@@ -1553,7 +1553,7 @@ let x = class extends B {
|
|
|
1553
1553
|
}
|
|
1554
1554
|
update(t) {
|
|
1555
1555
|
const e = this.render();
|
|
1556
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
1556
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = er(e, this.renderRoot, this.renderOptions);
|
|
1557
1557
|
}
|
|
1558
1558
|
connectedCallback() {
|
|
1559
1559
|
var t;
|
|
@@ -1577,10 +1577,10 @@ Nt == null || Nt({ LitElement: x });
|
|
|
1577
1577
|
* Copyright 2017 Google LLC
|
|
1578
1578
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1579
1579
|
*/
|
|
1580
|
-
const
|
|
1581
|
-
const { kind: s, metadata:
|
|
1582
|
-
let
|
|
1583
|
-
if (
|
|
1580
|
+
const ir = { attribute: !0, type: String, converter: $t, reflect: !1, hasChanged: se }, sr = (i = ir, t, e) => {
|
|
1581
|
+
const { kind: s, metadata: r } = e;
|
|
1582
|
+
let n = globalThis.litPropertyMetadata.get(r);
|
|
1583
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, i), s === "accessor") {
|
|
1584
1584
|
const { name: o } = e;
|
|
1585
1585
|
return { set(a) {
|
|
1586
1586
|
const l = t.get.call(this);
|
|
@@ -1599,9 +1599,9 @@ const sn = { attribute: !0, type: String, converter: $t, reflect: !1, hasChanged
|
|
|
1599
1599
|
throw Error("Unsupported decorator location: " + s);
|
|
1600
1600
|
};
|
|
1601
1601
|
function b(i) {
|
|
1602
|
-
return (t, e) => typeof e == "object" ?
|
|
1603
|
-
const o =
|
|
1604
|
-
return
|
|
1602
|
+
return (t, e) => typeof e == "object" ? sr(i, t, e) : ((s, r, n) => {
|
|
1603
|
+
const o = r.hasOwnProperty(n);
|
|
1604
|
+
return r.constructor.createProperty(n, o ? { ...s, wrapped: !0 } : s), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
|
1605
1605
|
})(i, t, e);
|
|
1606
1606
|
}
|
|
1607
1607
|
/**
|
|
@@ -1612,10 +1612,10 @@ function b(i) {
|
|
|
1612
1612
|
function N(i) {
|
|
1613
1613
|
return b({ ...i, state: !0, attribute: !1 });
|
|
1614
1614
|
}
|
|
1615
|
-
var
|
|
1616
|
-
for (var
|
|
1617
|
-
(o = i[
|
|
1618
|
-
return
|
|
1615
|
+
var rr = Object.defineProperty, nr = (i, t, e, s) => {
|
|
1616
|
+
for (var r = void 0, n = i.length - 1, o; n >= 0; n--)
|
|
1617
|
+
(o = i[n]) && (r = o(t, e, r) || r);
|
|
1618
|
+
return r && rr(t, e, r), r;
|
|
1619
1619
|
};
|
|
1620
1620
|
const fe = class fe extends x {
|
|
1621
1621
|
constructor() {
|
|
@@ -1649,7 +1649,7 @@ fe.styles = [
|
|
|
1649
1649
|
`
|
|
1650
1650
|
];
|
|
1651
1651
|
let mt = fe;
|
|
1652
|
-
|
|
1652
|
+
nr([
|
|
1653
1653
|
b({ attribute: !0 })
|
|
1654
1654
|
], mt.prototype, "anchor");
|
|
1655
1655
|
/**
|
|
@@ -1657,7 +1657,7 @@ on([
|
|
|
1657
1657
|
* Copyright 2017 Google LLC
|
|
1658
1658
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1659
1659
|
*/
|
|
1660
|
-
const
|
|
1660
|
+
const ne = { ATTRIBUTE: 1, CHILD: 2 }, oe = (i) => (...t) => ({ _$litDirective$: i, values: t });
|
|
1661
1661
|
let Pi = class {
|
|
1662
1662
|
constructor(t) {
|
|
1663
1663
|
}
|
|
@@ -1679,7 +1679,7 @@ let Pi = class {
|
|
|
1679
1679
|
* Copyright 2020 Google LLC
|
|
1680
1680
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1681
1681
|
*/
|
|
1682
|
-
const
|
|
1682
|
+
const or = (i) => i.strings === void 0;
|
|
1683
1683
|
/**
|
|
1684
1684
|
* @license
|
|
1685
1685
|
* Copyright 2017 Google LLC
|
|
@@ -1689,7 +1689,7 @@ const et = (i, t) => {
|
|
|
1689
1689
|
var s;
|
|
1690
1690
|
const e = i._$AN;
|
|
1691
1691
|
if (e === void 0) return !1;
|
|
1692
|
-
for (const
|
|
1692
|
+
for (const r of e) (s = r._$AO) == null || s.call(r, t, !1), et(r, t);
|
|
1693
1693
|
return !0;
|
|
1694
1694
|
}, yt = (i) => {
|
|
1695
1695
|
let t, e;
|
|
@@ -1702,20 +1702,20 @@ const et = (i, t) => {
|
|
|
1702
1702
|
let e = t._$AN;
|
|
1703
1703
|
if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
|
|
1704
1704
|
else if (e.has(i)) break;
|
|
1705
|
-
e.add(i),
|
|
1705
|
+
e.add(i), cr(t);
|
|
1706
1706
|
}
|
|
1707
1707
|
};
|
|
1708
|
-
function
|
|
1708
|
+
function ar(i) {
|
|
1709
1709
|
this._$AN !== void 0 ? (yt(this), this._$AM = i, Ii(this)) : this._$AM = i;
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1712
|
-
const s = this._$AH,
|
|
1713
|
-
if (
|
|
1711
|
+
function lr(i, t = !1, e = 0) {
|
|
1712
|
+
const s = this._$AH, r = this._$AN;
|
|
1713
|
+
if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(s)) for (let n = e; n < s.length; n++) et(s[n], !1), yt(s[n]);
|
|
1714
1714
|
else s != null && (et(s, !1), yt(s));
|
|
1715
1715
|
else et(this, i);
|
|
1716
1716
|
}
|
|
1717
|
-
const
|
|
1718
|
-
i.type ==
|
|
1717
|
+
const cr = (i) => {
|
|
1718
|
+
i.type == ne.CHILD && (i._$AP ?? (i._$AP = lr), i._$AQ ?? (i._$AQ = ar));
|
|
1719
1719
|
};
|
|
1720
1720
|
class Li extends Pi {
|
|
1721
1721
|
constructor() {
|
|
@@ -1725,11 +1725,11 @@ class Li extends Pi {
|
|
|
1725
1725
|
super._$AT(t, e, s), Ii(this), this.isConnected = t._$AU;
|
|
1726
1726
|
}
|
|
1727
1727
|
_$AO(t, e = !0) {
|
|
1728
|
-
var s,
|
|
1729
|
-
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (
|
|
1728
|
+
var s, r;
|
|
1729
|
+
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (r = this.disconnected) == null || r.call(this)), e && (et(this, t), yt(this));
|
|
1730
1730
|
}
|
|
1731
1731
|
setValue(t) {
|
|
1732
|
-
if (
|
|
1732
|
+
if (or(this._$Ct)) this._$Ct._$AI(t, this);
|
|
1733
1733
|
else {
|
|
1734
1734
|
const e = [...this._$Ct._$AH];
|
|
1735
1735
|
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
|
@@ -1740,9 +1740,9 @@ class Li extends Pi {
|
|
|
1740
1740
|
reconnected() {
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
|
1743
|
-
const
|
|
1743
|
+
const ur = /* @__PURE__ */ new WeakMap();
|
|
1744
1744
|
let Le = 0;
|
|
1745
|
-
const Bt = /* @__PURE__ */ new Map(), Re = /* @__PURE__ */ new WeakSet(), Ue = () => new Promise((i) => requestAnimationFrame(i)), je = [{ transform: "translateY(-100%) scale(0)", opacity: 0 }],
|
|
1745
|
+
const Bt = /* @__PURE__ */ new Map(), Re = /* @__PURE__ */ new WeakSet(), Ue = () => new Promise((i) => requestAnimationFrame(i)), je = [{ transform: "translateY(-100%) scale(0)", opacity: 0 }], hr = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Me = (i, t) => {
|
|
1746
1746
|
const e = i - t;
|
|
1747
1747
|
return e === 0 ? void 0 : e;
|
|
1748
1748
|
}, Ne = (i, t) => {
|
|
@@ -1764,10 +1764,10 @@ const Bt = /* @__PURE__ */ new Map(), Re = /* @__PURE__ */ new WeakSet(), Ue = (
|
|
|
1764
1764
|
t === 0 && (t = 1, e = { height: "1px" });
|
|
1765
1765
|
const s = Ne(i, t);
|
|
1766
1766
|
return { value: s, overrideFrom: e, transform: s == null || isNaN(s) ? void 0 : `scaleY(${s})` };
|
|
1767
|
-
} },
|
|
1768
|
-
class
|
|
1767
|
+
} }, dr = { duration: 333, easing: "ease-in-out" }, fr = ["left", "top", "width", "height", "opacity", "color", "background"], Be = /* @__PURE__ */ new WeakMap();
|
|
1768
|
+
class pr extends Li {
|
|
1769
1769
|
constructor(t) {
|
|
1770
|
-
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type ===
|
|
1770
|
+
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === ne.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
|
1771
1771
|
this.createFinished();
|
|
1772
1772
|
}
|
|
1773
1773
|
createFinished() {
|
|
@@ -1784,35 +1784,35 @@ class gn extends Li {
|
|
|
1784
1784
|
return p;
|
|
1785
1785
|
}
|
|
1786
1786
|
getController() {
|
|
1787
|
-
return
|
|
1787
|
+
return ur.get(this.u);
|
|
1788
1788
|
}
|
|
1789
1789
|
isDisabled() {
|
|
1790
1790
|
var t;
|
|
1791
1791
|
return this.options.disabled || ((t = this.getController()) == null ? void 0 : t.disabled);
|
|
1792
1792
|
}
|
|
1793
1793
|
update(t, [e]) {
|
|
1794
|
-
var
|
|
1794
|
+
var r;
|
|
1795
1795
|
const s = this.u === void 0;
|
|
1796
|
-
return s && (this.u = (
|
|
1796
|
+
return s && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((n) => this.t = !0), this.element = t.element, Be.set(this.element, this)), this.optionsOrCallback = e, (s || typeof e != "function") && this.p(e), this.render(e);
|
|
1797
1797
|
}
|
|
1798
1798
|
p(t) {
|
|
1799
1799
|
t = t ?? {};
|
|
1800
1800
|
const e = this.getController();
|
|
1801
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
|
1801
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = fr), this.options = t;
|
|
1802
1802
|
}
|
|
1803
1803
|
m() {
|
|
1804
1804
|
const t = {}, e = this.element.getBoundingClientRect(), s = getComputedStyle(this.element);
|
|
1805
|
-
return this.options.properties.forEach((
|
|
1806
|
-
const
|
|
1807
|
-
t[
|
|
1805
|
+
return this.options.properties.forEach((r) => {
|
|
1806
|
+
const n = e[r] ?? (Ht[r] ? void 0 : s[r]), o = Number(n);
|
|
1807
|
+
t[r] = isNaN(o) ? n + "" : o;
|
|
1808
1808
|
}), t;
|
|
1809
1809
|
}
|
|
1810
1810
|
v() {
|
|
1811
1811
|
let t, e = !0;
|
|
1812
|
-
return this.options.guard && (t = this.options.guard(), e = ((s,
|
|
1812
|
+
return this.options.guard && (t = this.options.guard(), e = ((s, r) => {
|
|
1813
1813
|
if (Array.isArray(s)) {
|
|
1814
|
-
if (Array.isArray(
|
|
1815
|
-
} else if (
|
|
1814
|
+
if (Array.isArray(r) && r.length === s.length && s.every((n, o) => n === r[o])) return !1;
|
|
1815
|
+
} else if (r === s) return !1;
|
|
1816
1816
|
return !0;
|
|
1817
1817
|
})(t, this._)), this.h = this.t && !this.isDisabled() && !this.isAnimating() && e && this.element.isConnected, this.h && (this._ = Array.isArray(t) ? Array.from(t) : t), this.h;
|
|
1818
1818
|
}
|
|
@@ -1823,15 +1823,15 @@ class gn extends Li {
|
|
|
1823
1823
|
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered) return;
|
|
1824
1824
|
let t;
|
|
1825
1825
|
this.prepare(), await Ue;
|
|
1826
|
-
const e = this.O(), s = this.j(this.options.keyframeOptions, e),
|
|
1826
|
+
const e = this.O(), s = this.j(this.options.keyframeOptions, e), r = this.m();
|
|
1827
1827
|
if (this.A !== void 0) {
|
|
1828
|
-
const { from:
|
|
1829
|
-
this.log("measured", [this.A,
|
|
1828
|
+
const { from: n, to: o } = this.N(this.A, r, e);
|
|
1829
|
+
this.log("measured", [this.A, r, n, o]), t = this.calculateKeyframes(n, o);
|
|
1830
1830
|
} else {
|
|
1831
|
-
const
|
|
1832
|
-
if (
|
|
1831
|
+
const n = Bt.get(this.options.inId);
|
|
1832
|
+
if (n) {
|
|
1833
1833
|
Bt.delete(this.options.inId);
|
|
1834
|
-
const { from: o, to: a } = this.N(
|
|
1834
|
+
const { from: o, to: a } = this.N(n, r, e);
|
|
1835
1835
|
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Le++, t.forEach((l) => l.zIndex = Le);
|
|
1836
1836
|
} else this.options.in && (t = [...this.options.in, {}]);
|
|
1837
1837
|
}
|
|
@@ -1852,10 +1852,10 @@ class gn extends Li {
|
|
|
1852
1852
|
if (this.prepare(), await Ue(), (e = this.i) == null ? void 0 : e.isConnected) {
|
|
1853
1853
|
const s = this.o && this.o.parentNode === this.i ? this.o : null;
|
|
1854
1854
|
if (this.i.insertBefore(this.element, s), this.options.stabilizeOut) {
|
|
1855
|
-
const
|
|
1855
|
+
const r = this.m();
|
|
1856
1856
|
this.log("stabilizing out");
|
|
1857
|
-
const
|
|
1858
|
-
getComputedStyle(this.element).position !== "static" ||
|
|
1857
|
+
const n = this.A.left - r.left, o = this.A.top - r.top;
|
|
1858
|
+
getComputedStyle(this.element).position !== "static" || n === 0 && o === 0 || (this.element.style.position = "relative"), n !== 0 && (this.element.style.left = n + "px"), o !== 0 && (this.element.style.top = o + "px");
|
|
1859
1859
|
}
|
|
1860
1860
|
}
|
|
1861
1861
|
const t = this.j(this.options.keyframeOptions);
|
|
@@ -1887,19 +1887,19 @@ class gn extends Li {
|
|
|
1887
1887
|
}), t;
|
|
1888
1888
|
}
|
|
1889
1889
|
j(t, e = this.O()) {
|
|
1890
|
-
const s = { ...
|
|
1891
|
-
return e.forEach((
|
|
1890
|
+
const s = { ...dr };
|
|
1891
|
+
return e.forEach((r) => Object.assign(s, r.options.keyframeOptions)), Object.assign(s, t), s;
|
|
1892
1892
|
}
|
|
1893
1893
|
N(t, e, s) {
|
|
1894
1894
|
t = { ...t }, e = { ...e };
|
|
1895
|
-
const
|
|
1896
|
-
let
|
|
1897
|
-
return
|
|
1898
|
-
a.width && (
|
|
1899
|
-
}), t.left !== void 0 && e.left !== void 0 && (t.left =
|
|
1895
|
+
const r = s.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
|
1896
|
+
let n = 1, o = 1;
|
|
1897
|
+
return r.length > 0 && (r.forEach((a) => {
|
|
1898
|
+
a.width && (n /= a.width), a.height && (o /= a.height);
|
|
1899
|
+
}), t.left !== void 0 && e.left !== void 0 && (t.left = n * t.left, e.left = n * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = o * t.top, e.top = o * e.top)), { from: t, to: e };
|
|
1900
1900
|
}
|
|
1901
1901
|
calculateKeyframes(t, e, s = !1) {
|
|
1902
|
-
const
|
|
1902
|
+
const r = {}, n = {};
|
|
1903
1903
|
let o = !1;
|
|
1904
1904
|
const a = {};
|
|
1905
1905
|
for (const l in e) {
|
|
@@ -1908,23 +1908,23 @@ class gn extends Li {
|
|
|
1908
1908
|
const h = Ht[l];
|
|
1909
1909
|
if (c === void 0 || u === void 0) continue;
|
|
1910
1910
|
const d = h(c, u);
|
|
1911
|
-
d.transform !== void 0 && (a[l] = d.value, o = !0,
|
|
1912
|
-
} else c !== u && c !== void 0 && u !== void 0 && (o = !0,
|
|
1911
|
+
d.transform !== void 0 && (a[l] = d.value, o = !0, r.transform = `${r.transform ?? ""} ${d.transform}`, d.overrideFrom !== void 0 && Object.assign(r, d.overrideFrom));
|
|
1912
|
+
} else c !== u && c !== void 0 && u !== void 0 && (o = !0, r[l] = c, n[l] = u);
|
|
1913
1913
|
}
|
|
1914
|
-
return
|
|
1914
|
+
return r.transformOrigin = n.transformOrigin = s ? "center center" : "top left", this.animatingProperties = a, o ? [r, n] : void 0;
|
|
1915
1915
|
}
|
|
1916
1916
|
async animate(t, e = this.options.keyframeOptions) {
|
|
1917
1917
|
this.start(), this.frames = t;
|
|
1918
1918
|
let s = !1;
|
|
1919
1919
|
if (!this.isAnimating() && !this.isDisabled() && (this.options.onFrames && (this.frames = t = this.options.onFrames(this), this.log("modified frames", t)), t !== void 0)) {
|
|
1920
1920
|
this.log("animate", [t, e]), s = !0, this.webAnimation = this.element.animate(t, e);
|
|
1921
|
-
const
|
|
1922
|
-
|
|
1921
|
+
const r = this.getController();
|
|
1922
|
+
r == null || r.add(this);
|
|
1923
1923
|
try {
|
|
1924
1924
|
await this.webAnimation.finished;
|
|
1925
1925
|
} catch {
|
|
1926
1926
|
}
|
|
1927
|
-
|
|
1927
|
+
r == null || r.remove(this);
|
|
1928
1928
|
}
|
|
1929
1929
|
return this.didFinish(s), s;
|
|
1930
1930
|
}
|
|
@@ -1936,7 +1936,7 @@ class gn extends Li {
|
|
|
1936
1936
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
|
1937
1937
|
}
|
|
1938
1938
|
}
|
|
1939
|
-
const Ri = oe(
|
|
1939
|
+
const Ri = oe(pr), gr = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' };
|
|
1940
1940
|
/**
|
|
1941
1941
|
* @license
|
|
1942
1942
|
* Copyright 2018 Google LLC
|
|
@@ -1945,40 +1945,40 @@ const Ri = oe(gn), $n = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns
|
|
|
1945
1945
|
const He = oe(class extends Pi {
|
|
1946
1946
|
constructor(i) {
|
|
1947
1947
|
var t;
|
|
1948
|
-
if (super(i), i.type !==
|
|
1948
|
+
if (super(i), i.type !== ne.ATTRIBUTE || i.name !== "class" || ((t = i.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
1949
1949
|
}
|
|
1950
1950
|
render(i) {
|
|
1951
1951
|
return " " + Object.keys(i).filter((t) => i[t]).join(" ") + " ";
|
|
1952
1952
|
}
|
|
1953
1953
|
update(i, [t]) {
|
|
1954
|
-
var s,
|
|
1954
|
+
var s, r;
|
|
1955
1955
|
if (this.st === void 0) {
|
|
1956
|
-
this.st = /* @__PURE__ */ new Set(), i.strings !== void 0 && (this.nt = new Set(i.strings.join(" ").split(/\s/).filter((
|
|
1957
|
-
for (const
|
|
1956
|
+
this.st = /* @__PURE__ */ new Set(), i.strings !== void 0 && (this.nt = new Set(i.strings.join(" ").split(/\s/).filter((n) => n !== "")));
|
|
1957
|
+
for (const n in t) t[n] && !((s = this.nt) != null && s.has(n)) && this.st.add(n);
|
|
1958
1958
|
return this.render(t);
|
|
1959
1959
|
}
|
|
1960
1960
|
const e = i.element.classList;
|
|
1961
|
-
for (const
|
|
1962
|
-
for (const
|
|
1963
|
-
const o = !!t[
|
|
1964
|
-
o === this.st.has(
|
|
1961
|
+
for (const n of this.st) n in t || (e.remove(n), this.st.delete(n));
|
|
1962
|
+
for (const n in t) {
|
|
1963
|
+
const o = !!t[n];
|
|
1964
|
+
o === this.st.has(n) || (r = this.nt) != null && r.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
|
|
1965
1965
|
}
|
|
1966
1966
|
return U;
|
|
1967
1967
|
}
|
|
1968
1968
|
}), A = (i, t, e) => {
|
|
1969
1969
|
i && e.style.setProperty(t, i);
|
|
1970
1970
|
}, Ui = (i, t) => {
|
|
1971
|
-
var e, s,
|
|
1971
|
+
var e, s, r, n, o, a, l, c, u;
|
|
1972
1972
|
A((e = i.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), A(
|
|
1973
1973
|
(s = i.colors) == null ? void 0 : s.textOnPrimaryBackground,
|
|
1974
1974
|
"--text-on-primary-background",
|
|
1975
1975
|
t
|
|
1976
1976
|
), A(
|
|
1977
|
-
(
|
|
1977
|
+
(r = i.colors) == null ? void 0 : r.secondaryBackground,
|
|
1978
1978
|
"--secondary-background",
|
|
1979
1979
|
t
|
|
1980
1980
|
), A(
|
|
1981
|
-
(
|
|
1981
|
+
(n = i.colors) == null ? void 0 : n.textOnSecondaryBackground,
|
|
1982
1982
|
"--text-on-secondary-background",
|
|
1983
1983
|
t
|
|
1984
1984
|
), A(
|
|
@@ -2004,8 +2004,8 @@ const He = oe(class extends Pi {
|
|
|
2004
2004
|
* Copyright 2020 Google LLC
|
|
2005
2005
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2006
2006
|
*/
|
|
2007
|
-
const bt = () => new
|
|
2008
|
-
let
|
|
2007
|
+
const bt = () => new $r();
|
|
2008
|
+
let $r = class {
|
|
2009
2009
|
};
|
|
2010
2010
|
const Dt = /* @__PURE__ */ new WeakMap(), ae = oe(class extends Li {
|
|
2011
2011
|
render(i) {
|
|
@@ -2034,10 +2034,10 @@ const Dt = /* @__PURE__ */ new WeakMap(), ae = oe(class extends Li {
|
|
|
2034
2034
|
this.rt(this.ct);
|
|
2035
2035
|
}
|
|
2036
2036
|
});
|
|
2037
|
-
var
|
|
2038
|
-
for (var
|
|
2039
|
-
(o = i[
|
|
2040
|
-
return
|
|
2037
|
+
var vr = Object.defineProperty, lt = (i, t, e, s) => {
|
|
2038
|
+
for (var r = void 0, n = i.length - 1, o; n >= 0; n--)
|
|
2039
|
+
(o = i[n]) && (r = o(t, e, r) || r);
|
|
2040
|
+
return r && vr(t, e, r), r;
|
|
2041
2041
|
};
|
|
2042
2042
|
const pe = class pe extends x {
|
|
2043
2043
|
constructor() {
|
|
@@ -2086,10 +2086,10 @@ const pe = class pe extends x {
|
|
|
2086
2086
|
const s = (c = this.application) == null ? void 0 : c.triggerIcon;
|
|
2087
2087
|
if (!s)
|
|
2088
2088
|
return p;
|
|
2089
|
-
const
|
|
2090
|
-
switch (
|
|
2089
|
+
const r = async (u) => gr, { type: n, content: o } = s;
|
|
2090
|
+
switch (n) {
|
|
2091
2091
|
case "Telia": {
|
|
2092
|
-
const u = await
|
|
2092
|
+
const u = await r();
|
|
2093
2093
|
return u ? k`<telia-icon
|
|
2094
2094
|
class="trigger-icon"
|
|
2095
2095
|
svg=${u.svg}
|
|
@@ -2107,7 +2107,7 @@ const pe = class pe extends x {
|
|
|
2107
2107
|
this.triggerVisible = !0;
|
|
2108
2108
|
}
|
|
2109
2109
|
render() {
|
|
2110
|
-
var t, e, s,
|
|
2110
|
+
var t, e, s, r;
|
|
2111
2111
|
return k`<div
|
|
2112
2112
|
class=${He({
|
|
2113
2113
|
"trigger-container": !0,
|
|
@@ -2115,14 +2115,14 @@ const pe = class pe extends x {
|
|
|
2115
2115
|
})}
|
|
2116
2116
|
${ae(this.containerRef)}
|
|
2117
2117
|
>
|
|
2118
|
-
${!this.active && ((
|
|
2118
|
+
${!this.active && ((r = (s = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : s.other) != null && r.showButtonLabel) ? k`
|
|
2119
2119
|
<button
|
|
2120
2120
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
|
2121
2121
|
class="trigger-label"
|
|
2122
2122
|
@click=${this.toggleActive}
|
|
2123
2123
|
${Ri({
|
|
2124
2124
|
keyframeOptions: {},
|
|
2125
|
-
in:
|
|
2125
|
+
in: hr,
|
|
2126
2126
|
stabilizeOut: !0,
|
|
2127
2127
|
skipInitial: !1
|
|
2128
2128
|
})}
|
|
@@ -2320,27 +2320,27 @@ lt([
|
|
|
2320
2320
|
lt([
|
|
2321
2321
|
N()
|
|
2322
2322
|
], E.prototype, "icon");
|
|
2323
|
-
var
|
|
2324
|
-
for (var
|
|
2325
|
-
(o = i[
|
|
2326
|
-
return
|
|
2323
|
+
var mr = Object.defineProperty, P = (i, t, e, s) => {
|
|
2324
|
+
for (var r = void 0, n = i.length - 1, o; n >= 0; n--)
|
|
2325
|
+
(o = i[n]) && (r = o(t, e, r) || r);
|
|
2326
|
+
return r && mr(t, e, r), r;
|
|
2327
2327
|
};
|
|
2328
2328
|
const ji = (i) => {
|
|
2329
2329
|
const e = class e extends i {
|
|
2330
2330
|
constructor() {
|
|
2331
2331
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
|
2332
2332
|
}
|
|
2333
|
-
writeProperties(
|
|
2334
|
-
this.properties =
|
|
2333
|
+
writeProperties(r) {
|
|
2334
|
+
this.properties = r;
|
|
2335
2335
|
}
|
|
2336
|
-
writeLayout(
|
|
2337
|
-
this.layout =
|
|
2336
|
+
writeLayout(r) {
|
|
2337
|
+
this.layout = r;
|
|
2338
2338
|
}
|
|
2339
|
-
writeContext(
|
|
2340
|
-
this.context =
|
|
2339
|
+
writeContext(r) {
|
|
2340
|
+
this.context = r;
|
|
2341
2341
|
}
|
|
2342
|
-
addChild(
|
|
2343
|
-
|
|
2342
|
+
addChild(r) {
|
|
2343
|
+
r.parent = this, this.nodes.push(r);
|
|
2344
2344
|
}
|
|
2345
2345
|
connectedCallback() {
|
|
2346
2346
|
super.connectedCallback(), this.renderRoot.host.style.setProperty(
|
|
@@ -2399,21 +2399,21 @@ let Kt = ge;
|
|
|
2399
2399
|
* Copyright 2021 Google LLC
|
|
2400
2400
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2401
2401
|
*/
|
|
2402
|
-
function*
|
|
2402
|
+
function* yr(i, t) {
|
|
2403
2403
|
if (i !== void 0) {
|
|
2404
2404
|
let e = 0;
|
|
2405
2405
|
for (const s of i) yield t(s, e++);
|
|
2406
2406
|
}
|
|
2407
2407
|
}
|
|
2408
|
-
var
|
|
2408
|
+
var rt = /* @__PURE__ */ ((i) => (i.Inline = "inline", i.Trigger = "trigger", i))(rt || {});
|
|
2409
2409
|
/**
|
|
2410
2410
|
* @license
|
|
2411
2411
|
* Copyright 2021 Google LLC
|
|
2412
2412
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2413
2413
|
*/
|
|
2414
|
-
let
|
|
2415
|
-
constructor(t, e, s) {
|
|
2416
|
-
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.
|
|
2414
|
+
let br = class extends Event {
|
|
2415
|
+
constructor(t, e, s, r) {
|
|
2416
|
+
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e, this.callback = s, this.subscribe = r ?? !1;
|
|
2417
2417
|
}
|
|
2418
2418
|
};
|
|
2419
2419
|
/**
|
|
@@ -2426,7 +2426,7 @@ let _n = class extends Event {
|
|
|
2426
2426
|
* Copyright 2021 Google LLC
|
|
2427
2427
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2428
2428
|
*/
|
|
2429
|
-
class
|
|
2429
|
+
class _r {
|
|
2430
2430
|
get value() {
|
|
2431
2431
|
return this.o;
|
|
2432
2432
|
}
|
|
@@ -2447,8 +2447,8 @@ class wn {
|
|
|
2447
2447
|
this.subscriptions.has(t) || this.subscriptions.set(t, { disposer: () => {
|
|
2448
2448
|
this.subscriptions.delete(t);
|
|
2449
2449
|
}, consumerHost: e });
|
|
2450
|
-
const { disposer:
|
|
2451
|
-
t(this.value,
|
|
2450
|
+
const { disposer: r } = this.subscriptions.get(t);
|
|
2451
|
+
t(this.value, r);
|
|
2452
2452
|
}
|
|
2453
2453
|
clearCallbacks() {
|
|
2454
2454
|
this.subscriptions.clear();
|
|
@@ -2459,30 +2459,30 @@ class wn {
|
|
|
2459
2459
|
* Copyright 2021 Google LLC
|
|
2460
2460
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2461
2461
|
*/
|
|
2462
|
-
let
|
|
2463
|
-
constructor(t) {
|
|
2464
|
-
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
|
|
2462
|
+
let wr = class extends Event {
|
|
2463
|
+
constructor(t, e) {
|
|
2464
|
+
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e;
|
|
2465
2465
|
}
|
|
2466
2466
|
};
|
|
2467
|
-
class De extends
|
|
2467
|
+
class De extends _r {
|
|
2468
2468
|
constructor(t, e, s) {
|
|
2469
|
-
var
|
|
2469
|
+
var r, n;
|
|
2470
2470
|
super(e.context !== void 0 ? e.initialValue : s), this.onContextRequest = (o) => {
|
|
2471
|
-
|
|
2472
|
-
|
|
2471
|
+
if (o.context !== this.context) return;
|
|
2472
|
+
const a = o.contextTarget ?? o.composedPath()[0];
|
|
2473
|
+
a !== this.host && (o.stopPropagation(), this.addCallback(o.callback, a, o.subscribe));
|
|
2473
2474
|
}, this.onProviderRequest = (o) => {
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
const l
|
|
2477
|
-
for (const [c, { consumerHost: u }] of this.subscriptions) l.has(c) || (l.add(c), u.dispatchEvent(new _n(this.context, c, !0)));
|
|
2475
|
+
if (o.context !== this.context || (o.contextTarget ?? o.composedPath()[0]) === this.host) return;
|
|
2476
|
+
const a = /* @__PURE__ */ new Set();
|
|
2477
|
+
for (const [l, { consumerHost: c }] of this.subscriptions) a.has(l) || (a.add(l), c.dispatchEvent(new br(this.context, c, l, !0)));
|
|
2478
2478
|
o.stopPropagation();
|
|
2479
|
-
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (
|
|
2479
|
+
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (n = (r = this.host).addController) == null || n.call(r, this);
|
|
2480
2480
|
}
|
|
2481
2481
|
attachListeners() {
|
|
2482
2482
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
2483
2483
|
}
|
|
2484
2484
|
hostConnected() {
|
|
2485
|
-
this.host.dispatchEvent(new
|
|
2485
|
+
this.host.dispatchEvent(new wr(this.context, this.host));
|
|
2486
2486
|
}
|
|
2487
2487
|
}
|
|
2488
2488
|
/**
|
|
@@ -2490,49 +2490,49 @@ class De extends wn {
|
|
|
2490
2490
|
* Copyright 2017 Google LLC
|
|
2491
2491
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2492
2492
|
*/
|
|
2493
|
-
function
|
|
2493
|
+
function xr({ context: i }) {
|
|
2494
2494
|
return (t, e) => {
|
|
2495
2495
|
const s = /* @__PURE__ */ new WeakMap();
|
|
2496
2496
|
if (typeof e == "object") return e.addInitializer(function() {
|
|
2497
2497
|
s.set(this, new De(this, { context: i }));
|
|
2498
2498
|
}), { get() {
|
|
2499
2499
|
return t.get.call(this);
|
|
2500
|
-
}, set(
|
|
2501
|
-
var
|
|
2502
|
-
return (
|
|
2503
|
-
}, init(
|
|
2504
|
-
var
|
|
2505
|
-
return (
|
|
2500
|
+
}, set(r) {
|
|
2501
|
+
var n;
|
|
2502
|
+
return (n = s.get(this)) == null || n.setValue(r), t.set.call(this, r);
|
|
2503
|
+
}, init(r) {
|
|
2504
|
+
var n;
|
|
2505
|
+
return (n = s.get(this)) == null || n.setValue(r), r;
|
|
2506
2506
|
} };
|
|
2507
2507
|
{
|
|
2508
2508
|
t.constructor.addInitializer((o) => {
|
|
2509
2509
|
s.set(o, new De(o, { context: i }));
|
|
2510
2510
|
});
|
|
2511
|
-
const
|
|
2512
|
-
let
|
|
2513
|
-
if (
|
|
2511
|
+
const r = Object.getOwnPropertyDescriptor(t, e);
|
|
2512
|
+
let n;
|
|
2513
|
+
if (r === void 0) {
|
|
2514
2514
|
const o = /* @__PURE__ */ new WeakMap();
|
|
2515
|
-
|
|
2515
|
+
n = { get() {
|
|
2516
2516
|
return o.get(this);
|
|
2517
2517
|
}, set(a) {
|
|
2518
2518
|
s.get(this).setValue(a), o.set(this, a);
|
|
2519
2519
|
}, configurable: !0, enumerable: !0 };
|
|
2520
2520
|
} else {
|
|
2521
|
-
const o =
|
|
2522
|
-
|
|
2521
|
+
const o = r.set;
|
|
2522
|
+
n = { ...r, set(a) {
|
|
2523
2523
|
s.get(this).setValue(a), o == null || o.call(this, a);
|
|
2524
2524
|
} };
|
|
2525
2525
|
}
|
|
2526
|
-
return void Object.defineProperty(t, e,
|
|
2526
|
+
return void Object.defineProperty(t, e, n);
|
|
2527
2527
|
}
|
|
2528
2528
|
};
|
|
2529
2529
|
}
|
|
2530
|
-
var
|
|
2531
|
-
for (var
|
|
2532
|
-
(o = i[
|
|
2533
|
-
return
|
|
2530
|
+
var Sr = Object.defineProperty, Mi = (i, t, e, s) => {
|
|
2531
|
+
for (var r = void 0, n = i.length - 1, o; n >= 0; n--)
|
|
2532
|
+
(o = i[n]) && (r = o(t, e, r) || r);
|
|
2533
|
+
return r && Sr(t, e, r), r;
|
|
2534
2534
|
};
|
|
2535
|
-
const
|
|
2535
|
+
const Ar = "application", $e = class $e extends x {
|
|
2536
2536
|
constructor() {
|
|
2537
2537
|
super(...arguments), this.nodes = [], this.wrapperRef = bt(), this.fullscreen = !1, this.isReady = new ci(!1);
|
|
2538
2538
|
}
|
|
@@ -2549,18 +2549,18 @@ const kn = "application", $e = class $e extends x {
|
|
|
2549
2549
|
if (!this.wrapperRef.value)
|
|
2550
2550
|
return;
|
|
2551
2551
|
const t = this.application.styles(), e = this.wrapperRef.value;
|
|
2552
|
-
Object.entries(t).forEach(([s,
|
|
2553
|
-
e.style.setProperty(`--${s}`,
|
|
2552
|
+
Object.entries(t).forEach(([s, r]) => {
|
|
2553
|
+
e.style.setProperty(`--${s}`, r);
|
|
2554
2554
|
});
|
|
2555
2555
|
}
|
|
2556
2556
|
firstUpdated(t) {
|
|
2557
2557
|
this.applyBranding(), this.applyStyles();
|
|
2558
2558
|
}
|
|
2559
2559
|
render() {
|
|
2560
|
-
var s,
|
|
2560
|
+
var s, r;
|
|
2561
2561
|
const t = this.application.settings.components.conversation;
|
|
2562
|
-
return ((
|
|
2563
|
-
${
|
|
2562
|
+
return ((r = (s = t == null ? void 0 : t.properties) == null ? void 0 : s.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === rt.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), k`<div class="widget-container" ${ae(this.wrapperRef)}>
|
|
2563
|
+
${yr(this.nodes, (n) => n)}
|
|
2564
2564
|
</div>`;
|
|
2565
2565
|
}
|
|
2566
2566
|
};
|
|
@@ -2717,14 +2717,14 @@ $e.styles = M`
|
|
|
2717
2717
|
animation: none;
|
|
2718
2718
|
}
|
|
2719
2719
|
`;
|
|
2720
|
-
let
|
|
2720
|
+
let nt = $e;
|
|
2721
2721
|
Mi([
|
|
2722
2722
|
b({ attribute: !0 })
|
|
2723
|
-
],
|
|
2723
|
+
], nt.prototype, "fullscreen");
|
|
2724
2724
|
Mi([
|
|
2725
2725
|
b({ attribute: !1 }),
|
|
2726
|
-
|
|
2727
|
-
],
|
|
2726
|
+
xr({ context: Ar })
|
|
2727
|
+
], nt.prototype, "application");
|
|
2728
2728
|
const At = class At {
|
|
2729
2729
|
// TODO:
|
|
2730
2730
|
// private static endpoint = 'http://localhost:5299/api'; // TODO:
|
|
@@ -2736,14 +2736,14 @@ const At = class At {
|
|
|
2736
2736
|
return s ? {
|
|
2737
2737
|
id: s.id,
|
|
2738
2738
|
triggers: s.triggers || [],
|
|
2739
|
-
apps: (s.widgets || []).map((
|
|
2740
|
-
let
|
|
2741
|
-
|
|
2742
|
-
const o =
|
|
2739
|
+
apps: (s.widgets || []).map((r) => {
|
|
2740
|
+
let n = rt.Trigger;
|
|
2741
|
+
r.renderStrategy.toLowerCase() === "inline" && (n = rt.Inline);
|
|
2742
|
+
const o = r.widgetId ? r.widgetId : r.id, a = typeof r.autoActivate == "boolean" ? r.autoActivate : !1, l = typeof r.anchor == "string" ? r.anchor : "BottomRight", c = typeof r.triggerIcon == "string" ? r.triggerIcon : "question";
|
|
2743
2743
|
return {
|
|
2744
2744
|
id: o,
|
|
2745
2745
|
widgetId: o,
|
|
2746
|
-
renderStrategy:
|
|
2746
|
+
renderStrategy: n,
|
|
2747
2747
|
autoActivate: a,
|
|
2748
2748
|
anchor: l,
|
|
2749
2749
|
triggerIcon: {
|
|
@@ -2764,10 +2764,10 @@ const At = class At {
|
|
|
2764
2764
|
};
|
|
2765
2765
|
At.endpoint = "https://widgets.ace.teliacompany.net/api";
|
|
2766
2766
|
let ze = At;
|
|
2767
|
-
var
|
|
2768
|
-
for (var
|
|
2769
|
-
(o = i[
|
|
2770
|
-
return
|
|
2767
|
+
var kr = Object.defineProperty, le = (i, t, e, s) => {
|
|
2768
|
+
for (var r = void 0, n = i.length - 1, o; n >= 0; n--)
|
|
2769
|
+
(o = i[n]) && (r = o(t, e, r) || r);
|
|
2770
|
+
return r && kr(t, e, r), r;
|
|
2771
2771
|
};
|
|
2772
2772
|
const ve = class ve extends x {
|
|
2773
2773
|
constructor() {
|
|
@@ -2794,7 +2794,7 @@ const ve = class ve extends x {
|
|
|
2794
2794
|
render() {
|
|
2795
2795
|
if (!this.widget || this.status !== "activated")
|
|
2796
2796
|
return p;
|
|
2797
|
-
if (this.widget.renderStrategy ===
|
|
2797
|
+
if (this.widget.renderStrategy === rt.Trigger) {
|
|
2798
2798
|
const t = new E();
|
|
2799
2799
|
return t.application = this.widget, t;
|
|
2800
2800
|
}
|
|
@@ -2821,15 +2821,15 @@ le([
|
|
|
2821
2821
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", mt);
|
|
2822
2822
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", E);
|
|
2823
2823
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Kt);
|
|
2824
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
|
2824
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", nt);
|
|
2825
2825
|
customElements.get("ace-widget") || customElements.define("ace-widget", K);
|
|
2826
|
-
const
|
|
2826
|
+
const Er = () => "10000000-1000-4000-8000-100000000000".replace(
|
|
2827
2827
|
/[018]/g,
|
|
2828
2828
|
(i) => (+i ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +i / 4).toString(16)
|
|
2829
|
-
),
|
|
2830
|
-
class
|
|
2831
|
-
constructor(t, e, s,
|
|
2832
|
-
this.label = t, this.icon = e, this.onClick = s, this.closeOnClick =
|
|
2829
|
+
), Cr = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() : Er();
|
|
2830
|
+
class Or {
|
|
2831
|
+
constructor(t, e, s, r, n, o, a = !0) {
|
|
2832
|
+
this.label = t, this.icon = e, this.onClick = s, this.closeOnClick = r, this.key = n, this.update = new Ct(), this.id = Cr(), this._controller = o, this.enabled = a;
|
|
2833
2833
|
}
|
|
2834
2834
|
updateLabel(t) {
|
|
2835
2835
|
this.label = t, this.update.next();
|
|
@@ -2844,7 +2844,7 @@ class Tn {
|
|
|
2844
2844
|
return this.update.asObservable();
|
|
2845
2845
|
}
|
|
2846
2846
|
}
|
|
2847
|
-
class
|
|
2847
|
+
class Tr {
|
|
2848
2848
|
constructor(t) {
|
|
2849
2849
|
this._options = [], this._subscription = null, this._host = t, t.addController(this);
|
|
2850
2850
|
}
|
|
@@ -2854,7 +2854,7 @@ class Pn {
|
|
|
2854
2854
|
this._subscription && this._subscription.unsubscribe(), this._options = [];
|
|
2855
2855
|
}
|
|
2856
2856
|
addOption(t) {
|
|
2857
|
-
const e = new
|
|
2857
|
+
const e = new Or(
|
|
2858
2858
|
t.label,
|
|
2859
2859
|
t.icon,
|
|
2860
2860
|
t.onClick,
|
|
@@ -2978,7 +2978,7 @@ const Pt = typeof window < "u" ? window : {}, S = Pt.document || { head: {} }, H
|
|
|
2978
2978
|
ael: (i, t, e, s) => i.addEventListener(t, e, s),
|
|
2979
2979
|
rel: (i, t, e, s) => i.removeEventListener(t, e, s),
|
|
2980
2980
|
ce: (i, t) => new CustomEvent(i, t)
|
|
2981
|
-
},
|
|
2981
|
+
}, Pr = /* @__PURE__ */ (() => {
|
|
2982
2982
|
let i = !1;
|
|
2983
2983
|
try {
|
|
2984
2984
|
S.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
|
@@ -2989,59 +2989,59 @@ const Pt = typeof window < "u" ? window : {}, S = Pt.document || { head: {} }, H
|
|
|
2989
2989
|
} catch {
|
|
2990
2990
|
}
|
|
2991
2991
|
return i;
|
|
2992
|
-
})(),
|
|
2992
|
+
})(), Ir = (i) => Promise.resolve(i), Lr = /* @__PURE__ */ (() => {
|
|
2993
2993
|
try {
|
|
2994
2994
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
|
2995
2995
|
} catch {
|
|
2996
2996
|
}
|
|
2997
2997
|
return !1;
|
|
2998
2998
|
})(), Di = (i, t, e, s) => {
|
|
2999
|
-
e && e.map(([
|
|
3000
|
-
const a =
|
|
3001
|
-
m.ael(a,
|
|
2999
|
+
e && e.map(([r, n, o]) => {
|
|
3000
|
+
const a = Ur(i, r), l = Rr(t, o), c = jr(r);
|
|
3001
|
+
m.ael(a, n, l, c), (t.$rmListeners$ = t.$rmListeners$ || []).push(() => m.rel(a, n, l, c));
|
|
3002
3002
|
});
|
|
3003
|
-
},
|
|
3003
|
+
}, Rr = (i, t) => (e) => {
|
|
3004
3004
|
try {
|
|
3005
3005
|
H.lazyLoad || i.$hostElement$[t](e);
|
|
3006
3006
|
} catch (s) {
|
|
3007
3007
|
ct(s);
|
|
3008
3008
|
}
|
|
3009
|
-
},
|
|
3009
|
+
}, Ur = (i, t) => t & 4 ? S : t & 8 ? Pt : t & 16 ? S.body : i, jr = (i) => Pr ? {
|
|
3010
3010
|
passive: (i & 1) !== 0,
|
|
3011
3011
|
capture: (i & 2) !== 0
|
|
3012
3012
|
} : (i & 2) !== 0, Ye = "http://www.w3.org/1999/xlink", j = (i, t = "") => () => {
|
|
3013
|
-
}, We = /* @__PURE__ */ new WeakMap(),
|
|
3013
|
+
}, We = /* @__PURE__ */ new WeakMap(), Mr = (i, t, e) => {
|
|
3014
3014
|
let s = St.get(i);
|
|
3015
|
-
|
|
3016
|
-
},
|
|
3017
|
-
let
|
|
3018
|
-
if (i = i.nodeType === 11 ? i : S,
|
|
3019
|
-
if (typeof
|
|
3015
|
+
Lr && e ? (s = s || new CSSStyleSheet(), s.replace(t)) : s = t, St.set(i, s);
|
|
3016
|
+
}, Nr = (i, t, e, s) => {
|
|
3017
|
+
let r = zi(t, e), n = St.get(r);
|
|
3018
|
+
if (i = i.nodeType === 11 ? i : S, n)
|
|
3019
|
+
if (typeof n == "string") {
|
|
3020
3020
|
i = i.head || i;
|
|
3021
3021
|
let o = We.get(i), a;
|
|
3022
|
-
o || We.set(i, o = /* @__PURE__ */ new Set()), o.has(
|
|
3023
|
-
} else i.adoptedStyleSheets.includes(
|
|
3024
|
-
return
|
|
3025
|
-
},
|
|
3026
|
-
const t = i.$cmpMeta$, e = i.$hostElement$, s = t.$flags$,
|
|
3027
|
-
s & 10 && (e["s-sc"] =
|
|
3028
|
-
}, zi = (i, t) => "sc-" + (t && i.$flags$ & 32 ? i.$tagName$ + "-" + t : i.$tagName$),
|
|
3029
|
-
let s = null,
|
|
3022
|
+
o || We.set(i, o = /* @__PURE__ */ new Set()), o.has(r) || (a = S.createElement("style"), a.innerHTML = n, i.insertBefore(a, i.querySelector("link")), o && o.add(r));
|
|
3023
|
+
} else i.adoptedStyleSheets.includes(n) || (i.adoptedStyleSheets = [...i.adoptedStyleSheets, n]);
|
|
3024
|
+
return r;
|
|
3025
|
+
}, Br = (i) => {
|
|
3026
|
+
const t = i.$cmpMeta$, e = i.$hostElement$, s = t.$flags$, r = j("attachStyles", t.$tagName$), n = Nr(e.shadowRoot ? e.shadowRoot : e.getRootNode(), t, i.$modeName$);
|
|
3027
|
+
s & 10 && (e["s-sc"] = n, e.classList.add(n + "-h"), s & 2 && e.classList.add(n + "-s")), r();
|
|
3028
|
+
}, zi = (i, t) => "sc-" + (t && i.$flags$ & 32 ? i.$tagName$ + "-" + t : i.$tagName$), Hr = (i) => gn.map((t) => t(i)).find((t) => !!t), qe = {}, Dr = "http://www.w3.org/2000/svg", zr = "http://www.w3.org/1999/xhtml", Fr = (i) => i != null, ue = (i) => (i = typeof i, i === "object" || i === "function"), Y = (i, t, ...e) => {
|
|
3029
|
+
let s = null, r = null, n = null, o = !1, a = !1, l = [];
|
|
3030
3030
|
const c = (h) => {
|
|
3031
3031
|
for (let d = 0; d < h.length; d++)
|
|
3032
3032
|
s = h[d], Array.isArray(s) ? c(s) : s != null && typeof s != "boolean" && ((o = typeof i != "function" && !ue(s)) && (s = String(s)), o && a ? l[l.length - 1].$text$ += s : l.push(o ? wt(null, s) : s), a = o);
|
|
3033
3033
|
};
|
|
3034
3034
|
if (c(e), t) {
|
|
3035
|
-
t.key && (
|
|
3035
|
+
t.key && (r = t.key), t.name && (n = t.name);
|
|
3036
3036
|
{
|
|
3037
3037
|
const h = t.className || t.class;
|
|
3038
3038
|
h && (t.class = typeof h != "object" ? h : Object.keys(h).filter((d) => h[d]).join(" "));
|
|
3039
3039
|
}
|
|
3040
3040
|
}
|
|
3041
3041
|
if (typeof i == "function")
|
|
3042
|
-
return i(t === null ? {} : t, l,
|
|
3042
|
+
return i(t === null ? {} : t, l, Wr);
|
|
3043
3043
|
const u = wt(i, null);
|
|
3044
|
-
return u.$attrs$ = t, l.length > 0 && (u.$children$ = l), u.$key$ =
|
|
3044
|
+
return u.$attrs$ = t, l.length > 0 && (u.$children$ = l), u.$key$ = r, u.$name$ = n, u;
|
|
3045
3045
|
}, wt = (i, t) => {
|
|
3046
3046
|
const e = {
|
|
3047
3047
|
$flags$: 0,
|
|
@@ -3051,9 +3051,9 @@ const Pt = typeof window < "u" ? window : {}, S = Pt.document || { head: {} }, H
|
|
|
3051
3051
|
$children$: null
|
|
3052
3052
|
};
|
|
3053
3053
|
return e.$attrs$ = null, e.$key$ = null, e.$name$ = null, e;
|
|
3054
|
-
}, he = {},
|
|
3054
|
+
}, he = {}, Yr = (i) => i && i.$tag$ === he, Wr = {
|
|
3055
3055
|
forEach: (i, t) => i.map(Ge).forEach(t),
|
|
3056
|
-
map: (i, t) => i.map(Ge).map(t).map(
|
|
3056
|
+
map: (i, t) => i.map(Ge).map(t).map(qr)
|
|
3057
3057
|
}, Ge = (i) => ({
|
|
3058
3058
|
vattrs: i.$attrs$,
|
|
3059
3059
|
vchildren: i.$children$,
|
|
@@ -3061,14 +3061,14 @@ const Pt = typeof window < "u" ? window : {}, S = Pt.document || { head: {} }, H
|
|
|
3061
3061
|
vname: i.$name$,
|
|
3062
3062
|
vtag: i.$tag$,
|
|
3063
3063
|
vtext: i.$text$
|
|
3064
|
-
}),
|
|
3064
|
+
}), qr = (i) => {
|
|
3065
3065
|
if (typeof i.vtag == "function") {
|
|
3066
3066
|
const e = Object.assign({}, i.vattrs);
|
|
3067
3067
|
return i.vkey && (e.key = i.vkey), i.vname && (e.name = i.vname), Y(i.vtag, e, ...i.vchildren || []);
|
|
3068
3068
|
}
|
|
3069
3069
|
const t = wt(i.vtag, i.vtext);
|
|
3070
3070
|
return t.$attrs$ = i.vattrs, t.$children$ = i.vchildren, t.$key$ = i.vkey, t.$name$ = i.vname, t;
|
|
3071
|
-
}, Ke = (i, t, e, s,
|
|
3071
|
+
}, Ke = (i, t, e, s, r, n) => {
|
|
3072
3072
|
if (e !== s) {
|
|
3073
3073
|
let o = Je(i, t), a = t.toLowerCase();
|
|
3074
3074
|
if (t === "class") {
|
|
@@ -3086,7 +3086,7 @@ const Pt = typeof window < "u" ? window : {}, S = Pt.document || { head: {} }, H
|
|
|
3086
3086
|
t[2] === "-" ? t = t.slice(3) : Je(Pt, a) ? t = a.slice(2) : t = a[2] + t.slice(3), e && m.rel(i, t, e, !1), s && m.ael(i, t, s, !1);
|
|
3087
3087
|
else {
|
|
3088
3088
|
const l = ue(s);
|
|
3089
|
-
if ((o || l && s !== null) && !
|
|
3089
|
+
if ((o || l && s !== null) && !r)
|
|
3090
3090
|
try {
|
|
3091
3091
|
if (i.tagName.includes("-"))
|
|
3092
3092
|
i[t] = s;
|
|
@@ -3097,93 +3097,93 @@ const Pt = typeof window < "u" ? window : {}, S = Pt.document || { head: {} }, H
|
|
|
3097
3097
|
} catch {
|
|
3098
3098
|
}
|
|
3099
3099
|
let c = !1;
|
|
3100
|
-
a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, c = !0), s == null || s === !1 ? (s !== !1 || i.getAttribute(t) === "") && (c ? i.removeAttributeNS(Ye, t) : i.removeAttribute(t)) : (!o ||
|
|
3100
|
+
a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, c = !0), s == null || s === !1 ? (s !== !1 || i.getAttribute(t) === "") && (c ? i.removeAttributeNS(Ye, t) : i.removeAttribute(t)) : (!o || n & 4 || r) && !l && (s = s === !0 ? "" : s, c ? i.setAttributeNS(Ye, t, s) : i.setAttribute(t, s));
|
|
3101
3101
|
}
|
|
3102
3102
|
}
|
|
3103
|
-
},
|
|
3104
|
-
const
|
|
3105
|
-
for (s in
|
|
3106
|
-
s in o || Ke(
|
|
3103
|
+
}, Gr = /\s/, Ze = (i) => i ? i.split(Gr) : [], Fi = (i, t, e, s) => {
|
|
3104
|
+
const r = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, n = i && i.$attrs$ || qe, o = t.$attrs$ || qe;
|
|
3105
|
+
for (s in n)
|
|
3106
|
+
s in o || Ke(r, s, n[s], void 0, e, t.$flags$);
|
|
3107
3107
|
for (s in o)
|
|
3108
|
-
Ke(
|
|
3108
|
+
Ke(r, s, n[s], o[s], e, t.$flags$);
|
|
3109
3109
|
}, xt = (i, t, e, s) => {
|
|
3110
|
-
let
|
|
3111
|
-
if (Bi || (ce = !0,
|
|
3110
|
+
let r = t.$children$[e], n = 0, o, a, l;
|
|
3111
|
+
if (Bi || (ce = !0, r.$tag$ === "slot" && (D && s.classList.add(D + "-s"), r.$flags$ |= r.$children$ ? (
|
|
3112
3112
|
// slot element has fallback content
|
|
3113
3113
|
2
|
|
3114
3114
|
) : (
|
|
3115
3115
|
// slot element does not have fallback content
|
|
3116
3116
|
1
|
|
3117
|
-
))),
|
|
3118
|
-
o =
|
|
3119
|
-
else if (
|
|
3120
|
-
o =
|
|
3117
|
+
))), r.$text$ !== null)
|
|
3118
|
+
o = r.$elm$ = S.createTextNode(r.$text$);
|
|
3119
|
+
else if (r.$flags$ & 1)
|
|
3120
|
+
o = r.$elm$ = S.createTextNode("");
|
|
3121
3121
|
else {
|
|
3122
|
-
if (y || (y =
|
|
3123
|
-
for (
|
|
3124
|
-
a = xt(i,
|
|
3125
|
-
|
|
3122
|
+
if (y || (y = r.$tag$ === "svg"), o = r.$elm$ = S.createElementNS(y ? Dr : zr, r.$flags$ & 2 ? "slot-fb" : r.$tag$), y && r.$tag$ === "foreignObject" && (y = !1), Fi(null, r, y), Fr(D) && o["s-si"] !== D && o.classList.add(o["s-si"] = D), r.$children$)
|
|
3123
|
+
for (n = 0; n < r.$children$.length; ++n)
|
|
3124
|
+
a = xt(i, r, n, o), a && o.appendChild(a);
|
|
3125
|
+
r.$tag$ === "svg" ? y = !1 : o.tagName === "foreignObject" && (y = !0);
|
|
3126
3126
|
}
|
|
3127
|
-
return o["s-hn"] = Tt,
|
|
3127
|
+
return o["s-hn"] = Tt, r.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = Ni, o["s-sn"] = r.$name$ || "", l = i && i.$children$ && i.$children$[e], l && l.$tag$ === r.$tag$ && i.$elm$ && ot(i.$elm$, !1)), o;
|
|
3128
3128
|
}, ot = (i, t) => {
|
|
3129
3129
|
m.$flags$ |= 1;
|
|
3130
3130
|
const e = i.childNodes;
|
|
3131
3131
|
for (let s = e.length - 1; s >= 0; s--) {
|
|
3132
|
-
const
|
|
3133
|
-
|
|
3132
|
+
const r = e[s];
|
|
3133
|
+
r["s-hn"] !== Tt && r["s-ol"] && (qi(r).insertBefore(r, de(r)), r["s-ol"].remove(), r["s-ol"] = void 0, ce = !0), t && ot(r, t);
|
|
3134
3134
|
}
|
|
3135
3135
|
m.$flags$ &= -2;
|
|
3136
|
-
}, Yi = (i, t, e, s,
|
|
3136
|
+
}, Yi = (i, t, e, s, r, n) => {
|
|
3137
3137
|
let o = i["s-cr"] && i["s-cr"].parentNode || i, a;
|
|
3138
|
-
for (o.shadowRoot && o.tagName === Tt && (o = o.shadowRoot);
|
|
3139
|
-
s[
|
|
3140
|
-
}, Wi = (i, t, e, s,
|
|
3138
|
+
for (o.shadowRoot && o.tagName === Tt && (o = o.shadowRoot); r <= n; ++r)
|
|
3139
|
+
s[r] && (a = xt(null, e, r, i), a && (s[r].$elm$ = a, o.insertBefore(a, de(t))));
|
|
3140
|
+
}, Wi = (i, t, e, s, r) => {
|
|
3141
3141
|
for (; t <= e; ++t)
|
|
3142
|
-
(s = i[t]) && (
|
|
3143
|
-
},
|
|
3144
|
-
let
|
|
3145
|
-
for (;
|
|
3142
|
+
(s = i[t]) && (r = s.$elm$, Zi(s), _t = !0, r["s-ol"] ? r["s-ol"].remove() : ot(r, !0), r.remove());
|
|
3143
|
+
}, Kr = (i, t, e, s) => {
|
|
3144
|
+
let r = 0, n = 0, o = 0, a = 0, l = t.length - 1, c = t[0], u = t[l], h = s.length - 1, d = s[0], f = s[h], $, g;
|
|
3145
|
+
for (; r <= l && n <= h; )
|
|
3146
3146
|
if (c == null)
|
|
3147
|
-
c = t[++
|
|
3147
|
+
c = t[++r];
|
|
3148
3148
|
else if (u == null)
|
|
3149
3149
|
u = t[--l];
|
|
3150
3150
|
else if (d == null)
|
|
3151
|
-
d = s[++
|
|
3151
|
+
d = s[++n];
|
|
3152
3152
|
else if (f == null)
|
|
3153
3153
|
f = s[--h];
|
|
3154
3154
|
else if (dt(c, d))
|
|
3155
|
-
z(c, d), c = t[++
|
|
3155
|
+
z(c, d), c = t[++r], d = s[++n];
|
|
3156
3156
|
else if (dt(u, f))
|
|
3157
3157
|
z(u, f), u = t[--l], f = s[--h];
|
|
3158
3158
|
else if (dt(c, f))
|
|
3159
|
-
(c.$tag$ === "slot" || f.$tag$ === "slot") && ot(c.$elm$.parentNode, !1), z(c, f), i.insertBefore(c.$elm$, u.$elm$.nextSibling), c = t[++
|
|
3159
|
+
(c.$tag$ === "slot" || f.$tag$ === "slot") && ot(c.$elm$.parentNode, !1), z(c, f), i.insertBefore(c.$elm$, u.$elm$.nextSibling), c = t[++r], f = s[--h];
|
|
3160
3160
|
else if (dt(u, d))
|
|
3161
|
-
(c.$tag$ === "slot" || f.$tag$ === "slot") && ot(u.$elm$.parentNode, !1), z(u, d), i.insertBefore(u.$elm$, c.$elm$), u = t[--l], d = s[++
|
|
3161
|
+
(c.$tag$ === "slot" || f.$tag$ === "slot") && ot(u.$elm$.parentNode, !1), z(u, d), i.insertBefore(u.$elm$, c.$elm$), u = t[--l], d = s[++n];
|
|
3162
3162
|
else {
|
|
3163
|
-
for (o = -1, a =
|
|
3163
|
+
for (o = -1, a = r; a <= l; ++a)
|
|
3164
3164
|
if (t[a] && t[a].$key$ !== null && t[a].$key$ === d.$key$) {
|
|
3165
3165
|
o = a;
|
|
3166
3166
|
break;
|
|
3167
3167
|
}
|
|
3168
|
-
o >= 0 ? (g = t[o], g.$tag$ !== d.$tag$ ? $ = xt(t && t[
|
|
3168
|
+
o >= 0 ? (g = t[o], g.$tag$ !== d.$tag$ ? $ = xt(t && t[n], e, o, i) : (z(g, d), t[o] = void 0, $ = g.$elm$), d = s[++n]) : ($ = xt(t && t[n], e, n, i), d = s[++n]), $ && qi(c.$elm$).insertBefore($, de(c.$elm$));
|
|
3169
3169
|
}
|
|
3170
|
-
|
|
3170
|
+
r > l ? Yi(i, s[h + 1] == null ? null : s[h + 1].$elm$, e, s, n, h) : n > h && Wi(t, r, l);
|
|
3171
3171
|
}, dt = (i, t) => i.$tag$ === t.$tag$ ? i.$tag$ === "slot" ? i.$name$ === t.$name$ : i.$key$ === t.$key$ : !1, de = (i) => i && i["s-ol"] || i, qi = (i) => (i["s-ol"] ? i["s-ol"] : i).parentNode, z = (i, t) => {
|
|
3172
|
-
const e = t.$elm$ = i.$elm$, s = i.$children$,
|
|
3172
|
+
const e = t.$elm$ = i.$elm$, s = i.$children$, r = t.$children$, n = t.$tag$, o = t.$text$;
|
|
3173
3173
|
let a;
|
|
3174
|
-
o === null ? (y =
|
|
3174
|
+
o === null ? (y = n === "svg" ? !0 : n === "foreignObject" ? !1 : y, n === "slot" || Fi(i, t, y), s !== null && r !== null ? Kr(e, s, t, r) : r !== null ? (i.$text$ !== null && (e.textContent = ""), Yi(e, null, t, r, 0, r.length - 1)) : s !== null && Wi(s, 0, s.length - 1), y && n === "svg" && (y = !1)) : (a = e["s-cr"]) ? a.parentNode.textContent = o : i.$text$ !== o && (e.data = o);
|
|
3175
3175
|
}, Gi = (i) => {
|
|
3176
|
-
let t = i.childNodes, e, s,
|
|
3177
|
-
for (s = 0,
|
|
3176
|
+
let t = i.childNodes, e, s, r, n, o, a;
|
|
3177
|
+
for (s = 0, r = t.length; s < r; s++)
|
|
3178
3178
|
if (e = t[s], e.nodeType === 1) {
|
|
3179
3179
|
if (e["s-sr"]) {
|
|
3180
|
-
for (o = e["s-sn"], e.hidden = !1,
|
|
3181
|
-
if (a = t[
|
|
3182
|
-
if (a === 1 && o === t[
|
|
3180
|
+
for (o = e["s-sn"], e.hidden = !1, n = 0; n < r; n++)
|
|
3181
|
+
if (a = t[n].nodeType, t[n]["s-hn"] !== e["s-hn"] || o !== "") {
|
|
3182
|
+
if (a === 1 && o === t[n].getAttribute("slot")) {
|
|
3183
3183
|
e.hidden = !0;
|
|
3184
3184
|
break;
|
|
3185
3185
|
}
|
|
3186
|
-
} else if (a === 1 || a === 3 && t[
|
|
3186
|
+
} else if (a === 1 || a === 3 && t[n].textContent.trim() !== "") {
|
|
3187
3187
|
e.hidden = !0;
|
|
3188
3188
|
break;
|
|
3189
3189
|
}
|
|
@@ -3191,15 +3191,15 @@ const Pt = typeof window < "u" ? window : {}, S = Pt.document || { head: {} }, H
|
|
|
3191
3191
|
Gi(e);
|
|
3192
3192
|
}
|
|
3193
3193
|
}, w = [], Ki = (i) => {
|
|
3194
|
-
let t, e, s,
|
|
3194
|
+
let t, e, s, r, n, o, a = 0, l = i.childNodes, c = l.length;
|
|
3195
3195
|
for (; a < c; a++) {
|
|
3196
3196
|
if (t = l[a], t["s-sr"] && (e = t["s-cr"]) && e.parentNode)
|
|
3197
|
-
for (s = e.parentNode.childNodes,
|
|
3198
|
-
e = s[o], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== t["s-hn"] && (Xe(e,
|
|
3197
|
+
for (s = e.parentNode.childNodes, r = t["s-sn"], o = s.length - 1; o >= 0; o--)
|
|
3198
|
+
e = s[o], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== t["s-hn"] && (Xe(e, r) ? (n = w.find((u) => u.$nodeToRelocate$ === e), _t = !0, e["s-sn"] = e["s-sn"] || r, n ? n.$slotRefNode$ = t : w.push({
|
|
3199
3199
|
$slotRefNode$: t,
|
|
3200
3200
|
$nodeToRelocate$: e
|
|
3201
3201
|
}), e["s-sr"] && w.map((u) => {
|
|
3202
|
-
Xe(u.$nodeToRelocate$, e["s-sn"]) && (
|
|
3202
|
+
Xe(u.$nodeToRelocate$, e["s-sn"]) && (n = w.find((h) => h.$nodeToRelocate$ === e), n && !u.$slotRefNode$ && (u.$slotRefNode$ = n.$slotRefNode$));
|
|
3203
3203
|
})) : w.some((u) => u.$nodeToRelocate$ === e) || w.push({
|
|
3204
3204
|
$nodeToRelocate$: e
|
|
3205
3205
|
}));
|
|
@@ -3207,12 +3207,12 @@ const Pt = typeof window < "u" ? window : {}, S = Pt.document || { head: {} }, H
|
|
|
3207
3207
|
}
|
|
3208
3208
|
}, Xe = (i, t) => i.nodeType === 1 ? i.getAttribute("slot") === null && t === "" || i.getAttribute("slot") === t : i["s-sn"] === t ? !0 : t === "", Zi = (i) => {
|
|
3209
3209
|
i.$attrs$ && i.$attrs$.ref && i.$attrs$.ref(null), i.$children$ && i.$children$.map(Zi);
|
|
3210
|
-
},
|
|
3211
|
-
const e = i.$hostElement$, s = i.$cmpMeta$,
|
|
3212
|
-
Tt = e.tagName, s.$attrsToReflect$ && (
|
|
3210
|
+
}, Zr = (i, t) => {
|
|
3211
|
+
const e = i.$hostElement$, s = i.$cmpMeta$, r = i.$vnode$ || wt(null, null), n = Yr(t) ? t : Y(null, null, t);
|
|
3212
|
+
Tt = e.tagName, s.$attrsToReflect$ && (n.$attrs$ = n.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => n.$attrs$[a] = e[o])), n.$tag$ = null, n.$flags$ |= 4, i.$vnode$ = n, n.$elm$ = r.$elm$ = e.shadowRoot || e, D = e["s-sc"], Ni = e["s-cr"], Bi = (s.$flags$ & 1) !== 0, _t = !1, z(r, n);
|
|
3213
3213
|
{
|
|
3214
3214
|
if (m.$flags$ |= 1, ce) {
|
|
3215
|
-
Ki(
|
|
3215
|
+
Ki(n.$elm$);
|
|
3216
3216
|
let o, a, l, c, u, h, d = 0;
|
|
3217
3217
|
for (; d < w.length; d++)
|
|
3218
3218
|
o = w[d], a = o.$nodeToRelocate$, a["s-ol"] || (l = S.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
|
|
@@ -3227,41 +3227,41 @@ const Pt = typeof window < "u" ? window : {}, S = Pt.document || { head: {} }, H
|
|
|
3227
3227
|
} else
|
|
3228
3228
|
a.nodeType === 1 && (a.hidden = !0);
|
|
3229
3229
|
}
|
|
3230
|
-
_t && Gi(
|
|
3230
|
+
_t && Gi(n.$elm$), m.$flags$ &= -2, w.length = 0;
|
|
3231
3231
|
}
|
|
3232
|
-
},
|
|
3233
|
-
const s =
|
|
3232
|
+
}, Xr = (i) => i, Qr = (i, t, e) => {
|
|
3233
|
+
const s = Xr(i);
|
|
3234
3234
|
return {
|
|
3235
|
-
emit: (
|
|
3235
|
+
emit: (r) => Jr(s, t, {
|
|
3236
3236
|
bubbles: !0,
|
|
3237
3237
|
composed: !0,
|
|
3238
3238
|
cancelable: !0,
|
|
3239
|
-
detail:
|
|
3239
|
+
detail: r
|
|
3240
3240
|
})
|
|
3241
3241
|
};
|
|
3242
|
-
},
|
|
3242
|
+
}, Jr = (i, t, e) => {
|
|
3243
3243
|
const s = m.ce(t, e);
|
|
3244
3244
|
return i.dispatchEvent(s), s;
|
|
3245
|
-
},
|
|
3246
|
-
}, Xi = (i, t) => (i.$flags$ |= 16,
|
|
3247
|
-
const e = i.$hostElement$, s = j("scheduleUpdate", i.$cmpMeta$.$tagName$),
|
|
3248
|
-
let
|
|
3249
|
-
return t ?
|
|
3250
|
-
},
|
|
3251
|
-
const s = i.$hostElement$,
|
|
3252
|
-
s["s-rc"], e &&
|
|
3253
|
-
const
|
|
3254
|
-
|
|
3255
|
-
},
|
|
3245
|
+
}, Vr = (i, t) => {
|
|
3246
|
+
}, Xi = (i, t) => (i.$flags$ |= 16, Vr(i, i.$ancestorComponent$), mn(() => tn(i, t))), tn = (i, t) => {
|
|
3247
|
+
const e = i.$hostElement$, s = j("scheduleUpdate", i.$cmpMeta$.$tagName$), r = e;
|
|
3248
|
+
let n;
|
|
3249
|
+
return t ? n = W(r, "componentWillLoad") : n = W(r, "componentWillUpdate"), n = Qe(n, () => W(r, "componentWillRender")), s(), Qe(n, () => en(i, r, t));
|
|
3250
|
+
}, en = async (i, t, e) => {
|
|
3251
|
+
const s = i.$hostElement$, r = j("update", i.$cmpMeta$.$tagName$);
|
|
3252
|
+
s["s-rc"], e && Br(i);
|
|
3253
|
+
const n = j("render", i.$cmpMeta$.$tagName$);
|
|
3254
|
+
sn(i, t, s), n(), r(), rn(i);
|
|
3255
|
+
}, sn = (i, t, e) => {
|
|
3256
3256
|
try {
|
|
3257
|
-
Fe = t, t = t.render && t.render(), i.$flags$ &= -17, i.$flags$ |= 2, (H.hasRenderFn || H.reflect) && (H.vdomRender || H.reflect) && (H.hydrateServerSide ||
|
|
3257
|
+
Fe = t, t = t.render && t.render(), i.$flags$ &= -17, i.$flags$ |= 2, (H.hasRenderFn || H.reflect) && (H.vdomRender || H.reflect) && (H.hydrateServerSide || Zr(i, t));
|
|
3258
3258
|
} catch (a) {
|
|
3259
3259
|
ct(a, i.$hostElement$);
|
|
3260
3260
|
}
|
|
3261
3261
|
return Fe = null, null;
|
|
3262
|
-
},
|
|
3263
|
-
const t = i.$cmpMeta$.$tagName$, e = i.$hostElement$, s = j("postUpdate", t),
|
|
3264
|
-
i.$ancestorComponent$, W(
|
|
3262
|
+
}, rn = (i) => {
|
|
3263
|
+
const t = i.$cmpMeta$.$tagName$, e = i.$hostElement$, s = j("postUpdate", t), r = e;
|
|
3264
|
+
i.$ancestorComponent$, W(r, "componentDidRender"), i.$flags$ & 64 ? (W(r, "componentDidUpdate"), s()) : (i.$flags$ |= 64, W(r, "componentDidLoad"), s());
|
|
3265
3265
|
}, W = (i, t, e) => {
|
|
3266
3266
|
if (i && i[t])
|
|
3267
3267
|
try {
|
|
@@ -3269,12 +3269,12 @@ const Pt = typeof window < "u" ? window : {}, S = Pt.document || { head: {} }, H
|
|
|
3269
3269
|
} catch (s) {
|
|
3270
3270
|
ct(s);
|
|
3271
3271
|
}
|
|
3272
|
-
}, Qe = (i, t) => i && i.then ? i.then(t) : t(),
|
|
3273
|
-
const
|
|
3274
|
-
e =
|
|
3272
|
+
}, Qe = (i, t) => i && i.then ? i.then(t) : t(), nn = (i, t) => i != null && !ue(i) ? t & 4 ? i === "false" ? !1 : i === "" || !!i : t & 2 ? parseFloat(i) : t & 1 ? String(i) : i : i, on = (i, t) => It(i).$instanceValues$.get(t), an = (i, t, e, s) => {
|
|
3273
|
+
const r = It(i), n = i, o = r.$instanceValues$.get(t), a = r.$flags$, l = n;
|
|
3274
|
+
e = nn(e, s.$members$[t][0]);
|
|
3275
3275
|
const c = Number.isNaN(o) && Number.isNaN(e);
|
|
3276
3276
|
if (e !== o && !c) {
|
|
3277
|
-
|
|
3277
|
+
r.$instanceValues$.set(t, e);
|
|
3278
3278
|
{
|
|
3279
3279
|
if (s.$watchers$ && a & 128) {
|
|
3280
3280
|
const h = s.$watchers$[t];
|
|
@@ -3282,41 +3282,41 @@ const Pt = typeof window < "u" ? window : {}, S = Pt.document || { head: {} }, H
|
|
|
3282
3282
|
try {
|
|
3283
3283
|
l[d](e, o, t);
|
|
3284
3284
|
} catch (f) {
|
|
3285
|
-
ct(f,
|
|
3285
|
+
ct(f, n);
|
|
3286
3286
|
}
|
|
3287
3287
|
});
|
|
3288
3288
|
}
|
|
3289
3289
|
if ((a & 18) === 2) {
|
|
3290
3290
|
if (l.componentShouldUpdate && l.componentShouldUpdate(e, o, t) === !1)
|
|
3291
3291
|
return;
|
|
3292
|
-
Xi(
|
|
3292
|
+
Xi(r, !1);
|
|
3293
3293
|
}
|
|
3294
3294
|
}
|
|
3295
3295
|
}
|
|
3296
|
-
},
|
|
3296
|
+
}, ln = (i, t, e) => {
|
|
3297
3297
|
if (t.$members$) {
|
|
3298
3298
|
i.watchers && (t.$watchers$ = i.watchers);
|
|
3299
|
-
const s = Object.entries(t.$members$),
|
|
3300
|
-
s.map(([
|
|
3301
|
-
(o & 31 || o & 32) && Object.defineProperty(
|
|
3299
|
+
const s = Object.entries(t.$members$), r = i.prototype;
|
|
3300
|
+
s.map(([n, [o]]) => {
|
|
3301
|
+
(o & 31 || o & 32) && Object.defineProperty(r, n, {
|
|
3302
3302
|
get() {
|
|
3303
|
-
return
|
|
3303
|
+
return on(this, n);
|
|
3304
3304
|
},
|
|
3305
3305
|
set(a) {
|
|
3306
|
-
|
|
3306
|
+
an(this, n, a, t);
|
|
3307
3307
|
},
|
|
3308
3308
|
configurable: !0,
|
|
3309
3309
|
enumerable: !0
|
|
3310
3310
|
});
|
|
3311
3311
|
});
|
|
3312
3312
|
{
|
|
3313
|
-
const
|
|
3314
|
-
|
|
3313
|
+
const n = /* @__PURE__ */ new Map();
|
|
3314
|
+
r.attributeChangedCallback = function(o, a, l) {
|
|
3315
3315
|
m.jmp(() => {
|
|
3316
|
-
const c =
|
|
3316
|
+
const c = n.get(o);
|
|
3317
3317
|
if (this.hasOwnProperty(c))
|
|
3318
3318
|
l = this[c], delete this[c];
|
|
3319
|
-
else if (
|
|
3319
|
+
else if (r.hasOwnProperty(c) && typeof this[c] == "number" && this[c] == l)
|
|
3320
3320
|
return;
|
|
3321
3321
|
this[c] = l === null && typeof this[c] == "boolean" ? !1 : l;
|
|
3322
3322
|
});
|
|
@@ -3325,37 +3325,37 @@ const Pt = typeof window < "u" ? window : {}, S = Pt.document || { head: {} }, H
|
|
|
3325
3325
|
/* HasAttribute */
|
|
3326
3326
|
).map(([o, a]) => {
|
|
3327
3327
|
const l = a[1] || o;
|
|
3328
|
-
return
|
|
3328
|
+
return n.set(l, o), a[0] & 512 && t.$attrsToReflect$.push([o, l]), l;
|
|
3329
3329
|
});
|
|
3330
3330
|
}
|
|
3331
3331
|
}
|
|
3332
3332
|
return i;
|
|
3333
|
-
},
|
|
3334
|
-
if (!(t.$flags$ & 32) && (
|
|
3335
|
-
let o =
|
|
3336
|
-
typeof o != "string" && (o = o[t.$modeName$ =
|
|
3333
|
+
}, cn = async (i, t, e, s, r) => {
|
|
3334
|
+
if (!(t.$flags$ & 32) && (r = i.constructor, t.$flags$ |= 32, customElements.whenDefined(e.$tagName$).then(() => t.$flags$ |= 128), r.style)) {
|
|
3335
|
+
let o = r.style;
|
|
3336
|
+
typeof o != "string" && (o = o[t.$modeName$ = Hr(i)]);
|
|
3337
3337
|
const a = zi(e, t.$modeName$);
|
|
3338
3338
|
if (!St.has(a)) {
|
|
3339
3339
|
const l = j("registerStyles", e.$tagName$);
|
|
3340
|
-
|
|
3340
|
+
Mr(a, o, !!(e.$flags$ & 1)), l();
|
|
3341
3341
|
}
|
|
3342
3342
|
}
|
|
3343
3343
|
t.$ancestorComponent$, Xi(t, !0);
|
|
3344
|
-
},
|
|
3345
|
-
},
|
|
3344
|
+
}, un = (i) => {
|
|
3345
|
+
}, hn = (i) => {
|
|
3346
3346
|
if (!(m.$flags$ & 1)) {
|
|
3347
3347
|
const t = It(i), e = t.$cmpMeta$, s = j("connectedCallback", e.$tagName$);
|
|
3348
|
-
t.$flags$ & 1 ? (Di(i, t, e.$listeners$),
|
|
3349
|
-
if (
|
|
3350
|
-
const o = i[
|
|
3351
|
-
delete i[
|
|
3348
|
+
t.$flags$ & 1 ? (Di(i, t, e.$listeners$), un(t.$lazyInstance$)) : (t.$flags$ |= 1, e.$flags$ & 12 && dn(i), e.$members$ && Object.entries(e.$members$).map(([r, [n]]) => {
|
|
3349
|
+
if (n & 31 && i.hasOwnProperty(r)) {
|
|
3350
|
+
const o = i[r];
|
|
3351
|
+
delete i[r], i[r] = o;
|
|
3352
3352
|
}
|
|
3353
|
-
}),
|
|
3353
|
+
}), cn(i, t, e)), s();
|
|
3354
3354
|
}
|
|
3355
|
-
},
|
|
3355
|
+
}, dn = (i) => {
|
|
3356
3356
|
const t = i["s-cr"] = S.createComment("");
|
|
3357
3357
|
t["s-cn"] = !0, i.insertBefore(t, i.firstChild);
|
|
3358
|
-
},
|
|
3358
|
+
}, fn = (i) => {
|
|
3359
3359
|
if (!(m.$flags$ & 1)) {
|
|
3360
3360
|
const t = It(i);
|
|
3361
3361
|
t.$rmListeners$ && (t.$rmListeners$.map((e) => e()), t.$rmListeners$ = void 0);
|
|
@@ -3366,16 +3366,16 @@ const Pt = typeof window < "u" ? window : {}, S = Pt.document || { head: {} }, H
|
|
|
3366
3366
|
$tagName$: t[1]
|
|
3367
3367
|
};
|
|
3368
3368
|
e.$members$ = t[2], e.$listeners$ = t[3], e.$watchers$ = i.$watchers$, e.$attrsToReflect$ = [];
|
|
3369
|
-
const s = i.prototype.connectedCallback,
|
|
3369
|
+
const s = i.prototype.connectedCallback, r = i.prototype.disconnectedCallback;
|
|
3370
3370
|
return Object.assign(i.prototype, {
|
|
3371
3371
|
__registerHost() {
|
|
3372
|
-
|
|
3372
|
+
pn(this, e);
|
|
3373
3373
|
},
|
|
3374
3374
|
connectedCallback() {
|
|
3375
|
-
|
|
3375
|
+
hn(this), s && s.call(this);
|
|
3376
3376
|
},
|
|
3377
3377
|
disconnectedCallback() {
|
|
3378
|
-
|
|
3378
|
+
fn(this), r && r.call(this);
|
|
3379
3379
|
},
|
|
3380
3380
|
__attachShadow() {
|
|
3381
3381
|
this.attachShadow({
|
|
@@ -3383,8 +3383,8 @@ const Pt = typeof window < "u" ? window : {}, S = Pt.document || { head: {} }, H
|
|
|
3383
3383
|
delegatesFocus: !!(e.$flags$ & 16)
|
|
3384
3384
|
});
|
|
3385
3385
|
}
|
|
3386
|
-
}), i.is = e.$tagName$,
|
|
3387
|
-
}, Ji = /* @__PURE__ */ new WeakMap(), It = (i) => Ji.get(i),
|
|
3386
|
+
}), i.is = e.$tagName$, ln(i, e);
|
|
3387
|
+
}, Ji = /* @__PURE__ */ new WeakMap(), It = (i) => Ji.get(i), pn = (i, t) => {
|
|
3388
3388
|
const e = {
|
|
3389
3389
|
$flags$: 0,
|
|
3390
3390
|
$hostElement$: i,
|
|
@@ -3392,8 +3392,8 @@ const Pt = typeof window < "u" ? window : {}, S = Pt.document || { head: {} }, H
|
|
|
3392
3392
|
$instanceValues$: /* @__PURE__ */ new Map()
|
|
3393
3393
|
};
|
|
3394
3394
|
return Di(i, e, t.$listeners$), Ji.set(i, e);
|
|
3395
|
-
}, Je = (i, t) => t in i, ct = (i, t) => (0, console.error)(i, t), St = /* @__PURE__ */ new Map(),
|
|
3396
|
-
i.push(e), Zt || (Zt = !0, t && m.$flags$ & 4 ?
|
|
3395
|
+
}, Je = (i, t) => t in i, ct = (i, t) => (0, console.error)(i, t), St = /* @__PURE__ */ new Map(), gn = [], Ve = [], Vi = [], $n = (i, t) => (e) => {
|
|
3396
|
+
i.push(e), Zt || (Zt = !0, t && m.$flags$ & 4 ? vn(Xt) : m.raf(Xt));
|
|
3397
3397
|
}, ti = (i) => {
|
|
3398
3398
|
for (let t = 0; t < i.length; t++)
|
|
3399
3399
|
try {
|
|
@@ -3404,35 +3404,35 @@ const Pt = typeof window < "u" ? window : {}, S = Pt.document || { head: {} }, H
|
|
|
3404
3404
|
i.length = 0;
|
|
3405
3405
|
}, Xt = () => {
|
|
3406
3406
|
ti(Ve), ti(Vi), (Zt = Ve.length > 0) && m.raf(Xt);
|
|
3407
|
-
},
|
|
3407
|
+
}, vn = (i) => Ir().then(i), mn = /* @__PURE__ */ $n(Vi, !0), yn = (i = {}) => {
|
|
3408
3408
|
const { content: t = "", title: e, attributes: s = [] } = i;
|
|
3409
|
-
let
|
|
3409
|
+
let r = "", n = [
|
|
3410
3410
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
3411
3411
|
{ name: "fill", value: "currentColor" },
|
|
3412
3412
|
...s
|
|
3413
3413
|
];
|
|
3414
|
-
return e && (
|
|
3415
|
-
},
|
|
3416
|
-
function
|
|
3414
|
+
return e && (r = `<title>${e}</title>`), `<svg ${n.map((a) => `${a.name}="${a.value}"`).join(" ")}>${r}${t}</svg>`;
|
|
3415
|
+
}, bn = (i) => i.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
|
3416
|
+
function _n(i) {
|
|
3417
3417
|
return `${i.getFullYear()}.${i.getMonth() + 1}`;
|
|
3418
3418
|
}
|
|
3419
|
-
class
|
|
3419
|
+
class wn {
|
|
3420
3420
|
constructor(t) {
|
|
3421
|
-
this.voca_component = t, this.voca_added =
|
|
3421
|
+
this.voca_component = t, this.voca_added = _n(/* @__PURE__ */ new Date());
|
|
3422
3422
|
}
|
|
3423
3423
|
}
|
|
3424
|
-
const
|
|
3424
|
+
const xn = "telia-vst{display:none}", Sn = /* @__PURE__ */ Qi(class extends Hi {
|
|
3425
3425
|
constructor() {
|
|
3426
|
-
super(), this.__registerHost(), this.vocaInternalUStats =
|
|
3426
|
+
super(), this.__registerHost(), this.vocaInternalUStats = Qr(this, "vocaInternalUStats");
|
|
3427
3427
|
}
|
|
3428
3428
|
connectedCallback() {
|
|
3429
|
-
this.vocaInternalUStats.emit(new
|
|
3429
|
+
this.vocaInternalUStats.emit(new wn(this.dataTrackingId));
|
|
3430
3430
|
}
|
|
3431
3431
|
render() {
|
|
3432
3432
|
return Y(he, null);
|
|
3433
3433
|
}
|
|
3434
3434
|
static get style() {
|
|
3435
|
-
return
|
|
3435
|
+
return xn;
|
|
3436
3436
|
}
|
|
3437
3437
|
}, [0, "telia-vst", {
|
|
3438
3438
|
dataTrackingId: [1, "data-tracking-id"]
|
|
@@ -3443,7 +3443,7 @@ function ts() {
|
|
|
3443
3443
|
["telia-vst"].forEach((t) => {
|
|
3444
3444
|
switch (t) {
|
|
3445
3445
|
case "telia-vst":
|
|
3446
|
-
customElements.get(t) || customElements.define(t,
|
|
3446
|
+
customElements.get(t) || customElements.define(t, Sn);
|
|
3447
3447
|
break;
|
|
3448
3448
|
}
|
|
3449
3449
|
});
|
|
@@ -3452,14 +3452,14 @@ ts();
|
|
|
3452
3452
|
function Qt() {
|
|
3453
3453
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
|
3454
3454
|
}
|
|
3455
|
-
function
|
|
3455
|
+
function An() {
|
|
3456
3456
|
if (typeof Qt().vocadsIcons !== void 0)
|
|
3457
3457
|
return Qt().vocadsIcons;
|
|
3458
3458
|
}
|
|
3459
|
-
function
|
|
3459
|
+
function kn() {
|
|
3460
3460
|
return Qt().vocadsIconsRegistered;
|
|
3461
3461
|
}
|
|
3462
|
-
const
|
|
3462
|
+
const En = ".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))}", Cn = /* @__PURE__ */ Qi(class extends Hi {
|
|
3463
3463
|
constructor() {
|
|
3464
3464
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
|
3465
3465
|
}
|
|
@@ -3471,8 +3471,8 @@ const Er = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
|
3471
3471
|
getSvgString() {
|
|
3472
3472
|
if (this.svg)
|
|
3473
3473
|
return this.svg;
|
|
3474
|
-
if (
|
|
3475
|
-
const i =
|
|
3474
|
+
if (kn() && this.name) {
|
|
3475
|
+
const i = An();
|
|
3476
3476
|
return i[this.name] ? i[this.name].svg : "";
|
|
3477
3477
|
}
|
|
3478
3478
|
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"), "";
|
|
@@ -3483,15 +3483,15 @@ const Er = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
|
3483
3483
|
...t,
|
|
3484
3484
|
{ name: "aria-hidden", value: "true" }
|
|
3485
3485
|
];
|
|
3486
|
-
const e =
|
|
3487
|
-
content:
|
|
3486
|
+
const e = yn({
|
|
3487
|
+
content: bn(i),
|
|
3488
3488
|
attributes: t,
|
|
3489
3489
|
title: this.allyTitle
|
|
3490
3490
|
});
|
|
3491
3491
|
return Y(he, { class: `telia-icon telia-icon--${this.size}` }, Y("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: e }), Y("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
|
3492
3492
|
}
|
|
3493
3493
|
static get style() {
|
|
3494
|
-
return
|
|
3494
|
+
return En;
|
|
3495
3495
|
}
|
|
3496
3496
|
}, [0, "telia-icon", {
|
|
3497
3497
|
name: [1],
|
|
@@ -3500,13 +3500,13 @@ const Er = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
|
3500
3500
|
allyTitle: [1, "ally-title"],
|
|
3501
3501
|
dataTestid: [1, "data-testid"]
|
|
3502
3502
|
}]);
|
|
3503
|
-
function
|
|
3503
|
+
function On() {
|
|
3504
3504
|
if (typeof customElements > "u")
|
|
3505
3505
|
return;
|
|
3506
3506
|
["telia-icon", "telia-vst"].forEach((t) => {
|
|
3507
3507
|
switch (t) {
|
|
3508
3508
|
case "telia-icon":
|
|
3509
|
-
customElements.get(t) || customElements.define(t,
|
|
3509
|
+
customElements.get(t) || customElements.define(t, Cn);
|
|
3510
3510
|
break;
|
|
3511
3511
|
case "telia-vst":
|
|
3512
3512
|
customElements.get(t) || ts();
|
|
@@ -3514,15 +3514,15 @@ function Or() {
|
|
|
3514
3514
|
}
|
|
3515
3515
|
});
|
|
3516
3516
|
}
|
|
3517
|
-
|
|
3518
|
-
var
|
|
3519
|
-
for (var
|
|
3520
|
-
(o = i[
|
|
3521
|
-
return
|
|
3517
|
+
On();
|
|
3518
|
+
var Tn = Object.defineProperty, Pn = (i, t, e, s) => {
|
|
3519
|
+
for (var r = void 0, n = i.length - 1, o; n >= 0; n--)
|
|
3520
|
+
(o = i[n]) && (r = o(t, e, r) || r);
|
|
3521
|
+
return r && Tn(t, e, r), r;
|
|
3522
3522
|
};
|
|
3523
3523
|
const ei = ji(x), me = class me extends ei {
|
|
3524
3524
|
constructor() {
|
|
3525
|
-
super(...arguments), this.optionsIsVisible = !1, this.options = new
|
|
3525
|
+
super(...arguments), this.optionsIsVisible = !1, this.options = new Tr(this), this.optionsRef = bt(), this.optionsTriggerRef = bt(), this._onClickOutside = (t) => {
|
|
3526
3526
|
!this.optionsTriggerRef.value || !this.optionsRef.value || t.composedPath().includes(this.optionsTriggerRef.value) || t.composedPath().includes(this.optionsRef.value) || (this.optionsIsVisible = !1);
|
|
3527
3527
|
};
|
|
3528
3528
|
}
|
|
@@ -3665,7 +3665,7 @@ me.styles = [
|
|
|
3665
3665
|
`
|
|
3666
3666
|
];
|
|
3667
3667
|
let Jt = me;
|
|
3668
|
-
|
|
3668
|
+
Pn([
|
|
3669
3669
|
N()
|
|
3670
3670
|
], Jt.prototype, "optionsIsVisible");
|
|
3671
3671
|
export {
|