@telia-ace/widget-conversation-flamingo 1.1.66-rc.0 → 1.1.66-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +77 -52
- package/index.mjs +560 -426
- package/package.json +2 -2
package/index.mjs
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
const
|
2
|
-
s.registerComponent("conversation", Promise.resolve().then(() =>
|
1
|
+
const zo = async (s) => {
|
2
|
+
s.registerComponent("conversation", Promise.resolve().then(() => Bo));
|
3
3
|
};
|
4
|
-
class
|
4
|
+
class Ss {
|
5
5
|
constructor() {
|
6
6
|
this.registeredProviders = /* @__PURE__ */ new Map();
|
7
7
|
}
|
8
8
|
static async getInstance(t) {
|
9
9
|
let e = await t.get("conversation");
|
10
|
-
return e || (e = new
|
10
|
+
return e || (e = new Ss(), await t.register("conversation", e), e);
|
11
11
|
}
|
12
12
|
registerProvider(t, e) {
|
13
13
|
this.registeredProviders.set(t, e);
|
@@ -42,7 +42,7 @@ function nt(s, t) {
|
|
42
42
|
}
|
43
43
|
s.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
44
44
|
}
|
45
|
-
function
|
45
|
+
function Sn(s, t, e, n) {
|
46
46
|
function r(i) {
|
47
47
|
return i instanceof e ? i : new e(function(o) {
|
48
48
|
o(i);
|
@@ -69,7 +69,7 @@ function xn(s, t, e, n) {
|
|
69
69
|
c((n = n.apply(s, t || [])).next());
|
70
70
|
});
|
71
71
|
}
|
72
|
-
function
|
72
|
+
function Cs(s, t) {
|
73
73
|
var e = { label: 0, sent: function() {
|
74
74
|
if (i[0] & 1)
|
75
75
|
throw i[1];
|
@@ -175,7 +175,7 @@ function F(s, t, e) {
|
|
175
175
|
function J(s) {
|
176
176
|
return this instanceof J ? (this.v = s, this) : new J(s);
|
177
177
|
}
|
178
|
-
function
|
178
|
+
function Cn(s, t, e) {
|
179
179
|
if (!Symbol.asyncIterator)
|
180
180
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
181
181
|
var n = e.apply(s, t || []), r, i = [];
|
@@ -209,7 +209,7 @@ function Sn(s, t, e) {
|
|
209
209
|
d(p), i.shift(), i.length && a(i[0][0], i[0][1]);
|
210
210
|
}
|
211
211
|
}
|
212
|
-
function
|
212
|
+
function An(s) {
|
213
213
|
if (!Symbol.asyncIterator)
|
214
214
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
215
215
|
var t = s[Symbol.asyncIterator], e;
|
@@ -232,13 +232,13 @@ function Cn(s) {
|
|
232
232
|
function g(s) {
|
233
233
|
return typeof s == "function";
|
234
234
|
}
|
235
|
-
function
|
235
|
+
function As(s) {
|
236
236
|
var t = function(n) {
|
237
237
|
Error.call(n), n.stack = new Error().stack;
|
238
238
|
}, e = s(t);
|
239
239
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
240
240
|
}
|
241
|
-
var Gt =
|
241
|
+
var Gt = As(function(s) {
|
242
242
|
return function(e) {
|
243
243
|
s(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
244
244
|
` + e.map(function(n, r) {
|
@@ -343,14 +343,14 @@ var Ht = function() {
|
|
343
343
|
var t = new s();
|
344
344
|
return t.closed = !0, t;
|
345
345
|
}(), s;
|
346
|
-
}(),
|
347
|
-
function
|
346
|
+
}(), Es = Ht.EMPTY;
|
347
|
+
function Os(s) {
|
348
348
|
return s instanceof Ht || s && "closed" in s && g(s.remove) && g(s.add) && g(s.unsubscribe);
|
349
349
|
}
|
350
350
|
function He(s) {
|
351
351
|
g(s) ? s() : s.unsubscribe();
|
352
352
|
}
|
353
|
-
var
|
353
|
+
var ks = {
|
354
354
|
onUnhandledError: null,
|
355
355
|
onStoppedNotification: null,
|
356
356
|
Promise: void 0,
|
@@ -369,7 +369,7 @@ var Os = {
|
|
369
369
|
},
|
370
370
|
delegate: void 0
|
371
371
|
};
|
372
|
-
function
|
372
|
+
function Ts(s) {
|
373
373
|
oe.setTimeout(function() {
|
374
374
|
throw s;
|
375
375
|
});
|
@@ -383,7 +383,7 @@ var ge = function(s) {
|
|
383
383
|
nt(t, s);
|
384
384
|
function t(e) {
|
385
385
|
var n = s.call(this) || this;
|
386
|
-
return n.isStopped = !1, e ? (n.destination = e,
|
386
|
+
return n.isStopped = !1, e ? (n.destination = e, Os(e) && e.add(n)) : n.destination = Tn, n;
|
387
387
|
}
|
388
388
|
return t.create = function(e, n, r) {
|
389
389
|
return new ae(e, n, r);
|
@@ -410,11 +410,11 @@ var ge = function(s) {
|
|
410
410
|
this.unsubscribe();
|
411
411
|
}
|
412
412
|
}, t;
|
413
|
-
}(Ht),
|
413
|
+
}(Ht), En = Function.prototype.bind;
|
414
414
|
function Xt(s, t) {
|
415
|
-
return
|
415
|
+
return En.call(s, t);
|
416
416
|
}
|
417
|
-
var
|
417
|
+
var On = function() {
|
418
418
|
function s(t) {
|
419
419
|
this.partialObserver = t;
|
420
420
|
}
|
@@ -457,7 +457,7 @@ var En = function() {
|
|
457
457
|
};
|
458
458
|
else {
|
459
459
|
var a;
|
460
|
-
i &&
|
460
|
+
i && ks.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
461
461
|
return i.unsubscribe();
|
462
462
|
}, o = {
|
463
463
|
next: e.next && Xt(e.next, a),
|
@@ -465,20 +465,20 @@ var En = function() {
|
|
465
465
|
complete: e.complete && Xt(e.complete, a)
|
466
466
|
}) : o = e;
|
467
467
|
}
|
468
|
-
return i.destination = new
|
468
|
+
return i.destination = new On(o), i;
|
469
469
|
}
|
470
470
|
return t;
|
471
471
|
}(ge);
|
472
472
|
function wt(s) {
|
473
|
-
|
473
|
+
Ts(s);
|
474
474
|
}
|
475
|
-
function
|
475
|
+
function kn(s) {
|
476
476
|
throw s;
|
477
477
|
}
|
478
|
-
var
|
478
|
+
var Tn = {
|
479
479
|
closed: !0,
|
480
480
|
next: At,
|
481
|
-
error:
|
481
|
+
error: kn,
|
482
482
|
complete: At
|
483
483
|
}, me = function() {
|
484
484
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
@@ -486,14 +486,14 @@ var kn = {
|
|
486
486
|
function vt(s) {
|
487
487
|
return s;
|
488
488
|
}
|
489
|
-
function
|
489
|
+
function Pn(s) {
|
490
490
|
return s.length === 0 ? vt : s.length === 1 ? s[0] : function(e) {
|
491
491
|
return s.reduce(function(n, r) {
|
492
492
|
return r(n);
|
493
493
|
}, e);
|
494
494
|
};
|
495
495
|
}
|
496
|
-
var
|
496
|
+
var _ = function() {
|
497
497
|
function s(t) {
|
498
498
|
t && (this._subscribe = t);
|
499
499
|
}
|
@@ -501,7 +501,7 @@ var x = function() {
|
|
501
501
|
var e = new s();
|
502
502
|
return e.source = this, e.operator = t, e;
|
503
503
|
}, s.prototype.subscribe = function(t, e, n) {
|
504
|
-
var r = this, i =
|
504
|
+
var r = this, i = Mn(t) ? t : new ae(t, e, n);
|
505
505
|
return St(function() {
|
506
506
|
var o = r, a = o.operator, l = o.source;
|
507
507
|
i.add(a ? a.call(i, l) : l ? r._subscribe(i) : r._trySubscribe(i));
|
@@ -536,7 +536,7 @@ var x = function() {
|
|
536
536
|
}, s.prototype.pipe = function() {
|
537
537
|
for (var t = [], e = 0; e < arguments.length; e++)
|
538
538
|
t[e] = arguments[e];
|
539
|
-
return
|
539
|
+
return Pn(t)(this);
|
540
540
|
}, s.prototype.toPromise = function(t) {
|
541
541
|
var e = this;
|
542
542
|
return t = Ne(t), new t(function(n, r) {
|
@@ -555,20 +555,20 @@ var x = function() {
|
|
555
555
|
}();
|
556
556
|
function Ne(s) {
|
557
557
|
var t;
|
558
|
-
return (t = s ??
|
559
|
-
}
|
560
|
-
function Pn(s) {
|
561
|
-
return s && g(s.next) && g(s.error) && g(s.complete);
|
558
|
+
return (t = s ?? ks.Promise) !== null && t !== void 0 ? t : Promise;
|
562
559
|
}
|
563
560
|
function Ln(s) {
|
564
|
-
return s && s
|
561
|
+
return s && g(s.next) && g(s.error) && g(s.complete);
|
565
562
|
}
|
566
563
|
function Mn(s) {
|
564
|
+
return s && s instanceof ge || Ln(s) && Os(s);
|
565
|
+
}
|
566
|
+
function In(s) {
|
567
567
|
return g(s == null ? void 0 : s.lift);
|
568
568
|
}
|
569
569
|
function N(s) {
|
570
570
|
return function(t) {
|
571
|
-
if (
|
571
|
+
if (In(t))
|
572
572
|
return t.lift(function(e) {
|
573
573
|
try {
|
574
574
|
return s(e, this);
|
@@ -580,9 +580,9 @@ function N(s) {
|
|
580
580
|
};
|
581
581
|
}
|
582
582
|
function E(s, t, e, n, r) {
|
583
|
-
return new
|
583
|
+
return new Un(s, t, e, n, r);
|
584
584
|
}
|
585
|
-
var
|
585
|
+
var Un = function(s) {
|
586
586
|
nt(t, s);
|
587
587
|
function t(e, n, r, i, o, a) {
|
588
588
|
var l = s.call(this, e) || this;
|
@@ -617,11 +617,11 @@ var In = function(s) {
|
|
617
617
|
s.prototype.unsubscribe.call(this), !n && ((e = this.onFinalize) === null || e === void 0 || e.call(this));
|
618
618
|
}
|
619
619
|
}, t;
|
620
|
-
}(ge),
|
620
|
+
}(ge), Rn = As(function(s) {
|
621
621
|
return function() {
|
622
622
|
s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
623
623
|
};
|
624
|
-
}),
|
624
|
+
}), x = function(s) {
|
625
625
|
nt(t, s);
|
626
626
|
function t() {
|
627
627
|
var e = s.call(this) || this;
|
@@ -632,7 +632,7 @@ var In = function(s) {
|
|
632
632
|
return n.operator = e, n;
|
633
633
|
}, t.prototype._throwIfClosed = function() {
|
634
634
|
if (this.closed)
|
635
|
-
throw new
|
635
|
+
throw new Rn();
|
636
636
|
}, t.prototype.next = function(e) {
|
637
637
|
var n = this;
|
638
638
|
St(function() {
|
@@ -689,19 +689,19 @@ var In = function(s) {
|
|
689
689
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
690
690
|
}, t.prototype._innerSubscribe = function(e) {
|
691
691
|
var n = this, r = this, i = r.hasError, o = r.isStopped, a = r.observers;
|
692
|
-
return i || o ?
|
692
|
+
return i || o ? Es : (this.currentObservers = null, a.push(e), new Ht(function() {
|
693
693
|
n.currentObservers = null, ie(a, e);
|
694
694
|
}));
|
695
695
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
696
696
|
var n = this, r = n.hasError, i = n.thrownError, o = n.isStopped;
|
697
697
|
r ? e.error(i) : o && e.complete();
|
698
698
|
}, t.prototype.asObservable = function() {
|
699
|
-
var e = new
|
699
|
+
var e = new _();
|
700
700
|
return e.source = this, e;
|
701
701
|
}, t.create = function(e, n) {
|
702
702
|
return new De(e, n);
|
703
703
|
}, t;
|
704
|
-
}(
|
704
|
+
}(_), De = function(s) {
|
705
705
|
nt(t, s);
|
706
706
|
function t(e, n) {
|
707
707
|
var r = s.call(this) || this;
|
@@ -718,9 +718,9 @@ var In = function(s) {
|
|
718
718
|
(n = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || n === void 0 || n.call(e);
|
719
719
|
}, t.prototype._subscribe = function(e) {
|
720
720
|
var n, r;
|
721
|
-
return (r = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(e)) !== null && r !== void 0 ? r :
|
721
|
+
return (r = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(e)) !== null && r !== void 0 ? r : Es;
|
722
722
|
}, t;
|
723
|
-
}(
|
723
|
+
}(x), P = function(s) {
|
724
724
|
nt(t, s);
|
725
725
|
function t(e) {
|
726
726
|
var n = s.call(this) || this;
|
@@ -743,50 +743,50 @@ var In = function(s) {
|
|
743
743
|
}, t.prototype.next = function(e) {
|
744
744
|
s.prototype.next.call(this, this._value = e);
|
745
745
|
}, t;
|
746
|
-
}(
|
746
|
+
}(x), gt = new _(function(s) {
|
747
747
|
return s.complete();
|
748
748
|
});
|
749
|
-
function
|
749
|
+
function jn(s) {
|
750
750
|
return s && g(s.schedule);
|
751
751
|
}
|
752
752
|
function $e(s) {
|
753
753
|
return s[s.length - 1];
|
754
754
|
}
|
755
|
-
function
|
755
|
+
function Ps(s) {
|
756
756
|
return g($e(s)) ? s.pop() : void 0;
|
757
757
|
}
|
758
758
|
function ye(s) {
|
759
|
-
return
|
759
|
+
return jn($e(s)) ? s.pop() : void 0;
|
760
760
|
}
|
761
|
-
function
|
761
|
+
function Hn(s, t) {
|
762
762
|
return typeof $e(s) == "number" ? s.pop() : t;
|
763
763
|
}
|
764
764
|
var be = function(s) {
|
765
765
|
return s && typeof s.length == "number" && typeof s != "function";
|
766
766
|
};
|
767
|
-
function
|
767
|
+
function Ls(s) {
|
768
768
|
return g(s == null ? void 0 : s.then);
|
769
769
|
}
|
770
|
-
function
|
770
|
+
function Ms(s) {
|
771
771
|
return g(s[me]);
|
772
772
|
}
|
773
|
-
function
|
773
|
+
function Is(s) {
|
774
774
|
return Symbol.asyncIterator && g(s == null ? void 0 : s[Symbol.asyncIterator]);
|
775
775
|
}
|
776
|
-
function
|
776
|
+
function Us(s) {
|
777
777
|
return new TypeError("You provided " + (s !== null && typeof s == "object" ? "an invalid object" : "'" + s + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
778
778
|
}
|
779
|
-
function
|
779
|
+
function Nn() {
|
780
780
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
781
781
|
}
|
782
|
-
var
|
783
|
-
function Rs(s) {
|
784
|
-
return g(s == null ? void 0 : s[Us]);
|
785
|
-
}
|
782
|
+
var Rs = Nn();
|
786
783
|
function js(s) {
|
787
|
-
return
|
784
|
+
return g(s == null ? void 0 : s[Rs]);
|
785
|
+
}
|
786
|
+
function Hs(s) {
|
787
|
+
return Cn(this, arguments, function() {
|
788
788
|
var e, n, r, i;
|
789
|
-
return
|
789
|
+
return Cs(this, function(o) {
|
790
790
|
switch (o.label) {
|
791
791
|
case 0:
|
792
792
|
e = s.getReader(), o.label = 1;
|
@@ -814,54 +814,54 @@ function js(s) {
|
|
814
814
|
});
|
815
815
|
});
|
816
816
|
}
|
817
|
-
function
|
817
|
+
function Ns(s) {
|
818
818
|
return g(s == null ? void 0 : s.getReader);
|
819
819
|
}
|
820
820
|
function T(s) {
|
821
|
-
if (s instanceof
|
821
|
+
if (s instanceof _)
|
822
822
|
return s;
|
823
823
|
if (s != null) {
|
824
|
-
if (
|
825
|
-
return Nn(s);
|
826
|
-
if (be(s))
|
824
|
+
if (Ms(s))
|
827
825
|
return Dn(s);
|
828
|
-
if (
|
826
|
+
if (be(s))
|
829
827
|
return Bn(s);
|
830
|
-
if (
|
831
|
-
return Ns(s);
|
832
|
-
if (Rs(s))
|
828
|
+
if (Ls(s))
|
833
829
|
return zn(s);
|
834
|
-
if (
|
830
|
+
if (Is(s))
|
831
|
+
return Ds(s);
|
832
|
+
if (js(s))
|
835
833
|
return Fn(s);
|
834
|
+
if (Ns(s))
|
835
|
+
return Wn(s);
|
836
836
|
}
|
837
|
-
throw
|
837
|
+
throw Us(s);
|
838
838
|
}
|
839
|
-
function
|
840
|
-
return new
|
839
|
+
function Dn(s) {
|
840
|
+
return new _(function(t) {
|
841
841
|
var e = s[me]();
|
842
842
|
if (g(e.subscribe))
|
843
843
|
return e.subscribe(t);
|
844
844
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
845
845
|
});
|
846
846
|
}
|
847
|
-
function
|
848
|
-
return new
|
847
|
+
function Bn(s) {
|
848
|
+
return new _(function(t) {
|
849
849
|
for (var e = 0; e < s.length && !t.closed; e++)
|
850
850
|
t.next(s[e]);
|
851
851
|
t.complete();
|
852
852
|
});
|
853
853
|
}
|
854
|
-
function
|
855
|
-
return new
|
854
|
+
function zn(s) {
|
855
|
+
return new _(function(t) {
|
856
856
|
s.then(function(e) {
|
857
857
|
t.closed || (t.next(e), t.complete());
|
858
858
|
}, function(e) {
|
859
859
|
return t.error(e);
|
860
|
-
}).then(null,
|
860
|
+
}).then(null, Ts);
|
861
861
|
});
|
862
862
|
}
|
863
|
-
function
|
864
|
-
return new
|
863
|
+
function Fn(s) {
|
864
|
+
return new _(function(t) {
|
865
865
|
var e, n;
|
866
866
|
try {
|
867
867
|
for (var r = et(s), i = r.next(); !i.done; i = r.next()) {
|
@@ -882,24 +882,24 @@ function zn(s) {
|
|
882
882
|
t.complete();
|
883
883
|
});
|
884
884
|
}
|
885
|
-
function
|
886
|
-
return new
|
887
|
-
|
885
|
+
function Ds(s) {
|
886
|
+
return new _(function(t) {
|
887
|
+
Yn(s, t).catch(function(e) {
|
888
888
|
return t.error(e);
|
889
889
|
});
|
890
890
|
});
|
891
891
|
}
|
892
|
-
function
|
893
|
-
return
|
892
|
+
function Wn(s) {
|
893
|
+
return Ds(Hs(s));
|
894
894
|
}
|
895
|
-
function
|
895
|
+
function Yn(s, t) {
|
896
896
|
var e, n, r, i;
|
897
|
-
return
|
897
|
+
return Sn(this, void 0, void 0, function() {
|
898
898
|
var o, a;
|
899
|
-
return
|
899
|
+
return Cs(this, function(l) {
|
900
900
|
switch (l.label) {
|
901
901
|
case 0:
|
902
|
-
l.trys.push([0, 5, 6, 11]), e =
|
902
|
+
l.trys.push([0, 5, 6, 11]), e = An(s), l.label = 1;
|
903
903
|
case 1:
|
904
904
|
return [4, e.next()];
|
905
905
|
case 2:
|
@@ -940,7 +940,7 @@ function L(s, t, e, n, r) {
|
|
940
940
|
if (s.add(i), !r)
|
941
941
|
return i;
|
942
942
|
}
|
943
|
-
function
|
943
|
+
function Bs(s, t) {
|
944
944
|
return t === void 0 && (t = 0), N(function(e, n) {
|
945
945
|
e.subscribe(E(n, function(r) {
|
946
946
|
return L(n, s, function() {
|
@@ -957,32 +957,32 @@ function Ds(s, t) {
|
|
957
957
|
}));
|
958
958
|
});
|
959
959
|
}
|
960
|
-
function
|
960
|
+
function zs(s, t) {
|
961
961
|
return t === void 0 && (t = 0), N(function(e, n) {
|
962
962
|
n.add(s.schedule(function() {
|
963
963
|
return e.subscribe(n);
|
964
964
|
}, t));
|
965
965
|
});
|
966
966
|
}
|
967
|
-
function Yn(s, t) {
|
968
|
-
return T(s).pipe(Bs(t), Ds(t));
|
969
|
-
}
|
970
967
|
function Zn(s, t) {
|
971
|
-
return T(s).pipe(
|
968
|
+
return T(s).pipe(zs(t), Bs(t));
|
972
969
|
}
|
973
970
|
function qn(s, t) {
|
974
|
-
return
|
971
|
+
return T(s).pipe(zs(t), Bs(t));
|
972
|
+
}
|
973
|
+
function Kn(s, t) {
|
974
|
+
return new _(function(e) {
|
975
975
|
var n = 0;
|
976
976
|
return t.schedule(function() {
|
977
977
|
n === s.length ? e.complete() : (e.next(s[n++]), e.closed || this.schedule());
|
978
978
|
});
|
979
979
|
});
|
980
980
|
}
|
981
|
-
function
|
982
|
-
return new
|
981
|
+
function Gn(s, t) {
|
982
|
+
return new _(function(e) {
|
983
983
|
var n;
|
984
984
|
return L(e, t, function() {
|
985
|
-
n = s[
|
985
|
+
n = s[Rs](), L(e, t, function() {
|
986
986
|
var r, i, o;
|
987
987
|
try {
|
988
988
|
r = n.next(), i = r.value, o = r.done;
|
@@ -997,10 +997,10 @@ function Kn(s, t) {
|
|
997
997
|
};
|
998
998
|
});
|
999
999
|
}
|
1000
|
-
function
|
1000
|
+
function Fs(s, t) {
|
1001
1001
|
if (!s)
|
1002
1002
|
throw new Error("Iterable cannot be null");
|
1003
|
-
return new
|
1003
|
+
return new _(function(e) {
|
1004
1004
|
L(e, t, function() {
|
1005
1005
|
var n = s[Symbol.asyncIterator]();
|
1006
1006
|
L(e, t, function() {
|
@@ -1011,28 +1011,28 @@ function zs(s, t) {
|
|
1011
1011
|
});
|
1012
1012
|
});
|
1013
1013
|
}
|
1014
|
-
function Gn(s, t) {
|
1015
|
-
return zs(js(s), t);
|
1016
|
-
}
|
1017
1014
|
function Xn(s, t) {
|
1015
|
+
return Fs(Hs(s), t);
|
1016
|
+
}
|
1017
|
+
function Jn(s, t) {
|
1018
1018
|
if (s != null) {
|
1019
|
-
if (Ls(s))
|
1020
|
-
return Yn(s, t);
|
1021
|
-
if (be(s))
|
1022
|
-
return qn(s, t);
|
1023
|
-
if (Ps(s))
|
1024
|
-
return Zn(s, t);
|
1025
1019
|
if (Ms(s))
|
1026
|
-
return
|
1027
|
-
if (
|
1020
|
+
return Zn(s, t);
|
1021
|
+
if (be(s))
|
1028
1022
|
return Kn(s, t);
|
1029
|
-
if (
|
1023
|
+
if (Ls(s))
|
1024
|
+
return qn(s, t);
|
1025
|
+
if (Is(s))
|
1026
|
+
return Fs(s, t);
|
1027
|
+
if (js(s))
|
1030
1028
|
return Gn(s, t);
|
1029
|
+
if (Ns(s))
|
1030
|
+
return Xn(s, t);
|
1031
1031
|
}
|
1032
|
-
throw
|
1032
|
+
throw Us(s);
|
1033
1033
|
}
|
1034
1034
|
function Nt(s, t) {
|
1035
|
-
return t ?
|
1035
|
+
return t ? Jn(s, t) : T(s);
|
1036
1036
|
}
|
1037
1037
|
function le() {
|
1038
1038
|
for (var s = [], t = 0; t < arguments.length; t++)
|
@@ -1048,23 +1048,23 @@ function Et(s, t) {
|
|
1048
1048
|
}));
|
1049
1049
|
});
|
1050
1050
|
}
|
1051
|
-
var
|
1052
|
-
function
|
1053
|
-
return
|
1051
|
+
var Qn = Array.isArray;
|
1052
|
+
function Vn(s, t) {
|
1053
|
+
return Qn(t) ? s.apply(void 0, F([], j(t))) : s(t);
|
1054
1054
|
}
|
1055
|
-
function
|
1055
|
+
function Ws(s) {
|
1056
1056
|
return Et(function(t) {
|
1057
|
-
return
|
1057
|
+
return Vn(s, t);
|
1058
1058
|
});
|
1059
1059
|
}
|
1060
|
-
var
|
1061
|
-
function
|
1060
|
+
var tr = Array.isArray, er = Object.getPrototypeOf, sr = Object.prototype, nr = Object.keys;
|
1061
|
+
function rr(s) {
|
1062
1062
|
if (s.length === 1) {
|
1063
1063
|
var t = s[0];
|
1064
|
-
if (
|
1064
|
+
if (tr(t))
|
1065
1065
|
return { args: t, keys: null };
|
1066
|
-
if (
|
1067
|
-
var e =
|
1066
|
+
if (ir(t)) {
|
1067
|
+
var e = nr(t);
|
1068
1068
|
return {
|
1069
1069
|
args: e.map(function(n) {
|
1070
1070
|
return t[n];
|
@@ -1075,26 +1075,26 @@ function nr(s) {
|
|
1075
1075
|
}
|
1076
1076
|
return { args: s, keys: null };
|
1077
1077
|
}
|
1078
|
-
function
|
1079
|
-
return s && typeof s == "object" &&
|
1078
|
+
function ir(s) {
|
1079
|
+
return s && typeof s == "object" && er(s) === sr;
|
1080
1080
|
}
|
1081
|
-
function
|
1081
|
+
function or(s, t) {
|
1082
1082
|
return s.reduce(function(e, n, r) {
|
1083
1083
|
return e[n] = t[r], e;
|
1084
1084
|
}, {});
|
1085
1085
|
}
|
1086
|
-
function
|
1086
|
+
function ar() {
|
1087
1087
|
for (var s = [], t = 0; t < arguments.length; t++)
|
1088
1088
|
s[t] = arguments[t];
|
1089
|
-
var e = ye(s), n =
|
1089
|
+
var e = ye(s), n = Ps(s), r = rr(s), i = r.args, o = r.keys;
|
1090
1090
|
if (i.length === 0)
|
1091
1091
|
return Nt([], e);
|
1092
|
-
var a = new
|
1093
|
-
return
|
1092
|
+
var a = new _(lr(i, e, o ? function(l) {
|
1093
|
+
return or(o, l);
|
1094
1094
|
} : vt));
|
1095
|
-
return n ? a.pipe(
|
1095
|
+
return n ? a.pipe(Ws(n)) : a;
|
1096
1096
|
}
|
1097
|
-
function
|
1097
|
+
function lr(s, t, e) {
|
1098
1098
|
return e === void 0 && (e = vt), function(n) {
|
1099
1099
|
Be(t, function() {
|
1100
1100
|
for (var r = s.length, i = new Array(r), o = r, a = r, l = function(u) {
|
@@ -1114,7 +1114,7 @@ function ar(s, t, e) {
|
|
1114
1114
|
function Be(s, t, e) {
|
1115
1115
|
s ? L(e, s, t) : t();
|
1116
1116
|
}
|
1117
|
-
function
|
1117
|
+
function cr(s, t, e, n, r, i, o, a) {
|
1118
1118
|
var l = [], c = 0, u = 0, h = !1, d = function() {
|
1119
1119
|
h && !l.length && !c && t.complete();
|
1120
1120
|
}, p = function(m) {
|
@@ -1155,28 +1155,28 @@ function we(s, t, e) {
|
|
1155
1155
|
return t(n, i, r, o);
|
1156
1156
|
})(T(s(n, r)));
|
1157
1157
|
}, e) : (typeof t == "number" && (e = t), N(function(n, r) {
|
1158
|
-
return
|
1158
|
+
return cr(n, r, s, e);
|
1159
1159
|
}));
|
1160
1160
|
}
|
1161
|
-
function
|
1161
|
+
function ur(s) {
|
1162
1162
|
return s === void 0 && (s = 1 / 0), we(vt, s);
|
1163
1163
|
}
|
1164
|
-
var
|
1164
|
+
var hr = ["addListener", "removeListener"], dr = ["addEventListener", "removeEventListener"], pr = ["on", "off"];
|
1165
1165
|
function Ot(s, t, e, n) {
|
1166
1166
|
if (g(e) && (n = e, e = void 0), n)
|
1167
|
-
return Ot(s, t, e).pipe(
|
1168
|
-
var r = j(
|
1167
|
+
return Ot(s, t, e).pipe(Ws(n));
|
1168
|
+
var r = j(gr(s) ? dr.map(function(a) {
|
1169
1169
|
return function(l) {
|
1170
1170
|
return s[a](t, l, e);
|
1171
1171
|
};
|
1172
|
-
}) :
|
1172
|
+
}) : fr(s) ? hr.map(ze(s, t)) : vr(s) ? pr.map(ze(s, t)) : [], 2), i = r[0], o = r[1];
|
1173
1173
|
if (!i && be(s))
|
1174
1174
|
return we(function(a) {
|
1175
1175
|
return Ot(a, t, e);
|
1176
1176
|
})(T(s));
|
1177
1177
|
if (!i)
|
1178
1178
|
throw new TypeError("Invalid event target");
|
1179
|
-
return new
|
1179
|
+
return new _(function(a) {
|
1180
1180
|
var l = function() {
|
1181
1181
|
for (var c = [], u = 0; u < arguments.length; u++)
|
1182
1182
|
c[u] = arguments[u];
|
@@ -1194,20 +1194,20 @@ function ze(s, t) {
|
|
1194
1194
|
};
|
1195
1195
|
};
|
1196
1196
|
}
|
1197
|
-
function
|
1197
|
+
function fr(s) {
|
1198
1198
|
return g(s.addListener) && g(s.removeListener);
|
1199
1199
|
}
|
1200
|
-
function
|
1200
|
+
function vr(s) {
|
1201
1201
|
return g(s.on) && g(s.off);
|
1202
1202
|
}
|
1203
|
-
function
|
1203
|
+
function gr(s) {
|
1204
1204
|
return g(s.addEventListener) && g(s.removeEventListener);
|
1205
1205
|
}
|
1206
|
-
function
|
1206
|
+
function mr() {
|
1207
1207
|
for (var s = [], t = 0; t < arguments.length; t++)
|
1208
1208
|
s[t] = arguments[t];
|
1209
|
-
var e = ye(s), n =
|
1210
|
-
return r.length ? r.length === 1 ? T(r[0]) :
|
1209
|
+
var e = ye(s), n = Hn(s, 1 / 0), r = s;
|
1210
|
+
return r.length ? r.length === 1 ? T(r[0]) : ur(n)(Nt(r, e)) : gt;
|
1211
1211
|
}
|
1212
1212
|
function ce(s) {
|
1213
1213
|
return s <= 0 ? function() {
|
@@ -1247,7 +1247,7 @@ function Fe(s) {
|
|
1247
1247
|
function ue() {
|
1248
1248
|
for (var s = [], t = 0; t < arguments.length; t++)
|
1249
1249
|
s[t] = arguments[t];
|
1250
|
-
var e =
|
1250
|
+
var e = Ps(s);
|
1251
1251
|
return N(function(n, r) {
|
1252
1252
|
for (var i = s.length, o = new Array(i), a = s.map(function() {
|
1253
1253
|
return !1;
|
@@ -1266,10 +1266,10 @@ function ue() {
|
|
1266
1266
|
});
|
1267
1267
|
}
|
1268
1268
|
var U = /* @__PURE__ */ ((s) => (s.User = "user", s.Agent = "agent", s.System = "system", s))(U || {});
|
1269
|
-
const
|
1269
|
+
const Ys = () => crypto.randomUUID();
|
1270
1270
|
class Dt {
|
1271
1271
|
constructor(t, e, n) {
|
1272
|
-
this.type = t, this.sender = e, this.messages = n, this.status = "delivered", this.didUpdate = new
|
1272
|
+
this.type = t, this.sender = e, this.messages = n, this.status = "delivered", this.didUpdate = new x(), this.actions$ = new x(), this.remove$ = new x(), this.timestamp = Date.now(), this.id = Ys();
|
1273
1273
|
}
|
1274
1274
|
update(t) {
|
1275
1275
|
this.messages = [
|
@@ -1285,9 +1285,9 @@ class Dt {
|
|
1285
1285
|
this.remove$.next();
|
1286
1286
|
}
|
1287
1287
|
}
|
1288
|
-
class
|
1288
|
+
class $r {
|
1289
1289
|
constructor(t) {
|
1290
|
-
this.name = t, this.print$ = new
|
1290
|
+
this.name = t, this.print$ = new x();
|
1291
1291
|
}
|
1292
1292
|
print(t) {
|
1293
1293
|
const e = new Dt(
|
@@ -1305,9 +1305,9 @@ class mr {
|
|
1305
1305
|
return this.print$.asObservable();
|
1306
1306
|
}
|
1307
1307
|
}
|
1308
|
-
class
|
1308
|
+
class yr {
|
1309
1309
|
constructor(t) {
|
1310
|
-
this.name = t, this.print$ = new
|
1310
|
+
this.name = t, this.print$ = new x();
|
1311
1311
|
}
|
1312
1312
|
print(t) {
|
1313
1313
|
const e = new Dt(
|
@@ -1325,9 +1325,9 @@ class $r {
|
|
1325
1325
|
return this.print$.asObservable();
|
1326
1326
|
}
|
1327
1327
|
}
|
1328
|
-
class
|
1328
|
+
class br {
|
1329
1329
|
constructor() {
|
1330
|
-
this.print$ = new
|
1330
|
+
this.print$ = new x(), this.name = "system";
|
1331
1331
|
}
|
1332
1332
|
print(t) {
|
1333
1333
|
const e = new Dt(
|
@@ -1345,9 +1345,9 @@ class yr {
|
|
1345
1345
|
return this.print$.asObservable();
|
1346
1346
|
}
|
1347
1347
|
}
|
1348
|
-
class
|
1348
|
+
class Fo {
|
1349
1349
|
constructor(t, e) {
|
1350
|
-
this.name = t, this.component = e, this.print$ = new
|
1350
|
+
this.name = t, this.component = e, this.print$ = new x(), this.typingState$ = new P(!1), this.complete$ = new x(), this.system = this.createSystem(), this.rehydrate$ = new x(), this.saveToCurrentSession$ = new x(), this.showChatOverlay$ = new P(!1), this.onComplete = () => this.complete$.asObservable();
|
1351
1351
|
}
|
1352
1352
|
connect(t = {}) {
|
1353
1353
|
this.complete$.pipe(ce(1)).subscribe(() => {
|
@@ -1379,19 +1379,19 @@ class jo {
|
|
1379
1379
|
return this.print$.next(t), t;
|
1380
1380
|
}
|
1381
1381
|
createAgent(t) {
|
1382
|
-
const e = new
|
1382
|
+
const e = new $r(t);
|
1383
1383
|
return e.subscribe().subscribe((n) => {
|
1384
1384
|
this.playNotification(), this.printEntry(n);
|
1385
1385
|
}), e;
|
1386
1386
|
}
|
1387
1387
|
createUser(t) {
|
1388
|
-
const e = new
|
1388
|
+
const e = new yr(t);
|
1389
1389
|
return e.subscribe().subscribe((n) => {
|
1390
1390
|
this.printEntry(n);
|
1391
1391
|
}), e;
|
1392
1392
|
}
|
1393
1393
|
createSystem() {
|
1394
|
-
const t = new
|
1394
|
+
const t = new br();
|
1395
1395
|
return t.subscribe().subscribe((e) => {
|
1396
1396
|
this.printEntry(e);
|
1397
1397
|
}), t;
|
@@ -1427,17 +1427,17 @@ class jo {
|
|
1427
1427
|
* Copyright 2019 Google LLC
|
1428
1428
|
* SPDX-License-Identifier: BSD-3-Clause
|
1429
1429
|
*/
|
1430
|
-
const Ct = globalThis,
|
1431
|
-
let
|
1430
|
+
const Ct = globalThis, xe = Ct.ShadowRoot && (Ct.ShadyCSS === void 0 || Ct.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, _e = Symbol(), We = /* @__PURE__ */ new WeakMap();
|
1431
|
+
let Zs = class {
|
1432
1432
|
constructor(t, e, n) {
|
1433
|
-
if (this._$cssResult$ = !0, n !==
|
1433
|
+
if (this._$cssResult$ = !0, n !== _e)
|
1434
1434
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
1435
1435
|
this.cssText = t, this.t = e;
|
1436
1436
|
}
|
1437
1437
|
get styleSheet() {
|
1438
1438
|
let t = this.o;
|
1439
1439
|
const e = this.t;
|
1440
|
-
if (
|
1440
|
+
if (xe && t === void 0) {
|
1441
1441
|
const n = e !== void 0 && e.length === 1;
|
1442
1442
|
n && (t = We.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && We.set(e, t));
|
1443
1443
|
}
|
@@ -1447,7 +1447,7 @@ let Ys = class {
|
|
1447
1447
|
return this.cssText;
|
1448
1448
|
}
|
1449
1449
|
};
|
1450
|
-
const
|
1450
|
+
const wr = (s) => new Zs(typeof s == "string" ? s : s + "", void 0, _e), C = (s, ...t) => {
|
1451
1451
|
const e = s.length === 1 ? s[0] : t.reduce((n, r, i) => n + ((o) => {
|
1452
1452
|
if (o._$cssResult$ === !0)
|
1453
1453
|
return o.cssText;
|
@@ -1455,30 +1455,30 @@ const br = (s) => new Ys(typeof s == "string" ? s : s + "", void 0, xe), C = (s,
|
|
1455
1455
|
return o;
|
1456
1456
|
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.");
|
1457
1457
|
})(r) + s[i + 1], s[0]);
|
1458
|
-
return new
|
1459
|
-
},
|
1460
|
-
if (
|
1458
|
+
return new Zs(e, s, _e);
|
1459
|
+
}, xr = (s, t) => {
|
1460
|
+
if (xe)
|
1461
1461
|
s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
1462
1462
|
else
|
1463
1463
|
for (const e of t) {
|
1464
1464
|
const n = document.createElement("style"), r = Ct.litNonce;
|
1465
1465
|
r !== void 0 && n.setAttribute("nonce", r), n.textContent = e.cssText, s.appendChild(n);
|
1466
1466
|
}
|
1467
|
-
}, Ye =
|
1467
|
+
}, Ye = xe ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
1468
1468
|
let e = "";
|
1469
1469
|
for (const n of t.cssRules)
|
1470
1470
|
e += n.cssText;
|
1471
|
-
return
|
1471
|
+
return wr(e);
|
1472
1472
|
})(s) : s;
|
1473
1473
|
/**
|
1474
1474
|
* @license
|
1475
1475
|
* Copyright 2017 Google LLC
|
1476
1476
|
* SPDX-License-Identifier: BSD-3-Clause
|
1477
1477
|
*/
|
1478
|
-
const { is: _r, defineProperty:
|
1478
|
+
const { is: _r, defineProperty: Sr, getOwnPropertyDescriptor: Cr, getOwnPropertyNames: Ar, getOwnPropertySymbols: Er, getPrototypeOf: Or } = Object, R = globalThis, Ze = R.trustedTypes, kr = Ze ? Ze.emptyScript : "", Jt = R.reactiveElementPolyfillSupport, at = (s, t) => s, kt = { toAttribute(s, t) {
|
1479
1479
|
switch (t) {
|
1480
1480
|
case Boolean:
|
1481
|
-
s = s ?
|
1481
|
+
s = s ? kr : null;
|
1482
1482
|
break;
|
1483
1483
|
case Object:
|
1484
1484
|
case Array:
|
@@ -1515,11 +1515,11 @@ let q = class extends HTMLElement {
|
|
1515
1515
|
static createProperty(t, e = qe) {
|
1516
1516
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
1517
1517
|
const n = Symbol(), r = this.getPropertyDescriptor(t, n, e);
|
1518
|
-
r !== void 0 &&
|
1518
|
+
r !== void 0 && Sr(this.prototype, t, r);
|
1519
1519
|
}
|
1520
1520
|
}
|
1521
1521
|
static getPropertyDescriptor(t, e, n) {
|
1522
|
-
const { get: r, set: i } =
|
1522
|
+
const { get: r, set: i } = Cr(this.prototype, t) ?? { get() {
|
1523
1523
|
return this[e];
|
1524
1524
|
}, set(o) {
|
1525
1525
|
this[e] = o;
|
@@ -1537,14 +1537,14 @@ let q = class extends HTMLElement {
|
|
1537
1537
|
static _$Ei() {
|
1538
1538
|
if (this.hasOwnProperty(at("elementProperties")))
|
1539
1539
|
return;
|
1540
|
-
const t =
|
1540
|
+
const t = Or(this);
|
1541
1541
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
1542
1542
|
}
|
1543
1543
|
static finalize() {
|
1544
1544
|
if (this.hasOwnProperty(at("finalized")))
|
1545
1545
|
return;
|
1546
1546
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(at("properties"))) {
|
1547
|
-
const e = this.properties, n = [...
|
1547
|
+
const e = this.properties, n = [...Ar(e), ...Er(e)];
|
1548
1548
|
for (const r of n)
|
1549
1549
|
this.createProperty(r, e[r]);
|
1550
1550
|
}
|
@@ -1599,7 +1599,7 @@ let q = class extends HTMLElement {
|
|
1599
1599
|
}
|
1600
1600
|
createRenderRoot() {
|
1601
1601
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
1602
|
-
return
|
1602
|
+
return xr(t, this.constructor.elementStyles), t;
|
1603
1603
|
}
|
1604
1604
|
connectedCallback() {
|
1605
1605
|
var t;
|
@@ -1722,33 +1722,33 @@ q.elementStyles = [], q.shadowRootOptions = { mode: "open" }, q[at("elementPrope
|
|
1722
1722
|
* Copyright 2017 Google LLC
|
1723
1723
|
* SPDX-License-Identifier: BSD-3-Clause
|
1724
1724
|
*/
|
1725
|
-
const lt = globalThis, Tt = lt.trustedTypes, Ke = Tt ? Tt.createPolicy("lit-html", { createHTML: (s) => s }) : void 0,
|
1725
|
+
const lt = globalThis, Tt = lt.trustedTypes, Ke = Tt ? Tt.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, qs = "$lit$", I = `lit$${(Math.random() + "").slice(9)}$`, Ks = "?" + I, Tr = `<${Ks}>`, W = document, ut = () => W.createComment(""), ht = (s) => s === null || typeof s != "object" && typeof s != "function", Gs = Array.isArray, Pr = (s) => Gs(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", Qt = `[
|
1726
1726
|
\f\r]`, ot = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ge = /-->/g, Xe = />/g, D = RegExp(`>|${Qt}(?:([^\\s"'>=/]+)(${Qt}*=${Qt}*(?:[^
|
1727
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Je = /'/g, Qe = /"/g,
|
1728
|
-
function
|
1727
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Je = /'/g, Qe = /"/g, Xs = /^(?:script|style|textarea|title)$/i, Lr = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), v = Lr(1), H = Symbol.for("lit-noChange"), f = Symbol.for("lit-nothing"), Ve = /* @__PURE__ */ new WeakMap(), z = W.createTreeWalker(W, 129);
|
1728
|
+
function Js(s, t) {
|
1729
1729
|
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
1730
1730
|
throw Error("invalid template strings array");
|
1731
1731
|
return Ke !== void 0 ? Ke.createHTML(t) : t;
|
1732
1732
|
}
|
1733
|
-
const
|
1733
|
+
const Mr = (s, t) => {
|
1734
1734
|
const e = s.length - 1, n = [];
|
1735
1735
|
let r, i = t === 2 ? "<svg>" : "", o = ot;
|
1736
1736
|
for (let a = 0; a < e; a++) {
|
1737
1737
|
const l = s[a];
|
1738
1738
|
let c, u, h = -1, d = 0;
|
1739
1739
|
for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); )
|
1740
|
-
d = o.lastIndex, o === ot ? u[1] === "!--" ? o = Ge : u[1] !== void 0 ? o = Xe : u[2] !== void 0 ? (
|
1740
|
+
d = o.lastIndex, o === ot ? u[1] === "!--" ? o = Ge : u[1] !== void 0 ? o = Xe : u[2] !== void 0 ? (Xs.test(u[2]) && (r = RegExp("</" + u[2], "g")), o = D) : u[3] !== void 0 && (o = D) : o === D ? u[0] === ">" ? (o = r ?? ot, h = -1) : u[1] === void 0 ? h = -2 : (h = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? D : u[3] === '"' ? Qe : Je) : o === Qe || o === Je ? o = D : o === Ge || o === Xe ? o = ot : (o = D, r = void 0);
|
1741
1741
|
const p = o === D && s[a + 1].startsWith("/>") ? " " : "";
|
1742
|
-
i += o === ot ? l +
|
1742
|
+
i += o === ot ? l + Tr : h >= 0 ? (n.push(c), l.slice(0, h) + qs + l.slice(h) + I + p) : l + I + (h === -2 ? a : p);
|
1743
1743
|
}
|
1744
|
-
return [
|
1744
|
+
return [Js(s, i + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), n];
|
1745
1745
|
};
|
1746
1746
|
class dt {
|
1747
1747
|
constructor({ strings: t, _$litType$: e }, n) {
|
1748
1748
|
let r;
|
1749
1749
|
this.parts = [];
|
1750
1750
|
let i = 0, o = 0;
|
1751
|
-
const a = t.length - 1, l = this.parts, [c, u] =
|
1751
|
+
const a = t.length - 1, l = this.parts, [c, u] = Mr(t, e);
|
1752
1752
|
if (this.el = dt.createElement(c, n), z.currentNode = this.el.content, e === 2) {
|
1753
1753
|
const h = this.el.content.firstChild;
|
1754
1754
|
h.replaceWith(...h.childNodes);
|
@@ -1757,12 +1757,12 @@ class dt {
|
|
1757
1757
|
if (r.nodeType === 1) {
|
1758
1758
|
if (r.hasAttributes())
|
1759
1759
|
for (const h of r.getAttributeNames())
|
1760
|
-
if (h.endsWith(
|
1760
|
+
if (h.endsWith(qs)) {
|
1761
1761
|
const d = u[o++], p = r.getAttribute(h).split(I), $ = /([.?@])?(.*)/.exec(d);
|
1762
|
-
l.push({ type: 1, index: i, name: $[2], strings: p, ctor: $[1] === "." ?
|
1762
|
+
l.push({ type: 1, index: i, name: $[2], strings: p, ctor: $[1] === "." ? Ur : $[1] === "?" ? Rr : $[1] === "@" ? jr : Bt }), r.removeAttribute(h);
|
1763
1763
|
} else
|
1764
1764
|
h.startsWith(I) && (l.push({ type: 6, index: i }), r.removeAttribute(h));
|
1765
|
-
if (
|
1765
|
+
if (Xs.test(r.tagName)) {
|
1766
1766
|
const h = r.textContent.split(I), d = h.length - 1;
|
1767
1767
|
if (d > 0) {
|
1768
1768
|
r.textContent = Tt ? Tt.emptyScript : "";
|
@@ -1772,7 +1772,7 @@ class dt {
|
|
1772
1772
|
}
|
1773
1773
|
}
|
1774
1774
|
} else if (r.nodeType === 8)
|
1775
|
-
if (r.data ===
|
1775
|
+
if (r.data === Ks)
|
1776
1776
|
l.push({ type: 2, index: i });
|
1777
1777
|
else {
|
1778
1778
|
let h = -1;
|
@@ -1795,7 +1795,7 @@ function st(s, t, e = s, n) {
|
|
1795
1795
|
const i = ht(t) ? void 0 : t._$litDirective$;
|
1796
1796
|
return (r == null ? void 0 : r.constructor) !== i && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), i === void 0 ? r = void 0 : (r = new i(s), r._$AT(s, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = r : e._$Cl = r), r !== void 0 && (t = st(s, r._$AS(s, t.values), r, n)), t;
|
1797
1797
|
}
|
1798
|
-
class
|
1798
|
+
class Ir {
|
1799
1799
|
constructor(t, e) {
|
1800
1800
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
1801
1801
|
}
|
@@ -1812,7 +1812,7 @@ class Mr {
|
|
1812
1812
|
for (; l !== void 0; ) {
|
1813
1813
|
if (o === l.index) {
|
1814
1814
|
let c;
|
1815
|
-
l.type === 2 ? c = new mt(i, i.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(i, l.name, l.strings, this, t) : l.type === 6 && (c = new
|
1815
|
+
l.type === 2 ? c = new mt(i, i.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(i, l.name, l.strings, this, t) : l.type === 6 && (c = new Hr(i, this, t)), this._$AV.push(c), l = n[++a];
|
1816
1816
|
}
|
1817
1817
|
o !== (l == null ? void 0 : l.index) && (i = z.nextNode(), o++);
|
1818
1818
|
}
|
@@ -1844,7 +1844,7 @@ class mt {
|
|
1844
1844
|
return this._$AB;
|
1845
1845
|
}
|
1846
1846
|
_$AI(t, e = this) {
|
1847
|
-
t = st(this, t, e), ht(t) ? t === f || t == null || t === "" ? (this._$AH !== f && this._$AR(), this._$AH = f) : t !== this._$AH && t !== H && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) :
|
1847
|
+
t = st(this, t, e), ht(t) ? t === f || t == null || t === "" ? (this._$AH !== f && this._$AR(), this._$AH = f) : t !== this._$AH && t !== H && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Pr(t) ? this.k(t) : this._(t);
|
1848
1848
|
}
|
1849
1849
|
S(t) {
|
1850
1850
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -1857,11 +1857,11 @@ class mt {
|
|
1857
1857
|
}
|
1858
1858
|
$(t) {
|
1859
1859
|
var i;
|
1860
|
-
const { values: e, _$litType$: n } = t, r = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = dt.createElement(
|
1860
|
+
const { values: e, _$litType$: n } = t, r = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = dt.createElement(Js(n.h, n.h[0]), this.options)), n);
|
1861
1861
|
if (((i = this._$AH) == null ? void 0 : i._$AD) === r)
|
1862
1862
|
this._$AH.p(e);
|
1863
1863
|
else {
|
1864
|
-
const o = new
|
1864
|
+
const o = new Ir(r, this), a = o.u(this.options);
|
1865
1865
|
o.p(e), this.T(a), this._$AH = o;
|
1866
1866
|
}
|
1867
1867
|
}
|
@@ -1870,7 +1870,7 @@ class mt {
|
|
1870
1870
|
return e === void 0 && Ve.set(t.strings, e = new dt(t)), e;
|
1871
1871
|
}
|
1872
1872
|
k(t) {
|
1873
|
-
|
1873
|
+
Gs(this._$AH) || (this._$AH = [], this._$AR());
|
1874
1874
|
const e = this._$AH;
|
1875
1875
|
let n, r = 0;
|
1876
1876
|
for (const i of t)
|
@@ -1916,7 +1916,7 @@ class Bt {
|
|
1916
1916
|
t === f ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
1917
1917
|
}
|
1918
1918
|
}
|
1919
|
-
class
|
1919
|
+
class Ur extends Bt {
|
1920
1920
|
constructor() {
|
1921
1921
|
super(...arguments), this.type = 3;
|
1922
1922
|
}
|
@@ -1924,7 +1924,7 @@ class Ir extends Bt {
|
|
1924
1924
|
this.element[this.name] = t === f ? void 0 : t;
|
1925
1925
|
}
|
1926
1926
|
}
|
1927
|
-
let
|
1927
|
+
let Rr = class extends Bt {
|
1928
1928
|
constructor() {
|
1929
1929
|
super(...arguments), this.type = 4;
|
1930
1930
|
}
|
@@ -1932,7 +1932,7 @@ let Ur = class extends Bt {
|
|
1932
1932
|
this.element.toggleAttribute(this.name, !!t && t !== f);
|
1933
1933
|
}
|
1934
1934
|
};
|
1935
|
-
class
|
1935
|
+
class jr extends Bt {
|
1936
1936
|
constructor(t, e, n, r, i) {
|
1937
1937
|
super(t, e, n, r, i), this.type = 5;
|
1938
1938
|
}
|
@@ -1947,7 +1947,7 @@ class Rr extends Bt {
|
|
1947
1947
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
1948
1948
|
}
|
1949
1949
|
}
|
1950
|
-
class
|
1950
|
+
class Hr {
|
1951
1951
|
constructor(t, e, n) {
|
1952
1952
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = n;
|
1953
1953
|
}
|
@@ -1960,7 +1960,7 @@ class jr {
|
|
1960
1960
|
}
|
1961
1961
|
const Vt = lt.litHtmlPolyfillSupport;
|
1962
1962
|
Vt == null || Vt(dt, mt), (lt.litHtmlVersions ?? (lt.litHtmlVersions = [])).push("3.1.2");
|
1963
|
-
const
|
1963
|
+
const Nr = (s, t, e) => {
|
1964
1964
|
const n = (e == null ? void 0 : e.renderBefore) ?? t;
|
1965
1965
|
let r = n._$litPart$;
|
1966
1966
|
if (r === void 0) {
|
@@ -1985,7 +1985,7 @@ let b = class extends q {
|
|
1985
1985
|
}
|
1986
1986
|
update(t) {
|
1987
1987
|
const e = this.render();
|
1988
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
1988
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Nr(e, this.renderRoot, this.renderOptions);
|
1989
1989
|
}
|
1990
1990
|
connectedCallback() {
|
1991
1991
|
var t;
|
@@ -2004,7 +2004,7 @@ b._$litElement$ = !0, b.finalized = !0, (_s = globalThis.litElementHydrateSuppor
|
|
2004
2004
|
const te = globalThis.litElementPolyfillSupport;
|
2005
2005
|
te == null || te({ LitElement: b });
|
2006
2006
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
|
2007
|
-
const
|
2007
|
+
const Dr = { name: "alert", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4.01731 47.4568 16.5432 59.9827 32 60ZM32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6923 45.0849 45.0849 55.6923 32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.32247 18.9212 18.9212 8.32247 32 8.30769Z"/><path d="M29.3491 38.6031V20.6807C29.348 19.8662 29.4903 19.0598 29.7675 18.3096C29.9945 17.6371 30.3484 17.0302 30.804 16.5322C31.1251 16.1524 31.5593 15.9246 32.0204 15.894C32.6852 15.894 33.3496 16.471 34.0134 17.625C34.3738 18.1337 34.5955 18.7525 34.6509 19.4042V37.3267C34.6509 37.9947 34.2454 38.6329 33.4345 39.2414C32.6632 39.835 31.7547 40.1521 30.825 40.1523C29.8423 40.1524 29.3503 39.636 29.3491 38.6031Z"/><path d="M33.66 44.6959C33.9649 45.0866 34.161 45.551 34.2284 46.0419C34.2284 46.5397 33.8893 47.0083 33.2109 47.4476C32.5638 47.8771 31.8043 48.1062 31.0275 48.1061C30.1902 48.1061 29.7716 47.7271 29.7716 46.9693C29.7703 46.3788 29.8874 45.7941 30.116 45.2496C30.3064 44.7579 30.6022 44.3138 30.9826 43.9487C31.2626 43.6591 31.6427 43.4875 32.045 43.4692C32.5635 43.4692 33.1019 43.8781 33.66 44.6959Z"/></svg>' }, Br = { name: "check-circle-filled", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9829 16.5431 47.4569 4.01712 32 4ZM44.5613 24.5793L31.6382 43.9639C31.2806 44.5011 30.7008 44.8493 30.0586 44.9126C29.988 44.9197 29.9171 44.9232 29.8462 44.9231C29.275 44.9229 28.7272 44.696 28.3233 44.2921L19.7079 35.6767C19.1639 35.1326 18.9514 34.3396 19.1505 33.5964C19.3497 32.8533 19.9302 32.2728 20.6734 32.0736C21.4166 31.8745 22.2095 32.087 22.7536 32.631L29.5117 39.3881L40.9772 22.1899C41.4016 21.5439 42.1396 21.1749 42.9111 21.2229C43.6825 21.2709 44.3691 21.7286 44.7101 22.4223C45.0511 23.1159 44.9944 23.9391 44.5613 24.5793Z"/></svg>' }, zr = { name: "check-circle", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9998 4C16.5358 4 3.99976 16.536 3.99976 32C3.99976 47.464 16.5358 60 31.9998 60C47.4637 60 59.9998 47.464 59.9998 32C59.9826 16.5431 47.4566 4.01712 31.9998 4ZM31.9998 55.6923C18.9149 55.6923 8.30745 45.0849 8.30745 32C8.30745 18.9151 18.9149 8.30769 31.9998 8.30769C45.0847 8.30769 55.6921 18.9151 55.6921 32C55.6773 45.0788 45.0785 55.6775 31.9998 55.6923ZM44.5611 24.5793L31.638 43.9639C31.2804 44.5011 30.7005 44.8493 30.0584 44.9126C29.9878 44.9197 29.9169 44.9232 29.8459 44.9231C29.2747 44.9229 28.727 44.696 28.3231 44.2921L19.7077 35.6767C19.1636 35.1326 18.9512 34.3396 19.1503 33.5964C19.3494 32.8533 19.9299 32.2728 20.6731 32.0736C21.4163 31.8745 22.2093 32.087 22.7534 32.631L29.5115 39.3881L40.9769 22.1899C41.4013 21.5439 42.1394 21.1749 42.9108 21.2229C43.6823 21.2709 44.3688 21.7286 44.7099 22.4223C45.0509 23.1159 44.9941 23.9391 44.5611 24.5793Z"/></svg>' }, Fr = { name: "chevron-down", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>' }, ts = { name: "mute", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.4283 11.6761L53.1768 9.53891C53.9347 8.61282 53.7982 7.24774 52.8722 6.48993C51.9461 5.73211 50.581 5.86852 49.8232 6.79461L36.3333 23.2822V13.3972C36.3332 11.6447 35.2774 10.0648 33.6583 9.39418C32.0391 8.72356 30.1755 9.09425 28.9362 10.3334L18.1029 21.1668H14.6667C9.88247 21.1722 6.00547 25.0492 6 29.8334V34.1668C6.00547 38.951 9.88247 42.828 14.6667 42.8334H18.1029L19.3315 44.0621L10.8232 54.4613C10.0653 55.3874 10.2018 56.7525 11.1279 57.5103C12.0539 58.2681 13.419 58.1317 14.1768 57.2056L22.411 47.1416L28.9362 53.6668C30.1755 54.9059 32.0391 55.2766 33.6583 54.606C35.2774 53.9354 36.3332 52.3555 36.3333 50.603V30.1254L42.6092 22.4549C44.2201 25.3756 45.044 28.6649 45 32.0001C45.1184 36.1899 43.7698 40.2896 41.1872 43.5909C40.409 44.5001 40.5152 45.8679 41.4243 46.6461C42.3334 47.4243 43.7012 47.3183 44.4795 46.4093C47.7313 42.3208 49.4486 37.2227 49.3333 32.0001C49.403 27.3538 48.067 22.7949 45.5005 18.9211L48.6119 15.1182C52.019 20.0793 53.7867 25.9829 53.6667 32.0001C53.6667 39.0587 51.4873 45.6518 47.6872 50.0909C46.909 51.0001 47.0152 52.3679 47.9243 53.1461C48.8334 53.9243 50.2012 53.8183 50.9795 52.9093C55.4408 47.6968 58 40.0764 58 32.0001C58 24.21 55.6006 16.8662 51.4283 11.6761ZM19.8971 38.5H14.6667C12.2744 38.4977 10.3357 36.559 10.3333 34.1667V29.8334C10.3357 27.4411 12.2744 25.5024 14.6667 25.5H19.8971L32 13.3972V28.5784L22.089 40.6919L19.8971 38.5ZM31.9997 50.603L25.1682 43.7715L31.9997 35.4218V50.603Z"/></svg>' }, Wr = { 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>' }, Yr = { name: "send", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>' }, es = { name: "volume", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M33.6578 9.3322C32.0391 8.65799 30.1735 9.02919 28.9362 10.2717L18.1029 21.105H14.6667C9.88247 21.1105 6.00547 24.9875 6 29.7717V34.105C6.00547 38.8892 9.88247 42.7662 14.6667 42.7717H18.1029L28.9362 53.605C30.1755 54.8442 32.0391 55.2149 33.6583 54.5442C35.2774 53.8736 36.3332 52.2937 36.3333 50.5412V13.3355C36.3365 11.5817 35.2794 10.0001 33.6578 9.3322ZM32 50.5411L19.8971 38.4382H14.6667C12.2744 38.4358 10.3357 36.4971 10.3333 34.1049V29.7716C10.3357 27.3793 12.2744 25.4406 14.6667 25.4382H19.8971L32 13.3353V50.5411ZM49.3334 31.9383C49.4487 37.161 47.7314 42.2591 44.4796 46.3475C43.7013 47.2565 42.3335 47.3625 41.4244 46.5843C40.5153 45.8061 40.4092 44.4383 41.1873 43.5291C43.7699 40.2278 45.1185 36.1282 45.0001 31.9383C45.1185 27.7485 43.7699 23.6488 41.1873 20.3475C40.4092 19.4383 40.5153 18.0705 41.4244 17.2923C42.3335 16.5141 43.7013 16.6201 44.4796 17.5291C47.7314 21.6176 49.4487 26.7157 49.3334 31.9383ZM58.0001 31.9383C58.0001 40.0147 55.441 47.635 50.9796 52.8475C50.2013 53.7565 48.8335 53.8625 47.9244 53.0843C47.0153 52.3061 46.9092 50.9383 47.6873 50.0291C51.4874 45.59 53.6668 38.9969 53.6668 31.9383C53.6668 24.8797 51.4874 18.2866 47.6873 13.8475C46.9092 12.9383 47.0153 11.5705 47.9244 10.7923C48.8335 10.0141 50.2013 10.1201 50.9796 11.0291C55.441 16.2416 58.0001 23.862 58.0001 31.9383Z"/></svg>' }, K = {
|
2008
2008
|
allRenderFn: !1,
|
2009
2009
|
cmpDidLoad: !0,
|
2010
2010
|
cmpDidUnload: !1,
|
@@ -2088,8 +2088,8 @@ const Nr = { name: "alert", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.
|
|
2088
2088
|
transformTagName: !1,
|
2089
2089
|
attachStyles: !0
|
2090
2090
|
};
|
2091
|
-
let G,
|
2092
|
-
const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} },
|
2091
|
+
let G, Qs, zt, Vs = !1, Pt = !1, Ce = !1, S = !1, ss = null, he = !1;
|
2092
|
+
const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, tn = Ft.HTMLElement || class {
|
2093
2093
|
}, w = {
|
2094
2094
|
$flags$: 0,
|
2095
2095
|
$resourcesUrl$: "",
|
@@ -2098,7 +2098,7 @@ const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, V
|
|
2098
2098
|
ael: (s, t, e, n) => s.addEventListener(t, e, n),
|
2099
2099
|
rel: (s, t, e, n) => s.removeEventListener(t, e, n),
|
2100
2100
|
ce: (s, t) => new CustomEvent(s, t)
|
2101
|
-
},
|
2101
|
+
}, Zr = /* @__PURE__ */ (() => {
|
2102
2102
|
let s = !1;
|
2103
2103
|
try {
|
2104
2104
|
k.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
@@ -2109,32 +2109,32 @@ const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, V
|
|
2109
2109
|
} catch {
|
2110
2110
|
}
|
2111
2111
|
return s;
|
2112
|
-
})(),
|
2112
|
+
})(), qr = (s) => Promise.resolve(s), Kr = /* @__PURE__ */ (() => {
|
2113
2113
|
try {
|
2114
2114
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
2115
2115
|
} catch {
|
2116
2116
|
}
|
2117
2117
|
return !1;
|
2118
|
-
})(),
|
2118
|
+
})(), en = (s, t, e, n) => {
|
2119
2119
|
e && e.map(([r, i, o]) => {
|
2120
|
-
const a =
|
2120
|
+
const a = Xr(s, r), l = Gr(t, o), c = Jr(r);
|
2121
2121
|
w.ael(a, i, l, c), (t.$rmListeners$ = t.$rmListeners$ || []).push(() => w.rel(a, i, l, c));
|
2122
2122
|
});
|
2123
|
-
},
|
2123
|
+
}, Gr = (s, t) => (e) => {
|
2124
2124
|
try {
|
2125
2125
|
K.lazyLoad || s.$hostElement$[t](e);
|
2126
2126
|
} catch (n) {
|
2127
2127
|
$t(n);
|
2128
2128
|
}
|
2129
|
-
},
|
2129
|
+
}, Xr = (s, t) => t & 4 ? k : t & 8 ? Ft : t & 16 ? k.body : s, Jr = (s) => Zr ? {
|
2130
2130
|
passive: (s & 1) !== 0,
|
2131
2131
|
capture: (s & 2) !== 0
|
2132
2132
|
} : (s & 2) !== 0, ns = "http://www.w3.org/1999/xlink", Y = (s, t = "") => () => {
|
2133
|
-
}, rs = /* @__PURE__ */ new WeakMap(),
|
2133
|
+
}, rs = /* @__PURE__ */ new WeakMap(), Qr = (s, t, e) => {
|
2134
2134
|
let n = It.get(s);
|
2135
|
-
|
2136
|
-
},
|
2137
|
-
let r =
|
2135
|
+
Kr && e ? (n = n || new CSSStyleSheet(), n.replace(t)) : n = t, It.set(s, n);
|
2136
|
+
}, Vr = (s, t, e, n) => {
|
2137
|
+
let r = sn(t, e), i = It.get(r);
|
2138
2138
|
if (s = s.nodeType === 11 ? s : k, i)
|
2139
2139
|
if (typeof i == "string") {
|
2140
2140
|
s = s.head || s;
|
@@ -2143,10 +2143,10 @@ const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, V
|
|
2143
2143
|
} else
|
2144
2144
|
s.adoptedStyleSheets.includes(i) || (s.adoptedStyleSheets = [...s.adoptedStyleSheets, i]);
|
2145
2145
|
return r;
|
2146
|
-
},
|
2147
|
-
const t = s.$cmpMeta$, e = s.$hostElement$, n = t.$flags$, r = Y("attachStyles", t.$tagName$), i =
|
2146
|
+
}, ti = (s) => {
|
2147
|
+
const t = s.$cmpMeta$, e = s.$hostElement$, n = t.$flags$, r = Y("attachStyles", t.$tagName$), i = Vr(e.shadowRoot ? e.shadowRoot : e.getRootNode(), t, s.$modeName$);
|
2148
2148
|
n & 10 && (e["s-sc"] = i, e.classList.add(i + "-h"), n & 2 && e.classList.add(i + "-s")), r();
|
2149
|
-
},
|
2149
|
+
}, sn = (s, t) => "sc-" + (t && s.$flags$ & 32 ? s.$tagName$ + "-" + t : s.$tagName$), ei = (s) => ki.map((t) => t(s)).find((t) => !!t), is = {}, si = "http://www.w3.org/2000/svg", ni = "http://www.w3.org/1999/xhtml", ri = (s) => s != null, Ae = (s) => (s = typeof s, s === "object" || s === "function"), V = (s, t, ...e) => {
|
2150
2150
|
let n = null, r = null, i = null, o = !1, a = !1, l = [];
|
2151
2151
|
const c = (h) => {
|
2152
2152
|
for (let d = 0; d < h.length; d++)
|
@@ -2160,7 +2160,7 @@ const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, V
|
|
2160
2160
|
}
|
2161
2161
|
}
|
2162
2162
|
if (typeof s == "function")
|
2163
|
-
return s(t === null ? {} : t, l,
|
2163
|
+
return s(t === null ? {} : t, l, oi);
|
2164
2164
|
const u = Lt(s, null);
|
2165
2165
|
return u.$attrs$ = t, l.length > 0 && (u.$children$ = l), u.$key$ = r, u.$name$ = i, u;
|
2166
2166
|
}, Lt = (s, t) => {
|
@@ -2172,9 +2172,9 @@ const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, V
|
|
2172
2172
|
$children$: null
|
2173
2173
|
};
|
2174
2174
|
return e.$attrs$ = null, e.$key$ = null, e.$name$ = null, e;
|
2175
|
-
}, Ee = {},
|
2175
|
+
}, Ee = {}, ii = (s) => s && s.$tag$ === Ee, oi = {
|
2176
2176
|
forEach: (s, t) => s.map(os).forEach(t),
|
2177
|
-
map: (s, t) => s.map(os).map(t).map(
|
2177
|
+
map: (s, t) => s.map(os).map(t).map(ai)
|
2178
2178
|
}, os = (s) => ({
|
2179
2179
|
vattrs: s.$attrs$,
|
2180
2180
|
vchildren: s.$children$,
|
@@ -2182,7 +2182,7 @@ const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, V
|
|
2182
2182
|
vname: s.$name$,
|
2183
2183
|
vtag: s.$tag$,
|
2184
2184
|
vtext: s.$text$
|
2185
|
-
}),
|
2185
|
+
}), ai = (s) => {
|
2186
2186
|
if (typeof s.vtag == "function") {
|
2187
2187
|
const e = Object.assign({}, s.vattrs);
|
2188
2188
|
return s.vkey && (e.key = s.vkey), s.vname && (e.name = s.vname), V(s.vtag, e, ...s.vchildren || []);
|
@@ -2221,7 +2221,7 @@ const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, V
|
|
2221
2221
|
a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, c = !0), n == null || n === !1 ? (n !== !1 || s.getAttribute(t) === "") && (c ? s.removeAttributeNS(ns, t) : s.removeAttribute(t)) : (!o || i & 4 || r) && !l && (n = n === !0 ? "" : n, c ? s.setAttributeNS(ns, t, n) : s.setAttribute(t, n));
|
2222
2222
|
}
|
2223
2223
|
}
|
2224
|
-
},
|
2224
|
+
}, li = /\s/, ls = (s) => s ? s.split(li) : [], nn = (s, t, e, n) => {
|
2225
2225
|
const r = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, i = s && s.$attrs$ || is, o = t.$attrs$ || is;
|
2226
2226
|
for (n in i)
|
2227
2227
|
n in o || as(r, n, i[n], void 0, e, t.$flags$);
|
@@ -2229,7 +2229,7 @@ const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, V
|
|
2229
2229
|
as(r, n, i[n], o[n], e, t.$flags$);
|
2230
2230
|
}, Mt = (s, t, e, n) => {
|
2231
2231
|
let r = t.$children$[e], i = 0, o, a, l;
|
2232
|
-
if (
|
2232
|
+
if (Vs || (Ce = !0, r.$tag$ === "slot" && (G && n.classList.add(G + "-s"), r.$flags$ |= r.$children$ ? (
|
2233
2233
|
// slot element has fallback content
|
2234
2234
|
2
|
2235
2235
|
) : (
|
@@ -2240,28 +2240,28 @@ const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, V
|
|
2240
2240
|
else if (r.$flags$ & 1)
|
2241
2241
|
o = r.$elm$ = k.createTextNode("");
|
2242
2242
|
else {
|
2243
|
-
if (S || (S = r.$tag$ === "svg"), o = r.$elm$ = k.createElementNS(S ?
|
2243
|
+
if (S || (S = r.$tag$ === "svg"), o = r.$elm$ = k.createElementNS(S ? si : ni, r.$flags$ & 2 ? "slot-fb" : r.$tag$), S && r.$tag$ === "foreignObject" && (S = !1), nn(null, r, S), ri(G) && o["s-si"] !== G && o.classList.add(o["s-si"] = G), r.$children$)
|
2244
2244
|
for (i = 0; i < r.$children$.length; ++i)
|
2245
2245
|
a = Mt(s, r, i, o), a && o.appendChild(a);
|
2246
2246
|
r.$tag$ === "svg" ? S = !1 : o.tagName === "foreignObject" && (S = !0);
|
2247
2247
|
}
|
2248
|
-
return o["s-hn"] = zt, r.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] =
|
2248
|
+
return o["s-hn"] = zt, r.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = Qs, o["s-sn"] = r.$name$ || "", l = s && s.$children$ && s.$children$[e], l && l.$tag$ === r.$tag$ && s.$elm$ && pt(s.$elm$, !1)), o;
|
2249
2249
|
}, pt = (s, t) => {
|
2250
2250
|
w.$flags$ |= 1;
|
2251
2251
|
const e = s.childNodes;
|
2252
2252
|
for (let n = e.length - 1; n >= 0; n--) {
|
2253
2253
|
const r = e[n];
|
2254
|
-
r["s-hn"] !== zt && r["s-ol"] && (
|
2254
|
+
r["s-hn"] !== zt && r["s-ol"] && (an(r).insertBefore(r, Oe(r)), r["s-ol"].remove(), r["s-ol"] = void 0, Ce = !0), t && pt(r, t);
|
2255
2255
|
}
|
2256
2256
|
w.$flags$ &= -2;
|
2257
|
-
},
|
2257
|
+
}, rn = (s, t, e, n, r, i) => {
|
2258
2258
|
let o = s["s-cr"] && s["s-cr"].parentNode || s, a;
|
2259
2259
|
for (o.shadowRoot && o.tagName === zt && (o = o.shadowRoot); r <= i; ++r)
|
2260
2260
|
n[r] && (a = Mt(null, e, r, s), a && (n[r].$elm$ = a, o.insertBefore(a, Oe(t))));
|
2261
|
-
},
|
2261
|
+
}, on = (s, t, e, n, r) => {
|
2262
2262
|
for (; t <= e; ++t)
|
2263
|
-
(n = s[t]) && (r = n.$elm$,
|
2264
|
-
},
|
2263
|
+
(n = s[t]) && (r = n.$elm$, un(n), Pt = !0, r["s-ol"] ? r["s-ol"].remove() : pt(r, !0), r.remove());
|
2264
|
+
}, ci = (s, t, e, n) => {
|
2265
2265
|
let r = 0, i = 0, o = 0, a = 0, l = t.length - 1, c = t[0], u = t[l], h = n.length - 1, d = n[0], p = n[h], $, m;
|
2266
2266
|
for (; r <= l && i <= h; )
|
2267
2267
|
if (c == null)
|
@@ -2272,13 +2272,13 @@ const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, V
|
|
2272
2272
|
d = n[++i];
|
2273
2273
|
else if (p == null)
|
2274
2274
|
p = n[--h];
|
2275
|
-
else if (
|
2275
|
+
else if (xt(c, d))
|
2276
2276
|
X(c, d), c = t[++r], d = n[++i];
|
2277
|
-
else if (
|
2277
|
+
else if (xt(u, p))
|
2278
2278
|
X(u, p), u = t[--l], p = n[--h];
|
2279
|
-
else if (
|
2279
|
+
else if (xt(c, p))
|
2280
2280
|
(c.$tag$ === "slot" || p.$tag$ === "slot") && pt(c.$elm$.parentNode, !1), X(c, p), s.insertBefore(c.$elm$, u.$elm$.nextSibling), c = t[++r], p = n[--h];
|
2281
|
-
else if (
|
2281
|
+
else if (xt(u, d))
|
2282
2282
|
(c.$tag$ === "slot" || p.$tag$ === "slot") && pt(u.$elm$.parentNode, !1), X(u, d), s.insertBefore(u.$elm$, c.$elm$), u = t[--l], d = n[++i];
|
2283
2283
|
else {
|
2284
2284
|
for (o = -1, a = r; a <= l; ++a)
|
@@ -2286,14 +2286,14 @@ const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, V
|
|
2286
2286
|
o = a;
|
2287
2287
|
break;
|
2288
2288
|
}
|
2289
|
-
o >= 0 ? (m = t[o], m.$tag$ !== d.$tag$ ? $ = Mt(t && t[i], e, o, s) : (X(m, d), t[o] = void 0, $ = m.$elm$), d = n[++i]) : ($ = Mt(t && t[i], e, i, s), d = n[++i]), $ &&
|
2289
|
+
o >= 0 ? (m = t[o], m.$tag$ !== d.$tag$ ? $ = Mt(t && t[i], e, o, s) : (X(m, d), t[o] = void 0, $ = m.$elm$), d = n[++i]) : ($ = Mt(t && t[i], e, i, s), d = n[++i]), $ && an(c.$elm$).insertBefore($, Oe(c.$elm$));
|
2290
2290
|
}
|
2291
|
-
r > l ?
|
2292
|
-
},
|
2291
|
+
r > l ? rn(s, n[h + 1] == null ? null : n[h + 1].$elm$, e, n, i, h) : i > h && on(t, r, l);
|
2292
|
+
}, xt = (s, t) => s.$tag$ === t.$tag$ ? s.$tag$ === "slot" ? s.$name$ === t.$name$ : s.$key$ === t.$key$ : !1, Oe = (s) => s && s["s-ol"] || s, an = (s) => (s["s-ol"] ? s["s-ol"] : s).parentNode, X = (s, t) => {
|
2293
2293
|
const e = t.$elm$ = s.$elm$, n = s.$children$, r = t.$children$, i = t.$tag$, o = t.$text$;
|
2294
2294
|
let a;
|
2295
|
-
o === null ? (S = i === "svg" ? !0 : i === "foreignObject" ? !1 : S, i === "slot" ||
|
2296
|
-
},
|
2295
|
+
o === null ? (S = i === "svg" ? !0 : i === "foreignObject" ? !1 : S, i === "slot" || nn(s, t, S), n !== null && r !== null ? ci(e, n, t, r) : r !== null ? (s.$text$ !== null && (e.textContent = ""), rn(e, null, t, r, 0, r.length - 1)) : n !== null && on(n, 0, n.length - 1), S && i === "svg" && (S = !1)) : (a = e["s-cr"]) ? a.parentNode.textContent = o : s.$text$ !== o && (e.data = o);
|
2296
|
+
}, ln = (s) => {
|
2297
2297
|
let t = s.childNodes, e, n, r, i, o, a;
|
2298
2298
|
for (n = 0, r = t.length; n < r; n++)
|
2299
2299
|
if (e = t[n], e.nodeType === 1) {
|
@@ -2309,9 +2309,9 @@ const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, V
|
|
2309
2309
|
break;
|
2310
2310
|
}
|
2311
2311
|
}
|
2312
|
-
|
2312
|
+
ln(e);
|
2313
2313
|
}
|
2314
|
-
}, A = [],
|
2314
|
+
}, A = [], cn = (s) => {
|
2315
2315
|
let t, e, n, r, i, o, a = 0, l = s.childNodes, c = l.length;
|
2316
2316
|
for (; a < c; a++) {
|
2317
2317
|
if (t = l[a], t["s-sr"] && (e = t["s-cr"]) && e.parentNode)
|
@@ -2324,16 +2324,16 @@ const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, V
|
|
2324
2324
|
})) : A.some((u) => u.$nodeToRelocate$ === e) || A.push({
|
2325
2325
|
$nodeToRelocate$: e
|
2326
2326
|
}));
|
2327
|
-
t.nodeType === 1 &&
|
2327
|
+
t.nodeType === 1 && cn(t);
|
2328
2328
|
}
|
2329
|
-
}, cs = (s, t) => s.nodeType === 1 ? s.getAttribute("slot") === null && t === "" || s.getAttribute("slot") === t : s["s-sn"] === t ? !0 : t === "",
|
2330
|
-
s.$attrs$ && s.$attrs$.ref && s.$attrs$.ref(null), s.$children$ && s.$children$.map(
|
2331
|
-
},
|
2332
|
-
const e = s.$hostElement$, n = s.$cmpMeta$, r = s.$vnode$ || Lt(null, null), i =
|
2333
|
-
zt = e.tagName, n.$attrsToReflect$ && (i.$attrs$ = i.$attrs$ || {}, n.$attrsToReflect$.map(([o, a]) => i.$attrs$[a] = e[o])), i.$tag$ = null, i.$flags$ |= 4, s.$vnode$ = i, i.$elm$ = r.$elm$ = e.shadowRoot || e, G = e["s-sc"],
|
2329
|
+
}, cs = (s, t) => s.nodeType === 1 ? s.getAttribute("slot") === null && t === "" || s.getAttribute("slot") === t : s["s-sn"] === t ? !0 : t === "", un = (s) => {
|
2330
|
+
s.$attrs$ && s.$attrs$.ref && s.$attrs$.ref(null), s.$children$ && s.$children$.map(un);
|
2331
|
+
}, ui = (s, t) => {
|
2332
|
+
const e = s.$hostElement$, n = s.$cmpMeta$, r = s.$vnode$ || Lt(null, null), i = ii(t) ? t : V(null, null, t);
|
2333
|
+
zt = e.tagName, n.$attrsToReflect$ && (i.$attrs$ = i.$attrs$ || {}, n.$attrsToReflect$.map(([o, a]) => i.$attrs$[a] = e[o])), i.$tag$ = null, i.$flags$ |= 4, s.$vnode$ = i, i.$elm$ = r.$elm$ = e.shadowRoot || e, G = e["s-sc"], Qs = e["s-cr"], Vs = (n.$flags$ & 1) !== 0, Pt = !1, X(r, i);
|
2334
2334
|
{
|
2335
2335
|
if (w.$flags$ |= 1, Ce) {
|
2336
|
-
|
2336
|
+
cn(i.$elm$);
|
2337
2337
|
let o, a, l, c, u, h, d = 0;
|
2338
2338
|
for (; d < A.length; d++)
|
2339
2339
|
o = A[d], a = o.$nodeToRelocate$, a["s-ol"] || (l = k.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
|
@@ -2348,39 +2348,39 @@ const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, V
|
|
2348
2348
|
} else
|
2349
2349
|
a.nodeType === 1 && (a.hidden = !0);
|
2350
2350
|
}
|
2351
|
-
Pt &&
|
2351
|
+
Pt && ln(i.$elm$), w.$flags$ &= -2, A.length = 0;
|
2352
2352
|
}
|
2353
|
-
},
|
2354
|
-
const n =
|
2353
|
+
}, hi = (s) => s, di = (s, t, e) => {
|
2354
|
+
const n = hi(s);
|
2355
2355
|
return {
|
2356
|
-
emit: (r) =>
|
2356
|
+
emit: (r) => pi(n, t, {
|
2357
2357
|
bubbles: !!(e & 4),
|
2358
2358
|
composed: !!(e & 2),
|
2359
2359
|
cancelable: !!(e & 1),
|
2360
2360
|
detail: r
|
2361
2361
|
})
|
2362
2362
|
};
|
2363
|
-
},
|
2363
|
+
}, pi = (s, t, e) => {
|
2364
2364
|
const n = w.ce(t, e);
|
2365
2365
|
return s.dispatchEvent(n), n;
|
2366
|
-
},
|
2367
|
-
},
|
2366
|
+
}, fi = (s, t) => {
|
2367
|
+
}, hn = (s, t) => (s.$flags$ |= 16, fi(s, s.$ancestorComponent$), Li(() => vi(s, t))), vi = (s, t) => {
|
2368
2368
|
const e = s.$hostElement$, n = Y("scheduleUpdate", s.$cmpMeta$.$tagName$), r = e;
|
2369
2369
|
let i;
|
2370
|
-
return t ? i = tt(r, "componentWillLoad") : i = tt(r, "componentWillUpdate"), i = us(i, () => tt(r, "componentWillRender")), n(), us(i, () =>
|
2371
|
-
},
|
2370
|
+
return t ? i = tt(r, "componentWillLoad") : i = tt(r, "componentWillUpdate"), i = us(i, () => tt(r, "componentWillRender")), n(), us(i, () => gi(s, r, t));
|
2371
|
+
}, gi = async (s, t, e) => {
|
2372
2372
|
const n = s.$hostElement$, r = Y("update", s.$cmpMeta$.$tagName$);
|
2373
|
-
n["s-rc"], e &&
|
2373
|
+
n["s-rc"], e && ti(s);
|
2374
2374
|
const i = Y("render", s.$cmpMeta$.$tagName$);
|
2375
|
-
|
2376
|
-
},
|
2375
|
+
mi(s, t, n), i(), r(), $i(s);
|
2376
|
+
}, mi = (s, t, e) => {
|
2377
2377
|
try {
|
2378
|
-
ss = t, t = t.render && t.render(), s.$flags$ &= -17, s.$flags$ |= 2, (K.hasRenderFn || K.reflect) && (K.vdomRender || K.reflect) && (K.hydrateServerSide ||
|
2378
|
+
ss = t, t = t.render && t.render(), s.$flags$ &= -17, s.$flags$ |= 2, (K.hasRenderFn || K.reflect) && (K.vdomRender || K.reflect) && (K.hydrateServerSide || ui(s, t));
|
2379
2379
|
} catch (a) {
|
2380
2380
|
$t(a, s.$hostElement$);
|
2381
2381
|
}
|
2382
2382
|
return ss = null, null;
|
2383
|
-
},
|
2383
|
+
}, $i = (s) => {
|
2384
2384
|
const t = s.$cmpMeta$.$tagName$, e = s.$hostElement$, n = Y("postUpdate", t), r = e;
|
2385
2385
|
s.$ancestorComponent$, tt(r, "componentDidRender"), s.$flags$ & 64 ? (tt(r, "componentDidUpdate"), n()) : (s.$flags$ |= 64, tt(r, "componentDidLoad"), n());
|
2386
2386
|
}, tt = (s, t, e) => {
|
@@ -2390,9 +2390,9 @@ const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, V
|
|
2390
2390
|
} catch (n) {
|
2391
2391
|
$t(n);
|
2392
2392
|
}
|
2393
|
-
}, us = (s, t) => s && s.then ? s.then(t) : t(),
|
2393
|
+
}, us = (s, t) => s && s.then ? s.then(t) : t(), yi = (s, t) => s != null && !Ae(s) ? t & 4 ? s === "false" ? !1 : s === "" || !!s : t & 2 ? parseFloat(s) : t & 1 ? String(s) : s : s, bi = (s, t) => Wt(s).$instanceValues$.get(t), wi = (s, t, e, n) => {
|
2394
2394
|
const r = Wt(s), i = s, o = r.$instanceValues$.get(t), a = r.$flags$, l = i;
|
2395
|
-
e =
|
2395
|
+
e = yi(e, n.$members$[t][0]);
|
2396
2396
|
const c = Number.isNaN(o) && Number.isNaN(e);
|
2397
2397
|
if (e !== o && !c) {
|
2398
2398
|
r.$instanceValues$.set(t, e);
|
@@ -2410,21 +2410,21 @@ const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, V
|
|
2410
2410
|
if ((a & 18) === 2) {
|
2411
2411
|
if (l.componentShouldUpdate && l.componentShouldUpdate(e, o, t) === !1)
|
2412
2412
|
return;
|
2413
|
-
|
2413
|
+
hn(r, !1);
|
2414
2414
|
}
|
2415
2415
|
}
|
2416
2416
|
}
|
2417
|
-
},
|
2417
|
+
}, xi = (s, t, e) => {
|
2418
2418
|
if (t.$members$) {
|
2419
2419
|
s.watchers && (t.$watchers$ = s.watchers);
|
2420
2420
|
const n = Object.entries(t.$members$), r = s.prototype;
|
2421
2421
|
n.map(([i, [o]]) => {
|
2422
2422
|
(o & 31 || o & 32) && Object.defineProperty(r, i, {
|
2423
2423
|
get() {
|
2424
|
-
return
|
2424
|
+
return bi(this, i);
|
2425
2425
|
},
|
2426
2426
|
set(a) {
|
2427
|
-
|
2427
|
+
wi(this, i, a, t);
|
2428
2428
|
},
|
2429
2429
|
configurable: !0,
|
2430
2430
|
enumerable: !0
|
@@ -2454,34 +2454,34 @@ const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, V
|
|
2454
2454
|
}, _i = async (s, t, e, n, r) => {
|
2455
2455
|
if (!(t.$flags$ & 32) && (r = s.constructor, t.$flags$ |= 32, customElements.whenDefined(e.$tagName$).then(() => t.$flags$ |= 128), r.style)) {
|
2456
2456
|
let o = r.style;
|
2457
|
-
typeof o != "string" && (o = o[t.$modeName$ =
|
2458
|
-
const a =
|
2457
|
+
typeof o != "string" && (o = o[t.$modeName$ = ei(s)]);
|
2458
|
+
const a = sn(e, t.$modeName$);
|
2459
2459
|
if (!It.has(a)) {
|
2460
2460
|
const l = Y("registerStyles", e.$tagName$);
|
2461
|
-
|
2461
|
+
Qr(a, o, !!(e.$flags$ & 1)), l();
|
2462
2462
|
}
|
2463
2463
|
}
|
2464
|
-
t.$ancestorComponent$, (() =>
|
2465
|
-
}, xi = (s) => {
|
2464
|
+
t.$ancestorComponent$, (() => hn(t, !0))();
|
2466
2465
|
}, Si = (s) => {
|
2466
|
+
}, Ci = (s) => {
|
2467
2467
|
if (!(w.$flags$ & 1)) {
|
2468
2468
|
const t = Wt(s), e = t.$cmpMeta$, n = Y("connectedCallback", e.$tagName$);
|
2469
|
-
t.$flags$ & 1 ? (
|
2469
|
+
t.$flags$ & 1 ? (en(s, t, e.$listeners$), Si(t.$lazyInstance$)) : (t.$flags$ |= 1, e.$flags$ & 12 && Ai(s), e.$members$ && Object.entries(e.$members$).map(([r, [i]]) => {
|
2470
2470
|
if (i & 31 && s.hasOwnProperty(r)) {
|
2471
2471
|
const o = s[r];
|
2472
2472
|
delete s[r], s[r] = o;
|
2473
2473
|
}
|
2474
2474
|
}), _i(s, t, e)), n();
|
2475
2475
|
}
|
2476
|
-
},
|
2476
|
+
}, Ai = (s) => {
|
2477
2477
|
const t = s["s-cr"] = k.createComment("");
|
2478
2478
|
t["s-cn"] = !0, s.insertBefore(t, s.firstChild);
|
2479
|
-
},
|
2479
|
+
}, Ei = (s) => {
|
2480
2480
|
if (!(w.$flags$ & 1)) {
|
2481
2481
|
const t = Wt(s);
|
2482
2482
|
t.$rmListeners$ && (t.$rmListeners$.map((e) => e()), t.$rmListeners$ = void 0);
|
2483
2483
|
}
|
2484
|
-
},
|
2484
|
+
}, dn = (s, t) => {
|
2485
2485
|
const e = {
|
2486
2486
|
$flags$: t[0],
|
2487
2487
|
$tagName$: t[1]
|
@@ -2490,13 +2490,13 @@ const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, V
|
|
2490
2490
|
const n = s.prototype.connectedCallback, r = s.prototype.disconnectedCallback;
|
2491
2491
|
return Object.assign(s.prototype, {
|
2492
2492
|
__registerHost() {
|
2493
|
-
|
2493
|
+
Oi(this, e);
|
2494
2494
|
},
|
2495
2495
|
connectedCallback() {
|
2496
|
-
|
2496
|
+
Ci(this), n && n.call(this);
|
2497
2497
|
},
|
2498
2498
|
disconnectedCallback() {
|
2499
|
-
|
2499
|
+
Ei(this), r && r.call(this);
|
2500
2500
|
},
|
2501
2501
|
__attachShadow() {
|
2502
2502
|
this.attachShadow({
|
@@ -2504,17 +2504,17 @@ const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, V
|
|
2504
2504
|
delegatesFocus: !!(e.$flags$ & 16)
|
2505
2505
|
});
|
2506
2506
|
}
|
2507
|
-
}), s.is = e.$tagName$,
|
2508
|
-
},
|
2507
|
+
}), s.is = e.$tagName$, xi(s, e);
|
2508
|
+
}, pn = /* @__PURE__ */ new WeakMap(), Wt = (s) => pn.get(s), Oi = (s, t) => {
|
2509
2509
|
const e = {
|
2510
2510
|
$flags$: 0,
|
2511
2511
|
$hostElement$: s,
|
2512
2512
|
$cmpMeta$: t,
|
2513
2513
|
$instanceValues$: /* @__PURE__ */ new Map()
|
2514
2514
|
};
|
2515
|
-
return
|
2516
|
-
}, hs = (s, t) => t in s, $t = (s, t) => (0, console.error)(s, t), It = /* @__PURE__ */ new Map(),
|
2517
|
-
s.push(e), he || (he = !0, t && w.$flags$ & 4 ?
|
2515
|
+
return en(s, e, t.$listeners$), pn.set(s, e);
|
2516
|
+
}, hs = (s, t) => t in s, $t = (s, t) => (0, console.error)(s, t), It = /* @__PURE__ */ new Map(), ki = [], ds = [], fn = [], Ti = (s, t) => (e) => {
|
2517
|
+
s.push(e), he || (he = !0, t && w.$flags$ & 4 ? Pi(de) : w.raf(de));
|
2518
2518
|
}, ps = (s) => {
|
2519
2519
|
for (let t = 0; t < s.length; t++)
|
2520
2520
|
try {
|
@@ -2524,8 +2524,8 @@ const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, V
|
|
2524
2524
|
}
|
2525
2525
|
s.length = 0;
|
2526
2526
|
}, de = () => {
|
2527
|
-
ps(ds), ps(
|
2528
|
-
},
|
2527
|
+
ps(ds), ps(fn), (he = ds.length > 0) && w.raf(de);
|
2528
|
+
}, Pi = (s) => qr().then(s), Li = /* @__PURE__ */ Ti(fn, !0), Mi = (s = {}) => {
|
2529
2529
|
const { content: t = "", title: e, attributes: n = [] } = s;
|
2530
2530
|
let r = "", i = [
|
2531
2531
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
@@ -2533,54 +2533,54 @@ const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, V
|
|
2533
2533
|
...n
|
2534
2534
|
];
|
2535
2535
|
return e && (r = `<title>${e}</title>`), `<svg ${i.map((a) => `${a.name}="${a.value}"`).join(" ")}>${r}${t}</svg>`;
|
2536
|
-
},
|
2537
|
-
function
|
2536
|
+
}, Ii = (s) => s.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
2537
|
+
function Ui(s) {
|
2538
2538
|
return `${s.getFullYear()}.${s.getMonth() + 1}`;
|
2539
2539
|
}
|
2540
|
-
class
|
2540
|
+
class Ri {
|
2541
2541
|
constructor(t) {
|
2542
|
-
this.voca_component = t, this.voca_added =
|
2542
|
+
this.voca_component = t, this.voca_added = Ui(/* @__PURE__ */ new Date());
|
2543
2543
|
}
|
2544
2544
|
}
|
2545
|
-
const
|
2545
|
+
const ji = "telia-vst{display:none}", Hi = /* @__PURE__ */ dn(class extends tn {
|
2546
2546
|
constructor() {
|
2547
|
-
super(), this.__registerHost(), this.vocaInternalUStats =
|
2547
|
+
super(), this.__registerHost(), this.vocaInternalUStats = di(this, "vocaInternalUStats", 7);
|
2548
2548
|
}
|
2549
2549
|
connectedCallback() {
|
2550
|
-
this.vocaInternalUStats.emit(new
|
2550
|
+
this.vocaInternalUStats.emit(new Ri(this.dataTrackingId));
|
2551
2551
|
}
|
2552
2552
|
render() {
|
2553
2553
|
return V(Ee, null);
|
2554
2554
|
}
|
2555
2555
|
static get style() {
|
2556
|
-
return
|
2556
|
+
return ji;
|
2557
2557
|
}
|
2558
2558
|
}, [0, "telia-vst", {
|
2559
2559
|
dataTrackingId: [1, "data-tracking-id"]
|
2560
2560
|
}]);
|
2561
|
-
function
|
2561
|
+
function vn() {
|
2562
2562
|
if (typeof customElements > "u")
|
2563
2563
|
return;
|
2564
2564
|
["telia-vst"].forEach((t) => {
|
2565
2565
|
switch (t) {
|
2566
2566
|
case "telia-vst":
|
2567
|
-
customElements.get(t) || customElements.define(t,
|
2567
|
+
customElements.get(t) || customElements.define(t, Hi);
|
2568
2568
|
break;
|
2569
2569
|
}
|
2570
2570
|
});
|
2571
2571
|
}
|
2572
|
-
|
2572
|
+
vn();
|
2573
2573
|
function pe() {
|
2574
2574
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
2575
2575
|
}
|
2576
|
-
function
|
2576
|
+
function Ni() {
|
2577
2577
|
if (typeof pe().vocadsIcons !== void 0)
|
2578
2578
|
return pe().vocadsIcons;
|
2579
2579
|
}
|
2580
|
-
function
|
2580
|
+
function Di() {
|
2581
2581
|
return pe().vocadsIconsRegistered;
|
2582
2582
|
}
|
2583
|
-
const
|
2583
|
+
const Bi = ".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))}", zi = /* @__PURE__ */ dn(class extends tn {
|
2584
2584
|
constructor() {
|
2585
2585
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
2586
2586
|
}
|
@@ -2592,8 +2592,8 @@ const Di = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2592
2592
|
getSvgString() {
|
2593
2593
|
if (this.svg)
|
2594
2594
|
return this.svg;
|
2595
|
-
if (
|
2596
|
-
const s =
|
2595
|
+
if (Di() && this.name) {
|
2596
|
+
const s = Ni();
|
2597
2597
|
return s[this.name] ? s[this.name].svg : "";
|
2598
2598
|
}
|
2599
2599
|
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"), "";
|
@@ -2604,15 +2604,15 @@ const Di = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2604
2604
|
...t,
|
2605
2605
|
{ name: "aria-hidden", value: "true" }
|
2606
2606
|
];
|
2607
|
-
const e =
|
2608
|
-
content:
|
2607
|
+
const e = Mi({
|
2608
|
+
content: Ii(s),
|
2609
2609
|
attributes: t,
|
2610
2610
|
title: this.allyTitle
|
2611
2611
|
});
|
2612
2612
|
return V(Ee, { class: `telia-icon telia-icon--${this.size}` }, V("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: e }), V("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
2613
2613
|
}
|
2614
2614
|
static get style() {
|
2615
|
-
return
|
2615
|
+
return Bi;
|
2616
2616
|
}
|
2617
2617
|
}, [0, "telia-icon", {
|
2618
2618
|
name: [1],
|
@@ -2621,27 +2621,27 @@ const Di = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2621
2621
|
allyTitle: [1, "ally-title"],
|
2622
2622
|
dataTestid: [1, "data-testid"]
|
2623
2623
|
}]);
|
2624
|
-
function
|
2624
|
+
function Fi() {
|
2625
2625
|
if (typeof customElements > "u")
|
2626
2626
|
return;
|
2627
2627
|
["telia-icon", "telia-vst"].forEach((t) => {
|
2628
2628
|
switch (t) {
|
2629
2629
|
case "telia-icon":
|
2630
|
-
customElements.get(t) || customElements.define(t,
|
2630
|
+
customElements.get(t) || customElements.define(t, zi);
|
2631
2631
|
break;
|
2632
2632
|
case "telia-vst":
|
2633
|
-
customElements.get(t) ||
|
2633
|
+
customElements.get(t) || vn();
|
2634
2634
|
break;
|
2635
2635
|
}
|
2636
2636
|
});
|
2637
2637
|
}
|
2638
|
-
|
2638
|
+
Fi();
|
2639
2639
|
/**
|
2640
2640
|
* @license
|
2641
2641
|
* Copyright 2017 Google LLC
|
2642
2642
|
* SPDX-License-Identifier: BSD-3-Clause
|
2643
2643
|
*/
|
2644
|
-
const
|
2644
|
+
const Wi = { attribute: !0, type: String, converter: kt, reflect: !1, hasChanged: Se }, Yi = (s = Wi, t, e) => {
|
2645
2645
|
const { kind: n, metadata: r } = e;
|
2646
2646
|
let i = globalThis.litPropertyMetadata.get(r);
|
2647
2647
|
if (i === void 0 && globalThis.litPropertyMetadata.set(r, i = /* @__PURE__ */ new Map()), i.set(e.name, s), n === "accessor") {
|
@@ -2663,7 +2663,7 @@ const Fi = { attribute: !0, type: String, converter: kt, reflect: !1, hasChanged
|
|
2663
2663
|
throw Error("Unsupported decorator location: " + n);
|
2664
2664
|
};
|
2665
2665
|
function y(s) {
|
2666
|
-
return (t, e) => typeof e == "object" ?
|
2666
|
+
return (t, e) => typeof e == "object" ? Yi(s, t, e) : ((n, r, i) => {
|
2667
2667
|
const o = r.hasOwnProperty(i);
|
2668
2668
|
return r.constructor.createProperty(i, o ? { ...n, wrapped: !0 } : n), o ? Object.getOwnPropertyDescriptor(r, i) : void 0;
|
2669
2669
|
})(s, t, e);
|
@@ -2681,7 +2681,7 @@ function O(s) {
|
|
2681
2681
|
* Copyright 2020 Google LLC
|
2682
2682
|
* SPDX-License-Identifier: BSD-3-Clause
|
2683
2683
|
*/
|
2684
|
-
const
|
2684
|
+
const Zi = (s) => s.strings === void 0;
|
2685
2685
|
/**
|
2686
2686
|
* @license
|
2687
2687
|
* Copyright 2017 Google LLC
|
@@ -2724,20 +2724,20 @@ const ct = (s, t) => {
|
|
2724
2724
|
break;
|
2725
2725
|
e = t._$AN, e.delete(s), s = t;
|
2726
2726
|
} while ((e == null ? void 0 : e.size) === 0);
|
2727
|
-
},
|
2727
|
+
}, gn = (s) => {
|
2728
2728
|
for (let t; t = s._$AM; s = t) {
|
2729
2729
|
let e = t._$AN;
|
2730
2730
|
if (e === void 0)
|
2731
2731
|
t._$AN = e = /* @__PURE__ */ new Set();
|
2732
2732
|
else if (e.has(s))
|
2733
2733
|
break;
|
2734
|
-
e.add(s),
|
2734
|
+
e.add(s), Gi(t);
|
2735
2735
|
}
|
2736
2736
|
};
|
2737
|
-
function
|
2738
|
-
this._$AN !== void 0 ? (Ut(this), this._$AM = s,
|
2737
|
+
function qi(s) {
|
2738
|
+
this._$AN !== void 0 ? (Ut(this), this._$AM = s, gn(this)) : this._$AM = s;
|
2739
2739
|
}
|
2740
|
-
function
|
2740
|
+
function Ki(s, t = !1, e = 0) {
|
2741
2741
|
const n = this._$AH, r = this._$AN;
|
2742
2742
|
if (r !== void 0 && r.size !== 0)
|
2743
2743
|
if (t)
|
@@ -2749,22 +2749,22 @@ function qi(s, t = !1, e = 0) {
|
|
2749
2749
|
else
|
2750
2750
|
ct(this, s);
|
2751
2751
|
}
|
2752
|
-
const
|
2753
|
-
s.type == Yt.CHILD && (s._$AP ?? (s._$AP =
|
2752
|
+
const Gi = (s) => {
|
2753
|
+
s.type == Yt.CHILD && (s._$AP ?? (s._$AP = Ki), s._$AQ ?? (s._$AQ = qi));
|
2754
2754
|
};
|
2755
|
-
let
|
2755
|
+
let mn = class extends ke {
|
2756
2756
|
constructor() {
|
2757
2757
|
super(...arguments), this._$AN = void 0;
|
2758
2758
|
}
|
2759
2759
|
_$AT(t, e, n) {
|
2760
|
-
super._$AT(t, e, n),
|
2760
|
+
super._$AT(t, e, n), gn(this), this.isConnected = t._$AU;
|
2761
2761
|
}
|
2762
2762
|
_$AO(t, e = !0) {
|
2763
2763
|
var n, r;
|
2764
2764
|
t !== this.isConnected && (this.isConnected = t, t ? (n = this.reconnected) == null || n.call(this) : (r = this.disconnected) == null || r.call(this)), e && (ct(this, t), Ut(this));
|
2765
2765
|
}
|
2766
2766
|
setValue(t) {
|
2767
|
-
if (
|
2767
|
+
if (Zi(this._$Ct))
|
2768
2768
|
this._$Ct._$AI(t, this);
|
2769
2769
|
else {
|
2770
2770
|
const e = [...this._$Ct._$AH];
|
@@ -2781,10 +2781,10 @@ let gn = class extends ke {
|
|
2781
2781
|
* Copyright 2020 Google LLC
|
2782
2782
|
* SPDX-License-Identifier: BSD-3-Clause
|
2783
2783
|
*/
|
2784
|
-
const Rt = () => new
|
2785
|
-
class
|
2784
|
+
const Rt = () => new Xi();
|
2785
|
+
class Xi {
|
2786
2786
|
}
|
2787
|
-
const ee = /* @__PURE__ */ new WeakMap(), jt = Zt(class extends
|
2787
|
+
const ee = /* @__PURE__ */ new WeakMap(), jt = Zt(class extends mn {
|
2788
2788
|
render(s) {
|
2789
2789
|
return f;
|
2790
2790
|
}
|
@@ -2844,10 +2844,10 @@ const ft = Zt(class extends ke {
|
|
2844
2844
|
return H;
|
2845
2845
|
}
|
2846
2846
|
});
|
2847
|
-
var
|
2848
|
-
for (var r = n > 1 ? void 0 : n ?
|
2847
|
+
var Ji = Object.defineProperty, Qi = Object.getOwnPropertyDescriptor, Vi = (s, t, e, n) => {
|
2848
|
+
for (var r = n > 1 ? void 0 : n ? Qi(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
2849
2849
|
(o = s[i]) && (r = (n ? o(t, e, r) : o(r)) || r);
|
2850
|
-
return n && r &&
|
2850
|
+
return n && r && Ji(t, e, r), r;
|
2851
2851
|
};
|
2852
2852
|
class Te extends b {
|
2853
2853
|
constructor() {
|
@@ -2880,12 +2880,12 @@ Te.styles = [
|
|
2880
2880
|
}
|
2881
2881
|
`
|
2882
2882
|
];
|
2883
|
-
|
2883
|
+
Vi([
|
2884
2884
|
y({ attribute: !0 })
|
2885
2885
|
], Te.prototype, "anchor", 2);
|
2886
|
-
const
|
2886
|
+
const to = /* @__PURE__ */ new WeakMap();
|
2887
2887
|
let fs = 0;
|
2888
|
-
const se = /* @__PURE__ */ new Map(), vs = /* @__PURE__ */ new WeakSet(), gs = () => new Promise((s) => requestAnimationFrame(s)),
|
2888
|
+
const se = /* @__PURE__ */ new Map(), vs = /* @__PURE__ */ new WeakSet(), gs = () => new Promise((s) => requestAnimationFrame(s)), eo = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], so = [{ opacity: 0 }], ms = [{ opacity: 0 }, { opacity: 1 }], $s = (s, t) => {
|
2889
2889
|
const e = s - t;
|
2890
2890
|
return e === 0 ? void 0 : e;
|
2891
2891
|
}, ys = (s, t) => {
|
@@ -2907,8 +2907,8 @@ const se = /* @__PURE__ */ new Map(), vs = /* @__PURE__ */ new WeakSet(), gs = (
|
|
2907
2907
|
t === 0 && (t = 1, e = { height: "1px" });
|
2908
2908
|
const n = ys(s, t);
|
2909
2909
|
return { value: n, overrideFrom: e, transform: n == null || isNaN(n) ? void 0 : `scaleY(${n})` };
|
2910
|
-
} },
|
2911
|
-
class
|
2910
|
+
} }, no = { duration: 333, easing: "ease-in-out" }, ro = ["left", "top", "width", "height", "opacity", "color", "background"], bs = /* @__PURE__ */ new WeakMap();
|
2911
|
+
class io extends mn {
|
2912
2912
|
constructor(t) {
|
2913
2913
|
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === Yt.CHILD)
|
2914
2914
|
throw Error("The `animate` directive must be used in attribute position.");
|
@@ -2928,7 +2928,7 @@ class ro extends gn {
|
|
2928
2928
|
return f;
|
2929
2929
|
}
|
2930
2930
|
getController() {
|
2931
|
-
return
|
2931
|
+
return to.get(this.u);
|
2932
2932
|
}
|
2933
2933
|
isDisabled() {
|
2934
2934
|
var t;
|
@@ -2942,7 +2942,7 @@ class ro extends gn {
|
|
2942
2942
|
p(t) {
|
2943
2943
|
t = t ?? {};
|
2944
2944
|
const e = this.getController();
|
2945
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
2945
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = ro), this.options = t;
|
2946
2946
|
}
|
2947
2947
|
m() {
|
2948
2948
|
const t = {}, e = this.element.getBoundingClientRect(), n = getComputedStyle(this.element);
|
@@ -3036,7 +3036,7 @@ class ro extends gn {
|
|
3036
3036
|
}), t;
|
3037
3037
|
}
|
3038
3038
|
j(t, e = this.O()) {
|
3039
|
-
const n = { ...
|
3039
|
+
const n = { ...no };
|
3040
3040
|
return e.forEach((r) => Object.assign(n, r.options.keyframeOptions)), Object.assign(n, t), n;
|
3041
3041
|
}
|
3042
3042
|
N(t, e, n) {
|
@@ -3087,28 +3087,28 @@ class ro extends gn {
|
|
3087
3087
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
3088
3088
|
}
|
3089
3089
|
}
|
3090
|
-
const fe = Zt(
|
3090
|
+
const fe = Zt(io), _t = (s, t, e) => {
|
3091
3091
|
s && e.style.setProperty(t, s);
|
3092
|
-
},
|
3092
|
+
}, $n = (s, t) => {
|
3093
3093
|
var e, n, r, i;
|
3094
|
-
|
3094
|
+
_t((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), _t(
|
3095
3095
|
(n = s.colors) == null ? void 0 : n.textOnPrimaryBackground,
|
3096
3096
|
"--text-on-primary-background",
|
3097
3097
|
t
|
3098
|
-
),
|
3098
|
+
), _t(
|
3099
3099
|
(r = s.colors) == null ? void 0 : r.secondaryBackground,
|
3100
3100
|
"--secondary-background",
|
3101
3101
|
t
|
3102
|
-
),
|
3102
|
+
), _t(
|
3103
3103
|
(i = s.colors) == null ? void 0 : i.textOnSecondaryBackground,
|
3104
3104
|
"--text-on-secondary-background",
|
3105
3105
|
t
|
3106
3106
|
);
|
3107
3107
|
};
|
3108
|
-
var
|
3109
|
-
for (var r = n > 1 ? void 0 : n ?
|
3108
|
+
var oo = Object.defineProperty, ao = Object.getOwnPropertyDescriptor, qt = (s, t, e, n) => {
|
3109
|
+
for (var r = n > 1 ? void 0 : n ? ao(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
3110
3110
|
(o = s[i]) && (r = (n ? o(t, e, r) : o(r)) || r);
|
3111
|
-
return n && r &&
|
3111
|
+
return n && r && oo(t, e, r), r;
|
3112
3112
|
};
|
3113
3113
|
class Z extends b {
|
3114
3114
|
constructor() {
|
@@ -3129,7 +3129,7 @@ class Z extends b {
|
|
3129
3129
|
}
|
3130
3130
|
_applyBranding() {
|
3131
3131
|
var t;
|
3132
|
-
(t = this.application) != null && t.settings &&
|
3132
|
+
(t = this.application) != null && t.settings && $n(this.application.settings.branding, this);
|
3133
3133
|
}
|
3134
3134
|
async _renderSymbol() {
|
3135
3135
|
var a, l, c;
|
@@ -3139,7 +3139,7 @@ class Z extends b {
|
|
3139
3139
|
const n = (c = this.application) == null ? void 0 : c.triggerIcon;
|
3140
3140
|
if (!n)
|
3141
3141
|
return f;
|
3142
|
-
const r = async (u) =>
|
3142
|
+
const r = async (u) => Wr, { type: i, content: o } = n;
|
3143
3143
|
switch (i) {
|
3144
3144
|
case "Telia": {
|
3145
3145
|
const u = await r();
|
@@ -3163,7 +3163,7 @@ class Z extends b {
|
|
3163
3163
|
@click=${this.toggleActive}
|
3164
3164
|
${fe({
|
3165
3165
|
keyframeOptions: {},
|
3166
|
-
in:
|
3166
|
+
in: eo,
|
3167
3167
|
stabilizeOut: !0,
|
3168
3168
|
skipInitial: !1
|
3169
3169
|
})}
|
@@ -3332,12 +3332,12 @@ qt([
|
|
3332
3332
|
qt([
|
3333
3333
|
O()
|
3334
3334
|
], Z.prototype, "icon", 2);
|
3335
|
-
var
|
3336
|
-
for (var r = n > 1 ? void 0 : n ?
|
3335
|
+
var lo = Object.defineProperty, co = Object.getOwnPropertyDescriptor, B = (s, t, e, n) => {
|
3336
|
+
for (var r = n > 1 ? void 0 : n ? co(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
3337
3337
|
(o = s[i]) && (r = (n ? o(t, e, r) : o(r)) || r);
|
3338
|
-
return n && r &&
|
3338
|
+
return n && r && lo(t, e, r), r;
|
3339
3339
|
};
|
3340
|
-
const
|
3340
|
+
const yn = (s) => {
|
3341
3341
|
class t extends s {
|
3342
3342
|
constructor() {
|
3343
3343
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
@@ -3392,12 +3392,12 @@ const $n = (s) => {
|
|
3392
3392
|
y({ attribute: !1 })
|
3393
3393
|
], t.prototype, "parent", 2), t;
|
3394
3394
|
};
|
3395
|
-
class
|
3395
|
+
class bn extends yn(b) {
|
3396
3396
|
render() {
|
3397
3397
|
return v`Non resolved component`;
|
3398
3398
|
}
|
3399
3399
|
}
|
3400
|
-
|
3400
|
+
bn.styles = [
|
3401
3401
|
C`
|
3402
3402
|
:host {
|
3403
3403
|
display: block;
|
@@ -3409,18 +3409,146 @@ yn.styles = [
|
|
3409
3409
|
* Copyright 2021 Google LLC
|
3410
3410
|
* SPDX-License-Identifier: BSD-3-Clause
|
3411
3411
|
*/
|
3412
|
-
function*
|
3412
|
+
function* uo(s, t) {
|
3413
3413
|
if (s !== void 0) {
|
3414
3414
|
let e = 0;
|
3415
3415
|
for (const n of s)
|
3416
3416
|
yield t(n, e++);
|
3417
3417
|
}
|
3418
3418
|
}
|
3419
|
-
var Pe = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(Pe || {})
|
3420
|
-
|
3419
|
+
var Pe = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(Pe || {});
|
3420
|
+
/**
|
3421
|
+
* @license
|
3422
|
+
* Copyright 2021 Google LLC
|
3423
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
3424
|
+
*/
|
3425
|
+
let ho = class extends Event {
|
3426
|
+
constructor(t, e, n) {
|
3427
|
+
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = n ?? !1;
|
3428
|
+
}
|
3429
|
+
};
|
3430
|
+
/**
|
3431
|
+
* @license
|
3432
|
+
* Copyright 2021 Google LLC
|
3433
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
3434
|
+
*/
|
3435
|
+
/**
|
3436
|
+
* @license
|
3437
|
+
* Copyright 2021 Google LLC
|
3438
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
3439
|
+
*/
|
3440
|
+
class po {
|
3441
|
+
get value() {
|
3442
|
+
return this.o;
|
3443
|
+
}
|
3444
|
+
set value(t) {
|
3445
|
+
this.setValue(t);
|
3446
|
+
}
|
3447
|
+
setValue(t, e = !1) {
|
3448
|
+
const n = e || !Object.is(t, this.o);
|
3449
|
+
this.o = t, n && this.updateObservers();
|
3450
|
+
}
|
3451
|
+
constructor(t) {
|
3452
|
+
this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {
|
3453
|
+
for (const [e, { disposer: n }] of this.subscriptions)
|
3454
|
+
e(this.o, n);
|
3455
|
+
}, t !== void 0 && (this.value = t);
|
3456
|
+
}
|
3457
|
+
addCallback(t, e, n) {
|
3458
|
+
if (!n)
|
3459
|
+
return void t(this.value);
|
3460
|
+
this.subscriptions.has(t) || this.subscriptions.set(t, { disposer: () => {
|
3461
|
+
this.subscriptions.delete(t);
|
3462
|
+
}, consumerHost: e });
|
3463
|
+
const { disposer: r } = this.subscriptions.get(t);
|
3464
|
+
t(this.value, r);
|
3465
|
+
}
|
3466
|
+
clearCallbacks() {
|
3467
|
+
this.subscriptions.clear();
|
3468
|
+
}
|
3469
|
+
}
|
3470
|
+
/**
|
3471
|
+
* @license
|
3472
|
+
* Copyright 2021 Google LLC
|
3473
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
3474
|
+
*/
|
3475
|
+
let fo = class extends Event {
|
3476
|
+
constructor(t) {
|
3477
|
+
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
|
3478
|
+
}
|
3479
|
+
};
|
3480
|
+
class ws extends po {
|
3481
|
+
constructor(t, e, n) {
|
3482
|
+
var r, i;
|
3483
|
+
super(e.context !== void 0 ? e.initialValue : n), this.onContextRequest = (o) => {
|
3484
|
+
const a = o.composedPath()[0];
|
3485
|
+
o.context === this.context && a !== this.host && (o.stopPropagation(), this.addCallback(o.callback, a, o.subscribe));
|
3486
|
+
}, this.onProviderRequest = (o) => {
|
3487
|
+
const a = o.composedPath()[0];
|
3488
|
+
if (o.context !== this.context || a === this.host)
|
3489
|
+
return;
|
3490
|
+
const l = /* @__PURE__ */ new Set();
|
3491
|
+
for (const [c, { consumerHost: u }] of this.subscriptions)
|
3492
|
+
l.has(c) || (l.add(c), u.dispatchEvent(new ho(this.context, c, !0)));
|
3493
|
+
o.stopPropagation();
|
3494
|
+
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (i = (r = this.host).addController) == null || i.call(r, this);
|
3495
|
+
}
|
3496
|
+
attachListeners() {
|
3497
|
+
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
3498
|
+
}
|
3499
|
+
hostConnected() {
|
3500
|
+
this.host.dispatchEvent(new fo(this.context));
|
3501
|
+
}
|
3502
|
+
}
|
3503
|
+
/**
|
3504
|
+
* @license
|
3505
|
+
* Copyright 2017 Google LLC
|
3506
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
3507
|
+
*/
|
3508
|
+
function vo({ context: s }) {
|
3509
|
+
return (t, e) => {
|
3510
|
+
const n = /* @__PURE__ */ new WeakMap();
|
3511
|
+
if (typeof e == "object")
|
3512
|
+
return e.addInitializer(function() {
|
3513
|
+
n.set(this, new ws(this, { context: s }));
|
3514
|
+
}), { get() {
|
3515
|
+
return t.get.call(this);
|
3516
|
+
}, set(r) {
|
3517
|
+
var i;
|
3518
|
+
return (i = n.get(this)) == null || i.setValue(r), t.set.call(this, r);
|
3519
|
+
}, init(r) {
|
3520
|
+
var i;
|
3521
|
+
return (i = n.get(this)) == null || i.setValue(r), r;
|
3522
|
+
} };
|
3523
|
+
{
|
3524
|
+
t.constructor.addInitializer((o) => {
|
3525
|
+
n.set(o, new ws(o, { context: s }));
|
3526
|
+
});
|
3527
|
+
const r = Object.getOwnPropertyDescriptor(t, e);
|
3528
|
+
let i;
|
3529
|
+
if (r === void 0) {
|
3530
|
+
const o = /* @__PURE__ */ new WeakMap();
|
3531
|
+
i = { get: function() {
|
3532
|
+
return o.get(this);
|
3533
|
+
}, set: function(a) {
|
3534
|
+
n.get(this).setValue(a), o.set(this, a);
|
3535
|
+
}, configurable: !0, enumerable: !0 };
|
3536
|
+
} else {
|
3537
|
+
const o = r.set;
|
3538
|
+
i = { ...r, set: function(a) {
|
3539
|
+
n.get(this).setValue(a), o == null || o.call(this, a);
|
3540
|
+
} };
|
3541
|
+
}
|
3542
|
+
return void Object.defineProperty(t, e, i);
|
3543
|
+
}
|
3544
|
+
};
|
3545
|
+
}
|
3546
|
+
var go = Object.defineProperty, mo = Object.getOwnPropertyDescriptor, $o = (s, t, e, n) => {
|
3547
|
+
for (var r = n > 1 ? void 0 : n ? mo(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
3421
3548
|
(o = s[i]) && (r = (n ? o(t, e, r) : o(r)) || r);
|
3422
|
-
return n && r &&
|
3549
|
+
return n && r && go(t, e, r), r;
|
3423
3550
|
};
|
3551
|
+
const yo = "application";
|
3424
3552
|
class Le extends b {
|
3425
3553
|
constructor() {
|
3426
3554
|
super(...arguments), this.nodes = [], this.wrapperRef = Rt();
|
@@ -3432,7 +3560,7 @@ class Le extends b {
|
|
3432
3560
|
if (!this.wrapperRef.value)
|
3433
3561
|
return;
|
3434
3562
|
const t = this.application.settings;
|
3435
|
-
t != null && t.branding &&
|
3563
|
+
t != null && t.branding && $n(t.branding, this.wrapperRef.value);
|
3436
3564
|
}
|
3437
3565
|
applyStyles() {
|
3438
3566
|
if (!this.wrapperRef.value)
|
@@ -3447,7 +3575,7 @@ class Le extends b {
|
|
3447
3575
|
}
|
3448
3576
|
render() {
|
3449
3577
|
return this.application.renderStrategy === Pe.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")), v`<div class="widget-container" ${jt(this.wrapperRef)}>
|
3450
|
-
${
|
3578
|
+
${uo(this.nodes, (t) => t)}
|
3451
3579
|
</div>`;
|
3452
3580
|
}
|
3453
3581
|
}
|
@@ -3467,7 +3595,6 @@ Le.styles = C`
|
|
3467
3595
|
--gray-color: #f3f3f8;
|
3468
3596
|
--white-color: #fff;
|
3469
3597
|
--gray-dark-color: #a6a6a6;
|
3470
|
-
--destructive-color: #e4175c;
|
3471
3598
|
|
3472
3599
|
--box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
|
3473
3600
|
--border-radius: var(--spacing-sm);
|
@@ -3557,13 +3684,14 @@ Le.styles = C`
|
|
3557
3684
|
animation: slideDown 0.3s linear;
|
3558
3685
|
}
|
3559
3686
|
`;
|
3560
|
-
|
3561
|
-
y({ attribute: !1 })
|
3687
|
+
$o([
|
3688
|
+
y({ attribute: !1 }),
|
3689
|
+
vo({ context: yo })
|
3562
3690
|
], Le.prototype, "application", 2);
|
3563
|
-
var
|
3564
|
-
for (var r = n > 1 ? void 0 : n ?
|
3691
|
+
var bo = Object.defineProperty, wo = Object.getOwnPropertyDescriptor, Me = (s, t, e, n) => {
|
3692
|
+
for (var r = n > 1 ? void 0 : n ? wo(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
3565
3693
|
(o = s[i]) && (r = (n ? o(t, e, r) : o(r)) || r);
|
3566
|
-
return n && r &&
|
3694
|
+
return n && r && bo(t, e, r), r;
|
3567
3695
|
};
|
3568
3696
|
class yt extends b {
|
3569
3697
|
constructor() {
|
@@ -3615,10 +3743,10 @@ Me([
|
|
3615
3743
|
], yt.prototype, "status", 2);
|
3616
3744
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", Te);
|
3617
3745
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", Z);
|
3618
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
3746
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", bn);
|
3619
3747
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Le);
|
3620
3748
|
customElements.get("ace-widget") || customElements.define("ace-widget", yt);
|
3621
|
-
class
|
3749
|
+
class xo {
|
3622
3750
|
constructor(t) {
|
3623
3751
|
this._message = null, this._host = t, t.addController(this);
|
3624
3752
|
}
|
@@ -3634,9 +3762,9 @@ class go {
|
|
3634
3762
|
return !!this.message;
|
3635
3763
|
}
|
3636
3764
|
}
|
3637
|
-
class
|
3765
|
+
class xs {
|
3638
3766
|
constructor(t, e, n, r, i) {
|
3639
|
-
this.id = t, this.providerKey = e, this.providerOptions = n, this.component = i, this.provider$ = new P(null), this.entries$ = new P([]), this.removeEntryAction$ = new
|
3767
|
+
this.id = t, this.providerKey = e, this.providerOptions = n, this.component = i, this.provider$ = new P(null), this.entries$ = new P([]), this.removeEntryAction$ = new x(), this.kill$ = new x(), this.isTyping$ = new P(!1), this.data$ = new P({}), this.complete$ = this.provider$.pipe(
|
3640
3768
|
Q((l) => l ? l.onComplete() : gt)
|
3641
3769
|
);
|
3642
3770
|
const o = this._getProviderFactory(e);
|
@@ -3690,7 +3818,7 @@ class ws {
|
|
3690
3818
|
return this.component.platform.registeredProviders.get(t);
|
3691
3819
|
}
|
3692
3820
|
}
|
3693
|
-
class
|
3821
|
+
class _o {
|
3694
3822
|
constructor(t) {
|
3695
3823
|
this.component = t, this.currentSession$ = new P(null), this.sessions = [], this.storage = null, Ot(t, "handover").subscribe((e) => {
|
3696
3824
|
const n = this._createNewSession(
|
@@ -3735,7 +3863,7 @@ class mo {
|
|
3735
3863
|
);
|
3736
3864
|
return t ? {
|
3737
3865
|
sessions: t.sessions.map(
|
3738
|
-
(e) => new
|
3866
|
+
(e) => new xs(
|
3739
3867
|
e.id,
|
3740
3868
|
e.providerKey,
|
3741
3869
|
e.providerOptions,
|
@@ -3772,8 +3900,8 @@ class mo {
|
|
3772
3900
|
this.storage.set("conversation", JSON.stringify(e));
|
3773
3901
|
}
|
3774
3902
|
_createNewSession(t, e = {}) {
|
3775
|
-
const n = this._getStoredSessions(), r = new
|
3776
|
-
|
3903
|
+
const n = this._getStoredSessions(), r = new xs(
|
3904
|
+
Ys(),
|
3777
3905
|
t,
|
3778
3906
|
e,
|
3779
3907
|
{},
|
@@ -3788,9 +3916,9 @@ class mo {
|
|
3788
3916
|
return this.component.properties.providers[0];
|
3789
3917
|
}
|
3790
3918
|
}
|
3791
|
-
class
|
3919
|
+
class So {
|
3792
3920
|
constructor(t, e) {
|
3793
|
-
this.state$ = t, this.component = e, this.entries$ = new P([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new
|
3921
|
+
this.state$ = t, this.component = e, this.entries$ = new P([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new _o(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
|
3794
3922
|
Q((n) => n ? n.provider$.pipe(
|
3795
3923
|
Q((r) => r ? r.isTyping() : le(!1))
|
3796
3924
|
) : le(!1))
|
@@ -3828,7 +3956,7 @@ class $o {
|
|
3828
3956
|
return [...i, ...o];
|
3829
3957
|
})
|
3830
3958
|
);
|
3831
|
-
return
|
3959
|
+
return mr(e, n);
|
3832
3960
|
})
|
3833
3961
|
).subscribe((t) => {
|
3834
3962
|
this.entries$.next(t);
|
@@ -3839,10 +3967,10 @@ class $o {
|
|
3839
3967
|
(t = this.sessionService) == null || t.startSession();
|
3840
3968
|
}
|
3841
3969
|
}
|
3842
|
-
var
|
3843
|
-
for (var r = n > 1 ? void 0 : n ?
|
3970
|
+
var Co = Object.defineProperty, Ao = Object.getOwnPropertyDescriptor, Eo = (s, t, e, n) => {
|
3971
|
+
for (var r = n > 1 ? void 0 : n ? Ao(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
3844
3972
|
(o = s[i]) && (r = (n ? o(t, e, r) : o(r)) || r);
|
3845
|
-
return n && r &&
|
3973
|
+
return n && r && Co(t, e, r), r;
|
3846
3974
|
};
|
3847
3975
|
class Ie extends b {
|
3848
3976
|
connectedCallback() {
|
@@ -3866,13 +3994,13 @@ class Ie extends b {
|
|
3866
3994
|
}
|
3867
3995
|
_renderDeliveryStatus(t) {
|
3868
3996
|
return t === "delivered" ? v`<telia-icon
|
3869
|
-
svg=${
|
3997
|
+
svg=${Br.svg}
|
3870
3998
|
size="sm"
|
3871
3999
|
></telia-icon>` : t === "failed" ? v`<telia-icon
|
3872
|
-
svg=${
|
4000
|
+
svg=${Dr.svg}
|
3873
4001
|
size="sm"
|
3874
4002
|
title="Message could not be delivered"
|
3875
|
-
></telia-icon>` : v`<telia-icon svg=${
|
4003
|
+
></telia-icon>` : v`<telia-icon svg=${zr.svg} size="sm"></telia-icon>`;
|
3876
4004
|
}
|
3877
4005
|
_dispatchEntryAction(t) {
|
3878
4006
|
this.entry.actions$.next(t.detail);
|
@@ -4076,13 +4204,13 @@ Ie.styles = [
|
|
4076
4204
|
}
|
4077
4205
|
`
|
4078
4206
|
];
|
4079
|
-
|
4207
|
+
Eo([
|
4080
4208
|
y({ attribute: !1 })
|
4081
4209
|
], Ie.prototype, "entry", 2);
|
4082
|
-
var
|
4083
|
-
for (var r = n > 1 ? void 0 : n ?
|
4210
|
+
var Oo = Object.defineProperty, ko = Object.getOwnPropertyDescriptor, wn = (s, t, e, n) => {
|
4211
|
+
for (var r = n > 1 ? void 0 : n ? ko(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
4084
4212
|
(o = s[i]) && (r = (n ? o(t, e, r) : o(r)) || r);
|
4085
|
-
return n && r &&
|
4213
|
+
return n && r && Oo(t, e, r), r;
|
4086
4214
|
};
|
4087
4215
|
class Kt extends b {
|
4088
4216
|
constructor() {
|
@@ -4112,7 +4240,7 @@ class Kt extends b {
|
|
4112
4240
|
${fe({
|
4113
4241
|
keyframeOptions: {},
|
4114
4242
|
in: ms,
|
4115
|
-
out:
|
4243
|
+
out: so,
|
4116
4244
|
stabilizeOut: !0,
|
4117
4245
|
skipInitial: !1
|
4118
4246
|
})}
|
@@ -4134,10 +4262,10 @@ Kt.styles = [
|
|
4134
4262
|
}
|
4135
4263
|
`
|
4136
4264
|
];
|
4137
|
-
|
4265
|
+
wn([
|
4138
4266
|
y({ attribute: !1 })
|
4139
4267
|
], Kt.prototype, "entries", 2);
|
4140
|
-
|
4268
|
+
wn([
|
4141
4269
|
y({ type: Boolean })
|
4142
4270
|
], Kt.prototype, "loading", 2);
|
4143
4271
|
/**
|
@@ -4145,16 +4273,16 @@ bn([
|
|
4145
4273
|
* Copyright 2021 Google LLC
|
4146
4274
|
* SPDX-License-Identifier: BSD-3-Clause
|
4147
4275
|
*/
|
4148
|
-
const
|
4276
|
+
const To = (s, t, e) => {
|
4149
4277
|
for (const n of t)
|
4150
4278
|
if (n[0] === s)
|
4151
4279
|
return (0, n[1])();
|
4152
4280
|
return e == null ? void 0 : e();
|
4153
4281
|
};
|
4154
|
-
var
|
4155
|
-
for (var r = n > 1 ? void 0 : n ?
|
4282
|
+
var Po = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, Mo = (s, t, e, n) => {
|
4283
|
+
for (var r = n > 1 ? void 0 : n ? Lo(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
4156
4284
|
(o = s[i]) && (r = (n ? o(t, e, r) : o(r)) || r);
|
4157
|
-
return n && r &&
|
4285
|
+
return n && r && Po(t, e, r), r;
|
4158
4286
|
};
|
4159
4287
|
class Ue extends b {
|
4160
4288
|
render() {
|
@@ -4162,7 +4290,7 @@ class Ue extends b {
|
|
4162
4290
|
<div class="message-group">
|
4163
4291
|
${this.group.items.map(
|
4164
4292
|
([t, e]) => v`
|
4165
|
-
${
|
4293
|
+
${To(
|
4166
4294
|
t,
|
4167
4295
|
[["html", () => v`<message-type-html .message=${e} />`]],
|
4168
4296
|
() => {
|
@@ -4195,10 +4323,10 @@ Ue.styles = [
|
|
4195
4323
|
}
|
4196
4324
|
`
|
4197
4325
|
];
|
4198
|
-
|
4326
|
+
Mo([
|
4199
4327
|
y({ attribute: !1 })
|
4200
4328
|
], Ue.prototype, "group", 2);
|
4201
|
-
class
|
4329
|
+
class xn extends b {
|
4202
4330
|
render() {
|
4203
4331
|
return v`<div class="container">
|
4204
4332
|
<div class="dot"></div>
|
@@ -4207,7 +4335,7 @@ class wn extends b {
|
|
4207
4335
|
</div>`;
|
4208
4336
|
}
|
4209
4337
|
}
|
4210
|
-
|
4338
|
+
xn.styles = [
|
4211
4339
|
C`
|
4212
4340
|
:host {
|
4213
4341
|
display: block;
|
@@ -4269,16 +4397,16 @@ class ve extends ke {
|
|
4269
4397
|
}
|
4270
4398
|
}
|
4271
4399
|
ve.directiveName = "unsafeHTML", ve.resultType = 1;
|
4272
|
-
const
|
4273
|
-
var
|
4274
|
-
for (var r = n > 1 ? void 0 : n ?
|
4400
|
+
const Io = Zt(ve);
|
4401
|
+
var Uo = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, jo = (s, t, e, n) => {
|
4402
|
+
for (var r = n > 1 ? void 0 : n ? Ro(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
4275
4403
|
(o = s[i]) && (r = (n ? o(t, e, r) : o(r)) || r);
|
4276
|
-
return n && r &&
|
4404
|
+
return n && r && Uo(t, e, r), r;
|
4277
4405
|
};
|
4278
4406
|
class Re extends b {
|
4279
4407
|
render() {
|
4280
4408
|
return v`<div class="message-type-html">
|
4281
|
-
${
|
4409
|
+
${Io(this.message.content)}
|
4282
4410
|
</div>`;
|
4283
4411
|
}
|
4284
4412
|
}
|
@@ -4300,26 +4428,26 @@ Re.styles = [
|
|
4300
4428
|
}
|
4301
4429
|
`
|
4302
4430
|
];
|
4303
|
-
|
4431
|
+
jo([
|
4304
4432
|
y({ attribute: !1 })
|
4305
4433
|
], Re.prototype, "message", 2);
|
4306
|
-
var
|
4307
|
-
for (var r = n > 1 ? void 0 : n ?
|
4434
|
+
var Ho = Object.defineProperty, No = Object.getOwnPropertyDescriptor, rt = (s, t, e, n) => {
|
4435
|
+
for (var r = n > 1 ? void 0 : n ? No(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
4308
4436
|
(o = s[i]) && (r = (n ? o(t, e, r) : o(r)) || r);
|
4309
|
-
return n && r &&
|
4437
|
+
return n && r && Ho(t, e, r), r;
|
4310
4438
|
};
|
4311
|
-
const
|
4439
|
+
const Do = (s) => {
|
4312
4440
|
s.scrollTo ? s.scrollTo({ top: s.scrollHeight, behavior: "smooth" }) : s.scrollTop = s.scrollHeight;
|
4313
4441
|
};
|
4314
4442
|
customElements.get("conversation-entry") || customElements.define("conversation-entry", Ie);
|
4315
4443
|
customElements.get("ace-conversation-feed") || customElements.define("ace-conversation-feed", Kt);
|
4316
4444
|
customElements.get("conversation-group") || customElements.define("conversation-group", Ue);
|
4317
|
-
customElements.get("ace-typing-state") || customElements.define("ace-typing-state",
|
4445
|
+
customElements.get("ace-typing-state") || customElements.define("ace-typing-state", xn);
|
4318
4446
|
customElements.get("message-type-html") || customElements.define("message-type-html", Re);
|
4319
|
-
const _n =
|
4447
|
+
const _n = yn(b);
|
4320
4448
|
class M extends _n {
|
4321
4449
|
constructor() {
|
4322
|
-
super(...arguments), this.message = "", this.disabled = !1, this.chatOverlayActive = !1, this.conversationContentRef = Rt(), this.formRef = Rt(), this.chatScrollHeight = 0, this.toast = new
|
4450
|
+
super(...arguments), this.message = "", this.disabled = !1, this.chatOverlayActive = !1, this.conversationContentRef = Rt(), this.formRef = Rt(), this.chatScrollHeight = 0, this.toast = new xo(this), this.messageMaxLength = 1e3, this.platform = null, this.entries = [], this.typing = !1, this.conversationState$ = new P("waiting"), this.stateMachine = new So(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
4323
4451
|
Q((t) => t ? t == null ? void 0 : t.provider$ : le(null))
|
4324
4452
|
);
|
4325
4453
|
}
|
@@ -4328,7 +4456,7 @@ class M extends _n {
|
|
4328
4456
|
const t = await this.application.container.get(
|
4329
4457
|
"conversation"
|
4330
4458
|
);
|
4331
|
-
this.platform = t || null, this.stateSubscription =
|
4459
|
+
this.platform = t || null, this.stateSubscription = ar([
|
4332
4460
|
this.stateMachine.entries(),
|
4333
4461
|
this.stateMachine.isTyping()
|
4334
4462
|
]).subscribe(([e, n]) => {
|
@@ -4354,7 +4482,7 @@ class M extends _n {
|
|
4354
4482
|
const t = this.conversationContentRef.value;
|
4355
4483
|
t && setTimeout(() => {
|
4356
4484
|
const e = t.scrollHeight;
|
4357
|
-
e > this.chatScrollHeight && (
|
4485
|
+
e > this.chatScrollHeight && (Do(t), this.chatScrollHeight = e);
|
4358
4486
|
}, 1e3);
|
4359
4487
|
}
|
4360
4488
|
disableInput() {
|
@@ -4426,7 +4554,7 @@ class M extends _n {
|
|
4426
4554
|
class="overlay-button"
|
4427
4555
|
@click=${() => this.chatOverlayActive = !1}
|
4428
4556
|
>
|
4429
|
-
<telia-icon svg=${
|
4557
|
+
<telia-icon svg=${Fr.svg}></telia-icon>
|
4430
4558
|
</button>
|
4431
4559
|
</div>` : f}
|
4432
4560
|
<div
|
@@ -4474,7 +4602,7 @@ class M extends _n {
|
|
4474
4602
|
title=${t.getOrFallback("conversation.send-alt", "Send")}
|
4475
4603
|
?disabled=${this.disabled}
|
4476
4604
|
>
|
4477
|
-
<telia-icon svg=${
|
4605
|
+
<telia-icon svg=${Yr.svg}></telia-icon>
|
4478
4606
|
</button>
|
4479
4607
|
</div>
|
4480
4608
|
</form>
|
@@ -4672,7 +4800,7 @@ M.styles = [
|
|
4672
4800
|
z-index: 1;
|
4673
4801
|
position: absolute;
|
4674
4802
|
bottom: 0;
|
4675
|
-
height:
|
4803
|
+
height: auto;
|
4676
4804
|
}
|
4677
4805
|
@media screen and (max-width: 800px) {
|
4678
4806
|
.overlay-mode {
|
@@ -4688,13 +4816,19 @@ M.styles = [
|
|
4688
4816
|
}
|
4689
4817
|
|
4690
4818
|
.overlay-button {
|
4691
|
-
border-top-left-radius: var(--border-radius-
|
4692
|
-
border-top-right-radius: var(--border-radius-
|
4819
|
+
border-top-left-radius: var(--border-radius-xl);
|
4820
|
+
border-top-right-radius: var(--border-radius-xl);
|
4693
4821
|
border: none;
|
4694
4822
|
background-color: var(--conversation-bg);
|
4695
4823
|
padding: var(--spacing-xs) var(--spacing-md);
|
4824
|
+
width: 100%;
|
4696
4825
|
cursor: pointer;
|
4697
4826
|
}
|
4827
|
+
|
4828
|
+
.conversation-overlay-mode {
|
4829
|
+
border-top-left-radius: 0;
|
4830
|
+
border-top-right-radius: 0;
|
4831
|
+
}
|
4698
4832
|
`
|
4699
4833
|
];
|
4700
4834
|
rt([
|
@@ -4715,18 +4849,18 @@ rt([
|
|
4715
4849
|
rt([
|
4716
4850
|
O()
|
4717
4851
|
], M.prototype, "typing", 2);
|
4718
|
-
const
|
4852
|
+
const Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
4719
4853
|
__proto__: null,
|
4720
4854
|
Conversation: M,
|
4721
4855
|
default: M
|
4722
4856
|
}, Symbol.toStringTag, { value: "Module" }));
|
4723
4857
|
export {
|
4724
|
-
|
4858
|
+
$r as Agent,
|
4725
4859
|
M as Conversation,
|
4726
|
-
|
4860
|
+
zo as ConversationComponent,
|
4727
4861
|
Dt as ConversationEntry,
|
4728
4862
|
U as ConversationMessageType,
|
4729
|
-
|
4730
|
-
|
4731
|
-
|
4863
|
+
Ss as ConversationPlatform,
|
4864
|
+
Fo as ConversationProvider,
|
4865
|
+
yr as User
|
4732
4866
|
};
|