@telia-ace/widget-conversational-agent 1.1.123-rc.11 → 1.1.123-rc.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +15 -15
- package/index.mjs +93 -96
- package/package.json +3 -3
package/index.mjs
CHANGED
|
@@ -68,7 +68,7 @@ function Aa(n, e, t, s) {
|
|
|
68
68
|
c((s = s.apply(n, e || [])).next());
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Fr(n, e) {
|
|
72
72
|
var t = { label: 0, sent: function() {
|
|
73
73
|
if (r[0] & 1) throw r[1];
|
|
74
74
|
return r[1];
|
|
@@ -686,7 +686,7 @@ var za = (function(n) {
|
|
|
686
686
|
var s, i;
|
|
687
687
|
return (i = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(t)) !== null && i !== void 0 ? i : qr;
|
|
688
688
|
}, e;
|
|
689
|
-
})(I),
|
|
689
|
+
})(I), F = (function(n) {
|
|
690
690
|
at(e, n);
|
|
691
691
|
function e(t) {
|
|
692
692
|
var s = n.call(this) || this;
|
|
@@ -712,7 +712,7 @@ var za = (function(n) {
|
|
|
712
712
|
})(I), Pt = new X(function(n) {
|
|
713
713
|
return n.complete();
|
|
714
714
|
});
|
|
715
|
-
function
|
|
715
|
+
function Ha(n) {
|
|
716
716
|
return n && E(n.schedule);
|
|
717
717
|
}
|
|
718
718
|
function As(n) {
|
|
@@ -722,9 +722,9 @@ function Zr(n) {
|
|
|
722
722
|
return E(As(n)) ? n.pop() : void 0;
|
|
723
723
|
}
|
|
724
724
|
function Cs(n) {
|
|
725
|
-
return
|
|
725
|
+
return Ha(As(n)) ? n.pop() : void 0;
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function Fa(n, e) {
|
|
728
728
|
return typeof As(n) == "number" ? n.pop() : e;
|
|
729
729
|
}
|
|
730
730
|
var Ts = (function(n) {
|
|
@@ -752,7 +752,7 @@ function Jr(n) {
|
|
|
752
752
|
function eo(n) {
|
|
753
753
|
return Ca(this, arguments, function() {
|
|
754
754
|
var t, s, i, r;
|
|
755
|
-
return
|
|
755
|
+
return Fr(this, function(o) {
|
|
756
756
|
switch (o.label) {
|
|
757
757
|
case 0:
|
|
758
758
|
t = n.getReader(), o.label = 1;
|
|
@@ -861,7 +861,7 @@ function Xa(n, e) {
|
|
|
861
861
|
var t, s, i, r;
|
|
862
862
|
return Aa(this, void 0, void 0, function() {
|
|
863
863
|
var o, a;
|
|
864
|
-
return
|
|
864
|
+
return Fr(this, function(l) {
|
|
865
865
|
switch (l.label) {
|
|
866
866
|
case 0:
|
|
867
867
|
l.trys.push([0, 5, 6, 11]), t = Ta(n), l.label = 1;
|
|
@@ -1129,7 +1129,7 @@ function sn(n, e, t, s) {
|
|
|
1129
1129
|
return function(l) {
|
|
1130
1130
|
return n[a](e, l, t);
|
|
1131
1131
|
};
|
|
1132
|
-
}) : bl(n) ? gl.map(
|
|
1132
|
+
}) : bl(n) ? gl.map(Hi(n, e)) : yl(n) ? vl.map(Hi(n, e)) : [], 2), r = i[0], o = i[1];
|
|
1133
1133
|
if (!r && Ts(n))
|
|
1134
1134
|
return Ls(function(a) {
|
|
1135
1135
|
return sn(a, e, t);
|
|
@@ -1147,7 +1147,7 @@ function sn(n, e, t, s) {
|
|
|
1147
1147
|
};
|
|
1148
1148
|
});
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function Hi(n, e) {
|
|
1151
1151
|
return function(t) {
|
|
1152
1152
|
return function(s) {
|
|
1153
1153
|
return n[t](e, s);
|
|
@@ -1166,7 +1166,7 @@ function $l(n) {
|
|
|
1166
1166
|
function xl() {
|
|
1167
1167
|
for (var n = [], e = 0; e < arguments.length; e++)
|
|
1168
1168
|
n[e] = arguments[e];
|
|
1169
|
-
var t = Cs(n), s =
|
|
1169
|
+
var t = Cs(n), s = Fa(n, 1 / 0), i = n;
|
|
1170
1170
|
return i.length ? i.length === 1 ? ce(i[0]) : fl(s)($n(i, t)) : Pt;
|
|
1171
1171
|
}
|
|
1172
1172
|
function wl(n, e) {
|
|
@@ -1238,7 +1238,7 @@ const kl = () => "10000000-1000-4000-8000-100000000000".replace(
|
|
|
1238
1238
|
/[018]/g,
|
|
1239
1239
|
(n) => (+n ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +n / 4).toString(16)
|
|
1240
1240
|
), ao = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() : kl();
|
|
1241
|
-
function
|
|
1241
|
+
function Fi(n) {
|
|
1242
1242
|
let e = n;
|
|
1243
1243
|
const t = /https?:\/\/[^\s<]+/gi, s = /<a [^>]*href="([^"]*)"[^>]*>[^<]*<\/a>/g, i = n.match(t) || [], r = [];
|
|
1244
1244
|
let o;
|
|
@@ -1384,7 +1384,7 @@ class Al {
|
|
|
1384
1384
|
}
|
|
1385
1385
|
class Cl {
|
|
1386
1386
|
constructor(e, t) {
|
|
1387
|
-
this.name = e, this.component = t, this.print$ = new I(), this.typingState$ = new
|
|
1387
|
+
this.name = e, this.component = t, this.print$ = new I(), this.typingState$ = new F(!1), this.complete$ = new I(), this.system = this.createSystem(), this.rehydrate$ = new I(), this.saveToCurrentSession$ = new I(), this.showChatOverlay$ = new F(!1), this.onComplete = () => this.complete$.asObservable();
|
|
1388
1388
|
}
|
|
1389
1389
|
connect(e = {}) {
|
|
1390
1390
|
this.complete$.pipe(Ie(1)).subscribe(() => {
|
|
@@ -1752,7 +1752,7 @@ function fo(n, e) {
|
|
|
1752
1752
|
if (!Is(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1753
1753
|
return Zi !== void 0 ? Zi.createHTML(e) : e;
|
|
1754
1754
|
}
|
|
1755
|
-
const
|
|
1755
|
+
const Hl = (n, e) => {
|
|
1756
1756
|
const t = n.length - 1, s = [];
|
|
1757
1757
|
let i, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", o = dt;
|
|
1758
1758
|
for (let a = 0; a < t; a++) {
|
|
@@ -1769,7 +1769,7 @@ let hs = class go {
|
|
|
1769
1769
|
let i;
|
|
1770
1770
|
this.parts = [];
|
|
1771
1771
|
let r = 0, o = 0;
|
|
1772
|
-
const a = e.length - 1, l = this.parts, [c, u] =
|
|
1772
|
+
const a = e.length - 1, l = this.parts, [c, u] = Hl(e, t);
|
|
1773
1773
|
if (this.el = go.createElement(c, s), Pe.currentNode = this.el.content, t === 2 || t === 3) {
|
|
1774
1774
|
const p = this.el.content.firstChild;
|
|
1775
1775
|
p.replaceWith(...p.childNodes);
|
|
@@ -1808,7 +1808,7 @@ function it(n, e, t = n, s) {
|
|
|
1808
1808
|
const r = _t(e) ? void 0 : e._$litDirective$;
|
|
1809
1809
|
return (i == null ? void 0 : i.constructor) !== r && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), r === void 0 ? i = void 0 : (i = new r(n), i._$AT(n, t, s)), s !== void 0 ? (t._$Co ?? (t._$Co = []))[s] = i : t._$Cl = i), i !== void 0 && (e = it(n, i._$AS(n, e.values), i, s)), e;
|
|
1810
1810
|
}
|
|
1811
|
-
class
|
|
1811
|
+
class Fl {
|
|
1812
1812
|
constructor(e, t) {
|
|
1813
1813
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
1814
1814
|
}
|
|
@@ -1872,7 +1872,7 @@ class Mt {
|
|
|
1872
1872
|
const { values: t, _$litType$: s } = e, i = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el = hs.createElement(fo(s.h, s.h[0]), this.options)), s);
|
|
1873
1873
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === i) this._$AH.p(t);
|
|
1874
1874
|
else {
|
|
1875
|
-
const o = new
|
|
1875
|
+
const o = new Fl(i, this), a = o.u(this.options);
|
|
1876
1876
|
o.p(t), this.T(a), this._$AH = o;
|
|
1877
1877
|
}
|
|
1878
1878
|
}
|
|
@@ -2007,8 +2007,8 @@ let M = class extends Ye {
|
|
|
2007
2007
|
return _e;
|
|
2008
2008
|
}
|
|
2009
2009
|
};
|
|
2010
|
-
var
|
|
2011
|
-
M._$litElement$ = !0, M.finalized = !0, (
|
|
2010
|
+
var Hr;
|
|
2011
|
+
M._$litElement$ = !0, M.finalized = !0, (Hr = Me.litElementHydrateSupport) == null || Hr.call(Me, { LitElement: M });
|
|
2012
2012
|
const Zn = Me.litElementPolyfillSupport;
|
|
2013
2013
|
Zn == null || Zn({ LitElement: M });
|
|
2014
2014
|
(Me.litElementVersions ?? (Me.litElementVersions = [])).push("4.2.1");
|
|
@@ -2532,7 +2532,7 @@ const kn = typeof window < "u" ? window : {}, le = kn.document || { head: {} },
|
|
|
2532
2532
|
n.length = 0;
|
|
2533
2533
|
}, ps = () => {
|
|
2534
2534
|
dr(hr), dr(Oo), (ds = hr.length > 0) && q.raf(ps);
|
|
2535
|
-
}, zc = (n) => tc().then(n), Bc = /* @__PURE__ */ Uc(Oo, !0),
|
|
2535
|
+
}, zc = (n) => tc().then(n), Bc = /* @__PURE__ */ Uc(Oo, !0), Hc = (n = {}) => {
|
|
2536
2536
|
const { content: e = "", title: t, attributes: s = [] } = n;
|
|
2537
2537
|
let i = "", r = [
|
|
2538
2538
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
@@ -2540,7 +2540,7 @@ const kn = typeof window < "u" ? window : {}, le = kn.document || { head: {} },
|
|
|
2540
2540
|
...s
|
|
2541
2541
|
];
|
|
2542
2542
|
return t && (i = `<title>${t}</title>`), `<svg ${r.map((a) => `${a.name}="${a.value}"`).join(" ")}>${i}${e}</svg>`;
|
|
2543
|
-
},
|
|
2543
|
+
}, Fc = (n) => n.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
|
2544
2544
|
function jc(n) {
|
|
2545
2545
|
return `${n.getFullYear()}.${n.getMonth() + 1}`;
|
|
2546
2546
|
}
|
|
@@ -2611,8 +2611,8 @@ const Xc = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
|
2611
2611
|
...e,
|
|
2612
2612
|
{ name: "aria-hidden", value: "true" }
|
|
2613
2613
|
];
|
|
2614
|
-
const t =
|
|
2615
|
-
content:
|
|
2614
|
+
const t = Hc({
|
|
2615
|
+
content: Fc(n),
|
|
2616
2616
|
attributes: e,
|
|
2617
2617
|
title: this.allyTitle
|
|
2618
2618
|
});
|
|
@@ -3122,7 +3122,7 @@ var fu = Object.defineProperty, Dt = (n, e, t, s) => {
|
|
|
3122
3122
|
};
|
|
3123
3123
|
const ei = class ei extends M {
|
|
3124
3124
|
constructor() {
|
|
3125
|
-
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = oe(), this.widgetActive$ = new
|
|
3125
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = oe(), this.widgetActive$ = new F(!1), this.componentIsDestroyed$ = new I();
|
|
3126
3126
|
}
|
|
3127
3127
|
async connectedCallback() {
|
|
3128
3128
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
|
@@ -3656,14 +3656,14 @@ function Bo({ context: n, subscribe: e }) {
|
|
|
3656
3656
|
}));
|
|
3657
3657
|
};
|
|
3658
3658
|
}
|
|
3659
|
-
var $u = Object.defineProperty,
|
|
3659
|
+
var $u = Object.defineProperty, Ho = (n, e, t, s) => {
|
|
3660
3660
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
3661
3661
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
3662
3662
|
return i && $u(e, t, i), i;
|
|
3663
3663
|
};
|
|
3664
|
-
const
|
|
3664
|
+
const Hs = "application", ni = class ni extends M {
|
|
3665
3665
|
constructor() {
|
|
3666
|
-
super(...arguments), this.nodes = [], this.wrapperRef = oe(), this.fullscreen = !1, this.isReady = new
|
|
3666
|
+
super(...arguments), this.nodes = [], this.wrapperRef = oe(), this.fullscreen = !1, this.isReady = new F(!1);
|
|
3667
3667
|
}
|
|
3668
3668
|
addChild(e) {
|
|
3669
3669
|
e.parent = this, this.nodes.push(e);
|
|
@@ -3860,14 +3860,14 @@ ni.styles = Z`
|
|
|
3860
3860
|
}
|
|
3861
3861
|
`;
|
|
3862
3862
|
let At = ni;
|
|
3863
|
-
|
|
3863
|
+
Ho([
|
|
3864
3864
|
C({ attribute: !0 })
|
|
3865
3865
|
], At.prototype, "fullscreen");
|
|
3866
|
-
|
|
3866
|
+
Ho([
|
|
3867
3867
|
C({ attribute: !1 }),
|
|
3868
|
-
yu({ context:
|
|
3868
|
+
yu({ context: Hs })
|
|
3869
3869
|
], At.prototype, "application");
|
|
3870
|
-
var xu = Object.defineProperty,
|
|
3870
|
+
var xu = Object.defineProperty, Fs = (n, e, t, s) => {
|
|
3871
3871
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
3872
3872
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
3873
3873
|
return i && xu(e, t, i), i;
|
|
@@ -3912,13 +3912,13 @@ si.styles = [
|
|
|
3912
3912
|
`
|
|
3913
3913
|
];
|
|
3914
3914
|
let ot = si;
|
|
3915
|
-
|
|
3915
|
+
Fs([
|
|
3916
3916
|
C({ attribute: !0 })
|
|
3917
3917
|
], ot.prototype, "name");
|
|
3918
|
-
|
|
3918
|
+
Fs([
|
|
3919
3919
|
N()
|
|
3920
3920
|
], ot.prototype, "widget");
|
|
3921
|
-
|
|
3921
|
+
Fs([
|
|
3922
3922
|
N()
|
|
3923
3923
|
], ot.prototype, "status");
|
|
3924
3924
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", dn);
|
|
@@ -3944,7 +3944,7 @@ class wu {
|
|
|
3944
3944
|
}
|
|
3945
3945
|
class wr {
|
|
3946
3946
|
constructor(e, t, s, i, r) {
|
|
3947
|
-
this.id = e, this.providerKey = t, this.providerOptions = s, this.component = r, this.provider$ = new
|
|
3947
|
+
this.id = e, this.providerKey = t, this.providerOptions = s, this.component = r, this.provider$ = new F(null), this.entries$ = new F([]), this.removeEntryAction$ = new I(), this.kill$ = new I(), this.isTyping$ = new F(!1), this.data$ = new F({}), this.complete$ = this.provider$.pipe(
|
|
3948
3948
|
Je((l) => l ? l.onComplete() : Pt)
|
|
3949
3949
|
);
|
|
3950
3950
|
const o = this._getProviderFactory(t);
|
|
@@ -4000,7 +4000,7 @@ class wr {
|
|
|
4000
4000
|
}
|
|
4001
4001
|
class ku {
|
|
4002
4002
|
constructor(e) {
|
|
4003
|
-
this.component = e, this.currentSession$ = new
|
|
4003
|
+
this.component = e, this.currentSession$ = new F(null), this.sessions = [], this.storage = null, sn(e, "handover").subscribe((t) => {
|
|
4004
4004
|
const s = this._createNewSession(
|
|
4005
4005
|
t.detail.providerKey,
|
|
4006
4006
|
t.detail.providerOptions
|
|
@@ -4098,7 +4098,7 @@ class ku {
|
|
|
4098
4098
|
}
|
|
4099
4099
|
class Su {
|
|
4100
4100
|
constructor(e, t) {
|
|
4101
|
-
this.state$ = e, this.component = t, this.entries$ = new
|
|
4101
|
+
this.state$ = e, this.component = t, this.entries$ = new F([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new ku(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
|
|
4102
4102
|
Je((s) => s ? s.provider$.pipe(
|
|
4103
4103
|
Je((i) => i ? i.isTyping() : os(!1))
|
|
4104
4104
|
) : os(!1))
|
|
@@ -4147,7 +4147,7 @@ class Su {
|
|
|
4147
4147
|
(e = this.sessionService) == null || e.startSession();
|
|
4148
4148
|
}
|
|
4149
4149
|
}
|
|
4150
|
-
var _u = Object.defineProperty,
|
|
4150
|
+
var _u = Object.defineProperty, Fo = (n, e, t, s) => {
|
|
4151
4151
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
4152
4152
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
4153
4153
|
return i && _u(e, t, i), i;
|
|
@@ -4412,11 +4412,11 @@ ii.styles = [
|
|
|
4412
4412
|
`
|
|
4413
4413
|
];
|
|
4414
4414
|
let Ct = ii;
|
|
4415
|
-
|
|
4415
|
+
Fo([
|
|
4416
4416
|
C({ attribute: !1 })
|
|
4417
4417
|
], Ct.prototype, "entry");
|
|
4418
|
-
|
|
4419
|
-
Bo({ context:
|
|
4418
|
+
Fo([
|
|
4419
|
+
Bo({ context: Hs }),
|
|
4420
4420
|
C({ attribute: !1 })
|
|
4421
4421
|
], Ct.prototype, "application");
|
|
4422
4422
|
var Eu = Object.defineProperty, jo = (n, e, t, s) => {
|
|
@@ -4645,7 +4645,7 @@ ys || (ys = function(e, t, s) {
|
|
|
4645
4645
|
$s || ($s = function(e, t) {
|
|
4646
4646
|
return new e(...t);
|
|
4647
4647
|
});
|
|
4648
|
-
const Yt = G(Array.prototype.forEach), Iu = G(Array.prototype.lastIndexOf), Sr = G(Array.prototype.pop), pt = G(Array.prototype.push), Mu = G(Array.prototype.splice), Jt = G(String.prototype.toLowerCase), Vn = G(String.prototype.toString), _r = G(String.prototype.match), ft = G(String.prototype.replace), Nu = G(String.prototype.indexOf), Du = G(String.prototype.trim), te = G(Object.prototype.hasOwnProperty),
|
|
4648
|
+
const Yt = G(Array.prototype.forEach), Iu = G(Array.prototype.lastIndexOf), Sr = G(Array.prototype.pop), pt = G(Array.prototype.push), Mu = G(Array.prototype.splice), Jt = G(String.prototype.toLowerCase), Vn = G(String.prototype.toString), _r = G(String.prototype.match), ft = G(String.prototype.replace), Nu = G(String.prototype.indexOf), Du = G(String.prototype.trim), te = G(Object.prototype.hasOwnProperty), H = G(RegExp.prototype.test), gt = Uu(TypeError);
|
|
4649
4649
|
function G(n) {
|
|
4650
4650
|
return function(e) {
|
|
4651
4651
|
e instanceof RegExp && (e.lastIndex = 0);
|
|
@@ -4702,7 +4702,7 @@ function mt(n, e) {
|
|
|
4702
4702
|
}
|
|
4703
4703
|
return t;
|
|
4704
4704
|
}
|
|
4705
|
-
const Er = W(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Qn = W(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Jn = W(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Bu = W(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), es = W(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]),
|
|
4705
|
+
const Er = W(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Qn = W(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Jn = W(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Bu = W(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), es = W(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Hu = W(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ar = W(["#text"]), Cr = W(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), ts = W(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Tr = W(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Xt = W(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Fu = J(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ju = J(/<%[\w\W]*|[\w\W]*%>/gm), qu = J(/\$\{[\w\W]*/gm), Wu = J(/^data-[\-\w.\u00B7-\uFFFF]+$/), Gu = J(/^aria-[\-\w]+$/), Go = J(
|
|
4706
4706
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4707
4707
|
// eslint-disable-line no-useless-escape
|
|
4708
4708
|
), Zu = J(/^(?:\w+script|data):/i), Yu = J(
|
|
@@ -4719,7 +4719,7 @@ var Lr = /* @__PURE__ */ Object.freeze({
|
|
|
4719
4719
|
ERB_EXPR: ju,
|
|
4720
4720
|
IS_ALLOWED_URI: Go,
|
|
4721
4721
|
IS_SCRIPT_OR_DATA: Zu,
|
|
4722
|
-
MUSTACHE_EXPR:
|
|
4722
|
+
MUSTACHE_EXPR: Fu,
|
|
4723
4723
|
TMPLIT_EXPR: qu
|
|
4724
4724
|
});
|
|
4725
4725
|
const vt = {
|
|
@@ -4832,16 +4832,16 @@ function Yo() {
|
|
|
4832
4832
|
enumerable: !0,
|
|
4833
4833
|
value: !1
|
|
4834
4834
|
}
|
|
4835
|
-
})), lt = null, On = null, mi = !0, Pn = !0, vi = !1, bi = !0,
|
|
4835
|
+
})), lt = null, On = null, mi = !0, Pn = !0, vi = !1, bi = !0, He = !1, zt = !0, Le = !1, In = !1, Mn = !1, Fe = !1, Bt = !1, Ht = !1, yi = !0, $i = !1;
|
|
4836
4836
|
const va = "user-content-";
|
|
4837
4837
|
let Nn = !0, ct = !1, je = {}, qe = null;
|
|
4838
4838
|
const xi = x({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
4839
4839
|
let wi = null;
|
|
4840
4840
|
const ki = x({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4841
4841
|
let Dn = null;
|
|
4842
|
-
const Si = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]),
|
|
4842
|
+
const Si = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ft = "http://www.w3.org/1998/Math/MathML", jt = "http://www.w3.org/2000/svg", he = "http://www.w3.org/1999/xhtml";
|
|
4843
4843
|
let We = he, Un = !1, zn = null;
|
|
4844
|
-
const ba = x({}, [
|
|
4844
|
+
const ba = x({}, [Ft, jt, he], Vn);
|
|
4845
4845
|
let qt = x({}, ["mi", "mo", "mn", "ms", "mtext"]), Wt = x({}, ["annotation-xml"]);
|
|
4846
4846
|
const ya = x({}, ["title", "style", "font", "a", "script"]);
|
|
4847
4847
|
let ut = null;
|
|
@@ -4853,7 +4853,7 @@ function Yo() {
|
|
|
4853
4853
|
let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4854
4854
|
if (!(Ge && Ge === h)) {
|
|
4855
4855
|
if ((!h || typeof h != "object") && (h = {}), h = ge(h), ut = // eslint-disable-next-line unicorn/prefer-includes
|
|
4856
|
-
$a.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? xa : h.PARSER_MEDIA_TYPE, P = ut === "application/xhtml+xml" ? Vn : Jt, O = te(h, "ALLOWED_TAGS") ? x({}, h.ALLOWED_TAGS, P) : fi, D = te(h, "ALLOWED_ATTR") ? x({}, h.ALLOWED_ATTR, P) : gi, zn = te(h, "ALLOWED_NAMESPACES") ? x({}, h.ALLOWED_NAMESPACES, Vn) : ba, Dn = te(h, "ADD_URI_SAFE_ATTR") ? x(ge(Si), h.ADD_URI_SAFE_ATTR, P) : Si, wi = te(h, "ADD_DATA_URI_TAGS") ? x(ge(ki), h.ADD_DATA_URI_TAGS, P) : ki, qe = te(h, "FORBID_CONTENTS") ? x({}, h.FORBID_CONTENTS, P) : xi, lt = te(h, "FORBID_TAGS") ? x({}, h.FORBID_TAGS, P) : ge({}), On = te(h, "FORBID_ATTR") ? x({}, h.FORBID_ATTR, P) : ge({}), je = te(h, "USE_PROFILES") ? h.USE_PROFILES : !1, mi = h.ALLOW_ARIA_ATTR !== !1, Pn = h.ALLOW_DATA_ATTR !== !1, vi = h.ALLOW_UNKNOWN_PROTOCOLS || !1, bi = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1,
|
|
4856
|
+
$a.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? xa : h.PARSER_MEDIA_TYPE, P = ut === "application/xhtml+xml" ? Vn : Jt, O = te(h, "ALLOWED_TAGS") ? x({}, h.ALLOWED_TAGS, P) : fi, D = te(h, "ALLOWED_ATTR") ? x({}, h.ALLOWED_ATTR, P) : gi, zn = te(h, "ALLOWED_NAMESPACES") ? x({}, h.ALLOWED_NAMESPACES, Vn) : ba, Dn = te(h, "ADD_URI_SAFE_ATTR") ? x(ge(Si), h.ADD_URI_SAFE_ATTR, P) : Si, wi = te(h, "ADD_DATA_URI_TAGS") ? x(ge(ki), h.ADD_DATA_URI_TAGS, P) : ki, qe = te(h, "FORBID_CONTENTS") ? x({}, h.FORBID_CONTENTS, P) : xi, lt = te(h, "FORBID_TAGS") ? x({}, h.FORBID_TAGS, P) : ge({}), On = te(h, "FORBID_ATTR") ? x({}, h.FORBID_ATTR, P) : ge({}), je = te(h, "USE_PROFILES") ? h.USE_PROFILES : !1, mi = h.ALLOW_ARIA_ATTR !== !1, Pn = h.ALLOW_DATA_ATTR !== !1, vi = h.ALLOW_UNKNOWN_PROTOCOLS || !1, bi = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, He = h.SAFE_FOR_TEMPLATES || !1, zt = h.SAFE_FOR_XML !== !1, Le = h.WHOLE_DOCUMENT || !1, Fe = h.RETURN_DOM || !1, Bt = h.RETURN_DOM_FRAGMENT || !1, Ht = h.RETURN_TRUSTED_TYPE || !1, Mn = h.FORCE_BODY || !1, yi = h.SANITIZE_DOM !== !1, $i = h.SANITIZE_NAMED_PROPS || !1, Nn = h.KEEP_CONTENT !== !1, ct = h.IN_PLACE || !1, pi = h.ALLOWED_URI_REGEXP || Go, We = h.NAMESPACE || he, qt = h.MATHML_TEXT_INTEGRATION_POINTS || qt, Wt = h.HTML_INTEGRATION_POINTS || Wt, T = h.CUSTOM_ELEMENT_HANDLING || {}, h.CUSTOM_ELEMENT_HANDLING && _i(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (T.tagNameCheck = h.CUSTOM_ELEMENT_HANDLING.tagNameCheck), h.CUSTOM_ELEMENT_HANDLING && _i(h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (T.attributeNameCheck = h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), h.CUSTOM_ELEMENT_HANDLING && typeof h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (T.allowCustomizedBuiltInElements = h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), He && (Pn = !1), Bt && (Fe = !0), je && (O = x({}, Ar), D = [], je.html === !0 && (x(O, Er), x(D, Cr)), je.svg === !0 && (x(O, Qn), x(D, ts), x(D, Xt)), je.svgFilters === !0 && (x(O, Jn), x(D, ts), x(D, Xt)), je.mathMl === !0 && (x(O, es), x(D, Tr), x(D, Xt))), h.ADD_TAGS && (O === fi && (O = ge(O)), x(O, h.ADD_TAGS, P)), h.ADD_ATTR && (D === gi && (D = ge(D)), x(D, h.ADD_ATTR, P)), h.ADD_URI_SAFE_ATTR && x(Dn, h.ADD_URI_SAFE_ATTR, P), h.FORBID_CONTENTS && (qe === xi && (qe = ge(qe)), x(qe, h.FORBID_CONTENTS, P)), Nn && (O["#text"] = !0), Le && x(O, ["html", "head", "body"]), O.table && (x(O, ["tbody"]), delete lt.tbody), h.TRUSTED_TYPES_POLICY) {
|
|
4857
4857
|
if (typeof h.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4858
4858
|
throw gt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4859
4859
|
if (typeof h.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -4863,14 +4863,14 @@ function Yo() {
|
|
|
4863
4863
|
R === void 0 && (R = Vu(g, i)), R !== null && typeof Ae == "string" && (Ae = R.createHTML(""));
|
|
4864
4864
|
W && W(h), Ge = h;
|
|
4865
4865
|
}
|
|
4866
|
-
}, Ei = x({}, [...Qn, ...Jn, ...Bu]), Ai = x({}, [...es, ...
|
|
4866
|
+
}, Ei = x({}, [...Qn, ...Jn, ...Bu]), Ai = x({}, [...es, ...Hu]), ka = function(h) {
|
|
4867
4867
|
let f = Ee(h);
|
|
4868
4868
|
(!f || !f.tagName) && (f = {
|
|
4869
4869
|
namespaceURI: We,
|
|
4870
4870
|
tagName: "template"
|
|
4871
4871
|
});
|
|
4872
4872
|
const v = Jt(h.tagName), A = Jt(f.tagName);
|
|
4873
|
-
return zn[h.namespaceURI] ? h.namespaceURI === jt ? f.namespaceURI === he ? v === "svg" : f.namespaceURI ===
|
|
4873
|
+
return zn[h.namespaceURI] ? h.namespaceURI === jt ? f.namespaceURI === he ? v === "svg" : f.namespaceURI === Ft ? v === "svg" && (A === "annotation-xml" || qt[A]) : !!Ei[v] : h.namespaceURI === Ft ? f.namespaceURI === he ? v === "math" : f.namespaceURI === jt ? v === "math" && Wt[A] : !!Ai[v] : h.namespaceURI === he ? f.namespaceURI === jt && !Wt[A] || f.namespaceURI === Ft && !qt[A] ? !1 : !Ai[v] && (ya[v] || !Ei[v]) : !!(ut === "application/xhtml+xml" && zn[h.namespaceURI]) : !1;
|
|
4874
4874
|
}, ie = function(h) {
|
|
4875
4875
|
pt(e.removed, {
|
|
4876
4876
|
element: h
|
|
@@ -4893,7 +4893,7 @@ function Yo() {
|
|
|
4893
4893
|
});
|
|
4894
4894
|
}
|
|
4895
4895
|
if (f.removeAttribute(h), h === "is")
|
|
4896
|
-
if (
|
|
4896
|
+
if (Fe || Bt)
|
|
4897
4897
|
try {
|
|
4898
4898
|
ie(f);
|
|
4899
4899
|
} catch {
|
|
@@ -4935,7 +4935,7 @@ function Yo() {
|
|
|
4935
4935
|
c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION,
|
|
4936
4936
|
null
|
|
4937
4937
|
);
|
|
4938
|
-
},
|
|
4938
|
+
}, Hn = function(h) {
|
|
4939
4939
|
return h instanceof p && (typeof h.nodeName != "string" || typeof h.textContent != "string" || typeof h.removeChild != "function" || !(h.attributes instanceof u) || typeof h.removeAttribute != "function" || typeof h.setAttribute != "function" || typeof h.namespaceURI != "string" || typeof h.insertBefore != "function" || typeof h.hasChildNodes != "function");
|
|
4940
4940
|
}, Li = function(h) {
|
|
4941
4941
|
return typeof a == "function" && h instanceof a;
|
|
@@ -4947,16 +4947,16 @@ function Yo() {
|
|
|
4947
4947
|
}
|
|
4948
4948
|
const Ri = function(h) {
|
|
4949
4949
|
let f = null;
|
|
4950
|
-
if (de(B.beforeSanitizeElements, h, null),
|
|
4950
|
+
if (de(B.beforeSanitizeElements, h, null), Hn(h))
|
|
4951
4951
|
return ie(h), !0;
|
|
4952
4952
|
const v = P(h.nodeName);
|
|
4953
4953
|
if (de(B.uponSanitizeElement, h, {
|
|
4954
4954
|
tagName: v,
|
|
4955
4955
|
allowedTags: O
|
|
4956
|
-
}), zt && h.hasChildNodes() && !Li(h.firstElementChild) &&
|
|
4956
|
+
}), zt && h.hasChildNodes() && !Li(h.firstElementChild) && H(/<[/\w!]/g, h.innerHTML) && H(/<[/\w!]/g, h.textContent) || h.nodeType === vt.progressingInstruction || zt && h.nodeType === vt.comment && H(/<[/\w]/g, h.data))
|
|
4957
4957
|
return ie(h), !0;
|
|
4958
4958
|
if (!O[v] || lt[v]) {
|
|
4959
|
-
if (!lt[v] && Pi(v) && (T.tagNameCheck instanceof RegExp &&
|
|
4959
|
+
if (!lt[v] && Pi(v) && (T.tagNameCheck instanceof RegExp && H(T.tagNameCheck, v) || T.tagNameCheck instanceof Function && T.tagNameCheck(v)))
|
|
4960
4960
|
return !1;
|
|
4961
4961
|
if (Nn && !qe[v]) {
|
|
4962
4962
|
const A = Ee(h) || h.parentNode, U = xe(h) || h.childNodes;
|
|
@@ -4970,7 +4970,7 @@ function Yo() {
|
|
|
4970
4970
|
}
|
|
4971
4971
|
return ie(h), !0;
|
|
4972
4972
|
}
|
|
4973
|
-
return h instanceof l && !ka(h) || (v === "noscript" || v === "noembed" || v === "noframes") &&
|
|
4973
|
+
return h instanceof l && !ka(h) || (v === "noscript" || v === "noembed" || v === "noframes") && H(/<\/no(script|embed|frames)/i, h.innerHTML) ? (ie(h), !0) : (He && h.nodeType === vt.text && (f = h.textContent, Yt([Tn, Ln, Rn], (A) => {
|
|
4974
4974
|
f = ft(f, A, " ");
|
|
4975
4975
|
}), h.textContent !== f && (pt(e.removed, {
|
|
4976
4976
|
element: h.cloneNode()
|
|
@@ -4978,21 +4978,21 @@ function Yo() {
|
|
|
4978
4978
|
}, Oi = function(h, f, v) {
|
|
4979
4979
|
if (yi && (f === "id" || f === "name") && (v in t || v in wa))
|
|
4980
4980
|
return !1;
|
|
4981
|
-
if (!(Pn && !On[f] &&
|
|
4982
|
-
if (!(mi &&
|
|
4981
|
+
if (!(Pn && !On[f] && H(pa, f))) {
|
|
4982
|
+
if (!(mi && H(fa, f))) {
|
|
4983
4983
|
if (!D[f] || On[f]) {
|
|
4984
4984
|
if (
|
|
4985
4985
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4986
4986
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4987
4987
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4988
|
-
!(Pi(h) && (T.tagNameCheck instanceof RegExp &&
|
|
4988
|
+
!(Pi(h) && (T.tagNameCheck instanceof RegExp && H(T.tagNameCheck, h) || T.tagNameCheck instanceof Function && T.tagNameCheck(h)) && (T.attributeNameCheck instanceof RegExp && H(T.attributeNameCheck, f) || T.attributeNameCheck instanceof Function && T.attributeNameCheck(f)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
4989
4989
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4990
|
-
f === "is" && T.allowCustomizedBuiltInElements && (T.tagNameCheck instanceof RegExp &&
|
|
4990
|
+
f === "is" && T.allowCustomizedBuiltInElements && (T.tagNameCheck instanceof RegExp && H(T.tagNameCheck, v) || T.tagNameCheck instanceof Function && T.tagNameCheck(v)))
|
|
4991
4991
|
) return !1;
|
|
4992
4992
|
} else if (!Dn[f]) {
|
|
4993
|
-
if (!
|
|
4993
|
+
if (!H(pi, ft(v, di, ""))) {
|
|
4994
4994
|
if (!((f === "src" || f === "xlink:href" || f === "href") && h !== "script" && Nu(v, "data:") === 0 && wi[h])) {
|
|
4995
|
-
if (!(vi && !
|
|
4995
|
+
if (!(vi && !H(ga, ft(v, di, "")))) {
|
|
4996
4996
|
if (v)
|
|
4997
4997
|
return !1;
|
|
4998
4998
|
}
|
|
@@ -5009,7 +5009,7 @@ function Yo() {
|
|
|
5009
5009
|
const {
|
|
5010
5010
|
attributes: f
|
|
5011
5011
|
} = h;
|
|
5012
|
-
if (!f ||
|
|
5012
|
+
if (!f || Hn(h))
|
|
5013
5013
|
return;
|
|
5014
5014
|
const v = {
|
|
5015
5015
|
attrName: "",
|
|
@@ -5024,9 +5024,9 @@ function Yo() {
|
|
|
5024
5024
|
name: L,
|
|
5025
5025
|
namespaceURI: Y,
|
|
5026
5026
|
value: pe
|
|
5027
|
-
} = U, ht = P(L),
|
|
5028
|
-
let z = L === "value" ?
|
|
5029
|
-
if (v.attrName = ht, v.attrValue = z, v.keepAttr = !0, v.forceKeepAttr = void 0, de(B.uponSanitizeAttribute, h, v), z = v.attrValue, $i && (ht === "id" || ht === "name") && (Ze(L, h), z = va + z), zt &&
|
|
5027
|
+
} = U, ht = P(L), Fn = pe;
|
|
5028
|
+
let z = L === "value" ? Fn : Du(Fn);
|
|
5029
|
+
if (v.attrName = ht, v.attrValue = z, v.keepAttr = !0, v.forceKeepAttr = void 0, de(B.uponSanitizeAttribute, h, v), z = v.attrValue, $i && (ht === "id" || ht === "name") && (Ze(L, h), z = va + z), zt && H(/((--!?|])>)|<\/(style|title)/i, z)) {
|
|
5030
5030
|
Ze(L, h);
|
|
5031
5031
|
continue;
|
|
5032
5032
|
}
|
|
@@ -5036,11 +5036,11 @@ function Yo() {
|
|
|
5036
5036
|
Ze(L, h);
|
|
5037
5037
|
continue;
|
|
5038
5038
|
}
|
|
5039
|
-
if (!bi &&
|
|
5039
|
+
if (!bi && H(/\/>/i, z)) {
|
|
5040
5040
|
Ze(L, h);
|
|
5041
5041
|
continue;
|
|
5042
5042
|
}
|
|
5043
|
-
|
|
5043
|
+
He && Yt([Tn, Ln, Rn], (Ni) => {
|
|
5044
5044
|
z = ft(z, Ni, " ");
|
|
5045
5045
|
});
|
|
5046
5046
|
const Mi = P(h.nodeName);
|
|
@@ -5059,9 +5059,9 @@ function Yo() {
|
|
|
5059
5059
|
break;
|
|
5060
5060
|
}
|
|
5061
5061
|
}
|
|
5062
|
-
if (z !==
|
|
5062
|
+
if (z !== Fn)
|
|
5063
5063
|
try {
|
|
5064
|
-
Y ? h.setAttributeNS(Y, L, z) : h.setAttribute(L, z),
|
|
5064
|
+
Y ? h.setAttributeNS(Y, L, z) : h.setAttribute(L, z), Hn(h) ? ie(h) : Sr(e.removed);
|
|
5065
5065
|
} catch {
|
|
5066
5066
|
Ze(L, h);
|
|
5067
5067
|
}
|
|
@@ -5093,11 +5093,11 @@ function Yo() {
|
|
|
5093
5093
|
} else if (b instanceof a)
|
|
5094
5094
|
f = Ci("<!---->"), v = f.ownerDocument.importNode(b, !0), v.nodeType === vt.element && v.nodeName === "BODY" || v.nodeName === "HTML" ? f = v : f.appendChild(v);
|
|
5095
5095
|
else {
|
|
5096
|
-
if (!
|
|
5096
|
+
if (!Fe && !He && !Le && // eslint-disable-next-line unicorn/prefer-includes
|
|
5097
5097
|
b.indexOf("<") === -1)
|
|
5098
|
-
return R &&
|
|
5098
|
+
return R && Ht ? R.createHTML(b) : b;
|
|
5099
5099
|
if (f = Ci(b), !f)
|
|
5100
|
-
return
|
|
5100
|
+
return Fe ? null : Ht ? Ae : "";
|
|
5101
5101
|
}
|
|
5102
5102
|
f && Mn && ie(f.firstChild);
|
|
5103
5103
|
const L = Ti(ct ? b : f);
|
|
@@ -5105,7 +5105,7 @@ function Yo() {
|
|
|
5105
5105
|
Ri(A), Ii(A), A.content instanceof r && Sa(A.content);
|
|
5106
5106
|
if (ct)
|
|
5107
5107
|
return b;
|
|
5108
|
-
if (
|
|
5108
|
+
if (Fe) {
|
|
5109
5109
|
if (Bt)
|
|
5110
5110
|
for (U = ua.call(f.ownerDocument); f.firstChild; )
|
|
5111
5111
|
U.appendChild(f.firstChild);
|
|
@@ -5114,10 +5114,10 @@ function Yo() {
|
|
|
5114
5114
|
return (D.shadowroot || D.shadowrootmode) && (U = da.call(s, U, !0)), U;
|
|
5115
5115
|
}
|
|
5116
5116
|
let Y = Le ? f.outerHTML : f.innerHTML;
|
|
5117
|
-
return Le && O["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name &&
|
|
5118
|
-
` + Y),
|
|
5117
|
+
return Le && O["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name && H(Zo, f.ownerDocument.doctype.name) && (Y = "<!DOCTYPE " + f.ownerDocument.doctype.name + `>
|
|
5118
|
+
` + Y), He && Yt([Tn, Ln, Rn], (pe) => {
|
|
5119
5119
|
Y = ft(Y, pe, " ");
|
|
5120
|
-
}), R &&
|
|
5120
|
+
}), R && Ht ? R.createHTML(Y) : Y;
|
|
5121
5121
|
}, e.setConfig = function() {
|
|
5122
5122
|
let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5123
5123
|
Bn(b), In = !0;
|
|
@@ -6807,21 +6807,18 @@ const ci = class ci extends M {
|
|
|
6807
6807
|
}
|
|
6808
6808
|
// Run on every update of an observed value
|
|
6809
6809
|
updated() {
|
|
6810
|
-
var
|
|
6810
|
+
var o, a;
|
|
6811
6811
|
const e = this.getLastChunk();
|
|
6812
6812
|
if (!e) return;
|
|
6813
|
-
this.buffer += e
|
|
6814
|
-
|
|
6815
|
-
k.parse(this.buffer),
|
|
6816
|
-
{ ADD_ATTR: ["target"] }
|
|
6817
|
-
);
|
|
6818
|
-
if (this.includesImage(this.buffer))
|
|
6819
|
-
(i = this.contentRef.value) == null || i.appendChild(document.createElement("div")), this.buffer = "";
|
|
6813
|
+
if (this.buffer += e, this.includesImage(this.buffer))
|
|
6814
|
+
(o = this.contentRef.value) == null || o.appendChild(document.createElement("div")), this.buffer = "";
|
|
6820
6815
|
else if (this.buffer.includes("![")) return;
|
|
6821
|
-
const
|
|
6816
|
+
const t = k.parse(this.buffer), s = cs(t), i = Xo.sanitize(s, {
|
|
6817
|
+
ADD_ATTR: ["target"]
|
|
6818
|
+
}), r = (a = this.contentRef.value) == null ? void 0 : a.querySelector(
|
|
6822
6819
|
"div:last-of-type"
|
|
6823
6820
|
);
|
|
6824
|
-
|
|
6821
|
+
r && (r.innerHTML = i, this.applyCodeStyles(r)), this.autoScroll && this.scrollRef.value.scrollIntoView();
|
|
6825
6822
|
}
|
|
6826
6823
|
// Apply white-space: pre-wrap to <code> elements
|
|
6827
6824
|
applyCodeStyles(e) {
|
|
@@ -6998,7 +6995,7 @@ customElements.get("message-type-markdown") || customElements.define("message-ty
|
|
|
6998
6995
|
customElements.get("ace-lightbox") || customElements.define("ace-lightbox", vn);
|
|
6999
6996
|
const Dr = Do(M), hi = class hi extends Dr {
|
|
7000
6997
|
constructor() {
|
|
7001
|
-
super(...arguments), this.platform = null, this.entries = [], this.typing = !1, this.message = "", this.disabledInput = !1, this.disabledSkipToLatest = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.showAuthBanner = !1, this.authenticated = !1, this.isMuted = !1, this.conversationContentRef = oe(), this.conversationFeedRef = oe(), this.formRef = oe(), this.inputRef = oe(), this.scrollRef = oe(), this.counterRef = oe(), this.chatCurrentScrollPosition = 0, this.toast = new wu(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.conversationState$ = new
|
|
6998
|
+
super(...arguments), this.platform = null, this.entries = [], this.typing = !1, this.message = "", this.disabledInput = !1, this.disabledSkipToLatest = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.showAuthBanner = !1, this.authenticated = !1, this.isMuted = !1, this.conversationContentRef = oe(), this.conversationFeedRef = oe(), this.formRef = oe(), this.inputRef = oe(), this.scrollRef = oe(), this.counterRef = oe(), this.chatCurrentScrollPosition = 0, this.toast = new wu(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.conversationState$ = new F("waiting"), this.stateMachine = new Su(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
|
7002
6999
|
Je((e) => e ? e == null ? void 0 : e.provider$ : os(null))
|
|
7003
7000
|
), this.userTyping$ = new I();
|
|
7004
7001
|
}
|
|
@@ -7651,10 +7648,10 @@ se([
|
|
|
7651
7648
|
const Bh = (n) => {
|
|
7652
7649
|
var e, t;
|
|
7653
7650
|
return !!((e = n == null ? void 0 : n.outputPayload) != null && e.textOutputContent) && ((t = n == null ? void 0 : n.outputPayload) == null ? void 0 : t.isFinal);
|
|
7654
|
-
},
|
|
7651
|
+
}, Hh = (n) => {
|
|
7655
7652
|
var e;
|
|
7656
7653
|
return !!((e = n == null ? void 0 : n.outputPayload) != null && e.textStreamOutputContent);
|
|
7657
|
-
},
|
|
7654
|
+
}, Fh = (n) => {
|
|
7658
7655
|
var e;
|
|
7659
7656
|
return !!((e = n == null ? void 0 : n.initializeResponsePayload) != null && e.greetingMessage);
|
|
7660
7657
|
}, jh = (n) => !!(n != null && n.errorPayload), Ur = (n) => {
|
|
@@ -7663,7 +7660,7 @@ const Bh = (n) => {
|
|
|
7663
7660
|
}, qh = (n) => (n == null ? void 0 : n.type) === "handover";
|
|
7664
7661
|
class zr {
|
|
7665
7662
|
constructor(e, t, s) {
|
|
7666
|
-
this.settings = e, this.component = t, this.provider = s, this.started = !1, this.restartRequested = !1, this.currentSequenceNumber = 1, this.dialogId = null, this.isConnected$ = new
|
|
7663
|
+
this.settings = e, this.component = t, this.provider = s, this.started = !1, this.restartRequested = !1, this.currentSequenceNumber = 1, this.dialogId = null, this.isConnected$ = new F(!1), this.agent$ = new F({ name: "" }), this.messageSubject$ = new I(), this.systemEvents$ = new I(), this.store$ = new F({ messages: [], dialogId: null }), this.retries = 0, this.isConnected = () => this.isConnected$.asObservable(), this.agent = () => this.agent$.asObservable(), this.messages = () => this.messageSubject$.asObservable(), this.events = () => this.systemEvents$.asObservable(), this.restartSubscription$ = this.provider.shouldRestart$.subscribe(
|
|
7667
7664
|
(i) => {
|
|
7668
7665
|
this.restartRequested = i;
|
|
7669
7666
|
}
|
|
@@ -7794,7 +7791,7 @@ class zr {
|
|
|
7794
7791
|
});
|
|
7795
7792
|
return;
|
|
7796
7793
|
}
|
|
7797
|
-
|
|
7794
|
+
Fh(e) && e.initializeResponsePayload.greetingMessage.length > 0 ? (this.agent$.next({
|
|
7798
7795
|
name: e.initializeResponsePayload.agentName || ""
|
|
7799
7796
|
}), this.dialogId = e.initializeResponsePayload.dialogId, this.store$.pipe(Ie(1)).subscribe((t) => {
|
|
7800
7797
|
this.store$.next({
|
|
@@ -7812,7 +7809,7 @@ class zr {
|
|
|
7812
7809
|
text: e.inputPayload.textInputContent.text,
|
|
7813
7810
|
type: "text",
|
|
7814
7811
|
sender: "user"
|
|
7815
|
-
}) :
|
|
7812
|
+
}) : Hh(e) ? (e.outputPayload.isFinal && this.component.enableSubmit(), this.messageSubject$.next({
|
|
7816
7813
|
text: e.outputPayload.textStreamOutputContent.textPart || "",
|
|
7817
7814
|
isComplete: !!e.outputPayload.isFinal,
|
|
7818
7815
|
sequenceNumber: e.sequenceNumber,
|
|
@@ -7946,7 +7943,7 @@ bn.styles = [
|
|
|
7946
7943
|
`
|
|
7947
7944
|
];
|
|
7948
7945
|
ca([
|
|
7949
|
-
Bo({ context:
|
|
7946
|
+
Bo({ context: Hs }),
|
|
7950
7947
|
C({ attribute: !1 })
|
|
7951
7948
|
], bn.prototype, "application", 2);
|
|
7952
7949
|
bn = ca([
|
|
@@ -7954,7 +7951,7 @@ bn = ca([
|
|
|
7954
7951
|
], bn);
|
|
7955
7952
|
class Qs extends Cl {
|
|
7956
7953
|
constructor(e, t) {
|
|
7957
|
-
super(e, t), this.isConnected = !1, this.rehydrating = !1, this.lastReceivedMessageWasComplete = !0, this.isReady = !1, this.lastWrittenEntry = null, this.agent = this.createAgent(""), this.user = this.createUser(""), this.shouldRestartSubject$ = new
|
|
7954
|
+
super(e, t), this.isConnected = !1, this.rehydrating = !1, this.lastReceivedMessageWasComplete = !0, this.isReady = !1, this.lastWrittenEntry = null, this.agent = this.createAgent(""), this.user = this.createUser(""), this.shouldRestartSubject$ = new F(!1), this.connection = this.createConnection(t.properties), this.connection.store$.subscribe((s) => {
|
|
7958
7955
|
s = {
|
|
7959
7956
|
...s,
|
|
7960
7957
|
messages: s.messages.filter((i) => !i.reconnectResponsePayload)
|
|
@@ -8009,11 +8006,11 @@ class Qs extends Cl {
|
|
|
8009
8006
|
return this.setTypingState(!1), this.agent.print(e, "markdown");
|
|
8010
8007
|
}
|
|
8011
8008
|
printUser(e) {
|
|
8012
|
-
const t = cs(
|
|
8009
|
+
const t = cs(Fi(e));
|
|
8013
8010
|
return this.user.print(t);
|
|
8014
8011
|
}
|
|
8015
8012
|
printSystem(e) {
|
|
8016
|
-
const t = cs(
|
|
8013
|
+
const t = cs(Fi(e));
|
|
8017
8014
|
return this.system.print(t);
|
|
8018
8015
|
}
|
|
8019
8016
|
showRestartDialog() {
|