@telia-ace/widget-conversation-flamingo 1.1.77 → 1.1.78
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +95 -95
- package/index.mjs +994 -989
- package/package.json +2 -2
- package/widget-manifest.json +2 -1
package/index.mjs
CHANGED
@@ -1,25 +1,25 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var x = (s, e, t) => (
|
1
|
+
var Ai = Object.defineProperty;
|
2
|
+
var Ei = (s, e, t) => e in s ? Ai(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
3
|
+
var x = (s, e, t) => (Ei(s, typeof e != "symbol" ? e + "" : e, t), t), Ti = (s, e, t) => {
|
4
4
|
if (!e.has(s))
|
5
5
|
throw TypeError("Cannot " + t);
|
6
6
|
};
|
7
|
-
var
|
7
|
+
var yt = (s, e, t) => {
|
8
8
|
if (e.has(s))
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
10
10
|
e instanceof WeakSet ? e.add(s) : e.set(s, t);
|
11
11
|
};
|
12
|
-
var
|
13
|
-
const
|
14
|
-
s.registerComponent("conversation", Promise.resolve().then(() =>
|
12
|
+
var De = (s, e, t) => (Ti(s, e, "access private method"), t);
|
13
|
+
const jl = async (s) => {
|
14
|
+
s.registerComponent("conversation", Promise.resolve().then(() => zl));
|
15
15
|
};
|
16
|
-
class
|
16
|
+
class gs {
|
17
17
|
constructor() {
|
18
18
|
this.registeredProviders = /* @__PURE__ */ new Map();
|
19
19
|
}
|
20
20
|
static async getInstance(e) {
|
21
21
|
let t = await e.get("conversation");
|
22
|
-
return t || (t = new
|
22
|
+
return t || (t = new gs(), await e.register("conversation", t), t);
|
23
23
|
}
|
24
24
|
registerProvider(e, t) {
|
25
25
|
this.registeredProviders.set(e, t);
|
@@ -37,24 +37,24 @@ class fs {
|
|
37
37
|
// return this.registeredProviders.get(providerKey);
|
38
38
|
// }
|
39
39
|
}
|
40
|
-
var
|
41
|
-
return
|
40
|
+
var Tt = function(s, e) {
|
41
|
+
return Tt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, n) {
|
42
42
|
t.__proto__ = n;
|
43
43
|
} || function(t, n) {
|
44
44
|
for (var i in n)
|
45
45
|
Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
46
|
-
},
|
46
|
+
}, Tt(s, e);
|
47
47
|
};
|
48
48
|
function ye(s, e) {
|
49
49
|
if (typeof e != "function" && e !== null)
|
50
50
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
51
|
-
|
51
|
+
Tt(s, e);
|
52
52
|
function t() {
|
53
53
|
this.constructor = s;
|
54
54
|
}
|
55
55
|
s.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
56
56
|
}
|
57
|
-
function
|
57
|
+
function Li(s, e, t, n) {
|
58
58
|
function i(r) {
|
59
59
|
return r instanceof t ? r : new t(function(o) {
|
60
60
|
o(r);
|
@@ -81,13 +81,13 @@ function Ti(s, e, t, n) {
|
|
81
81
|
c((n = n.apply(s, e || [])).next());
|
82
82
|
});
|
83
83
|
}
|
84
|
-
function
|
84
|
+
function ms(s, e) {
|
85
85
|
var t = { label: 0, sent: function() {
|
86
86
|
if (r[0] & 1)
|
87
87
|
throw r[1];
|
88
88
|
return r[1];
|
89
|
-
}, trys: [], ops: [] }, n, i, r, o;
|
90
|
-
return o =
|
89
|
+
}, trys: [], ops: [] }, n, i, r, o = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
90
|
+
return o.next = a(0), o.throw = a(1), o.return = a(2), typeof Symbol == "function" && (o[Symbol.iterator] = function() {
|
91
91
|
return this;
|
92
92
|
}), o;
|
93
93
|
function a(c) {
|
@@ -187,41 +187,46 @@ function se(s, e, t) {
|
|
187
187
|
function pe(s) {
|
188
188
|
return this instanceof pe ? (this.v = s, this) : new pe(s);
|
189
189
|
}
|
190
|
-
function
|
190
|
+
function Oi(s, e, t) {
|
191
191
|
if (!Symbol.asyncIterator)
|
192
192
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
193
193
|
var n = t.apply(s, e || []), i, r = [];
|
194
|
-
return i =
|
194
|
+
return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), a("next"), a("throw"), a("return", o), i[Symbol.asyncIterator] = function() {
|
195
195
|
return this;
|
196
196
|
}, i;
|
197
|
-
function o(
|
198
|
-
|
199
|
-
return
|
200
|
-
|
197
|
+
function o(d) {
|
198
|
+
return function(m) {
|
199
|
+
return Promise.resolve(m).then(d, u);
|
200
|
+
};
|
201
|
+
}
|
202
|
+
function a(d, m) {
|
203
|
+
n[d] && (i[d] = function(f) {
|
204
|
+
return new Promise(function(O, P) {
|
205
|
+
r.push([d, f, O, P]) > 1 || l(d, f);
|
201
206
|
});
|
202
|
-
});
|
207
|
+
}, m && (i[d] = m(i[d])));
|
203
208
|
}
|
204
|
-
function
|
209
|
+
function l(d, m) {
|
205
210
|
try {
|
206
|
-
|
207
|
-
} catch (
|
208
|
-
|
211
|
+
c(n[d](m));
|
212
|
+
} catch (f) {
|
213
|
+
p(r[0][3], f);
|
209
214
|
}
|
210
215
|
}
|
211
|
-
function
|
212
|
-
|
216
|
+
function c(d) {
|
217
|
+
d.value instanceof pe ? Promise.resolve(d.value.v).then(h, u) : p(r[0][2], d);
|
213
218
|
}
|
214
|
-
function
|
215
|
-
|
219
|
+
function h(d) {
|
220
|
+
l("next", d);
|
216
221
|
}
|
217
|
-
function
|
218
|
-
|
222
|
+
function u(d) {
|
223
|
+
l("throw", d);
|
219
224
|
}
|
220
|
-
function
|
221
|
-
|
225
|
+
function p(d, m) {
|
226
|
+
d(m), r.shift(), r.length && l(r[0][0], r[0][1]);
|
222
227
|
}
|
223
228
|
}
|
224
|
-
function
|
229
|
+
function Pi(s) {
|
225
230
|
if (!Symbol.asyncIterator)
|
226
231
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
227
232
|
var e = s[Symbol.asyncIterator], t;
|
@@ -244,13 +249,13 @@ function Oi(s) {
|
|
244
249
|
function $(s) {
|
245
250
|
return typeof s == "function";
|
246
251
|
}
|
247
|
-
function
|
252
|
+
function vs(s) {
|
248
253
|
var e = function(n) {
|
249
254
|
Error.call(n), n.stack = new Error().stack;
|
250
255
|
}, t = s(e);
|
251
256
|
return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
|
252
257
|
}
|
253
|
-
var
|
258
|
+
var $t = vs(function(s) {
|
254
259
|
return function(t) {
|
255
260
|
s(this), this.message = t ? t.length + ` errors occurred during unsubscription:
|
256
261
|
` + t.map(function(n, i) {
|
@@ -259,13 +264,13 @@ var xt = ms(function(s) {
|
|
259
264
|
`) : "", this.name = "UnsubscriptionError", this.errors = t;
|
260
265
|
};
|
261
266
|
});
|
262
|
-
function
|
267
|
+
function Lt(s, e) {
|
263
268
|
if (s) {
|
264
269
|
var t = s.indexOf(e);
|
265
270
|
0 <= t && s.splice(t, 1);
|
266
271
|
}
|
267
272
|
}
|
268
|
-
var
|
273
|
+
var ot = function() {
|
269
274
|
function s(e) {
|
270
275
|
this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
|
271
276
|
}
|
@@ -298,18 +303,18 @@ var at = function() {
|
|
298
303
|
try {
|
299
304
|
h();
|
300
305
|
} catch (f) {
|
301
|
-
r = f instanceof
|
306
|
+
r = f instanceof $t ? f.errors : [f];
|
302
307
|
}
|
303
308
|
var u = this._finalizers;
|
304
309
|
if (u) {
|
305
310
|
this._finalizers = null;
|
306
311
|
try {
|
307
312
|
for (var p = me(u), d = p.next(); !d.done; d = p.next()) {
|
308
|
-
var
|
313
|
+
var m = d.value;
|
309
314
|
try {
|
310
|
-
|
315
|
+
Sn(m);
|
311
316
|
} catch (f) {
|
312
|
-
r = r ?? [], f instanceof
|
317
|
+
r = r ?? [], f instanceof $t ? r = se(se([], Q(r)), Q(f.errors)) : r.push(f);
|
313
318
|
}
|
314
319
|
}
|
315
320
|
} catch (f) {
|
@@ -324,13 +329,13 @@ var at = function() {
|
|
324
329
|
}
|
325
330
|
}
|
326
331
|
if (r)
|
327
|
-
throw new
|
332
|
+
throw new $t(r);
|
328
333
|
}
|
329
334
|
}, s.prototype.add = function(e) {
|
330
335
|
var t;
|
331
336
|
if (e && e !== this)
|
332
337
|
if (this.closed)
|
333
|
-
|
338
|
+
Sn(e);
|
334
339
|
else {
|
335
340
|
if (e instanceof s) {
|
336
341
|
if (e.closed || e._hasParent(this))
|
@@ -347,58 +352,58 @@ var at = function() {
|
|
347
352
|
this._parentage = Array.isArray(t) ? (t.push(e), t) : t ? [t, e] : e;
|
348
353
|
}, s.prototype._removeParent = function(e) {
|
349
354
|
var t = this._parentage;
|
350
|
-
t === e ? this._parentage = null : Array.isArray(t) &&
|
355
|
+
t === e ? this._parentage = null : Array.isArray(t) && Lt(t, e);
|
351
356
|
}, s.prototype.remove = function(e) {
|
352
357
|
var t = this._finalizers;
|
353
|
-
t &&
|
358
|
+
t && Lt(t, e), e instanceof s && e._removeParent(this);
|
354
359
|
}, s.EMPTY = function() {
|
355
360
|
var e = new s();
|
356
361
|
return e.closed = !0, e;
|
357
362
|
}(), s;
|
358
|
-
}(),
|
359
|
-
function
|
360
|
-
return s instanceof
|
363
|
+
}(), bs = ot.EMPTY;
|
364
|
+
function ys(s) {
|
365
|
+
return s instanceof ot || s && "closed" in s && $(s.remove) && $(s.add) && $(s.unsubscribe);
|
361
366
|
}
|
362
|
-
function
|
367
|
+
function Sn(s) {
|
363
368
|
$(s) ? s() : s.unsubscribe();
|
364
369
|
}
|
365
|
-
var
|
370
|
+
var $s = {
|
366
371
|
onUnhandledError: null,
|
367
372
|
onStoppedNotification: null,
|
368
373
|
Promise: void 0,
|
369
374
|
useDeprecatedSynchronousErrorHandling: !1,
|
370
375
|
useDeprecatedNextContext: !1
|
371
|
-
},
|
376
|
+
}, Ot = {
|
372
377
|
setTimeout: function(s, e) {
|
373
378
|
for (var t = [], n = 2; n < arguments.length; n++)
|
374
379
|
t[n - 2] = arguments[n];
|
375
|
-
var i =
|
380
|
+
var i = Ot.delegate;
|
376
381
|
return i != null && i.setTimeout ? i.setTimeout.apply(i, se([s, e], Q(t))) : setTimeout.apply(void 0, se([s, e], Q(t)));
|
377
382
|
},
|
378
383
|
clearTimeout: function(s) {
|
379
|
-
var e =
|
384
|
+
var e = Ot.delegate;
|
380
385
|
return ((e == null ? void 0 : e.clearTimeout) || clearTimeout)(s);
|
381
386
|
},
|
382
387
|
delegate: void 0
|
383
388
|
};
|
384
|
-
function
|
385
|
-
|
389
|
+
function xs(s) {
|
390
|
+
Ot.setTimeout(function() {
|
386
391
|
throw s;
|
387
392
|
});
|
388
393
|
}
|
389
|
-
function
|
394
|
+
function We() {
|
390
395
|
}
|
391
|
-
function
|
396
|
+
function qe(s) {
|
392
397
|
s();
|
393
398
|
}
|
394
399
|
var Wt = function(s) {
|
395
400
|
ye(e, s);
|
396
401
|
function e(t) {
|
397
402
|
var n = s.call(this) || this;
|
398
|
-
return n.isStopped = !1, t ? (n.destination = t,
|
403
|
+
return n.isStopped = !1, t ? (n.destination = t, ys(t) && t.add(n)) : n.destination = zi, n;
|
399
404
|
}
|
400
405
|
return e.create = function(t, n, i) {
|
401
|
-
return new
|
406
|
+
return new Pt(t, n, i);
|
402
407
|
}, e.prototype.next = function(t) {
|
403
408
|
this.isStopped || this._next(t);
|
404
409
|
}, e.prototype.error = function(t) {
|
@@ -422,11 +427,11 @@ var Wt = function(s) {
|
|
422
427
|
this.unsubscribe();
|
423
428
|
}
|
424
429
|
}, e;
|
425
|
-
}(
|
426
|
-
function
|
427
|
-
return
|
430
|
+
}(ot), Ri = Function.prototype.bind;
|
431
|
+
function xt(s, e) {
|
432
|
+
return Ri.call(s, e);
|
428
433
|
}
|
429
|
-
var
|
434
|
+
var Ii = function() {
|
430
435
|
function s(e) {
|
431
436
|
this.partialObserver = e;
|
432
437
|
}
|
@@ -436,7 +441,7 @@ var Ri = function() {
|
|
436
441
|
try {
|
437
442
|
t.next(e);
|
438
443
|
} catch (n) {
|
439
|
-
|
444
|
+
He(n);
|
440
445
|
}
|
441
446
|
}, s.prototype.error = function(e) {
|
442
447
|
var t = this.partialObserver;
|
@@ -444,20 +449,20 @@ var Ri = function() {
|
|
444
449
|
try {
|
445
450
|
t.error(e);
|
446
451
|
} catch (n) {
|
447
|
-
|
452
|
+
He(n);
|
448
453
|
}
|
449
454
|
else
|
450
|
-
|
455
|
+
He(e);
|
451
456
|
}, s.prototype.complete = function() {
|
452
457
|
var e = this.partialObserver;
|
453
458
|
if (e.complete)
|
454
459
|
try {
|
455
460
|
e.complete();
|
456
461
|
} catch (t) {
|
457
|
-
|
462
|
+
He(t);
|
458
463
|
}
|
459
464
|
}, s;
|
460
|
-
}(),
|
465
|
+
}(), Pt = function(s) {
|
461
466
|
ye(e, s);
|
462
467
|
function e(t, n, i) {
|
463
468
|
var r = s.call(this) || this, o;
|
@@ -469,37 +474,37 @@ var Ri = function() {
|
|
469
474
|
};
|
470
475
|
else {
|
471
476
|
var a;
|
472
|
-
r &&
|
477
|
+
r && $s.useDeprecatedNextContext ? (a = Object.create(t), a.unsubscribe = function() {
|
473
478
|
return r.unsubscribe();
|
474
479
|
}, o = {
|
475
|
-
next: t.next &&
|
476
|
-
error: t.error &&
|
477
|
-
complete: t.complete &&
|
480
|
+
next: t.next && xt(t.next, a),
|
481
|
+
error: t.error && xt(t.error, a),
|
482
|
+
complete: t.complete && xt(t.complete, a)
|
478
483
|
}) : o = t;
|
479
484
|
}
|
480
|
-
return r.destination = new
|
485
|
+
return r.destination = new Ii(o), r;
|
481
486
|
}
|
482
487
|
return e;
|
483
488
|
}(Wt);
|
484
|
-
function
|
485
|
-
|
489
|
+
function He(s) {
|
490
|
+
xs(s);
|
486
491
|
}
|
487
|
-
function
|
492
|
+
function Mi(s) {
|
488
493
|
throw s;
|
489
494
|
}
|
490
|
-
var
|
495
|
+
var zi = {
|
491
496
|
closed: !0,
|
492
|
-
next:
|
493
|
-
error:
|
494
|
-
complete:
|
497
|
+
next: We,
|
498
|
+
error: Mi,
|
499
|
+
complete: We
|
495
500
|
}, Yt = function() {
|
496
501
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
497
502
|
}();
|
498
|
-
function
|
503
|
+
function Oe(s) {
|
499
504
|
return s;
|
500
505
|
}
|
501
|
-
function
|
502
|
-
return s.length === 0 ?
|
506
|
+
function Ui(s) {
|
507
|
+
return s.length === 0 ? Oe : s.length === 1 ? s[0] : function(t) {
|
503
508
|
return s.reduce(function(n, i) {
|
504
509
|
return i(n);
|
505
510
|
}, t);
|
@@ -513,8 +518,8 @@ var A = function() {
|
|
513
518
|
var t = new s();
|
514
519
|
return t.source = this, t.operator = e, t;
|
515
520
|
}, s.prototype.subscribe = function(e, t, n) {
|
516
|
-
var i = this, r =
|
517
|
-
return
|
521
|
+
var i = this, r = Di(e) ? e : new Pt(e, t, n);
|
522
|
+
return qe(function() {
|
518
523
|
var o = i, a = o.operator, l = o.source;
|
519
524
|
r.add(a ? a.call(r, l) : l ? i._subscribe(r) : i._trySubscribe(r));
|
520
525
|
}), r;
|
@@ -526,8 +531,8 @@ var A = function() {
|
|
526
531
|
}
|
527
532
|
}, s.prototype.forEach = function(e, t) {
|
528
533
|
var n = this;
|
529
|
-
return t =
|
530
|
-
var o = new
|
534
|
+
return t = Cn(t), new t(function(i, r) {
|
535
|
+
var o = new Pt({
|
531
536
|
next: function(a) {
|
532
537
|
try {
|
533
538
|
e(a);
|
@@ -548,10 +553,10 @@ var A = function() {
|
|
548
553
|
}, s.prototype.pipe = function() {
|
549
554
|
for (var e = [], t = 0; t < arguments.length; t++)
|
550
555
|
e[t] = arguments[t];
|
551
|
-
return
|
556
|
+
return Ui(e)(this);
|
552
557
|
}, s.prototype.toPromise = function(e) {
|
553
558
|
var t = this;
|
554
|
-
return e =
|
559
|
+
return e = Cn(e), new e(function(n, i) {
|
555
560
|
var r;
|
556
561
|
t.subscribe(function(o) {
|
557
562
|
return r = o;
|
@@ -565,22 +570,22 @@ var A = function() {
|
|
565
570
|
return new s(e);
|
566
571
|
}, s;
|
567
572
|
}();
|
568
|
-
function
|
573
|
+
function Cn(s) {
|
569
574
|
var e;
|
570
|
-
return (e = s ??
|
571
|
-
}
|
572
|
-
function Ui(s) {
|
573
|
-
return s && $(s.next) && $(s.error) && $(s.complete);
|
575
|
+
return (e = s ?? $s.Promise) !== null && e !== void 0 ? e : Promise;
|
574
576
|
}
|
575
577
|
function ji(s) {
|
576
|
-
return s && s
|
578
|
+
return s && $(s.next) && $(s.error) && $(s.complete);
|
577
579
|
}
|
578
580
|
function Di(s) {
|
581
|
+
return s && s instanceof Wt || ji(s) && ys(s);
|
582
|
+
}
|
583
|
+
function Hi(s) {
|
579
584
|
return $(s == null ? void 0 : s.lift);
|
580
585
|
}
|
581
586
|
function K(s) {
|
582
587
|
return function(e) {
|
583
|
-
if (
|
588
|
+
if (Hi(e))
|
584
589
|
return e.lift(function(t) {
|
585
590
|
try {
|
586
591
|
return s(t, this);
|
@@ -591,10 +596,10 @@ function K(s) {
|
|
591
596
|
throw new TypeError("Unable to lift unknown Observable type");
|
592
597
|
};
|
593
598
|
}
|
594
|
-
function
|
595
|
-
return new
|
599
|
+
function I(s, e, t, n, i) {
|
600
|
+
return new Bi(s, e, t, n, i);
|
596
601
|
}
|
597
|
-
var
|
602
|
+
var Bi = function(s) {
|
598
603
|
ye(e, s);
|
599
604
|
function e(t, n, i, r, o, a) {
|
600
605
|
var l = s.call(this, t) || this;
|
@@ -629,7 +634,7 @@ var Hi = function(s) {
|
|
629
634
|
s.prototype.unsubscribe.call(this), !n && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
|
630
635
|
}
|
631
636
|
}, e;
|
632
|
-
}(Wt),
|
637
|
+
}(Wt), Ni = vs(function(s) {
|
633
638
|
return function() {
|
634
639
|
s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
635
640
|
};
|
@@ -640,14 +645,14 @@ var Hi = function(s) {
|
|
640
645
|
return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
|
641
646
|
}
|
642
647
|
return e.prototype.lift = function(t) {
|
643
|
-
var n = new
|
648
|
+
var n = new An(this, this);
|
644
649
|
return n.operator = t, n;
|
645
650
|
}, e.prototype._throwIfClosed = function() {
|
646
651
|
if (this.closed)
|
647
|
-
throw new
|
652
|
+
throw new Ni();
|
648
653
|
}, e.prototype.next = function(t) {
|
649
654
|
var n = this;
|
650
|
-
|
655
|
+
qe(function() {
|
651
656
|
var i, r;
|
652
657
|
if (n._throwIfClosed(), !n.isStopped) {
|
653
658
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
@@ -670,7 +675,7 @@ var Hi = function(s) {
|
|
670
675
|
});
|
671
676
|
}, e.prototype.error = function(t) {
|
672
677
|
var n = this;
|
673
|
-
|
678
|
+
qe(function() {
|
674
679
|
if (n._throwIfClosed(), !n.isStopped) {
|
675
680
|
n.hasError = n.isStopped = !0, n.thrownError = t;
|
676
681
|
for (var i = n.observers; i.length; )
|
@@ -679,7 +684,7 @@ var Hi = function(s) {
|
|
679
684
|
});
|
680
685
|
}, e.prototype.complete = function() {
|
681
686
|
var t = this;
|
682
|
-
|
687
|
+
qe(function() {
|
683
688
|
if (t._throwIfClosed(), !t.isStopped) {
|
684
689
|
t.isStopped = !0;
|
685
690
|
for (var n = t.observers; n.length; )
|
@@ -701,8 +706,8 @@ var Hi = function(s) {
|
|
701
706
|
return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
|
702
707
|
}, e.prototype._innerSubscribe = function(t) {
|
703
708
|
var n = this, i = this, r = i.hasError, o = i.isStopped, a = i.observers;
|
704
|
-
return r || o ?
|
705
|
-
n.currentObservers = null,
|
709
|
+
return r || o ? bs : (this.currentObservers = null, a.push(t), new ot(function() {
|
710
|
+
n.currentObservers = null, Lt(a, t);
|
706
711
|
}));
|
707
712
|
}, e.prototype._checkFinalizedStatuses = function(t) {
|
708
713
|
var n = this, i = n.hasError, r = n.thrownError, o = n.isStopped;
|
@@ -711,9 +716,9 @@ var Hi = function(s) {
|
|
711
716
|
var t = new A();
|
712
717
|
return t.source = this, t;
|
713
718
|
}, e.create = function(t, n) {
|
714
|
-
return new
|
719
|
+
return new An(t, n);
|
715
720
|
}, e;
|
716
|
-
}(A),
|
721
|
+
}(A), An = function(s) {
|
717
722
|
ye(e, s);
|
718
723
|
function e(t, n) {
|
719
724
|
var i = s.call(this) || this;
|
@@ -730,9 +735,9 @@ var Hi = function(s) {
|
|
730
735
|
(n = (t = this.destination) === null || t === void 0 ? void 0 : t.complete) === null || n === void 0 || n.call(t);
|
731
736
|
}, e.prototype._subscribe = function(t) {
|
732
737
|
var n, i;
|
733
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t)) !== null && i !== void 0 ? i :
|
738
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t)) !== null && i !== void 0 ? i : bs;
|
734
739
|
}, e;
|
735
|
-
}(_),
|
740
|
+
}(_), j = function(s) {
|
736
741
|
ye(e, s);
|
737
742
|
function e(t) {
|
738
743
|
var n = s.call(this) || this;
|
@@ -755,50 +760,50 @@ var Hi = function(s) {
|
|
755
760
|
}, e.prototype.next = function(t) {
|
756
761
|
s.prototype.next.call(this, this._value = t);
|
757
762
|
}, e;
|
758
|
-
}(_),
|
763
|
+
}(_), Pe = new A(function(s) {
|
759
764
|
return s.complete();
|
760
765
|
});
|
761
|
-
function
|
766
|
+
function Fi(s) {
|
762
767
|
return s && $(s.schedule);
|
763
768
|
}
|
764
769
|
function Qt(s) {
|
765
770
|
return s[s.length - 1];
|
766
771
|
}
|
767
|
-
function
|
772
|
+
function ws(s) {
|
768
773
|
return $(Qt(s)) ? s.pop() : void 0;
|
769
774
|
}
|
770
775
|
function Gt(s) {
|
771
|
-
return
|
776
|
+
return Fi(Qt(s)) ? s.pop() : void 0;
|
772
777
|
}
|
773
|
-
function
|
778
|
+
function qi(s, e) {
|
774
779
|
return typeof Qt(s) == "number" ? s.pop() : e;
|
775
780
|
}
|
776
781
|
var Kt = function(s) {
|
777
782
|
return s && typeof s.length == "number" && typeof s != "function";
|
778
783
|
};
|
779
|
-
function
|
784
|
+
function ks(s) {
|
780
785
|
return $(s == null ? void 0 : s.then);
|
781
786
|
}
|
782
|
-
function
|
787
|
+
function _s(s) {
|
783
788
|
return $(s[Yt]);
|
784
789
|
}
|
785
|
-
function
|
790
|
+
function Ss(s) {
|
786
791
|
return Symbol.asyncIterator && $(s == null ? void 0 : s[Symbol.asyncIterator]);
|
787
792
|
}
|
788
|
-
function
|
793
|
+
function Cs(s) {
|
789
794
|
return new TypeError("You provided " + (s !== null && typeof s == "object" ? "an invalid object" : "'" + s + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
790
795
|
}
|
791
|
-
function
|
796
|
+
function Zi() {
|
792
797
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
793
798
|
}
|
794
|
-
var
|
795
|
-
function As(s) {
|
796
|
-
return $(s == null ? void 0 : s[Cs]);
|
797
|
-
}
|
799
|
+
var As = Zi();
|
798
800
|
function Es(s) {
|
799
|
-
return
|
801
|
+
return $(s == null ? void 0 : s[As]);
|
802
|
+
}
|
803
|
+
function Ts(s) {
|
804
|
+
return Oi(this, arguments, function() {
|
800
805
|
var t, n, i, r;
|
801
|
-
return
|
806
|
+
return ms(this, function(o) {
|
802
807
|
switch (o.label) {
|
803
808
|
case 0:
|
804
809
|
t = s.getReader(), o.label = 1;
|
@@ -826,29 +831,29 @@ function Es(s) {
|
|
826
831
|
});
|
827
832
|
});
|
828
833
|
}
|
829
|
-
function
|
834
|
+
function Ls(s) {
|
830
835
|
return $(s == null ? void 0 : s.getReader);
|
831
836
|
}
|
832
|
-
function
|
837
|
+
function N(s) {
|
833
838
|
if (s instanceof A)
|
834
839
|
return s;
|
835
840
|
if (s != null) {
|
836
|
-
if (
|
837
|
-
return Zi(s);
|
838
|
-
if (Kt(s))
|
841
|
+
if (_s(s))
|
839
842
|
return Wi(s);
|
840
|
-
if (
|
843
|
+
if (Kt(s))
|
841
844
|
return Yi(s);
|
842
|
-
if (
|
843
|
-
return Ls(s);
|
844
|
-
if (As(s))
|
845
|
+
if (ks(s))
|
845
846
|
return Qi(s);
|
846
|
-
if (
|
847
|
+
if (Ss(s))
|
848
|
+
return Os(s);
|
849
|
+
if (Es(s))
|
847
850
|
return Gi(s);
|
851
|
+
if (Ls(s))
|
852
|
+
return Ki(s);
|
848
853
|
}
|
849
|
-
throw
|
854
|
+
throw Cs(s);
|
850
855
|
}
|
851
|
-
function
|
856
|
+
function Wi(s) {
|
852
857
|
return new A(function(e) {
|
853
858
|
var t = s[Yt]();
|
854
859
|
if ($(t.subscribe))
|
@@ -856,23 +861,23 @@ function Zi(s) {
|
|
856
861
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
857
862
|
});
|
858
863
|
}
|
859
|
-
function
|
864
|
+
function Yi(s) {
|
860
865
|
return new A(function(e) {
|
861
866
|
for (var t = 0; t < s.length && !e.closed; t++)
|
862
867
|
e.next(s[t]);
|
863
868
|
e.complete();
|
864
869
|
});
|
865
870
|
}
|
866
|
-
function
|
871
|
+
function Qi(s) {
|
867
872
|
return new A(function(e) {
|
868
873
|
s.then(function(t) {
|
869
874
|
e.closed || (e.next(t), e.complete());
|
870
875
|
}, function(t) {
|
871
876
|
return e.error(t);
|
872
|
-
}).then(null,
|
877
|
+
}).then(null, xs);
|
873
878
|
});
|
874
879
|
}
|
875
|
-
function
|
880
|
+
function Gi(s) {
|
876
881
|
return new A(function(e) {
|
877
882
|
var t, n;
|
878
883
|
try {
|
@@ -894,24 +899,24 @@ function Qi(s) {
|
|
894
899
|
e.complete();
|
895
900
|
});
|
896
901
|
}
|
897
|
-
function
|
902
|
+
function Os(s) {
|
898
903
|
return new A(function(e) {
|
899
|
-
|
904
|
+
Xi(s, e).catch(function(t) {
|
900
905
|
return e.error(t);
|
901
906
|
});
|
902
907
|
});
|
903
908
|
}
|
904
|
-
function
|
905
|
-
return
|
909
|
+
function Ki(s) {
|
910
|
+
return Os(Ts(s));
|
906
911
|
}
|
907
|
-
function
|
912
|
+
function Xi(s, e) {
|
908
913
|
var t, n, i, r;
|
909
|
-
return
|
914
|
+
return Li(this, void 0, void 0, function() {
|
910
915
|
var o, a;
|
911
|
-
return
|
916
|
+
return ms(this, function(l) {
|
912
917
|
switch (l.label) {
|
913
918
|
case 0:
|
914
|
-
l.trys.push([0, 5, 6, 11]), t =
|
919
|
+
l.trys.push([0, 5, 6, 11]), t = Pi(s), l.label = 1;
|
915
920
|
case 1:
|
916
921
|
return [4, t.next()];
|
917
922
|
case 2:
|
@@ -952,9 +957,9 @@ function q(s, e, t, n, i) {
|
|
952
957
|
if (s.add(r), !i)
|
953
958
|
return r;
|
954
959
|
}
|
955
|
-
function
|
960
|
+
function Ps(s, e) {
|
956
961
|
return e === void 0 && (e = 0), K(function(t, n) {
|
957
|
-
t.subscribe(
|
962
|
+
t.subscribe(I(n, function(i) {
|
958
963
|
return q(n, s, function() {
|
959
964
|
return n.next(i);
|
960
965
|
}, e);
|
@@ -969,20 +974,20 @@ function Os(s, e) {
|
|
969
974
|
}));
|
970
975
|
});
|
971
976
|
}
|
972
|
-
function
|
977
|
+
function Rs(s, e) {
|
973
978
|
return e === void 0 && (e = 0), K(function(t, n) {
|
974
979
|
n.add(s.schedule(function() {
|
975
980
|
return t.subscribe(n);
|
976
981
|
}, e));
|
977
982
|
});
|
978
983
|
}
|
979
|
-
function Xi(s, e) {
|
980
|
-
return B(s).pipe(Ps(e), Os(e));
|
981
|
-
}
|
982
984
|
function Vi(s, e) {
|
983
|
-
return
|
985
|
+
return N(s).pipe(Rs(e), Ps(e));
|
984
986
|
}
|
985
987
|
function Ji(s, e) {
|
988
|
+
return N(s).pipe(Rs(e), Ps(e));
|
989
|
+
}
|
990
|
+
function er(s, e) {
|
986
991
|
return new A(function(t) {
|
987
992
|
var n = 0;
|
988
993
|
return e.schedule(function() {
|
@@ -990,11 +995,11 @@ function Ji(s, e) {
|
|
990
995
|
});
|
991
996
|
});
|
992
997
|
}
|
993
|
-
function
|
998
|
+
function tr(s, e) {
|
994
999
|
return new A(function(t) {
|
995
1000
|
var n;
|
996
1001
|
return q(t, e, function() {
|
997
|
-
n = s[
|
1002
|
+
n = s[As](), q(t, e, function() {
|
998
1003
|
var i, r, o;
|
999
1004
|
try {
|
1000
1005
|
i = n.next(), r = i.value, o = i.done;
|
@@ -1009,7 +1014,7 @@ function er(s, e) {
|
|
1009
1014
|
};
|
1010
1015
|
});
|
1011
1016
|
}
|
1012
|
-
function
|
1017
|
+
function Is(s, e) {
|
1013
1018
|
if (!s)
|
1014
1019
|
throw new Error("Iterable cannot be null");
|
1015
1020
|
return new A(function(t) {
|
@@ -1023,60 +1028,60 @@ function Rs(s, e) {
|
|
1023
1028
|
});
|
1024
1029
|
});
|
1025
1030
|
}
|
1026
|
-
function tr(s, e) {
|
1027
|
-
return Rs(Es(s), e);
|
1028
|
-
}
|
1029
1031
|
function nr(s, e) {
|
1032
|
+
return Is(Ts(s), e);
|
1033
|
+
}
|
1034
|
+
function sr(s, e) {
|
1030
1035
|
if (s != null) {
|
1031
|
-
if (ks(s))
|
1032
|
-
return Xi(s, e);
|
1033
|
-
if (Kt(s))
|
1034
|
-
return Ji(s, e);
|
1035
|
-
if (ws(s))
|
1036
|
-
return Vi(s, e);
|
1037
1036
|
if (_s(s))
|
1038
|
-
return
|
1039
|
-
if (
|
1037
|
+
return Vi(s, e);
|
1038
|
+
if (Kt(s))
|
1040
1039
|
return er(s, e);
|
1041
|
-
if (
|
1040
|
+
if (ks(s))
|
1041
|
+
return Ji(s, e);
|
1042
|
+
if (Ss(s))
|
1043
|
+
return Is(s, e);
|
1044
|
+
if (Es(s))
|
1042
1045
|
return tr(s, e);
|
1046
|
+
if (Ls(s))
|
1047
|
+
return nr(s, e);
|
1043
1048
|
}
|
1044
|
-
throw
|
1049
|
+
throw Cs(s);
|
1045
1050
|
}
|
1046
|
-
function
|
1047
|
-
return e ?
|
1051
|
+
function at(s, e) {
|
1052
|
+
return e ? sr(s, e) : N(s);
|
1048
1053
|
}
|
1049
|
-
function
|
1054
|
+
function Rt() {
|
1050
1055
|
for (var s = [], e = 0; e < arguments.length; e++)
|
1051
1056
|
s[e] = arguments[e];
|
1052
1057
|
var t = Gt(s);
|
1053
|
-
return
|
1058
|
+
return at(s, t);
|
1054
1059
|
}
|
1055
|
-
function
|
1060
|
+
function Ye(s, e) {
|
1056
1061
|
return K(function(t, n) {
|
1057
1062
|
var i = 0;
|
1058
|
-
t.subscribe(
|
1063
|
+
t.subscribe(I(n, function(r) {
|
1059
1064
|
n.next(s.call(e, r, i++));
|
1060
1065
|
}));
|
1061
1066
|
});
|
1062
1067
|
}
|
1063
|
-
var
|
1064
|
-
function
|
1065
|
-
return
|
1068
|
+
var ir = Array.isArray;
|
1069
|
+
function rr(s, e) {
|
1070
|
+
return ir(e) ? s.apply(void 0, se([], Q(e))) : s(e);
|
1066
1071
|
}
|
1067
|
-
function
|
1068
|
-
return
|
1069
|
-
return
|
1072
|
+
function Ms(s) {
|
1073
|
+
return Ye(function(e) {
|
1074
|
+
return rr(s, e);
|
1070
1075
|
});
|
1071
1076
|
}
|
1072
|
-
var
|
1073
|
-
function
|
1077
|
+
var or = Array.isArray, ar = Object.getPrototypeOf, lr = Object.prototype, cr = Object.keys;
|
1078
|
+
function hr(s) {
|
1074
1079
|
if (s.length === 1) {
|
1075
1080
|
var e = s[0];
|
1076
|
-
if (
|
1081
|
+
if (or(e))
|
1077
1082
|
return { args: e, keys: null };
|
1078
|
-
if (
|
1079
|
-
var t =
|
1083
|
+
if (ur(e)) {
|
1084
|
+
var t = cr(e);
|
1080
1085
|
return {
|
1081
1086
|
args: t.map(function(n) {
|
1082
1087
|
return e[n];
|
@@ -1087,32 +1092,32 @@ function cr(s) {
|
|
1087
1092
|
}
|
1088
1093
|
return { args: s, keys: null };
|
1089
1094
|
}
|
1090
|
-
function
|
1091
|
-
return s && typeof s == "object" &&
|
1095
|
+
function ur(s) {
|
1096
|
+
return s && typeof s == "object" && ar(s) === lr;
|
1092
1097
|
}
|
1093
|
-
function
|
1098
|
+
function pr(s, e) {
|
1094
1099
|
return s.reduce(function(t, n, i) {
|
1095
1100
|
return t[n] = e[i], t;
|
1096
1101
|
}, {});
|
1097
1102
|
}
|
1098
|
-
function
|
1103
|
+
function dr() {
|
1099
1104
|
for (var s = [], e = 0; e < arguments.length; e++)
|
1100
1105
|
s[e] = arguments[e];
|
1101
|
-
var t = Gt(s), n =
|
1106
|
+
var t = Gt(s), n = ws(s), i = hr(s), r = i.args, o = i.keys;
|
1102
1107
|
if (r.length === 0)
|
1103
|
-
return
|
1104
|
-
var a = new A(
|
1105
|
-
return
|
1106
|
-
} :
|
1107
|
-
return n ? a.pipe(
|
1108
|
-
}
|
1109
|
-
function
|
1110
|
-
return t === void 0 && (t =
|
1111
|
-
|
1108
|
+
return at([], t);
|
1109
|
+
var a = new A(fr(r, t, o ? function(l) {
|
1110
|
+
return pr(o, l);
|
1111
|
+
} : Oe));
|
1112
|
+
return n ? a.pipe(Ms(n)) : a;
|
1113
|
+
}
|
1114
|
+
function fr(s, e, t) {
|
1115
|
+
return t === void 0 && (t = Oe), function(n) {
|
1116
|
+
En(e, function() {
|
1112
1117
|
for (var i = s.length, r = new Array(i), o = i, a = i, l = function(h) {
|
1113
|
-
|
1114
|
-
var u =
|
1115
|
-
u.subscribe(
|
1118
|
+
En(e, function() {
|
1119
|
+
var u = at(s[h], e), p = !1;
|
1120
|
+
u.subscribe(I(n, function(d) {
|
1116
1121
|
r[h] = d, p || (p = !0, a--), a || n.next(t(r.slice()));
|
1117
1122
|
}, function() {
|
1118
1123
|
--o || n.complete();
|
@@ -1123,39 +1128,39 @@ function dr(s, e, t) {
|
|
1123
1128
|
}, n);
|
1124
1129
|
};
|
1125
1130
|
}
|
1126
|
-
function
|
1131
|
+
function En(s, e, t) {
|
1127
1132
|
s ? q(t, s, e) : e();
|
1128
1133
|
}
|
1129
|
-
function
|
1134
|
+
function gr(s, e, t, n, i, r, o, a) {
|
1130
1135
|
var l = [], c = 0, h = 0, u = !1, p = function() {
|
1131
1136
|
u && !l.length && !c && e.complete();
|
1132
1137
|
}, d = function(f) {
|
1133
|
-
return c < n ?
|
1134
|
-
},
|
1138
|
+
return c < n ? m(f) : l.push(f);
|
1139
|
+
}, m = function(f) {
|
1135
1140
|
r && e.next(f), c++;
|
1136
|
-
var
|
1137
|
-
|
1138
|
-
i == null || i(
|
1141
|
+
var O = !1;
|
1142
|
+
N(t(f, h++)).subscribe(I(e, function(P) {
|
1143
|
+
i == null || i(P), r ? d(P) : e.next(P);
|
1139
1144
|
}, function() {
|
1140
|
-
|
1145
|
+
O = !0;
|
1141
1146
|
}, void 0, function() {
|
1142
|
-
if (
|
1147
|
+
if (O)
|
1143
1148
|
try {
|
1144
1149
|
c--;
|
1145
|
-
for (var
|
1150
|
+
for (var P = function() {
|
1146
1151
|
var J = l.shift();
|
1147
1152
|
o ? q(e, o, function() {
|
1148
|
-
return
|
1149
|
-
}) :
|
1153
|
+
return m(J);
|
1154
|
+
}) : m(J);
|
1150
1155
|
}; l.length && c < n; )
|
1151
|
-
|
1156
|
+
P();
|
1152
1157
|
p();
|
1153
1158
|
} catch (J) {
|
1154
1159
|
e.error(J);
|
1155
1160
|
}
|
1156
1161
|
}));
|
1157
1162
|
};
|
1158
|
-
return s.subscribe(
|
1163
|
+
return s.subscribe(I(e, d, function() {
|
1159
1164
|
u = !0, p();
|
1160
1165
|
})), function() {
|
1161
1166
|
a == null || a();
|
@@ -1163,29 +1168,29 @@ function fr(s, e, t, n, i, r, o, a) {
|
|
1163
1168
|
}
|
1164
1169
|
function Xt(s, e, t) {
|
1165
1170
|
return t === void 0 && (t = 1 / 0), $(e) ? Xt(function(n, i) {
|
1166
|
-
return
|
1171
|
+
return Ye(function(r, o) {
|
1167
1172
|
return e(n, r, i, o);
|
1168
|
-
})(
|
1173
|
+
})(N(s(n, i)));
|
1169
1174
|
}, t) : (typeof e == "number" && (t = e), K(function(n, i) {
|
1170
|
-
return
|
1175
|
+
return gr(n, i, s, t);
|
1171
1176
|
}));
|
1172
1177
|
}
|
1173
|
-
function
|
1174
|
-
return s === void 0 && (s = 1 / 0), Xt(
|
1178
|
+
function mr(s) {
|
1179
|
+
return s === void 0 && (s = 1 / 0), Xt(Oe, s);
|
1175
1180
|
}
|
1176
|
-
var
|
1177
|
-
function
|
1181
|
+
var vr = ["addListener", "removeListener"], br = ["addEventListener", "removeEventListener"], yr = ["on", "off"];
|
1182
|
+
function Qe(s, e, t, n) {
|
1178
1183
|
if ($(t) && (n = t, t = void 0), n)
|
1179
|
-
return
|
1180
|
-
var i = Q(
|
1184
|
+
return Qe(s, e, t).pipe(Ms(n));
|
1185
|
+
var i = Q(wr(s) ? br.map(function(a) {
|
1181
1186
|
return function(l) {
|
1182
1187
|
return s[a](e, l, t);
|
1183
1188
|
};
|
1184
|
-
}) :
|
1189
|
+
}) : $r(s) ? vr.map(Tn(s, e)) : xr(s) ? yr.map(Tn(s, e)) : [], 2), r = i[0], o = i[1];
|
1185
1190
|
if (!r && Kt(s))
|
1186
1191
|
return Xt(function(a) {
|
1187
|
-
return
|
1188
|
-
})(
|
1192
|
+
return Qe(a, e, t);
|
1193
|
+
})(N(s));
|
1189
1194
|
if (!r)
|
1190
1195
|
throw new TypeError("Invalid event target");
|
1191
1196
|
return new A(function(a) {
|
@@ -1199,34 +1204,34 @@ function Ge(s, e, t, n) {
|
|
1199
1204
|
};
|
1200
1205
|
});
|
1201
1206
|
}
|
1202
|
-
function
|
1207
|
+
function Tn(s, e) {
|
1203
1208
|
return function(t) {
|
1204
1209
|
return function(n) {
|
1205
1210
|
return s[t](e, n);
|
1206
1211
|
};
|
1207
1212
|
};
|
1208
1213
|
}
|
1209
|
-
function
|
1214
|
+
function $r(s) {
|
1210
1215
|
return $(s.addListener) && $(s.removeListener);
|
1211
1216
|
}
|
1212
|
-
function
|
1217
|
+
function xr(s) {
|
1213
1218
|
return $(s.on) && $(s.off);
|
1214
1219
|
}
|
1215
|
-
function
|
1220
|
+
function wr(s) {
|
1216
1221
|
return $(s.addEventListener) && $(s.removeEventListener);
|
1217
1222
|
}
|
1218
|
-
function
|
1223
|
+
function kr() {
|
1219
1224
|
for (var s = [], e = 0; e < arguments.length; e++)
|
1220
1225
|
s[e] = arguments[e];
|
1221
|
-
var t = Gt(s), n =
|
1222
|
-
return i.length ? i.length === 1 ?
|
1226
|
+
var t = Gt(s), n = qi(s, 1 / 0), i = s;
|
1227
|
+
return i.length ? i.length === 1 ? N(i[0]) : mr(n)(at(i, t)) : Pe;
|
1223
1228
|
}
|
1224
|
-
function
|
1229
|
+
function It(s) {
|
1225
1230
|
return s <= 0 ? function() {
|
1226
|
-
return
|
1231
|
+
return Pe;
|
1227
1232
|
} : K(function(e, t) {
|
1228
1233
|
var n = 0;
|
1229
|
-
e.subscribe(
|
1234
|
+
e.subscribe(I(t, function(i) {
|
1230
1235
|
++n <= s && (t.next(i), s <= n && t.complete());
|
1231
1236
|
}));
|
1232
1237
|
});
|
@@ -1236,10 +1241,10 @@ function de(s, e) {
|
|
1236
1241
|
var i = null, r = 0, o = !1, a = function() {
|
1237
1242
|
return o && !i && n.complete();
|
1238
1243
|
};
|
1239
|
-
t.subscribe(
|
1244
|
+
t.subscribe(I(n, function(l) {
|
1240
1245
|
i == null || i.unsubscribe();
|
1241
1246
|
var c = 0, h = r++;
|
1242
|
-
|
1247
|
+
N(s(l, h)).subscribe(i = I(n, function(u) {
|
1243
1248
|
return n.next(e ? e(l, u, h, c++) : u);
|
1244
1249
|
}, function() {
|
1245
1250
|
i = null, a();
|
@@ -1249,27 +1254,27 @@ function de(s, e) {
|
|
1249
1254
|
}));
|
1250
1255
|
});
|
1251
1256
|
}
|
1252
|
-
function
|
1257
|
+
function Mt(s) {
|
1253
1258
|
return K(function(e, t) {
|
1254
|
-
|
1259
|
+
N(s).subscribe(I(t, function() {
|
1255
1260
|
return t.complete();
|
1256
|
-
},
|
1261
|
+
}, We)), !t.closed && e.subscribe(t);
|
1257
1262
|
});
|
1258
1263
|
}
|
1259
|
-
function
|
1264
|
+
function zt() {
|
1260
1265
|
for (var s = [], e = 0; e < arguments.length; e++)
|
1261
1266
|
s[e] = arguments[e];
|
1262
|
-
var t =
|
1267
|
+
var t = ws(s);
|
1263
1268
|
return K(function(n, i) {
|
1264
1269
|
for (var r = s.length, o = new Array(r), a = s.map(function() {
|
1265
1270
|
return !1;
|
1266
1271
|
}), l = !1, c = function(u) {
|
1267
|
-
|
1268
|
-
o[u] = p, !l && !a[u] && (a[u] = !0, (l = a.every(
|
1269
|
-
},
|
1272
|
+
N(s[u]).subscribe(I(i, function(p) {
|
1273
|
+
o[u] = p, !l && !a[u] && (a[u] = !0, (l = a.every(Oe)) && (a = null));
|
1274
|
+
}, We));
|
1270
1275
|
}, h = 0; h < r; h++)
|
1271
1276
|
c(h);
|
1272
|
-
n.subscribe(
|
1277
|
+
n.subscribe(I(i, function(u) {
|
1273
1278
|
if (l) {
|
1274
1279
|
var p = se([u], Q(o));
|
1275
1280
|
i.next(t ? t.apply(void 0, se([], Q(p))) : p);
|
@@ -1278,11 +1283,11 @@ function Ut() {
|
|
1278
1283
|
});
|
1279
1284
|
}
|
1280
1285
|
var W = /* @__PURE__ */ ((s) => (s.User = "user", s.Agent = "agent", s.System = "system", s))(W || {});
|
1281
|
-
const
|
1286
|
+
const _r = () => "10000000-1000-4000-8000-100000000000".replace(
|
1282
1287
|
/[018]/g,
|
1283
1288
|
(s) => (+s ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +s / 4).toString(16)
|
1284
|
-
),
|
1285
|
-
function
|
1289
|
+
), zs = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() : _r();
|
1290
|
+
function Dl(s) {
|
1286
1291
|
let e = s;
|
1287
1292
|
const t = /https?:\/\/[^\s<]+/gi, n = /<a [^>]*href="([^"]*)"[^>]*>[^<]*<\/a>/g, i = s.match(t) || [], r = [];
|
1288
1293
|
let o;
|
@@ -1302,12 +1307,12 @@ function jl(s) {
|
|
1302
1307
|
);
|
1303
1308
|
}), e;
|
1304
1309
|
}
|
1305
|
-
function
|
1310
|
+
function Sr(s) {
|
1306
1311
|
if (s.includes("aceChatGuideTitle"))
|
1307
|
-
return
|
1312
|
+
return Cr(s);
|
1308
1313
|
const e = /<a [^>]*>https?:\/\/[^<]*<\/a>/gim;
|
1309
1314
|
return s.replace(e, (t) => {
|
1310
|
-
const n =
|
1315
|
+
const n = Us(t);
|
1311
1316
|
if (!n)
|
1312
1317
|
return t;
|
1313
1318
|
const i = 50;
|
@@ -1322,12 +1327,12 @@ function _r(s) {
|
|
1322
1327
|
u - h.length - 4
|
1323
1328
|
) + ".../" + h : p = c.substring(0, u - 3) + "...";
|
1324
1329
|
const d = `${a}${p}`;
|
1325
|
-
return
|
1330
|
+
return Ut(t, d);
|
1326
1331
|
}
|
1327
|
-
return
|
1332
|
+
return Ut(t, n);
|
1328
1333
|
});
|
1329
1334
|
}
|
1330
|
-
function
|
1335
|
+
function Us(s) {
|
1331
1336
|
const e = s.match(/href=["']([^'"]*)["']/);
|
1332
1337
|
if (e && e.length > 1) {
|
1333
1338
|
let t = e[1];
|
@@ -1335,22 +1340,22 @@ function zs(s) {
|
|
1335
1340
|
}
|
1336
1341
|
return null;
|
1337
1342
|
}
|
1338
|
-
function
|
1343
|
+
function Ut(s, e) {
|
1339
1344
|
return s.replace(/>[^<]*<\/a>/, `>${e}</a>`);
|
1340
1345
|
}
|
1341
|
-
function
|
1346
|
+
function Cr(s) {
|
1342
1347
|
const e = /<a [^>]*aceChatGuideTitle[^>]*>[^<]*<\/a>/gm;
|
1343
1348
|
return s.replace(e, (t) => {
|
1344
|
-
const n =
|
1349
|
+
const n = Us(t);
|
1345
1350
|
if (!n)
|
1346
1351
|
return t;
|
1347
1352
|
const i = n.split("?").pop(), o = new URLSearchParams(i).get("aceChatGuideTitle");
|
1348
|
-
return o ?
|
1353
|
+
return o ? Ut(t, o) : t;
|
1349
1354
|
});
|
1350
1355
|
}
|
1351
|
-
class
|
1356
|
+
class lt {
|
1352
1357
|
constructor(e, t, n) {
|
1353
|
-
this.type = e, this.sender = t, this.messages = n, this.status = "delivered", this.didUpdate = new _(), this.actions$ = new _(), this.remove$ = new _(), this.timestamp = Date.now(), this.id =
|
1358
|
+
this.type = e, this.sender = t, this.messages = n, this.status = "delivered", this.didUpdate = new _(), this.actions$ = new _(), this.remove$ = new _(), this.timestamp = Date.now(), this.id = zs();
|
1354
1359
|
}
|
1355
1360
|
update(e) {
|
1356
1361
|
this.messages = [
|
@@ -1366,12 +1371,12 @@ class ct {
|
|
1366
1371
|
this.remove$.next();
|
1367
1372
|
}
|
1368
1373
|
}
|
1369
|
-
class
|
1374
|
+
class Ar {
|
1370
1375
|
constructor(e) {
|
1371
1376
|
this.name = e, this.print$ = new _();
|
1372
1377
|
}
|
1373
1378
|
print(e, t = "html", n = this.name) {
|
1374
|
-
const i = new
|
1379
|
+
const i = new lt(
|
1375
1380
|
W.Agent,
|
1376
1381
|
{ name: n },
|
1377
1382
|
[
|
@@ -1386,12 +1391,12 @@ class Cr {
|
|
1386
1391
|
return this.print$.asObservable();
|
1387
1392
|
}
|
1388
1393
|
}
|
1389
|
-
class
|
1394
|
+
class Er {
|
1390
1395
|
constructor(e) {
|
1391
1396
|
this.name = e, this.print$ = new _();
|
1392
1397
|
}
|
1393
1398
|
print(e) {
|
1394
|
-
const t = new
|
1399
|
+
const t = new lt(
|
1395
1400
|
W.User,
|
1396
1401
|
{ name: this.name },
|
1397
1402
|
[
|
@@ -1406,12 +1411,12 @@ class Ar {
|
|
1406
1411
|
return this.print$.asObservable();
|
1407
1412
|
}
|
1408
1413
|
}
|
1409
|
-
class
|
1414
|
+
class Tr {
|
1410
1415
|
constructor() {
|
1411
1416
|
this.print$ = new _(), this.name = "system";
|
1412
1417
|
}
|
1413
1418
|
print(e) {
|
1414
|
-
const t = new
|
1419
|
+
const t = new lt(
|
1415
1420
|
W.System,
|
1416
1421
|
{ name: this.name },
|
1417
1422
|
[
|
@@ -1426,12 +1431,12 @@ class Er {
|
|
1426
1431
|
return this.print$.asObservable();
|
1427
1432
|
}
|
1428
1433
|
}
|
1429
|
-
class
|
1434
|
+
class Hl {
|
1430
1435
|
constructor(e, t) {
|
1431
|
-
this.name = e, this.component = t, this.print$ = new _(), this.typingState$ = new
|
1436
|
+
this.name = e, this.component = t, this.print$ = new _(), this.typingState$ = new j(!1), this.complete$ = new _(), this.system = this.createSystem(), this.rehydrate$ = new _(), this.saveToCurrentSession$ = new _(), this.showChatOverlay$ = new j(!1), this.onComplete = () => this.complete$.asObservable();
|
1432
1437
|
}
|
1433
1438
|
connect(e = {}) {
|
1434
|
-
this.complete$.pipe(
|
1439
|
+
this.complete$.pipe(It(1)).subscribe(() => {
|
1435
1440
|
this.disconnected();
|
1436
1441
|
});
|
1437
1442
|
}
|
@@ -1443,7 +1448,7 @@ class Dl {
|
|
1443
1448
|
this.print(W.User, e.text);
|
1444
1449
|
}
|
1445
1450
|
print(e, t) {
|
1446
|
-
const n = new
|
1451
|
+
const n = new lt(
|
1447
1452
|
e,
|
1448
1453
|
{
|
1449
1454
|
name: ""
|
@@ -1460,19 +1465,19 @@ class Dl {
|
|
1460
1465
|
return this.print$.next(e), e;
|
1461
1466
|
}
|
1462
1467
|
createAgent(e) {
|
1463
|
-
const t = new
|
1468
|
+
const t = new Ar(e);
|
1464
1469
|
return t.subscribe().subscribe((n) => {
|
1465
1470
|
this.playNotification(), this.printEntry(n);
|
1466
1471
|
}), t;
|
1467
1472
|
}
|
1468
1473
|
createUser(e) {
|
1469
|
-
const t = new
|
1474
|
+
const t = new Er(e);
|
1470
1475
|
return t.subscribe().subscribe((n) => {
|
1471
1476
|
this.printEntry(n);
|
1472
1477
|
}), t;
|
1473
1478
|
}
|
1474
1479
|
createSystem() {
|
1475
|
-
const e = new
|
1480
|
+
const e = new Tr();
|
1476
1481
|
return e.subscribe().subscribe((t) => {
|
1477
1482
|
this.printEntry(t);
|
1478
1483
|
}), e;
|
@@ -1508,8 +1513,8 @@ class Dl {
|
|
1508
1513
|
* Copyright 2019 Google LLC
|
1509
1514
|
* SPDX-License-Identifier: BSD-3-Clause
|
1510
1515
|
*/
|
1511
|
-
const
|
1512
|
-
let
|
1516
|
+
const Ze = globalThis, Vt = Ze.ShadowRoot && (Ze.ShadyCSS === void 0 || Ze.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Jt = Symbol(), Ln = /* @__PURE__ */ new WeakMap();
|
1517
|
+
let js = class {
|
1513
1518
|
constructor(e, t, n) {
|
1514
1519
|
if (this._$cssResult$ = !0, n !== Jt)
|
1515
1520
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
@@ -1520,7 +1525,7 @@ let Us = class {
|
|
1520
1525
|
const t = this.t;
|
1521
1526
|
if (Vt && e === void 0) {
|
1522
1527
|
const n = t !== void 0 && t.length === 1;
|
1523
|
-
n && (e =
|
1528
|
+
n && (e = Ln.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && Ln.set(t, e));
|
1524
1529
|
}
|
1525
1530
|
return e;
|
1526
1531
|
}
|
@@ -1528,7 +1533,7 @@ let Us = class {
|
|
1528
1533
|
return this.cssText;
|
1529
1534
|
}
|
1530
1535
|
};
|
1531
|
-
const
|
1536
|
+
const Lr = (s) => new js(typeof s == "string" ? s : s + "", void 0, Jt), E = (s, ...e) => {
|
1532
1537
|
const t = s.length === 1 ? s[0] : e.reduce((n, i, r) => n + ((o) => {
|
1533
1538
|
if (o._$cssResult$ === !0)
|
1534
1539
|
return o.cssText;
|
@@ -1536,30 +1541,30 @@ const Tr = (s) => new Us(typeof s == "string" ? s : s + "", void 0, Jt), E = (s,
|
|
1536
1541
|
return o;
|
1537
1542
|
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.");
|
1538
1543
|
})(i) + s[r + 1], s[0]);
|
1539
|
-
return new
|
1540
|
-
},
|
1544
|
+
return new js(t, s, Jt);
|
1545
|
+
}, Or = (s, e) => {
|
1541
1546
|
if (Vt)
|
1542
1547
|
s.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
1543
1548
|
else
|
1544
1549
|
for (const t of e) {
|
1545
|
-
const n = document.createElement("style"), i =
|
1550
|
+
const n = document.createElement("style"), i = Ze.litNonce;
|
1546
1551
|
i !== void 0 && n.setAttribute("nonce", i), n.textContent = t.cssText, s.appendChild(n);
|
1547
1552
|
}
|
1548
|
-
},
|
1553
|
+
}, On = Vt ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((e) => {
|
1549
1554
|
let t = "";
|
1550
1555
|
for (const n of e.cssRules)
|
1551
1556
|
t += n.cssText;
|
1552
|
-
return
|
1557
|
+
return Lr(t);
|
1553
1558
|
})(s) : s;
|
1554
1559
|
/**
|
1555
1560
|
* @license
|
1556
1561
|
* Copyright 2017 Google LLC
|
1557
1562
|
* SPDX-License-Identifier: BSD-3-Clause
|
1558
1563
|
*/
|
1559
|
-
const { is:
|
1564
|
+
const { is: Pr, defineProperty: Rr, getOwnPropertyDescriptor: Ir, getOwnPropertyNames: Mr, getOwnPropertySymbols: zr, getPrototypeOf: Ur } = Object, Y = globalThis, Pn = Y.trustedTypes, jr = Pn ? Pn.emptyScript : "", wt = Y.reactiveElementPolyfillSupport, we = (s, e) => s, Ge = { toAttribute(s, e) {
|
1560
1565
|
switch (e) {
|
1561
1566
|
case Boolean:
|
1562
|
-
s = s ?
|
1567
|
+
s = s ? jr : null;
|
1563
1568
|
break;
|
1564
1569
|
case Object:
|
1565
1570
|
case Array:
|
@@ -1584,7 +1589,7 @@ const { is: Or, defineProperty: Pr, getOwnPropertyDescriptor: Rr, getOwnProperty
|
|
1584
1589
|
}
|
1585
1590
|
}
|
1586
1591
|
return t;
|
1587
|
-
} }, en = (s, e) => !
|
1592
|
+
} }, en = (s, e) => !Pr(s, e), Rn = { attribute: !0, type: String, converter: Ge, reflect: !1, hasChanged: en };
|
1588
1593
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Y.litPropertyMetadata ?? (Y.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
1589
1594
|
let le = class extends HTMLElement {
|
1590
1595
|
static addInitializer(e) {
|
@@ -1593,14 +1598,14 @@ let le = class extends HTMLElement {
|
|
1593
1598
|
static get observedAttributes() {
|
1594
1599
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
1595
1600
|
}
|
1596
|
-
static createProperty(e, t =
|
1601
|
+
static createProperty(e, t = Rn) {
|
1597
1602
|
if (t.state && (t.attribute = !1), this._$Ei(), this.elementProperties.set(e, t), !t.noAccessor) {
|
1598
1603
|
const n = Symbol(), i = this.getPropertyDescriptor(e, n, t);
|
1599
|
-
i !== void 0 &&
|
1604
|
+
i !== void 0 && Rr(this.prototype, e, i);
|
1600
1605
|
}
|
1601
1606
|
}
|
1602
1607
|
static getPropertyDescriptor(e, t, n) {
|
1603
|
-
const { get: i, set: r } =
|
1608
|
+
const { get: i, set: r } = Ir(this.prototype, e) ?? { get() {
|
1604
1609
|
return this[t];
|
1605
1610
|
}, set(o) {
|
1606
1611
|
this[t] = o;
|
@@ -1613,19 +1618,19 @@ let le = class extends HTMLElement {
|
|
1613
1618
|
}, configurable: !0, enumerable: !0 };
|
1614
1619
|
}
|
1615
1620
|
static getPropertyOptions(e) {
|
1616
|
-
return this.elementProperties.get(e) ??
|
1621
|
+
return this.elementProperties.get(e) ?? Rn;
|
1617
1622
|
}
|
1618
1623
|
static _$Ei() {
|
1619
1624
|
if (this.hasOwnProperty(we("elementProperties")))
|
1620
1625
|
return;
|
1621
|
-
const e =
|
1626
|
+
const e = Ur(this);
|
1622
1627
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
1623
1628
|
}
|
1624
1629
|
static finalize() {
|
1625
1630
|
if (this.hasOwnProperty(we("finalized")))
|
1626
1631
|
return;
|
1627
1632
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(we("properties"))) {
|
1628
|
-
const t = this.properties, n = [...
|
1633
|
+
const t = this.properties, n = [...Mr(t), ...zr(t)];
|
1629
1634
|
for (const i of n)
|
1630
1635
|
this.createProperty(i, t[i]);
|
1631
1636
|
}
|
@@ -1648,9 +1653,9 @@ let le = class extends HTMLElement {
|
|
1648
1653
|
if (Array.isArray(e)) {
|
1649
1654
|
const n = new Set(e.flat(1 / 0).reverse());
|
1650
1655
|
for (const i of n)
|
1651
|
-
t.unshift(
|
1656
|
+
t.unshift(On(i));
|
1652
1657
|
} else
|
1653
|
-
e !== void 0 && t.push(
|
1658
|
+
e !== void 0 && t.push(On(e));
|
1654
1659
|
return t;
|
1655
1660
|
}
|
1656
1661
|
static _$Eu(e, t) {
|
@@ -1680,7 +1685,7 @@ let le = class extends HTMLElement {
|
|
1680
1685
|
}
|
1681
1686
|
createRenderRoot() {
|
1682
1687
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
1683
|
-
return
|
1688
|
+
return Or(e, this.constructor.elementStyles), e;
|
1684
1689
|
}
|
1685
1690
|
connectedCallback() {
|
1686
1691
|
var e;
|
@@ -1705,7 +1710,7 @@ let le = class extends HTMLElement {
|
|
1705
1710
|
var r;
|
1706
1711
|
const n = this.constructor.elementProperties.get(e), i = this.constructor._$Eu(e, n);
|
1707
1712
|
if (i !== void 0 && n.reflect === !0) {
|
1708
|
-
const o = (((r = n.converter) == null ? void 0 : r.toAttribute) !== void 0 ? n.converter :
|
1713
|
+
const o = (((r = n.converter) == null ? void 0 : r.toAttribute) !== void 0 ? n.converter : Ge).toAttribute(t, n.type);
|
1709
1714
|
this._$Em = e, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
|
1710
1715
|
}
|
1711
1716
|
}
|
@@ -1713,7 +1718,7 @@ let le = class extends HTMLElement {
|
|
1713
1718
|
var r;
|
1714
1719
|
const n = this.constructor, i = n._$Eh.get(e);
|
1715
1720
|
if (i !== void 0 && this._$Em !== i) {
|
1716
|
-
const o = n.getPropertyOptions(i), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? o.converter :
|
1721
|
+
const o = n.getPropertyOptions(i), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? o.converter : Ge;
|
1717
1722
|
this._$Em = i, this[i] = a.fromAttribute(t, o.type), this._$Em = null;
|
1718
1723
|
}
|
1719
1724
|
}
|
@@ -1797,40 +1802,40 @@ let le = class extends HTMLElement {
|
|
1797
1802
|
firstUpdated(e) {
|
1798
1803
|
}
|
1799
1804
|
};
|
1800
|
-
le.elementStyles = [], le.shadowRootOptions = { mode: "open" }, le[we("elementProperties")] = /* @__PURE__ */ new Map(), le[we("finalized")] = /* @__PURE__ */ new Map(),
|
1805
|
+
le.elementStyles = [], le.shadowRootOptions = { mode: "open" }, le[we("elementProperties")] = /* @__PURE__ */ new Map(), le[we("finalized")] = /* @__PURE__ */ new Map(), wt == null || wt({ ReactiveElement: le }), (Y.reactiveElementVersions ?? (Y.reactiveElementVersions = [])).push("2.0.4");
|
1801
1806
|
/**
|
1802
1807
|
* @license
|
1803
1808
|
* Copyright 2017 Google LLC
|
1804
1809
|
* SPDX-License-Identifier: BSD-3-Clause
|
1805
1810
|
*/
|
1806
|
-
const ke = globalThis,
|
1807
|
-
\f\r]`, $e = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
1808
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
1811
|
+
const ke = globalThis, Ke = ke.trustedTypes, In = Ke ? Ke.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Ds = "$lit$", Z = `lit$${Math.random().toFixed(9).slice(2)}$`, Hs = "?" + Z, Dr = `<${Hs}>`, ie = document, Ae = () => ie.createComment(""), Ee = (s) => s === null || typeof s != "object" && typeof s != "function", tn = Array.isArray, Hr = (s) => tn(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", kt = `[
|
1812
|
+
\f\r]`, $e = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Mn = /-->/g, zn = />/g, ee = RegExp(`>|${kt}(?:([^\\s"'>=/]+)(${kt}*=${kt}*(?:[^
|
1813
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Un = /'/g, jn = /"/g, Bs = /^(?:script|style|textarea|title)$/i, Br = (s) => (e, ...t) => ({ _$litType$: s, strings: e, values: t }), v = Br(1), G = Symbol.for("lit-noChange"), g = Symbol.for("lit-nothing"), Dn = /* @__PURE__ */ new WeakMap(), ne = ie.createTreeWalker(ie, 129);
|
1809
1814
|
function Ns(s, e) {
|
1810
|
-
if (!
|
1815
|
+
if (!tn(s) || !s.hasOwnProperty("raw"))
|
1811
1816
|
throw Error("invalid template strings array");
|
1812
|
-
return
|
1817
|
+
return In !== void 0 ? In.createHTML(e) : e;
|
1813
1818
|
}
|
1814
|
-
const
|
1819
|
+
const Nr = (s, e) => {
|
1815
1820
|
const t = s.length - 1, n = [];
|
1816
|
-
let i, r = e === 2 ? "<svg>" : "", o = $e;
|
1821
|
+
let i, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", o = $e;
|
1817
1822
|
for (let a = 0; a < t; a++) {
|
1818
1823
|
const l = s[a];
|
1819
1824
|
let c, h, u = -1, p = 0;
|
1820
1825
|
for (; p < l.length && (o.lastIndex = p, h = o.exec(l), h !== null); )
|
1821
|
-
p = o.lastIndex, o === $e ? h[1] === "!--" ? o =
|
1826
|
+
p = o.lastIndex, o === $e ? h[1] === "!--" ? o = Mn : h[1] !== void 0 ? o = zn : h[2] !== void 0 ? (Bs.test(h[2]) && (i = RegExp("</" + h[2], "g")), o = ee) : h[3] !== void 0 && (o = ee) : o === ee ? h[0] === ">" ? (o = i ?? $e, u = -1) : h[1] === void 0 ? u = -2 : (u = o.lastIndex - h[2].length, c = h[1], o = h[3] === void 0 ? ee : h[3] === '"' ? jn : Un) : o === jn || o === Un ? o = ee : o === Mn || o === zn ? o = $e : (o = ee, i = void 0);
|
1822
1827
|
const d = o === ee && s[a + 1].startsWith("/>") ? " " : "";
|
1823
|
-
r += o === $e ? l +
|
1828
|
+
r += o === $e ? l + Dr : u >= 0 ? (n.push(c), l.slice(0, u) + Ds + l.slice(u) + Z + d) : l + Z + (u === -2 ? a : d);
|
1824
1829
|
}
|
1825
|
-
return [Ns(s, r + (s[t] || "<?>") + (e === 2 ? "</svg>" : "")), n];
|
1830
|
+
return [Ns(s, r + (s[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), n];
|
1826
1831
|
};
|
1827
|
-
class
|
1832
|
+
let jt = class Fs {
|
1828
1833
|
constructor({ strings: e, _$litType$: t }, n) {
|
1829
1834
|
let i;
|
1830
1835
|
this.parts = [];
|
1831
1836
|
let r = 0, o = 0;
|
1832
|
-
const a = e.length - 1, l = this.parts, [c, h] =
|
1833
|
-
if (this.el =
|
1837
|
+
const a = e.length - 1, l = this.parts, [c, h] = Nr(e, t);
|
1838
|
+
if (this.el = Fs.createElement(c, n), ne.currentNode = this.el.content, t === 2 || t === 3) {
|
1834
1839
|
const u = this.el.content.firstChild;
|
1835
1840
|
u.replaceWith(...u.childNodes);
|
1836
1841
|
}
|
@@ -1838,22 +1843,22 @@ class Te {
|
|
1838
1843
|
if (i.nodeType === 1) {
|
1839
1844
|
if (i.hasAttributes())
|
1840
1845
|
for (const u of i.getAttributeNames())
|
1841
|
-
if (u.endsWith(
|
1842
|
-
const p = h[o++], d = i.getAttribute(u).split(Z),
|
1843
|
-
l.push({ type: 1, index: r, name:
|
1846
|
+
if (u.endsWith(Ds)) {
|
1847
|
+
const p = h[o++], d = i.getAttribute(u).split(Z), m = /([.?@])?(.*)/.exec(p);
|
1848
|
+
l.push({ type: 1, index: r, name: m[2], strings: d, ctor: m[1] === "." ? qr : m[1] === "?" ? Zr : m[1] === "@" ? Wr : ct }), i.removeAttribute(u);
|
1844
1849
|
} else
|
1845
1850
|
u.startsWith(Z) && (l.push({ type: 6, index: r }), i.removeAttribute(u));
|
1846
1851
|
if (Bs.test(i.tagName)) {
|
1847
1852
|
const u = i.textContent.split(Z), p = u.length - 1;
|
1848
1853
|
if (p > 0) {
|
1849
|
-
i.textContent =
|
1854
|
+
i.textContent = Ke ? Ke.emptyScript : "";
|
1850
1855
|
for (let d = 0; d < p; d++)
|
1851
1856
|
i.append(u[d], Ae()), ne.nextNode(), l.push({ type: 2, index: ++r });
|
1852
1857
|
i.append(u[p], Ae());
|
1853
1858
|
}
|
1854
1859
|
}
|
1855
1860
|
} else if (i.nodeType === 8)
|
1856
|
-
if (i.data ===
|
1861
|
+
if (i.data === Hs)
|
1857
1862
|
l.push({ type: 2, index: r });
|
1858
1863
|
else {
|
1859
1864
|
let u = -1;
|
@@ -1867,7 +1872,7 @@ class Te {
|
|
1867
1872
|
const n = ie.createElement("template");
|
1868
1873
|
return n.innerHTML = e, n;
|
1869
1874
|
}
|
1870
|
-
}
|
1875
|
+
};
|
1871
1876
|
function ve(s, e, t = s, n) {
|
1872
1877
|
var o, a;
|
1873
1878
|
if (e === G)
|
@@ -1876,7 +1881,7 @@ function ve(s, e, t = s, n) {
|
|
1876
1881
|
const r = Ee(e) ? void 0 : e._$litDirective$;
|
1877
1882
|
return (i == null ? void 0 : i.constructor) !== r && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), r === void 0 ? i = void 0 : (i = new r(s), i._$AT(s, t, n)), n !== void 0 ? (t._$Co ?? (t._$Co = []))[n] = i : t._$Cl = i), i !== void 0 && (e = ve(s, i._$AS(s, e.values), i, n)), e;
|
1878
1883
|
}
|
1879
|
-
class
|
1884
|
+
class Fr {
|
1880
1885
|
constructor(e, t) {
|
1881
1886
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
1882
1887
|
}
|
@@ -1893,7 +1898,7 @@ class Nr {
|
|
1893
1898
|
for (; l !== void 0; ) {
|
1894
1899
|
if (o === l.index) {
|
1895
1900
|
let c;
|
1896
|
-
l.type === 2 ? c = new
|
1901
|
+
l.type === 2 ? c = new Re(r, r.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, e) : l.type === 6 && (c = new Yr(r, this, e)), this._$AV.push(c), l = n[++a];
|
1897
1902
|
}
|
1898
1903
|
o !== (l == null ? void 0 : l.index) && (r = ne.nextNode(), o++);
|
1899
1904
|
}
|
@@ -1905,7 +1910,7 @@ class Nr {
|
|
1905
1910
|
n !== void 0 && (n.strings !== void 0 ? (n._$AI(e, n, t), t += n.strings.length - 2) : n._$AI(e[t])), t++;
|
1906
1911
|
}
|
1907
1912
|
}
|
1908
|
-
class
|
1913
|
+
class Re {
|
1909
1914
|
get _$AU() {
|
1910
1915
|
var e;
|
1911
1916
|
return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
|
@@ -1925,37 +1930,37 @@ class Ie {
|
|
1925
1930
|
return this._$AB;
|
1926
1931
|
}
|
1927
1932
|
_$AI(e, t = this) {
|
1928
|
-
e = ve(this, e, t), Ee(e) ? e === g || e == null || e === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : e !== this._$AH && e !== G && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) :
|
1933
|
+
e = ve(this, e, t), Ee(e) ? e === g || e == null || e === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : e !== this._$AH && e !== G && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Hr(e) ? this.k(e) : this._(e);
|
1929
1934
|
}
|
1930
|
-
|
1935
|
+
O(e) {
|
1931
1936
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
1932
1937
|
}
|
1933
1938
|
T(e) {
|
1934
|
-
this._$AH !== e && (this._$AR(), this._$AH = this.
|
1939
|
+
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
1935
1940
|
}
|
1936
1941
|
_(e) {
|
1937
1942
|
this._$AH !== g && Ee(this._$AH) ? this._$AA.nextSibling.data = e : this.T(ie.createTextNode(e)), this._$AH = e;
|
1938
1943
|
}
|
1939
1944
|
$(e) {
|
1940
1945
|
var r;
|
1941
|
-
const { values: t, _$litType$: n } = e, i = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el =
|
1946
|
+
const { values: t, _$litType$: n } = e, i = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = jt.createElement(Ns(n.h, n.h[0]), this.options)), n);
|
1942
1947
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === i)
|
1943
1948
|
this._$AH.p(t);
|
1944
1949
|
else {
|
1945
|
-
const o = new
|
1950
|
+
const o = new Fr(i, this), a = o.u(this.options);
|
1946
1951
|
o.p(t), this.T(a), this._$AH = o;
|
1947
1952
|
}
|
1948
1953
|
}
|
1949
1954
|
_$AC(e) {
|
1950
|
-
let t =
|
1951
|
-
return t === void 0 &&
|
1955
|
+
let t = Dn.get(e.strings);
|
1956
|
+
return t === void 0 && Dn.set(e.strings, t = new jt(e)), t;
|
1952
1957
|
}
|
1953
1958
|
k(e) {
|
1954
|
-
|
1959
|
+
tn(this._$AH) || (this._$AH = [], this._$AR());
|
1955
1960
|
const t = this._$AH;
|
1956
1961
|
let n, i = 0;
|
1957
1962
|
for (const r of e)
|
1958
|
-
i === t.length ? t.push(n = new
|
1963
|
+
i === t.length ? t.push(n = new Re(this.O(Ae()), this.O(Ae()), this, this.options)) : n = t[i], n._$AI(r), i++;
|
1959
1964
|
i < t.length && (this._$AR(n && n._$AB.nextSibling, i), t.length = i);
|
1960
1965
|
}
|
1961
1966
|
_$AR(e = this._$AA.nextSibling, t) {
|
@@ -1970,7 +1975,7 @@ class Ie {
|
|
1970
1975
|
this._$AM === void 0 && (this._$Cv = e, (t = this._$AP) == null || t.call(this, e));
|
1971
1976
|
}
|
1972
1977
|
}
|
1973
|
-
class
|
1978
|
+
class ct {
|
1974
1979
|
get tagName() {
|
1975
1980
|
return this.element.tagName;
|
1976
1981
|
}
|
@@ -1997,23 +2002,23 @@ class ht {
|
|
1997
2002
|
e === g ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
1998
2003
|
}
|
1999
2004
|
}
|
2000
|
-
class
|
2005
|
+
let qr = class extends ct {
|
2001
2006
|
constructor() {
|
2002
2007
|
super(...arguments), this.type = 3;
|
2003
2008
|
}
|
2004
2009
|
j(e) {
|
2005
2010
|
this.element[this.name] = e === g ? void 0 : e;
|
2006
2011
|
}
|
2007
|
-
}
|
2008
|
-
|
2012
|
+
};
|
2013
|
+
class Zr extends ct {
|
2009
2014
|
constructor() {
|
2010
2015
|
super(...arguments), this.type = 4;
|
2011
2016
|
}
|
2012
2017
|
j(e) {
|
2013
2018
|
this.element.toggleAttribute(this.name, !!e && e !== g);
|
2014
2019
|
}
|
2015
|
-
}
|
2016
|
-
class
|
2020
|
+
}
|
2021
|
+
class Wr extends ct {
|
2017
2022
|
constructor(e, t, n, i, r) {
|
2018
2023
|
super(e, t, n, i, r), this.type = 5;
|
2019
2024
|
}
|
@@ -2028,7 +2033,7 @@ class Zr extends ht {
|
|
2028
2033
|
typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e);
|
2029
2034
|
}
|
2030
2035
|
}
|
2031
|
-
class
|
2036
|
+
class Yr {
|
2032
2037
|
constructor(e, t, n) {
|
2033
2038
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
|
2034
2039
|
}
|
@@ -2039,14 +2044,14 @@ class Wr {
|
|
2039
2044
|
ve(this, e);
|
2040
2045
|
}
|
2041
2046
|
}
|
2042
|
-
const
|
2043
|
-
|
2044
|
-
const
|
2047
|
+
const _t = ke.litHtmlPolyfillSupport;
|
2048
|
+
_t == null || _t(jt, Re), (ke.litHtmlVersions ?? (ke.litHtmlVersions = [])).push("3.2.1");
|
2049
|
+
const Qr = (s, e, t) => {
|
2045
2050
|
const n = (t == null ? void 0 : t.renderBefore) ?? e;
|
2046
2051
|
let i = n._$litPart$;
|
2047
2052
|
if (i === void 0) {
|
2048
2053
|
const r = (t == null ? void 0 : t.renderBefore) ?? null;
|
2049
|
-
n._$litPart$ = i = new
|
2054
|
+
n._$litPart$ = i = new Re(e.insertBefore(Ae(), r), r, void 0, t ?? {});
|
2050
2055
|
}
|
2051
2056
|
return i._$AI(s), i;
|
2052
2057
|
};
|
@@ -2066,7 +2071,7 @@ let k = class extends le {
|
|
2066
2071
|
}
|
2067
2072
|
update(e) {
|
2068
2073
|
const t = this.render();
|
2069
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
2074
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Qr(t, this.renderRoot, this.renderOptions);
|
2070
2075
|
}
|
2071
2076
|
connectedCallback() {
|
2072
2077
|
var e;
|
@@ -2080,12 +2085,12 @@ let k = class extends le {
|
|
2080
2085
|
return G;
|
2081
2086
|
}
|
2082
2087
|
};
|
2083
|
-
var
|
2084
|
-
k._$litElement$ = !0, k.finalized = !0, (
|
2085
|
-
const
|
2086
|
-
|
2087
|
-
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.
|
2088
|
-
const
|
2088
|
+
var fs;
|
2089
|
+
k._$litElement$ = !0, k.finalized = !0, (fs = globalThis.litElementHydrateSupport) == null || fs.call(globalThis, { LitElement: k });
|
2090
|
+
const St = globalThis.litElementPolyfillSupport;
|
2091
|
+
St == null || St({ LitElement: k });
|
2092
|
+
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
2093
|
+
const Gr = { name: "alert", 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 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4.01731 47.4568 16.5432 59.9827 32 60ZM32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6923 45.0849 45.0849 55.6923 32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.32247 18.9212 18.9212 8.32247 32 8.30769Z"/><path d="M29.3491 38.6031V20.6807C29.348 19.8662 29.4903 19.0598 29.7675 18.3096C29.9945 17.6371 30.3484 17.0302 30.804 16.5322C31.1251 16.1524 31.5593 15.9246 32.0204 15.894C32.6852 15.894 33.3496 16.471 34.0134 17.625C34.3738 18.1337 34.5955 18.7525 34.6509 19.4042V37.3267C34.6509 37.9947 34.2454 38.6329 33.4345 39.2414C32.6632 39.835 31.7547 40.1521 30.825 40.1523C29.8423 40.1524 29.3503 39.636 29.3491 38.6031Z"/><path d="M33.66 44.6959C33.9649 45.0866 34.161 45.551 34.2284 46.0419C34.2284 46.5397 33.8893 47.0083 33.2109 47.4476C32.5638 47.8771 31.8043 48.1062 31.0275 48.1061C30.1902 48.1061 29.7716 47.7271 29.7716 46.9693C29.7703 46.3788 29.8874 45.7941 30.116 45.2496C30.3064 44.7579 30.6022 44.3138 30.9826 43.9487C31.2626 43.6591 31.6427 43.4875 32.045 43.4692C32.5635 43.4692 33.1019 43.8781 33.66 44.6959Z"/></svg>' }, Kr = { name: "check-circle-filled", 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.9829 16.5431 47.4569 4.01712 32 4ZM44.5613 24.5793L31.6382 43.9639C31.2806 44.5011 30.7008 44.8493 30.0586 44.9126C29.988 44.9197 29.9171 44.9232 29.8462 44.9231C29.275 44.9229 28.7272 44.696 28.3233 44.2921L19.7079 35.6767C19.1639 35.1326 18.9514 34.3396 19.1505 33.5964C19.3497 32.8533 19.9302 32.2728 20.6734 32.0736C21.4166 31.8745 22.2095 32.087 22.7536 32.631L29.5117 39.3881L40.9772 22.1899C41.4016 21.5439 42.1396 21.1749 42.9111 21.2229C43.6825 21.2709 44.3691 21.7286 44.7101 22.4223C45.0511 23.1159 44.9944 23.9391 44.5613 24.5793Z"/></svg>' }, Xr = { name: "check-circle", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9998 4C16.5358 4 3.99976 16.536 3.99976 32C3.99976 47.464 16.5358 60 31.9998 60C47.4637 60 59.9998 47.464 59.9998 32C59.9826 16.5431 47.4566 4.01712 31.9998 4ZM31.9998 55.6923C18.9149 55.6923 8.30745 45.0849 8.30745 32C8.30745 18.9151 18.9149 8.30769 31.9998 8.30769C45.0847 8.30769 55.6921 18.9151 55.6921 32C55.6773 45.0788 45.0785 55.6775 31.9998 55.6923ZM44.5611 24.5793L31.638 43.9639C31.2804 44.5011 30.7005 44.8493 30.0584 44.9126C29.9878 44.9197 29.9169 44.9232 29.8459 44.9231C29.2747 44.9229 28.727 44.696 28.3231 44.2921L19.7077 35.6767C19.1636 35.1326 18.9512 34.3396 19.1503 33.5964C19.3494 32.8533 19.9299 32.2728 20.6731 32.0736C21.4163 31.8745 22.2093 32.087 22.7534 32.631L29.5115 39.3881L40.9769 22.1899C41.4013 21.5439 42.1394 21.1749 42.9108 21.2229C43.6823 21.2709 44.3688 21.7286 44.7099 22.4223C45.0509 23.1159 44.9941 23.9391 44.5611 24.5793Z"/></svg>' }, Vr = { name: "chevron-down", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>' }, Jr = { name: "close-circle", 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 56C45.2548 56 56 45.2548 56 32C56 18.7452 45.2548 8 32 8C18.7452 8 8 18.7452 8 32C8 45.2548 18.7452 56 32 56ZM32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60Z"/><path d="M25.2772 22.695C24.5164 21.8942 23.2505 21.8617 22.4497 22.6225C21.6488 23.3833 21.6164 24.6492 22.3772 25.45L29.2411 32.6752L22.4773 39.795C21.7166 40.5958 21.749 41.8617 22.5498 42.6225C23.3507 43.3833 24.6166 43.3508 25.3773 42.55L31.9998 35.5791L38.6222 42.55C39.3829 43.3508 40.6488 43.3833 41.4497 42.6225C42.2505 41.8617 42.2829 40.5958 41.5222 39.795L34.7584 32.6752L41.6223 25.45C42.3831 24.6492 42.3507 23.3833 41.5498 22.6225C40.749 21.8617 39.4831 21.8942 38.7224 22.695L31.9998 29.7714L25.2772 22.695Z"/></svg>' }, Hn = { name: "mute", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.4283 11.6761L53.1768 9.53891C53.9347 8.61282 53.7982 7.24774 52.8722 6.48993C51.9461 5.73211 50.581 5.86852 49.8232 6.79461L36.3333 23.2822V13.3972C36.3332 11.6447 35.2774 10.0648 33.6583 9.39418C32.0391 8.72356 30.1755 9.09425 28.9362 10.3334L18.1029 21.1668H14.6667C9.88247 21.1722 6.00547 25.0492 6 29.8334V34.1668C6.00547 38.951 9.88247 42.828 14.6667 42.8334H18.1029L19.3315 44.0621L10.8232 54.4613C10.0653 55.3874 10.2018 56.7525 11.1279 57.5103C12.0539 58.2681 13.419 58.1317 14.1768 57.2056L22.411 47.1416L28.9362 53.6668C30.1755 54.9059 32.0391 55.2766 33.6583 54.606C35.2774 53.9354 36.3332 52.3555 36.3333 50.603V30.1254L42.6092 22.4549C44.2201 25.3756 45.044 28.6649 45 32.0001C45.1184 36.1899 43.7698 40.2896 41.1872 43.5909C40.409 44.5001 40.5152 45.8679 41.4243 46.6461C42.3334 47.4243 43.7012 47.3183 44.4795 46.4093C47.7313 42.3208 49.4486 37.2227 49.3333 32.0001C49.403 27.3538 48.067 22.7949 45.5005 18.9211L48.6119 15.1182C52.019 20.0793 53.7867 25.9829 53.6667 32.0001C53.6667 39.0587 51.4873 45.6518 47.6872 50.0909C46.909 51.0001 47.0152 52.3679 47.9243 53.1461C48.8334 53.9243 50.2012 53.8183 50.9795 52.9093C55.4408 47.6968 58 40.0764 58 32.0001C58 24.21 55.6006 16.8662 51.4283 11.6761ZM19.8971 38.5H14.6667C12.2744 38.4977 10.3357 36.559 10.3333 34.1667V29.8334C10.3357 27.4411 12.2744 25.5024 14.6667 25.5H19.8971L32 13.3972V28.5784L22.089 40.6919L19.8971 38.5ZM31.9997 50.603L25.1682 43.7715L31.9997 35.4218V50.603Z"/></svg>' }, eo = { 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>' }, to = { name: "send", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>' }, Bn = { name: "volume", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M33.6578 9.3322C32.0391 8.65799 30.1735 9.02919 28.9362 10.2717L18.1029 21.105H14.6667C9.88247 21.1105 6.00547 24.9875 6 29.7717V34.105C6.00547 38.8892 9.88247 42.7662 14.6667 42.7717H18.1029L28.9362 53.605C30.1755 54.8442 32.0391 55.2149 33.6583 54.5442C35.2774 53.8736 36.3332 52.2937 36.3333 50.5412V13.3355C36.3365 11.5817 35.2794 10.0001 33.6578 9.3322ZM32 50.5411L19.8971 38.4382H14.6667C12.2744 38.4358 10.3357 36.4971 10.3333 34.1049V29.7716C10.3357 27.3793 12.2744 25.4406 14.6667 25.4382H19.8971L32 13.3353V50.5411ZM49.3334 31.9383C49.4487 37.161 47.7314 42.2591 44.4796 46.3475C43.7013 47.2565 42.3335 47.3625 41.4244 46.5843C40.5153 45.8061 40.4092 44.4383 41.1873 43.5291C43.7699 40.2278 45.1185 36.1282 45.0001 31.9383C45.1185 27.7485 43.7699 23.6488 41.1873 20.3475C40.4092 19.4383 40.5153 18.0705 41.4244 17.2923C42.3335 16.5141 43.7013 16.6201 44.4796 17.5291C47.7314 21.6176 49.4487 26.7157 49.3334 31.9383ZM58.0001 31.9383C58.0001 40.0147 55.441 47.635 50.9796 52.8475C50.2013 53.7565 48.8335 53.8625 47.9244 53.0843C47.0153 52.3061 46.9092 50.9383 47.6873 50.0291C51.4874 45.59 53.6668 38.9969 53.6668 31.9383C53.6668 24.8797 51.4874 18.2866 47.6873 13.8475C46.9092 12.9383 47.0153 11.5705 47.9244 10.7923C48.8335 10.0141 50.2013 10.1201 50.9796 11.0291C55.441 16.2416 58.0001 23.862 58.0001 31.9383Z"/></svg>' }, ce = {
|
2089
2094
|
allRenderFn: !1,
|
2090
2095
|
cmpDidLoad: !0,
|
2091
2096
|
cmpDidUnload: !1,
|
@@ -2169,8 +2174,8 @@ const Qr = { name: "alert", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.
|
|
2169
2174
|
transformTagName: !1,
|
2170
2175
|
attachStyles: !0
|
2171
2176
|
};
|
2172
|
-
let he,
|
2173
|
-
const
|
2177
|
+
let he, qs, ht, Zs = !1, Xe = !1, nn = !1, T = !1, Nn = null, Dt = !1;
|
2178
|
+
const ut = typeof window < "u" ? window : {}, B = ut.document || { head: {} }, Ws = ut.HTMLElement || class {
|
2174
2179
|
}, S = {
|
2175
2180
|
$flags$: 0,
|
2176
2181
|
$resourcesUrl$: "",
|
@@ -2179,10 +2184,10 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2179
2184
|
ael: (s, e, t, n) => s.addEventListener(e, t, n),
|
2180
2185
|
rel: (s, e, t, n) => s.removeEventListener(e, t, n),
|
2181
2186
|
ce: (s, e) => new CustomEvent(s, e)
|
2182
|
-
},
|
2187
|
+
}, no = /* @__PURE__ */ (() => {
|
2183
2188
|
let s = !1;
|
2184
2189
|
try {
|
2185
|
-
|
2190
|
+
B.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
2186
2191
|
get() {
|
2187
2192
|
s = !0;
|
2188
2193
|
}
|
@@ -2190,48 +2195,48 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2190
2195
|
} catch {
|
2191
2196
|
}
|
2192
2197
|
return s;
|
2193
|
-
})(),
|
2198
|
+
})(), so = (s) => Promise.resolve(s), io = /* @__PURE__ */ (() => {
|
2194
2199
|
try {
|
2195
2200
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
2196
2201
|
} catch {
|
2197
2202
|
}
|
2198
2203
|
return !1;
|
2199
|
-
})(),
|
2204
|
+
})(), Ys = (s, e, t, n) => {
|
2200
2205
|
t && t.map(([i, r, o]) => {
|
2201
|
-
const a =
|
2206
|
+
const a = oo(s, i), l = ro(e, o), c = ao(i);
|
2202
2207
|
S.ael(a, r, l, c), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => S.rel(a, r, l, c));
|
2203
2208
|
});
|
2204
|
-
},
|
2209
|
+
}, ro = (s, e) => (t) => {
|
2205
2210
|
try {
|
2206
2211
|
ce.lazyLoad || s.$hostElement$[e](t);
|
2207
2212
|
} catch (n) {
|
2208
|
-
|
2213
|
+
Ie(n);
|
2209
2214
|
}
|
2210
|
-
},
|
2215
|
+
}, oo = (s, e) => e & 4 ? B : e & 8 ? ut : e & 16 ? B.body : s, ao = (s) => no ? {
|
2211
2216
|
passive: (s & 1) !== 0,
|
2212
2217
|
capture: (s & 2) !== 0
|
2213
|
-
} : (s & 2) !== 0,
|
2214
|
-
},
|
2215
|
-
let n =
|
2216
|
-
|
2217
|
-
},
|
2218
|
-
let i =
|
2219
|
-
if (s = s.nodeType === 11 ? s :
|
2218
|
+
} : (s & 2) !== 0, Fn = "http://www.w3.org/1999/xlink", re = (s, e = "") => () => {
|
2219
|
+
}, qn = /* @__PURE__ */ new WeakMap(), lo = (s, e, t) => {
|
2220
|
+
let n = et.get(s);
|
2221
|
+
io && t ? (n = n || new CSSStyleSheet(), n.replace(e)) : n = e, et.set(s, n);
|
2222
|
+
}, co = (s, e, t, n) => {
|
2223
|
+
let i = Qs(e, t), r = et.get(i);
|
2224
|
+
if (s = s.nodeType === 11 ? s : B, r)
|
2220
2225
|
if (typeof r == "string") {
|
2221
2226
|
s = s.head || s;
|
2222
|
-
let o =
|
2223
|
-
o ||
|
2227
|
+
let o = qn.get(s), a;
|
2228
|
+
o || qn.set(s, o = /* @__PURE__ */ new Set()), o.has(i) || (a = B.createElement("style"), a.innerHTML = r, s.insertBefore(a, s.querySelector("link")), o && o.add(i));
|
2224
2229
|
} else
|
2225
2230
|
s.adoptedStyleSheets.includes(r) || (s.adoptedStyleSheets = [...s.adoptedStyleSheets, r]);
|
2226
2231
|
return i;
|
2227
|
-
},
|
2228
|
-
const e = s.$cmpMeta$, t = s.$hostElement$, n = e.$flags$, i = re("attachStyles", e.$tagName$), r =
|
2232
|
+
}, ho = (s) => {
|
2233
|
+
const e = s.$cmpMeta$, t = s.$hostElement$, n = e.$flags$, i = re("attachStyles", e.$tagName$), r = co(t.shadowRoot ? t.shadowRoot : t.getRootNode(), e, s.$modeName$);
|
2229
2234
|
n & 10 && (t["s-sc"] = r, t.classList.add(r + "-h"), n & 2 && t.classList.add(r + "-s")), i();
|
2230
|
-
},
|
2235
|
+
}, Qs = (s, e) => "sc-" + (e && s.$flags$ & 32 ? s.$tagName$ + "-" + e : s.$tagName$), uo = (s) => Ho.map((e) => e(s)).find((e) => !!e), Zn = {}, po = "http://www.w3.org/2000/svg", fo = "http://www.w3.org/1999/xhtml", go = (s) => s != null, sn = (s) => (s = typeof s, s === "object" || s === "function"), fe = (s, e, ...t) => {
|
2231
2236
|
let n = null, i = null, r = null, o = !1, a = !1, l = [];
|
2232
2237
|
const c = (u) => {
|
2233
2238
|
for (let p = 0; p < u.length; p++)
|
2234
|
-
n = u[p], Array.isArray(n) ? c(n) : n != null && typeof n != "boolean" && ((o = typeof s != "function" && !
|
2239
|
+
n = u[p], Array.isArray(n) ? c(n) : n != null && typeof n != "boolean" && ((o = typeof s != "function" && !sn(n)) && (n = String(n)), o && a ? l[l.length - 1].$text$ += n : l.push(o ? Ve(null, n) : n), a = o);
|
2235
2240
|
};
|
2236
2241
|
if (c(t), e) {
|
2237
2242
|
e.key && (i = e.key), e.name && (r = e.name);
|
@@ -2241,10 +2246,10 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2241
2246
|
}
|
2242
2247
|
}
|
2243
2248
|
if (typeof s == "function")
|
2244
|
-
return s(e === null ? {} : e, l,
|
2245
|
-
const h =
|
2249
|
+
return s(e === null ? {} : e, l, vo);
|
2250
|
+
const h = Ve(s, null);
|
2246
2251
|
return h.$attrs$ = e, l.length > 0 && (h.$children$ = l), h.$key$ = i, h.$name$ = r, h;
|
2247
|
-
},
|
2252
|
+
}, Ve = (s, e) => {
|
2248
2253
|
const t = {
|
2249
2254
|
$flags$: 0,
|
2250
2255
|
$tag$: s,
|
@@ -2253,28 +2258,28 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2253
2258
|
$children$: null
|
2254
2259
|
};
|
2255
2260
|
return t.$attrs$ = null, t.$key$ = null, t.$name$ = null, t;
|
2256
|
-
},
|
2257
|
-
forEach: (s, e) => s.map(
|
2258
|
-
map: (s, e) => s.map(
|
2259
|
-
},
|
2261
|
+
}, rn = {}, mo = (s) => s && s.$tag$ === rn, vo = {
|
2262
|
+
forEach: (s, e) => s.map(Wn).forEach(e),
|
2263
|
+
map: (s, e) => s.map(Wn).map(e).map(bo)
|
2264
|
+
}, Wn = (s) => ({
|
2260
2265
|
vattrs: s.$attrs$,
|
2261
2266
|
vchildren: s.$children$,
|
2262
2267
|
vkey: s.$key$,
|
2263
2268
|
vname: s.$name$,
|
2264
2269
|
vtag: s.$tag$,
|
2265
2270
|
vtext: s.$text$
|
2266
|
-
}),
|
2271
|
+
}), bo = (s) => {
|
2267
2272
|
if (typeof s.vtag == "function") {
|
2268
2273
|
const t = Object.assign({}, s.vattrs);
|
2269
2274
|
return s.vkey && (t.key = s.vkey), s.vname && (t.name = s.vname), fe(s.vtag, t, ...s.vchildren || []);
|
2270
2275
|
}
|
2271
|
-
const e =
|
2276
|
+
const e = Ve(s.vtag, s.vtext);
|
2272
2277
|
return e.$attrs$ = s.vattrs, e.$children$ = s.vchildren, e.$key$ = s.vkey, e.$name$ = s.vname, e;
|
2273
|
-
},
|
2278
|
+
}, Yn = (s, e, t, n, i, r) => {
|
2274
2279
|
if (t !== n) {
|
2275
|
-
let o =
|
2280
|
+
let o = Xn(s, e), a = e.toLowerCase();
|
2276
2281
|
if (e === "class") {
|
2277
|
-
const l = s.classList, c =
|
2282
|
+
const l = s.classList, c = Qn(t), h = Qn(n);
|
2278
2283
|
l.remove(...c.filter((u) => u && !h.includes(u))), l.add(...h.filter((u) => u && !c.includes(u)));
|
2279
2284
|
} else if (e === "style") {
|
2280
2285
|
for (const l in t)
|
@@ -2285,9 +2290,9 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2285
2290
|
if (e === "ref")
|
2286
2291
|
n && n(s);
|
2287
2292
|
else if (!s.__lookupSetter__(e) && e[0] === "o" && e[1] === "n")
|
2288
|
-
e[2] === "-" ? e = e.slice(3) :
|
2293
|
+
e[2] === "-" ? e = e.slice(3) : Xn(ut, a) ? e = a.slice(2) : e = a[2] + e.slice(3), t && S.rel(s, e, t, !1), n && S.ael(s, e, n, !1);
|
2289
2294
|
else {
|
2290
|
-
const l =
|
2295
|
+
const l = sn(n);
|
2291
2296
|
if ((o || l && n !== null) && !i)
|
2292
2297
|
try {
|
2293
2298
|
if (s.tagName.includes("-"))
|
@@ -2299,51 +2304,51 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2299
2304
|
} catch {
|
2300
2305
|
}
|
2301
2306
|
let c = !1;
|
2302
|
-
a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, c = !0), n == null || n === !1 ? (n !== !1 || s.getAttribute(e) === "") && (c ? s.removeAttributeNS(
|
2307
|
+
a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, c = !0), n == null || n === !1 ? (n !== !1 || s.getAttribute(e) === "") && (c ? s.removeAttributeNS(Fn, e) : s.removeAttribute(e)) : (!o || r & 4 || i) && !l && (n = n === !0 ? "" : n, c ? s.setAttributeNS(Fn, e, n) : s.setAttribute(e, n));
|
2303
2308
|
}
|
2304
2309
|
}
|
2305
|
-
},
|
2306
|
-
const i = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, r = s && s.$attrs$ ||
|
2310
|
+
}, yo = /\s/, Qn = (s) => s ? s.split(yo) : [], Gs = (s, e, t, n) => {
|
2311
|
+
const i = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, r = s && s.$attrs$ || Zn, o = e.$attrs$ || Zn;
|
2307
2312
|
for (n in r)
|
2308
|
-
n in o ||
|
2313
|
+
n in o || Yn(i, n, r[n], void 0, t, e.$flags$);
|
2309
2314
|
for (n in o)
|
2310
|
-
|
2311
|
-
},
|
2315
|
+
Yn(i, n, r[n], o[n], t, e.$flags$);
|
2316
|
+
}, Je = (s, e, t, n) => {
|
2312
2317
|
let i = e.$children$[t], r = 0, o, a, l;
|
2313
|
-
if (
|
2318
|
+
if (Zs || (nn = !0, i.$tag$ === "slot" && (he && n.classList.add(he + "-s"), i.$flags$ |= i.$children$ ? (
|
2314
2319
|
// slot element has fallback content
|
2315
2320
|
2
|
2316
2321
|
) : (
|
2317
2322
|
// slot element does not have fallback content
|
2318
2323
|
1
|
2319
2324
|
))), i.$text$ !== null)
|
2320
|
-
o = i.$elm$ =
|
2325
|
+
o = i.$elm$ = B.createTextNode(i.$text$);
|
2321
2326
|
else if (i.$flags$ & 1)
|
2322
|
-
o = i.$elm$ =
|
2327
|
+
o = i.$elm$ = B.createTextNode("");
|
2323
2328
|
else {
|
2324
|
-
if (T || (T = i.$tag$ === "svg"), o = i.$elm$ =
|
2329
|
+
if (T || (T = i.$tag$ === "svg"), o = i.$elm$ = B.createElementNS(T ? po : fo, i.$flags$ & 2 ? "slot-fb" : i.$tag$), T && i.$tag$ === "foreignObject" && (T = !1), Gs(null, i, T), go(he) && o["s-si"] !== he && o.classList.add(o["s-si"] = he), i.$children$)
|
2325
2330
|
for (r = 0; r < i.$children$.length; ++r)
|
2326
|
-
a =
|
2331
|
+
a = Je(s, i, r, o), a && o.appendChild(a);
|
2327
2332
|
i.$tag$ === "svg" ? T = !1 : o.tagName === "foreignObject" && (T = !0);
|
2328
2333
|
}
|
2329
|
-
return o["s-hn"] =
|
2330
|
-
},
|
2334
|
+
return o["s-hn"] = ht, i.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = qs, o["s-sn"] = i.$name$ || "", l = s && s.$children$ && s.$children$[t], l && l.$tag$ === i.$tag$ && s.$elm$ && Te(s.$elm$, !1)), o;
|
2335
|
+
}, Te = (s, e) => {
|
2331
2336
|
S.$flags$ |= 1;
|
2332
2337
|
const t = s.childNodes;
|
2333
2338
|
for (let n = t.length - 1; n >= 0; n--) {
|
2334
2339
|
const i = t[n];
|
2335
|
-
i["s-hn"] !==
|
2340
|
+
i["s-hn"] !== ht && i["s-ol"] && (Vs(i).insertBefore(i, on(i)), i["s-ol"].remove(), i["s-ol"] = void 0, nn = !0), e && Te(i, e);
|
2336
2341
|
}
|
2337
2342
|
S.$flags$ &= -2;
|
2338
|
-
},
|
2343
|
+
}, Ks = (s, e, t, n, i, r) => {
|
2339
2344
|
let o = s["s-cr"] && s["s-cr"].parentNode || s, a;
|
2340
|
-
for (o.shadowRoot && o.tagName ===
|
2341
|
-
n[i] && (a =
|
2342
|
-
},
|
2345
|
+
for (o.shadowRoot && o.tagName === ht && (o = o.shadowRoot); i <= r; ++i)
|
2346
|
+
n[i] && (a = Je(null, t, i, s), a && (n[i].$elm$ = a, o.insertBefore(a, on(e))));
|
2347
|
+
}, Xs = (s, e, t, n, i) => {
|
2343
2348
|
for (; e <= t; ++e)
|
2344
|
-
(n = s[e]) && (i = n.$elm$,
|
2345
|
-
},
|
2346
|
-
let i = 0, r = 0, o = 0, a = 0, l = e.length - 1, c = e[0], h = e[l], u = n.length - 1, p = n[0], d = n[u],
|
2349
|
+
(n = s[e]) && (i = n.$elm$, ti(n), Xe = !0, i["s-ol"] ? i["s-ol"].remove() : Te(i, !0), i.remove());
|
2350
|
+
}, $o = (s, e, t, n) => {
|
2351
|
+
let i = 0, r = 0, o = 0, a = 0, l = e.length - 1, c = e[0], h = e[l], u = n.length - 1, p = n[0], d = n[u], m, f;
|
2347
2352
|
for (; i <= l && r <= u; )
|
2348
2353
|
if (c == null)
|
2349
2354
|
c = e[++i];
|
@@ -2353,28 +2358,28 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2353
2358
|
p = n[++r];
|
2354
2359
|
else if (d == null)
|
2355
2360
|
d = n[--u];
|
2356
|
-
else if (
|
2361
|
+
else if (Be(c, p))
|
2357
2362
|
ue(c, p), c = e[++i], p = n[++r];
|
2358
|
-
else if (
|
2363
|
+
else if (Be(h, d))
|
2359
2364
|
ue(h, d), h = e[--l], d = n[--u];
|
2360
|
-
else if (
|
2361
|
-
(c.$tag$ === "slot" || d.$tag$ === "slot") &&
|
2362
|
-
else if (
|
2363
|
-
(c.$tag$ === "slot" || d.$tag$ === "slot") &&
|
2365
|
+
else if (Be(c, d))
|
2366
|
+
(c.$tag$ === "slot" || d.$tag$ === "slot") && Te(c.$elm$.parentNode, !1), ue(c, d), s.insertBefore(c.$elm$, h.$elm$.nextSibling), c = e[++i], d = n[--u];
|
2367
|
+
else if (Be(h, p))
|
2368
|
+
(c.$tag$ === "slot" || d.$tag$ === "slot") && Te(h.$elm$.parentNode, !1), ue(h, p), s.insertBefore(h.$elm$, c.$elm$), h = e[--l], p = n[++r];
|
2364
2369
|
else {
|
2365
2370
|
for (o = -1, a = i; a <= l; ++a)
|
2366
2371
|
if (e[a] && e[a].$key$ !== null && e[a].$key$ === p.$key$) {
|
2367
2372
|
o = a;
|
2368
2373
|
break;
|
2369
2374
|
}
|
2370
|
-
o >= 0 ? (f = e[o], f.$tag$ !== p.$tag$ ?
|
2375
|
+
o >= 0 ? (f = e[o], f.$tag$ !== p.$tag$ ? m = Je(e && e[r], t, o, s) : (ue(f, p), e[o] = void 0, m = f.$elm$), p = n[++r]) : (m = Je(e && e[r], t, r, s), p = n[++r]), m && Vs(c.$elm$).insertBefore(m, on(c.$elm$));
|
2371
2376
|
}
|
2372
|
-
i > l ?
|
2373
|
-
},
|
2377
|
+
i > l ? Ks(s, n[u + 1] == null ? null : n[u + 1].$elm$, t, n, r, u) : r > u && Xs(e, i, l);
|
2378
|
+
}, Be = (s, e) => s.$tag$ === e.$tag$ ? s.$tag$ === "slot" ? s.$name$ === e.$name$ : s.$key$ === e.$key$ : !1, on = (s) => s && s["s-ol"] || s, Vs = (s) => (s["s-ol"] ? s["s-ol"] : s).parentNode, ue = (s, e) => {
|
2374
2379
|
const t = e.$elm$ = s.$elm$, n = s.$children$, i = e.$children$, r = e.$tag$, o = e.$text$;
|
2375
2380
|
let a;
|
2376
|
-
o === null ? (T = r === "svg" ? !0 : r === "foreignObject" ? !1 : T, r === "slot" ||
|
2377
|
-
},
|
2381
|
+
o === null ? (T = r === "svg" ? !0 : r === "foreignObject" ? !1 : T, r === "slot" || Gs(s, e, T), n !== null && i !== null ? $o(t, n, e, i) : i !== null ? (s.$text$ !== null && (t.textContent = ""), Ks(t, null, e, i, 0, i.length - 1)) : n !== null && Xs(n, 0, n.length - 1), T && r === "svg" && (T = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : s.$text$ !== o && (t.data = o);
|
2382
|
+
}, Js = (s) => {
|
2378
2383
|
let e = s.childNodes, t, n, i, r, o, a;
|
2379
2384
|
for (n = 0, i = e.length; n < i; n++)
|
2380
2385
|
if (t = e[n], t.nodeType === 1) {
|
@@ -2390,36 +2395,36 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2390
2395
|
break;
|
2391
2396
|
}
|
2392
2397
|
}
|
2393
|
-
|
2398
|
+
Js(t);
|
2394
2399
|
}
|
2395
|
-
},
|
2400
|
+
}, R = [], ei = (s) => {
|
2396
2401
|
let e, t, n, i, r, o, a = 0, l = s.childNodes, c = l.length;
|
2397
2402
|
for (; a < c; a++) {
|
2398
2403
|
if (e = l[a], e["s-sr"] && (t = e["s-cr"]) && t.parentNode)
|
2399
2404
|
for (n = t.parentNode.childNodes, i = e["s-sn"], o = n.length - 1; o >= 0; o--)
|
2400
|
-
t = n[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (
|
2405
|
+
t = n[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (Gn(t, i) ? (r = R.find((h) => h.$nodeToRelocate$ === t), Xe = !0, t["s-sn"] = t["s-sn"] || i, r ? r.$slotRefNode$ = e : R.push({
|
2401
2406
|
$slotRefNode$: e,
|
2402
2407
|
$nodeToRelocate$: t
|
2403
|
-
}), t["s-sr"] &&
|
2404
|
-
|
2405
|
-
})) :
|
2408
|
+
}), t["s-sr"] && R.map((h) => {
|
2409
|
+
Gn(h.$nodeToRelocate$, t["s-sn"]) && (r = R.find((u) => u.$nodeToRelocate$ === t), r && !h.$slotRefNode$ && (h.$slotRefNode$ = r.$slotRefNode$));
|
2410
|
+
})) : R.some((h) => h.$nodeToRelocate$ === t) || R.push({
|
2406
2411
|
$nodeToRelocate$: t
|
2407
2412
|
}));
|
2408
|
-
e.nodeType === 1 &&
|
2413
|
+
e.nodeType === 1 && ei(e);
|
2409
2414
|
}
|
2410
|
-
},
|
2411
|
-
s.$attrs$ && s.$attrs$.ref && s.$attrs$.ref(null), s.$children$ && s.$children$.map(
|
2412
|
-
},
|
2413
|
-
const t = s.$hostElement$, n = s.$cmpMeta$, i = s.$vnode$ ||
|
2414
|
-
|
2415
|
+
}, Gn = (s, e) => s.nodeType === 1 ? s.getAttribute("slot") === null && e === "" || s.getAttribute("slot") === e : s["s-sn"] === e ? !0 : e === "", ti = (s) => {
|
2416
|
+
s.$attrs$ && s.$attrs$.ref && s.$attrs$.ref(null), s.$children$ && s.$children$.map(ti);
|
2417
|
+
}, xo = (s, e) => {
|
2418
|
+
const t = s.$hostElement$, n = s.$cmpMeta$, i = s.$vnode$ || Ve(null, null), r = mo(e) ? e : fe(null, null, e);
|
2419
|
+
ht = t.tagName, n.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, n.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, s.$vnode$ = r, r.$elm$ = i.$elm$ = t.shadowRoot || t, he = t["s-sc"], qs = t["s-cr"], Zs = (n.$flags$ & 1) !== 0, Xe = !1, ue(i, r);
|
2415
2420
|
{
|
2416
|
-
if (S.$flags$ |= 1,
|
2417
|
-
|
2421
|
+
if (S.$flags$ |= 1, nn) {
|
2422
|
+
ei(r.$elm$);
|
2418
2423
|
let o, a, l, c, h, u, p = 0;
|
2419
|
-
for (; p <
|
2420
|
-
o =
|
2421
|
-
for (p = 0; p <
|
2422
|
-
if (o =
|
2424
|
+
for (; p < R.length; p++)
|
2425
|
+
o = R[p], a = o.$nodeToRelocate$, a["s-ol"] || (l = B.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
|
2426
|
+
for (p = 0; p < R.length; p++)
|
2427
|
+
if (o = R[p], a = o.$nodeToRelocate$, o.$slotRefNode$) {
|
2423
2428
|
for (c = o.$slotRefNode$.parentNode, h = o.$slotRefNode$.nextSibling, l = a["s-ol"]; l = l.previousSibling; )
|
2424
2429
|
if (u = l["s-nr"], u && u["s-sn"] === a["s-sn"] && c === u.parentNode && (u = u.nextSibling, !u || !u["s-nr"])) {
|
2425
2430
|
h = u;
|
@@ -2429,39 +2434,39 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2429
2434
|
} else
|
2430
2435
|
a.nodeType === 1 && (a.hidden = !0);
|
2431
2436
|
}
|
2432
|
-
|
2437
|
+
Xe && Js(r.$elm$), S.$flags$ &= -2, R.length = 0;
|
2433
2438
|
}
|
2434
|
-
},
|
2435
|
-
const n =
|
2439
|
+
}, wo = (s) => s, ko = (s, e, t) => {
|
2440
|
+
const n = wo(s);
|
2436
2441
|
return {
|
2437
|
-
emit: (i) =>
|
2442
|
+
emit: (i) => _o(n, e, {
|
2438
2443
|
bubbles: !!(t & 4),
|
2439
2444
|
composed: !!(t & 2),
|
2440
2445
|
cancelable: !!(t & 1),
|
2441
2446
|
detail: i
|
2442
2447
|
})
|
2443
2448
|
};
|
2444
|
-
},
|
2449
|
+
}, _o = (s, e, t) => {
|
2445
2450
|
const n = S.ce(e, t);
|
2446
2451
|
return s.dispatchEvent(n), n;
|
2447
|
-
},
|
2448
|
-
},
|
2452
|
+
}, So = (s, e) => {
|
2453
|
+
}, ni = (s, e) => (s.$flags$ |= 16, So(s, s.$ancestorComponent$), Fo(() => Co(s, e))), Co = (s, e) => {
|
2449
2454
|
const t = s.$hostElement$, n = re("scheduleUpdate", s.$cmpMeta$.$tagName$), i = t;
|
2450
2455
|
let r;
|
2451
|
-
return e ? r = ge(i, "componentWillLoad") : r = ge(i, "componentWillUpdate"), r =
|
2452
|
-
},
|
2456
|
+
return e ? r = ge(i, "componentWillLoad") : r = ge(i, "componentWillUpdate"), r = Kn(r, () => ge(i, "componentWillRender")), n(), Kn(r, () => Ao(s, i, e));
|
2457
|
+
}, Ao = async (s, e, t) => {
|
2453
2458
|
const n = s.$hostElement$, i = re("update", s.$cmpMeta$.$tagName$);
|
2454
|
-
n["s-rc"], t &&
|
2459
|
+
n["s-rc"], t && ho(s);
|
2455
2460
|
const r = re("render", s.$cmpMeta$.$tagName$);
|
2456
|
-
|
2457
|
-
},
|
2461
|
+
Eo(s, e, n), r(), i(), To(s);
|
2462
|
+
}, Eo = (s, e, t) => {
|
2458
2463
|
try {
|
2459
|
-
|
2464
|
+
Nn = e, e = e.render && e.render(), s.$flags$ &= -17, s.$flags$ |= 2, (ce.hasRenderFn || ce.reflect) && (ce.vdomRender || ce.reflect) && (ce.hydrateServerSide || xo(s, e));
|
2460
2465
|
} catch (a) {
|
2461
|
-
|
2466
|
+
Ie(a, s.$hostElement$);
|
2462
2467
|
}
|
2463
|
-
return
|
2464
|
-
},
|
2468
|
+
return Nn = null, null;
|
2469
|
+
}, To = (s) => {
|
2465
2470
|
const e = s.$cmpMeta$.$tagName$, t = s.$hostElement$, n = re("postUpdate", e), i = t;
|
2466
2471
|
s.$ancestorComponent$, ge(i, "componentDidRender"), s.$flags$ & 64 ? (ge(i, "componentDidUpdate"), n()) : (s.$flags$ |= 64, ge(i, "componentDidLoad"), n());
|
2467
2472
|
}, ge = (s, e, t) => {
|
@@ -2469,11 +2474,11 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2469
2474
|
try {
|
2470
2475
|
return s[e](t);
|
2471
2476
|
} catch (n) {
|
2472
|
-
|
2477
|
+
Ie(n);
|
2473
2478
|
}
|
2474
|
-
},
|
2475
|
-
const i =
|
2476
|
-
t =
|
2479
|
+
}, Kn = (s, e) => s && s.then ? s.then(e) : e(), Lo = (s, e) => s != null && !sn(s) ? e & 4 ? s === "false" ? !1 : s === "" || !!s : e & 2 ? parseFloat(s) : e & 1 ? String(s) : s : s, Oo = (s, e) => pt(s).$instanceValues$.get(e), Po = (s, e, t, n) => {
|
2480
|
+
const i = pt(s), r = s, o = i.$instanceValues$.get(e), a = i.$flags$, l = r;
|
2481
|
+
t = Lo(t, n.$members$[e][0]);
|
2477
2482
|
const c = Number.isNaN(o) && Number.isNaN(t);
|
2478
2483
|
if (t !== o && !c) {
|
2479
2484
|
i.$instanceValues$.set(e, t);
|
@@ -2484,28 +2489,28 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2484
2489
|
try {
|
2485
2490
|
l[p](t, o, e);
|
2486
2491
|
} catch (d) {
|
2487
|
-
|
2492
|
+
Ie(d, r);
|
2488
2493
|
}
|
2489
2494
|
});
|
2490
2495
|
}
|
2491
2496
|
if ((a & 18) === 2) {
|
2492
2497
|
if (l.componentShouldUpdate && l.componentShouldUpdate(t, o, e) === !1)
|
2493
2498
|
return;
|
2494
|
-
|
2499
|
+
ni(i, !1);
|
2495
2500
|
}
|
2496
2501
|
}
|
2497
2502
|
}
|
2498
|
-
},
|
2503
|
+
}, Ro = (s, e, t) => {
|
2499
2504
|
if (e.$members$) {
|
2500
2505
|
s.watchers && (e.$watchers$ = s.watchers);
|
2501
2506
|
const n = Object.entries(e.$members$), i = s.prototype;
|
2502
2507
|
n.map(([r, [o]]) => {
|
2503
2508
|
(o & 31 || o & 32) && Object.defineProperty(i, r, {
|
2504
2509
|
get() {
|
2505
|
-
return
|
2510
|
+
return Oo(this, r);
|
2506
2511
|
},
|
2507
2512
|
set(a) {
|
2508
|
-
|
2513
|
+
Po(this, r, a, e);
|
2509
2514
|
},
|
2510
2515
|
configurable: !0,
|
2511
2516
|
enumerable: !0
|
@@ -2532,37 +2537,37 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2532
2537
|
}
|
2533
2538
|
}
|
2534
2539
|
return s;
|
2535
|
-
},
|
2540
|
+
}, Io = async (s, e, t, n, i) => {
|
2536
2541
|
if (!(e.$flags$ & 32) && (i = s.constructor, e.$flags$ |= 32, customElements.whenDefined(t.$tagName$).then(() => e.$flags$ |= 128), i.style)) {
|
2537
2542
|
let o = i.style;
|
2538
|
-
typeof o != "string" && (o = o[e.$modeName$ =
|
2539
|
-
const a =
|
2540
|
-
if (!
|
2543
|
+
typeof o != "string" && (o = o[e.$modeName$ = uo(s)]);
|
2544
|
+
const a = Qs(t, e.$modeName$);
|
2545
|
+
if (!et.has(a)) {
|
2541
2546
|
const l = re("registerStyles", t.$tagName$);
|
2542
|
-
|
2547
|
+
lo(a, o, !!(t.$flags$ & 1)), l();
|
2543
2548
|
}
|
2544
2549
|
}
|
2545
|
-
e.$ancestorComponent$, (() =>
|
2546
|
-
}, Io = (s) => {
|
2550
|
+
e.$ancestorComponent$, (() => ni(e, !0))();
|
2547
2551
|
}, Mo = (s) => {
|
2552
|
+
}, zo = (s) => {
|
2548
2553
|
if (!(S.$flags$ & 1)) {
|
2549
|
-
const e =
|
2550
|
-
e.$flags$ & 1 ? (
|
2554
|
+
const e = pt(s), t = e.$cmpMeta$, n = re("connectedCallback", t.$tagName$);
|
2555
|
+
e.$flags$ & 1 ? (Ys(s, e, t.$listeners$), Mo(e.$lazyInstance$)) : (e.$flags$ |= 1, t.$flags$ & 12 && Uo(s), t.$members$ && Object.entries(t.$members$).map(([i, [r]]) => {
|
2551
2556
|
if (r & 31 && s.hasOwnProperty(i)) {
|
2552
2557
|
const o = s[i];
|
2553
2558
|
delete s[i], s[i] = o;
|
2554
2559
|
}
|
2555
|
-
}),
|
2560
|
+
}), Io(s, e, t)), n();
|
2556
2561
|
}
|
2557
|
-
}, zo = (s) => {
|
2558
|
-
const e = s["s-cr"] = H.createComment("");
|
2559
|
-
e["s-cn"] = !0, s.insertBefore(e, s.firstChild);
|
2560
2562
|
}, Uo = (s) => {
|
2563
|
+
const e = s["s-cr"] = B.createComment("");
|
2564
|
+
e["s-cn"] = !0, s.insertBefore(e, s.firstChild);
|
2565
|
+
}, jo = (s) => {
|
2561
2566
|
if (!(S.$flags$ & 1)) {
|
2562
|
-
const e =
|
2567
|
+
const e = pt(s);
|
2563
2568
|
e.$rmListeners$ && (e.$rmListeners$.map((t) => t()), e.$rmListeners$ = void 0);
|
2564
2569
|
}
|
2565
|
-
},
|
2570
|
+
}, si = (s, e) => {
|
2566
2571
|
const t = {
|
2567
2572
|
$flags$: e[0],
|
2568
2573
|
$tagName$: e[1]
|
@@ -2571,13 +2576,13 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2571
2576
|
const n = s.prototype.connectedCallback, i = s.prototype.disconnectedCallback;
|
2572
2577
|
return Object.assign(s.prototype, {
|
2573
2578
|
__registerHost() {
|
2574
|
-
|
2579
|
+
Do(this, t);
|
2575
2580
|
},
|
2576
2581
|
connectedCallback() {
|
2577
|
-
|
2582
|
+
zo(this), n && n.call(this);
|
2578
2583
|
},
|
2579
2584
|
disconnectedCallback() {
|
2580
|
-
|
2585
|
+
jo(this), i && i.call(this);
|
2581
2586
|
},
|
2582
2587
|
__attachShadow() {
|
2583
2588
|
this.attachShadow({
|
@@ -2585,28 +2590,28 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2585
2590
|
delegatesFocus: !!(t.$flags$ & 16)
|
2586
2591
|
});
|
2587
2592
|
}
|
2588
|
-
}), s.is = t.$tagName$,
|
2589
|
-
},
|
2593
|
+
}), s.is = t.$tagName$, Ro(s, t);
|
2594
|
+
}, ii = /* @__PURE__ */ new WeakMap(), pt = (s) => ii.get(s), Do = (s, e) => {
|
2590
2595
|
const t = {
|
2591
2596
|
$flags$: 0,
|
2592
2597
|
$hostElement$: s,
|
2593
2598
|
$cmpMeta$: e,
|
2594
2599
|
$instanceValues$: /* @__PURE__ */ new Map()
|
2595
2600
|
};
|
2596
|
-
return
|
2597
|
-
},
|
2598
|
-
s.push(t), Dt || (Dt = !0, e && S.$flags$ & 4 ?
|
2599
|
-
},
|
2601
|
+
return Ys(s, t, e.$listeners$), ii.set(s, t);
|
2602
|
+
}, Xn = (s, e) => e in s, Ie = (s, e) => (0, console.error)(s, e), et = /* @__PURE__ */ new Map(), Ho = [], Vn = [], ri = [], Bo = (s, e) => (t) => {
|
2603
|
+
s.push(t), Dt || (Dt = !0, e && S.$flags$ & 4 ? No(Ht) : S.raf(Ht));
|
2604
|
+
}, Jn = (s) => {
|
2600
2605
|
for (let e = 0; e < s.length; e++)
|
2601
2606
|
try {
|
2602
2607
|
s[e](performance.now());
|
2603
2608
|
} catch (t) {
|
2604
|
-
|
2609
|
+
Ie(t);
|
2605
2610
|
}
|
2606
2611
|
s.length = 0;
|
2607
2612
|
}, Ht = () => {
|
2608
|
-
Vn
|
2609
|
-
},
|
2613
|
+
Jn(Vn), Jn(ri), (Dt = Vn.length > 0) && S.raf(Ht);
|
2614
|
+
}, No = (s) => so().then(s), Fo = /* @__PURE__ */ Bo(ri, !0), qo = (s = {}) => {
|
2610
2615
|
const { content: e = "", title: t, attributes: n = [] } = s;
|
2611
2616
|
let i = "", r = [
|
2612
2617
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
@@ -2614,54 +2619,54 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2614
2619
|
...n
|
2615
2620
|
];
|
2616
2621
|
return t && (i = `<title>${t}</title>`), `<svg ${r.map((a) => `${a.name}="${a.value}"`).join(" ")}>${i}${e}</svg>`;
|
2617
|
-
},
|
2618
|
-
function
|
2622
|
+
}, Zo = (s) => s.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
2623
|
+
function Wo(s) {
|
2619
2624
|
return `${s.getFullYear()}.${s.getMonth() + 1}`;
|
2620
2625
|
}
|
2621
|
-
class
|
2626
|
+
class Yo {
|
2622
2627
|
constructor(e) {
|
2623
|
-
this.voca_component = e, this.voca_added =
|
2628
|
+
this.voca_component = e, this.voca_added = Wo(/* @__PURE__ */ new Date());
|
2624
2629
|
}
|
2625
2630
|
}
|
2626
|
-
const
|
2631
|
+
const Qo = "telia-vst{display:none}", Go = /* @__PURE__ */ si(class extends Ws {
|
2627
2632
|
constructor() {
|
2628
|
-
super(), this.__registerHost(), this.vocaInternalUStats =
|
2633
|
+
super(), this.__registerHost(), this.vocaInternalUStats = ko(this, "vocaInternalUStats", 7);
|
2629
2634
|
}
|
2630
2635
|
connectedCallback() {
|
2631
|
-
this.vocaInternalUStats.emit(new
|
2636
|
+
this.vocaInternalUStats.emit(new Yo(this.dataTrackingId));
|
2632
2637
|
}
|
2633
2638
|
render() {
|
2634
|
-
return fe(
|
2639
|
+
return fe(rn, null);
|
2635
2640
|
}
|
2636
2641
|
static get style() {
|
2637
|
-
return
|
2642
|
+
return Qo;
|
2638
2643
|
}
|
2639
2644
|
}, [0, "telia-vst", {
|
2640
2645
|
dataTrackingId: [1, "data-tracking-id"]
|
2641
2646
|
}]);
|
2642
|
-
function
|
2647
|
+
function oi() {
|
2643
2648
|
if (typeof customElements > "u")
|
2644
2649
|
return;
|
2645
2650
|
["telia-vst"].forEach((e) => {
|
2646
2651
|
switch (e) {
|
2647
2652
|
case "telia-vst":
|
2648
|
-
customElements.get(e) || customElements.define(e,
|
2653
|
+
customElements.get(e) || customElements.define(e, Go);
|
2649
2654
|
break;
|
2650
2655
|
}
|
2651
2656
|
});
|
2652
2657
|
}
|
2653
|
-
|
2658
|
+
oi();
|
2654
2659
|
function Bt() {
|
2655
2660
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
2656
2661
|
}
|
2657
|
-
function
|
2662
|
+
function Ko() {
|
2658
2663
|
if (typeof Bt().vocadsIcons !== void 0)
|
2659
2664
|
return Bt().vocadsIcons;
|
2660
2665
|
}
|
2661
|
-
function
|
2666
|
+
function Xo() {
|
2662
2667
|
return Bt().vocadsIconsRegistered;
|
2663
2668
|
}
|
2664
|
-
const
|
2669
|
+
const Vo = ".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))}", Jo = /* @__PURE__ */ si(class extends Ws {
|
2665
2670
|
constructor() {
|
2666
2671
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
2667
2672
|
}
|
@@ -2673,8 +2678,8 @@ const Xo = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2673
2678
|
getSvgString() {
|
2674
2679
|
if (this.svg)
|
2675
2680
|
return this.svg;
|
2676
|
-
if (
|
2677
|
-
const s =
|
2681
|
+
if (Xo() && this.name) {
|
2682
|
+
const s = Ko();
|
2678
2683
|
return s[this.name] ? s[this.name].svg : "";
|
2679
2684
|
}
|
2680
2685
|
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"), "";
|
@@ -2685,15 +2690,15 @@ const Xo = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2685
2690
|
...e,
|
2686
2691
|
{ name: "aria-hidden", value: "true" }
|
2687
2692
|
];
|
2688
|
-
const t =
|
2689
|
-
content:
|
2693
|
+
const t = qo({
|
2694
|
+
content: Zo(s),
|
2690
2695
|
attributes: e,
|
2691
2696
|
title: this.allyTitle
|
2692
2697
|
});
|
2693
|
-
return fe(
|
2698
|
+
return fe(rn, { class: `telia-icon telia-icon--${this.size}` }, fe("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: t }), fe("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
2694
2699
|
}
|
2695
2700
|
static get style() {
|
2696
|
-
return
|
2701
|
+
return Vo;
|
2697
2702
|
}
|
2698
2703
|
}, [0, "telia-icon", {
|
2699
2704
|
name: [1],
|
@@ -2702,27 +2707,27 @@ const Xo = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2702
2707
|
allyTitle: [1, "ally-title"],
|
2703
2708
|
dataTestid: [1, "data-testid"]
|
2704
2709
|
}]);
|
2705
|
-
function
|
2710
|
+
function ea() {
|
2706
2711
|
if (typeof customElements > "u")
|
2707
2712
|
return;
|
2708
2713
|
["telia-icon", "telia-vst"].forEach((e) => {
|
2709
2714
|
switch (e) {
|
2710
2715
|
case "telia-icon":
|
2711
|
-
customElements.get(e) || customElements.define(e,
|
2716
|
+
customElements.get(e) || customElements.define(e, Jo);
|
2712
2717
|
break;
|
2713
2718
|
case "telia-vst":
|
2714
|
-
customElements.get(e) ||
|
2719
|
+
customElements.get(e) || oi();
|
2715
2720
|
break;
|
2716
2721
|
}
|
2717
2722
|
});
|
2718
2723
|
}
|
2719
|
-
|
2724
|
+
ea();
|
2720
2725
|
/**
|
2721
2726
|
* @license
|
2722
2727
|
* Copyright 2017 Google LLC
|
2723
2728
|
* SPDX-License-Identifier: BSD-3-Clause
|
2724
2729
|
*/
|
2725
|
-
const
|
2730
|
+
const ta = { attribute: !0, type: String, converter: Ge, reflect: !1, hasChanged: en }, na = (s = ta, e, t) => {
|
2726
2731
|
const { kind: n, metadata: i } = t;
|
2727
2732
|
let r = globalThis.litPropertyMetadata.get(i);
|
2728
2733
|
if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), r.set(t.name, s), n === "accessor") {
|
@@ -2744,7 +2749,7 @@ const ea = { attribute: !0, type: String, converter: Ke, reflect: !1, hasChanged
|
|
2744
2749
|
throw Error("Unsupported decorator location: " + n);
|
2745
2750
|
};
|
2746
2751
|
function w(s) {
|
2747
|
-
return (e, t) => typeof t == "object" ?
|
2752
|
+
return (e, t) => typeof t == "object" ? na(s, e, t) : ((n, i, r) => {
|
2748
2753
|
const o = i.hasOwnProperty(r);
|
2749
2754
|
return i.constructor.createProperty(r, o ? { ...n, wrapped: !0 } : n), o ? Object.getOwnPropertyDescriptor(i, r) : void 0;
|
2750
2755
|
})(s, e, t);
|
@@ -2762,14 +2767,14 @@ function C(s) {
|
|
2762
2767
|
* Copyright 2020 Google LLC
|
2763
2768
|
* SPDX-License-Identifier: BSD-3-Clause
|
2764
2769
|
*/
|
2765
|
-
const
|
2770
|
+
const sa = (s) => s.strings === void 0;
|
2766
2771
|
/**
|
2767
2772
|
* @license
|
2768
2773
|
* Copyright 2017 Google LLC
|
2769
2774
|
* SPDX-License-Identifier: BSD-3-Clause
|
2770
2775
|
*/
|
2771
|
-
const
|
2772
|
-
let
|
2776
|
+
const dt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, ft = (s) => (...e) => ({ _$litDirective$: s, values: e });
|
2777
|
+
let an = class {
|
2773
2778
|
constructor(e) {
|
2774
2779
|
}
|
2775
2780
|
get _$AU() {
|
@@ -2798,54 +2803,54 @@ const _e = (s, e) => {
|
|
2798
2803
|
for (const i of t)
|
2799
2804
|
(n = i._$AO) == null || n.call(i, e, !1), _e(i, e);
|
2800
2805
|
return !0;
|
2801
|
-
},
|
2806
|
+
}, tt = (s) => {
|
2802
2807
|
let e, t;
|
2803
2808
|
do {
|
2804
2809
|
if ((e = s._$AM) === void 0)
|
2805
2810
|
break;
|
2806
2811
|
t = e._$AN, t.delete(s), s = e;
|
2807
2812
|
} while ((t == null ? void 0 : t.size) === 0);
|
2808
|
-
},
|
2813
|
+
}, ai = (s) => {
|
2809
2814
|
for (let e; e = s._$AM; s = e) {
|
2810
2815
|
let t = e._$AN;
|
2811
2816
|
if (t === void 0)
|
2812
2817
|
e._$AN = t = /* @__PURE__ */ new Set();
|
2813
2818
|
else if (t.has(s))
|
2814
2819
|
break;
|
2815
|
-
t.add(s),
|
2820
|
+
t.add(s), oa(e);
|
2816
2821
|
}
|
2817
2822
|
};
|
2818
|
-
function
|
2819
|
-
this._$AN !== void 0 ? (
|
2823
|
+
function ia(s) {
|
2824
|
+
this._$AN !== void 0 ? (tt(this), this._$AM = s, ai(this)) : this._$AM = s;
|
2820
2825
|
}
|
2821
|
-
function
|
2826
|
+
function ra(s, e = !1, t = 0) {
|
2822
2827
|
const n = this._$AH, i = this._$AN;
|
2823
2828
|
if (i !== void 0 && i.size !== 0)
|
2824
2829
|
if (e)
|
2825
2830
|
if (Array.isArray(n))
|
2826
2831
|
for (let r = t; r < n.length; r++)
|
2827
|
-
_e(n[r], !1),
|
2832
|
+
_e(n[r], !1), tt(n[r]);
|
2828
2833
|
else
|
2829
|
-
n != null && (_e(n, !1),
|
2834
|
+
n != null && (_e(n, !1), tt(n));
|
2830
2835
|
else
|
2831
2836
|
_e(this, s);
|
2832
2837
|
}
|
2833
|
-
const
|
2834
|
-
s.type ==
|
2838
|
+
const oa = (s) => {
|
2839
|
+
s.type == dt.CHILD && (s._$AP ?? (s._$AP = ra), s._$AQ ?? (s._$AQ = ia));
|
2835
2840
|
};
|
2836
|
-
let
|
2841
|
+
let li = class extends an {
|
2837
2842
|
constructor() {
|
2838
2843
|
super(...arguments), this._$AN = void 0;
|
2839
2844
|
}
|
2840
2845
|
_$AT(e, t, n) {
|
2841
|
-
super._$AT(e, t, n),
|
2846
|
+
super._$AT(e, t, n), ai(this), this.isConnected = e._$AU;
|
2842
2847
|
}
|
2843
2848
|
_$AO(e, t = !0) {
|
2844
2849
|
var n, i;
|
2845
|
-
e !== this.isConnected && (this.isConnected = e, e ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), t && (_e(this, e),
|
2850
|
+
e !== this.isConnected && (this.isConnected = e, e ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), t && (_e(this, e), tt(this));
|
2846
2851
|
}
|
2847
2852
|
setValue(e) {
|
2848
|
-
if (
|
2853
|
+
if (sa(this._$Ct))
|
2849
2854
|
this._$Ct._$AI(e, this);
|
2850
2855
|
else {
|
2851
2856
|
const t = [...this._$Ct._$AH];
|
@@ -2862,10 +2867,10 @@ let ai = class extends on {
|
|
2862
2867
|
* Copyright 2020 Google LLC
|
2863
2868
|
* SPDX-License-Identifier: BSD-3-Clause
|
2864
2869
|
*/
|
2865
|
-
const
|
2866
|
-
class
|
2870
|
+
const z = () => new aa();
|
2871
|
+
class aa {
|
2867
2872
|
}
|
2868
|
-
const
|
2873
|
+
const Ct = /* @__PURE__ */ new WeakMap(), U = ft(class extends li {
|
2869
2874
|
render(s) {
|
2870
2875
|
return g;
|
2871
2876
|
}
|
@@ -2875,16 +2880,16 @@ const At = /* @__PURE__ */ new WeakMap(), z = gt(class extends ai {
|
|
2875
2880
|
return t && this.Y !== void 0 && this.rt(void 0), (t || this.lt !== this.ct) && (this.Y = e, this.ht = (n = s.options) == null ? void 0 : n.host, this.rt(this.ct = s.element)), g;
|
2876
2881
|
}
|
2877
2882
|
rt(s) {
|
2878
|
-
if (typeof this.Y == "function") {
|
2883
|
+
if (this.isConnected || (s = void 0), typeof this.Y == "function") {
|
2879
2884
|
const e = this.ht ?? globalThis;
|
2880
|
-
let t =
|
2881
|
-
t === void 0 && (t = /* @__PURE__ */ new WeakMap(),
|
2885
|
+
let t = Ct.get(e);
|
2886
|
+
t === void 0 && (t = /* @__PURE__ */ new WeakMap(), Ct.set(e, t)), t.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), t.set(this.Y, s), s !== void 0 && this.Y.call(this.ht, s);
|
2882
2887
|
} else
|
2883
2888
|
this.Y.value = s;
|
2884
2889
|
}
|
2885
2890
|
get lt() {
|
2886
2891
|
var s, e;
|
2887
|
-
return typeof this.Y == "function" ? (s =
|
2892
|
+
return typeof this.Y == "function" ? (s = Ct.get(this.ht ?? globalThis)) == null ? void 0 : s.get(this.Y) : (e = this.Y) == null ? void 0 : e.value;
|
2888
2893
|
}
|
2889
2894
|
disconnected() {
|
2890
2895
|
this.lt === this.ct && this.rt(void 0);
|
@@ -2898,10 +2903,10 @@ const At = /* @__PURE__ */ new WeakMap(), z = gt(class extends ai {
|
|
2898
2903
|
* Copyright 2018 Google LLC
|
2899
2904
|
* SPDX-License-Identifier: BSD-3-Clause
|
2900
2905
|
*/
|
2901
|
-
const be =
|
2906
|
+
const be = ft(class extends an {
|
2902
2907
|
constructor(s) {
|
2903
2908
|
var e;
|
2904
|
-
if (super(s), s.type !==
|
2909
|
+
if (super(s), s.type !== dt.ATTRIBUTE || s.name !== "class" || ((e = s.strings) == null ? void 0 : e.length) > 2)
|
2905
2910
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
2906
2911
|
}
|
2907
2912
|
render(s) {
|
@@ -2925,12 +2930,12 @@ const be = gt(class extends on {
|
|
2925
2930
|
return G;
|
2926
2931
|
}
|
2927
2932
|
});
|
2928
|
-
var
|
2929
|
-
for (var i = n > 1 ? void 0 : n ?
|
2933
|
+
var la = Object.defineProperty, ca = Object.getOwnPropertyDescriptor, ha = (s, e, t, n) => {
|
2934
|
+
for (var i = n > 1 ? void 0 : n ? ca(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
2930
2935
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
2931
|
-
return n && i &&
|
2936
|
+
return n && i && la(e, t, i), i;
|
2932
2937
|
};
|
2933
|
-
class
|
2938
|
+
class ln extends k {
|
2934
2939
|
constructor() {
|
2935
2940
|
super(...arguments), this.anchor = "BottomRight";
|
2936
2941
|
}
|
@@ -2942,7 +2947,7 @@ class an extends k {
|
|
2942
2947
|
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), g;
|
2943
2948
|
}
|
2944
2949
|
}
|
2945
|
-
|
2950
|
+
ln.styles = [
|
2946
2951
|
E`
|
2947
2952
|
:host {
|
2948
2953
|
position: fixed;
|
@@ -2961,37 +2966,37 @@ an.styles = [
|
|
2961
2966
|
}
|
2962
2967
|
`
|
2963
2968
|
];
|
2964
|
-
|
2969
|
+
ha([
|
2965
2970
|
w({ attribute: !0 })
|
2966
|
-
],
|
2967
|
-
const
|
2968
|
-
let
|
2969
|
-
const
|
2971
|
+
], ln.prototype, "anchor", 2);
|
2972
|
+
const ua = /* @__PURE__ */ new WeakMap();
|
2973
|
+
let es = 0;
|
2974
|
+
const At = /* @__PURE__ */ new Map(), ts = /* @__PURE__ */ new WeakSet(), ns = () => new Promise((s) => requestAnimationFrame(s)), pa = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], da = [{ opacity: 0 }], ss = [{ opacity: 0 }, { opacity: 1 }], is = (s, e) => {
|
2970
2975
|
const t = s - e;
|
2971
2976
|
return t === 0 ? void 0 : t;
|
2972
|
-
},
|
2977
|
+
}, rs = (s, e) => {
|
2973
2978
|
const t = s / e;
|
2974
2979
|
return t === 1 ? void 0 : t;
|
2975
|
-
},
|
2976
|
-
const t =
|
2980
|
+
}, Et = { left: (s, e) => {
|
2981
|
+
const t = is(s, e);
|
2977
2982
|
return { value: t, transform: t == null || isNaN(t) ? void 0 : `translateX(${t}px)` };
|
2978
2983
|
}, top: (s, e) => {
|
2979
|
-
const t =
|
2984
|
+
const t = is(s, e);
|
2980
2985
|
return { value: t, transform: t == null || isNaN(t) ? void 0 : `translateY(${t}px)` };
|
2981
2986
|
}, width: (s, e) => {
|
2982
2987
|
let t;
|
2983
2988
|
e === 0 && (e = 1, t = { width: "1px" });
|
2984
|
-
const n =
|
2989
|
+
const n = rs(s, e);
|
2985
2990
|
return { value: n, overrideFrom: t, transform: n == null || isNaN(n) ? void 0 : `scaleX(${n})` };
|
2986
2991
|
}, height: (s, e) => {
|
2987
2992
|
let t;
|
2988
2993
|
e === 0 && (e = 1, t = { height: "1px" });
|
2989
|
-
const n =
|
2994
|
+
const n = rs(s, e);
|
2990
2995
|
return { value: n, overrideFrom: t, transform: n == null || isNaN(n) ? void 0 : `scaleY(${n})` };
|
2991
|
-
} },
|
2992
|
-
class
|
2996
|
+
} }, fa = { duration: 333, easing: "ease-in-out" }, ga = ["left", "top", "width", "height", "opacity", "color", "background"], os = /* @__PURE__ */ new WeakMap();
|
2997
|
+
class ma extends li {
|
2993
2998
|
constructor(e) {
|
2994
|
-
if (super(e), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, e.type ===
|
2999
|
+
if (super(e), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, e.type === dt.CHILD)
|
2995
3000
|
throw Error("The `animate` directive must be used in attribute position.");
|
2996
3001
|
this.createFinished();
|
2997
3002
|
}
|
@@ -3009,7 +3014,7 @@ class ga extends ai {
|
|
3009
3014
|
return g;
|
3010
3015
|
}
|
3011
3016
|
getController() {
|
3012
|
-
return
|
3017
|
+
return ua.get(this.u);
|
3013
3018
|
}
|
3014
3019
|
isDisabled() {
|
3015
3020
|
var e;
|
@@ -3018,17 +3023,17 @@ class ga extends ai {
|
|
3018
3023
|
update(e, [t]) {
|
3019
3024
|
var i;
|
3020
3025
|
const n = this.u === void 0;
|
3021
|
-
return n && (this.u = (i = e.options) == null ? void 0 : i.host, this.u.addController(this), this.u.updateComplete.then((r) => this.t = !0), this.element = e.element,
|
3026
|
+
return n && (this.u = (i = e.options) == null ? void 0 : i.host, this.u.addController(this), this.u.updateComplete.then((r) => this.t = !0), this.element = e.element, os.set(this.element, this)), this.optionsOrCallback = t, (n || typeof t != "function") && this.p(t), this.render(t);
|
3022
3027
|
}
|
3023
3028
|
p(e) {
|
3024
3029
|
e = e ?? {};
|
3025
3030
|
const t = this.getController();
|
3026
|
-
t !== void 0 && ((e = { ...t.defaultOptions, ...e }).keyframeOptions = { ...t.defaultOptions.keyframeOptions, ...e.keyframeOptions }), e.properties ?? (e.properties =
|
3031
|
+
t !== void 0 && ((e = { ...t.defaultOptions, ...e }).keyframeOptions = { ...t.defaultOptions.keyframeOptions, ...e.keyframeOptions }), e.properties ?? (e.properties = ga), this.options = e;
|
3027
3032
|
}
|
3028
3033
|
m() {
|
3029
3034
|
const e = {}, t = this.element.getBoundingClientRect(), n = getComputedStyle(this.element);
|
3030
3035
|
return this.options.properties.forEach((i) => {
|
3031
|
-
const r = t[i] ?? (
|
3036
|
+
const r = t[i] ?? (Et[i] ? void 0 : n[i]), o = Number(r);
|
3032
3037
|
e[i] = isNaN(o) ? r + "" : o;
|
3033
3038
|
}), e;
|
3034
3039
|
}
|
@@ -3050,17 +3055,17 @@ class ga extends ai {
|
|
3050
3055
|
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
|
3051
3056
|
return;
|
3052
3057
|
let e;
|
3053
|
-
this.prepare(), await
|
3058
|
+
this.prepare(), await ns;
|
3054
3059
|
const t = this.O(), n = this.j(this.options.keyframeOptions, t), i = this.m();
|
3055
3060
|
if (this.A !== void 0) {
|
3056
3061
|
const { from: r, to: o } = this.N(this.A, i, t);
|
3057
3062
|
this.log("measured", [this.A, i, r, o]), e = this.calculateKeyframes(r, o);
|
3058
3063
|
} else {
|
3059
|
-
const r =
|
3064
|
+
const r = At.get(this.options.inId);
|
3060
3065
|
if (r) {
|
3061
|
-
|
3066
|
+
At.delete(this.options.inId);
|
3062
3067
|
const { from: o, to: a } = this.N(r, i, t);
|
3063
|
-
e = this.calculateKeyframes(o, a), e = this.options.in ? [{ ...this.options.in[0], ...e[0] }, ...this.options.in.slice(1), e[1]] : e,
|
3068
|
+
e = this.calculateKeyframes(o, a), e = this.options.in ? [{ ...this.options.in[0], ...e[0] }, ...this.options.in.slice(1), e[1]] : e, es++, e.forEach((l) => l.zIndex = es);
|
3064
3069
|
} else
|
3065
3070
|
this.options.in && (e = [...this.options.in, {}]);
|
3066
3071
|
}
|
@@ -3077,9 +3082,9 @@ class ga extends ai {
|
|
3077
3082
|
}
|
3078
3083
|
async disconnected() {
|
3079
3084
|
var t;
|
3080
|
-
if (!this.h || (this.options.id !== void 0 &&
|
3085
|
+
if (!this.h || (this.options.id !== void 0 && At.set(this.options.id, this.A), this.options.out === void 0))
|
3081
3086
|
return;
|
3082
|
-
if (this.prepare(), await
|
3087
|
+
if (this.prepare(), await ns(), (t = this.i) == null ? void 0 : t.isConnected) {
|
3083
3088
|
const n = this.o && this.o.parentNode === this.i ? this.o : null;
|
3084
3089
|
if (this.i.insertBefore(this.element, n), this.options.stabilizeOut) {
|
3085
3090
|
const i = this.m();
|
@@ -3105,19 +3110,19 @@ class ga extends ai {
|
|
3105
3110
|
O() {
|
3106
3111
|
const e = [];
|
3107
3112
|
for (let t = this.element.parentNode; t; t = t == null ? void 0 : t.parentNode) {
|
3108
|
-
const n =
|
3113
|
+
const n = os.get(t);
|
3109
3114
|
n && !n.isDisabled() && n && e.push(n);
|
3110
3115
|
}
|
3111
3116
|
return e;
|
3112
3117
|
}
|
3113
3118
|
get isHostRendered() {
|
3114
|
-
const e =
|
3119
|
+
const e = ts.has(this.u);
|
3115
3120
|
return e || this.u.updateComplete.then(() => {
|
3116
|
-
|
3121
|
+
ts.add(this.u);
|
3117
3122
|
}), e;
|
3118
3123
|
}
|
3119
3124
|
j(e, t = this.O()) {
|
3120
|
-
const n = { ...
|
3125
|
+
const n = { ...fa };
|
3121
3126
|
return t.forEach((i) => Object.assign(n, i.options.keyframeOptions)), Object.assign(n, e), n;
|
3122
3127
|
}
|
3123
3128
|
N(e, t, n) {
|
@@ -3134,8 +3139,8 @@ class ga extends ai {
|
|
3134
3139
|
const a = {};
|
3135
3140
|
for (const l in t) {
|
3136
3141
|
const c = e[l], h = t[l];
|
3137
|
-
if (l in
|
3138
|
-
const u =
|
3142
|
+
if (l in Et) {
|
3143
|
+
const u = Et[l];
|
3139
3144
|
if (c === void 0 || h === void 0)
|
3140
3145
|
continue;
|
3141
3146
|
const p = u(c, h);
|
@@ -3168,9 +3173,9 @@ class ga extends ai {
|
|
3168
3173
|
this.shouldLog && !this.isDisabled() && console.log(e, this.options.id, t);
|
3169
3174
|
}
|
3170
3175
|
}
|
3171
|
-
const Nt =
|
3176
|
+
const Nt = ft(ma), F = (s, e, t) => {
|
3172
3177
|
s && t.style.setProperty(e, s);
|
3173
|
-
},
|
3178
|
+
}, ci = (s, e) => {
|
3174
3179
|
var t, n, i, r, o, a, l, c, h;
|
3175
3180
|
F((t = s.colors) == null ? void 0 : t.primaryBackground, "--primary-background", e), F(
|
3176
3181
|
(n = s.colors) == null ? void 0 : n.textOnPrimaryBackground,
|
@@ -3202,14 +3207,14 @@ const Nt = gt(ga), F = (s, e, t) => {
|
|
3202
3207
|
e
|
3203
3208
|
), F((h = s.colors) == null ? void 0 : h.focusColor, "--focus-color", e);
|
3204
3209
|
};
|
3205
|
-
var
|
3206
|
-
for (var i = n > 1 ? void 0 : n ?
|
3210
|
+
var va = Object.defineProperty, ba = Object.getOwnPropertyDescriptor, Me = (s, e, t, n) => {
|
3211
|
+
for (var i = n > 1 ? void 0 : n ? ba(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3207
3212
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3208
|
-
return n && i &&
|
3213
|
+
return n && i && va(e, t, i), i;
|
3209
3214
|
};
|
3210
3215
|
class X extends k {
|
3211
3216
|
constructor() {
|
3212
|
-
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef =
|
3217
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = z(), this.widgetActive$ = new j(!1), this.componentIsDestroyed$ = new _();
|
3213
3218
|
}
|
3214
3219
|
async connectedCallback() {
|
3215
3220
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
@@ -3244,21 +3249,21 @@ class X extends k {
|
|
3244
3249
|
}
|
3245
3250
|
_applyBranding() {
|
3246
3251
|
var e;
|
3247
|
-
(e = this.application) != null && e.settings &&
|
3252
|
+
(e = this.application) != null && e.settings && ci(this.application.settings.branding, this);
|
3248
3253
|
}
|
3249
3254
|
async _renderSymbol() {
|
3250
3255
|
var a, l, c;
|
3251
3256
|
const e = (a = this.application) == null ? void 0 : a.branding(), t = (l = e == null ? void 0 : e.graphics) == null ? void 0 : l.trigger;
|
3252
3257
|
if (t)
|
3253
|
-
return
|
3258
|
+
return v` <img src=${t} class="trigger-icon" alt="" /> `;
|
3254
3259
|
const n = (c = this.application) == null ? void 0 : c.triggerIcon;
|
3255
3260
|
if (!n)
|
3256
3261
|
return g;
|
3257
|
-
const i = async (h) =>
|
3262
|
+
const i = async (h) => eo, { type: r, content: o } = n;
|
3258
3263
|
switch (r) {
|
3259
3264
|
case "Telia": {
|
3260
3265
|
const h = await i();
|
3261
|
-
return h ?
|
3266
|
+
return h ? v`<telia-icon
|
3262
3267
|
class="trigger-icon"
|
3263
3268
|
svg=${h.svg}
|
3264
3269
|
size="lg"
|
@@ -3276,21 +3281,21 @@ class X extends k {
|
|
3276
3281
|
}
|
3277
3282
|
render() {
|
3278
3283
|
var e, t, n, i;
|
3279
|
-
return
|
3284
|
+
return v`<div
|
3280
3285
|
class=${be({
|
3281
3286
|
"trigger-container": !0,
|
3282
3287
|
hidden: !this.triggerVisible
|
3283
3288
|
})}
|
3284
|
-
${
|
3289
|
+
${U(this.containerRef)}
|
3285
3290
|
>
|
3286
|
-
${!this.active && ((i = (n = (t = (e = this.application) == null ? void 0 : e.settings) == null ? void 0 : t.branding) == null ? void 0 : n.other) != null && i.showButtonLabel) ?
|
3291
|
+
${!this.active && ((i = (n = (t = (e = this.application) == null ? void 0 : e.settings) == null ? void 0 : t.branding) == null ? void 0 : n.other) != null && i.showButtonLabel) ? v`
|
3287
3292
|
<button
|
3288
3293
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
3289
3294
|
class="trigger-label"
|
3290
3295
|
@click=${this.toggleActive}
|
3291
3296
|
${Nt({
|
3292
3297
|
keyframeOptions: {},
|
3293
|
-
in:
|
3298
|
+
in: pa,
|
3294
3299
|
stabilizeOut: !0,
|
3295
3300
|
skipInitial: !1
|
3296
3301
|
})}
|
@@ -3472,27 +3477,27 @@ X.styles = [
|
|
3472
3477
|
}
|
3473
3478
|
`
|
3474
3479
|
];
|
3475
|
-
|
3480
|
+
Me([
|
3476
3481
|
w({ attribute: !1 })
|
3477
3482
|
], X.prototype, "application", 2);
|
3478
|
-
|
3483
|
+
Me([
|
3479
3484
|
C()
|
3480
3485
|
], X.prototype, "active", 2);
|
3481
|
-
|
3486
|
+
Me([
|
3482
3487
|
C()
|
3483
3488
|
], X.prototype, "triggerVisible", 2);
|
3484
|
-
|
3489
|
+
Me([
|
3485
3490
|
C()
|
3486
3491
|
], X.prototype, "loaded", 2);
|
3487
|
-
|
3492
|
+
Me([
|
3488
3493
|
C()
|
3489
3494
|
], X.prototype, "icon", 2);
|
3490
|
-
var
|
3491
|
-
for (var i = n > 1 ? void 0 : n ?
|
3495
|
+
var ya = Object.defineProperty, $a = Object.getOwnPropertyDescriptor, te = (s, e, t, n) => {
|
3496
|
+
for (var i = n > 1 ? void 0 : n ? $a(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3492
3497
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3493
|
-
return n && i &&
|
3498
|
+
return n && i && ya(e, t, i), i;
|
3494
3499
|
};
|
3495
|
-
const
|
3500
|
+
const hi = (s) => {
|
3496
3501
|
class e extends s {
|
3497
3502
|
constructor() {
|
3498
3503
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
@@ -3547,12 +3552,12 @@ const ci = (s) => {
|
|
3547
3552
|
w({ attribute: !1 })
|
3548
3553
|
], e.prototype, "parent", 2), e;
|
3549
3554
|
};
|
3550
|
-
class
|
3555
|
+
class ui extends hi(k) {
|
3551
3556
|
render() {
|
3552
|
-
return
|
3557
|
+
return v`Non resolved component`;
|
3553
3558
|
}
|
3554
3559
|
}
|
3555
|
-
|
3560
|
+
ui.styles = [
|
3556
3561
|
E`
|
3557
3562
|
:host {
|
3558
3563
|
display: block;
|
@@ -3564,20 +3569,20 @@ hi.styles = [
|
|
3564
3569
|
* Copyright 2021 Google LLC
|
3565
3570
|
* SPDX-License-Identifier: BSD-3-Clause
|
3566
3571
|
*/
|
3567
|
-
function*
|
3572
|
+
function* xa(s, e) {
|
3568
3573
|
if (s !== void 0) {
|
3569
3574
|
let t = 0;
|
3570
3575
|
for (const n of s)
|
3571
3576
|
yield e(n, t++);
|
3572
3577
|
}
|
3573
3578
|
}
|
3574
|
-
var
|
3579
|
+
var cn = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(cn || {});
|
3575
3580
|
/**
|
3576
3581
|
* @license
|
3577
3582
|
* Copyright 2021 Google LLC
|
3578
3583
|
* SPDX-License-Identifier: BSD-3-Clause
|
3579
3584
|
*/
|
3580
|
-
let
|
3585
|
+
let wa = class extends Event {
|
3581
3586
|
constructor(e, t, n) {
|
3582
3587
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = e, this.callback = t, this.subscribe = n ?? !1;
|
3583
3588
|
}
|
@@ -3592,7 +3597,7 @@ let xa = class extends Event {
|
|
3592
3597
|
* Copyright 2021 Google LLC
|
3593
3598
|
* SPDX-License-Identifier: BSD-3-Clause
|
3594
3599
|
*/
|
3595
|
-
class
|
3600
|
+
class ka {
|
3596
3601
|
get value() {
|
3597
3602
|
return this.o;
|
3598
3603
|
}
|
@@ -3627,12 +3632,12 @@ class wa {
|
|
3627
3632
|
* Copyright 2021 Google LLC
|
3628
3633
|
* SPDX-License-Identifier: BSD-3-Clause
|
3629
3634
|
*/
|
3630
|
-
let
|
3635
|
+
let _a = class extends Event {
|
3631
3636
|
constructor(e) {
|
3632
3637
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = e;
|
3633
3638
|
}
|
3634
3639
|
};
|
3635
|
-
class
|
3640
|
+
class as extends ka {
|
3636
3641
|
constructor(e, t, n) {
|
3637
3642
|
var i, r;
|
3638
3643
|
super(t.context !== void 0 ? t.initialValue : n), this.onContextRequest = (o) => {
|
@@ -3644,7 +3649,7 @@ class os extends wa {
|
|
3644
3649
|
return;
|
3645
3650
|
const l = /* @__PURE__ */ new Set();
|
3646
3651
|
for (const [c, { consumerHost: h }] of this.subscriptions)
|
3647
|
-
l.has(c) || (l.add(c), h.dispatchEvent(new
|
3652
|
+
l.has(c) || (l.add(c), h.dispatchEvent(new wa(this.context, c, !0)));
|
3648
3653
|
o.stopPropagation();
|
3649
3654
|
}, this.host = e, t.context !== void 0 ? this.context = t.context : this.context = t, this.attachListeners(), (r = (i = this.host).addController) == null || r.call(i, this);
|
3650
3655
|
}
|
@@ -3652,7 +3657,7 @@ class os extends wa {
|
|
3652
3657
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
3653
3658
|
}
|
3654
3659
|
hostConnected() {
|
3655
|
-
this.host.dispatchEvent(new
|
3660
|
+
this.host.dispatchEvent(new _a(this.context));
|
3656
3661
|
}
|
3657
3662
|
}
|
3658
3663
|
/**
|
@@ -3660,12 +3665,12 @@ class os extends wa {
|
|
3660
3665
|
* Copyright 2017 Google LLC
|
3661
3666
|
* SPDX-License-Identifier: BSD-3-Clause
|
3662
3667
|
*/
|
3663
|
-
function
|
3668
|
+
function Sa({ context: s }) {
|
3664
3669
|
return (e, t) => {
|
3665
3670
|
const n = /* @__PURE__ */ new WeakMap();
|
3666
3671
|
if (typeof t == "object")
|
3667
3672
|
return t.addInitializer(function() {
|
3668
|
-
n.set(this, new
|
3673
|
+
n.set(this, new as(this, { context: s }));
|
3669
3674
|
}), { get() {
|
3670
3675
|
return e.get.call(this);
|
3671
3676
|
}, set(i) {
|
@@ -3677,20 +3682,20 @@ function _a({ context: s }) {
|
|
3677
3682
|
} };
|
3678
3683
|
{
|
3679
3684
|
e.constructor.addInitializer((o) => {
|
3680
|
-
n.set(o, new
|
3685
|
+
n.set(o, new as(o, { context: s }));
|
3681
3686
|
});
|
3682
3687
|
const i = Object.getOwnPropertyDescriptor(e, t);
|
3683
3688
|
let r;
|
3684
3689
|
if (i === void 0) {
|
3685
3690
|
const o = /* @__PURE__ */ new WeakMap();
|
3686
|
-
r = { get
|
3691
|
+
r = { get() {
|
3687
3692
|
return o.get(this);
|
3688
|
-
}, set
|
3693
|
+
}, set(a) {
|
3689
3694
|
n.get(this).setValue(a), o.set(this, a);
|
3690
3695
|
}, configurable: !0, enumerable: !0 };
|
3691
3696
|
} else {
|
3692
3697
|
const o = i.set;
|
3693
|
-
r = { ...i, set
|
3698
|
+
r = { ...i, set(a) {
|
3694
3699
|
n.get(this).setValue(a), o == null || o.call(this, a);
|
3695
3700
|
} };
|
3696
3701
|
}
|
@@ -3698,15 +3703,15 @@ function _a({ context: s }) {
|
|
3698
3703
|
}
|
3699
3704
|
};
|
3700
3705
|
}
|
3701
|
-
var
|
3702
|
-
for (var i = n > 1 ? void 0 : n ?
|
3706
|
+
var Ca = Object.defineProperty, Aa = Object.getOwnPropertyDescriptor, Ea = (s, e, t, n) => {
|
3707
|
+
for (var i = n > 1 ? void 0 : n ? Aa(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3703
3708
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3704
|
-
return n && i &&
|
3709
|
+
return n && i && Ca(e, t, i), i;
|
3705
3710
|
};
|
3706
|
-
const
|
3707
|
-
class
|
3711
|
+
const Ta = "application";
|
3712
|
+
class hn extends k {
|
3708
3713
|
constructor() {
|
3709
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
3714
|
+
super(...arguments), this.nodes = [], this.wrapperRef = z();
|
3710
3715
|
}
|
3711
3716
|
addChild(e) {
|
3712
3717
|
e.parent = this, this.nodes.push(e);
|
@@ -3715,7 +3720,7 @@ class cn extends k {
|
|
3715
3720
|
if (!this.wrapperRef.value)
|
3716
3721
|
return;
|
3717
3722
|
const e = this.application.settings;
|
3718
|
-
e != null && e.branding &&
|
3723
|
+
e != null && e.branding && ci(e.branding, this.wrapperRef.value);
|
3719
3724
|
}
|
3720
3725
|
applyStyles() {
|
3721
3726
|
if (!this.wrapperRef.value)
|
@@ -3731,12 +3736,12 @@ class cn extends k {
|
|
3731
3736
|
render() {
|
3732
3737
|
var n, i;
|
3733
3738
|
const e = this.application.settings.components.conversation;
|
3734
|
-
return ((i = (n = e == null ? void 0 : e.properties) == null ? void 0 : n.chat) == null ? void 0 : i.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy ===
|
3735
|
-
${
|
3739
|
+
return ((i = (n = e == null ? void 0 : e.properties) == null ? void 0 : n.chat) == null ? void 0 : i.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === cn.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), v`<div class="widget-container" ${U(this.wrapperRef)}>
|
3740
|
+
${xa(this.nodes, (r) => r)}
|
3736
3741
|
</div>`;
|
3737
3742
|
}
|
3738
3743
|
}
|
3739
|
-
|
3744
|
+
hn.styles = E`
|
3740
3745
|
:host {
|
3741
3746
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
3742
3747
|
--spacing-xs: 0.2rem;
|
@@ -3872,16 +3877,16 @@ cn.styles = E`
|
|
3872
3877
|
pointer-events: none;
|
3873
3878
|
}
|
3874
3879
|
`;
|
3875
|
-
|
3880
|
+
Ea([
|
3876
3881
|
w({ attribute: !1 }),
|
3877
|
-
|
3878
|
-
],
|
3879
|
-
var
|
3880
|
-
for (var i = n > 1 ? void 0 : n ?
|
3882
|
+
Sa({ context: Ta })
|
3883
|
+
], hn.prototype, "application", 2);
|
3884
|
+
var La = Object.defineProperty, Oa = Object.getOwnPropertyDescriptor, un = (s, e, t, n) => {
|
3885
|
+
for (var i = n > 1 ? void 0 : n ? Oa(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3881
3886
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3882
|
-
return n && i &&
|
3887
|
+
return n && i && La(e, t, i), i;
|
3883
3888
|
};
|
3884
|
-
class
|
3889
|
+
class ze extends k {
|
3885
3890
|
constructor() {
|
3886
3891
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
3887
3892
|
}
|
@@ -3906,35 +3911,35 @@ class Ue extends k {
|
|
3906
3911
|
render() {
|
3907
3912
|
if (!this.widget || this.status !== "activated")
|
3908
3913
|
return g;
|
3909
|
-
if (this.widget.renderStrategy ===
|
3914
|
+
if (this.widget.renderStrategy === cn.Trigger) {
|
3910
3915
|
const e = new X();
|
3911
3916
|
return e.application = this.widget, e;
|
3912
3917
|
}
|
3913
3918
|
return this.widget.render();
|
3914
3919
|
}
|
3915
3920
|
}
|
3916
|
-
|
3921
|
+
ze.styles = [
|
3917
3922
|
E`
|
3918
3923
|
:host {
|
3919
3924
|
display: block;
|
3920
3925
|
}
|
3921
3926
|
`
|
3922
3927
|
];
|
3923
|
-
|
3928
|
+
un([
|
3924
3929
|
w({ attribute: !0 })
|
3925
|
-
],
|
3926
|
-
|
3930
|
+
], ze.prototype, "name", 2);
|
3931
|
+
un([
|
3927
3932
|
C()
|
3928
|
-
],
|
3929
|
-
|
3933
|
+
], ze.prototype, "widget", 2);
|
3934
|
+
un([
|
3930
3935
|
C()
|
3931
|
-
],
|
3932
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
3936
|
+
], ze.prototype, "status", 2);
|
3937
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", ln);
|
3933
3938
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", X);
|
3934
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
3935
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
3936
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
3937
|
-
class
|
3939
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", ui);
|
3940
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", hn);
|
3941
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", ze);
|
3942
|
+
class Pa {
|
3938
3943
|
constructor(e) {
|
3939
3944
|
this._message = null, this._host = e, e.addController(this);
|
3940
3945
|
}
|
@@ -3950,19 +3955,19 @@ class Oa {
|
|
3950
3955
|
return !!this.message;
|
3951
3956
|
}
|
3952
3957
|
}
|
3953
|
-
class
|
3958
|
+
class ls {
|
3954
3959
|
constructor(e, t, n, i, r) {
|
3955
|
-
this.id = e, this.providerKey = t, this.providerOptions = n, this.component = r, this.provider$ = new
|
3956
|
-
de((l) => l ? l.onComplete() :
|
3960
|
+
this.id = e, this.providerKey = t, this.providerOptions = n, this.component = r, this.provider$ = new j(null), this.entries$ = new j([]), this.removeEntryAction$ = new _(), this.kill$ = new _(), this.isTyping$ = new j(!1), this.data$ = new j({}), this.complete$ = this.provider$.pipe(
|
3961
|
+
de((l) => l ? l.onComplete() : Pe)
|
3957
3962
|
);
|
3958
3963
|
const o = this._getProviderFactory(t);
|
3959
3964
|
if (!o)
|
3960
3965
|
throw new Error(`No provider with key "${t}" was found.`);
|
3961
3966
|
this.data$.next(i);
|
3962
3967
|
const a = o(this.component);
|
3963
|
-
this.provider$.next(a), a.actions().pipe(
|
3968
|
+
this.provider$.next(a), a.actions().pipe(Mt(this.kill$)).subscribe((l) => {
|
3964
3969
|
this.write(l);
|
3965
|
-
}), a.isTyping().pipe(
|
3970
|
+
}), a.isTyping().pipe(Mt(this.kill$)).subscribe((l) => {
|
3966
3971
|
this.isTyping$.next(l);
|
3967
3972
|
});
|
3968
3973
|
}
|
@@ -3990,14 +3995,14 @@ class as {
|
|
3990
3995
|
};
|
3991
3996
|
}
|
3992
3997
|
write(e) {
|
3993
|
-
this._addEntryRemoveHandler(e), this.entries$.pipe(
|
3998
|
+
this._addEntryRemoveHandler(e), this.entries$.pipe(It(1)).subscribe((t) => {
|
3994
3999
|
this.entries$.next([...t, e]);
|
3995
4000
|
});
|
3996
4001
|
}
|
3997
4002
|
_addEntryRemoveHandler(e) {
|
3998
4003
|
e.remove$.pipe(
|
3999
4004
|
de(() => this.entries$),
|
4000
|
-
|
4005
|
+
It(1)
|
4001
4006
|
).subscribe((t) => {
|
4002
4007
|
this.removeEntryAction$.next(e), this.entries$.next(t.filter((n) => n !== e));
|
4003
4008
|
});
|
@@ -4006,9 +4011,9 @@ class as {
|
|
4006
4011
|
return this.component.platform.registeredProviders.get(e);
|
4007
4012
|
}
|
4008
4013
|
}
|
4009
|
-
class
|
4014
|
+
class Ra {
|
4010
4015
|
constructor(e) {
|
4011
|
-
this.component = e, this.currentSession$ = new
|
4016
|
+
this.component = e, this.currentSession$ = new j(null), this.sessions = [], this.storage = null, Qe(e, "handover").subscribe((t) => {
|
4012
4017
|
const n = this._createNewSession(
|
4013
4018
|
t.detail.providerKey,
|
4014
4019
|
t.detail.providerOptions
|
@@ -4051,7 +4056,7 @@ class Pa {
|
|
4051
4056
|
);
|
4052
4057
|
return e ? {
|
4053
4058
|
sessions: e.sessions.map(
|
4054
|
-
(t) => new
|
4059
|
+
(t) => new ls(
|
4055
4060
|
t.id,
|
4056
4061
|
t.providerKey,
|
4057
4062
|
t.providerOptions,
|
@@ -4088,8 +4093,8 @@ class Pa {
|
|
4088
4093
|
this.storage.set("conversation", t);
|
4089
4094
|
}
|
4090
4095
|
_createNewSession(e, t = {}) {
|
4091
|
-
const n = this._getStoredSessions(), i = new
|
4092
|
-
|
4096
|
+
const n = this._getStoredSessions(), i = new ls(
|
4097
|
+
zs(),
|
4093
4098
|
e,
|
4094
4099
|
t,
|
4095
4100
|
{},
|
@@ -4104,12 +4109,12 @@ class Pa {
|
|
4104
4109
|
return this.component.properties.providers[0];
|
4105
4110
|
}
|
4106
4111
|
}
|
4107
|
-
class
|
4112
|
+
class Ia {
|
4108
4113
|
constructor(e, t) {
|
4109
|
-
this.state$ = e, this.component = t, this.entries$ = new
|
4114
|
+
this.state$ = e, this.component = t, this.entries$ = new j([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new Ra(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
|
4110
4115
|
de((n) => n ? n.provider$.pipe(
|
4111
|
-
de((i) => i ? i.isTyping() :
|
4112
|
-
) :
|
4116
|
+
de((i) => i ? i.isTyping() : Rt(!1))
|
4117
|
+
) : Rt(!1))
|
4113
4118
|
), e.subscribe((n) => {
|
4114
4119
|
switch (n) {
|
4115
4120
|
case "init":
|
@@ -4135,16 +4140,16 @@ class Ra {
|
|
4135
4140
|
this.session$.pipe(
|
4136
4141
|
de((e) => {
|
4137
4142
|
if (!e)
|
4138
|
-
return
|
4139
|
-
const t = e.removeEntryAction$.pipe(
|
4140
|
-
|
4143
|
+
return Pe;
|
4144
|
+
const t = e.removeEntryAction$.pipe(zt(this.entries$)).pipe(
|
4145
|
+
Ye(([i, r]) => r.filter((o) => o.id !== i.id))
|
4141
4146
|
), n = e.entries().pipe(
|
4142
|
-
|
4147
|
+
Ye((i) => {
|
4143
4148
|
const r = this.entries$.value, o = i.filter((a) => r.findIndex((l) => l.id === a.id) === -1);
|
4144
4149
|
return [...r, ...o];
|
4145
4150
|
})
|
4146
4151
|
);
|
4147
|
-
return
|
4152
|
+
return kr(t, n);
|
4148
4153
|
})
|
4149
4154
|
).subscribe((e) => {
|
4150
4155
|
this.entries$.next(e);
|
@@ -4155,12 +4160,12 @@ class Ra {
|
|
4155
4160
|
(e = this.sessionService) == null || e.startSession();
|
4156
4161
|
}
|
4157
4162
|
}
|
4158
|
-
var
|
4159
|
-
for (var i = n > 1 ? void 0 : n ?
|
4163
|
+
var Ma = Object.defineProperty, za = Object.getOwnPropertyDescriptor, Ua = (s, e, t, n) => {
|
4164
|
+
for (var i = n > 1 ? void 0 : n ? za(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4160
4165
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4161
|
-
return n && i &&
|
4166
|
+
return n && i && Ma(e, t, i), i;
|
4162
4167
|
};
|
4163
|
-
class
|
4168
|
+
class pn extends k {
|
4164
4169
|
connectedCallback() {
|
4165
4170
|
var e;
|
4166
4171
|
super.connectedCallback(), (e = this.entry.didUpdate) == null || e.subscribe(() => {
|
@@ -4178,17 +4183,17 @@ class un extends k {
|
|
4178
4183
|
if (!e && !t)
|
4179
4184
|
return g;
|
4180
4185
|
let n = "";
|
4181
|
-
return e ? t ? n = `${e}: ${this._getTimestamp(t)}` : n = e : t && (n = this._getTimestamp(t)),
|
4186
|
+
return e ? t ? n = `${e}: ${this._getTimestamp(t)}` : n = e : t && (n = this._getTimestamp(t)), v`<p class="conversation-timestamp">${n}</p>`;
|
4182
4187
|
}
|
4183
4188
|
_renderDeliveryStatus(e) {
|
4184
|
-
return e === "delivered" ?
|
4185
|
-
svg=${
|
4189
|
+
return e === "delivered" ? v`<telia-icon
|
4190
|
+
svg=${Kr.svg}
|
4186
4191
|
size="sm"
|
4187
|
-
></telia-icon>` : e === "failed" ?
|
4188
|
-
svg=${
|
4192
|
+
></telia-icon>` : e === "failed" ? v`<telia-icon
|
4193
|
+
svg=${Gr.svg}
|
4189
4194
|
size="sm"
|
4190
4195
|
title="Message could not be delivered"
|
4191
|
-
></telia-icon>` :
|
4196
|
+
></telia-icon>` : v`<telia-icon svg=${Xr.svg} size="sm"></telia-icon>`;
|
4192
4197
|
}
|
4193
4198
|
_dispatchEntryAction(e) {
|
4194
4199
|
this.entry.actions$.next(e.detail);
|
@@ -4197,10 +4202,10 @@ class un extends k {
|
|
4197
4202
|
var e, t;
|
4198
4203
|
switch (this.entry.type) {
|
4199
4204
|
case W.System:
|
4200
|
-
return
|
4205
|
+
return v`
|
4201
4206
|
<div class="conversation-system-message">
|
4202
4207
|
${this.entry.messages.map(
|
4203
|
-
(n) =>
|
4208
|
+
(n) => v`
|
4204
4209
|
<div class="message-container">
|
4205
4210
|
<div class="message-content">
|
4206
4211
|
<conversation-group
|
@@ -4215,19 +4220,19 @@ class un extends k {
|
|
4215
4220
|
</div>
|
4216
4221
|
`;
|
4217
4222
|
case W.Agent:
|
4218
|
-
return
|
4223
|
+
return v`<div
|
4219
4224
|
class=${be({
|
4220
4225
|
"conversation-agent-message": !0,
|
4221
4226
|
"has-avatar": !!((e = this.entry.sender) != null && e.avatar)
|
4222
4227
|
})}
|
4223
4228
|
>
|
4224
|
-
${typeof ((t = this.entry.sender) == null ? void 0 : t.avatar) == "string" ?
|
4229
|
+
${typeof ((t = this.entry.sender) == null ? void 0 : t.avatar) == "string" ? v`<div class="avatar">
|
4225
4230
|
<img src=${this.entry.sender.avatar} />
|
4226
4231
|
</div>` : g}
|
4227
4232
|
|
4228
4233
|
<div class="entry-content">
|
4229
4234
|
${this.entry.messages.map(
|
4230
|
-
(n) =>
|
4235
|
+
(n) => v`
|
4231
4236
|
<div class="message-container">
|
4232
4237
|
<div class="message-content">
|
4233
4238
|
<conversation-group .group=${n}></conversation-group>
|
@@ -4244,7 +4249,7 @@ class un extends k {
|
|
4244
4249
|
</div>
|
4245
4250
|
</div>`;
|
4246
4251
|
case W.User:
|
4247
|
-
return
|
4252
|
+
return v`<div
|
4248
4253
|
class=${be({
|
4249
4254
|
"conversation-user-message": !0,
|
4250
4255
|
"has-error": this.entry.status === "failed"
|
@@ -4252,7 +4257,7 @@ class un extends k {
|
|
4252
4257
|
>
|
4253
4258
|
<div class="entry-content">
|
4254
4259
|
${this.entry.messages.map(
|
4255
|
-
(n) =>
|
4260
|
+
(n) => v`
|
4256
4261
|
<div class="message-container">
|
4257
4262
|
<div class="message-content">
|
4258
4263
|
<conversation-group .group=${n}></conversation-group>
|
@@ -4274,7 +4279,7 @@ class un extends k {
|
|
4274
4279
|
}
|
4275
4280
|
}
|
4276
4281
|
}
|
4277
|
-
|
4282
|
+
pn.styles = [
|
4278
4283
|
E`
|
4279
4284
|
:host {
|
4280
4285
|
box-sizing: border-box;
|
@@ -4397,15 +4402,15 @@ un.styles = [
|
|
4397
4402
|
}
|
4398
4403
|
`
|
4399
4404
|
];
|
4400
|
-
|
4405
|
+
Ua([
|
4401
4406
|
w({ attribute: !1 })
|
4402
|
-
],
|
4403
|
-
var
|
4404
|
-
for (var i = n > 1 ? void 0 : n ?
|
4407
|
+
], pn.prototype, "entry", 2);
|
4408
|
+
var ja = Object.defineProperty, Da = Object.getOwnPropertyDescriptor, pi = (s, e, t, n) => {
|
4409
|
+
for (var i = n > 1 ? void 0 : n ? Da(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4405
4410
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4406
|
-
return n && i &&
|
4411
|
+
return n && i && ja(e, t, i), i;
|
4407
4412
|
};
|
4408
|
-
class
|
4413
|
+
class gt extends k {
|
4409
4414
|
constructor() {
|
4410
4415
|
super(...arguments), this.entries = [], this.loading = !0;
|
4411
4416
|
}
|
@@ -4414,14 +4419,14 @@ class mt extends k {
|
|
4414
4419
|
this.dispatchEvent(t);
|
4415
4420
|
}
|
4416
4421
|
render() {
|
4417
|
-
return
|
4422
|
+
return v`<div class="conversation-feed">
|
4418
4423
|
${this.entries.map(
|
4419
|
-
(e) =>
|
4424
|
+
(e) => v`<div class="conversation-entry" tabindex="-1">
|
4420
4425
|
<conversation-entry
|
4421
4426
|
.entry=${e}
|
4422
4427
|
${Nt({
|
4423
4428
|
keyframeOptions: {},
|
4424
|
-
in:
|
4429
|
+
in: ss,
|
4425
4430
|
stabilizeOut: !0,
|
4426
4431
|
skipInitial: !1
|
4427
4432
|
})}
|
@@ -4429,11 +4434,11 @@ class mt extends k {
|
|
4429
4434
|
</conversation-entry>
|
4430
4435
|
</div>`
|
4431
4436
|
)}
|
4432
|
-
${this.loading ?
|
4437
|
+
${this.loading ? v`<ace-typing-state
|
4433
4438
|
${Nt({
|
4434
4439
|
keyframeOptions: {},
|
4435
|
-
in:
|
4436
|
-
out:
|
4440
|
+
in: ss,
|
4441
|
+
out: da,
|
4437
4442
|
stabilizeOut: !0,
|
4438
4443
|
skipInitial: !1
|
4439
4444
|
})}
|
@@ -4441,7 +4446,7 @@ class mt extends k {
|
|
4441
4446
|
</div>`;
|
4442
4447
|
}
|
4443
4448
|
}
|
4444
|
-
|
4449
|
+
gt.styles = [
|
4445
4450
|
E`
|
4446
4451
|
:host {
|
4447
4452
|
display: block;
|
@@ -4460,41 +4465,41 @@ mt.styles = [
|
|
4460
4465
|
}
|
4461
4466
|
`
|
4462
4467
|
];
|
4463
|
-
|
4468
|
+
pi([
|
4464
4469
|
w({ attribute: !1 })
|
4465
|
-
],
|
4466
|
-
|
4470
|
+
], gt.prototype, "entries", 2);
|
4471
|
+
pi([
|
4467
4472
|
w({ type: Boolean })
|
4468
|
-
],
|
4473
|
+
], gt.prototype, "loading", 2);
|
4469
4474
|
/**
|
4470
4475
|
* @license
|
4471
4476
|
* Copyright 2021 Google LLC
|
4472
4477
|
* SPDX-License-Identifier: BSD-3-Clause
|
4473
4478
|
*/
|
4474
|
-
const
|
4479
|
+
const Ha = (s, e, t) => {
|
4475
4480
|
for (const n of e)
|
4476
4481
|
if (n[0] === s)
|
4477
4482
|
return (0, n[1])();
|
4478
4483
|
return t == null ? void 0 : t();
|
4479
4484
|
};
|
4480
|
-
var
|
4481
|
-
for (var i = n > 1 ? void 0 : n ?
|
4485
|
+
var Ba = Object.defineProperty, Na = Object.getOwnPropertyDescriptor, Fa = (s, e, t, n) => {
|
4486
|
+
for (var i = n > 1 ? void 0 : n ? Na(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4482
4487
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4483
|
-
return n && i &&
|
4488
|
+
return n && i && Ba(e, t, i), i;
|
4484
4489
|
};
|
4485
|
-
class
|
4490
|
+
class dn extends k {
|
4486
4491
|
render() {
|
4487
|
-
return
|
4492
|
+
return v`
|
4488
4493
|
<div class="message-group">
|
4489
4494
|
${this.group.items.map(
|
4490
|
-
([e, t, n]) =>
|
4491
|
-
${
|
4495
|
+
([e, t, n]) => v`
|
4496
|
+
${Ha(
|
4492
4497
|
e,
|
4493
4498
|
[
|
4494
|
-
["html", () =>
|
4499
|
+
["html", () => v`<message-type-html .message=${t} />`],
|
4495
4500
|
[
|
4496
4501
|
"markdown",
|
4497
|
-
() =>
|
4502
|
+
() => v`<message-type-markdown .message=${t} />`
|
4498
4503
|
]
|
4499
4504
|
],
|
4500
4505
|
() => {
|
@@ -4502,7 +4507,7 @@ class pn extends k {
|
|
4502
4507
|
if (!i)
|
4503
4508
|
return g;
|
4504
4509
|
const r = new i(n || null);
|
4505
|
-
return
|
4510
|
+
return v`${r}`;
|
4506
4511
|
}
|
4507
4512
|
)}
|
4508
4513
|
`
|
@@ -4511,7 +4516,7 @@ class pn extends k {
|
|
4511
4516
|
`;
|
4512
4517
|
}
|
4513
4518
|
}
|
4514
|
-
|
4519
|
+
dn.styles = [
|
4515
4520
|
E`
|
4516
4521
|
:host {
|
4517
4522
|
box-sizing: border-box;
|
@@ -4527,19 +4532,19 @@ pn.styles = [
|
|
4527
4532
|
}
|
4528
4533
|
`
|
4529
4534
|
];
|
4530
|
-
|
4535
|
+
Fa([
|
4531
4536
|
w({ attribute: !1 })
|
4532
|
-
],
|
4533
|
-
class
|
4537
|
+
], dn.prototype, "group", 2);
|
4538
|
+
class di extends k {
|
4534
4539
|
render() {
|
4535
|
-
return
|
4540
|
+
return v`<div class="container">
|
4536
4541
|
<div class="dot"></div>
|
4537
4542
|
<div class="dot"></div>
|
4538
4543
|
<div class="dot"></div>
|
4539
4544
|
</div>`;
|
4540
4545
|
}
|
4541
4546
|
}
|
4542
|
-
|
4547
|
+
di.styles = [
|
4543
4548
|
E`
|
4544
4549
|
:host {
|
4545
4550
|
display: block;
|
@@ -4581,9 +4586,9 @@ pi.styles = [
|
|
4581
4586
|
* Copyright 2017 Google LLC
|
4582
4587
|
* SPDX-License-Identifier: BSD-3-Clause
|
4583
4588
|
*/
|
4584
|
-
class Ft extends
|
4589
|
+
class Ft extends an {
|
4585
4590
|
constructor(e) {
|
4586
|
-
if (super(e), this.it = g, e.type !==
|
4591
|
+
if (super(e), this.it = g, e.type !== dt.CHILD)
|
4587
4592
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
4588
4593
|
}
|
4589
4594
|
render(e) {
|
@@ -4601,20 +4606,20 @@ class Ft extends on {
|
|
4601
4606
|
}
|
4602
4607
|
}
|
4603
4608
|
Ft.directiveName = "unsafeHTML", Ft.resultType = 1;
|
4604
|
-
const
|
4605
|
-
var
|
4606
|
-
for (var i = n > 1 ? void 0 : n ?
|
4609
|
+
const qa = ft(Ft);
|
4610
|
+
var Za = Object.defineProperty, Wa = Object.getOwnPropertyDescriptor, Ya = (s, e, t, n) => {
|
4611
|
+
for (var i = n > 1 ? void 0 : n ? Wa(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4607
4612
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4608
|
-
return n && i &&
|
4613
|
+
return n && i && Za(e, t, i), i;
|
4609
4614
|
};
|
4610
|
-
class
|
4615
|
+
class fn extends k {
|
4611
4616
|
render() {
|
4612
|
-
return
|
4613
|
-
${
|
4617
|
+
return v`<div class="message-type-html">
|
4618
|
+
${qa(this.message.content)}
|
4614
4619
|
</div>`;
|
4615
4620
|
}
|
4616
4621
|
}
|
4617
|
-
|
4622
|
+
fn.styles = [
|
4618
4623
|
E`
|
4619
4624
|
:host {
|
4620
4625
|
box-sizing: border-box;
|
@@ -4651,10 +4656,10 @@ dn.styles = [
|
|
4651
4656
|
}
|
4652
4657
|
`
|
4653
4658
|
];
|
4654
|
-
|
4659
|
+
Ya([
|
4655
4660
|
w({ attribute: !1 })
|
4656
|
-
],
|
4657
|
-
function
|
4661
|
+
], fn.prototype, "message", 2);
|
4662
|
+
function gn() {
|
4658
4663
|
return {
|
4659
4664
|
async: !1,
|
4660
4665
|
breaks: !1,
|
@@ -4668,43 +4673,43 @@ function fn() {
|
|
4668
4673
|
walkTokens: null
|
4669
4674
|
};
|
4670
4675
|
}
|
4671
|
-
let ae =
|
4672
|
-
function
|
4676
|
+
let ae = gn();
|
4677
|
+
function fi(s) {
|
4673
4678
|
ae = s;
|
4674
4679
|
}
|
4675
|
-
const
|
4680
|
+
const gi = /[&<>"']/, Qa = new RegExp(gi.source, "g"), mi = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Ga = new RegExp(mi.source, "g"), Ka = {
|
4676
4681
|
"&": "&",
|
4677
4682
|
"<": "<",
|
4678
4683
|
">": ">",
|
4679
4684
|
'"': """,
|
4680
4685
|
"'": "'"
|
4681
|
-
},
|
4686
|
+
}, cs = (s) => Ka[s];
|
4682
4687
|
function L(s, e) {
|
4683
4688
|
if (e) {
|
4684
|
-
if (
|
4685
|
-
return s.replace(
|
4686
|
-
} else if (
|
4687
|
-
return s.replace(
|
4689
|
+
if (gi.test(s))
|
4690
|
+
return s.replace(Qa, cs);
|
4691
|
+
} else if (mi.test(s))
|
4692
|
+
return s.replace(Ga, cs);
|
4688
4693
|
return s;
|
4689
4694
|
}
|
4690
|
-
const
|
4691
|
-
function
|
4692
|
-
return s.replace(
|
4695
|
+
const Xa = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
|
4696
|
+
function Va(s) {
|
4697
|
+
return s.replace(Xa, (e, t) => (t = t.toLowerCase(), t === "colon" ? ":" : t.charAt(0) === "#" ? t.charAt(1) === "x" ? String.fromCharCode(parseInt(t.substring(2), 16)) : String.fromCharCode(+t.substring(1)) : ""));
|
4693
4698
|
}
|
4694
|
-
const
|
4699
|
+
const Ja = /(^|[^\[])\^/g;
|
4695
4700
|
function y(s, e) {
|
4696
4701
|
let t = typeof s == "string" ? s : s.source;
|
4697
4702
|
e = e || "";
|
4698
4703
|
const n = {
|
4699
4704
|
replace: (i, r) => {
|
4700
4705
|
let o = typeof r == "string" ? r : r.source;
|
4701
|
-
return o = o.replace(
|
4706
|
+
return o = o.replace(Ja, "$1"), t = t.replace(i, o), n;
|
4702
4707
|
},
|
4703
4708
|
getRegex: () => new RegExp(t, e)
|
4704
4709
|
};
|
4705
4710
|
return n;
|
4706
4711
|
}
|
4707
|
-
function
|
4712
|
+
function hs(s) {
|
4708
4713
|
try {
|
4709
4714
|
s = encodeURI(s).replace(/%25/g, "%");
|
4710
4715
|
} catch {
|
@@ -4713,7 +4718,7 @@ function cs(s) {
|
|
4713
4718
|
return s;
|
4714
4719
|
}
|
4715
4720
|
const Se = { exec: () => null };
|
4716
|
-
function
|
4721
|
+
function us(s, e) {
|
4717
4722
|
const t = s.replace(/\|/g, (r, o, a) => {
|
4718
4723
|
let l = !1, c = o;
|
4719
4724
|
for (; --c >= 0 && a[c] === "\\"; )
|
@@ -4731,7 +4736,7 @@ function hs(s, e) {
|
|
4731
4736
|
n[i] = n[i].trim().replace(/\\\|/g, "|");
|
4732
4737
|
return n;
|
4733
4738
|
}
|
4734
|
-
function
|
4739
|
+
function Ne(s, e, t) {
|
4735
4740
|
const n = s.length;
|
4736
4741
|
if (n === 0)
|
4737
4742
|
return "";
|
@@ -4747,7 +4752,7 @@ function Fe(s, e, t) {
|
|
4747
4752
|
}
|
4748
4753
|
return s.slice(0, n - i);
|
4749
4754
|
}
|
4750
|
-
function
|
4755
|
+
function el(s, e) {
|
4751
4756
|
if (s.indexOf(e[1]) === -1)
|
4752
4757
|
return -1;
|
4753
4758
|
let t = 0;
|
@@ -4760,7 +4765,7 @@ function Ja(s, e) {
|
|
4760
4765
|
return n;
|
4761
4766
|
return -1;
|
4762
4767
|
}
|
4763
|
-
function
|
4768
|
+
function ps(s, e, t, n) {
|
4764
4769
|
const i = e.href, r = e.title ? L(e.title) : null, o = s[1].replace(/\\([\[\]])/g, "$1");
|
4765
4770
|
if (s[0].charAt(0) !== "!") {
|
4766
4771
|
n.state.inLink = !0;
|
@@ -4782,7 +4787,7 @@ function us(s, e, t, n) {
|
|
4782
4787
|
text: L(o)
|
4783
4788
|
};
|
4784
4789
|
}
|
4785
|
-
function
|
4790
|
+
function tl(s, e) {
|
4786
4791
|
const t = s.match(/^(\s+)(?:```)/);
|
4787
4792
|
if (t === null)
|
4788
4793
|
return e;
|
@@ -4797,7 +4802,7 @@ function el(s, e) {
|
|
4797
4802
|
}).join(`
|
4798
4803
|
`);
|
4799
4804
|
}
|
4800
|
-
class
|
4805
|
+
class nt {
|
4801
4806
|
// set by the lexer
|
4802
4807
|
constructor(e) {
|
4803
4808
|
x(this, "options");
|
@@ -4822,7 +4827,7 @@ class st {
|
|
4822
4827
|
type: "code",
|
4823
4828
|
raw: t[0],
|
4824
4829
|
codeBlockStyle: "indented",
|
4825
|
-
text: this.options.pedantic ? n :
|
4830
|
+
text: this.options.pedantic ? n : Ne(n, `
|
4826
4831
|
`)
|
4827
4832
|
};
|
4828
4833
|
}
|
@@ -4830,7 +4835,7 @@ class st {
|
|
4830
4835
|
fences(e) {
|
4831
4836
|
const t = this.rules.block.fences.exec(e);
|
4832
4837
|
if (t) {
|
4833
|
-
const n = t[0], i =
|
4838
|
+
const n = t[0], i = tl(n, t[3] || "");
|
4834
4839
|
return {
|
4835
4840
|
type: "code",
|
4836
4841
|
raw: n,
|
@@ -4844,7 +4849,7 @@ class st {
|
|
4844
4849
|
if (t) {
|
4845
4850
|
let n = t[2].trim();
|
4846
4851
|
if (/#$/.test(n)) {
|
4847
|
-
const i =
|
4852
|
+
const i = Ne(n, "#");
|
4848
4853
|
(this.options.pedantic || !i || / $/.test(i)) && (n = i.trim());
|
4849
4854
|
}
|
4850
4855
|
return {
|
@@ -4869,7 +4874,7 @@ class st {
|
|
4869
4874
|
if (t) {
|
4870
4875
|
let n = t[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g, `
|
4871
4876
|
$1`);
|
4872
|
-
n =
|
4877
|
+
n = Ne(n.replace(/^ *>[ \t]?/gm, ""), `
|
4873
4878
|
`);
|
4874
4879
|
const i = this.lexer.state.top;
|
4875
4880
|
this.lexer.state.top = !0;
|
@@ -4903,38 +4908,38 @@ class st {
|
|
4903
4908
|
break;
|
4904
4909
|
a = t[0], e = e.substring(a.length);
|
4905
4910
|
let u = t[2].split(`
|
4906
|
-
`, 1)[0].replace(/^\t+/, (
|
4911
|
+
`, 1)[0].replace(/^\t+/, (P) => " ".repeat(3 * P.length)), p = e.split(`
|
4907
4912
|
`, 1)[0], d = 0;
|
4908
4913
|
this.options.pedantic ? (d = 2, l = u.trimStart()) : (d = t[2].search(/[^ ]/), d = d > 4 ? 1 : d, l = u.slice(d), d += t[1].length);
|
4909
|
-
let
|
4914
|
+
let m = !1;
|
4910
4915
|
if (!u && /^ *$/.test(p) && (a += p + `
|
4911
4916
|
`, e = e.substring(p.length + 1), h = !0), !h) {
|
4912
|
-
const
|
4917
|
+
const P = new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), J = new RegExp(`^ {0,${Math.min(3, d - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), kn = new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:\`\`\`|~~~)`), _n = new RegExp(`^ {0,${Math.min(3, d - 1)}}#`);
|
4913
4918
|
for (; e; ) {
|
4914
|
-
const
|
4919
|
+
const bt = e.split(`
|
4915
4920
|
`, 1)[0];
|
4916
|
-
if (p =
|
4921
|
+
if (p = bt, this.options.pedantic && (p = p.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), kn.test(p) || _n.test(p) || P.test(p) || J.test(e))
|
4917
4922
|
break;
|
4918
4923
|
if (p.search(/[^ ]/) >= d || !p.trim())
|
4919
4924
|
l += `
|
4920
4925
|
` + p.slice(d);
|
4921
4926
|
else {
|
4922
|
-
if (
|
4927
|
+
if (m || u.search(/[^ ]/) >= 4 || kn.test(u) || _n.test(u) || J.test(u))
|
4923
4928
|
break;
|
4924
4929
|
l += `
|
4925
4930
|
` + p;
|
4926
4931
|
}
|
4927
|
-
!
|
4928
|
-
`, e = e.substring(
|
4932
|
+
!m && !p.trim() && (m = !0), a += bt + `
|
4933
|
+
`, e = e.substring(bt.length + 1), u = p.slice(d);
|
4929
4934
|
}
|
4930
4935
|
}
|
4931
4936
|
r.loose || (c ? r.loose = !0 : /\n *\n *$/.test(a) && (c = !0));
|
4932
|
-
let f = null,
|
4933
|
-
this.options.gfm && (f = /^\[[ xX]\] /.exec(l), f && (
|
4937
|
+
let f = null, O;
|
4938
|
+
this.options.gfm && (f = /^\[[ xX]\] /.exec(l), f && (O = f[0] !== "[ ] ", l = l.replace(/^\[[ xX]\] +/, ""))), r.items.push({
|
4934
4939
|
type: "list_item",
|
4935
4940
|
raw: a,
|
4936
4941
|
task: !!f,
|
4937
|
-
checked:
|
4942
|
+
checked: O,
|
4938
4943
|
loose: !1,
|
4939
4944
|
text: l,
|
4940
4945
|
tokens: []
|
@@ -4980,7 +4985,7 @@ class st {
|
|
4980
4985
|
const t = this.rules.block.table.exec(e);
|
4981
4986
|
if (!t || !/[:|]/.test(t[2]))
|
4982
4987
|
return;
|
4983
|
-
const n =
|
4988
|
+
const n = us(t[1]), i = t[2].replace(/^\||\| *$/g, "").split("|"), r = t[3] && t[3].trim() ? t[3].replace(/\n[ \t]*$/, "").split(`
|
4984
4989
|
`) : [], o = {
|
4985
4990
|
type: "table",
|
4986
4991
|
raw: t[0],
|
@@ -4997,7 +5002,7 @@ class st {
|
|
4997
5002
|
tokens: this.lexer.inline(a)
|
4998
5003
|
});
|
4999
5004
|
for (const a of r)
|
5000
|
-
o.rows.push(
|
5005
|
+
o.rows.push(us(a, o.header.length).map((l) => ({
|
5001
5006
|
text: l,
|
5002
5007
|
tokens: this.lexer.inline(l)
|
5003
5008
|
})));
|
@@ -5066,11 +5071,11 @@ class st {
|
|
5066
5071
|
if (!this.options.pedantic && /^</.test(n)) {
|
5067
5072
|
if (!/>$/.test(n))
|
5068
5073
|
return;
|
5069
|
-
const o =
|
5074
|
+
const o = Ne(n.slice(0, -1), "\\");
|
5070
5075
|
if ((n.length - o.length) % 2 === 0)
|
5071
5076
|
return;
|
5072
5077
|
} else {
|
5073
|
-
const o =
|
5078
|
+
const o = el(t[2], "()");
|
5074
5079
|
if (o > -1) {
|
5075
5080
|
const l = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + o;
|
5076
5081
|
t[2] = t[2].substring(0, o), t[0] = t[0].substring(0, l).trim(), t[3] = "";
|
@@ -5082,7 +5087,7 @@ class st {
|
|
5082
5087
|
o && (i = o[1], r = o[3]);
|
5083
5088
|
} else
|
5084
5089
|
r = t[3] ? t[3].slice(1, -1) : "";
|
5085
|
-
return i = i.trim(), /^</.test(i) && (this.options.pedantic && !/>$/.test(n) ? i = i.slice(1) : i = i.slice(1, -1)),
|
5090
|
+
return i = i.trim(), /^</.test(i) && (this.options.pedantic && !/>$/.test(n) ? i = i.slice(1) : i = i.slice(1, -1)), ps(t, {
|
5086
5091
|
href: i && i.replace(this.rules.inline.anyPunctuation, "$1"),
|
5087
5092
|
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
5088
5093
|
}, t[0], this.lexer);
|
@@ -5100,7 +5105,7 @@ class st {
|
|
5100
5105
|
text: o
|
5101
5106
|
};
|
5102
5107
|
}
|
5103
|
-
return
|
5108
|
+
return ps(n, r, n[0], this.lexer);
|
5104
5109
|
}
|
5105
5110
|
}
|
5106
5111
|
emStrong(e, t, n = "") {
|
@@ -5134,12 +5139,12 @@ class st {
|
|
5134
5139
|
tokens: this.lexer.inlineTokens(f)
|
5135
5140
|
};
|
5136
5141
|
}
|
5137
|
-
const
|
5142
|
+
const m = d.slice(2, -2);
|
5138
5143
|
return {
|
5139
5144
|
type: "strong",
|
5140
5145
|
raw: d,
|
5141
|
-
text:
|
5142
|
-
tokens: this.lexer.inlineTokens(
|
5146
|
+
text: m,
|
5147
|
+
tokens: this.lexer.inlineTokens(m)
|
5143
5148
|
};
|
5144
5149
|
}
|
5145
5150
|
}
|
@@ -5234,104 +5239,104 @@ class st {
|
|
5234
5239
|
}
|
5235
5240
|
}
|
5236
5241
|
}
|
5237
|
-
const
|
5238
|
-
blockquote:
|
5239
|
-
code:
|
5240
|
-
def:
|
5241
|
-
fences:
|
5242
|
-
heading:
|
5243
|
-
hr:
|
5244
|
-
html:
|
5245
|
-
lheading:
|
5246
|
-
list:
|
5247
|
-
newline:
|
5248
|
-
paragraph:
|
5242
|
+
const nl = /^(?: *(?:\n|$))+/, sl = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, il = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Ue = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, rl = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, vi = /(?:[*+-]|\d{1,9}[.)])/, bi = y(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, vi).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), mn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ol = /^[^\n]+/, vn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, al = y(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", vn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ll = y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, vi).getRegex(), mt = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", bn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, cl = y("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", bn).replace("tag", mt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), yi = y(mn).replace("hr", Ue).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", mt).getRegex(), hl = y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", yi).getRegex(), yn = {
|
5243
|
+
blockquote: hl,
|
5244
|
+
code: sl,
|
5245
|
+
def: al,
|
5246
|
+
fences: il,
|
5247
|
+
heading: rl,
|
5248
|
+
hr: Ue,
|
5249
|
+
html: cl,
|
5250
|
+
lheading: bi,
|
5251
|
+
list: ll,
|
5252
|
+
newline: nl,
|
5253
|
+
paragraph: yi,
|
5249
5254
|
table: Se,
|
5250
|
-
text:
|
5251
|
-
},
|
5252
|
-
...
|
5253
|
-
table:
|
5254
|
-
paragraph: y(
|
5255
|
-
},
|
5256
|
-
...
|
5257
|
-
html: y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",
|
5255
|
+
text: ol
|
5256
|
+
}, ds = y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Ue).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", mt).getRegex(), ul = {
|
5257
|
+
...yn,
|
5258
|
+
table: ds,
|
5259
|
+
paragraph: y(mn).replace("hr", Ue).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ds).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", mt).getRegex()
|
5260
|
+
}, pl = {
|
5261
|
+
...yn,
|
5262
|
+
html: y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", bn).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
5258
5263
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
5259
5264
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
5260
5265
|
fences: Se,
|
5261
5266
|
// fences not supported
|
5262
5267
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
5263
|
-
paragraph: y(
|
5264
|
-
]`).replace("lheading",
|
5265
|
-
},
|
5268
|
+
paragraph: y(mn).replace("hr", Ue).replace("heading", ` *#{1,6} *[^
|
5269
|
+
]`).replace("lheading", bi).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
5270
|
+
}, $i = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, dl = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, xi = /^( {2,}|\\)\n(?!\s*$)/, fl = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, je = "\\p{P}\\p{S}", gl = y(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, je).getRegex(), ml = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g, vl = y(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, je).getRegex(), bl = y("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, je).getRegex(), yl = y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, je).getRegex(), $l = y(/\\([punct])/, "gu").replace(/punct/g, je).getRegex(), xl = y(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), wl = y(bn).replace("(?:-->|$)", "-->").getRegex(), kl = y("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", wl).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), st = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, _l = y(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", st).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), wi = y(/^!?\[(label)\]\[(ref)\]/).replace("label", st).replace("ref", vn).getRegex(), ki = y(/^!?\[(ref)\](?:\[\])?/).replace("ref", vn).getRegex(), Sl = y("reflink|nolink(?!\\()", "g").replace("reflink", wi).replace("nolink", ki).getRegex(), $n = {
|
5266
5271
|
_backpedal: Se,
|
5267
5272
|
// only used for GFM url
|
5268
|
-
anyPunctuation:
|
5269
|
-
autolink:
|
5270
|
-
blockSkip:
|
5271
|
-
br:
|
5272
|
-
code:
|
5273
|
+
anyPunctuation: $l,
|
5274
|
+
autolink: xl,
|
5275
|
+
blockSkip: ml,
|
5276
|
+
br: xi,
|
5277
|
+
code: dl,
|
5273
5278
|
del: Se,
|
5274
|
-
emStrongLDelim:
|
5275
|
-
emStrongRDelimAst:
|
5276
|
-
emStrongRDelimUnd:
|
5277
|
-
escape:
|
5278
|
-
link:
|
5279
|
-
nolink:
|
5280
|
-
punctuation:
|
5281
|
-
reflink:
|
5282
|
-
reflinkSearch:
|
5283
|
-
tag:
|
5284
|
-
text:
|
5279
|
+
emStrongLDelim: vl,
|
5280
|
+
emStrongRDelimAst: bl,
|
5281
|
+
emStrongRDelimUnd: yl,
|
5282
|
+
escape: $i,
|
5283
|
+
link: _l,
|
5284
|
+
nolink: ki,
|
5285
|
+
punctuation: gl,
|
5286
|
+
reflink: wi,
|
5287
|
+
reflinkSearch: Sl,
|
5288
|
+
tag: kl,
|
5289
|
+
text: fl,
|
5285
5290
|
url: Se
|
5286
|
-
},
|
5287
|
-
|
5288
|
-
link: y(/^!?\[(label)\]\((.*?)\)/).replace("label",
|
5289
|
-
reflink: y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",
|
5291
|
+
}, Cl = {
|
5292
|
+
...$n,
|
5293
|
+
link: y(/^!?\[(label)\]\((.*?)\)/).replace("label", st).getRegex(),
|
5294
|
+
reflink: y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", st).getRegex()
|
5290
5295
|
}, qt = {
|
5291
|
-
|
5292
|
-
escape: y(
|
5296
|
+
...$n,
|
5297
|
+
escape: y($i).replace("])", "~|])").getRegex(),
|
5293
5298
|
url: y(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
5294
5299
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
5295
5300
|
del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,
|
5296
5301
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
5297
|
-
},
|
5302
|
+
}, Al = {
|
5298
5303
|
...qt,
|
5299
|
-
br: y(
|
5304
|
+
br: y(xi).replace("{2,}", "*").getRegex(),
|
5300
5305
|
text: y(qt.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
5301
|
-
},
|
5302
|
-
normal: bn,
|
5303
|
-
gfm: hl,
|
5304
|
-
pedantic: ul
|
5305
|
-
}, xe = {
|
5306
|
+
}, Fe = {
|
5306
5307
|
normal: yn,
|
5308
|
+
gfm: ul,
|
5309
|
+
pedantic: pl
|
5310
|
+
}, xe = {
|
5311
|
+
normal: $n,
|
5307
5312
|
gfm: qt,
|
5308
|
-
breaks:
|
5309
|
-
pedantic:
|
5313
|
+
breaks: Al,
|
5314
|
+
pedantic: Cl
|
5310
5315
|
};
|
5311
|
-
class
|
5316
|
+
class D {
|
5312
5317
|
constructor(e) {
|
5313
5318
|
x(this, "tokens");
|
5314
5319
|
x(this, "options");
|
5315
5320
|
x(this, "state");
|
5316
5321
|
x(this, "tokenizer");
|
5317
5322
|
x(this, "inlineQueue");
|
5318
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || ae, this.options.tokenizer = this.options.tokenizer || new
|
5323
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || ae, this.options.tokenizer = this.options.tokenizer || new nt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
5319
5324
|
inLink: !1,
|
5320
5325
|
inRawBlock: !1,
|
5321
5326
|
top: !0
|
5322
5327
|
};
|
5323
5328
|
const t = {
|
5324
|
-
block:
|
5329
|
+
block: Fe.normal,
|
5325
5330
|
inline: xe.normal
|
5326
5331
|
};
|
5327
|
-
this.options.pedantic ? (t.block =
|
5332
|
+
this.options.pedantic ? (t.block = Fe.pedantic, t.inline = xe.pedantic) : this.options.gfm && (t.block = Fe.gfm, this.options.breaks ? t.inline = xe.breaks : t.inline = xe.gfm), this.tokenizer.rules = t;
|
5328
5333
|
}
|
5329
5334
|
/**
|
5330
5335
|
* Expose Rules
|
5331
5336
|
*/
|
5332
5337
|
static get rules() {
|
5333
5338
|
return {
|
5334
|
-
block:
|
5339
|
+
block: Fe,
|
5335
5340
|
inline: xe
|
5336
5341
|
};
|
5337
5342
|
}
|
@@ -5339,13 +5344,13 @@ class j {
|
|
5339
5344
|
* Static Lex Method
|
5340
5345
|
*/
|
5341
5346
|
static lex(e, t) {
|
5342
|
-
return new
|
5347
|
+
return new D(t).lex(e);
|
5343
5348
|
}
|
5344
5349
|
/**
|
5345
5350
|
* Static Lex Inline Method
|
5346
5351
|
*/
|
5347
5352
|
static lexInline(e, t) {
|
5348
|
-
return new
|
5353
|
+
return new D(t).inlineTokens(e);
|
5349
5354
|
}
|
5350
5355
|
/**
|
5351
5356
|
* Preprocessing
|
@@ -5531,7 +5536,7 @@ class j {
|
|
5531
5536
|
return t;
|
5532
5537
|
}
|
5533
5538
|
}
|
5534
|
-
class
|
5539
|
+
class it {
|
5535
5540
|
constructor(e) {
|
5536
5541
|
x(this, "options");
|
5537
5542
|
this.options = e || ae;
|
@@ -5613,7 +5618,7 @@ ${e}</tr>
|
|
5613
5618
|
return `<del>${e}</del>`;
|
5614
5619
|
}
|
5615
5620
|
link(e, t, n) {
|
5616
|
-
const i =
|
5621
|
+
const i = hs(e);
|
5617
5622
|
if (i === null)
|
5618
5623
|
return n;
|
5619
5624
|
e = i;
|
@@ -5621,7 +5626,7 @@ ${e}</tr>
|
|
5621
5626
|
return t && (r += ' title="' + t + '"'), r += ">" + n + "</a>", r;
|
5622
5627
|
}
|
5623
5628
|
image(e, t, n) {
|
5624
|
-
const i =
|
5629
|
+
const i = hs(e);
|
5625
5630
|
if (i === null)
|
5626
5631
|
return n;
|
5627
5632
|
e = i;
|
@@ -5632,7 +5637,7 @@ ${e}</tr>
|
|
5632
5637
|
return e;
|
5633
5638
|
}
|
5634
5639
|
}
|
5635
|
-
class
|
5640
|
+
class xn {
|
5636
5641
|
// no need for block level renderers
|
5637
5642
|
strong(e) {
|
5638
5643
|
return e;
|
@@ -5662,24 +5667,24 @@ class $n {
|
|
5662
5667
|
return "";
|
5663
5668
|
}
|
5664
5669
|
}
|
5665
|
-
class
|
5670
|
+
class H {
|
5666
5671
|
constructor(e) {
|
5667
5672
|
x(this, "options");
|
5668
5673
|
x(this, "renderer");
|
5669
5674
|
x(this, "textRenderer");
|
5670
|
-
this.options = e || ae, this.options.renderer = this.options.renderer || new
|
5675
|
+
this.options = e || ae, this.options.renderer = this.options.renderer || new it(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.textRenderer = new xn();
|
5671
5676
|
}
|
5672
5677
|
/**
|
5673
5678
|
* Static Parse Method
|
5674
5679
|
*/
|
5675
5680
|
static parse(e, t) {
|
5676
|
-
return new
|
5681
|
+
return new H(t).parse(e);
|
5677
5682
|
}
|
5678
5683
|
/**
|
5679
5684
|
* Static Parse Inline Method
|
5680
5685
|
*/
|
5681
5686
|
static parseInline(e, t) {
|
5682
|
-
return new
|
5687
|
+
return new H(t).parseInline(e);
|
5683
5688
|
}
|
5684
5689
|
/**
|
5685
5690
|
* Parse Loop
|
@@ -5704,7 +5709,7 @@ class D {
|
|
5704
5709
|
}
|
5705
5710
|
case "heading": {
|
5706
5711
|
const o = r;
|
5707
|
-
n += this.renderer.heading(this.parseInline(o.tokens), o.depth,
|
5712
|
+
n += this.renderer.heading(this.parseInline(o.tokens), o.depth, Va(this.parseInline(o.tokens, this.textRenderer)));
|
5708
5713
|
continue;
|
5709
5714
|
}
|
5710
5715
|
case "code": {
|
@@ -5738,16 +5743,16 @@ class D {
|
|
5738
5743
|
const o = r, a = o.ordered, l = o.start, c = o.loose;
|
5739
5744
|
let h = "";
|
5740
5745
|
for (let u = 0; u < o.items.length; u++) {
|
5741
|
-
const p = o.items[u], d = p.checked,
|
5746
|
+
const p = o.items[u], d = p.checked, m = p.task;
|
5742
5747
|
let f = "";
|
5743
5748
|
if (p.task) {
|
5744
|
-
const
|
5745
|
-
c ? p.tokens.length > 0 && p.tokens[0].type === "paragraph" ? (p.tokens[0].text =
|
5749
|
+
const O = this.renderer.checkbox(!!d);
|
5750
|
+
c ? p.tokens.length > 0 && p.tokens[0].type === "paragraph" ? (p.tokens[0].text = O + " " + p.tokens[0].text, p.tokens[0].tokens && p.tokens[0].tokens.length > 0 && p.tokens[0].tokens[0].type === "text" && (p.tokens[0].tokens[0].text = O + " " + p.tokens[0].tokens[0].text)) : p.tokens.unshift({
|
5746
5751
|
type: "text",
|
5747
|
-
text:
|
5748
|
-
}) : f +=
|
5752
|
+
text: O + " "
|
5753
|
+
}) : f += O + " ";
|
5749
5754
|
}
|
5750
|
-
f += this.parse(p.tokens, c), h += this.renderer.listitem(f,
|
5755
|
+
f += this.parse(p.tokens, c), h += this.renderer.listitem(f, m, !!d);
|
5751
5756
|
}
|
5752
5757
|
n += this.renderer.list(h, a, l);
|
5753
5758
|
continue;
|
@@ -5885,20 +5890,20 @@ x(Ce, "passThroughHooks", /* @__PURE__ */ new Set([
|
|
5885
5890
|
"postprocess",
|
5886
5891
|
"processAllTokens"
|
5887
5892
|
]));
|
5888
|
-
var
|
5889
|
-
class
|
5893
|
+
var Le, Zt, rt, _i;
|
5894
|
+
class El {
|
5890
5895
|
constructor(...e) {
|
5891
|
-
|
5892
|
-
|
5893
|
-
x(this, "defaults",
|
5896
|
+
yt(this, Le);
|
5897
|
+
yt(this, rt);
|
5898
|
+
x(this, "defaults", gn());
|
5894
5899
|
x(this, "options", this.setOptions);
|
5895
|
-
x(this, "parse",
|
5896
|
-
x(this, "parseInline",
|
5897
|
-
x(this, "Parser",
|
5898
|
-
x(this, "Renderer",
|
5899
|
-
x(this, "TextRenderer",
|
5900
|
-
x(this, "Lexer",
|
5901
|
-
x(this, "Tokenizer",
|
5900
|
+
x(this, "parse", De(this, Le, Zt).call(this, D.lex, H.parse));
|
5901
|
+
x(this, "parseInline", De(this, Le, Zt).call(this, D.lexInline, H.parseInline));
|
5902
|
+
x(this, "Parser", H);
|
5903
|
+
x(this, "Renderer", it);
|
5904
|
+
x(this, "TextRenderer", xn);
|
5905
|
+
x(this, "Lexer", D);
|
5906
|
+
x(this, "Tokenizer", nt);
|
5902
5907
|
x(this, "Hooks", Ce);
|
5903
5908
|
this.use(...e);
|
5904
5909
|
}
|
@@ -5956,7 +5961,7 @@ class Al {
|
|
5956
5961
|
}
|
5957
5962
|
"childTokens" in r && r.childTokens && (t.childTokens[r.name] = r.childTokens);
|
5958
5963
|
}), i.extensions = t), n.renderer) {
|
5959
|
-
const r = this.defaults.renderer || new
|
5964
|
+
const r = this.defaults.renderer || new it(this.defaults);
|
5960
5965
|
for (const o in n.renderer) {
|
5961
5966
|
if (!(o in r))
|
5962
5967
|
throw new Error(`renderer '${o}' does not exist`);
|
@@ -5971,7 +5976,7 @@ class Al {
|
|
5971
5976
|
i.renderer = r;
|
5972
5977
|
}
|
5973
5978
|
if (n.tokenizer) {
|
5974
|
-
const r = this.defaults.tokenizer || new
|
5979
|
+
const r = this.defaults.tokenizer || new nt(this.defaults);
|
5975
5980
|
for (const o in n.tokenizer) {
|
5976
5981
|
if (!(o in r))
|
5977
5982
|
throw new Error(`tokenizer '${o}' does not exist`);
|
@@ -6019,17 +6024,17 @@ class Al {
|
|
6019
6024
|
return this.defaults = { ...this.defaults, ...e }, this;
|
6020
6025
|
}
|
6021
6026
|
lexer(e, t) {
|
6022
|
-
return
|
6027
|
+
return D.lex(e, t ?? this.defaults);
|
6023
6028
|
}
|
6024
6029
|
parser(e, t) {
|
6025
|
-
return
|
6030
|
+
return H.parse(e, t ?? this.defaults);
|
6026
6031
|
}
|
6027
6032
|
}
|
6028
|
-
|
6033
|
+
Le = new WeakSet(), Zt = function(e, t) {
|
6029
6034
|
return (n, i) => {
|
6030
6035
|
const r = { ...i }, o = { ...this.defaults, ...r };
|
6031
6036
|
this.defaults.async === !0 && r.async === !1 && (o.silent || console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."), o.async = !0);
|
6032
|
-
const a =
|
6037
|
+
const a = De(this, rt, _i).call(this, !!o.silent, !!o.async);
|
6033
6038
|
if (typeof n > "u" || n === null)
|
6034
6039
|
return a(new Error("marked(): input parameter is undefined or null"));
|
6035
6040
|
if (typeof n != "string")
|
@@ -6046,7 +6051,7 @@ Oe = new WeakSet(), Zt = function(e, t) {
|
|
6046
6051
|
return a(l);
|
6047
6052
|
}
|
6048
6053
|
};
|
6049
|
-
},
|
6054
|
+
}, rt = new WeakSet(), _i = function(e, t) {
|
6050
6055
|
return (n) => {
|
6051
6056
|
if (n.message += `
|
6052
6057
|
Please report this to https://github.com/markedjs/marked.`, e) {
|
@@ -6058,53 +6063,53 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
6058
6063
|
throw n;
|
6059
6064
|
};
|
6060
6065
|
};
|
6061
|
-
const oe = new
|
6062
|
-
function
|
6066
|
+
const oe = new El();
|
6067
|
+
function b(s, e) {
|
6063
6068
|
return oe.parse(s, e);
|
6064
6069
|
}
|
6065
|
-
|
6066
|
-
return oe.setOptions(s),
|
6070
|
+
b.options = b.setOptions = function(s) {
|
6071
|
+
return oe.setOptions(s), b.defaults = oe.defaults, fi(b.defaults), b;
|
6067
6072
|
};
|
6068
|
-
|
6069
|
-
|
6070
|
-
|
6071
|
-
return oe.use(...s),
|
6073
|
+
b.getDefaults = gn;
|
6074
|
+
b.defaults = ae;
|
6075
|
+
b.use = function(...s) {
|
6076
|
+
return oe.use(...s), b.defaults = oe.defaults, fi(b.defaults), b;
|
6072
6077
|
};
|
6073
|
-
|
6078
|
+
b.walkTokens = function(s, e) {
|
6074
6079
|
return oe.walkTokens(s, e);
|
6075
6080
|
};
|
6076
|
-
|
6077
|
-
|
6078
|
-
|
6079
|
-
|
6080
|
-
|
6081
|
-
|
6082
|
-
|
6083
|
-
|
6084
|
-
|
6085
|
-
|
6086
|
-
|
6087
|
-
|
6088
|
-
|
6089
|
-
|
6090
|
-
|
6091
|
-
|
6092
|
-
|
6093
|
-
var
|
6094
|
-
for (var i = n > 1 ? void 0 : n ?
|
6081
|
+
b.parseInline = oe.parseInline;
|
6082
|
+
b.Parser = H;
|
6083
|
+
b.parser = H.parse;
|
6084
|
+
b.Renderer = it;
|
6085
|
+
b.TextRenderer = xn;
|
6086
|
+
b.Lexer = D;
|
6087
|
+
b.lexer = D.lex;
|
6088
|
+
b.Tokenizer = nt;
|
6089
|
+
b.Hooks = Ce;
|
6090
|
+
b.parse = b;
|
6091
|
+
b.options;
|
6092
|
+
b.setOptions;
|
6093
|
+
b.use;
|
6094
|
+
b.walkTokens;
|
6095
|
+
b.parseInline;
|
6096
|
+
H.parse;
|
6097
|
+
D.lex;
|
6098
|
+
var Tl = Object.defineProperty, Ll = Object.getOwnPropertyDescriptor, Si = (s, e, t, n) => {
|
6099
|
+
for (var i = n > 1 ? void 0 : n ? Ll(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
6095
6100
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
6096
|
-
return n && i &&
|
6101
|
+
return n && i && Tl(e, t, i), i;
|
6097
6102
|
};
|
6098
|
-
|
6103
|
+
b.use({
|
6099
6104
|
renderer: {
|
6100
6105
|
link(s, e, t) {
|
6101
6106
|
return e || (e = t), `<a target="_blank" href="${s}" title="${e}">${t}</a>`;
|
6102
6107
|
}
|
6103
6108
|
}
|
6104
6109
|
});
|
6105
|
-
class
|
6110
|
+
class vt extends k {
|
6106
6111
|
constructor() {
|
6107
|
-
super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef =
|
6112
|
+
super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef = z(), this.contentRef = z(), this.autoScroll = !0, this.buffer = "", this.pointer = 0, this.imageRegexp = new RegExp(/!\[[^[]*\([^)]*\)/gm), this.includesImage = (e) => this.imageRegexp.test(e);
|
6108
6113
|
}
|
6109
6114
|
// Stop autoscroll on user interaction
|
6110
6115
|
handleAutoscroll() {
|
@@ -6146,14 +6151,14 @@ class bt extends k {
|
|
6146
6151
|
if (!e)
|
6147
6152
|
return;
|
6148
6153
|
this.buffer += e;
|
6149
|
-
const t =
|
6154
|
+
const t = b.parse(this.buffer), n = (i = this.contentRef.value) == null ? void 0 : i.querySelector(
|
6150
6155
|
"div:last-of-type"
|
6151
6156
|
);
|
6152
6157
|
if (this.includesImage(this.buffer))
|
6153
6158
|
(r = this.contentRef.value) == null || r.appendChild(document.createElement("div")), this.buffer = "";
|
6154
6159
|
else if (this.buffer.includes("!["))
|
6155
6160
|
return;
|
6156
|
-
n.innerHTML =
|
6161
|
+
n.innerHTML = Sr(t), this.applyCodeStyles(n), this.autoScroll && this.scrollRef.value.scrollIntoView();
|
6157
6162
|
}
|
6158
6163
|
// Apply white-space: pre-wrap to <code> elements
|
6159
6164
|
applyCodeStyles(e) {
|
@@ -6164,19 +6169,19 @@ class bt extends k {
|
|
6164
6169
|
});
|
6165
6170
|
}
|
6166
6171
|
render() {
|
6167
|
-
return
|
6168
|
-
<div class="message-type-markdown" ${
|
6172
|
+
return v`
|
6173
|
+
<div class="message-type-markdown" ${U(this.contentRef)}>
|
6169
6174
|
<div></div>
|
6170
6175
|
</div>
|
6171
|
-
<div class="scroll" ${
|
6172
|
-
${this.showLightbox ?
|
6176
|
+
<div class="scroll" ${U(this.scrollRef)}></div>
|
6177
|
+
${this.showLightbox ? v`<ace-lightbox
|
6173
6178
|
imageUrl="${this.imageUrl}"
|
6174
6179
|
altText="${this.altText}"
|
6175
6180
|
/>` : null}
|
6176
6181
|
`;
|
6177
6182
|
}
|
6178
6183
|
}
|
6179
|
-
|
6184
|
+
vt.styles = [
|
6180
6185
|
E`
|
6181
6186
|
:host {
|
6182
6187
|
box-sizing: border-box;
|
@@ -6217,18 +6222,18 @@ bt.styles = [
|
|
6217
6222
|
}
|
6218
6223
|
`
|
6219
6224
|
];
|
6220
|
-
|
6225
|
+
Si([
|
6221
6226
|
w({ attribute: !1 })
|
6222
|
-
],
|
6223
|
-
|
6227
|
+
], vt.prototype, "message", 2);
|
6228
|
+
Si([
|
6224
6229
|
C()
|
6225
|
-
],
|
6226
|
-
var
|
6227
|
-
for (var i = n > 1 ? void 0 : n ?
|
6230
|
+
], vt.prototype, "showLightbox", 2);
|
6231
|
+
var Ol = Object.defineProperty, Pl = Object.getOwnPropertyDescriptor, Rl = (s, e, t, n) => {
|
6232
|
+
for (var i = n > 1 ? void 0 : n ? Pl(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
6228
6233
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
6229
|
-
return n && i &&
|
6234
|
+
return n && i && Ol(e, t, i), i;
|
6230
6235
|
};
|
6231
|
-
class
|
6236
|
+
class wn extends k {
|
6232
6237
|
constructor() {
|
6233
6238
|
super(...arguments), this.escapeListener = (e) => {
|
6234
6239
|
e.key === "Escape" && this.closeLightbox();
|
@@ -6259,19 +6264,19 @@ class xn extends k {
|
|
6259
6264
|
}
|
6260
6265
|
}
|
6261
6266
|
render() {
|
6262
|
-
return
|
6267
|
+
return v`<div
|
6263
6268
|
class="lightbox"
|
6264
6269
|
tabindex="-1"
|
6265
6270
|
@keydown=${this.handleKeyDown}
|
6266
6271
|
>
|
6267
6272
|
<button class="close" @click=${this.closeLightbox}>
|
6268
|
-
<telia-icon svg=${
|
6273
|
+
<telia-icon svg=${Jr.svg} size="lg"></telia-icon>
|
6269
6274
|
</button>
|
6270
6275
|
<img src="${this.imageUrl}" alt="${this.altText ?? ""}" />
|
6271
6276
|
</div> `;
|
6272
6277
|
}
|
6273
6278
|
}
|
6274
|
-
|
6279
|
+
wn.styles = [
|
6275
6280
|
E`
|
6276
6281
|
:focus {
|
6277
6282
|
outline-color: var(--focus-color);
|
@@ -6312,26 +6317,26 @@ xn.styles = [
|
|
6312
6317
|
}
|
6313
6318
|
`
|
6314
6319
|
];
|
6315
|
-
|
6320
|
+
Rl([
|
6316
6321
|
w({ attribute: !0 })
|
6317
|
-
],
|
6318
|
-
var
|
6319
|
-
for (var i = n > 1 ? void 0 : n ?
|
6322
|
+
], wn.prototype, "imageUrl", 2);
|
6323
|
+
var Il = Object.defineProperty, Ml = Object.getOwnPropertyDescriptor, V = (s, e, t, n) => {
|
6324
|
+
for (var i = n > 1 ? void 0 : n ? Ml(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
6320
6325
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
6321
|
-
return n && i &&
|
6326
|
+
return n && i && Il(e, t, i), i;
|
6322
6327
|
};
|
6323
|
-
customElements.get("conversation-entry") || customElements.define("conversation-entry",
|
6324
|
-
customElements.get("ace-conversation-feed") || customElements.define("ace-conversation-feed",
|
6325
|
-
customElements.get("conversation-group") || customElements.define("conversation-group",
|
6326
|
-
customElements.get("ace-typing-state") || customElements.define("ace-typing-state",
|
6327
|
-
customElements.get("message-type-html") || customElements.define("message-type-html",
|
6328
|
-
customElements.get("message-type-markdown") || customElements.define("message-type-markdown",
|
6329
|
-
customElements.get("ace-lightbox") || customElements.define("ace-lightbox",
|
6330
|
-
const
|
6331
|
-
class
|
6328
|
+
customElements.get("conversation-entry") || customElements.define("conversation-entry", pn);
|
6329
|
+
customElements.get("ace-conversation-feed") || customElements.define("ace-conversation-feed", gt);
|
6330
|
+
customElements.get("conversation-group") || customElements.define("conversation-group", dn);
|
6331
|
+
customElements.get("ace-typing-state") || customElements.define("ace-typing-state", di);
|
6332
|
+
customElements.get("message-type-html") || customElements.define("message-type-html", fn);
|
6333
|
+
customElements.get("message-type-markdown") || customElements.define("message-type-markdown", vt);
|
6334
|
+
customElements.get("ace-lightbox") || customElements.define("ace-lightbox", wn);
|
6335
|
+
const Ci = hi(k);
|
6336
|
+
class M extends Ci {
|
6332
6337
|
constructor() {
|
6333
|
-
super(...arguments), this.message = "", this.disabledInput = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.isMuted = !1, this.conversationContentRef =
|
6334
|
-
de((e) => e ? e == null ? void 0 : e.provider$ :
|
6338
|
+
super(...arguments), this.message = "", this.disabledInput = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.isMuted = !1, this.conversationContentRef = z(), this.conversationFeedRef = z(), this.formRef = z(), this.inputRef = z(), this.scrollRef = z(), this.counterRef = z(), this.chatScrollHeight = 0, this.chatCurrentScrollPosition = 0, this.toast = new Pa(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.platform = null, this.entries = [], this.typing = !1, this.conversationState$ = new j("waiting"), this.stateMachine = new Ia(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
6339
|
+
de((e) => e ? e == null ? void 0 : e.provider$ : Rt(null))
|
6335
6340
|
), this.userTyping$ = new _();
|
6336
6341
|
}
|
6337
6342
|
async connectedCallback() {
|
@@ -6341,20 +6346,20 @@ class R extends Si {
|
|
6341
6346
|
);
|
6342
6347
|
this.platform = e || null;
|
6343
6348
|
const t = this.application.trigger;
|
6344
|
-
t && t.widgetActive$.pipe(
|
6349
|
+
t && t.widgetActive$.pipe(Mt(t.componentIsDestroyed$)).subscribe((n) => {
|
6345
6350
|
const i = this.conversationContentRef.value;
|
6346
6351
|
i && (n ? i.scrollTop = this.chatCurrentScrollPosition : this.chatCurrentScrollPosition = i.scrollTop);
|
6347
|
-
}), this.stateSubscription =
|
6352
|
+
}), this.stateSubscription = dr([
|
6348
6353
|
this.stateMachine.entries(),
|
6349
6354
|
this.stateMachine.isTyping()
|
6350
6355
|
]).subscribe(([n, i]) => {
|
6351
6356
|
this.entries = n, this.typing = i;
|
6352
|
-
}), this.userSubmitSubscription =
|
6357
|
+
}), this.userSubmitSubscription = Qe(
|
6353
6358
|
this,
|
6354
6359
|
"user-submit"
|
6355
|
-
).pipe(
|
6360
|
+
).pipe(zt(this.provider$)).subscribe(([n, i]) => {
|
6356
6361
|
i && i.onUserSubmit(n.detail);
|
6357
|
-
}), this._addHeaderOptions(), this.provider$.pipe(
|
6362
|
+
}), this._addHeaderOptions(), this.provider$.pipe(zt(this.provider$)).subscribe(([n, i]) => {
|
6358
6363
|
i && i.showChatOverlay$.pipe().subscribe((r) => {
|
6359
6364
|
this.chatOverlayActive = r;
|
6360
6365
|
});
|
@@ -6439,11 +6444,11 @@ class R extends Si {
|
|
6439
6444
|
return;
|
6440
6445
|
const t = this.application.texts, n = t.getOrFallback("conversation.mute", "Mute"), i = t.getOrFallback("conversation.unmute", "Unmute"), r = e.addOption({
|
6441
6446
|
label: this.isMuted ? i : n,
|
6442
|
-
icon: this.isMuted ?
|
6447
|
+
icon: this.isMuted ? Hn.svg : Bn.svg,
|
6443
6448
|
closeOnClick: !1,
|
6444
6449
|
datatestid: "options-mute-button",
|
6445
6450
|
onClick: () => {
|
6446
|
-
this.isMuted ? (this.isMuted = !1, this.application.unmute(), r.updateLabel(n), r.updateIcon(
|
6451
|
+
this.isMuted ? (this.isMuted = !1, this.application.unmute(), r.updateLabel(n), r.updateIcon(Bn.svg)) : (this.isMuted = !0, this.application.mute(), r.updateLabel(i), r.updateIcon(Hn.svg));
|
6447
6452
|
}
|
6448
6453
|
});
|
6449
6454
|
}
|
@@ -6473,7 +6478,7 @@ class R extends Si {
|
|
6473
6478
|
providerOptions: t
|
6474
6479
|
}
|
6475
6480
|
});
|
6476
|
-
return this.dispatchEvent(n), n.detail.complete ||
|
6481
|
+
return this.dispatchEvent(n), n.detail.complete || Pe;
|
6477
6482
|
}
|
6478
6483
|
firstUpdated() {
|
6479
6484
|
this.isMuted = this.application.storage.get("muteAudioNotifications") ?? !1;
|
@@ -6483,7 +6488,7 @@ class R extends Si {
|
|
6483
6488
|
const e = this.application.texts;
|
6484
6489
|
this.conversationState$.value === "waiting" && ((i = this.application) != null && i.storage) && this.platform && (this.stateMachine.setStorage(this.application.storage), this.conversationState$.next("init"));
|
6485
6490
|
const t = this.application.settings.components.conversation;
|
6486
|
-
return ((o = (r = t == null ? void 0 : t.properties) == null ? void 0 : r.chat) == null ? void 0 : o.isThirdPartyWidget) && (this.renderRoot.host.style.width = "100%"),
|
6491
|
+
return ((o = (r = t == null ? void 0 : t.properties) == null ? void 0 : r.chat) == null ? void 0 : o.isThirdPartyWidget) && (this.renderRoot.host.style.width = "100%"), v` <div
|
6487
6492
|
@action=${this._actionHandler}
|
6488
6493
|
class=${be({
|
6489
6494
|
conversation: !0,
|
@@ -6493,12 +6498,12 @@ class R extends Si {
|
|
6493
6498
|
"overlay-mode": this.chatOverlayActive
|
6494
6499
|
})}
|
6495
6500
|
>
|
6496
|
-
${this.chatOverlayActive ?
|
6501
|
+
${this.chatOverlayActive ? v`<div class="overlay-header">
|
6497
6502
|
<button
|
6498
6503
|
class="overlay-button"
|
6499
6504
|
@click=${() => this.chatOverlayActive = !1}
|
6500
6505
|
>
|
6501
|
-
<telia-icon svg=${
|
6506
|
+
<telia-icon svg=${Vr.svg}></telia-icon>
|
6502
6507
|
</button>
|
6503
6508
|
</div>` : g}
|
6504
6509
|
<div
|
@@ -6508,21 +6513,21 @@ class R extends Si {
|
|
6508
6513
|
})}
|
6509
6514
|
part="scroll-container"
|
6510
6515
|
aria-live="polite"
|
6511
|
-
${
|
6516
|
+
${U(this.conversationContentRef)}
|
6512
6517
|
>
|
6513
|
-
${this.toast.hasMessage() ?
|
6518
|
+
${this.toast.hasMessage() ? v`<div class="conversation__toast">${this.toast.message}</div>` : g}
|
6514
6519
|
<ace-conversation-feed
|
6515
6520
|
.entries=${this.entries}
|
6516
6521
|
.loading=${this.typing}
|
6517
|
-
${
|
6522
|
+
${U(this.conversationFeedRef)}
|
6518
6523
|
@updated=${this.onSessionUpdated}
|
6519
6524
|
></ace-conversation-feed>
|
6520
|
-
<div class="scroll" ${
|
6525
|
+
<div class="scroll" ${U(this.scrollRef)}></div>
|
6521
6526
|
</div>
|
6522
6527
|
<form
|
6523
6528
|
class="conversation-bottom"
|
6524
6529
|
@submit=${this._onSendMessage}
|
6525
|
-
${
|
6530
|
+
${U(this.formRef)}
|
6526
6531
|
>
|
6527
6532
|
<label for="chat-message-input" class="visually-hidden">
|
6528
6533
|
Chat message
|
@@ -6539,7 +6544,7 @@ class R extends Si {
|
|
6539
6544
|
?disabled=${this.disabledInput}
|
6540
6545
|
@input=${this._inputHandler}
|
6541
6546
|
@keydown=${this._keyDownHandler}
|
6542
|
-
${
|
6547
|
+
${U(this.inputRef)}
|
6543
6548
|
aria-valuenow=${this.textAreaLength}
|
6544
6549
|
aria-valuemax=${this.messageMaxLength}
|
6545
6550
|
aria-valuemin="0"
|
@@ -6554,9 +6559,9 @@ class R extends Si {
|
|
6554
6559
|
title=${e.getOrFallback("conversation.send-alt", "Send")}
|
6555
6560
|
?disabled=${this.disabledSubmit}
|
6556
6561
|
>
|
6557
|
-
<telia-icon svg=${
|
6562
|
+
<telia-icon svg=${to.svg}></telia-icon>
|
6558
6563
|
</button>
|
6559
|
-
<span class="counter" ${
|
6564
|
+
<span class="counter" ${U(this.counterRef)}>
|
6560
6565
|
${this.textAreaLength} / ${this.messageMaxLength}</span
|
6561
6566
|
>
|
6562
6567
|
</div>
|
@@ -6573,8 +6578,8 @@ class R extends Si {
|
|
6573
6578
|
</div>`;
|
6574
6579
|
}
|
6575
6580
|
}
|
6576
|
-
|
6577
|
-
|
6581
|
+
M.styles = [
|
6582
|
+
Ci.styles || [],
|
6578
6583
|
E`
|
6579
6584
|
:host {
|
6580
6585
|
font-family: var(--font-family);
|
@@ -6861,42 +6866,42 @@ R.styles = [
|
|
6861
6866
|
];
|
6862
6867
|
V([
|
6863
6868
|
C()
|
6864
|
-
],
|
6869
|
+
], M.prototype, "message", 2);
|
6865
6870
|
V([
|
6866
6871
|
C()
|
6867
|
-
],
|
6872
|
+
], M.prototype, "disabledInput", 2);
|
6868
6873
|
V([
|
6869
6874
|
C()
|
6870
|
-
],
|
6875
|
+
], M.prototype, "disabledSubmit", 2);
|
6871
6876
|
V([
|
6872
6877
|
C()
|
6873
|
-
],
|
6878
|
+
], M.prototype, "chatOverlayActive", 2);
|
6874
6879
|
V([
|
6875
6880
|
C()
|
6876
|
-
],
|
6881
|
+
], M.prototype, "textAreaLength", 2);
|
6877
6882
|
V([
|
6878
6883
|
C()
|
6879
|
-
],
|
6884
|
+
], M.prototype, "platform", 2);
|
6880
6885
|
V([
|
6881
6886
|
C()
|
6882
|
-
],
|
6887
|
+
], M.prototype, "entries", 2);
|
6883
6888
|
V([
|
6884
6889
|
C()
|
6885
|
-
],
|
6886
|
-
const
|
6890
|
+
], M.prototype, "typing", 2);
|
6891
|
+
const zl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
6887
6892
|
__proto__: null,
|
6888
|
-
Conversation:
|
6889
|
-
default:
|
6893
|
+
Conversation: M,
|
6894
|
+
default: M
|
6890
6895
|
}, Symbol.toStringTag, { value: "Module" }));
|
6891
6896
|
export {
|
6892
|
-
|
6893
|
-
|
6894
|
-
|
6895
|
-
|
6897
|
+
Ar as Agent,
|
6898
|
+
M as Conversation,
|
6899
|
+
jl as ConversationComponent,
|
6900
|
+
lt as ConversationEntry,
|
6896
6901
|
W as ConversationMessageType,
|
6897
|
-
|
6898
|
-
|
6899
|
-
|
6900
|
-
|
6901
|
-
|
6902
|
+
gs as ConversationPlatform,
|
6903
|
+
Hl as ConversationProvider,
|
6904
|
+
Er as User,
|
6905
|
+
Dl as findPlainTextLinks,
|
6906
|
+
Sr as truncateLongLinks
|
6902
6907
|
};
|