@telia-ace/widget-conversational-agent 1.1.126-rc.1 → 1.1.126-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +57 -57
- package/index.mjs +611 -604
- package/package.json +3 -3
package/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var _ = (n, e, t) =>
|
|
4
|
-
class
|
|
1
|
+
var Sa = Object.defineProperty;
|
|
2
|
+
var _a = (n, e, t) => e in n ? Sa(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var _ = (n, e, t) => _a(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
class Ts {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.registeredProviders = /* @__PURE__ */ new Map();
|
|
7
7
|
}
|
|
8
8
|
static async getInstance(e) {
|
|
9
9
|
let t = await e.get("conversation");
|
|
10
|
-
return t || (t = new
|
|
10
|
+
return t || (t = new Ts(), await e.register("conversation", t), t);
|
|
11
11
|
}
|
|
12
12
|
registerProvider(e, t) {
|
|
13
13
|
this.registeredProviders.set(e, t);
|
|
@@ -41,7 +41,7 @@ function ct(n, e) {
|
|
|
41
41
|
}
|
|
42
42
|
n.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ea(n, e, t, s) {
|
|
45
45
|
function i(r) {
|
|
46
46
|
return r instanceof t ? r : new t(function(o) {
|
|
47
47
|
o(r);
|
|
@@ -163,7 +163,7 @@ function rt(n, e, t) {
|
|
|
163
163
|
function et(n) {
|
|
164
164
|
return this instanceof et ? (this.v = n, this) : new et(n);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function Aa(n, e, t) {
|
|
167
167
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
168
168
|
var s = t.apply(n, e || []), i, r = [];
|
|
169
169
|
return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), a("next"), a("throw"), a("return", o), i[Symbol.asyncIterator] = function() {
|
|
@@ -339,9 +339,9 @@ function Gr(n) {
|
|
|
339
339
|
function Bi(n) {
|
|
340
340
|
E(n) ? n() : n.unsubscribe();
|
|
341
341
|
}
|
|
342
|
-
var
|
|
342
|
+
var Ca = {
|
|
343
343
|
Promise: void 0
|
|
344
|
-
},
|
|
344
|
+
}, Ra = {
|
|
345
345
|
setTimeout: function(n, e) {
|
|
346
346
|
for (var t = [], s = 2; s < arguments.length; s++)
|
|
347
347
|
t[s - 2] = arguments[s];
|
|
@@ -353,20 +353,20 @@ var Ra = {
|
|
|
353
353
|
delegate: void 0
|
|
354
354
|
};
|
|
355
355
|
function Zr(n) {
|
|
356
|
-
|
|
356
|
+
Ra.setTimeout(function() {
|
|
357
357
|
throw n;
|
|
358
358
|
});
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function tn() {
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Vt(n) {
|
|
363
363
|
n();
|
|
364
364
|
}
|
|
365
|
-
var
|
|
365
|
+
var Cs = (function(n) {
|
|
366
366
|
ct(e, n);
|
|
367
367
|
function e(t) {
|
|
368
368
|
var s = n.call(this) || this;
|
|
369
|
-
return s.isStopped = !1, t ? (s.destination = t, Gr(t) && t.add(s)) : s.destination =
|
|
369
|
+
return s.isStopped = !1, t ? (s.destination = t, Gr(t) && t.add(s)) : s.destination = Ia, s;
|
|
370
370
|
}
|
|
371
371
|
return e.create = function(t, s, i) {
|
|
372
372
|
return new ls(t, s, i);
|
|
@@ -393,7 +393,7 @@ var Ts = (function(n) {
|
|
|
393
393
|
this.unsubscribe();
|
|
394
394
|
}
|
|
395
395
|
}, e;
|
|
396
|
-
})($n),
|
|
396
|
+
})($n), La = (function() {
|
|
397
397
|
function n(e) {
|
|
398
398
|
this.partialObserver = e;
|
|
399
399
|
}
|
|
@@ -403,7 +403,7 @@ var Ts = (function(n) {
|
|
|
403
403
|
try {
|
|
404
404
|
t.next(e);
|
|
405
405
|
} catch (s) {
|
|
406
|
-
|
|
406
|
+
Gt(s);
|
|
407
407
|
}
|
|
408
408
|
}, n.prototype.error = function(e) {
|
|
409
409
|
var t = this.partialObserver;
|
|
@@ -411,17 +411,17 @@ var Ts = (function(n) {
|
|
|
411
411
|
try {
|
|
412
412
|
t.error(e);
|
|
413
413
|
} catch (s) {
|
|
414
|
-
|
|
414
|
+
Gt(s);
|
|
415
415
|
}
|
|
416
416
|
else
|
|
417
|
-
|
|
417
|
+
Gt(e);
|
|
418
418
|
}, n.prototype.complete = function() {
|
|
419
419
|
var e = this.partialObserver;
|
|
420
420
|
if (e.complete)
|
|
421
421
|
try {
|
|
422
422
|
e.complete();
|
|
423
423
|
} catch (t) {
|
|
424
|
-
|
|
424
|
+
Gt(t);
|
|
425
425
|
}
|
|
426
426
|
}, n;
|
|
427
427
|
})(), ls = (function(n) {
|
|
@@ -432,29 +432,29 @@ var Ts = (function(n) {
|
|
|
432
432
|
next: t ?? void 0,
|
|
433
433
|
error: s ?? void 0,
|
|
434
434
|
complete: i ?? void 0
|
|
435
|
-
} : o = t, r.destination = new
|
|
435
|
+
} : o = t, r.destination = new La(o), r;
|
|
436
436
|
}
|
|
437
437
|
return e;
|
|
438
|
-
})(
|
|
439
|
-
function
|
|
438
|
+
})(Cs);
|
|
439
|
+
function Gt(n) {
|
|
440
440
|
Zr(n);
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function Oa(n) {
|
|
443
443
|
throw n;
|
|
444
444
|
}
|
|
445
|
-
var
|
|
445
|
+
var Ia = {
|
|
446
446
|
closed: !0,
|
|
447
|
-
next:
|
|
448
|
-
error:
|
|
449
|
-
complete:
|
|
447
|
+
next: tn,
|
|
448
|
+
error: Oa,
|
|
449
|
+
complete: tn
|
|
450
450
|
}, Rs = (function() {
|
|
451
451
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
452
452
|
})();
|
|
453
|
-
function
|
|
453
|
+
function Ot(n) {
|
|
454
454
|
return n;
|
|
455
455
|
}
|
|
456
|
-
function
|
|
457
|
-
return n.length === 0 ?
|
|
456
|
+
function Pa(n) {
|
|
457
|
+
return n.length === 0 ? Ot : n.length === 1 ? n[0] : function(t) {
|
|
458
458
|
return n.reduce(function(s, i) {
|
|
459
459
|
return i(s);
|
|
460
460
|
}, t);
|
|
@@ -468,8 +468,8 @@ var K = (function() {
|
|
|
468
468
|
var t = new n();
|
|
469
469
|
return t.source = this, t.operator = e, t;
|
|
470
470
|
}, n.prototype.subscribe = function(e, t, s) {
|
|
471
|
-
var i = this, r =
|
|
472
|
-
return
|
|
471
|
+
var i = this, r = Na(e) ? e : new ls(e, t, s);
|
|
472
|
+
return Vt(function() {
|
|
473
473
|
var o = i, a = o.operator, l = o.source;
|
|
474
474
|
r.add(a ? a.call(r, l) : l ? i._subscribe(r) : i._trySubscribe(r));
|
|
475
475
|
}), r;
|
|
@@ -503,7 +503,7 @@ var K = (function() {
|
|
|
503
503
|
}, n.prototype.pipe = function() {
|
|
504
504
|
for (var e = [], t = 0; t < arguments.length; t++)
|
|
505
505
|
e[t] = arguments[t];
|
|
506
|
-
return
|
|
506
|
+
return Pa(e)(this);
|
|
507
507
|
}, n.prototype.toPromise = function(e) {
|
|
508
508
|
var t = this;
|
|
509
509
|
return e = Hi(e), new e(function(s, i) {
|
|
@@ -522,20 +522,20 @@ var K = (function() {
|
|
|
522
522
|
})();
|
|
523
523
|
function Hi(n) {
|
|
524
524
|
var e;
|
|
525
|
-
return (e = n ??
|
|
525
|
+
return (e = n ?? Ca.Promise) !== null && e !== void 0 ? e : Promise;
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function Ma(n) {
|
|
528
528
|
return n && E(n.next) && E(n.error) && E(n.complete);
|
|
529
529
|
}
|
|
530
|
-
function
|
|
531
|
-
return n && n instanceof
|
|
530
|
+
function Na(n) {
|
|
531
|
+
return n && n instanceof Cs || Ma(n) && Gr(n);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Da(n) {
|
|
534
534
|
return E(n == null ? void 0 : n.lift);
|
|
535
535
|
}
|
|
536
536
|
function xe(n) {
|
|
537
537
|
return function(e) {
|
|
538
|
-
if (
|
|
538
|
+
if (Da(e))
|
|
539
539
|
return e.lift(function(t) {
|
|
540
540
|
try {
|
|
541
541
|
return n(t, this);
|
|
@@ -547,9 +547,9 @@ function xe(n) {
|
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
549
|
function Q(n, e, t, s, i) {
|
|
550
|
-
return new
|
|
550
|
+
return new Ua(n, e, t, s, i);
|
|
551
551
|
}
|
|
552
|
-
var
|
|
552
|
+
var Ua = (function(n) {
|
|
553
553
|
ct(e, n);
|
|
554
554
|
function e(t, s, i, r, o, a) {
|
|
555
555
|
var l = n.call(this, t) || this;
|
|
@@ -584,7 +584,7 @@ var za = (function(n) {
|
|
|
584
584
|
n.prototype.unsubscribe.call(this), !s && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
|
|
585
585
|
}
|
|
586
586
|
}, e;
|
|
587
|
-
})(
|
|
587
|
+
})(Cs), za = qr(function(n) {
|
|
588
588
|
return function() {
|
|
589
589
|
n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
590
590
|
};
|
|
@@ -599,10 +599,10 @@ var za = (function(n) {
|
|
|
599
599
|
return s.operator = t, s;
|
|
600
600
|
}, e.prototype._throwIfClosed = function() {
|
|
601
601
|
if (this.closed)
|
|
602
|
-
throw new
|
|
602
|
+
throw new za();
|
|
603
603
|
}, e.prototype.next = function(t) {
|
|
604
604
|
var s = this;
|
|
605
|
-
|
|
605
|
+
Vt(function() {
|
|
606
606
|
var i, r;
|
|
607
607
|
if (s._throwIfClosed(), !s.isStopped) {
|
|
608
608
|
s.currentObservers || (s.currentObservers = Array.from(s.observers));
|
|
@@ -624,7 +624,7 @@ var za = (function(n) {
|
|
|
624
624
|
});
|
|
625
625
|
}, e.prototype.error = function(t) {
|
|
626
626
|
var s = this;
|
|
627
|
-
|
|
627
|
+
Vt(function() {
|
|
628
628
|
if (s._throwIfClosed(), !s.isStopped) {
|
|
629
629
|
s.hasError = s.isStopped = !0, s.thrownError = t;
|
|
630
630
|
for (var i = s.observers; i.length; )
|
|
@@ -633,7 +633,7 @@ var za = (function(n) {
|
|
|
633
633
|
});
|
|
634
634
|
}, e.prototype.complete = function() {
|
|
635
635
|
var t = this;
|
|
636
|
-
|
|
636
|
+
Vt(function() {
|
|
637
637
|
if (t._throwIfClosed(), !t.isStopped) {
|
|
638
638
|
t.isStopped = !0;
|
|
639
639
|
for (var s = t.observers; s.length; )
|
|
@@ -709,10 +709,10 @@ var za = (function(n) {
|
|
|
709
709
|
}, e.prototype.next = function(t) {
|
|
710
710
|
n.prototype.next.call(this, this._value = t);
|
|
711
711
|
}, e;
|
|
712
|
-
})(P),
|
|
712
|
+
})(P), It = new K(function(n) {
|
|
713
713
|
return n.complete();
|
|
714
714
|
});
|
|
715
|
-
function
|
|
715
|
+
function Ba(n) {
|
|
716
716
|
return n && E(n.schedule);
|
|
717
717
|
}
|
|
718
718
|
function Ls(n) {
|
|
@@ -722,9 +722,9 @@ function Yr(n) {
|
|
|
722
722
|
return E(Ls(n)) ? n.pop() : void 0;
|
|
723
723
|
}
|
|
724
724
|
function Os(n) {
|
|
725
|
-
return
|
|
725
|
+
return Ba(Ls(n)) ? n.pop() : void 0;
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function Ha(n, e) {
|
|
728
728
|
return typeof Ls(n) == "number" ? n.pop() : e;
|
|
729
729
|
}
|
|
730
730
|
var Is = (function(n) {
|
|
@@ -742,15 +742,15 @@ function Vr(n) {
|
|
|
742
742
|
function Qr(n) {
|
|
743
743
|
return new TypeError("You provided " + (n !== null && typeof n == "object" ? "an invalid object" : "'" + n + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function Fa() {
|
|
746
746
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
747
747
|
}
|
|
748
|
-
var Jr =
|
|
748
|
+
var Jr = Fa();
|
|
749
749
|
function eo(n) {
|
|
750
750
|
return E(n == null ? void 0 : n[Jr]);
|
|
751
751
|
}
|
|
752
752
|
function to(n) {
|
|
753
|
-
return
|
|
753
|
+
return Aa(this, arguments, function() {
|
|
754
754
|
var t, s, i, r;
|
|
755
755
|
return jr(this, function(o) {
|
|
756
756
|
switch (o.label) {
|
|
@@ -788,21 +788,21 @@ function he(n) {
|
|
|
788
788
|
return n;
|
|
789
789
|
if (n != null) {
|
|
790
790
|
if (Xr(n))
|
|
791
|
-
return
|
|
791
|
+
return ja(n);
|
|
792
792
|
if (Is(n))
|
|
793
|
-
return
|
|
793
|
+
return qa(n);
|
|
794
794
|
if (Kr(n))
|
|
795
|
-
return
|
|
795
|
+
return Wa(n);
|
|
796
796
|
if (Vr(n))
|
|
797
797
|
return so(n);
|
|
798
798
|
if (eo(n))
|
|
799
|
-
return
|
|
799
|
+
return Ga(n);
|
|
800
800
|
if (no(n))
|
|
801
|
-
return
|
|
801
|
+
return Za(n);
|
|
802
802
|
}
|
|
803
803
|
throw Qr(n);
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function ja(n) {
|
|
806
806
|
return new K(function(e) {
|
|
807
807
|
var t = n[Rs]();
|
|
808
808
|
if (E(t.subscribe))
|
|
@@ -810,14 +810,14 @@ function qa(n) {
|
|
|
810
810
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
811
811
|
});
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function qa(n) {
|
|
814
814
|
return new K(function(e) {
|
|
815
815
|
for (var t = 0; t < n.length && !e.closed; t++)
|
|
816
816
|
e.next(n[t]);
|
|
817
817
|
e.complete();
|
|
818
818
|
});
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function Wa(n) {
|
|
821
821
|
return new K(function(e) {
|
|
822
822
|
n.then(function(t) {
|
|
823
823
|
e.closed || (e.next(t), e.complete());
|
|
@@ -826,7 +826,7 @@ function Ga(n) {
|
|
|
826
826
|
}).then(null, Zr);
|
|
827
827
|
});
|
|
828
828
|
}
|
|
829
|
-
function
|
|
829
|
+
function Ga(n) {
|
|
830
830
|
return new K(function(e) {
|
|
831
831
|
var t, s;
|
|
832
832
|
try {
|
|
@@ -849,17 +849,17 @@ function Za(n) {
|
|
|
849
849
|
}
|
|
850
850
|
function so(n) {
|
|
851
851
|
return new K(function(e) {
|
|
852
|
-
|
|
852
|
+
Ya(n, e).catch(function(t) {
|
|
853
853
|
return e.error(t);
|
|
854
854
|
});
|
|
855
855
|
});
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function Za(n) {
|
|
858
858
|
return so(to(n));
|
|
859
859
|
}
|
|
860
|
-
function
|
|
860
|
+
function Ya(n, e) {
|
|
861
861
|
var t, s, i, r;
|
|
862
|
-
return
|
|
862
|
+
return Ea(this, void 0, void 0, function() {
|
|
863
863
|
var o, a;
|
|
864
864
|
return jr(this, function(l) {
|
|
865
865
|
switch (l.label) {
|
|
@@ -927,13 +927,13 @@ function ro(n, e) {
|
|
|
927
927
|
}, e));
|
|
928
928
|
});
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function Ka(n, e) {
|
|
931
931
|
return he(n).pipe(ro(e), io(e));
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function Xa(n, e) {
|
|
934
934
|
return he(n).pipe(ro(e), io(e));
|
|
935
935
|
}
|
|
936
|
-
function
|
|
936
|
+
function Va(n, e) {
|
|
937
937
|
return new K(function(t) {
|
|
938
938
|
var s = 0;
|
|
939
939
|
return e.schedule(function() {
|
|
@@ -941,7 +941,7 @@ function Qa(n, e) {
|
|
|
941
941
|
});
|
|
942
942
|
});
|
|
943
943
|
}
|
|
944
|
-
function
|
|
944
|
+
function Qa(n, e) {
|
|
945
945
|
return new K(function(t) {
|
|
946
946
|
var s;
|
|
947
947
|
return Se(t, e, function() {
|
|
@@ -974,28 +974,28 @@ function oo(n, e) {
|
|
|
974
974
|
});
|
|
975
975
|
});
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function Ja(n, e) {
|
|
978
978
|
return oo(to(n), e);
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function el(n, e) {
|
|
981
981
|
if (n != null) {
|
|
982
982
|
if (Xr(n))
|
|
983
|
-
return
|
|
983
|
+
return Ka(n, e);
|
|
984
984
|
if (Is(n))
|
|
985
|
-
return Qa(n, e);
|
|
986
|
-
if (Kr(n))
|
|
987
985
|
return Va(n, e);
|
|
986
|
+
if (Kr(n))
|
|
987
|
+
return Xa(n, e);
|
|
988
988
|
if (Vr(n))
|
|
989
989
|
return oo(n, e);
|
|
990
990
|
if (eo(n))
|
|
991
|
-
return
|
|
991
|
+
return Qa(n, e);
|
|
992
992
|
if (no(n))
|
|
993
|
-
return
|
|
993
|
+
return Ja(n, e);
|
|
994
994
|
}
|
|
995
995
|
throw Qr(n);
|
|
996
996
|
}
|
|
997
997
|
function xn(n, e) {
|
|
998
|
-
return e ?
|
|
998
|
+
return e ? el(n, e) : he(n);
|
|
999
999
|
}
|
|
1000
1000
|
function cs() {
|
|
1001
1001
|
for (var n = [], e = 0; e < arguments.length; e++)
|
|
@@ -1003,7 +1003,7 @@ function cs() {
|
|
|
1003
1003
|
var t = Os(n);
|
|
1004
1004
|
return xn(n, t);
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1006
|
+
function nn(n, e) {
|
|
1007
1007
|
return xe(function(t, s) {
|
|
1008
1008
|
var i = 0;
|
|
1009
1009
|
t.subscribe(Q(s, function(r) {
|
|
@@ -1011,23 +1011,23 @@ function sn(n, e) {
|
|
|
1011
1011
|
}));
|
|
1012
1012
|
});
|
|
1013
1013
|
}
|
|
1014
|
-
var
|
|
1015
|
-
function
|
|
1016
|
-
return
|
|
1014
|
+
var tl = Array.isArray;
|
|
1015
|
+
function nl(n, e) {
|
|
1016
|
+
return tl(e) ? n.apply(void 0, rt([], Ue(e))) : n(e);
|
|
1017
1017
|
}
|
|
1018
1018
|
function ao(n) {
|
|
1019
|
-
return
|
|
1020
|
-
return
|
|
1019
|
+
return nn(function(e) {
|
|
1020
|
+
return nl(n, e);
|
|
1021
1021
|
});
|
|
1022
1022
|
}
|
|
1023
|
-
var
|
|
1024
|
-
function
|
|
1023
|
+
var sl = Array.isArray, il = Object.getPrototypeOf, rl = Object.prototype, ol = Object.keys;
|
|
1024
|
+
function al(n) {
|
|
1025
1025
|
if (n.length === 1) {
|
|
1026
1026
|
var e = n[0];
|
|
1027
|
-
if (
|
|
1027
|
+
if (sl(e))
|
|
1028
1028
|
return { args: e, keys: null };
|
|
1029
|
-
if (
|
|
1030
|
-
var t =
|
|
1029
|
+
if (ll(e)) {
|
|
1030
|
+
var t = ol(e);
|
|
1031
1031
|
return {
|
|
1032
1032
|
args: t.map(function(s) {
|
|
1033
1033
|
return e[s];
|
|
@@ -1038,27 +1038,27 @@ function ll(n) {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
return { args: n, keys: null };
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1042
|
-
return n && typeof n == "object" &&
|
|
1041
|
+
function ll(n) {
|
|
1042
|
+
return n && typeof n == "object" && il(n) === rl;
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1044
|
+
function cl(n, e) {
|
|
1045
1045
|
return n.reduce(function(t, s, i) {
|
|
1046
1046
|
return t[s] = e[i], t;
|
|
1047
1047
|
}, {});
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1049
|
+
function ul() {
|
|
1050
1050
|
for (var n = [], e = 0; e < arguments.length; e++)
|
|
1051
1051
|
n[e] = arguments[e];
|
|
1052
|
-
var t = Os(n), s = Yr(n), i =
|
|
1052
|
+
var t = Os(n), s = Yr(n), i = al(n), r = i.args, o = i.keys;
|
|
1053
1053
|
if (r.length === 0)
|
|
1054
1054
|
return xn([], t);
|
|
1055
|
-
var a = new K(
|
|
1056
|
-
return
|
|
1057
|
-
} :
|
|
1055
|
+
var a = new K(hl(r, t, o ? function(l) {
|
|
1056
|
+
return cl(o, l);
|
|
1057
|
+
} : Ot));
|
|
1058
1058
|
return s ? a.pipe(ao(s)) : a;
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1061
|
-
return t === void 0 && (t =
|
|
1060
|
+
function hl(n, e, t) {
|
|
1061
|
+
return t === void 0 && (t = Ot), function(s) {
|
|
1062
1062
|
ji(e, function() {
|
|
1063
1063
|
for (var i = n.length, r = new Array(i), o = i, a = i, l = function(u) {
|
|
1064
1064
|
ji(e, function() {
|
|
@@ -1077,7 +1077,7 @@ function dl(n, e, t) {
|
|
|
1077
1077
|
function ji(n, e, t) {
|
|
1078
1078
|
n ? Se(t, n, e) : e();
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1080
|
+
function dl(n, e, t, s, i, r, o, a) {
|
|
1081
1081
|
var l = [], c = 0, u = 0, p = !1, d = function() {
|
|
1082
1082
|
p && !l.length && !c && e.complete();
|
|
1083
1083
|
}, g = function(y) {
|
|
@@ -1111,28 +1111,28 @@ function pl(n, e, t, s, i, r, o, a) {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
function Ps(n, e, t) {
|
|
1113
1113
|
return t === void 0 && (t = 1 / 0), E(e) ? Ps(function(s, i) {
|
|
1114
|
-
return
|
|
1114
|
+
return nn(function(r, o) {
|
|
1115
1115
|
return e(s, r, i, o);
|
|
1116
1116
|
})(he(n(s, i)));
|
|
1117
1117
|
}, t) : (typeof e == "number" && (t = e), xe(function(s, i) {
|
|
1118
|
-
return
|
|
1118
|
+
return dl(s, i, n, t);
|
|
1119
1119
|
}));
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1122
|
-
return n === void 0 && (n = 1 / 0), Ps(
|
|
1121
|
+
function pl(n) {
|
|
1122
|
+
return n === void 0 && (n = 1 / 0), Ps(Ot, n);
|
|
1123
1123
|
}
|
|
1124
|
-
var
|
|
1125
|
-
function
|
|
1124
|
+
var fl = ["addListener", "removeListener"], gl = ["addEventListener", "removeEventListener"], ml = ["on", "off"];
|
|
1125
|
+
function sn(n, e, t, s) {
|
|
1126
1126
|
if (E(t) && (s = t, t = void 0), s)
|
|
1127
|
-
return
|
|
1128
|
-
var i = Ue(
|
|
1127
|
+
return sn(n, e, t).pipe(ao(s));
|
|
1128
|
+
var i = Ue(yl(n) ? gl.map(function(a) {
|
|
1129
1129
|
return function(l) {
|
|
1130
1130
|
return n[a](e, l, t);
|
|
1131
1131
|
};
|
|
1132
|
-
}) :
|
|
1132
|
+
}) : vl(n) ? fl.map(qi(n, e)) : bl(n) ? ml.map(qi(n, e)) : [], 2), r = i[0], o = i[1];
|
|
1133
1133
|
if (!r && Is(n))
|
|
1134
1134
|
return Ps(function(a) {
|
|
1135
|
-
return
|
|
1135
|
+
return sn(a, e, t);
|
|
1136
1136
|
})(he(n));
|
|
1137
1137
|
if (!r)
|
|
1138
1138
|
throw new TypeError("Invalid event target");
|
|
@@ -1154,22 +1154,22 @@ function qi(n, e) {
|
|
|
1154
1154
|
};
|
|
1155
1155
|
};
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1157
|
+
function vl(n) {
|
|
1158
1158
|
return E(n.addListener) && E(n.removeListener);
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function bl(n) {
|
|
1161
1161
|
return E(n.on) && E(n.off);
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function yl(n) {
|
|
1164
1164
|
return E(n.addEventListener) && E(n.removeEventListener);
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1166
|
+
function $l() {
|
|
1167
1167
|
for (var n = [], e = 0; e < arguments.length; e++)
|
|
1168
1168
|
n[e] = arguments[e];
|
|
1169
|
-
var t = Os(n), s =
|
|
1170
|
-
return i.length ? i.length === 1 ? he(i[0]) :
|
|
1169
|
+
var t = Os(n), s = Ha(n, 1 / 0), i = n;
|
|
1170
|
+
return i.length ? i.length === 1 ? he(i[0]) : pl(s)(xn(i, t)) : It;
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1172
|
+
function xl(n, e) {
|
|
1173
1173
|
return xe(function(t, s) {
|
|
1174
1174
|
var i = 0;
|
|
1175
1175
|
t.subscribe(Q(s, function(r) {
|
|
@@ -1179,7 +1179,7 @@ function wl(n, e) {
|
|
|
1179
1179
|
}
|
|
1180
1180
|
function Ne(n) {
|
|
1181
1181
|
return n <= 0 ? function() {
|
|
1182
|
-
return
|
|
1182
|
+
return It;
|
|
1183
1183
|
} : xe(function(e, t) {
|
|
1184
1184
|
var s = 0;
|
|
1185
1185
|
e.subscribe(Q(t, function(i) {
|
|
@@ -1209,7 +1209,7 @@ function us(n) {
|
|
|
1209
1209
|
return xe(function(e, t) {
|
|
1210
1210
|
he(n).subscribe(Q(t, function() {
|
|
1211
1211
|
return t.complete();
|
|
1212
|
-
},
|
|
1212
|
+
}, tn)), !t.closed && e.subscribe(t);
|
|
1213
1213
|
});
|
|
1214
1214
|
}
|
|
1215
1215
|
function hs() {
|
|
@@ -1221,8 +1221,8 @@ function hs() {
|
|
|
1221
1221
|
return !1;
|
|
1222
1222
|
}), l = !1, c = function(p) {
|
|
1223
1223
|
he(n[p]).subscribe(Q(i, function(d) {
|
|
1224
|
-
o[p] = d, !l && !a[p] && (a[p] = !0, (l = a.every(
|
|
1225
|
-
},
|
|
1224
|
+
o[p] = d, !l && !a[p] && (a[p] = !0, (l = a.every(Ot)) && (a = null));
|
|
1225
|
+
}, tn));
|
|
1226
1226
|
}, u = 0; u < r; u++)
|
|
1227
1227
|
c(u);
|
|
1228
1228
|
s.subscribe(Q(i, function(p) {
|
|
@@ -1234,10 +1234,10 @@ function hs() {
|
|
|
1234
1234
|
});
|
|
1235
1235
|
}
|
|
1236
1236
|
var ye = /* @__PURE__ */ ((n) => (n.User = "user", n.Agent = "agent", n.System = "system", n))(ye || {});
|
|
1237
|
-
const
|
|
1237
|
+
const wl = () => "10000000-1000-4000-8000-100000000000".replace(
|
|
1238
1238
|
/[018]/g,
|
|
1239
1239
|
(n) => (+n ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +n / 4).toString(16)
|
|
1240
|
-
), lo = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() :
|
|
1240
|
+
), lo = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() : wl();
|
|
1241
1241
|
function Wi(n) {
|
|
1242
1242
|
let e = n;
|
|
1243
1243
|
const t = /https?:\/\/[^\s<]+/gi, s = /<a [^>]*href="([^"]*)"[^>]*>[^<]*<\/a>/g, i = n.match(t) || [], r = [];
|
|
@@ -1254,13 +1254,13 @@ function Wi(n) {
|
|
|
1254
1254
|
);
|
|
1255
1255
|
e = e.replace(
|
|
1256
1256
|
u,
|
|
1257
|
-
`<a title='${c}' target=
|
|
1257
|
+
`<a title='${c}' target="_blank" rel="noopener noreferrer" href='${c}'>${c}</a>`
|
|
1258
1258
|
);
|
|
1259
1259
|
}), e;
|
|
1260
1260
|
}
|
|
1261
1261
|
function ds(n) {
|
|
1262
1262
|
if (n.includes("aceChatGuideTitle"))
|
|
1263
|
-
return
|
|
1263
|
+
return kl(n);
|
|
1264
1264
|
const e = /<a [^>]*>https?:\/\/[^<]*<\/a>/gim;
|
|
1265
1265
|
return n.replace(e, (t) => {
|
|
1266
1266
|
const s = co(t);
|
|
@@ -1294,7 +1294,7 @@ function co(n) {
|
|
|
1294
1294
|
function ps(n, e) {
|
|
1295
1295
|
return n.replace(/>[^<]*<\/a>/, `>${e}</a>`);
|
|
1296
1296
|
}
|
|
1297
|
-
function
|
|
1297
|
+
function kl(n) {
|
|
1298
1298
|
const e = /<a [^>]*aceChatGuideTitle[^>]*>[^<]*<\/a>/gm;
|
|
1299
1299
|
return n.replace(e, (t) => {
|
|
1300
1300
|
const s = co(t);
|
|
@@ -1304,7 +1304,7 @@ function Sl(n) {
|
|
|
1304
1304
|
return o ? ps(t, o) : t;
|
|
1305
1305
|
});
|
|
1306
1306
|
}
|
|
1307
|
-
class
|
|
1307
|
+
class Pt {
|
|
1308
1308
|
constructor(e, t, s) {
|
|
1309
1309
|
this.type = e, this.sender = t, this.messages = s, this.status = "delivered", this.didUpdate = new P(), this.actions$ = new P(), this.remove$ = new P(), this.timestamp = Date.now(), this.id = lo();
|
|
1310
1310
|
}
|
|
@@ -1322,12 +1322,12 @@ class Mt {
|
|
|
1322
1322
|
this.remove$.next();
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
|
-
class
|
|
1325
|
+
class Sl {
|
|
1326
1326
|
constructor(e) {
|
|
1327
1327
|
this.name = e, this.print$ = new P();
|
|
1328
1328
|
}
|
|
1329
1329
|
print(e, t = "html", s = this.name) {
|
|
1330
|
-
const i = new
|
|
1330
|
+
const i = new Pt(
|
|
1331
1331
|
ye.Agent,
|
|
1332
1332
|
{ name: s },
|
|
1333
1333
|
[
|
|
@@ -1342,12 +1342,12 @@ class _l {
|
|
|
1342
1342
|
return this.print$.asObservable();
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
|
-
class
|
|
1345
|
+
class _l {
|
|
1346
1346
|
constructor(e) {
|
|
1347
1347
|
this.name = e, this.print$ = new P();
|
|
1348
1348
|
}
|
|
1349
1349
|
print(e) {
|
|
1350
|
-
const t = new
|
|
1350
|
+
const t = new Pt(
|
|
1351
1351
|
ye.User,
|
|
1352
1352
|
{ name: this.name },
|
|
1353
1353
|
[
|
|
@@ -1362,12 +1362,12 @@ class El {
|
|
|
1362
1362
|
return this.print$.asObservable();
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
|
-
class
|
|
1365
|
+
class El {
|
|
1366
1366
|
constructor() {
|
|
1367
1367
|
this.print$ = new P(), this.name = "system";
|
|
1368
1368
|
}
|
|
1369
1369
|
print(e) {
|
|
1370
|
-
const t = new
|
|
1370
|
+
const t = new Pt(
|
|
1371
1371
|
ye.System,
|
|
1372
1372
|
{ name: this.name },
|
|
1373
1373
|
[
|
|
@@ -1382,7 +1382,7 @@ class Al {
|
|
|
1382
1382
|
return this.print$.asObservable();
|
|
1383
1383
|
}
|
|
1384
1384
|
}
|
|
1385
|
-
class
|
|
1385
|
+
class Al {
|
|
1386
1386
|
constructor(e, t) {
|
|
1387
1387
|
this.name = e, this.component = t, this.print$ = new P(), this.typingState$ = new F(!1), this.complete$ = new P(), this.system = this.createSystem(), this.rehydrate$ = new P(), this.saveToCurrentSession$ = new P(), this.showChatOverlay$ = new F(!1), this.onComplete = () => this.complete$.asObservable();
|
|
1388
1388
|
}
|
|
@@ -1399,7 +1399,7 @@ class Cl {
|
|
|
1399
1399
|
this.print(ye.User, e.text);
|
|
1400
1400
|
}
|
|
1401
1401
|
print(e, t) {
|
|
1402
|
-
const s = new
|
|
1402
|
+
const s = new Pt(
|
|
1403
1403
|
e,
|
|
1404
1404
|
{
|
|
1405
1405
|
name: ""
|
|
@@ -1416,19 +1416,19 @@ class Cl {
|
|
|
1416
1416
|
return this.print$.next(e), e;
|
|
1417
1417
|
}
|
|
1418
1418
|
createAgent(e) {
|
|
1419
|
-
const t = new
|
|
1419
|
+
const t = new Sl(e);
|
|
1420
1420
|
return t.subscribe().subscribe((s) => {
|
|
1421
1421
|
this.playNotification(), this.printEntry(s);
|
|
1422
1422
|
}), t;
|
|
1423
1423
|
}
|
|
1424
1424
|
createUser(e) {
|
|
1425
|
-
const t = new
|
|
1425
|
+
const t = new _l(e);
|
|
1426
1426
|
return t.subscribe().subscribe((s) => {
|
|
1427
1427
|
this.printEntry(s);
|
|
1428
1428
|
}), t;
|
|
1429
1429
|
}
|
|
1430
1430
|
createSystem() {
|
|
1431
|
-
const e = new
|
|
1431
|
+
const e = new El();
|
|
1432
1432
|
return e.subscribe().subscribe((t) => {
|
|
1433
1433
|
this.printEntry(t);
|
|
1434
1434
|
}), e;
|
|
@@ -1464,7 +1464,7 @@ class Cl {
|
|
|
1464
1464
|
* Copyright 2019 Google LLC
|
|
1465
1465
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1466
1466
|
*/
|
|
1467
|
-
const
|
|
1467
|
+
const Qt = globalThis, Ms = Qt.ShadowRoot && (Qt.ShadyCSS === void 0 || Qt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ns = Symbol(), Gi = /* @__PURE__ */ new WeakMap();
|
|
1468
1468
|
let uo = class {
|
|
1469
1469
|
constructor(e, t, s) {
|
|
1470
1470
|
if (this._$cssResult$ = !0, s !== Ns) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -1490,10 +1490,10 @@ const Tl = (n) => new uo(typeof n == "string" ? n : n + "", void 0, Ns), Z = (n,
|
|
|
1490
1490
|
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.");
|
|
1491
1491
|
})(i) + n[r + 1]), n[0]);
|
|
1492
1492
|
return new uo(t, n, Ns);
|
|
1493
|
-
},
|
|
1493
|
+
}, Cl = (n, e) => {
|
|
1494
1494
|
if (Ms) n.adoptedStyleSheets = e.map(((t) => t instanceof CSSStyleSheet ? t : t.styleSheet));
|
|
1495
1495
|
else for (const t of e) {
|
|
1496
|
-
const s = document.createElement("style"), i =
|
|
1496
|
+
const s = document.createElement("style"), i = Qt.litNonce;
|
|
1497
1497
|
i !== void 0 && s.setAttribute("nonce", i), s.textContent = t.cssText, n.appendChild(s);
|
|
1498
1498
|
}
|
|
1499
1499
|
}, Zi = Ms ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((e) => {
|
|
@@ -1506,10 +1506,10 @@ const Tl = (n) => new uo(typeof n == "string" ? n : n + "", void 0, Ns), Z = (n,
|
|
|
1506
1506
|
* Copyright 2017 Google LLC
|
|
1507
1507
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1508
1508
|
*/
|
|
1509
|
-
const { is:
|
|
1509
|
+
const { is: Rl, defineProperty: Ll, getOwnPropertyDescriptor: Ol, getOwnPropertyNames: Il, getOwnPropertySymbols: Pl, getPrototypeOf: Ml } = Object, _e = globalThis, Yi = _e.trustedTypes, Nl = Yi ? Yi.emptyScript : "", Gn = _e.reactiveElementPolyfillSupport, xt = (n, e) => n, rn = { toAttribute(n, e) {
|
|
1510
1510
|
switch (e) {
|
|
1511
1511
|
case Boolean:
|
|
1512
|
-
n = n ?
|
|
1512
|
+
n = n ? Nl : null;
|
|
1513
1513
|
break;
|
|
1514
1514
|
case Object:
|
|
1515
1515
|
case Array:
|
|
@@ -1534,7 +1534,7 @@ const { is: Ll, defineProperty: Ol, getOwnPropertyDescriptor: Il, getOwnProperty
|
|
|
1534
1534
|
}
|
|
1535
1535
|
}
|
|
1536
1536
|
return t;
|
|
1537
|
-
} }, Ds = (n, e) => !
|
|
1537
|
+
} }, Ds = (n, e) => !Rl(n, e), Ki = { attribute: !0, type: String, converter: rn, reflect: !1, useDefault: !1, hasChanged: Ds };
|
|
1538
1538
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _e.litPropertyMetadata ?? (_e.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
1539
1539
|
let Xe = class extends HTMLElement {
|
|
1540
1540
|
static addInitializer(e) {
|
|
@@ -1546,11 +1546,11 @@ let Xe = class extends HTMLElement {
|
|
|
1546
1546
|
static createProperty(e, t = Ki) {
|
|
1547
1547
|
if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
|
|
1548
1548
|
const s = Symbol(), i = this.getPropertyDescriptor(e, s, t);
|
|
1549
|
-
i !== void 0 &&
|
|
1549
|
+
i !== void 0 && Ll(this.prototype, e, i);
|
|
1550
1550
|
}
|
|
1551
1551
|
}
|
|
1552
1552
|
static getPropertyDescriptor(e, t, s) {
|
|
1553
|
-
const { get: i, set: r } =
|
|
1553
|
+
const { get: i, set: r } = Ol(this.prototype, e) ?? { get() {
|
|
1554
1554
|
return this[t];
|
|
1555
1555
|
}, set(o) {
|
|
1556
1556
|
this[t] = o;
|
|
@@ -1565,13 +1565,13 @@ let Xe = class extends HTMLElement {
|
|
|
1565
1565
|
}
|
|
1566
1566
|
static _$Ei() {
|
|
1567
1567
|
if (this.hasOwnProperty(xt("elementProperties"))) return;
|
|
1568
|
-
const e =
|
|
1568
|
+
const e = Ml(this);
|
|
1569
1569
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
1570
1570
|
}
|
|
1571
1571
|
static finalize() {
|
|
1572
1572
|
if (this.hasOwnProperty(xt("finalized"))) return;
|
|
1573
1573
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(xt("properties"))) {
|
|
1574
|
-
const t = this.properties, s = [...
|
|
1574
|
+
const t = this.properties, s = [...Il(t), ...Pl(t)];
|
|
1575
1575
|
for (const i of s) this.createProperty(i, t[i]);
|
|
1576
1576
|
}
|
|
1577
1577
|
const e = this[Symbol.metadata];
|
|
@@ -1620,7 +1620,7 @@ let Xe = class extends HTMLElement {
|
|
|
1620
1620
|
}
|
|
1621
1621
|
createRenderRoot() {
|
|
1622
1622
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
1623
|
-
return
|
|
1623
|
+
return Cl(e, this.constructor.elementStyles), e;
|
|
1624
1624
|
}
|
|
1625
1625
|
connectedCallback() {
|
|
1626
1626
|
var e;
|
|
@@ -1645,7 +1645,7 @@ let Xe = class extends HTMLElement {
|
|
|
1645
1645
|
var r;
|
|
1646
1646
|
const s = this.constructor.elementProperties.get(e), i = this.constructor._$Eu(e, s);
|
|
1647
1647
|
if (i !== void 0 && s.reflect === !0) {
|
|
1648
|
-
const o = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter :
|
|
1648
|
+
const o = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : rn).toAttribute(t, s.type);
|
|
1649
1649
|
this._$Em = e, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
|
|
1650
1650
|
}
|
|
1651
1651
|
}
|
|
@@ -1653,7 +1653,7 @@ let Xe = class extends HTMLElement {
|
|
|
1653
1653
|
var r, o;
|
|
1654
1654
|
const s = this.constructor, i = s._$Eh.get(e);
|
|
1655
1655
|
if (i !== void 0 && this._$Em !== i) {
|
|
1656
|
-
const a = s.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter :
|
|
1656
|
+
const a = s.getPropertyOptions(i), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : rn;
|
|
1657
1657
|
this._$Em = i;
|
|
1658
1658
|
const c = l.fromAttribute(t, a.type);
|
|
1659
1659
|
this[i] = c ?? ((o = this._$Ej) == null ? void 0 : o.get(i)) ?? c, this._$Em = null;
|
|
@@ -1745,14 +1745,14 @@ Xe.elementStyles = [], Xe.shadowRootOptions = { mode: "open" }, Xe[xt("elementPr
|
|
|
1745
1745
|
* Copyright 2017 Google LLC
|
|
1746
1746
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1747
1747
|
*/
|
|
1748
|
-
const wt = globalThis,
|
|
1748
|
+
const wt = globalThis, on = wt.trustedTypes, Xi = on ? on.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, ho = "$lit$", ke = `lit$${Math.random().toFixed(9).slice(2)}$`, po = "?" + ke, Dl = `<${po}>`, ze = document, _t = () => ze.createComment(""), Et = (n) => n === null || typeof n != "object" && typeof n != "function", Us = Array.isArray, Ul = (n) => Us(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", Zn = `[
|
|
1749
1749
|
\f\r]`, pt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Vi = /-->/g, Qi = />/g, Ie = RegExp(`>|${Zn}(?:([^\\s"'>=/]+)(${Zn}*=${Zn}*(?:[^
|
|
1750
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ji = /'/g, er = /"/g, fo = /^(?:script|style|textarea|title)$/i,
|
|
1750
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ji = /'/g, er = /"/g, fo = /^(?:script|style|textarea|title)$/i, zl = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), w = zl(1), Ee = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), tr = /* @__PURE__ */ new WeakMap(), Me = ze.createTreeWalker(ze, 129);
|
|
1751
1751
|
function go(n, e) {
|
|
1752
1752
|
if (!Us(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1753
1753
|
return Xi !== void 0 ? Xi.createHTML(e) : e;
|
|
1754
1754
|
}
|
|
1755
|
-
const
|
|
1755
|
+
const Bl = (n, e) => {
|
|
1756
1756
|
const t = n.length - 1, s = [];
|
|
1757
1757
|
let i, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", o = pt;
|
|
1758
1758
|
for (let a = 0; a < t; a++) {
|
|
@@ -1760,7 +1760,7 @@ const Hl = (n, e) => {
|
|
|
1760
1760
|
let c, u, p = -1, d = 0;
|
|
1761
1761
|
for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); ) d = o.lastIndex, o === pt ? u[1] === "!--" ? o = Vi : u[1] !== void 0 ? o = Qi : u[2] !== void 0 ? (fo.test(u[2]) && (i = RegExp("</" + u[2], "g")), o = Ie) : u[3] !== void 0 && (o = Ie) : o === Ie ? u[0] === ">" ? (o = i ?? pt, p = -1) : u[1] === void 0 ? p = -2 : (p = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? Ie : u[3] === '"' ? er : Ji) : o === er || o === Ji ? o = Ie : o === Vi || o === Qi ? o = pt : (o = Ie, i = void 0);
|
|
1762
1762
|
const g = o === Ie && n[a + 1].startsWith("/>") ? " " : "";
|
|
1763
|
-
r += o === pt ? l +
|
|
1763
|
+
r += o === pt ? l + Dl : p >= 0 ? (s.push(c), l.slice(0, p) + ho + l.slice(p) + ke + g) : l + ke + (p === -2 ? a : g);
|
|
1764
1764
|
}
|
|
1765
1765
|
return [go(n, r + (n[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), s];
|
|
1766
1766
|
};
|
|
@@ -1769,7 +1769,7 @@ let fs = class mo {
|
|
|
1769
1769
|
let i;
|
|
1770
1770
|
this.parts = [];
|
|
1771
1771
|
let r = 0, o = 0;
|
|
1772
|
-
const a = e.length - 1, l = this.parts, [c, u] =
|
|
1772
|
+
const a = e.length - 1, l = this.parts, [c, u] = Bl(e, t);
|
|
1773
1773
|
if (this.el = mo.createElement(c, s), Me.currentNode = this.el.content, t === 2 || t === 3) {
|
|
1774
1774
|
const p = this.el.content.firstChild;
|
|
1775
1775
|
p.replaceWith(...p.childNodes);
|
|
@@ -1778,12 +1778,12 @@ let fs = class mo {
|
|
|
1778
1778
|
if (i.nodeType === 1) {
|
|
1779
1779
|
if (i.hasAttributes()) for (const p of i.getAttributeNames()) if (p.endsWith(ho)) {
|
|
1780
1780
|
const d = u[o++], g = i.getAttribute(p).split(ke), v = /([.?@])?(.*)/.exec(d);
|
|
1781
|
-
l.push({ type: 1, index: r, name: v[2], strings: g, ctor: v[1] === "." ?
|
|
1781
|
+
l.push({ type: 1, index: r, name: v[2], strings: g, ctor: v[1] === "." ? Fl : v[1] === "?" ? jl : v[1] === "@" ? ql : wn }), i.removeAttribute(p);
|
|
1782
1782
|
} else p.startsWith(ke) && (l.push({ type: 6, index: r }), i.removeAttribute(p));
|
|
1783
1783
|
if (fo.test(i.tagName)) {
|
|
1784
1784
|
const p = i.textContent.split(ke), d = p.length - 1;
|
|
1785
1785
|
if (d > 0) {
|
|
1786
|
-
i.textContent =
|
|
1786
|
+
i.textContent = on ? on.emptyScript : "";
|
|
1787
1787
|
for (let g = 0; g < d; g++) i.append(p[g], _t()), Me.nextNode(), l.push({ type: 2, index: ++r });
|
|
1788
1788
|
i.append(p[d], _t());
|
|
1789
1789
|
}
|
|
@@ -1808,7 +1808,7 @@ function ot(n, e, t = n, s) {
|
|
|
1808
1808
|
const r = Et(e) ? void 0 : e._$litDirective$;
|
|
1809
1809
|
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(n), i._$AT(n, t, s)), s !== void 0 ? (t._$Co ?? (t._$Co = []))[s] = i : t._$Cl = i), i !== void 0 && (e = ot(n, i._$AS(n, e.values), i, s)), e;
|
|
1810
1810
|
}
|
|
1811
|
-
class
|
|
1811
|
+
class Hl {
|
|
1812
1812
|
constructor(e, t) {
|
|
1813
1813
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
1814
1814
|
}
|
|
@@ -1825,7 +1825,7 @@ class Fl {
|
|
|
1825
1825
|
for (; l !== void 0; ) {
|
|
1826
1826
|
if (o === l.index) {
|
|
1827
1827
|
let c;
|
|
1828
|
-
l.type === 2 ? c = new
|
|
1828
|
+
l.type === 2 ? c = new Mt(r, r.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, e) : l.type === 6 && (c = new Wl(r, this, e)), this._$AV.push(c), l = s[++a];
|
|
1829
1829
|
}
|
|
1830
1830
|
o !== (l == null ? void 0 : l.index) && (r = Me.nextNode(), o++);
|
|
1831
1831
|
}
|
|
@@ -1836,7 +1836,7 @@ class Fl {
|
|
|
1836
1836
|
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(e, s, t), t += s.strings.length - 2) : s._$AI(e[t])), t++;
|
|
1837
1837
|
}
|
|
1838
1838
|
}
|
|
1839
|
-
class
|
|
1839
|
+
class Mt {
|
|
1840
1840
|
get _$AU() {
|
|
1841
1841
|
var e;
|
|
1842
1842
|
return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
|
|
@@ -1856,7 +1856,7 @@ class Nt {
|
|
|
1856
1856
|
return this._$AB;
|
|
1857
1857
|
}
|
|
1858
1858
|
_$AI(e, t = this) {
|
|
1859
|
-
e = ot(this, e, t), Et(e) ? e === $ || e == null || e === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : e !== this._$AH && e !== Ee && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) :
|
|
1859
|
+
e = ot(this, e, t), Et(e) ? e === $ || e == null || e === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : e !== this._$AH && e !== Ee && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Ul(e) ? this.k(e) : this._(e);
|
|
1860
1860
|
}
|
|
1861
1861
|
O(e) {
|
|
1862
1862
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -1872,7 +1872,7 @@ class Nt {
|
|
|
1872
1872
|
const { values: t, _$litType$: s } = e, i = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el = fs.createElement(go(s.h, s.h[0]), this.options)), s);
|
|
1873
1873
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === i) this._$AH.p(t);
|
|
1874
1874
|
else {
|
|
1875
|
-
const o = new
|
|
1875
|
+
const o = new Hl(i, this), a = o.u(this.options);
|
|
1876
1876
|
o.p(t), this.T(a), this._$AH = o;
|
|
1877
1877
|
}
|
|
1878
1878
|
}
|
|
@@ -1884,7 +1884,7 @@ class Nt {
|
|
|
1884
1884
|
Us(this._$AH) || (this._$AH = [], this._$AR());
|
|
1885
1885
|
const t = this._$AH;
|
|
1886
1886
|
let s, i = 0;
|
|
1887
|
-
for (const r of e) i === t.length ? t.push(s = new
|
|
1887
|
+
for (const r of e) i === t.length ? t.push(s = new Mt(this.O(_t()), this.O(_t()), this, this.options)) : s = t[i], s._$AI(r), i++;
|
|
1888
1888
|
i < t.length && (this._$AR(s && s._$AB.nextSibling, i), t.length = i);
|
|
1889
1889
|
}
|
|
1890
1890
|
_$AR(e = this._$AA.nextSibling, t) {
|
|
@@ -1924,7 +1924,7 @@ class wn {
|
|
|
1924
1924
|
e === $ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
1925
1925
|
}
|
|
1926
1926
|
}
|
|
1927
|
-
let
|
|
1927
|
+
let Fl = class extends wn {
|
|
1928
1928
|
constructor() {
|
|
1929
1929
|
super(...arguments), this.type = 3;
|
|
1930
1930
|
}
|
|
@@ -1932,7 +1932,7 @@ let jl = class extends wn {
|
|
|
1932
1932
|
this.element[this.name] = e === $ ? void 0 : e;
|
|
1933
1933
|
}
|
|
1934
1934
|
};
|
|
1935
|
-
class
|
|
1935
|
+
class jl extends wn {
|
|
1936
1936
|
constructor() {
|
|
1937
1937
|
super(...arguments), this.type = 4;
|
|
1938
1938
|
}
|
|
@@ -1940,7 +1940,7 @@ class ql extends wn {
|
|
|
1940
1940
|
this.element.toggleAttribute(this.name, !!e && e !== $);
|
|
1941
1941
|
}
|
|
1942
1942
|
}
|
|
1943
|
-
class
|
|
1943
|
+
class ql extends wn {
|
|
1944
1944
|
constructor(e, t, s, i, r) {
|
|
1945
1945
|
super(e, t, s, i, r), this.type = 5;
|
|
1946
1946
|
}
|
|
@@ -1954,7 +1954,7 @@ class Wl extends wn {
|
|
|
1954
1954
|
typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e);
|
|
1955
1955
|
}
|
|
1956
1956
|
}
|
|
1957
|
-
class
|
|
1957
|
+
class Wl {
|
|
1958
1958
|
constructor(e, t, s) {
|
|
1959
1959
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = s;
|
|
1960
1960
|
}
|
|
@@ -1966,13 +1966,13 @@ class Gl {
|
|
|
1966
1966
|
}
|
|
1967
1967
|
}
|
|
1968
1968
|
const Yn = wt.litHtmlPolyfillSupport;
|
|
1969
|
-
Yn == null || Yn(fs,
|
|
1970
|
-
const
|
|
1969
|
+
Yn == null || Yn(fs, Mt), (wt.litHtmlVersions ?? (wt.litHtmlVersions = [])).push("3.3.1");
|
|
1970
|
+
const Gl = (n, e, t) => {
|
|
1971
1971
|
const s = (t == null ? void 0 : t.renderBefore) ?? e;
|
|
1972
1972
|
let i = s._$litPart$;
|
|
1973
1973
|
if (i === void 0) {
|
|
1974
1974
|
const r = (t == null ? void 0 : t.renderBefore) ?? null;
|
|
1975
|
-
s._$litPart$ = i = new
|
|
1975
|
+
s._$litPart$ = i = new Mt(e.insertBefore(_t(), r), r, void 0, t ?? {});
|
|
1976
1976
|
}
|
|
1977
1977
|
return i._$AI(n), i;
|
|
1978
1978
|
};
|
|
@@ -1993,7 +1993,7 @@ let M = class extends Xe {
|
|
|
1993
1993
|
}
|
|
1994
1994
|
update(e) {
|
|
1995
1995
|
const t = this.render();
|
|
1996
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
1996
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Gl(t, this.renderRoot, this.renderOptions);
|
|
1997
1997
|
}
|
|
1998
1998
|
connectedCallback() {
|
|
1999
1999
|
var e;
|
|
@@ -2012,7 +2012,7 @@ M._$litElement$ = !0, M.finalized = !0, (Fr = De.litElementHydrateSupport) == nu
|
|
|
2012
2012
|
const Kn = De.litElementPolyfillSupport;
|
|
2013
2013
|
Kn == null || Kn({ LitElement: M });
|
|
2014
2014
|
(De.litElementVersions ?? (De.litElementVersions = [])).push("4.2.1");
|
|
2015
|
-
const
|
|
2015
|
+
const Zl = { 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>' }, Yl = { 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>' }, vo = { 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>' }, Kl = { 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>' }, Xl = { 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>' }, nr = { 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>' }, Vl = { 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>' }, Ql = { 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>' }, sr = { 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>' }, Ve = {
|
|
2016
2016
|
allRenderFn: !1,
|
|
2017
2017
|
cmpDidLoad: !0,
|
|
2018
2018
|
cmpDidUnload: !1,
|
|
@@ -2096,7 +2096,7 @@ const Yl = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" f
|
|
|
2096
2096
|
transformTagName: !1,
|
|
2097
2097
|
attachStyles: !0
|
|
2098
2098
|
};
|
|
2099
|
-
let Qe, bo, kn, yo = !1,
|
|
2099
|
+
let Qe, bo, kn, yo = !1, an = !1, zs = !1, X = !1, ir = null, gs = !1;
|
|
2100
2100
|
const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} }, $o = Sn.HTMLElement || class {
|
|
2101
2101
|
}, q = {
|
|
2102
2102
|
$flags$: 0,
|
|
@@ -2106,7 +2106,7 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2106
2106
|
ael: (n, e, t, s) => n.addEventListener(e, t, s),
|
|
2107
2107
|
rel: (n, e, t, s) => n.removeEventListener(e, t, s),
|
|
2108
2108
|
ce: (n, e) => new CustomEvent(n, e)
|
|
2109
|
-
},
|
|
2109
|
+
}, Jl = /* @__PURE__ */ (() => {
|
|
2110
2110
|
let n = !1;
|
|
2111
2111
|
try {
|
|
2112
2112
|
ue.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
|
@@ -2117,7 +2117,7 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2117
2117
|
} catch {
|
|
2118
2118
|
}
|
|
2119
2119
|
return n;
|
|
2120
|
-
})(),
|
|
2120
|
+
})(), ec = (n) => Promise.resolve(n), tc = /* @__PURE__ */ (() => {
|
|
2121
2121
|
try {
|
|
2122
2122
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
|
2123
2123
|
} catch {
|
|
@@ -2125,24 +2125,24 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2125
2125
|
return !1;
|
|
2126
2126
|
})(), xo = (n, e, t, s) => {
|
|
2127
2127
|
t && t.map(([i, r, o]) => {
|
|
2128
|
-
const a =
|
|
2128
|
+
const a = sc(n, i), l = nc(e, o), c = ic(i);
|
|
2129
2129
|
q.ael(a, r, l, c), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => q.rel(a, r, l, c));
|
|
2130
2130
|
});
|
|
2131
|
-
},
|
|
2131
|
+
}, nc = (n, e) => (t) => {
|
|
2132
2132
|
try {
|
|
2133
2133
|
Ve.lazyLoad || n.$hostElement$[e](t);
|
|
2134
2134
|
} catch (s) {
|
|
2135
|
-
|
|
2135
|
+
Nt(s);
|
|
2136
2136
|
}
|
|
2137
|
-
},
|
|
2137
|
+
}, sc = (n, e) => e & 4 ? ue : e & 8 ? Sn : e & 16 ? ue.body : n, ic = (n) => Jl ? {
|
|
2138
2138
|
passive: (n & 1) !== 0,
|
|
2139
2139
|
capture: (n & 2) !== 0
|
|
2140
2140
|
} : (n & 2) !== 0, rr = "http://www.w3.org/1999/xlink", Be = (n, e = "") => () => {
|
|
2141
|
-
}, or = /* @__PURE__ */ new WeakMap(),
|
|
2142
|
-
let s =
|
|
2143
|
-
|
|
2144
|
-
},
|
|
2145
|
-
let i = wo(e, t), r =
|
|
2141
|
+
}, or = /* @__PURE__ */ new WeakMap(), rc = (n, e, t) => {
|
|
2142
|
+
let s = un.get(n);
|
|
2143
|
+
tc && t ? (s = s || new CSSStyleSheet(), s.replace(e)) : s = e, un.set(n, s);
|
|
2144
|
+
}, oc = (n, e, t, s) => {
|
|
2145
|
+
let i = wo(e, t), r = un.get(i);
|
|
2146
2146
|
if (n = n.nodeType === 11 ? n : ue, r)
|
|
2147
2147
|
if (typeof r == "string") {
|
|
2148
2148
|
n = n.head || n;
|
|
@@ -2150,14 +2150,14 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2150
2150
|
o || or.set(n, o = /* @__PURE__ */ new Set()), o.has(i) || (a = ue.createElement("style"), a.innerHTML = r, n.insertBefore(a, n.querySelector("link")), o && o.add(i));
|
|
2151
2151
|
} else n.adoptedStyleSheets.includes(r) || (n.adoptedStyleSheets = [...n.adoptedStyleSheets, r]);
|
|
2152
2152
|
return i;
|
|
2153
|
-
},
|
|
2154
|
-
const e = n.$cmpMeta$, t = n.$hostElement$, s = e.$flags$, i = Be("attachStyles", e.$tagName$), r =
|
|
2153
|
+
}, ac = (n) => {
|
|
2154
|
+
const e = n.$cmpMeta$, t = n.$hostElement$, s = e.$flags$, i = Be("attachStyles", e.$tagName$), r = oc(t.shadowRoot ? t.shadowRoot : t.getRootNode(), e, n.$modeName$);
|
|
2155
2155
|
s & 10 && (t["s-sc"] = r, t.classList.add(r + "-h"), s & 2 && t.classList.add(r + "-s")), i();
|
|
2156
|
-
}, wo = (n, e) => "sc-" + (e && n.$flags$ & 32 ? n.$tagName$ + "-" + e : n.$tagName$),
|
|
2156
|
+
}, wo = (n, e) => "sc-" + (e && n.$flags$ & 32 ? n.$tagName$ + "-" + e : n.$tagName$), lc = (n) => Nc.map((e) => e(n)).find((e) => !!e), ar = {}, cc = "http://www.w3.org/2000/svg", uc = "http://www.w3.org/1999/xhtml", hc = (n) => n != null, Bs = (n) => (n = typeof n, n === "object" || n === "function"), nt = (n, e, ...t) => {
|
|
2157
2157
|
let s = null, i = null, r = null, o = !1, a = !1, l = [];
|
|
2158
2158
|
const c = (p) => {
|
|
2159
2159
|
for (let d = 0; d < p.length; d++)
|
|
2160
|
-
s = p[d], Array.isArray(s) ? c(s) : s != null && typeof s != "boolean" && ((o = typeof n != "function" && !Bs(s)) && (s = String(s)), o && a ? l[l.length - 1].$text$ += s : l.push(o ?
|
|
2160
|
+
s = p[d], Array.isArray(s) ? c(s) : s != null && typeof s != "boolean" && ((o = typeof n != "function" && !Bs(s)) && (s = String(s)), o && a ? l[l.length - 1].$text$ += s : l.push(o ? ln(null, s) : s), a = o);
|
|
2161
2161
|
};
|
|
2162
2162
|
if (c(t), e) {
|
|
2163
2163
|
e.key && (i = e.key), e.name && (r = e.name);
|
|
@@ -2167,10 +2167,10 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2167
2167
|
}
|
|
2168
2168
|
}
|
|
2169
2169
|
if (typeof n == "function")
|
|
2170
|
-
return n(e === null ? {} : e, l,
|
|
2171
|
-
const u =
|
|
2170
|
+
return n(e === null ? {} : e, l, pc);
|
|
2171
|
+
const u = ln(n, null);
|
|
2172
2172
|
return u.$attrs$ = e, l.length > 0 && (u.$children$ = l), u.$key$ = i, u.$name$ = r, u;
|
|
2173
|
-
},
|
|
2173
|
+
}, ln = (n, e) => {
|
|
2174
2174
|
const t = {
|
|
2175
2175
|
$flags$: 0,
|
|
2176
2176
|
$tag$: n,
|
|
@@ -2179,9 +2179,9 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2179
2179
|
$children$: null
|
|
2180
2180
|
};
|
|
2181
2181
|
return t.$attrs$ = null, t.$key$ = null, t.$name$ = null, t;
|
|
2182
|
-
}, Hs = {},
|
|
2182
|
+
}, Hs = {}, dc = (n) => n && n.$tag$ === Hs, pc = {
|
|
2183
2183
|
forEach: (n, e) => n.map(lr).forEach(e),
|
|
2184
|
-
map: (n, e) => n.map(lr).map(e).map(
|
|
2184
|
+
map: (n, e) => n.map(lr).map(e).map(fc)
|
|
2185
2185
|
}, lr = (n) => ({
|
|
2186
2186
|
vattrs: n.$attrs$,
|
|
2187
2187
|
vchildren: n.$children$,
|
|
@@ -2189,12 +2189,12 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2189
2189
|
vname: n.$name$,
|
|
2190
2190
|
vtag: n.$tag$,
|
|
2191
2191
|
vtext: n.$text$
|
|
2192
|
-
}),
|
|
2192
|
+
}), fc = (n) => {
|
|
2193
2193
|
if (typeof n.vtag == "function") {
|
|
2194
2194
|
const t = Object.assign({}, n.vattrs);
|
|
2195
2195
|
return n.vkey && (t.key = n.vkey), n.vname && (t.name = n.vname), nt(n.vtag, t, ...n.vchildren || []);
|
|
2196
2196
|
}
|
|
2197
|
-
const e =
|
|
2197
|
+
const e = ln(n.vtag, n.vtext);
|
|
2198
2198
|
return e.$attrs$ = n.vattrs, e.$children$ = n.vchildren, e.$key$ = n.vkey, e.$name$ = n.vname, e;
|
|
2199
2199
|
}, cr = (n, e, t, s, i, r) => {
|
|
2200
2200
|
if (t !== s) {
|
|
@@ -2228,13 +2228,13 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2228
2228
|
a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, c = !0), s == null || s === !1 ? (s !== !1 || n.getAttribute(e) === "") && (c ? n.removeAttributeNS(rr, e) : n.removeAttribute(e)) : (!o || r & 4 || i) && !l && (s = s === !0 ? "" : s, c ? n.setAttributeNS(rr, e, s) : n.setAttribute(e, s));
|
|
2229
2229
|
}
|
|
2230
2230
|
}
|
|
2231
|
-
},
|
|
2231
|
+
}, gc = /\s/, ur = (n) => n ? n.split(gc) : [], ko = (n, e, t, s) => {
|
|
2232
2232
|
const i = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, r = n && n.$attrs$ || ar, o = e.$attrs$ || ar;
|
|
2233
2233
|
for (s in r)
|
|
2234
2234
|
s in o || cr(i, s, r[s], void 0, t, e.$flags$);
|
|
2235
2235
|
for (s in o)
|
|
2236
2236
|
cr(i, s, r[s], o[s], t, e.$flags$);
|
|
2237
|
-
},
|
|
2237
|
+
}, cn = (n, e, t, s) => {
|
|
2238
2238
|
let i = e.$children$[t], r = 0, o, a, l;
|
|
2239
2239
|
if (yo || (zs = !0, i.$tag$ === "slot" && (Qe && s.classList.add(Qe + "-s"), i.$flags$ |= i.$children$ ? (
|
|
2240
2240
|
// slot element has fallback content
|
|
@@ -2247,9 +2247,9 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2247
2247
|
else if (i.$flags$ & 1)
|
|
2248
2248
|
o = i.$elm$ = ue.createTextNode("");
|
|
2249
2249
|
else {
|
|
2250
|
-
if (X || (X = i.$tag$ === "svg"), o = i.$elm$ = ue.createElementNS(X ?
|
|
2250
|
+
if (X || (X = i.$tag$ === "svg"), o = i.$elm$ = ue.createElementNS(X ? cc : uc, i.$flags$ & 2 ? "slot-fb" : i.$tag$), X && i.$tag$ === "foreignObject" && (X = !1), ko(null, i, X), hc(Qe) && o["s-si"] !== Qe && o.classList.add(o["s-si"] = Qe), i.$children$)
|
|
2251
2251
|
for (r = 0; r < i.$children$.length; ++r)
|
|
2252
|
-
a =
|
|
2252
|
+
a = cn(n, i, r, o), a && o.appendChild(a);
|
|
2253
2253
|
i.$tag$ === "svg" ? X = !1 : o.tagName === "foreignObject" && (X = !0);
|
|
2254
2254
|
}
|
|
2255
2255
|
return o["s-hn"] = kn, i.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = bo, o["s-sn"] = i.$name$ || "", l = n && n.$children$ && n.$children$[t], l && l.$tag$ === i.$tag$ && n.$elm$ && At(n.$elm$, !1)), o;
|
|
@@ -2264,11 +2264,11 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2264
2264
|
}, So = (n, e, t, s, i, r) => {
|
|
2265
2265
|
let o = n["s-cr"] && n["s-cr"].parentNode || n, a;
|
|
2266
2266
|
for (o.shadowRoot && o.tagName === kn && (o = o.shadowRoot); i <= r; ++i)
|
|
2267
|
-
s[i] && (a =
|
|
2267
|
+
s[i] && (a = cn(null, t, i, n), a && (s[i].$elm$ = a, o.insertBefore(a, Fs(e))));
|
|
2268
2268
|
}, _o = (n, e, t, s, i) => {
|
|
2269
2269
|
for (; e <= t; ++e)
|
|
2270
|
-
(s = n[e]) && (i = s.$elm$,
|
|
2271
|
-
},
|
|
2270
|
+
(s = n[e]) && (i = s.$elm$, Co(s), an = !0, i["s-ol"] ? i["s-ol"].remove() : At(i, !0), i.remove());
|
|
2271
|
+
}, mc = (n, e, t, s) => {
|
|
2272
2272
|
let i = 0, r = 0, o = 0, a = 0, l = e.length - 1, c = e[0], u = e[l], p = s.length - 1, d = s[0], g = s[p], v, y;
|
|
2273
2273
|
for (; i <= l && r <= p; )
|
|
2274
2274
|
if (c == null)
|
|
@@ -2279,13 +2279,13 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2279
2279
|
d = s[++r];
|
|
2280
2280
|
else if (g == null)
|
|
2281
2281
|
g = s[--p];
|
|
2282
|
-
else if (
|
|
2282
|
+
else if (Zt(c, d))
|
|
2283
2283
|
Je(c, d), c = e[++i], d = s[++r];
|
|
2284
|
-
else if (
|
|
2284
|
+
else if (Zt(u, g))
|
|
2285
2285
|
Je(u, g), u = e[--l], g = s[--p];
|
|
2286
|
-
else if (
|
|
2286
|
+
else if (Zt(c, g))
|
|
2287
2287
|
(c.$tag$ === "slot" || g.$tag$ === "slot") && At(c.$elm$.parentNode, !1), Je(c, g), n.insertBefore(c.$elm$, u.$elm$.nextSibling), c = e[++i], g = s[--p];
|
|
2288
|
-
else if (
|
|
2288
|
+
else if (Zt(u, d))
|
|
2289
2289
|
(c.$tag$ === "slot" || g.$tag$ === "slot") && At(u.$elm$.parentNode, !1), Je(u, d), n.insertBefore(u.$elm$, c.$elm$), u = e[--l], d = s[++r];
|
|
2290
2290
|
else {
|
|
2291
2291
|
for (o = -1, a = i; a <= l; ++a)
|
|
@@ -2293,13 +2293,13 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2293
2293
|
o = a;
|
|
2294
2294
|
break;
|
|
2295
2295
|
}
|
|
2296
|
-
o >= 0 ? (y = e[o], y.$tag$ !== d.$tag$ ? v =
|
|
2296
|
+
o >= 0 ? (y = e[o], y.$tag$ !== d.$tag$ ? v = cn(e && e[r], t, o, n) : (Je(y, d), e[o] = void 0, v = y.$elm$), d = s[++r]) : (v = cn(e && e[r], t, r, n), d = s[++r]), v && Eo(c.$elm$).insertBefore(v, Fs(c.$elm$));
|
|
2297
2297
|
}
|
|
2298
2298
|
i > l ? So(n, s[p + 1] == null ? null : s[p + 1].$elm$, t, s, r, p) : r > p && _o(e, i, l);
|
|
2299
|
-
},
|
|
2299
|
+
}, Zt = (n, e) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : n.$key$ === e.$key$ : !1, Fs = (n) => n && n["s-ol"] || n, Eo = (n) => (n["s-ol"] ? n["s-ol"] : n).parentNode, Je = (n, e) => {
|
|
2300
2300
|
const t = e.$elm$ = n.$elm$, s = n.$children$, i = e.$children$, r = e.$tag$, o = e.$text$;
|
|
2301
2301
|
let a;
|
|
2302
|
-
o === null ? (X = r === "svg" ? !0 : r === "foreignObject" ? !1 : X, r === "slot" || ko(n, e, X), s !== null && i !== null ?
|
|
2302
|
+
o === null ? (X = r === "svg" ? !0 : r === "foreignObject" ? !1 : X, r === "slot" || ko(n, e, X), s !== null && i !== null ? mc(t, s, e, i) : i !== null ? (n.$text$ !== null && (t.textContent = ""), So(t, null, e, i, 0, i.length - 1)) : s !== null && _o(s, 0, s.length - 1), X && r === "svg" && (X = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : n.$text$ !== o && (t.data = o);
|
|
2303
2303
|
}, Ao = (n) => {
|
|
2304
2304
|
let e = n.childNodes, t, s, i, r, o, a;
|
|
2305
2305
|
for (s = 0, i = e.length; s < i; s++)
|
|
@@ -2318,12 +2318,12 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2318
2318
|
}
|
|
2319
2319
|
Ao(t);
|
|
2320
2320
|
}
|
|
2321
|
-
}, ne = [],
|
|
2321
|
+
}, ne = [], To = (n) => {
|
|
2322
2322
|
let e, t, s, i, r, o, a = 0, l = n.childNodes, c = l.length;
|
|
2323
2323
|
for (; a < c; a++) {
|
|
2324
2324
|
if (e = l[a], e["s-sr"] && (t = e["s-cr"]) && t.parentNode)
|
|
2325
2325
|
for (s = t.parentNode.childNodes, i = e["s-sn"], o = s.length - 1; o >= 0; o--)
|
|
2326
|
-
t = s[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (hr(t, i) ? (r = ne.find((u) => u.$nodeToRelocate$ === t),
|
|
2326
|
+
t = s[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (hr(t, i) ? (r = ne.find((u) => u.$nodeToRelocate$ === t), an = !0, t["s-sn"] = t["s-sn"] || i, r ? r.$slotRefNode$ = e : ne.push({
|
|
2327
2327
|
$slotRefNode$: e,
|
|
2328
2328
|
$nodeToRelocate$: t
|
|
2329
2329
|
}), t["s-sr"] && ne.map((u) => {
|
|
@@ -2331,16 +2331,16 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2331
2331
|
})) : ne.some((u) => u.$nodeToRelocate$ === t) || ne.push({
|
|
2332
2332
|
$nodeToRelocate$: t
|
|
2333
2333
|
}));
|
|
2334
|
-
e.nodeType === 1 &&
|
|
2334
|
+
e.nodeType === 1 && To(e);
|
|
2335
2335
|
}
|
|
2336
|
-
}, hr = (n, e) => n.nodeType === 1 ? n.getAttribute("slot") === null && e === "" || n.getAttribute("slot") === e : n["s-sn"] === e ? !0 : e === "",
|
|
2337
|
-
n.$attrs$ && n.$attrs$.ref && n.$attrs$.ref(null), n.$children$ && n.$children$.map(
|
|
2338
|
-
},
|
|
2339
|
-
const t = n.$hostElement$, s = n.$cmpMeta$, i = n.$vnode$ ||
|
|
2340
|
-
kn = t.tagName, s.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, n.$vnode$ = r, r.$elm$ = i.$elm$ = t.shadowRoot || t, Qe = t["s-sc"], bo = t["s-cr"], yo = (s.$flags$ & 1) !== 0,
|
|
2336
|
+
}, hr = (n, e) => n.nodeType === 1 ? n.getAttribute("slot") === null && e === "" || n.getAttribute("slot") === e : n["s-sn"] === e ? !0 : e === "", Co = (n) => {
|
|
2337
|
+
n.$attrs$ && n.$attrs$.ref && n.$attrs$.ref(null), n.$children$ && n.$children$.map(Co);
|
|
2338
|
+
}, vc = (n, e) => {
|
|
2339
|
+
const t = n.$hostElement$, s = n.$cmpMeta$, i = n.$vnode$ || ln(null, null), r = dc(e) ? e : nt(null, null, e);
|
|
2340
|
+
kn = t.tagName, s.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, n.$vnode$ = r, r.$elm$ = i.$elm$ = t.shadowRoot || t, Qe = t["s-sc"], bo = t["s-cr"], yo = (s.$flags$ & 1) !== 0, an = !1, Je(i, r);
|
|
2341
2341
|
{
|
|
2342
2342
|
if (q.$flags$ |= 1, zs) {
|
|
2343
|
-
|
|
2343
|
+
To(r.$elm$);
|
|
2344
2344
|
let o, a, l, c, u, p, d = 0;
|
|
2345
2345
|
for (; d < ne.length; d++)
|
|
2346
2346
|
o = ne[d], a = o.$nodeToRelocate$, a["s-ol"] || (l = ue.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
|
|
@@ -2355,39 +2355,39 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2355
2355
|
} else
|
|
2356
2356
|
a.nodeType === 1 && (a.hidden = !0);
|
|
2357
2357
|
}
|
|
2358
|
-
|
|
2358
|
+
an && Ao(r.$elm$), q.$flags$ &= -2, ne.length = 0;
|
|
2359
2359
|
}
|
|
2360
|
-
},
|
|
2361
|
-
const s =
|
|
2360
|
+
}, bc = (n) => n, yc = (n, e, t) => {
|
|
2361
|
+
const s = bc(n);
|
|
2362
2362
|
return {
|
|
2363
|
-
emit: (i) =>
|
|
2363
|
+
emit: (i) => $c(s, e, {
|
|
2364
2364
|
bubbles: !0,
|
|
2365
2365
|
composed: !0,
|
|
2366
2366
|
cancelable: !0,
|
|
2367
2367
|
detail: i
|
|
2368
2368
|
})
|
|
2369
2369
|
};
|
|
2370
|
-
},
|
|
2370
|
+
}, $c = (n, e, t) => {
|
|
2371
2371
|
const s = q.ce(e, t);
|
|
2372
2372
|
return n.dispatchEvent(s), s;
|
|
2373
|
-
},
|
|
2374
|
-
}, Ro = (n, e) => (n.$flags$ |= 16,
|
|
2373
|
+
}, xc = (n, e) => {
|
|
2374
|
+
}, Ro = (n, e) => (n.$flags$ |= 16, xc(n, n.$ancestorComponent$), zc(() => wc(n, e))), wc = (n, e) => {
|
|
2375
2375
|
const t = n.$hostElement$, s = Be("scheduleUpdate", n.$cmpMeta$.$tagName$), i = t;
|
|
2376
2376
|
let r;
|
|
2377
|
-
return e ? r = st(i, "componentWillLoad") : r = st(i, "componentWillUpdate"), r = dr(r, () => st(i, "componentWillRender")), s(), dr(r, () =>
|
|
2378
|
-
},
|
|
2377
|
+
return e ? r = st(i, "componentWillLoad") : r = st(i, "componentWillUpdate"), r = dr(r, () => st(i, "componentWillRender")), s(), dr(r, () => kc(n, i, e));
|
|
2378
|
+
}, kc = async (n, e, t) => {
|
|
2379
2379
|
const s = n.$hostElement$, i = Be("update", n.$cmpMeta$.$tagName$);
|
|
2380
|
-
s["s-rc"], t &&
|
|
2380
|
+
s["s-rc"], t && ac(n);
|
|
2381
2381
|
const r = Be("render", n.$cmpMeta$.$tagName$);
|
|
2382
|
-
|
|
2383
|
-
},
|
|
2382
|
+
Sc(n, e, s), r(), i(), _c(n);
|
|
2383
|
+
}, Sc = (n, e, t) => {
|
|
2384
2384
|
try {
|
|
2385
|
-
ir = e, e = e.render && e.render(), n.$flags$ &= -17, n.$flags$ |= 2, (Ve.hasRenderFn || Ve.reflect) && (Ve.vdomRender || Ve.reflect) && (Ve.hydrateServerSide ||
|
|
2385
|
+
ir = e, e = e.render && e.render(), n.$flags$ &= -17, n.$flags$ |= 2, (Ve.hasRenderFn || Ve.reflect) && (Ve.vdomRender || Ve.reflect) && (Ve.hydrateServerSide || vc(n, e));
|
|
2386
2386
|
} catch (a) {
|
|
2387
|
-
|
|
2387
|
+
Nt(a, n.$hostElement$);
|
|
2388
2388
|
}
|
|
2389
2389
|
return ir = null, null;
|
|
2390
|
-
},
|
|
2390
|
+
}, _c = (n) => {
|
|
2391
2391
|
const e = n.$cmpMeta$.$tagName$, t = n.$hostElement$, s = Be("postUpdate", e), i = t;
|
|
2392
2392
|
n.$ancestorComponent$, st(i, "componentDidRender"), n.$flags$ & 64 ? (st(i, "componentDidUpdate"), s()) : (n.$flags$ |= 64, st(i, "componentDidLoad"), s());
|
|
2393
2393
|
}, st = (n, e, t) => {
|
|
@@ -2395,11 +2395,11 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2395
2395
|
try {
|
|
2396
2396
|
return n[e](t);
|
|
2397
2397
|
} catch (s) {
|
|
2398
|
-
|
|
2398
|
+
Nt(s);
|
|
2399
2399
|
}
|
|
2400
|
-
}, dr = (n, e) => n && n.then ? n.then(e) : e(),
|
|
2400
|
+
}, dr = (n, e) => n && n.then ? n.then(e) : e(), Ec = (n, e) => n != null && !Bs(n) ? e & 4 ? n === "false" ? !1 : n === "" || !!n : e & 2 ? parseFloat(n) : e & 1 ? String(n) : n : n, Ac = (n, e) => _n(n).$instanceValues$.get(e), Tc = (n, e, t, s) => {
|
|
2401
2401
|
const i = _n(n), r = n, o = i.$instanceValues$.get(e), a = i.$flags$, l = r;
|
|
2402
|
-
t =
|
|
2402
|
+
t = Ec(t, s.$members$[e][0]);
|
|
2403
2403
|
const c = Number.isNaN(o) && Number.isNaN(t);
|
|
2404
2404
|
if (t !== o && !c) {
|
|
2405
2405
|
i.$instanceValues$.set(e, t);
|
|
@@ -2410,7 +2410,7 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2410
2410
|
try {
|
|
2411
2411
|
l[d](t, o, e);
|
|
2412
2412
|
} catch (g) {
|
|
2413
|
-
|
|
2413
|
+
Nt(g, r);
|
|
2414
2414
|
}
|
|
2415
2415
|
});
|
|
2416
2416
|
}
|
|
@@ -2421,14 +2421,14 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2421
2421
|
}
|
|
2422
2422
|
}
|
|
2423
2423
|
}
|
|
2424
|
-
},
|
|
2424
|
+
}, Cc = (n, e, t) => {
|
|
2425
2425
|
if (e.$members$) {
|
|
2426
2426
|
n.watchers && (e.$watchers$ = n.watchers);
|
|
2427
2427
|
const s = Object.entries(e.$members$), i = n.prototype;
|
|
2428
2428
|
s.map(([r, [o]]) => {
|
|
2429
2429
|
(o & 31 || o & 32) && Object.defineProperty(i, r, {
|
|
2430
2430
|
get() {
|
|
2431
|
-
return
|
|
2431
|
+
return Ac(this, r);
|
|
2432
2432
|
},
|
|
2433
2433
|
set(a) {
|
|
2434
2434
|
Tc(this, r, a, e);
|
|
@@ -2458,32 +2458,32 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2458
2458
|
}
|
|
2459
2459
|
}
|
|
2460
2460
|
return n;
|
|
2461
|
-
},
|
|
2461
|
+
}, Rc = async (n, e, t, s, i) => {
|
|
2462
2462
|
if ((e.$flags$ & 32) === 0 && (i = n.constructor, e.$flags$ |= 32, customElements.whenDefined(t.$tagName$).then(() => e.$flags$ |= 128), i.style)) {
|
|
2463
2463
|
let o = i.style;
|
|
2464
|
-
typeof o != "string" && (o = o[e.$modeName$ =
|
|
2464
|
+
typeof o != "string" && (o = o[e.$modeName$ = lc(n)]);
|
|
2465
2465
|
const a = wo(t, e.$modeName$);
|
|
2466
|
-
if (!
|
|
2466
|
+
if (!un.has(a)) {
|
|
2467
2467
|
const l = Be("registerStyles", t.$tagName$);
|
|
2468
|
-
|
|
2468
|
+
rc(a, o, !!(t.$flags$ & 1)), l();
|
|
2469
2469
|
}
|
|
2470
2470
|
}
|
|
2471
2471
|
e.$ancestorComponent$, Ro(e, !0);
|
|
2472
|
+
}, Lc = (n) => {
|
|
2472
2473
|
}, Oc = (n) => {
|
|
2473
|
-
}, Ic = (n) => {
|
|
2474
2474
|
if ((q.$flags$ & 1) === 0) {
|
|
2475
2475
|
const e = _n(n), t = e.$cmpMeta$, s = Be("connectedCallback", t.$tagName$);
|
|
2476
|
-
e.$flags$ & 1 ? (xo(n, e, t.$listeners$),
|
|
2476
|
+
e.$flags$ & 1 ? (xo(n, e, t.$listeners$), Lc(e.$lazyInstance$)) : (e.$flags$ |= 1, t.$flags$ & 12 && Ic(n), t.$members$ && Object.entries(t.$members$).map(([i, [r]]) => {
|
|
2477
2477
|
if (r & 31 && n.hasOwnProperty(i)) {
|
|
2478
2478
|
const o = n[i];
|
|
2479
2479
|
delete n[i], n[i] = o;
|
|
2480
2480
|
}
|
|
2481
|
-
}),
|
|
2481
|
+
}), Rc(n, e, t)), s();
|
|
2482
2482
|
}
|
|
2483
|
-
},
|
|
2483
|
+
}, Ic = (n) => {
|
|
2484
2484
|
const e = n["s-cr"] = ue.createComment("");
|
|
2485
2485
|
e["s-cn"] = !0, n.insertBefore(e, n.firstChild);
|
|
2486
|
-
},
|
|
2486
|
+
}, Pc = (n) => {
|
|
2487
2487
|
if ((q.$flags$ & 1) === 0) {
|
|
2488
2488
|
const e = _n(n);
|
|
2489
2489
|
e.$rmListeners$ && (e.$rmListeners$.map((t) => t()), e.$rmListeners$ = void 0);
|
|
@@ -2497,13 +2497,13 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2497
2497
|
const s = n.prototype.connectedCallback, i = n.prototype.disconnectedCallback;
|
|
2498
2498
|
return Object.assign(n.prototype, {
|
|
2499
2499
|
__registerHost() {
|
|
2500
|
-
|
|
2500
|
+
Mc(this, t);
|
|
2501
2501
|
},
|
|
2502
2502
|
connectedCallback() {
|
|
2503
|
-
|
|
2503
|
+
Oc(this), s && s.call(this);
|
|
2504
2504
|
},
|
|
2505
2505
|
disconnectedCallback() {
|
|
2506
|
-
|
|
2506
|
+
Pc(this), i && i.call(this);
|
|
2507
2507
|
},
|
|
2508
2508
|
__attachShadow() {
|
|
2509
2509
|
this.attachShadow({
|
|
@@ -2511,8 +2511,8 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2511
2511
|
delegatesFocus: !!(t.$flags$ & 16)
|
|
2512
2512
|
});
|
|
2513
2513
|
}
|
|
2514
|
-
}), n.is = t.$tagName$,
|
|
2515
|
-
}, Oo = /* @__PURE__ */ new WeakMap(), _n = (n) => Oo.get(n),
|
|
2514
|
+
}), n.is = t.$tagName$, Cc(n, t);
|
|
2515
|
+
}, Oo = /* @__PURE__ */ new WeakMap(), _n = (n) => Oo.get(n), Mc = (n, e) => {
|
|
2516
2516
|
const t = {
|
|
2517
2517
|
$flags$: 0,
|
|
2518
2518
|
$hostElement$: n,
|
|
@@ -2520,19 +2520,19 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2520
2520
|
$instanceValues$: /* @__PURE__ */ new Map()
|
|
2521
2521
|
};
|
|
2522
2522
|
return xo(n, t, e.$listeners$), Oo.set(n, t);
|
|
2523
|
-
}, pr = (n, e) => e in n,
|
|
2524
|
-
n.push(t), gs || (gs = !0, e && q.$flags$ & 4 ?
|
|
2523
|
+
}, pr = (n, e) => e in n, Nt = (n, e) => (0, console.error)(n, e), un = /* @__PURE__ */ new Map(), Nc = [], fr = [], Io = [], Dc = (n, e) => (t) => {
|
|
2524
|
+
n.push(t), gs || (gs = !0, e && q.$flags$ & 4 ? Uc(ms) : q.raf(ms));
|
|
2525
2525
|
}, gr = (n) => {
|
|
2526
2526
|
for (let e = 0; e < n.length; e++)
|
|
2527
2527
|
try {
|
|
2528
2528
|
n[e](performance.now());
|
|
2529
2529
|
} catch (t) {
|
|
2530
|
-
|
|
2530
|
+
Nt(t);
|
|
2531
2531
|
}
|
|
2532
2532
|
n.length = 0;
|
|
2533
2533
|
}, ms = () => {
|
|
2534
2534
|
gr(fr), gr(Io), (gs = fr.length > 0) && q.raf(ms);
|
|
2535
|
-
},
|
|
2535
|
+
}, Uc = (n) => ec().then(n), zc = /* @__PURE__ */ Dc(Io, !0), Bc = (n = {}) => {
|
|
2536
2536
|
const { content: e = "", title: t, attributes: s = [] } = n;
|
|
2537
2537
|
let i = "", r = [
|
|
2538
2538
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
@@ -2540,27 +2540,27 @@ const Sn = typeof window < "u" ? window : {}, ue = Sn.document || { head: {} },
|
|
|
2540
2540
|
...s
|
|
2541
2541
|
];
|
|
2542
2542
|
return t && (i = `<title>${t}</title>`), `<svg ${r.map((a) => `${a.name}="${a.value}"`).join(" ")}>${i}${e}</svg>`;
|
|
2543
|
-
},
|
|
2544
|
-
function
|
|
2543
|
+
}, Hc = (n) => n.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
|
2544
|
+
function Fc(n) {
|
|
2545
2545
|
return `${n.getFullYear()}.${n.getMonth() + 1}`;
|
|
2546
2546
|
}
|
|
2547
|
-
class
|
|
2547
|
+
class jc {
|
|
2548
2548
|
constructor(e) {
|
|
2549
|
-
this.voca_component = e, this.voca_added =
|
|
2549
|
+
this.voca_component = e, this.voca_added = Fc(/* @__PURE__ */ new Date());
|
|
2550
2550
|
}
|
|
2551
2551
|
}
|
|
2552
|
-
const
|
|
2552
|
+
const qc = "telia-vst{display:none}", Wc = /* @__PURE__ */ Lo(class extends $o {
|
|
2553
2553
|
constructor() {
|
|
2554
|
-
super(), this.__registerHost(), this.vocaInternalUStats =
|
|
2554
|
+
super(), this.__registerHost(), this.vocaInternalUStats = yc(this, "vocaInternalUStats");
|
|
2555
2555
|
}
|
|
2556
2556
|
connectedCallback() {
|
|
2557
|
-
this.vocaInternalUStats.emit(new
|
|
2557
|
+
this.vocaInternalUStats.emit(new jc(this.dataTrackingId));
|
|
2558
2558
|
}
|
|
2559
2559
|
render() {
|
|
2560
2560
|
return nt(Hs, null);
|
|
2561
2561
|
}
|
|
2562
2562
|
static get style() {
|
|
2563
|
-
return
|
|
2563
|
+
return qc;
|
|
2564
2564
|
}
|
|
2565
2565
|
}, [0, "telia-vst", {
|
|
2566
2566
|
dataTrackingId: [1, "data-tracking-id"]
|
|
@@ -2571,7 +2571,7 @@ function Po() {
|
|
|
2571
2571
|
["telia-vst"].forEach((e) => {
|
|
2572
2572
|
switch (e) {
|
|
2573
2573
|
case "telia-vst":
|
|
2574
|
-
customElements.get(e) || customElements.define(e,
|
|
2574
|
+
customElements.get(e) || customElements.define(e, Wc);
|
|
2575
2575
|
break;
|
|
2576
2576
|
}
|
|
2577
2577
|
});
|
|
@@ -2580,14 +2580,14 @@ Po();
|
|
|
2580
2580
|
function vs() {
|
|
2581
2581
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
|
2582
2582
|
}
|
|
2583
|
-
function
|
|
2583
|
+
function Gc() {
|
|
2584
2584
|
if (typeof vs().vocadsIcons !== void 0)
|
|
2585
2585
|
return vs().vocadsIcons;
|
|
2586
2586
|
}
|
|
2587
|
-
function
|
|
2587
|
+
function Zc() {
|
|
2588
2588
|
return vs().vocadsIconsRegistered;
|
|
2589
2589
|
}
|
|
2590
|
-
const
|
|
2590
|
+
const Yc = ".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))}", Kc = /* @__PURE__ */ Lo(class extends $o {
|
|
2591
2591
|
constructor() {
|
|
2592
2592
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
|
2593
2593
|
}
|
|
@@ -2599,8 +2599,8 @@ const Kc = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
|
2599
2599
|
getSvgString() {
|
|
2600
2600
|
if (this.svg)
|
|
2601
2601
|
return this.svg;
|
|
2602
|
-
if (
|
|
2603
|
-
const n =
|
|
2602
|
+
if (Zc() && this.name) {
|
|
2603
|
+
const n = Gc();
|
|
2604
2604
|
return n[this.name] ? n[this.name].svg : "";
|
|
2605
2605
|
}
|
|
2606
2606
|
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"), "";
|
|
@@ -2611,15 +2611,15 @@ const Kc = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
|
2611
2611
|
...e,
|
|
2612
2612
|
{ name: "aria-hidden", value: "true" }
|
|
2613
2613
|
];
|
|
2614
|
-
const t =
|
|
2615
|
-
content:
|
|
2614
|
+
const t = Bc({
|
|
2615
|
+
content: Hc(n),
|
|
2616
2616
|
attributes: e,
|
|
2617
2617
|
title: this.allyTitle
|
|
2618
2618
|
});
|
|
2619
2619
|
return nt(Hs, { class: `telia-icon telia-icon--${this.size}` }, nt("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: t }), nt("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
|
2620
2620
|
}
|
|
2621
2621
|
static get style() {
|
|
2622
|
-
return
|
|
2622
|
+
return Yc;
|
|
2623
2623
|
}
|
|
2624
2624
|
}, [0, "telia-icon", {
|
|
2625
2625
|
name: [1],
|
|
@@ -2628,13 +2628,13 @@ const Kc = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
|
2628
2628
|
allyTitle: [1, "ally-title"],
|
|
2629
2629
|
dataTestid: [1, "data-testid"]
|
|
2630
2630
|
}]);
|
|
2631
|
-
function
|
|
2631
|
+
function Xc() {
|
|
2632
2632
|
if (typeof customElements > "u")
|
|
2633
2633
|
return;
|
|
2634
2634
|
["telia-icon", "telia-vst"].forEach((e) => {
|
|
2635
2635
|
switch (e) {
|
|
2636
2636
|
case "telia-icon":
|
|
2637
|
-
customElements.get(e) || customElements.define(e,
|
|
2637
|
+
customElements.get(e) || customElements.define(e, Kc);
|
|
2638
2638
|
break;
|
|
2639
2639
|
case "telia-vst":
|
|
2640
2640
|
customElements.get(e) || Po();
|
|
@@ -2642,13 +2642,13 @@ function Vc() {
|
|
|
2642
2642
|
}
|
|
2643
2643
|
});
|
|
2644
2644
|
}
|
|
2645
|
-
|
|
2645
|
+
Xc();
|
|
2646
2646
|
/**
|
|
2647
2647
|
* @license
|
|
2648
2648
|
* Copyright 2017 Google LLC
|
|
2649
2649
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2650
2650
|
*/
|
|
2651
|
-
const
|
|
2651
|
+
const Vc = (n) => (e, t) => {
|
|
2652
2652
|
t !== void 0 ? t.addInitializer((() => {
|
|
2653
2653
|
customElements.define(n, e);
|
|
2654
2654
|
})) : customElements.define(n, e);
|
|
@@ -2658,7 +2658,7 @@ const Qc = (n) => (e, t) => {
|
|
|
2658
2658
|
* Copyright 2017 Google LLC
|
|
2659
2659
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2660
2660
|
*/
|
|
2661
|
-
const
|
|
2661
|
+
const Qc = { attribute: !0, type: String, converter: rn, reflect: !1, hasChanged: Ds }, Jc = (n = Qc, e, t) => {
|
|
2662
2662
|
const { kind: s, metadata: i } = t;
|
|
2663
2663
|
let r = globalThis.litPropertyMetadata.get(i);
|
|
2664
2664
|
if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), s === "setter" && ((n = Object.create(n)).wrapped = !0), r.set(t.name, n), s === "accessor") {
|
|
@@ -2679,8 +2679,8 @@ const Jc = { attribute: !0, type: String, converter: on, reflect: !1, hasChanged
|
|
|
2679
2679
|
}
|
|
2680
2680
|
throw Error("Unsupported decorator location: " + s);
|
|
2681
2681
|
};
|
|
2682
|
-
function
|
|
2683
|
-
return (e, t) => typeof t == "object" ?
|
|
2682
|
+
function T(n) {
|
|
2683
|
+
return (e, t) => typeof t == "object" ? Jc(n, e, t) : ((s, i, r) => {
|
|
2684
2684
|
const o = i.hasOwnProperty(r);
|
|
2685
2685
|
return i.constructor.createProperty(r, s), o ? Object.getOwnPropertyDescriptor(i, r) : void 0;
|
|
2686
2686
|
})(n, e, t);
|
|
@@ -2691,14 +2691,14 @@ function C(n) {
|
|
|
2691
2691
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2692
2692
|
*/
|
|
2693
2693
|
function N(n) {
|
|
2694
|
-
return
|
|
2694
|
+
return T({ ...n, state: !0, attribute: !1 });
|
|
2695
2695
|
}
|
|
2696
2696
|
/**
|
|
2697
2697
|
* @license
|
|
2698
2698
|
* Copyright 2020 Google LLC
|
|
2699
2699
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2700
2700
|
*/
|
|
2701
|
-
const
|
|
2701
|
+
const eu = (n) => n.strings === void 0;
|
|
2702
2702
|
/**
|
|
2703
2703
|
* @license
|
|
2704
2704
|
* Copyright 2017 Google LLC
|
|
@@ -2732,7 +2732,7 @@ const kt = (n, e) => {
|
|
|
2732
2732
|
if (t === void 0) return !1;
|
|
2733
2733
|
for (const i of t) (s = i._$AO) == null || s.call(i, e, !1), kt(i, e);
|
|
2734
2734
|
return !0;
|
|
2735
|
-
},
|
|
2735
|
+
}, hn = (n) => {
|
|
2736
2736
|
let e, t;
|
|
2737
2737
|
do {
|
|
2738
2738
|
if ((e = n._$AM) === void 0) break;
|
|
@@ -2743,20 +2743,20 @@ const kt = (n, e) => {
|
|
|
2743
2743
|
let t = e._$AN;
|
|
2744
2744
|
if (t === void 0) e._$AN = t = /* @__PURE__ */ new Set();
|
|
2745
2745
|
else if (t.has(n)) break;
|
|
2746
|
-
t.add(n),
|
|
2746
|
+
t.add(n), su(e);
|
|
2747
2747
|
}
|
|
2748
2748
|
};
|
|
2749
|
-
function
|
|
2750
|
-
this._$AN !== void 0 ? (
|
|
2749
|
+
function tu(n) {
|
|
2750
|
+
this._$AN !== void 0 ? (hn(this), this._$AM = n, Mo(this)) : this._$AM = n;
|
|
2751
2751
|
}
|
|
2752
|
-
function
|
|
2752
|
+
function nu(n, e = !1, t = 0) {
|
|
2753
2753
|
const s = this._$AH, i = this._$AN;
|
|
2754
|
-
if (i !== void 0 && i.size !== 0) if (e) if (Array.isArray(s)) for (let r = t; r < s.length; r++) kt(s[r], !1),
|
|
2755
|
-
else s != null && (kt(s, !1),
|
|
2754
|
+
if (i !== void 0 && i.size !== 0) if (e) if (Array.isArray(s)) for (let r = t; r < s.length; r++) kt(s[r], !1), hn(s[r]);
|
|
2755
|
+
else s != null && (kt(s, !1), hn(s));
|
|
2756
2756
|
else kt(this, n);
|
|
2757
2757
|
}
|
|
2758
|
-
const
|
|
2759
|
-
n.type == En.CHILD && (n._$AP ?? (n._$AP =
|
|
2758
|
+
const su = (n) => {
|
|
2759
|
+
n.type == En.CHILD && (n._$AP ?? (n._$AP = nu), n._$AQ ?? (n._$AQ = tu));
|
|
2760
2760
|
};
|
|
2761
2761
|
let No = class extends js {
|
|
2762
2762
|
constructor() {
|
|
@@ -2767,10 +2767,10 @@ let No = class extends js {
|
|
|
2767
2767
|
}
|
|
2768
2768
|
_$AO(e, t = !0) {
|
|
2769
2769
|
var s, i;
|
|
2770
|
-
e !== this.isConnected && (this.isConnected = e, e ? (s = this.reconnected) == null || s.call(this) : (i = this.disconnected) == null || i.call(this)), t && (kt(this, e),
|
|
2770
|
+
e !== this.isConnected && (this.isConnected = e, e ? (s = this.reconnected) == null || s.call(this) : (i = this.disconnected) == null || i.call(this)), t && (kt(this, e), hn(this));
|
|
2771
2771
|
}
|
|
2772
2772
|
setValue(e) {
|
|
2773
|
-
if (
|
|
2773
|
+
if (eu(this._$Ct)) this._$Ct._$AI(e, this);
|
|
2774
2774
|
else {
|
|
2775
2775
|
const t = [...this._$Ct._$AH];
|
|
2776
2776
|
t[this._$Ci] = e, this._$Ct._$AI(t, this, 0);
|
|
@@ -2786,8 +2786,8 @@ let No = class extends js {
|
|
|
2786
2786
|
* Copyright 2020 Google LLC
|
|
2787
2787
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2788
2788
|
*/
|
|
2789
|
-
const le = () => new
|
|
2790
|
-
class
|
|
2789
|
+
const le = () => new iu();
|
|
2790
|
+
class iu {
|
|
2791
2791
|
}
|
|
2792
2792
|
const Xn = /* @__PURE__ */ new WeakMap(), ce = An(class extends No {
|
|
2793
2793
|
render(n) {
|
|
@@ -2845,10 +2845,10 @@ const at = An(class extends js {
|
|
|
2845
2845
|
return Ee;
|
|
2846
2846
|
}
|
|
2847
2847
|
});
|
|
2848
|
-
var
|
|
2848
|
+
var ru = Object.defineProperty, ou = (n, e, t, s) => {
|
|
2849
2849
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
2850
2850
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
2851
|
-
return i &&
|
|
2851
|
+
return i && ru(e, t, i), i;
|
|
2852
2852
|
};
|
|
2853
2853
|
const si = class si extends M {
|
|
2854
2854
|
constructor() {
|
|
@@ -2881,13 +2881,13 @@ si.styles = [
|
|
|
2881
2881
|
}
|
|
2882
2882
|
`
|
|
2883
2883
|
];
|
|
2884
|
-
let
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
],
|
|
2888
|
-
const
|
|
2884
|
+
let dn = si;
|
|
2885
|
+
ou([
|
|
2886
|
+
T({ attribute: !0 })
|
|
2887
|
+
], dn.prototype, "anchor");
|
|
2888
|
+
const au = /* @__PURE__ */ new WeakMap();
|
|
2889
2889
|
let mr = 0;
|
|
2890
|
-
const Vn = /* @__PURE__ */ new Map(), vr = /* @__PURE__ */ new WeakSet(), br = () => new Promise(((n) => requestAnimationFrame(n))),
|
|
2890
|
+
const Vn = /* @__PURE__ */ new Map(), vr = /* @__PURE__ */ new WeakSet(), br = () => new Promise(((n) => requestAnimationFrame(n))), lu = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], cu = [{ opacity: 0 }], yr = [{ opacity: 0 }, { opacity: 1 }], $r = (n, e) => {
|
|
2891
2891
|
const t = n - e;
|
|
2892
2892
|
return t === 0 ? void 0 : t;
|
|
2893
2893
|
}, xr = (n, e) => {
|
|
@@ -2909,8 +2909,8 @@ const Vn = /* @__PURE__ */ new Map(), vr = /* @__PURE__ */ new WeakSet(), br = (
|
|
|
2909
2909
|
e === 0 && (e = 1, t = { height: "1px" });
|
|
2910
2910
|
const s = xr(n, e);
|
|
2911
2911
|
return { value: s, overrideFrom: t, transform: s == null || isNaN(s) ? void 0 : `scaleY(${s})` };
|
|
2912
|
-
} },
|
|
2913
|
-
class
|
|
2912
|
+
} }, uu = { duration: 333, easing: "ease-in-out" }, hu = ["left", "top", "width", "height", "opacity", "color", "background"], wr = /* @__PURE__ */ new WeakMap();
|
|
2913
|
+
class du extends No {
|
|
2914
2914
|
constructor(e) {
|
|
2915
2915
|
if (super(e), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, e.type === En.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
|
2916
2916
|
this.createFinished();
|
|
@@ -2929,7 +2929,7 @@ class pu extends No {
|
|
|
2929
2929
|
return $;
|
|
2930
2930
|
}
|
|
2931
2931
|
getController() {
|
|
2932
|
-
return
|
|
2932
|
+
return au.get(this.u);
|
|
2933
2933
|
}
|
|
2934
2934
|
isDisabled() {
|
|
2935
2935
|
var e;
|
|
@@ -2943,7 +2943,7 @@ class pu extends No {
|
|
|
2943
2943
|
p(e) {
|
|
2944
2944
|
e = e ?? {};
|
|
2945
2945
|
const t = this.getController();
|
|
2946
|
-
t !== void 0 && ((e = { ...t.defaultOptions, ...e }).keyframeOptions = { ...t.defaultOptions.keyframeOptions, ...e.keyframeOptions }), e.properties ?? (e.properties =
|
|
2946
|
+
t !== void 0 && ((e = { ...t.defaultOptions, ...e }).keyframeOptions = { ...t.defaultOptions.keyframeOptions, ...e.keyframeOptions }), e.properties ?? (e.properties = hu), this.options = e;
|
|
2947
2947
|
}
|
|
2948
2948
|
m() {
|
|
2949
2949
|
const e = {}, t = this.element.getBoundingClientRect(), s = getComputedStyle(this.element);
|
|
@@ -3032,7 +3032,7 @@ class pu extends No {
|
|
|
3032
3032
|
})), e;
|
|
3033
3033
|
}
|
|
3034
3034
|
j(e, t = this.O()) {
|
|
3035
|
-
const s = { ...
|
|
3035
|
+
const s = { ...uu };
|
|
3036
3036
|
return t.forEach(((i) => Object.assign(s, i.options.keyframeOptions))), Object.assign(s, e), s;
|
|
3037
3037
|
}
|
|
3038
3038
|
N(e, t, s) {
|
|
@@ -3081,7 +3081,7 @@ class pu extends No {
|
|
|
3081
3081
|
this.shouldLog && !this.isDisabled() && console.log(e, this.options.id, t);
|
|
3082
3082
|
}
|
|
3083
3083
|
}
|
|
3084
|
-
const bs = An(
|
|
3084
|
+
const bs = An(du), me = (n, e, t) => {
|
|
3085
3085
|
n && t.style.setProperty(e, n);
|
|
3086
3086
|
}, Do = (n, e) => {
|
|
3087
3087
|
var t, s, i, r, o, a, l, c, u;
|
|
@@ -3115,10 +3115,10 @@ const bs = An(pu), me = (n, e, t) => {
|
|
|
3115
3115
|
e
|
|
3116
3116
|
), me((u = n.colors) == null ? void 0 : u.focusColor, "--focus-color", e);
|
|
3117
3117
|
};
|
|
3118
|
-
var
|
|
3118
|
+
var pu = Object.defineProperty, Dt = (n, e, t, s) => {
|
|
3119
3119
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
3120
3120
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
3121
|
-
return i &&
|
|
3121
|
+
return i && pu(e, t, i), i;
|
|
3122
3122
|
};
|
|
3123
3123
|
const ii = class ii extends M {
|
|
3124
3124
|
constructor() {
|
|
@@ -3167,7 +3167,7 @@ const ii = class ii extends M {
|
|
|
3167
3167
|
const s = (c = this.application) == null ? void 0 : c.triggerIcon;
|
|
3168
3168
|
if (!s)
|
|
3169
3169
|
return $;
|
|
3170
|
-
const i = async (u) =>
|
|
3170
|
+
const i = async (u) => Vl, { type: r, content: o } = s;
|
|
3171
3171
|
switch (r) {
|
|
3172
3172
|
case "Telia": {
|
|
3173
3173
|
const u = await i();
|
|
@@ -3211,7 +3211,7 @@ const ii = class ii extends M {
|
|
|
3211
3211
|
@click=${this.toggleActive}
|
|
3212
3212
|
${bs({
|
|
3213
3213
|
keyframeOptions: {},
|
|
3214
|
-
in:
|
|
3214
|
+
in: lu,
|
|
3215
3215
|
stabilizeOut: !0,
|
|
3216
3216
|
skipInitial: !1
|
|
3217
3217
|
})}
|
|
@@ -3395,25 +3395,25 @@ ii.styles = [
|
|
|
3395
3395
|
`
|
|
3396
3396
|
];
|
|
3397
3397
|
let $e = ii;
|
|
3398
|
-
|
|
3399
|
-
|
|
3398
|
+
Dt([
|
|
3399
|
+
T({ attribute: !1 })
|
|
3400
3400
|
], $e.prototype, "application");
|
|
3401
|
-
|
|
3401
|
+
Dt([
|
|
3402
3402
|
N()
|
|
3403
3403
|
], $e.prototype, "active");
|
|
3404
|
-
|
|
3404
|
+
Dt([
|
|
3405
3405
|
N()
|
|
3406
3406
|
], $e.prototype, "triggerVisible");
|
|
3407
|
-
|
|
3407
|
+
Dt([
|
|
3408
3408
|
N()
|
|
3409
3409
|
], $e.prototype, "loaded");
|
|
3410
|
-
|
|
3410
|
+
Dt([
|
|
3411
3411
|
N()
|
|
3412
3412
|
], $e.prototype, "icon");
|
|
3413
|
-
var
|
|
3413
|
+
var fu = Object.defineProperty, Pe = (n, e, t, s) => {
|
|
3414
3414
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
3415
3415
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
3416
|
-
return i &&
|
|
3416
|
+
return i && fu(e, t, i), i;
|
|
3417
3417
|
};
|
|
3418
3418
|
const Uo = (n) => {
|
|
3419
3419
|
const t = class t extends n {
|
|
@@ -3457,19 +3457,19 @@ const Uo = (n) => {
|
|
|
3457
3457
|
];
|
|
3458
3458
|
let e = t;
|
|
3459
3459
|
return Pe([
|
|
3460
|
-
|
|
3460
|
+
T()
|
|
3461
3461
|
], e.prototype, "properties"), Pe([
|
|
3462
|
-
|
|
3462
|
+
T()
|
|
3463
3463
|
], e.prototype, "context"), Pe([
|
|
3464
|
-
|
|
3464
|
+
T()
|
|
3465
3465
|
], e.prototype, "layout"), Pe([
|
|
3466
|
-
|
|
3466
|
+
T()
|
|
3467
3467
|
], e.prototype, "name"), Pe([
|
|
3468
|
-
|
|
3468
|
+
T()
|
|
3469
3469
|
], e.prototype, "type"), Pe([
|
|
3470
|
-
|
|
3470
|
+
T({ attribute: !1 })
|
|
3471
3471
|
], e.prototype, "application"), Pe([
|
|
3472
|
-
|
|
3472
|
+
T({ attribute: !1 })
|
|
3473
3473
|
], e.prototype, "parent"), e;
|
|
3474
3474
|
}, ri = class ri extends Uo(M) {
|
|
3475
3475
|
render() {
|
|
@@ -3489,7 +3489,7 @@ let ys = ri;
|
|
|
3489
3489
|
* Copyright 2021 Google LLC
|
|
3490
3490
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3491
3491
|
*/
|
|
3492
|
-
function*
|
|
3492
|
+
function* gu(n, e) {
|
|
3493
3493
|
if (n !== void 0) {
|
|
3494
3494
|
let t = 0;
|
|
3495
3495
|
for (const s of n) yield e(s, t++);
|
|
@@ -3541,7 +3541,7 @@ let kr = class {
|
|
|
3541
3541
|
* Copyright 2021 Google LLC
|
|
3542
3542
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3543
3543
|
*/
|
|
3544
|
-
class
|
|
3544
|
+
class mu {
|
|
3545
3545
|
get value() {
|
|
3546
3546
|
return this.o;
|
|
3547
3547
|
}
|
|
@@ -3574,12 +3574,12 @@ class vu {
|
|
|
3574
3574
|
* Copyright 2021 Google LLC
|
|
3575
3575
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3576
3576
|
*/
|
|
3577
|
-
let
|
|
3577
|
+
let vu = class extends Event {
|
|
3578
3578
|
constructor(e, t) {
|
|
3579
3579
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = e, this.contextTarget = t;
|
|
3580
3580
|
}
|
|
3581
3581
|
};
|
|
3582
|
-
class Sr extends
|
|
3582
|
+
class Sr extends mu {
|
|
3583
3583
|
constructor(e, t, s) {
|
|
3584
3584
|
var i, r;
|
|
3585
3585
|
super(t.context !== void 0 ? t.initialValue : s), this.onContextRequest = (o) => {
|
|
@@ -3597,7 +3597,7 @@ class Sr extends vu {
|
|
|
3597
3597
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
3598
3598
|
}
|
|
3599
3599
|
hostConnected() {
|
|
3600
|
-
this.host.dispatchEvent(new
|
|
3600
|
+
this.host.dispatchEvent(new vu(this.context, this.host));
|
|
3601
3601
|
}
|
|
3602
3602
|
}
|
|
3603
3603
|
/**
|
|
@@ -3605,7 +3605,7 @@ class Sr extends vu {
|
|
|
3605
3605
|
* Copyright 2017 Google LLC
|
|
3606
3606
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3607
3607
|
*/
|
|
3608
|
-
function
|
|
3608
|
+
function bu({ context: n }) {
|
|
3609
3609
|
return (e, t) => {
|
|
3610
3610
|
const s = /* @__PURE__ */ new WeakMap();
|
|
3611
3611
|
if (typeof t == "object") return { get() {
|
|
@@ -3656,10 +3656,10 @@ function Ho({ context: n, subscribe: e }) {
|
|
|
3656
3656
|
}));
|
|
3657
3657
|
};
|
|
3658
3658
|
}
|
|
3659
|
-
var
|
|
3659
|
+
var yu = Object.defineProperty, Fo = (n, e, t, s) => {
|
|
3660
3660
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
3661
3661
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
3662
|
-
return i &&
|
|
3662
|
+
return i && yu(e, t, i), i;
|
|
3663
3663
|
};
|
|
3664
3664
|
const Ws = "application", oi = class oi extends M {
|
|
3665
3665
|
constructor() {
|
|
@@ -3688,7 +3688,7 @@ const Ws = "application", oi = class oi extends M {
|
|
|
3688
3688
|
render() {
|
|
3689
3689
|
var t, s, i;
|
|
3690
3690
|
return ((i = (s = (t = this.application.settings) == null ? void 0 : t.agentConfig) == null ? void 0 : s.live) == null ? void 0 : i.isThirdPartyWidget) ?? !1 ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === qs.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), w`<div class="widget-container" ${ce(this.wrapperRef)}>
|
|
3691
|
-
${
|
|
3691
|
+
${gu(this.nodes, (r) => r)}
|
|
3692
3692
|
</div>`;
|
|
3693
3693
|
}
|
|
3694
3694
|
};
|
|
@@ -3858,18 +3858,18 @@ oi.styles = Z`
|
|
|
3858
3858
|
animation: none;
|
|
3859
3859
|
}
|
|
3860
3860
|
`;
|
|
3861
|
-
let
|
|
3861
|
+
let Tt = oi;
|
|
3862
3862
|
Fo([
|
|
3863
|
-
|
|
3864
|
-
],
|
|
3863
|
+
T({ attribute: !0 })
|
|
3864
|
+
], Tt.prototype, "fullscreen");
|
|
3865
3865
|
Fo([
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
],
|
|
3869
|
-
var
|
|
3866
|
+
T({ attribute: !1 }),
|
|
3867
|
+
bu({ context: Ws })
|
|
3868
|
+
], Tt.prototype, "application");
|
|
3869
|
+
var $u = Object.defineProperty, Gs = (n, e, t, s) => {
|
|
3870
3870
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
3871
3871
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
3872
|
-
return i &&
|
|
3872
|
+
return i && $u(e, t, i), i;
|
|
3873
3873
|
};
|
|
3874
3874
|
const ai = class ai extends M {
|
|
3875
3875
|
constructor() {
|
|
@@ -3912,7 +3912,7 @@ ai.styles = [
|
|
|
3912
3912
|
];
|
|
3913
3913
|
let lt = ai;
|
|
3914
3914
|
Gs([
|
|
3915
|
-
|
|
3915
|
+
T({ attribute: !0 })
|
|
3916
3916
|
], lt.prototype, "name");
|
|
3917
3917
|
Gs([
|
|
3918
3918
|
N()
|
|
@@ -3920,12 +3920,12 @@ Gs([
|
|
|
3920
3920
|
Gs([
|
|
3921
3921
|
N()
|
|
3922
3922
|
], lt.prototype, "status");
|
|
3923
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
|
3923
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", dn);
|
|
3924
3924
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", $e);
|
|
3925
3925
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", ys);
|
|
3926
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
|
3926
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Tt);
|
|
3927
3927
|
customElements.get("ace-widget") || customElements.define("ace-widget", lt);
|
|
3928
|
-
class
|
|
3928
|
+
class xu {
|
|
3929
3929
|
constructor(e) {
|
|
3930
3930
|
this._message = null, this._host = e, e.addController(this);
|
|
3931
3931
|
}
|
|
@@ -3944,7 +3944,7 @@ class wu {
|
|
|
3944
3944
|
class _r {
|
|
3945
3945
|
constructor(e, t, s, i, r) {
|
|
3946
3946
|
this.id = e, this.providerKey = t, this.providerOptions = s, this.component = r, this.provider$ = new F(null), this.entries$ = new F([]), this.removeEntryAction$ = new P(), this.kill$ = new P(), this.isTyping$ = new F(!1), this.data$ = new F({}), this.complete$ = this.provider$.pipe(
|
|
3947
|
-
tt((l) => l ? l.onComplete() :
|
|
3947
|
+
tt((l) => l ? l.onComplete() : It)
|
|
3948
3948
|
);
|
|
3949
3949
|
const o = this._getProviderFactory(t);
|
|
3950
3950
|
if (!o)
|
|
@@ -3997,9 +3997,9 @@ class _r {
|
|
|
3997
3997
|
return this.component.platform.registeredProviders.get(e);
|
|
3998
3998
|
}
|
|
3999
3999
|
}
|
|
4000
|
-
class
|
|
4000
|
+
class wu {
|
|
4001
4001
|
constructor(e) {
|
|
4002
|
-
this.component = e, this.currentSession$ = new F(null), this.sessions = [], this.storage = null,
|
|
4002
|
+
this.component = e, this.currentSession$ = new F(null), this.sessions = [], this.storage = null, sn(e, "handover").subscribe((t) => {
|
|
4003
4003
|
const s = this._createNewSession(
|
|
4004
4004
|
t.detail.providerKey,
|
|
4005
4005
|
t.detail.providerOptions
|
|
@@ -4095,9 +4095,9 @@ class ku {
|
|
|
4095
4095
|
return this.component.properties.providers[0];
|
|
4096
4096
|
}
|
|
4097
4097
|
}
|
|
4098
|
-
class
|
|
4098
|
+
class ku {
|
|
4099
4099
|
constructor(e, t) {
|
|
4100
|
-
this.state$ = e, this.component = t, this.entries$ = new F([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new
|
|
4100
|
+
this.state$ = e, this.component = t, this.entries$ = new F([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new wu(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
|
|
4101
4101
|
tt((s) => s ? s.provider$.pipe(
|
|
4102
4102
|
tt((i) => i ? i.isTyping() : cs(!1))
|
|
4103
4103
|
) : cs(!1))
|
|
@@ -4126,16 +4126,16 @@ class Su {
|
|
|
4126
4126
|
this.session$.pipe(
|
|
4127
4127
|
tt((e) => {
|
|
4128
4128
|
if (!e)
|
|
4129
|
-
return
|
|
4129
|
+
return It;
|
|
4130
4130
|
const t = e.removeEntryAction$.pipe(hs(this.entries$)).pipe(
|
|
4131
|
-
|
|
4131
|
+
nn(([i, r]) => r.filter((o) => o.id !== i.id))
|
|
4132
4132
|
), s = e.entries().pipe(
|
|
4133
|
-
|
|
4133
|
+
nn((i) => {
|
|
4134
4134
|
const r = this.entries$.value, o = i.filter((a) => r.findIndex((l) => l.id === a.id) === -1);
|
|
4135
4135
|
return [...r, ...o];
|
|
4136
4136
|
})
|
|
4137
4137
|
);
|
|
4138
|
-
return
|
|
4138
|
+
return $l(t, s);
|
|
4139
4139
|
})
|
|
4140
4140
|
).subscribe((e) => {
|
|
4141
4141
|
this.entries$.next(e);
|
|
@@ -4146,10 +4146,10 @@ class Su {
|
|
|
4146
4146
|
(e = this.sessionService) == null || e.startSession();
|
|
4147
4147
|
}
|
|
4148
4148
|
}
|
|
4149
|
-
var
|
|
4149
|
+
var Su = Object.defineProperty, jo = (n, e, t, s) => {
|
|
4150
4150
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
4151
4151
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
4152
|
-
return i &&
|
|
4152
|
+
return i && Su(e, t, i), i;
|
|
4153
4153
|
};
|
|
4154
4154
|
const li = class li extends M {
|
|
4155
4155
|
connectedCallback() {
|
|
@@ -4183,10 +4183,10 @@ const li = class li extends M {
|
|
|
4183
4183
|
}
|
|
4184
4184
|
_renderDeliveryStatus(e) {
|
|
4185
4185
|
return e === "delivered" ? w`<telia-icon
|
|
4186
|
-
svg=${
|
|
4186
|
+
svg=${Yl.svg}
|
|
4187
4187
|
size="sm"
|
|
4188
4188
|
></telia-icon>` : e === "failed" ? w`<telia-icon
|
|
4189
|
-
svg=${
|
|
4189
|
+
svg=${Zl.svg}
|
|
4190
4190
|
size="sm"
|
|
4191
4191
|
title="Message could not be delivered"
|
|
4192
4192
|
></telia-icon>` : w`<telia-icon svg=${vo.svg} size="sm"></telia-icon>`;
|
|
@@ -4410,18 +4410,18 @@ li.styles = [
|
|
|
4410
4410
|
}
|
|
4411
4411
|
`
|
|
4412
4412
|
];
|
|
4413
|
-
let
|
|
4413
|
+
let Ct = li;
|
|
4414
4414
|
jo([
|
|
4415
|
-
|
|
4416
|
-
],
|
|
4415
|
+
T({ attribute: !1 })
|
|
4416
|
+
], Ct.prototype, "entry");
|
|
4417
4417
|
jo([
|
|
4418
4418
|
Ho({ context: Ws }),
|
|
4419
|
-
|
|
4420
|
-
],
|
|
4421
|
-
var
|
|
4419
|
+
T({ attribute: !1 })
|
|
4420
|
+
], Ct.prototype, "application");
|
|
4421
|
+
var _u = Object.defineProperty, qo = (n, e, t, s) => {
|
|
4422
4422
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
4423
4423
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
4424
|
-
return i &&
|
|
4424
|
+
return i && _u(e, t, i), i;
|
|
4425
4425
|
};
|
|
4426
4426
|
const ci = class ci extends M {
|
|
4427
4427
|
constructor() {
|
|
@@ -4451,7 +4451,7 @@ const ci = class ci extends M {
|
|
|
4451
4451
|
${bs({
|
|
4452
4452
|
keyframeOptions: {},
|
|
4453
4453
|
in: yr,
|
|
4454
|
-
out:
|
|
4454
|
+
out: cu,
|
|
4455
4455
|
stabilizeOut: !0,
|
|
4456
4456
|
skipInitial: !1
|
|
4457
4457
|
})}
|
|
@@ -4480,24 +4480,24 @@ ci.styles = [
|
|
|
4480
4480
|
];
|
|
4481
4481
|
let Rt = ci;
|
|
4482
4482
|
qo([
|
|
4483
|
-
|
|
4483
|
+
T({ attribute: !1 })
|
|
4484
4484
|
], Rt.prototype, "entries");
|
|
4485
4485
|
qo([
|
|
4486
|
-
|
|
4486
|
+
T({ type: Boolean })
|
|
4487
4487
|
], Rt.prototype, "loading");
|
|
4488
4488
|
/**
|
|
4489
4489
|
* @license
|
|
4490
4490
|
* Copyright 2021 Google LLC
|
|
4491
4491
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4492
4492
|
*/
|
|
4493
|
-
const
|
|
4493
|
+
const Eu = (n, e, t) => {
|
|
4494
4494
|
for (const s of e) if (s[0] === n) return (0, s[1])();
|
|
4495
4495
|
return t == null ? void 0 : t();
|
|
4496
4496
|
};
|
|
4497
|
-
var
|
|
4497
|
+
var Au = Object.defineProperty, Tu = (n, e, t, s) => {
|
|
4498
4498
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
4499
4499
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
4500
|
-
return i &&
|
|
4500
|
+
return i && Au(e, t, i), i;
|
|
4501
4501
|
};
|
|
4502
4502
|
const ui = class ui extends M {
|
|
4503
4503
|
render() {
|
|
@@ -4505,7 +4505,7 @@ const ui = class ui extends M {
|
|
|
4505
4505
|
<div class="message-group">
|
|
4506
4506
|
${this.group.items.map(
|
|
4507
4507
|
([e, t, s]) => w`
|
|
4508
|
-
${
|
|
4508
|
+
${Eu(
|
|
4509
4509
|
e,
|
|
4510
4510
|
[
|
|
4511
4511
|
["html", () => w`<message-type-html .message=${t} />`],
|
|
@@ -4544,10 +4544,10 @@ ui.styles = [
|
|
|
4544
4544
|
}
|
|
4545
4545
|
`
|
|
4546
4546
|
];
|
|
4547
|
-
let
|
|
4547
|
+
let pn = ui;
|
|
4548
4548
|
Tu([
|
|
4549
|
-
|
|
4550
|
-
],
|
|
4549
|
+
T({ attribute: !1 })
|
|
4550
|
+
], pn.prototype, "group");
|
|
4551
4551
|
const hi = class hi extends M {
|
|
4552
4552
|
render() {
|
|
4553
4553
|
return w`<div class="container">
|
|
@@ -4615,14 +4615,14 @@ class xs extends js {
|
|
|
4615
4615
|
}
|
|
4616
4616
|
}
|
|
4617
4617
|
xs.directiveName = "unsafeHTML", xs.resultType = 1;
|
|
4618
|
-
const
|
|
4618
|
+
const Cu = An(xs);
|
|
4619
4619
|
/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
|
|
4620
4620
|
const {
|
|
4621
4621
|
entries: Wo,
|
|
4622
4622
|
setPrototypeOf: Er,
|
|
4623
|
-
isFrozen:
|
|
4624
|
-
getPrototypeOf:
|
|
4625
|
-
getOwnPropertyDescriptor:
|
|
4623
|
+
isFrozen: Ru,
|
|
4624
|
+
getPrototypeOf: Lu,
|
|
4625
|
+
getOwnPropertyDescriptor: Ou
|
|
4626
4626
|
} = Object;
|
|
4627
4627
|
let {
|
|
4628
4628
|
freeze: W,
|
|
@@ -4648,7 +4648,7 @@ Ss || (Ss = function(e) {
|
|
|
4648
4648
|
s[i - 1] = arguments[i];
|
|
4649
4649
|
return new e(...s);
|
|
4650
4650
|
});
|
|
4651
|
-
const
|
|
4651
|
+
const Yt = G(Array.prototype.forEach), Iu = G(Array.prototype.lastIndexOf), Ar = G(Array.prototype.pop), ft = G(Array.prototype.push), Pu = G(Array.prototype.splice), Jt = G(String.prototype.toLowerCase), Jn = G(String.prototype.toString), es = G(String.prototype.match), gt = G(String.prototype.replace), Mu = G(String.prototype.indexOf), Nu = G(String.prototype.trim), te = G(Object.prototype.hasOwnProperty), H = G(RegExp.prototype.test), mt = Du(TypeError);
|
|
4652
4652
|
function G(n) {
|
|
4653
4653
|
return function(e) {
|
|
4654
4654
|
e instanceof RegExp && (e.lastIndex = 0);
|
|
@@ -4657,7 +4657,7 @@ function G(n) {
|
|
|
4657
4657
|
return ks(n, e, s);
|
|
4658
4658
|
};
|
|
4659
4659
|
}
|
|
4660
|
-
function
|
|
4660
|
+
function Du(n) {
|
|
4661
4661
|
return function() {
|
|
4662
4662
|
for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
|
|
4663
4663
|
t[s] = arguments[s];
|
|
@@ -4665,20 +4665,20 @@ function Uu(n) {
|
|
|
4665
4665
|
};
|
|
4666
4666
|
}
|
|
4667
4667
|
function x(n, e) {
|
|
4668
|
-
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
4668
|
+
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Jt;
|
|
4669
4669
|
Er && Er(n, null);
|
|
4670
4670
|
let s = e.length;
|
|
4671
4671
|
for (; s--; ) {
|
|
4672
4672
|
let i = e[s];
|
|
4673
4673
|
if (typeof i == "string") {
|
|
4674
4674
|
const r = t(i);
|
|
4675
|
-
r !== i && (
|
|
4675
|
+
r !== i && (Ru(e) || (e[s] = r), i = r);
|
|
4676
4676
|
}
|
|
4677
4677
|
n[i] = !0;
|
|
4678
4678
|
}
|
|
4679
4679
|
return n;
|
|
4680
4680
|
}
|
|
4681
|
-
function
|
|
4681
|
+
function Uu(n) {
|
|
4682
4682
|
for (let e = 0; e < n.length; e++)
|
|
4683
4683
|
te(n, e) || (n[e] = null);
|
|
4684
4684
|
return n;
|
|
@@ -4686,44 +4686,44 @@ function zu(n) {
|
|
|
4686
4686
|
function oe(n) {
|
|
4687
4687
|
const e = ws(null);
|
|
4688
4688
|
for (const [t, s] of Wo(n))
|
|
4689
|
-
te(n, t) && (Array.isArray(s) ? e[t] =
|
|
4689
|
+
te(n, t) && (Array.isArray(s) ? e[t] = Uu(s) : s && typeof s == "object" && s.constructor === Object ? e[t] = oe(s) : e[t] = s);
|
|
4690
4690
|
return e;
|
|
4691
4691
|
}
|
|
4692
4692
|
function vt(n, e) {
|
|
4693
4693
|
for (; n !== null; ) {
|
|
4694
|
-
const s =
|
|
4694
|
+
const s = Ou(n, e);
|
|
4695
4695
|
if (s) {
|
|
4696
4696
|
if (s.get)
|
|
4697
4697
|
return G(s.get);
|
|
4698
4698
|
if (typeof s.value == "function")
|
|
4699
4699
|
return G(s.value);
|
|
4700
4700
|
}
|
|
4701
|
-
n =
|
|
4701
|
+
n = Lu(n);
|
|
4702
4702
|
}
|
|
4703
4703
|
function t() {
|
|
4704
4704
|
return null;
|
|
4705
4705
|
}
|
|
4706
4706
|
return t;
|
|
4707
4707
|
}
|
|
4708
|
-
const
|
|
4708
|
+
const Tr = W(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), ts = W(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), ns = W(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), zu = W(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), ss = W(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Bu = W(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Cr = W(["#text"]), Rr = W(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), is = W(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Lr = W(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Kt = W(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Hu = J(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Fu = J(/<%[\w\W]*|[\w\W]*%>/gm), ju = J(/\$\{[\w\W]*/gm), qu = J(/^data-[\-\w.\u00B7-\uFFFF]+$/), Wu = J(/^aria-[\-\w]+$/), Go = J(
|
|
4709
4709
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4710
4710
|
// eslint-disable-line no-useless-escape
|
|
4711
|
-
),
|
|
4711
|
+
), Gu = J(/^(?:\w+script|data):/i), Zu = J(
|
|
4712
4712
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
4713
4713
|
// eslint-disable-line no-control-regex
|
|
4714
|
-
), Zo = J(/^html$/i),
|
|
4714
|
+
), Zo = J(/^html$/i), Yu = J(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
4715
4715
|
var Or = /* @__PURE__ */ Object.freeze({
|
|
4716
4716
|
__proto__: null,
|
|
4717
|
-
ARIA_ATTR:
|
|
4718
|
-
ATTR_WHITESPACE:
|
|
4719
|
-
CUSTOM_ELEMENT:
|
|
4720
|
-
DATA_ATTR:
|
|
4717
|
+
ARIA_ATTR: Wu,
|
|
4718
|
+
ATTR_WHITESPACE: Zu,
|
|
4719
|
+
CUSTOM_ELEMENT: Yu,
|
|
4720
|
+
DATA_ATTR: qu,
|
|
4721
4721
|
DOCTYPE_NAME: Zo,
|
|
4722
|
-
ERB_EXPR:
|
|
4722
|
+
ERB_EXPR: Fu,
|
|
4723
4723
|
IS_ALLOWED_URI: Go,
|
|
4724
|
-
IS_SCRIPT_OR_DATA:
|
|
4725
|
-
MUSTACHE_EXPR:
|
|
4726
|
-
TMPLIT_EXPR:
|
|
4724
|
+
IS_SCRIPT_OR_DATA: Gu,
|
|
4725
|
+
MUSTACHE_EXPR: Hu,
|
|
4726
|
+
TMPLIT_EXPR: ju
|
|
4727
4727
|
});
|
|
4728
4728
|
const bt = {
|
|
4729
4729
|
element: 1,
|
|
@@ -4732,9 +4732,9 @@ const bt = {
|
|
|
4732
4732
|
progressingInstruction: 7,
|
|
4733
4733
|
comment: 8,
|
|
4734
4734
|
document: 9
|
|
4735
|
-
},
|
|
4735
|
+
}, Ku = function() {
|
|
4736
4736
|
return typeof window > "u" ? null : window;
|
|
4737
|
-
},
|
|
4737
|
+
}, Xu = function(e, t) {
|
|
4738
4738
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
4739
4739
|
return null;
|
|
4740
4740
|
let s = null;
|
|
@@ -4767,7 +4767,7 @@ const bt = {
|
|
|
4767
4767
|
};
|
|
4768
4768
|
};
|
|
4769
4769
|
function Yo() {
|
|
4770
|
-
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
4770
|
+
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ku();
|
|
4771
4771
|
const e = (b) => Yo(b);
|
|
4772
4772
|
if (e.version = "3.3.1", e.removed = [], !n || !n.document || n.document.nodeType !== bt.document || !n.Element)
|
|
4773
4773
|
return e.isSupported = !1, e;
|
|
@@ -4789,34 +4789,34 @@ function Yo() {
|
|
|
4789
4789
|
const b = t.createElement("template");
|
|
4790
4790
|
b.content && b.content.ownerDocument && (t = b.content.ownerDocument);
|
|
4791
4791
|
}
|
|
4792
|
-
let O,
|
|
4792
|
+
let O, Te = "";
|
|
4793
4793
|
const {
|
|
4794
|
-
implementation:
|
|
4794
|
+
implementation: Ce,
|
|
4795
4795
|
createNodeIterator: Re,
|
|
4796
|
-
createDocumentFragment:
|
|
4797
|
-
getElementsByTagName:
|
|
4796
|
+
createDocumentFragment: ca,
|
|
4797
|
+
getElementsByTagName: ua
|
|
4798
4798
|
} = t, {
|
|
4799
|
-
importNode:
|
|
4799
|
+
importNode: ha
|
|
4800
4800
|
} = s;
|
|
4801
4801
|
let B = Ir();
|
|
4802
|
-
e.isSupported = typeof Wo == "function" && typeof Ae == "function" &&
|
|
4802
|
+
e.isSupported = typeof Wo == "function" && typeof Ae == "function" && Ce && Ce.createHTMLDocument !== void 0;
|
|
4803
4803
|
const {
|
|
4804
4804
|
MUSTACHE_EXPR: Rn,
|
|
4805
4805
|
ERB_EXPR: Ln,
|
|
4806
4806
|
TMPLIT_EXPR: On,
|
|
4807
|
-
DATA_ATTR:
|
|
4808
|
-
ARIA_ATTR:
|
|
4809
|
-
IS_SCRIPT_OR_DATA:
|
|
4807
|
+
DATA_ATTR: da,
|
|
4808
|
+
ARIA_ATTR: pa,
|
|
4809
|
+
IS_SCRIPT_OR_DATA: fa,
|
|
4810
4810
|
ATTR_WHITESPACE: mi,
|
|
4811
|
-
CUSTOM_ELEMENT:
|
|
4811
|
+
CUSTOM_ELEMENT: ga
|
|
4812
4812
|
} = Or;
|
|
4813
4813
|
let {
|
|
4814
4814
|
IS_ALLOWED_URI: vi
|
|
4815
4815
|
} = Or, I = null;
|
|
4816
|
-
const bi = x({}, [...
|
|
4816
|
+
const bi = x({}, [...Tr, ...ts, ...ns, ...ss, ...Cr]);
|
|
4817
4817
|
let D = null;
|
|
4818
|
-
const yi = x({}, [...Rr, ...is, ...Lr, ...
|
|
4819
|
-
let
|
|
4818
|
+
const yi = x({}, [...Rr, ...is, ...Lr, ...Kt]);
|
|
4819
|
+
let C = Object.seal(ws(null, {
|
|
4820
4820
|
tagNameCheck: {
|
|
4821
4821
|
writable: !0,
|
|
4822
4822
|
configurable: !1,
|
|
@@ -4850,45 +4850,45 @@ function Yo() {
|
|
|
4850
4850
|
value: null
|
|
4851
4851
|
}
|
|
4852
4852
|
}));
|
|
4853
|
-
let $i = !0, Pn = !0, xi = !1, wi = !0, qe = !1,
|
|
4854
|
-
const
|
|
4853
|
+
let $i = !0, Pn = !0, xi = !1, wi = !0, qe = !1, zt = !0, Le = !1, Mn = !1, Nn = !1, We = !1, Bt = !1, Ht = !1, ki = !0, Si = !1;
|
|
4854
|
+
const ma = "user-content-";
|
|
4855
4855
|
let Dn = !0, ht = !1, Ge = {}, ie = null;
|
|
4856
4856
|
const Un = x({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
4857
4857
|
let _i = null;
|
|
4858
4858
|
const Ei = x({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4859
4859
|
let zn = null;
|
|
4860
|
-
const Ai = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]),
|
|
4860
|
+
const Ai = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ft = "http://www.w3.org/1998/Math/MathML", jt = "http://www.w3.org/2000/svg", pe = "http://www.w3.org/1999/xhtml";
|
|
4861
4861
|
let Ze = pe, Bn = !1, Hn = null;
|
|
4862
|
-
const
|
|
4863
|
-
let
|
|
4864
|
-
const
|
|
4862
|
+
const va = x({}, [Ft, jt, pe], Jn);
|
|
4863
|
+
let qt = x({}, ["mi", "mo", "mn", "ms", "mtext"]), Wt = x({}, ["annotation-xml"]);
|
|
4864
|
+
const ba = x({}, ["title", "style", "font", "a", "script"]);
|
|
4865
4865
|
let dt = null;
|
|
4866
|
-
const
|
|
4866
|
+
const ya = ["application/xhtml+xml", "text/html"], $a = "text/html";
|
|
4867
4867
|
let L = null, Ye = null;
|
|
4868
|
-
const
|
|
4868
|
+
const xa = t.createElement("form"), Ti = function(h) {
|
|
4869
4869
|
return h instanceof RegExp || h instanceof Function;
|
|
4870
4870
|
}, Fn = function() {
|
|
4871
4871
|
let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4872
4872
|
if (!(Ye && Ye === h)) {
|
|
4873
4873
|
if ((!h || typeof h != "object") && (h = {}), h = oe(h), dt = // eslint-disable-next-line unicorn/prefer-includes
|
|
4874
|
-
|
|
4874
|
+
ya.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? $a : h.PARSER_MEDIA_TYPE, L = dt === "application/xhtml+xml" ? Jn : Jt, I = te(h, "ALLOWED_TAGS") ? x({}, h.ALLOWED_TAGS, L) : bi, D = te(h, "ALLOWED_ATTR") ? x({}, h.ALLOWED_ATTR, L) : yi, Hn = te(h, "ALLOWED_NAMESPACES") ? x({}, h.ALLOWED_NAMESPACES, Jn) : va, zn = te(h, "ADD_URI_SAFE_ATTR") ? x(oe(Ai), h.ADD_URI_SAFE_ATTR, L) : Ai, _i = te(h, "ADD_DATA_URI_TAGS") ? x(oe(Ei), h.ADD_DATA_URI_TAGS, L) : Ei, ie = te(h, "FORBID_CONTENTS") ? x({}, h.FORBID_CONTENTS, L) : Un, ut = te(h, "FORBID_TAGS") ? x({}, h.FORBID_TAGS, L) : oe({}), In = te(h, "FORBID_ATTR") ? x({}, h.FORBID_ATTR, L) : oe({}), Ge = te(h, "USE_PROFILES") ? h.USE_PROFILES : !1, $i = h.ALLOW_ARIA_ATTR !== !1, Pn = h.ALLOW_DATA_ATTR !== !1, xi = h.ALLOW_UNKNOWN_PROTOCOLS || !1, wi = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, qe = h.SAFE_FOR_TEMPLATES || !1, zt = h.SAFE_FOR_XML !== !1, Le = h.WHOLE_DOCUMENT || !1, We = h.RETURN_DOM || !1, Bt = h.RETURN_DOM_FRAGMENT || !1, Ht = h.RETURN_TRUSTED_TYPE || !1, Nn = h.FORCE_BODY || !1, ki = h.SANITIZE_DOM !== !1, Si = h.SANITIZE_NAMED_PROPS || !1, Dn = h.KEEP_CONTENT !== !1, ht = h.IN_PLACE || !1, vi = h.ALLOWED_URI_REGEXP || Go, Ze = h.NAMESPACE || pe, qt = h.MATHML_TEXT_INTEGRATION_POINTS || qt, Wt = h.HTML_INTEGRATION_POINTS || Wt, C = h.CUSTOM_ELEMENT_HANDLING || {}, h.CUSTOM_ELEMENT_HANDLING && Ti(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (C.tagNameCheck = h.CUSTOM_ELEMENT_HANDLING.tagNameCheck), h.CUSTOM_ELEMENT_HANDLING && Ti(h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (C.attributeNameCheck = h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), h.CUSTOM_ELEMENT_HANDLING && typeof h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (C.allowCustomizedBuiltInElements = h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), qe && (Pn = !1), Bt && (We = !0), Ge && (I = x({}, Cr), D = [], Ge.html === !0 && (x(I, Tr), x(D, Rr)), Ge.svg === !0 && (x(I, ts), x(D, is), x(D, Kt)), Ge.svgFilters === !0 && (x(I, ns), x(D, is), x(D, Kt)), Ge.mathMl === !0 && (x(I, ss), x(D, Lr), x(D, Kt))), h.ADD_TAGS && (typeof h.ADD_TAGS == "function" ? je.tagCheck = h.ADD_TAGS : (I === bi && (I = oe(I)), x(I, h.ADD_TAGS, L))), h.ADD_ATTR && (typeof h.ADD_ATTR == "function" ? je.attributeCheck = h.ADD_ATTR : (D === yi && (D = oe(D)), x(D, h.ADD_ATTR, L))), h.ADD_URI_SAFE_ATTR && x(zn, h.ADD_URI_SAFE_ATTR, L), h.FORBID_CONTENTS && (ie === Un && (ie = oe(ie)), x(ie, h.FORBID_CONTENTS, L)), h.ADD_FORBID_CONTENTS && (ie === Un && (ie = oe(ie)), x(ie, h.ADD_FORBID_CONTENTS, L)), Dn && (I["#text"] = !0), Le && x(I, ["html", "head", "body"]), I.table && (x(I, ["tbody"]), delete ut.tbody), h.TRUSTED_TYPES_POLICY) {
|
|
4875
4875
|
if (typeof h.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4876
4876
|
throw mt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4877
4877
|
if (typeof h.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
4878
4878
|
throw mt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
4879
|
-
O = h.TRUSTED_TYPES_POLICY,
|
|
4879
|
+
O = h.TRUSTED_TYPES_POLICY, Te = O.createHTML("");
|
|
4880
4880
|
} else
|
|
4881
|
-
O === void 0 && (O =
|
|
4881
|
+
O === void 0 && (O = Xu(g, i)), O !== null && typeof Te == "string" && (Te = O.createHTML(""));
|
|
4882
4882
|
W && W(h), Ye = h;
|
|
4883
4883
|
}
|
|
4884
|
-
},
|
|
4884
|
+
}, Ci = x({}, [...ts, ...ns, ...zu]), Ri = x({}, [...ss, ...Bu]), wa = function(h) {
|
|
4885
4885
|
let f = Ae(h);
|
|
4886
4886
|
(!f || !f.tagName) && (f = {
|
|
4887
4887
|
namespaceURI: Ze,
|
|
4888
4888
|
tagName: "template"
|
|
4889
4889
|
});
|
|
4890
|
-
const m =
|
|
4891
|
-
return Hn[h.namespaceURI] ? h.namespaceURI ===
|
|
4890
|
+
const m = Jt(h.tagName), A = Jt(f.tagName);
|
|
4891
|
+
return Hn[h.namespaceURI] ? h.namespaceURI === jt ? f.namespaceURI === pe ? m === "svg" : f.namespaceURI === Ft ? m === "svg" && (A === "annotation-xml" || qt[A]) : !!Ci[m] : h.namespaceURI === Ft ? f.namespaceURI === pe ? m === "math" : f.namespaceURI === jt ? m === "math" && Wt[A] : !!Ri[m] : h.namespaceURI === pe ? f.namespaceURI === jt && !Wt[A] || f.namespaceURI === Ft && !qt[A] ? !1 : !Ri[m] && (ba[m] || !Ci[m]) : !!(dt === "application/xhtml+xml" && Hn[h.namespaceURI]) : !1;
|
|
4892
4892
|
}, re = function(h) {
|
|
4893
4893
|
ft(e.removed, {
|
|
4894
4894
|
element: h
|
|
@@ -4911,7 +4911,7 @@ function Yo() {
|
|
|
4911
4911
|
});
|
|
4912
4912
|
}
|
|
4913
4913
|
if (f.removeAttribute(h), h === "is")
|
|
4914
|
-
if (We ||
|
|
4914
|
+
if (We || Bt)
|
|
4915
4915
|
try {
|
|
4916
4916
|
re(f);
|
|
4917
4917
|
} catch {
|
|
@@ -4937,14 +4937,14 @@ function Yo() {
|
|
|
4937
4937
|
} catch {
|
|
4938
4938
|
}
|
|
4939
4939
|
if (!f || !f.documentElement) {
|
|
4940
|
-
f =
|
|
4940
|
+
f = Ce.createDocument(Ze, "template", null);
|
|
4941
4941
|
try {
|
|
4942
|
-
f.documentElement.innerHTML = Bn ?
|
|
4942
|
+
f.documentElement.innerHTML = Bn ? Te : A;
|
|
4943
4943
|
} catch {
|
|
4944
4944
|
}
|
|
4945
4945
|
}
|
|
4946
4946
|
const z = f.body || f.documentElement;
|
|
4947
|
-
return h && m && z.insertBefore(t.createTextNode(m), z.childNodes[0] || null), Ze === pe ?
|
|
4947
|
+
return h && m && z.insertBefore(t.createTextNode(m), z.childNodes[0] || null), Ze === pe ? ua.call(f, Le ? "html" : "body")[0] : Le ? f.documentElement : z;
|
|
4948
4948
|
}, Oi = function(h) {
|
|
4949
4949
|
return Re.call(
|
|
4950
4950
|
h.ownerDocument || h,
|
|
@@ -4959,7 +4959,7 @@ function Yo() {
|
|
|
4959
4959
|
return typeof a == "function" && h instanceof a;
|
|
4960
4960
|
};
|
|
4961
4961
|
function fe(b, h, f) {
|
|
4962
|
-
|
|
4962
|
+
Yt(b, (m) => {
|
|
4963
4963
|
m.call(e, h, f, Ye);
|
|
4964
4964
|
});
|
|
4965
4965
|
}
|
|
@@ -4971,10 +4971,10 @@ function Yo() {
|
|
|
4971
4971
|
if (fe(B.uponSanitizeElement, h, {
|
|
4972
4972
|
tagName: m,
|
|
4973
4973
|
allowedTags: I
|
|
4974
|
-
}),
|
|
4974
|
+
}), zt && h.hasChildNodes() && !Ii(h.firstElementChild) && H(/<[/\w!]/g, h.innerHTML) && H(/<[/\w!]/g, h.textContent) || h.nodeType === bt.progressingInstruction || zt && h.nodeType === bt.comment && H(/<[/\w]/g, h.data))
|
|
4975
4975
|
return re(h), !0;
|
|
4976
4976
|
if (!(je.tagCheck instanceof Function && je.tagCheck(m)) && (!I[m] || ut[m])) {
|
|
4977
|
-
if (!ut[m] && Ni(m) && (
|
|
4977
|
+
if (!ut[m] && Ni(m) && (C.tagNameCheck instanceof RegExp && H(C.tagNameCheck, m) || C.tagNameCheck instanceof Function && C.tagNameCheck(m)))
|
|
4978
4978
|
return !1;
|
|
4979
4979
|
if (Dn && !ie[m]) {
|
|
4980
4980
|
const A = Ae(h) || h.parentNode, z = we(h) || h.childNodes;
|
|
@@ -4988,30 +4988,30 @@ function Yo() {
|
|
|
4988
4988
|
}
|
|
4989
4989
|
return re(h), !0;
|
|
4990
4990
|
}
|
|
4991
|
-
return h instanceof l && !
|
|
4991
|
+
return h instanceof l && !wa(h) || (m === "noscript" || m === "noembed" || m === "noframes") && H(/<\/no(script|embed|frames)/i, h.innerHTML) ? (re(h), !0) : (qe && h.nodeType === bt.text && (f = h.textContent, Yt([Rn, Ln, On], (A) => {
|
|
4992
4992
|
f = gt(f, A, " ");
|
|
4993
4993
|
}), h.textContent !== f && (ft(e.removed, {
|
|
4994
4994
|
element: h.cloneNode()
|
|
4995
4995
|
}), h.textContent = f)), fe(B.afterSanitizeElements, h, null), !1);
|
|
4996
4996
|
}, Mi = function(h, f, m) {
|
|
4997
|
-
if (ki && (f === "id" || f === "name") && (m in t || m in
|
|
4997
|
+
if (ki && (f === "id" || f === "name") && (m in t || m in xa))
|
|
4998
4998
|
return !1;
|
|
4999
|
-
if (!(Pn && !In[f] && H(
|
|
5000
|
-
if (!($i && H(
|
|
4999
|
+
if (!(Pn && !In[f] && H(da, f))) {
|
|
5000
|
+
if (!($i && H(pa, f))) {
|
|
5001
5001
|
if (!(je.attributeCheck instanceof Function && je.attributeCheck(f, h))) {
|
|
5002
5002
|
if (!D[f] || In[f]) {
|
|
5003
5003
|
if (
|
|
5004
5004
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
5005
5005
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
5006
5006
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
5007
|
-
!(Ni(h) && (
|
|
5007
|
+
!(Ni(h) && (C.tagNameCheck instanceof RegExp && H(C.tagNameCheck, h) || C.tagNameCheck instanceof Function && C.tagNameCheck(h)) && (C.attributeNameCheck instanceof RegExp && H(C.attributeNameCheck, f) || C.attributeNameCheck instanceof Function && C.attributeNameCheck(f, h)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
5008
5008
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
5009
|
-
f === "is" &&
|
|
5009
|
+
f === "is" && C.allowCustomizedBuiltInElements && (C.tagNameCheck instanceof RegExp && H(C.tagNameCheck, m) || C.tagNameCheck instanceof Function && C.tagNameCheck(m)))
|
|
5010
5010
|
) return !1;
|
|
5011
5011
|
} else if (!zn[f]) {
|
|
5012
5012
|
if (!H(vi, gt(m, mi, ""))) {
|
|
5013
|
-
if (!((f === "src" || f === "xlink:href" || f === "href") && h !== "script" &&
|
|
5014
|
-
if (!(xi && !H(
|
|
5013
|
+
if (!((f === "src" || f === "xlink:href" || f === "href") && h !== "script" && Mu(m, "data:") === 0 && _i[h])) {
|
|
5014
|
+
if (!(xi && !H(fa, gt(m, mi, "")))) {
|
|
5015
5015
|
if (m)
|
|
5016
5016
|
return !1;
|
|
5017
5017
|
}
|
|
@@ -5023,7 +5023,7 @@ function Yo() {
|
|
|
5023
5023
|
}
|
|
5024
5024
|
return !0;
|
|
5025
5025
|
}, Ni = function(h) {
|
|
5026
|
-
return h !== "annotation-xml" && es(h,
|
|
5026
|
+
return h !== "annotation-xml" && es(h, ga);
|
|
5027
5027
|
}, Di = function(h) {
|
|
5028
5028
|
fe(B.beforeSanitizeAttributes, h, null);
|
|
5029
5029
|
const {
|
|
@@ -5045,8 +5045,8 @@ function Yo() {
|
|
|
5045
5045
|
namespaceURI: Y,
|
|
5046
5046
|
value: ge
|
|
5047
5047
|
} = z, Ke = L(R), qn = ge;
|
|
5048
|
-
let U = R === "value" ? qn :
|
|
5049
|
-
if (m.attrName = Ke, m.attrValue = U, m.keepAttr = !0, m.forceKeepAttr = void 0, fe(B.uponSanitizeAttribute, h, m), U = m.attrValue, Si && (Ke === "id" || Ke === "name") && (Oe(R, h), U =
|
|
5048
|
+
let U = R === "value" ? qn : Nu(qn);
|
|
5049
|
+
if (m.attrName = Ke, m.attrValue = U, m.keepAttr = !0, m.forceKeepAttr = void 0, fe(B.uponSanitizeAttribute, h, m), U = m.attrValue, Si && (Ke === "id" || Ke === "name") && (Oe(R, h), U = ma + U), zt && H(/((--!?|])>)|<\/(style|title|textarea)/i, U)) {
|
|
5050
5050
|
Oe(R, h);
|
|
5051
5051
|
continue;
|
|
5052
5052
|
}
|
|
@@ -5064,7 +5064,7 @@ function Yo() {
|
|
|
5064
5064
|
Oe(R, h);
|
|
5065
5065
|
continue;
|
|
5066
5066
|
}
|
|
5067
|
-
qe &&
|
|
5067
|
+
qe && Yt([Rn, Ln, On], (zi) => {
|
|
5068
5068
|
U = gt(U, zi, " ");
|
|
5069
5069
|
});
|
|
5070
5070
|
const Ui = L(h.nodeName);
|
|
@@ -5091,7 +5091,7 @@ function Yo() {
|
|
|
5091
5091
|
}
|
|
5092
5092
|
}
|
|
5093
5093
|
fe(B.afterSanitizeAttributes, h, null);
|
|
5094
|
-
},
|
|
5094
|
+
}, ka = function b(h) {
|
|
5095
5095
|
let f = null;
|
|
5096
5096
|
const m = Oi(h);
|
|
5097
5097
|
for (fe(B.beforeSanitizeShadowDOM, h, null); f = m.nextNode(); )
|
|
@@ -5119,29 +5119,29 @@ function Yo() {
|
|
|
5119
5119
|
else {
|
|
5120
5120
|
if (!We && !qe && !Le && // eslint-disable-next-line unicorn/prefer-includes
|
|
5121
5121
|
b.indexOf("<") === -1)
|
|
5122
|
-
return O &&
|
|
5122
|
+
return O && Ht ? O.createHTML(b) : b;
|
|
5123
5123
|
if (f = Li(b), !f)
|
|
5124
|
-
return We ? null :
|
|
5124
|
+
return We ? null : Ht ? Te : "";
|
|
5125
5125
|
}
|
|
5126
5126
|
f && Nn && re(f.firstChild);
|
|
5127
5127
|
const R = Oi(ht ? b : f);
|
|
5128
5128
|
for (; A = R.nextNode(); )
|
|
5129
|
-
Pi(A), Di(A), A.content instanceof r &&
|
|
5129
|
+
Pi(A), Di(A), A.content instanceof r && ka(A.content);
|
|
5130
5130
|
if (ht)
|
|
5131
5131
|
return b;
|
|
5132
5132
|
if (We) {
|
|
5133
|
-
if (
|
|
5134
|
-
for (z =
|
|
5133
|
+
if (Bt)
|
|
5134
|
+
for (z = ca.call(f.ownerDocument); f.firstChild; )
|
|
5135
5135
|
z.appendChild(f.firstChild);
|
|
5136
5136
|
else
|
|
5137
5137
|
z = f;
|
|
5138
|
-
return (D.shadowroot || D.shadowrootmode) && (z =
|
|
5138
|
+
return (D.shadowroot || D.shadowrootmode) && (z = ha.call(s, z, !0)), z;
|
|
5139
5139
|
}
|
|
5140
5140
|
let Y = Le ? f.outerHTML : f.innerHTML;
|
|
5141
5141
|
return Le && I["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name && H(Zo, f.ownerDocument.doctype.name) && (Y = "<!DOCTYPE " + f.ownerDocument.doctype.name + `>
|
|
5142
|
-
` + Y), qe &&
|
|
5142
|
+
` + Y), qe && Yt([Rn, Ln, On], (ge) => {
|
|
5143
5143
|
Y = gt(Y, ge, " ");
|
|
5144
|
-
}), O &&
|
|
5144
|
+
}), O && Ht ? O.createHTML(Y) : Y;
|
|
5145
5145
|
}, e.setConfig = function() {
|
|
5146
5146
|
let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5147
5147
|
Fn(b), Mn = !0;
|
|
@@ -5155,8 +5155,8 @@ function Yo() {
|
|
|
5155
5155
|
typeof h == "function" && ft(B[b], h);
|
|
5156
5156
|
}, e.removeHook = function(b, h) {
|
|
5157
5157
|
if (h !== void 0) {
|
|
5158
|
-
const f =
|
|
5159
|
-
return f === -1 ? void 0 :
|
|
5158
|
+
const f = Iu(B[b], h);
|
|
5159
|
+
return f === -1 ? void 0 : Pu(B[b], f, 1)[0];
|
|
5160
5160
|
}
|
|
5161
5161
|
return Ar(B[b]);
|
|
5162
5162
|
}, e.removeHooks = function(b) {
|
|
@@ -5165,15 +5165,19 @@ function Yo() {
|
|
|
5165
5165
|
B = Ir();
|
|
5166
5166
|
}, e;
|
|
5167
5167
|
}
|
|
5168
|
-
var Ko = Yo(),
|
|
5168
|
+
var Ko = Yo(), Vu = Object.defineProperty, Qu = (n, e, t, s) => {
|
|
5169
5169
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
5170
5170
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
5171
|
-
return i &&
|
|
5171
|
+
return i && Vu(e, t, i), i;
|
|
5172
5172
|
};
|
|
5173
5173
|
const di = class di extends M {
|
|
5174
5174
|
render() {
|
|
5175
5175
|
return w`<div class="message-type-html">
|
|
5176
|
-
${
|
|
5176
|
+
${Cu(
|
|
5177
|
+
Ko.sanitize(this.message.content, {
|
|
5178
|
+
ADD_ATTR: ["target", "rel"]
|
|
5179
|
+
})
|
|
5180
|
+
)}
|
|
5177
5181
|
</div>`;
|
|
5178
5182
|
}
|
|
5179
5183
|
};
|
|
@@ -5214,10 +5218,10 @@ di.styles = [
|
|
|
5214
5218
|
}
|
|
5215
5219
|
`
|
|
5216
5220
|
];
|
|
5217
|
-
let
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
],
|
|
5221
|
+
let fn = di;
|
|
5222
|
+
Qu([
|
|
5223
|
+
T({ attribute: !1 })
|
|
5224
|
+
], fn.prototype, "message");
|
|
5221
5225
|
function Zs() {
|
|
5222
5226
|
return {
|
|
5223
5227
|
async: !1,
|
|
@@ -5305,31 +5309,31 @@ var j = {
|
|
|
5305
5309
|
fencesBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:\`\`\`|~~~)`),
|
|
5306
5310
|
headingBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}#`),
|
|
5307
5311
|
htmlBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
5308
|
-
},
|
|
5312
|
+
}, Ju = /^(?:[ \t]*(?:\n|$))+/, eh = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, th = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Ut = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, nh = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ys = /(?:[*+-]|\d{1,9}[.)])/, Vo = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Qo = S(Vo).replace(/bull/g, Ys).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).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/).replace(/\|table/g, "").getRegex(), sh = S(Vo).replace(/bull/g, Ys).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).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/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Ks = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ih = /^[^\n]+/, Xs = /(?!\s*\])(?:\\.|[^\[\]\\])+/, rh = S(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Xs).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), oh = S(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ys).getRegex(), Tn = "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", Vs = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, ah = S(
|
|
5309
5313
|
"^ {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|$))",
|
|
5310
5314
|
"i"
|
|
5311
|
-
).replace("comment", Vs).replace("tag",
|
|
5312
|
-
blockquote:
|
|
5313
|
-
code:
|
|
5314
|
-
def:
|
|
5315
|
-
fences:
|
|
5316
|
-
heading:
|
|
5317
|
-
hr:
|
|
5318
|
-
html:
|
|
5315
|
+
).replace("comment", Vs).replace("tag", Tn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Jo = S(Ks).replace("hr", Ut).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", Tn).getRegex(), lh = S(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Jo).getRegex(), Qs = {
|
|
5316
|
+
blockquote: lh,
|
|
5317
|
+
code: eh,
|
|
5318
|
+
def: rh,
|
|
5319
|
+
fences: th,
|
|
5320
|
+
heading: nh,
|
|
5321
|
+
hr: Ut,
|
|
5322
|
+
html: ah,
|
|
5319
5323
|
lheading: Qo,
|
|
5320
|
-
list:
|
|
5321
|
-
newline:
|
|
5324
|
+
list: oh,
|
|
5325
|
+
newline: Ju,
|
|
5322
5326
|
paragraph: Jo,
|
|
5323
5327
|
table: St,
|
|
5324
|
-
text:
|
|
5328
|
+
text: ih
|
|
5325
5329
|
}, Pr = S(
|
|
5326
5330
|
"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"
|
|
5327
|
-
).replace("hr",
|
|
5331
|
+
).replace("hr", Ut).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\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", Tn).getRegex(), ch = {
|
|
5328
5332
|
...Qs,
|
|
5329
|
-
lheading:
|
|
5333
|
+
lheading: sh,
|
|
5330
5334
|
table: Pr,
|
|
5331
|
-
paragraph: S(Ks).replace("hr",
|
|
5332
|
-
},
|
|
5335
|
+
paragraph: S(Ks).replace("hr", Ut).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Pr).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", Tn).getRegex()
|
|
5336
|
+
}, uh = {
|
|
5333
5337
|
...Qs,
|
|
5334
5338
|
html: S(
|
|
5335
5339
|
`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`
|
|
@@ -5339,66 +5343,66 @@ var j = {
|
|
|
5339
5343
|
fences: St,
|
|
5340
5344
|
// fences not supported
|
|
5341
5345
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
5342
|
-
paragraph: S(Ks).replace("hr",
|
|
5346
|
+
paragraph: S(Ks).replace("hr", Ut).replace("heading", ` *#{1,6} *[^
|
|
5343
5347
|
]`).replace("lheading", Qo).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
5344
|
-
},
|
|
5348
|
+
}, hh = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, dh = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ea = /^( {2,}|\\)\n(?!\s*$)/, ph = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Cn = /[\p{P}\p{S}]/u, Js = /[\s\p{P}\p{S}]/u, ta = /[^\s\p{P}\p{S}]/u, fh = S(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Js).getRegex(), na = /(?!~)[\p{P}\p{S}]/u, gh = /(?!~)[\s\p{P}\p{S}]/u, mh = /(?:[^\s\p{P}\p{S}]|~)/u, vh = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, sa = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, bh = S(sa, "u").replace(/punct/g, Cn).getRegex(), yh = S(sa, "u").replace(/punct/g, na).getRegex(), ia = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", $h = S(ia, "gu").replace(/notPunctSpace/g, ta).replace(/punctSpace/g, Js).replace(/punct/g, Cn).getRegex(), xh = S(ia, "gu").replace(/notPunctSpace/g, mh).replace(/punctSpace/g, gh).replace(/punct/g, na).getRegex(), wh = S(
|
|
5345
5349
|
"^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)",
|
|
5346
5350
|
"gu"
|
|
5347
|
-
).replace(/notPunctSpace/g, ta).replace(/punctSpace/g, Js).replace(/punct/g,
|
|
5351
|
+
).replace(/notPunctSpace/g, ta).replace(/punctSpace/g, Js).replace(/punct/g, Cn).getRegex(), kh = S(/\\(punct)/, "gu").replace(/punct/g, Cn).getRegex(), Sh = S(/^<(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(), _h = S(Vs).replace("(?:-->|$)", "-->").getRegex(), Eh = S(
|
|
5348
5352
|
"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
|
|
5349
|
-
).replace("comment",
|
|
5353
|
+
).replace("comment", _h).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), gn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Ah = S(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", gn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ra = S(/^!?\[(label)\]\[(ref)\]/).replace("label", gn).replace("ref", Xs).getRegex(), oa = S(/^!?\[(ref)\](?:\[\])?/).replace("ref", Xs).getRegex(), Th = S("reflink|nolink(?!\\()", "g").replace("reflink", ra).replace("nolink", oa).getRegex(), ei = {
|
|
5350
5354
|
_backpedal: St,
|
|
5351
5355
|
// only used for GFM url
|
|
5352
|
-
anyPunctuation:
|
|
5353
|
-
autolink:
|
|
5354
|
-
blockSkip:
|
|
5356
|
+
anyPunctuation: kh,
|
|
5357
|
+
autolink: Sh,
|
|
5358
|
+
blockSkip: vh,
|
|
5355
5359
|
br: ea,
|
|
5356
|
-
code:
|
|
5360
|
+
code: dh,
|
|
5357
5361
|
del: St,
|
|
5358
|
-
emStrongLDelim:
|
|
5359
|
-
emStrongRDelimAst:
|
|
5360
|
-
emStrongRDelimUnd:
|
|
5361
|
-
escape:
|
|
5362
|
-
link:
|
|
5362
|
+
emStrongLDelim: bh,
|
|
5363
|
+
emStrongRDelimAst: $h,
|
|
5364
|
+
emStrongRDelimUnd: wh,
|
|
5365
|
+
escape: hh,
|
|
5366
|
+
link: Ah,
|
|
5363
5367
|
nolink: oa,
|
|
5364
|
-
punctuation:
|
|
5368
|
+
punctuation: fh,
|
|
5365
5369
|
reflink: ra,
|
|
5366
5370
|
reflinkSearch: Th,
|
|
5367
|
-
tag:
|
|
5368
|
-
text:
|
|
5371
|
+
tag: Eh,
|
|
5372
|
+
text: ph,
|
|
5369
5373
|
url: St
|
|
5370
|
-
},
|
|
5374
|
+
}, Ch = {
|
|
5371
5375
|
...ei,
|
|
5372
|
-
link: S(/^!?\[(label)\]\((.*?)\)/).replace("label",
|
|
5373
|
-
reflink: S(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",
|
|
5376
|
+
link: S(/^!?\[(label)\]\((.*?)\)/).replace("label", gn).getRegex(),
|
|
5377
|
+
reflink: S(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", gn).getRegex()
|
|
5374
5378
|
}, _s = {
|
|
5375
5379
|
...ei,
|
|
5376
|
-
emStrongRDelimAst:
|
|
5377
|
-
emStrongLDelim:
|
|
5380
|
+
emStrongRDelimAst: xh,
|
|
5381
|
+
emStrongLDelim: yh,
|
|
5378
5382
|
url: S(/^((?: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(),
|
|
5379
5383
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
5380
5384
|
del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
|
|
5381
5385
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
|
5382
|
-
},
|
|
5386
|
+
}, Rh = {
|
|
5383
5387
|
..._s,
|
|
5384
5388
|
br: S(ea).replace("{2,}", "*").getRegex(),
|
|
5385
5389
|
text: S(_s.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
5386
|
-
},
|
|
5390
|
+
}, Xt = {
|
|
5387
5391
|
normal: Qs,
|
|
5388
|
-
gfm:
|
|
5389
|
-
pedantic:
|
|
5392
|
+
gfm: ch,
|
|
5393
|
+
pedantic: uh
|
|
5390
5394
|
}, yt = {
|
|
5391
5395
|
normal: ei,
|
|
5392
5396
|
gfm: _s,
|
|
5393
|
-
breaks:
|
|
5394
|
-
pedantic:
|
|
5395
|
-
},
|
|
5397
|
+
breaks: Rh,
|
|
5398
|
+
pedantic: Ch
|
|
5399
|
+
}, Lh = {
|
|
5396
5400
|
"&": "&",
|
|
5397
5401
|
"<": "<",
|
|
5398
5402
|
">": ">",
|
|
5399
5403
|
'"': """,
|
|
5400
5404
|
"'": "'"
|
|
5401
|
-
}, Mr = (n) =>
|
|
5405
|
+
}, Mr = (n) => Lh[n];
|
|
5402
5406
|
function ae(n, e) {
|
|
5403
5407
|
if (e) {
|
|
5404
5408
|
if (j.escapeTest.test(n))
|
|
@@ -5441,7 +5445,7 @@ function $t(n, e, t) {
|
|
|
5441
5445
|
i++;
|
|
5442
5446
|
return n.slice(0, s - i);
|
|
5443
5447
|
}
|
|
5444
|
-
function
|
|
5448
|
+
function Oh(n, e) {
|
|
5445
5449
|
if (n.indexOf(e[1]) === -1)
|
|
5446
5450
|
return -1;
|
|
5447
5451
|
let t = 0;
|
|
@@ -5467,7 +5471,7 @@ function Ur(n, e, t, s, i) {
|
|
|
5467
5471
|
};
|
|
5468
5472
|
return s.state.inLink = !1, l;
|
|
5469
5473
|
}
|
|
5470
|
-
function
|
|
5474
|
+
function Ih(n, e, t) {
|
|
5471
5475
|
const s = n.match(t.other.indentCodeCompensation);
|
|
5472
5476
|
if (s === null)
|
|
5473
5477
|
return e;
|
|
@@ -5482,7 +5486,7 @@ function Ph(n, e, t) {
|
|
|
5482
5486
|
}).join(`
|
|
5483
5487
|
`);
|
|
5484
5488
|
}
|
|
5485
|
-
var
|
|
5489
|
+
var mn = class {
|
|
5486
5490
|
// set by the lexer
|
|
5487
5491
|
constructor(n) {
|
|
5488
5492
|
_(this, "options");
|
|
@@ -5515,7 +5519,7 @@ var vn = class {
|
|
|
5515
5519
|
fences(n) {
|
|
5516
5520
|
const e = this.rules.block.fences.exec(n);
|
|
5517
5521
|
if (e) {
|
|
5518
|
-
const t = e[0], s =
|
|
5522
|
+
const t = e[0], s = Ih(t, e[3] || "", this.rules);
|
|
5519
5523
|
return {
|
|
5520
5524
|
type: "code",
|
|
5521
5525
|
raw: t,
|
|
@@ -5629,12 +5633,12 @@ ${u}` : u;
|
|
|
5629
5633
|
`, 1)[0], g = !p.trim(), v = 0;
|
|
5630
5634
|
if (this.options.pedantic ? (v = 2, u = p.trimStart()) : g ? v = e[1].length + 1 : (v = e[2].search(this.rules.other.nonSpaceChar), v = v > 4 ? 1 : v, u = p.slice(v), v += e[1].length), g && this.rules.other.blankLine.test(d) && (c += d + `
|
|
5631
5635
|
`, n = n.substring(d.length + 1), l = !0), !l) {
|
|
5632
|
-
const ee = this.rules.other.nextBulletRegex(v), we = this.rules.other.hrRegex(v), Ae = this.rules.other.fencesBeginRegex(v), O = this.rules.other.headingBeginRegex(v),
|
|
5636
|
+
const ee = this.rules.other.nextBulletRegex(v), we = this.rules.other.hrRegex(v), Ae = this.rules.other.fencesBeginRegex(v), O = this.rules.other.headingBeginRegex(v), Te = this.rules.other.htmlBeginRegex(v);
|
|
5633
5637
|
for (; n; ) {
|
|
5634
|
-
const
|
|
5638
|
+
const Ce = n.split(`
|
|
5635
5639
|
`, 1)[0];
|
|
5636
5640
|
let Re;
|
|
5637
|
-
if (d =
|
|
5641
|
+
if (d = Ce, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), Re = d) : Re = d.replace(this.rules.other.tabCharGlobal, " "), Ae.test(d) || O.test(d) || Te.test(d) || ee.test(d) || we.test(d))
|
|
5638
5642
|
break;
|
|
5639
5643
|
if (Re.search(this.rules.other.nonSpaceChar) >= v || !d.trim())
|
|
5640
5644
|
u += `
|
|
@@ -5645,8 +5649,8 @@ ${u}` : u;
|
|
|
5645
5649
|
u += `
|
|
5646
5650
|
` + d;
|
|
5647
5651
|
}
|
|
5648
|
-
!g && !d.trim() && (g = !0), c +=
|
|
5649
|
-
`, n = n.substring(
|
|
5652
|
+
!g && !d.trim() && (g = !0), c += Ce + `
|
|
5653
|
+
`, n = n.substring(Ce.length + 1), p = Re.slice(v);
|
|
5650
5654
|
}
|
|
5651
5655
|
}
|
|
5652
5656
|
i.loose || (o ? i.loose = !0 : this.rules.other.doubleBlankLine.test(c) && (o = !0));
|
|
@@ -5801,7 +5805,7 @@ ${u}` : u;
|
|
|
5801
5805
|
if ((t.length - r.length) % 2 === 0)
|
|
5802
5806
|
return;
|
|
5803
5807
|
} else {
|
|
5804
|
-
const r =
|
|
5808
|
+
const r = Oh(e[2], "()");
|
|
5805
5809
|
if (r === -2)
|
|
5806
5810
|
return;
|
|
5807
5811
|
if (r > -1) {
|
|
@@ -5971,24 +5975,24 @@ ${u}` : u;
|
|
|
5971
5975
|
_(this, "state");
|
|
5972
5976
|
_(this, "tokenizer");
|
|
5973
5977
|
_(this, "inlineQueue");
|
|
5974
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || Fe, this.options.tokenizer = this.options.tokenizer || new
|
|
5978
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || Fe, this.options.tokenizer = this.options.tokenizer || new mn(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
5975
5979
|
inLink: !1,
|
|
5976
5980
|
inRawBlock: !1,
|
|
5977
5981
|
top: !0
|
|
5978
5982
|
};
|
|
5979
5983
|
const t = {
|
|
5980
5984
|
other: j,
|
|
5981
|
-
block:
|
|
5985
|
+
block: Xt.normal,
|
|
5982
5986
|
inline: yt.normal
|
|
5983
5987
|
};
|
|
5984
|
-
this.options.pedantic ? (t.block =
|
|
5988
|
+
this.options.pedantic ? (t.block = Xt.pedantic, t.inline = yt.pedantic) : this.options.gfm && (t.block = Xt.gfm, this.options.breaks ? t.inline = yt.breaks : t.inline = yt.gfm), this.tokenizer.rules = t;
|
|
5985
5989
|
}
|
|
5986
5990
|
/**
|
|
5987
5991
|
* Expose Rules
|
|
5988
5992
|
*/
|
|
5989
5993
|
static get rules() {
|
|
5990
5994
|
return {
|
|
5991
|
-
block:
|
|
5995
|
+
block: Xt,
|
|
5992
5996
|
inline: yt
|
|
5993
5997
|
};
|
|
5994
5998
|
}
|
|
@@ -6208,7 +6212,7 @@ ${u}` : u;
|
|
|
6208
6212
|
}
|
|
6209
6213
|
return t;
|
|
6210
6214
|
}
|
|
6211
|
-
},
|
|
6215
|
+
}, vn = class {
|
|
6212
6216
|
// set by the parser
|
|
6213
6217
|
constructor(n) {
|
|
6214
6218
|
_(this, "options");
|
|
@@ -6377,7 +6381,7 @@ ${n}</tr>
|
|
|
6377
6381
|
_(this, "options");
|
|
6378
6382
|
_(this, "renderer");
|
|
6379
6383
|
_(this, "textRenderer");
|
|
6380
|
-
this.options = e || Fe, this.options.renderer = this.options.renderer || new
|
|
6384
|
+
this.options = e || Fe, this.options.renderer = this.options.renderer || new vn(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new ti();
|
|
6381
6385
|
}
|
|
6382
6386
|
/**
|
|
6383
6387
|
* Static Parse Method
|
|
@@ -6534,7 +6538,7 @@ ${n}</tr>
|
|
|
6534
6538
|
}
|
|
6535
6539
|
return s;
|
|
6536
6540
|
}
|
|
6537
|
-
}, rs,
|
|
6541
|
+
}, rs, en = (rs = class {
|
|
6538
6542
|
constructor(n) {
|
|
6539
6543
|
_(this, "options");
|
|
6540
6544
|
_(this, "block");
|
|
@@ -6574,18 +6578,18 @@ ${n}</tr>
|
|
|
6574
6578
|
"preprocess",
|
|
6575
6579
|
"postprocess",
|
|
6576
6580
|
"processAllTokens"
|
|
6577
|
-
])), rs),
|
|
6581
|
+
])), rs), Ph = class {
|
|
6578
6582
|
constructor(...n) {
|
|
6579
6583
|
_(this, "defaults", Zs());
|
|
6580
6584
|
_(this, "options", this.setOptions);
|
|
6581
6585
|
_(this, "parse", this.parseMarkdown(!0));
|
|
6582
6586
|
_(this, "parseInline", this.parseMarkdown(!1));
|
|
6583
6587
|
_(this, "Parser", be);
|
|
6584
|
-
_(this, "Renderer",
|
|
6588
|
+
_(this, "Renderer", vn);
|
|
6585
6589
|
_(this, "TextRenderer", ti);
|
|
6586
6590
|
_(this, "Lexer", ve);
|
|
6587
|
-
_(this, "Tokenizer",
|
|
6588
|
-
_(this, "Hooks",
|
|
6591
|
+
_(this, "Tokenizer", mn);
|
|
6592
|
+
_(this, "Hooks", en);
|
|
6589
6593
|
this.use(...n);
|
|
6590
6594
|
}
|
|
6591
6595
|
/**
|
|
@@ -6642,7 +6646,7 @@ ${n}</tr>
|
|
|
6642
6646
|
}
|
|
6643
6647
|
"childTokens" in i && i.childTokens && (e.childTokens[i.name] = i.childTokens);
|
|
6644
6648
|
}), s.extensions = e), t.renderer) {
|
|
6645
|
-
const i = this.defaults.renderer || new
|
|
6649
|
+
const i = this.defaults.renderer || new vn(this.defaults);
|
|
6646
6650
|
for (const r in t.renderer) {
|
|
6647
6651
|
if (!(r in i))
|
|
6648
6652
|
throw new Error(`renderer '${r}' does not exist`);
|
|
@@ -6657,7 +6661,7 @@ ${n}</tr>
|
|
|
6657
6661
|
s.renderer = i;
|
|
6658
6662
|
}
|
|
6659
6663
|
if (t.tokenizer) {
|
|
6660
|
-
const i = this.defaults.tokenizer || new
|
|
6664
|
+
const i = this.defaults.tokenizer || new mn(this.defaults);
|
|
6661
6665
|
for (const r in t.tokenizer) {
|
|
6662
6666
|
if (!(r in i))
|
|
6663
6667
|
throw new Error(`tokenizer '${r}' does not exist`);
|
|
@@ -6672,14 +6676,14 @@ ${n}</tr>
|
|
|
6672
6676
|
s.tokenizer = i;
|
|
6673
6677
|
}
|
|
6674
6678
|
if (t.hooks) {
|
|
6675
|
-
const i = this.defaults.hooks || new
|
|
6679
|
+
const i = this.defaults.hooks || new en();
|
|
6676
6680
|
for (const r in t.hooks) {
|
|
6677
6681
|
if (!(r in i))
|
|
6678
6682
|
throw new Error(`hook '${r}' does not exist`);
|
|
6679
6683
|
if (["options", "block"].includes(r))
|
|
6680
6684
|
continue;
|
|
6681
6685
|
const o = r, a = t.hooks[o], l = i[o];
|
|
6682
|
-
|
|
6686
|
+
en.passThroughHooks.has(r) ? i[o] = (c) => {
|
|
6683
6687
|
if (this.defaults.async)
|
|
6684
6688
|
return Promise.resolve(a.call(i, c)).then((p) => l.call(i, p));
|
|
6685
6689
|
const u = a.call(i, c);
|
|
@@ -6746,7 +6750,7 @@ Please report this to https://github.com/markedjs/marked.`, n) {
|
|
|
6746
6750
|
throw t;
|
|
6747
6751
|
};
|
|
6748
6752
|
}
|
|
6749
|
-
}, He = new
|
|
6753
|
+
}, He = new Ph();
|
|
6750
6754
|
function k(n, e) {
|
|
6751
6755
|
return He.parse(n, e);
|
|
6752
6756
|
}
|
|
@@ -6764,12 +6768,12 @@ k.walkTokens = function(n, e) {
|
|
|
6764
6768
|
k.parseInline = He.parseInline;
|
|
6765
6769
|
k.Parser = be;
|
|
6766
6770
|
k.parser = be.parse;
|
|
6767
|
-
k.Renderer =
|
|
6771
|
+
k.Renderer = vn;
|
|
6768
6772
|
k.TextRenderer = ti;
|
|
6769
6773
|
k.Lexer = ve;
|
|
6770
6774
|
k.lexer = ve.lex;
|
|
6771
|
-
k.Tokenizer =
|
|
6772
|
-
k.Hooks =
|
|
6775
|
+
k.Tokenizer = mn;
|
|
6776
|
+
k.Hooks = en;
|
|
6773
6777
|
k.parse = k;
|
|
6774
6778
|
k.options;
|
|
6775
6779
|
k.setOptions;
|
|
@@ -6778,16 +6782,15 @@ k.walkTokens;
|
|
|
6778
6782
|
k.parseInline;
|
|
6779
6783
|
be.parse;
|
|
6780
6784
|
ve.lex;
|
|
6781
|
-
var
|
|
6785
|
+
var Mh = Object.defineProperty, aa = (n, e, t, s) => {
|
|
6782
6786
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
6783
6787
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
6784
|
-
return i &&
|
|
6785
|
-
};
|
|
6786
|
-
const la = new Lt();
|
|
6787
|
-
la.link = function({ href: n, title: e, text: t }) {
|
|
6788
|
-
return e ?? (e = t), `<a target="_blank" href="${n}" title="${e}">${t}</a>`;
|
|
6788
|
+
return i && Mh(e, t, i), i;
|
|
6789
6789
|
};
|
|
6790
|
-
k.use({
|
|
6790
|
+
k.use({
|
|
6791
|
+
gfm: !0,
|
|
6792
|
+
breaks: !0
|
|
6793
|
+
});
|
|
6791
6794
|
const pi = class pi extends M {
|
|
6792
6795
|
constructor() {
|
|
6793
6796
|
super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef = le(), this.contentRef = le(), this.autoScroll = !0, this.buffer = "", this.pointer = 0, this.imageRegexp = new RegExp(/!\[[^[]*\([^)]*\)/gm);
|
|
@@ -6831,18 +6834,22 @@ const pi = class pi extends M {
|
|
|
6831
6834
|
}
|
|
6832
6835
|
// Run on every update of an observed value
|
|
6833
6836
|
updated() {
|
|
6834
|
-
var
|
|
6837
|
+
var u, p;
|
|
6835
6838
|
const e = this.getLastChunk();
|
|
6836
6839
|
if (!e) return;
|
|
6837
6840
|
if (this.buffer += e, this.includesImage(this.buffer))
|
|
6838
|
-
(
|
|
6841
|
+
(u = this.contentRef.value) == null || u.appendChild(document.createElement("div")), this.buffer = "";
|
|
6839
6842
|
else if (this.buffer.includes("![")) return;
|
|
6840
|
-
const t = k.parse(this.buffer), s = ds(t),
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
+
const t = k.parse(this.buffer), s = ds(t), r = new DOMParser().parseFromString(s, "text/html");
|
|
6844
|
+
r.querySelectorAll("a").forEach((d) => {
|
|
6845
|
+
d.setAttribute("target", "_blank"), d.setAttribute("rel", "noopener noreferrer");
|
|
6846
|
+
});
|
|
6847
|
+
const a = r.body.innerHTML, l = Ko.sanitize(a, {
|
|
6848
|
+
ADD_ATTR: ["target", "rel"]
|
|
6849
|
+
}), c = (p = this.contentRef.value) == null ? void 0 : p.querySelector(
|
|
6843
6850
|
"div:last-of-type"
|
|
6844
6851
|
);
|
|
6845
|
-
|
|
6852
|
+
c && (c.innerHTML = l, this.applyCodeStyles(c)), this.autoScroll && this.scrollRef.value.scrollIntoView();
|
|
6846
6853
|
}
|
|
6847
6854
|
// Apply white-space: pre-wrap to <code> elements
|
|
6848
6855
|
applyCodeStyles(e) {
|
|
@@ -6905,17 +6912,17 @@ pi.styles = [
|
|
|
6905
6912
|
}
|
|
6906
6913
|
`
|
|
6907
6914
|
];
|
|
6908
|
-
let
|
|
6915
|
+
let Lt = pi;
|
|
6909
6916
|
aa([
|
|
6910
|
-
|
|
6911
|
-
],
|
|
6917
|
+
T({ attribute: !1 })
|
|
6918
|
+
], Lt.prototype, "message");
|
|
6912
6919
|
aa([
|
|
6913
6920
|
N()
|
|
6914
|
-
],
|
|
6915
|
-
var
|
|
6921
|
+
], Lt.prototype, "showLightbox");
|
|
6922
|
+
var Nh = Object.defineProperty, Dh = (n, e, t, s) => {
|
|
6916
6923
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
6917
6924
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
6918
|
-
return i &&
|
|
6925
|
+
return i && Nh(e, t, i), i;
|
|
6919
6926
|
};
|
|
6920
6927
|
const fi = class fi extends M {
|
|
6921
6928
|
constructor() {
|
|
@@ -6954,7 +6961,7 @@ const fi = class fi extends M {
|
|
|
6954
6961
|
@keydown=${this.handleKeyDown}
|
|
6955
6962
|
>
|
|
6956
6963
|
<button class="close" @click=${this.closeLightbox}>
|
|
6957
|
-
<telia-icon svg=${
|
|
6964
|
+
<telia-icon svg=${Xl.svg} size="lg"></telia-icon>
|
|
6958
6965
|
</button>
|
|
6959
6966
|
<img src="${this.imageUrl}" alt="${this.altText ?? ""}" />
|
|
6960
6967
|
</div> `;
|
|
@@ -7002,24 +7009,24 @@ fi.styles = [
|
|
|
7002
7009
|
`
|
|
7003
7010
|
];
|
|
7004
7011
|
let bn = fi;
|
|
7005
|
-
|
|
7006
|
-
|
|
7012
|
+
Dh([
|
|
7013
|
+
T({ attribute: !0 })
|
|
7007
7014
|
], bn.prototype, "imageUrl");
|
|
7008
|
-
var
|
|
7015
|
+
var Uh = Object.defineProperty, se = (n, e, t, s) => {
|
|
7009
7016
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
7010
7017
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
7011
|
-
return i &&
|
|
7018
|
+
return i && Uh(e, t, i), i;
|
|
7012
7019
|
};
|
|
7013
|
-
customElements.get("conversation-entry") || customElements.define("conversation-entry",
|
|
7020
|
+
customElements.get("conversation-entry") || customElements.define("conversation-entry", Ct);
|
|
7014
7021
|
customElements.get("ace-conversation-feed") || customElements.define("ace-conversation-feed", Rt);
|
|
7015
|
-
customElements.get("conversation-group") || customElements.define("conversation-group",
|
|
7022
|
+
customElements.get("conversation-group") || customElements.define("conversation-group", pn);
|
|
7016
7023
|
customElements.get("ace-typing-state") || customElements.define("ace-typing-state", $s);
|
|
7017
|
-
customElements.get("message-type-html") || customElements.define("message-type-html",
|
|
7018
|
-
customElements.get("message-type-markdown") || customElements.define("message-type-markdown",
|
|
7024
|
+
customElements.get("message-type-html") || customElements.define("message-type-html", fn);
|
|
7025
|
+
customElements.get("message-type-markdown") || customElements.define("message-type-markdown", Lt);
|
|
7019
7026
|
customElements.get("ace-lightbox") || customElements.define("ace-lightbox", bn);
|
|
7020
7027
|
const zr = Uo(M), gi = class gi extends zr {
|
|
7021
7028
|
constructor() {
|
|
7022
|
-
super(...arguments), this.platform = null, this.entries = [], this.typing = !1, this.message = "", this.disabledInput = !1, this.disabledSkipToLatest = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.showAuthBanner = !1, this.authenticated = !1, this.isMuted = !1, this.isKeyboardNavigation = !1, this.conversationContentRef = le(), this.conversationFeedRef = le(), this.formRef = le(), this.inputRef = le(), this.scrollRef = le(), this.counterRef = le(), this.chatCurrentScrollPosition = 0, this.toast = new
|
|
7029
|
+
super(...arguments), this.platform = null, this.entries = [], this.typing = !1, this.message = "", this.disabledInput = !1, this.disabledSkipToLatest = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.showAuthBanner = !1, this.authenticated = !1, this.isMuted = !1, this.isKeyboardNavigation = !1, this.conversationContentRef = le(), this.conversationFeedRef = le(), this.formRef = le(), this.inputRef = le(), this.scrollRef = le(), this.counterRef = le(), this.chatCurrentScrollPosition = 0, this.toast = new xu(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.conversationState$ = new F("waiting"), this.stateMachine = new ku(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
|
7023
7030
|
tt((e) => e ? e == null ? void 0 : e.provider$ : cs(null))
|
|
7024
7031
|
), this.userTyping$ = new P();
|
|
7025
7032
|
}
|
|
@@ -7036,12 +7043,12 @@ const zr = Uo(M), gi = class gi extends zr {
|
|
|
7036
7043
|
t && t.widgetActive$.pipe(us(t.componentIsDestroyed$)).subscribe((s) => {
|
|
7037
7044
|
const i = this.conversationContentRef.value;
|
|
7038
7045
|
i && (s ? i.scrollTop = this.chatCurrentScrollPosition : this.chatCurrentScrollPosition = i.scrollTop);
|
|
7039
|
-
}), this.stateSubscription =
|
|
7046
|
+
}), this.stateSubscription = ul([
|
|
7040
7047
|
this.stateMachine.entries(),
|
|
7041
7048
|
this.stateMachine.isTyping()
|
|
7042
7049
|
]).subscribe(([s, i]) => {
|
|
7043
7050
|
this.entries = s, this.typing = i;
|
|
7044
|
-
}), this.userSubmitSubscription =
|
|
7051
|
+
}), this.userSubmitSubscription = sn(
|
|
7045
7052
|
this,
|
|
7046
7053
|
"user-submit"
|
|
7047
7054
|
).pipe(hs(this.provider$)).subscribe(([s, i]) => {
|
|
@@ -7202,7 +7209,7 @@ const zr = Uo(M), gi = class gi extends zr {
|
|
|
7202
7209
|
providerOptions: t
|
|
7203
7210
|
}
|
|
7204
7211
|
});
|
|
7205
|
-
return this.dispatchEvent(s), s.detail.complete ||
|
|
7212
|
+
return this.dispatchEvent(s), s.detail.complete || It;
|
|
7206
7213
|
}
|
|
7207
7214
|
render() {
|
|
7208
7215
|
var s, i, r, o;
|
|
@@ -7235,7 +7242,7 @@ const zr = Uo(M), gi = class gi extends zr {
|
|
|
7235
7242
|
class="overlay-button"
|
|
7236
7243
|
@click=${() => this.chatOverlayActive = !1}
|
|
7237
7244
|
>
|
|
7238
|
-
<telia-icon svg=${
|
|
7245
|
+
<telia-icon svg=${Kl.svg}></telia-icon>
|
|
7239
7246
|
</button>
|
|
7240
7247
|
</div>` : $}
|
|
7241
7248
|
<div
|
|
@@ -7294,7 +7301,7 @@ const zr = Uo(M), gi = class gi extends zr {
|
|
|
7294
7301
|
data-testid="send-message-button"
|
|
7295
7302
|
title=${e.getOrFallback("conversation.send-alt", "Send")}
|
|
7296
7303
|
>
|
|
7297
|
-
<telia-icon svg=${
|
|
7304
|
+
<telia-icon svg=${Ql.svg}></telia-icon>
|
|
7298
7305
|
</button>
|
|
7299
7306
|
<span class="counter" ${ce(this.counterRef)}>
|
|
7300
7307
|
${this.textAreaLength} / ${this.messageMaxLength}</span
|
|
@@ -7691,20 +7698,20 @@ se([
|
|
|
7691
7698
|
se([
|
|
7692
7699
|
N()
|
|
7693
7700
|
], V.prototype, "authenticated");
|
|
7694
|
-
const
|
|
7701
|
+
const zh = (n) => {
|
|
7695
7702
|
var e, t;
|
|
7696
7703
|
return !!((e = n == null ? void 0 : n.outputPayload) != null && e.textOutputContent) && ((t = n == null ? void 0 : n.outputPayload) == null ? void 0 : t.isFinal);
|
|
7697
|
-
},
|
|
7704
|
+
}, Bh = (n) => {
|
|
7698
7705
|
var e;
|
|
7699
7706
|
return !!((e = n == null ? void 0 : n.outputPayload) != null && e.textStreamOutputContent);
|
|
7700
|
-
},
|
|
7707
|
+
}, Hh = (n) => {
|
|
7701
7708
|
var e;
|
|
7702
7709
|
return !!((e = n == null ? void 0 : n.initializeResponsePayload) != null && e.greetingMessage);
|
|
7703
|
-
},
|
|
7710
|
+
}, Fh = (n) => !!(n != null && n.errorPayload), Br = (n) => {
|
|
7704
7711
|
var e, t;
|
|
7705
7712
|
return !!((t = (e = n.inputPayload) == null ? void 0 : e.textInputContent) != null && t.text);
|
|
7706
|
-
},
|
|
7707
|
-
class
|
|
7713
|
+
}, jh = (n) => (n == null ? void 0 : n.type) === "handover";
|
|
7714
|
+
class qh {
|
|
7708
7715
|
constructor(e, t, s) {
|
|
7709
7716
|
this.settings = e, this.component = t, this.provider = s, this.started = !1, this.restartRequested = !1, this.currentSequenceNumber = 1, this.dialogId = null, this.isConnected$ = new F(!1), this.agent$ = new F({ name: "" }), this.messageSubject$ = new P(), this.systemEvents$ = new P(), this.store$ = new F({ messages: [], dialogId: null }), this.retries = 0, this.isConnected = () => this.isConnected$.asObservable(), this.agent = () => this.agent$.asObservable(), this.messages = () => this.messageSubject$.asObservable(), this.events = () => this.systemEvents$.asObservable(), this.restartSubscription$ = this.provider.shouldRestart$.subscribe(
|
|
7710
7717
|
(i) => {
|
|
@@ -7819,11 +7826,11 @@ class Wh {
|
|
|
7819
7826
|
messages: [...t.messages, e],
|
|
7820
7827
|
dialogId: t.dialogId
|
|
7821
7828
|
});
|
|
7822
|
-
}),
|
|
7829
|
+
}), Fh(e)) {
|
|
7823
7830
|
this.provider.setShouldRestart(!0), console.debug("Received error from socket connection:", e);
|
|
7824
7831
|
return;
|
|
7825
7832
|
}
|
|
7826
|
-
if (
|
|
7833
|
+
if (jh(e)) {
|
|
7827
7834
|
this.systemEvents$.next({
|
|
7828
7835
|
event: e.type,
|
|
7829
7836
|
text: "",
|
|
@@ -7837,7 +7844,7 @@ class Wh {
|
|
|
7837
7844
|
});
|
|
7838
7845
|
return;
|
|
7839
7846
|
}
|
|
7840
|
-
|
|
7847
|
+
Hh(e) && e.initializeResponsePayload.greetingMessage.length > 0 ? (this.agent$.next({
|
|
7841
7848
|
name: e.initializeResponsePayload.agentName || ""
|
|
7842
7849
|
}), this.dialogId = e.initializeResponsePayload.dialogId, this.store$.pipe(Ne(1)).subscribe((t) => {
|
|
7843
7850
|
this.store$.next({
|
|
@@ -7855,12 +7862,12 @@ class Wh {
|
|
|
7855
7862
|
text: e.inputPayload.textInputContent.text,
|
|
7856
7863
|
type: "text",
|
|
7857
7864
|
sender: "user"
|
|
7858
|
-
}) :
|
|
7865
|
+
}) : Bh(e) ? (e.outputPayload.isFinal && this.component.enableSubmit(), this.messageSubject$.next({
|
|
7859
7866
|
text: e.outputPayload.textStreamOutputContent.textPart || "",
|
|
7860
7867
|
isComplete: !!e.outputPayload.isFinal,
|
|
7861
7868
|
sequenceNumber: e.sequenceNumber,
|
|
7862
7869
|
type: "stream"
|
|
7863
|
-
})) :
|
|
7870
|
+
})) : zh(e) && (this.component.enableSubmit(), this.messageSubject$.next({
|
|
7864
7871
|
text: e.outputPayload.textOutputContent.text,
|
|
7865
7872
|
isComplete: !0,
|
|
7866
7873
|
sequenceNumber: e.sequenceNumber,
|
|
@@ -7901,10 +7908,10 @@ class Wh {
|
|
|
7901
7908
|
this.restartSubscription$ && this.restartSubscription$.unsubscribe();
|
|
7902
7909
|
}
|
|
7903
7910
|
}
|
|
7904
|
-
var
|
|
7905
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
7911
|
+
var Wh = Object.defineProperty, Gh = Object.getOwnPropertyDescriptor, la = (n, e, t, s) => {
|
|
7912
|
+
for (var i = s > 1 ? void 0 : s ? Gh(e, t) : e, r = n.length - 1, o; r >= 0; r--)
|
|
7906
7913
|
(o = n[r]) && (i = (s ? o(e, t, i) : o(i)) || i);
|
|
7907
|
-
return s && i &&
|
|
7914
|
+
return s && i && Wh(e, t, i), i;
|
|
7908
7915
|
};
|
|
7909
7916
|
let yn = class extends M {
|
|
7910
7917
|
_onRestart() {
|
|
@@ -7988,14 +7995,14 @@ yn.styles = [
|
|
|
7988
7995
|
}
|
|
7989
7996
|
`
|
|
7990
7997
|
];
|
|
7991
|
-
|
|
7998
|
+
la([
|
|
7992
7999
|
Ho({ context: Ws }),
|
|
7993
|
-
|
|
8000
|
+
T({ attribute: !1 })
|
|
7994
8001
|
], yn.prototype, "application", 2);
|
|
7995
|
-
yn =
|
|
7996
|
-
|
|
8002
|
+
yn = la([
|
|
8003
|
+
Vc("ace-restart-dialog")
|
|
7997
8004
|
], yn);
|
|
7998
|
-
class ni extends
|
|
8005
|
+
class ni extends Al {
|
|
7999
8006
|
constructor(e, t) {
|
|
8000
8007
|
super(e, t), this.isConnected = !1, this.rehydrating = !1, this.lastReceivedMessageWasComplete = !0, this.isReady = !1, this.lastWrittenEntry = null, this.agent = this.createAgent(""), this.user = this.createUser(""), this.shouldRestartSubject$ = new F(!1), this.connection = this.createConnection(), this.connection.store$.subscribe((s) => {
|
|
8001
8008
|
s = {
|
|
@@ -8060,7 +8067,7 @@ class ni extends Cl {
|
|
|
8060
8067
|
return this.system.print(t);
|
|
8061
8068
|
}
|
|
8062
8069
|
showRestartDialog() {
|
|
8063
|
-
this.restartDialogEntry && this.restartDialogEntry.remove(), this.component.disableInput(), this.restartDialogEntry = new
|
|
8070
|
+
this.restartDialogEntry && this.restartDialogEntry.remove(), this.component.disableInput(), this.restartDialogEntry = new Pt(
|
|
8064
8071
|
ye.System,
|
|
8065
8072
|
{
|
|
8066
8073
|
name: ""
|
|
@@ -8071,7 +8078,7 @@ class ni extends Cl {
|
|
|
8071
8078
|
}
|
|
8072
8079
|
]
|
|
8073
8080
|
), this.printEntry(this.restartDialogEntry), this.restartDialogEntry.actions$.pipe(
|
|
8074
|
-
|
|
8081
|
+
xl((e) => e.key === "restart-session"),
|
|
8075
8082
|
Ne(1)
|
|
8076
8083
|
).subscribe(async () => {
|
|
8077
8084
|
this.restartDialogEntry && this.restartDialogEntry.remove(), this.restartConversation(), this.component.clearMessages();
|
|
@@ -8105,7 +8112,7 @@ class ni extends Cl {
|
|
|
8105
8112
|
throw new Error(
|
|
8106
8113
|
"WebConnector URL is required, config misconfigured. See agentConfig.virtual.webconnectorUrl"
|
|
8107
8114
|
);
|
|
8108
|
-
return new
|
|
8115
|
+
return new qh(
|
|
8109
8116
|
{
|
|
8110
8117
|
connectionUri: s,
|
|
8111
8118
|
extension: t.toString()
|
|
@@ -8133,8 +8140,8 @@ class ni extends Cl {
|
|
|
8133
8140
|
});
|
|
8134
8141
|
}
|
|
8135
8142
|
}
|
|
8136
|
-
const Hr = "ace-conversational-agent-provider",
|
|
8137
|
-
(await
|
|
8143
|
+
const Hr = "ace-conversational-agent-provider", sd = async (n) => {
|
|
8144
|
+
(await Ts.getInstance(n.container)).registerProvider(
|
|
8138
8145
|
Hr,
|
|
8139
8146
|
(t) => ni.getInstance(
|
|
8140
8147
|
Hr,
|
|
@@ -8143,5 +8150,5 @@ const Hr = "ace-conversational-agent-provider", id = async (n) => {
|
|
|
8143
8150
|
);
|
|
8144
8151
|
};
|
|
8145
8152
|
export {
|
|
8146
|
-
|
|
8153
|
+
sd as ConversationalAgentProviderPlugin
|
|
8147
8154
|
};
|