@telia-ace/widget-conversation-flamingo 1.1.67-rc.4 → 1.1.67-rc.6
Sign up to get free protection for your applications and to get access to all the features.
- package/conversation.d.ts +1 -0
- package/index.js +45 -44
- package/index.mjs +171 -173
- package/package.json +2 -2
package/index.mjs
CHANGED
@@ -9,7 +9,7 @@ var xt = (s, e, t) => {
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
10
10
|
e instanceof WeakSet ? e.add(s) : e.set(s, t);
|
11
11
|
};
|
12
|
-
var
|
12
|
+
var He = (s, e, t) => (Ei(s, e, "access private method"), t);
|
13
13
|
const Il = async (s) => {
|
14
14
|
s.registerComponent("conversation", Promise.resolve().then(() => Pl));
|
15
15
|
};
|
@@ -386,9 +386,9 @@ function $s(s) {
|
|
386
386
|
throw s;
|
387
387
|
});
|
388
388
|
}
|
389
|
-
function
|
389
|
+
function Ye() {
|
390
390
|
}
|
391
|
-
function
|
391
|
+
function qe(s) {
|
392
392
|
s();
|
393
393
|
}
|
394
394
|
var qt = function(s) {
|
@@ -436,7 +436,7 @@ var Ri = function() {
|
|
436
436
|
try {
|
437
437
|
t.next(e);
|
438
438
|
} catch (n) {
|
439
|
-
|
439
|
+
De(n);
|
440
440
|
}
|
441
441
|
}, s.prototype.error = function(e) {
|
442
442
|
var t = this.partialObserver;
|
@@ -444,17 +444,17 @@ var Ri = function() {
|
|
444
444
|
try {
|
445
445
|
t.error(e);
|
446
446
|
} catch (n) {
|
447
|
-
|
447
|
+
De(n);
|
448
448
|
}
|
449
449
|
else
|
450
|
-
|
450
|
+
De(e);
|
451
451
|
}, s.prototype.complete = function() {
|
452
452
|
var e = this.partialObserver;
|
453
453
|
if (e.complete)
|
454
454
|
try {
|
455
455
|
e.complete();
|
456
456
|
} catch (t) {
|
457
|
-
|
457
|
+
De(t);
|
458
458
|
}
|
459
459
|
}, s;
|
460
460
|
}(), It = function(s) {
|
@@ -481,7 +481,7 @@ var Ri = function() {
|
|
481
481
|
}
|
482
482
|
return e;
|
483
483
|
}(qt);
|
484
|
-
function
|
484
|
+
function De(s) {
|
485
485
|
$s(s);
|
486
486
|
}
|
487
487
|
function Ii(s) {
|
@@ -489,17 +489,17 @@ function Ii(s) {
|
|
489
489
|
}
|
490
490
|
var Mi = {
|
491
491
|
closed: !0,
|
492
|
-
next:
|
492
|
+
next: Ye,
|
493
493
|
error: Ii,
|
494
|
-
complete:
|
494
|
+
complete: Ye
|
495
495
|
}, Wt = function() {
|
496
496
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
497
497
|
}();
|
498
|
-
function
|
498
|
+
function Pe(s) {
|
499
499
|
return s;
|
500
500
|
}
|
501
501
|
function zi(s) {
|
502
|
-
return s.length === 0 ?
|
502
|
+
return s.length === 0 ? Pe : s.length === 1 ? s[0] : function(t) {
|
503
503
|
return s.reduce(function(n, i) {
|
504
504
|
return i(n);
|
505
505
|
}, t);
|
@@ -514,7 +514,7 @@ var C = function() {
|
|
514
514
|
return t.source = this, t.operator = e, t;
|
515
515
|
}, s.prototype.subscribe = function(e, t, n) {
|
516
516
|
var i = this, r = ji(e) ? e : new It(e, t, n);
|
517
|
-
return
|
517
|
+
return qe(function() {
|
518
518
|
var o = i, a = o.operator, l = o.source;
|
519
519
|
r.add(a ? a.call(r, l) : l ? i._subscribe(r) : i._trySubscribe(r));
|
520
520
|
}), r;
|
@@ -647,7 +647,7 @@ var Di = function(s) {
|
|
647
647
|
throw new Bi();
|
648
648
|
}, e.prototype.next = function(t) {
|
649
649
|
var n = this;
|
650
|
-
|
650
|
+
qe(function() {
|
651
651
|
var i, r;
|
652
652
|
if (n._throwIfClosed(), !n.isStopped) {
|
653
653
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
@@ -670,7 +670,7 @@ var Di = function(s) {
|
|
670
670
|
});
|
671
671
|
}, e.prototype.error = function(t) {
|
672
672
|
var n = this;
|
673
|
-
|
673
|
+
qe(function() {
|
674
674
|
if (n._throwIfClosed(), !n.isStopped) {
|
675
675
|
n.hasError = n.isStopped = !0, n.thrownError = t;
|
676
676
|
for (var i = n.observers; i.length; )
|
@@ -679,7 +679,7 @@ var Di = function(s) {
|
|
679
679
|
});
|
680
680
|
}, e.prototype.complete = function() {
|
681
681
|
var t = this;
|
682
|
-
|
682
|
+
qe(function() {
|
683
683
|
if (t._throwIfClosed(), !t.isStopped) {
|
684
684
|
t.isStopped = !0;
|
685
685
|
for (var n = t.observers; n.length; )
|
@@ -755,7 +755,7 @@ var Di = function(s) {
|
|
755
755
|
}, e.prototype.next = function(t) {
|
756
756
|
s.prototype.next.call(this, this._value = t);
|
757
757
|
}, e;
|
758
|
-
}(S),
|
758
|
+
}(S), Re = new C(function(s) {
|
759
759
|
return s.complete();
|
760
760
|
});
|
761
761
|
function Ni(s) {
|
@@ -1052,7 +1052,7 @@ function Mt() {
|
|
1052
1052
|
var t = Qt(s);
|
1053
1053
|
return lt(s, t);
|
1054
1054
|
}
|
1055
|
-
function
|
1055
|
+
function Qe(s, e) {
|
1056
1056
|
return Y(function(t, n) {
|
1057
1057
|
var i = 0;
|
1058
1058
|
t.subscribe(P(n, function(r) {
|
@@ -1065,7 +1065,7 @@ function ir(s, e) {
|
|
1065
1065
|
return sr(e) ? s.apply(void 0, J([], q(e))) : s(e);
|
1066
1066
|
}
|
1067
1067
|
function Rs(s) {
|
1068
|
-
return
|
1068
|
+
return Qe(function(e) {
|
1069
1069
|
return ir(s, e);
|
1070
1070
|
});
|
1071
1071
|
}
|
@@ -1103,11 +1103,11 @@ function pr() {
|
|
1103
1103
|
return lt([], t);
|
1104
1104
|
var a = new C(dr(r, t, o ? function(l) {
|
1105
1105
|
return ur(o, l);
|
1106
|
-
} :
|
1106
|
+
} : Pe));
|
1107
1107
|
return n ? a.pipe(Rs(n)) : a;
|
1108
1108
|
}
|
1109
1109
|
function dr(s, e, t) {
|
1110
|
-
return t === void 0 && (t =
|
1110
|
+
return t === void 0 && (t = Pe), function(n) {
|
1111
1111
|
Sn(e, function() {
|
1112
1112
|
for (var i = s.length, r = new Array(i), o = i, a = i, l = function(h) {
|
1113
1113
|
Sn(e, function() {
|
@@ -1163,7 +1163,7 @@ function fr(s, e, t, n, i, r, o, a) {
|
|
1163
1163
|
}
|
1164
1164
|
function Gt(s, e, t) {
|
1165
1165
|
return t === void 0 && (t = 1 / 0), y(e) ? Gt(function(n, i) {
|
1166
|
-
return
|
1166
|
+
return Qe(function(r, o) {
|
1167
1167
|
return e(n, r, i, o);
|
1168
1168
|
})(j(s(n, i)));
|
1169
1169
|
}, t) : (typeof e == "number" && (t = e), Y(function(n, i) {
|
@@ -1171,12 +1171,12 @@ function Gt(s, e, t) {
|
|
1171
1171
|
}));
|
1172
1172
|
}
|
1173
1173
|
function gr(s) {
|
1174
|
-
return s === void 0 && (s = 1 / 0), Gt(
|
1174
|
+
return s === void 0 && (s = 1 / 0), Gt(Pe, s);
|
1175
1175
|
}
|
1176
1176
|
var mr = ["addListener", "removeListener"], vr = ["addEventListener", "removeEventListener"], br = ["on", "off"];
|
1177
|
-
function
|
1177
|
+
function Ke(s, e, t, n) {
|
1178
1178
|
if (y(t) && (n = t, t = void 0), n)
|
1179
|
-
return
|
1179
|
+
return Ke(s, e, t).pipe(Rs(n));
|
1180
1180
|
var i = q(xr(s) ? vr.map(function(a) {
|
1181
1181
|
return function(l) {
|
1182
1182
|
return s[a](e, l, t);
|
@@ -1184,7 +1184,7 @@ function Ye(s, e, t, n) {
|
|
1184
1184
|
}) : $r(s) ? mr.map(Cn(s, e)) : yr(s) ? br.map(Cn(s, e)) : [], 2), r = i[0], o = i[1];
|
1185
1185
|
if (!r && Kt(s))
|
1186
1186
|
return Gt(function(a) {
|
1187
|
-
return
|
1187
|
+
return Ke(a, e, t);
|
1188
1188
|
})(j(s));
|
1189
1189
|
if (!r)
|
1190
1190
|
throw new TypeError("Invalid event target");
|
@@ -1219,11 +1219,11 @@ function wr() {
|
|
1219
1219
|
for (var s = [], e = 0; e < arguments.length; e++)
|
1220
1220
|
s[e] = arguments[e];
|
1221
1221
|
var t = Qt(s), n = Fi(s, 1 / 0), i = s;
|
1222
|
-
return i.length ? i.length === 1 ? j(i[0]) : gr(n)(lt(i, t)) :
|
1222
|
+
return i.length ? i.length === 1 ? j(i[0]) : gr(n)(lt(i, t)) : Re;
|
1223
1223
|
}
|
1224
1224
|
function zt(s) {
|
1225
1225
|
return s <= 0 ? function() {
|
1226
|
-
return
|
1226
|
+
return Re;
|
1227
1227
|
} : Y(function(e, t) {
|
1228
1228
|
var n = 0;
|
1229
1229
|
e.subscribe(P(t, function(i) {
|
@@ -1253,7 +1253,7 @@ function An(s) {
|
|
1253
1253
|
return Y(function(e, t) {
|
1254
1254
|
j(s).subscribe(P(t, function() {
|
1255
1255
|
return t.complete();
|
1256
|
-
},
|
1256
|
+
}, Ye)), !t.closed && e.subscribe(t);
|
1257
1257
|
});
|
1258
1258
|
}
|
1259
1259
|
function Ut() {
|
@@ -1265,8 +1265,8 @@ function Ut() {
|
|
1265
1265
|
return !1;
|
1266
1266
|
}), l = !1, c = function(u) {
|
1267
1267
|
j(s[u]).subscribe(P(i, function(p) {
|
1268
|
-
o[u] = p, !l && !a[u] && (a[u] = !0, (l = a.every(
|
1269
|
-
},
|
1268
|
+
o[u] = p, !l && !a[u] && (a[u] = !0, (l = a.every(Pe)) && (a = null));
|
1269
|
+
}, Ye));
|
1270
1270
|
}, h = 0; h < r; h++)
|
1271
1271
|
c(h);
|
1272
1272
|
n.subscribe(P(i, function(u) {
|
@@ -1439,7 +1439,7 @@ class Ml {
|
|
1439
1439
|
* Copyright 2019 Google LLC
|
1440
1440
|
* SPDX-License-Identifier: BSD-3-Clause
|
1441
1441
|
*/
|
1442
|
-
const
|
1442
|
+
const We = globalThis, Xt = We.ShadowRoot && (We.ShadyCSS === void 0 || We.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Jt = Symbol(), En = /* @__PURE__ */ new WeakMap();
|
1443
1443
|
let Ms = class {
|
1444
1444
|
constructor(e, t, n) {
|
1445
1445
|
if (this._$cssResult$ = !0, n !== Jt)
|
@@ -1473,7 +1473,7 @@ const Cr = (s) => new Ms(typeof s == "string" ? s : s + "", void 0, Jt), A = (s,
|
|
1473
1473
|
s.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
1474
1474
|
else
|
1475
1475
|
for (const t of e) {
|
1476
|
-
const n = document.createElement("style"), i =
|
1476
|
+
const n = document.createElement("style"), i = We.litNonce;
|
1477
1477
|
i !== void 0 && n.setAttribute("nonce", i), n.textContent = t.cssText, s.appendChild(n);
|
1478
1478
|
}
|
1479
1479
|
}, Tn = Xt ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((e) => {
|
@@ -1487,7 +1487,7 @@ const Cr = (s) => new Ms(typeof s == "string" ? s : s + "", void 0, Jt), A = (s,
|
|
1487
1487
|
* Copyright 2017 Google LLC
|
1488
1488
|
* SPDX-License-Identifier: BSD-3-Clause
|
1489
1489
|
*/
|
1490
|
-
const { is: Er, defineProperty: Tr, getOwnPropertyDescriptor: Or, getOwnPropertyNames: Lr, getOwnPropertySymbols: Pr, getPrototypeOf: Rr } = Object, Z = globalThis, On = Z.trustedTypes, Ir = On ? On.emptyScript : "", _t = Z.reactiveElementPolyfillSupport, be = (s, e) => s,
|
1490
|
+
const { is: Er, defineProperty: Tr, getOwnPropertyDescriptor: Or, getOwnPropertyNames: Lr, getOwnPropertySymbols: Pr, getPrototypeOf: Rr } = Object, Z = globalThis, On = Z.trustedTypes, Ir = On ? On.emptyScript : "", _t = Z.reactiveElementPolyfillSupport, be = (s, e) => s, Ge = { toAttribute(s, e) {
|
1491
1491
|
switch (e) {
|
1492
1492
|
case Boolean:
|
1493
1493
|
s = s ? Ir : null;
|
@@ -1515,7 +1515,7 @@ const { is: Er, defineProperty: Tr, getOwnPropertyDescriptor: Or, getOwnProperty
|
|
1515
1515
|
}
|
1516
1516
|
}
|
1517
1517
|
return t;
|
1518
|
-
} }, Vt = (s, e) => !Er(s, e), Ln = { attribute: !0, type: String, converter:
|
1518
|
+
} }, Vt = (s, e) => !Er(s, e), Ln = { attribute: !0, type: String, converter: Ge, reflect: !1, hasChanged: Vt };
|
1519
1519
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Z.litPropertyMetadata ?? (Z.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
1520
1520
|
let re = class extends HTMLElement {
|
1521
1521
|
static addInitializer(e) {
|
@@ -1636,7 +1636,7 @@ let re = class extends HTMLElement {
|
|
1636
1636
|
var r;
|
1637
1637
|
const n = this.constructor.elementProperties.get(e), i = this.constructor._$Eu(e, n);
|
1638
1638
|
if (i !== void 0 && n.reflect === !0) {
|
1639
|
-
const o = (((r = n.converter) == null ? void 0 : r.toAttribute) !== void 0 ? n.converter :
|
1639
|
+
const o = (((r = n.converter) == null ? void 0 : r.toAttribute) !== void 0 ? n.converter : Ge).toAttribute(t, n.type);
|
1640
1640
|
this._$Em = e, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
|
1641
1641
|
}
|
1642
1642
|
}
|
@@ -1644,7 +1644,7 @@ let re = class extends HTMLElement {
|
|
1644
1644
|
var r;
|
1645
1645
|
const n = this.constructor, i = n._$Eh.get(e);
|
1646
1646
|
if (i !== void 0 && this._$Em !== i) {
|
1647
|
-
const o = n.getPropertyOptions(i), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? o.converter :
|
1647
|
+
const o = n.getPropertyOptions(i), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? o.converter : Ge;
|
1648
1648
|
this._$Em = i, this[i] = a.fromAttribute(t, o.type), this._$Em = null;
|
1649
1649
|
}
|
1650
1650
|
}
|
@@ -1734,7 +1734,7 @@ re.elementStyles = [], re.shadowRootOptions = { mode: "open" }, re[be("elementPr
|
|
1734
1734
|
* Copyright 2017 Google LLC
|
1735
1735
|
* SPDX-License-Identifier: BSD-3-Clause
|
1736
1736
|
*/
|
1737
|
-
const $e = globalThis,
|
1737
|
+
const $e = globalThis, Xe = $e.trustedTypes, Pn = Xe ? Xe.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, zs = "$lit$", N = `lit$${(Math.random() + "").slice(9)}$`, Us = "?" + N, Mr = `<${Us}>`, V = document, Se = () => V.createComment(""), Ce = (s) => s === null || typeof s != "object" && typeof s != "function", js = Array.isArray, zr = (s) => js(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", St = `[
|
1738
1738
|
\f\r]`, me = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Rn = /-->/g, In = />/g, K = RegExp(`>|${St}(?:([^\\s"'>=/]+)(${St}*=${St}*(?:[^
|
1739
1739
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), Mn = /'/g, zn = /"/g, Hs = /^(?:script|style|textarea|title)$/i, Ur = (s) => (e, ...t) => ({ _$litType$: s, strings: e, values: t }), m = Ur(1), W = Symbol.for("lit-noChange"), g = Symbol.for("lit-nothing"), Un = /* @__PURE__ */ new WeakMap(), X = V.createTreeWalker(V, 129);
|
1740
1740
|
function Ds(s, e) {
|
@@ -1755,13 +1755,13 @@ const jr = (s, e) => {
|
|
1755
1755
|
}
|
1756
1756
|
return [Ds(s, r + (s[t] || "<?>") + (e === 2 ? "</svg>" : "")), n];
|
1757
1757
|
};
|
1758
|
-
class
|
1758
|
+
class Ae {
|
1759
1759
|
constructor({ strings: e, _$litType$: t }, n) {
|
1760
1760
|
let i;
|
1761
1761
|
this.parts = [];
|
1762
1762
|
let r = 0, o = 0;
|
1763
1763
|
const a = e.length - 1, l = this.parts, [c, h] = jr(e, t);
|
1764
|
-
if (this.el =
|
1764
|
+
if (this.el = Ae.createElement(c, n), X.currentNode = this.el.content, t === 2) {
|
1765
1765
|
const u = this.el.content.firstChild;
|
1766
1766
|
u.replaceWith(...u.childNodes);
|
1767
1767
|
}
|
@@ -1777,10 +1777,10 @@ class Se {
|
|
1777
1777
|
if (Hs.test(i.tagName)) {
|
1778
1778
|
const u = i.textContent.split(N), p = u.length - 1;
|
1779
1779
|
if (p > 0) {
|
1780
|
-
i.textContent =
|
1780
|
+
i.textContent = Xe ? Xe.emptyScript : "";
|
1781
1781
|
for (let d = 0; d < p; d++)
|
1782
|
-
i.append(u[d],
|
1783
|
-
i.append(u[p],
|
1782
|
+
i.append(u[d], Se()), X.nextNode(), l.push({ type: 2, index: ++r });
|
1783
|
+
i.append(u[p], Se());
|
1784
1784
|
}
|
1785
1785
|
}
|
1786
1786
|
} else if (i.nodeType === 8)
|
@@ -1804,7 +1804,7 @@ function fe(s, e, t = s, n) {
|
|
1804
1804
|
if (e === W)
|
1805
1805
|
return e;
|
1806
1806
|
let i = n !== void 0 ? (o = t._$Co) == null ? void 0 : o[n] : t._$Cl;
|
1807
|
-
const r =
|
1807
|
+
const r = Ce(e) ? void 0 : e._$litDirective$;
|
1808
1808
|
return (i == null ? void 0 : i.constructor) !== r && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), r === void 0 ? i = void 0 : (i = new r(s), i._$AT(s, t, n)), n !== void 0 ? (t._$Co ?? (t._$Co = []))[n] = i : t._$Cl = i), i !== void 0 && (e = fe(s, i._$AS(s, e.values), i, n)), e;
|
1809
1809
|
}
|
1810
1810
|
class Hr {
|
@@ -1824,7 +1824,7 @@ class Hr {
|
|
1824
1824
|
for (; l !== void 0; ) {
|
1825
1825
|
if (o === l.index) {
|
1826
1826
|
let c;
|
1827
|
-
l.type === 2 ? c = new
|
1827
|
+
l.type === 2 ? c = new Ie(r, r.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, e) : l.type === 6 && (c = new Fr(r, this, e)), this._$AV.push(c), l = n[++a];
|
1828
1828
|
}
|
1829
1829
|
o !== (l == null ? void 0 : l.index) && (r = X.nextNode(), o++);
|
1830
1830
|
}
|
@@ -1836,7 +1836,7 @@ class Hr {
|
|
1836
1836
|
n !== void 0 && (n.strings !== void 0 ? (n._$AI(e, n, t), t += n.strings.length - 2) : n._$AI(e[t])), t++;
|
1837
1837
|
}
|
1838
1838
|
}
|
1839
|
-
class
|
1839
|
+
class Ie {
|
1840
1840
|
get _$AU() {
|
1841
1841
|
var e;
|
1842
1842
|
return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
|
@@ -1856,7 +1856,7 @@ class Pe {
|
|
1856
1856
|
return this._$AB;
|
1857
1857
|
}
|
1858
1858
|
_$AI(e, t = this) {
|
1859
|
-
e = fe(this, e, t),
|
1859
|
+
e = fe(this, e, t), Ce(e) ? e === g || e == null || e === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : e !== this._$AH && e !== W && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : zr(e) ? this.k(e) : this._(e);
|
1860
1860
|
}
|
1861
1861
|
S(e) {
|
1862
1862
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
@@ -1865,11 +1865,11 @@ class Pe {
|
|
1865
1865
|
this._$AH !== e && (this._$AR(), this._$AH = this.S(e));
|
1866
1866
|
}
|
1867
1867
|
_(e) {
|
1868
|
-
this._$AH !== g &&
|
1868
|
+
this._$AH !== g && Ce(this._$AH) ? this._$AA.nextSibling.data = e : this.T(V.createTextNode(e)), this._$AH = e;
|
1869
1869
|
}
|
1870
1870
|
$(e) {
|
1871
1871
|
var r;
|
1872
|
-
const { values: t, _$litType$: n } = e, i = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el =
|
1872
|
+
const { values: t, _$litType$: n } = e, i = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = Ae.createElement(Ds(n.h, n.h[0]), this.options)), n);
|
1873
1873
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === i)
|
1874
1874
|
this._$AH.p(t);
|
1875
1875
|
else {
|
@@ -1879,14 +1879,14 @@ class Pe {
|
|
1879
1879
|
}
|
1880
1880
|
_$AC(e) {
|
1881
1881
|
let t = Un.get(e.strings);
|
1882
|
-
return t === void 0 && Un.set(e.strings, t = new
|
1882
|
+
return t === void 0 && Un.set(e.strings, t = new Ae(e)), t;
|
1883
1883
|
}
|
1884
1884
|
k(e) {
|
1885
1885
|
js(this._$AH) || (this._$AH = [], this._$AR());
|
1886
1886
|
const t = this._$AH;
|
1887
1887
|
let n, i = 0;
|
1888
1888
|
for (const r of e)
|
1889
|
-
i === t.length ? t.push(n = new
|
1889
|
+
i === t.length ? t.push(n = new Ie(this.S(Se()), this.S(Se()), this, this.options)) : n = t[i], n._$AI(r), i++;
|
1890
1890
|
i < t.length && (this._$AR(n && n._$AB.nextSibling, i), t.length = i);
|
1891
1891
|
}
|
1892
1892
|
_$AR(e = this._$AA.nextSibling, t) {
|
@@ -1915,12 +1915,12 @@ class ht {
|
|
1915
1915
|
const r = this.strings;
|
1916
1916
|
let o = !1;
|
1917
1917
|
if (r === void 0)
|
1918
|
-
e = fe(this, e, t, 0), o = !
|
1918
|
+
e = fe(this, e, t, 0), o = !Ce(e) || e !== this._$AH && e !== W, o && (this._$AH = e);
|
1919
1919
|
else {
|
1920
1920
|
const a = e;
|
1921
1921
|
let l, c;
|
1922
1922
|
for (e = r[0], l = 0; l < r.length - 1; l++)
|
1923
|
-
c = fe(this, a[n + l], t, l), c === W && (c = this._$AH[l]), o || (o = !
|
1923
|
+
c = fe(this, a[n + l], t, l), c === W && (c = this._$AH[l]), o || (o = !Ce(c) || c !== this._$AH[l]), c === g ? e = g : e !== g && (e += (c ?? "") + r[l + 1]), this._$AH[l] = c;
|
1924
1924
|
}
|
1925
1925
|
o && !i && this.j(e);
|
1926
1926
|
}
|
@@ -1971,13 +1971,13 @@ class Fr {
|
|
1971
1971
|
}
|
1972
1972
|
}
|
1973
1973
|
const Ct = $e.litHtmlPolyfillSupport;
|
1974
|
-
Ct == null || Ct(
|
1974
|
+
Ct == null || Ct(Ae, Ie), ($e.litHtmlVersions ?? ($e.litHtmlVersions = [])).push("3.1.2");
|
1975
1975
|
const Zr = (s, e, t) => {
|
1976
1976
|
const n = (t == null ? void 0 : t.renderBefore) ?? e;
|
1977
1977
|
let i = n._$litPart$;
|
1978
1978
|
if (i === void 0) {
|
1979
1979
|
const r = (t == null ? void 0 : t.renderBefore) ?? null;
|
1980
|
-
n._$litPart$ = i = new
|
1980
|
+
n._$litPart$ = i = new Ie(e.insertBefore(Se(), r), r, void 0, t ?? {});
|
1981
1981
|
}
|
1982
1982
|
return i._$AI(s), i;
|
1983
1983
|
};
|
@@ -2100,7 +2100,7 @@ const qr = { name: "alert", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.
|
|
2100
2100
|
transformTagName: !1,
|
2101
2101
|
attachStyles: !0
|
2102
2102
|
};
|
2103
|
-
let ae, Bs, ut, Ns = !1,
|
2103
|
+
let ae, Bs, ut, Ns = !1, Je = !1, en = !1, E = !1, Dn = null, jt = !1;
|
2104
2104
|
const pt = typeof window < "u" ? window : {}, z = pt.document || { head: {} }, Fs = pt.HTMLElement || class {
|
2105
2105
|
}, _ = {
|
2106
2106
|
$flags$: 0,
|
@@ -2136,17 +2136,17 @@ const pt = typeof window < "u" ? window : {}, z = pt.document || { head: {} }, F
|
|
2136
2136
|
try {
|
2137
2137
|
oe.lazyLoad || s.$hostElement$[e](t);
|
2138
2138
|
} catch (n) {
|
2139
|
-
|
2139
|
+
Me(n);
|
2140
2140
|
}
|
2141
2141
|
}, no = (s, e) => e & 4 ? z : e & 8 ? pt : e & 16 ? z.body : s, so = (s) => Jr ? {
|
2142
2142
|
passive: (s & 1) !== 0,
|
2143
2143
|
capture: (s & 2) !== 0
|
2144
2144
|
} : (s & 2) !== 0, Bn = "http://www.w3.org/1999/xlink", ee = (s, e = "") => () => {
|
2145
2145
|
}, Nn = /* @__PURE__ */ new WeakMap(), io = (s, e, t) => {
|
2146
|
-
let n =
|
2147
|
-
eo && t ? (n = n || new CSSStyleSheet(), n.replace(e)) : n = e,
|
2146
|
+
let n = tt.get(s);
|
2147
|
+
eo && t ? (n = n || new CSSStyleSheet(), n.replace(e)) : n = e, tt.set(s, n);
|
2148
2148
|
}, ro = (s, e, t, n) => {
|
2149
|
-
let i = qs(e, t), r =
|
2149
|
+
let i = qs(e, t), r = tt.get(i);
|
2150
2150
|
if (s = s.nodeType === 11 ? s : z, r)
|
2151
2151
|
if (typeof r == "string") {
|
2152
2152
|
s = s.head || s;
|
@@ -2162,7 +2162,7 @@ const pt = typeof window < "u" ? window : {}, z = pt.document || { head: {} }, F
|
|
2162
2162
|
let n = null, i = null, r = null, o = !1, a = !1, l = [];
|
2163
2163
|
const c = (u) => {
|
2164
2164
|
for (let p = 0; p < u.length; p++)
|
2165
|
-
n = u[p], Array.isArray(n) ? c(n) : n != null && typeof n != "boolean" && ((o = typeof s != "function" && !tn(n)) && (n = String(n)), o && a ? l[l.length - 1].$text$ += n : l.push(o ?
|
2165
|
+
n = u[p], Array.isArray(n) ? c(n) : n != null && typeof n != "boolean" && ((o = typeof s != "function" && !tn(n)) && (n = String(n)), o && a ? l[l.length - 1].$text$ += n : l.push(o ? Ve(null, n) : n), a = o);
|
2166
2166
|
};
|
2167
2167
|
if (c(t), e) {
|
2168
2168
|
e.key && (i = e.key), e.name && (r = e.name);
|
@@ -2173,9 +2173,9 @@ const pt = typeof window < "u" ? window : {}, z = pt.document || { head: {} }, F
|
|
2173
2173
|
}
|
2174
2174
|
if (typeof s == "function")
|
2175
2175
|
return s(e === null ? {} : e, l, po);
|
2176
|
-
const h =
|
2176
|
+
const h = Ve(s, null);
|
2177
2177
|
return h.$attrs$ = e, l.length > 0 && (h.$children$ = l), h.$key$ = i, h.$name$ = r, h;
|
2178
|
-
},
|
2178
|
+
}, Ve = (s, e) => {
|
2179
2179
|
const t = {
|
2180
2180
|
$flags$: 0,
|
2181
2181
|
$tag$: s,
|
@@ -2199,7 +2199,7 @@ const pt = typeof window < "u" ? window : {}, z = pt.document || { head: {} }, F
|
|
2199
2199
|
const t = Object.assign({}, s.vattrs);
|
2200
2200
|
return s.vkey && (t.key = s.vkey), s.vname && (t.name = s.vname), ue(s.vtag, t, ...s.vchildren || []);
|
2201
2201
|
}
|
2202
|
-
const e =
|
2202
|
+
const e = Ve(s.vtag, s.vtext);
|
2203
2203
|
return e.$attrs$ = s.vattrs, e.$children$ = s.vchildren, e.$key$ = s.vkey, e.$name$ = s.vname, e;
|
2204
2204
|
}, qn = (s, e, t, n, i, r) => {
|
2205
2205
|
if (t !== n) {
|
@@ -2239,7 +2239,7 @@ const pt = typeof window < "u" ? window : {}, z = pt.document || { head: {} }, F
|
|
2239
2239
|
n in o || qn(i, n, r[n], void 0, t, e.$flags$);
|
2240
2240
|
for (n in o)
|
2241
2241
|
qn(i, n, r[n], o[n], t, e.$flags$);
|
2242
|
-
},
|
2242
|
+
}, et = (s, e, t, n) => {
|
2243
2243
|
let i = e.$children$[t], r = 0, o, a, l;
|
2244
2244
|
if (Ns || (en = !0, i.$tag$ === "slot" && (ae && n.classList.add(ae + "-s"), i.$flags$ |= i.$children$ ? (
|
2245
2245
|
// slot element has fallback content
|
@@ -2254,25 +2254,25 @@ const pt = typeof window < "u" ? window : {}, z = pt.document || { head: {} }, F
|
|
2254
2254
|
else {
|
2255
2255
|
if (E || (E = i.$tag$ === "svg"), o = i.$elm$ = z.createElementNS(E ? lo : co, i.$flags$ & 2 ? "slot-fb" : i.$tag$), E && i.$tag$ === "foreignObject" && (E = !1), Ws(null, i, E), ho(ae) && o["s-si"] !== ae && o.classList.add(o["s-si"] = ae), i.$children$)
|
2256
2256
|
for (r = 0; r < i.$children$.length; ++r)
|
2257
|
-
a =
|
2257
|
+
a = et(s, i, r, o), a && o.appendChild(a);
|
2258
2258
|
i.$tag$ === "svg" ? E = !1 : o.tagName === "foreignObject" && (E = !0);
|
2259
2259
|
}
|
2260
|
-
return o["s-hn"] = ut, i.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = Bs, o["s-sn"] = i.$name$ || "", l = s && s.$children$ && s.$children$[t], l && l.$tag$ === i.$tag$ && s.$elm$ &&
|
2261
|
-
},
|
2260
|
+
return o["s-hn"] = ut, i.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = Bs, o["s-sn"] = i.$name$ || "", l = s && s.$children$ && s.$children$[t], l && l.$tag$ === i.$tag$ && s.$elm$ && Ee(s.$elm$, !1)), o;
|
2261
|
+
}, Ee = (s, e) => {
|
2262
2262
|
_.$flags$ |= 1;
|
2263
2263
|
const t = s.childNodes;
|
2264
2264
|
for (let n = t.length - 1; n >= 0; n--) {
|
2265
2265
|
const i = t[n];
|
2266
|
-
i["s-hn"] !== ut && i["s-ol"] && (Ks(i).insertBefore(i, sn(i)), i["s-ol"].remove(), i["s-ol"] = void 0, en = !0), e &&
|
2266
|
+
i["s-hn"] !== ut && i["s-ol"] && (Ks(i).insertBefore(i, sn(i)), i["s-ol"].remove(), i["s-ol"] = void 0, en = !0), e && Ee(i, e);
|
2267
2267
|
}
|
2268
2268
|
_.$flags$ &= -2;
|
2269
2269
|
}, Ys = (s, e, t, n, i, r) => {
|
2270
2270
|
let o = s["s-cr"] && s["s-cr"].parentNode || s, a;
|
2271
2271
|
for (o.shadowRoot && o.tagName === ut && (o = o.shadowRoot); i <= r; ++i)
|
2272
|
-
n[i] && (a =
|
2272
|
+
n[i] && (a = et(null, t, i, s), a && (n[i].$elm$ = a, o.insertBefore(a, sn(e))));
|
2273
2273
|
}, Qs = (s, e, t, n, i) => {
|
2274
2274
|
for (; e <= t; ++e)
|
2275
|
-
(n = s[e]) && (i = n.$elm$, Js(n),
|
2275
|
+
(n = s[e]) && (i = n.$elm$, Js(n), Je = !0, i["s-ol"] ? i["s-ol"].remove() : Ee(i, !0), i.remove());
|
2276
2276
|
}, mo = (s, e, t, n) => {
|
2277
2277
|
let i = 0, r = 0, o = 0, a = 0, l = e.length - 1, c = e[0], h = e[l], u = n.length - 1, p = n[0], d = n[u], v, f;
|
2278
2278
|
for (; i <= l && r <= u; )
|
@@ -2284,24 +2284,24 @@ const pt = typeof window < "u" ? window : {}, z = pt.document || { head: {} }, F
|
|
2284
2284
|
p = n[++r];
|
2285
2285
|
else if (d == null)
|
2286
2286
|
d = n[--u];
|
2287
|
-
else if (
|
2287
|
+
else if (Be(c, p))
|
2288
2288
|
le(c, p), c = e[++i], p = n[++r];
|
2289
|
-
else if (
|
2289
|
+
else if (Be(h, d))
|
2290
2290
|
le(h, d), h = e[--l], d = n[--u];
|
2291
|
-
else if (
|
2292
|
-
(c.$tag$ === "slot" || d.$tag$ === "slot") &&
|
2293
|
-
else if (
|
2294
|
-
(c.$tag$ === "slot" || d.$tag$ === "slot") &&
|
2291
|
+
else if (Be(c, d))
|
2292
|
+
(c.$tag$ === "slot" || d.$tag$ === "slot") && Ee(c.$elm$.parentNode, !1), le(c, d), s.insertBefore(c.$elm$, h.$elm$.nextSibling), c = e[++i], d = n[--u];
|
2293
|
+
else if (Be(h, p))
|
2294
|
+
(c.$tag$ === "slot" || d.$tag$ === "slot") && Ee(h.$elm$.parentNode, !1), le(h, p), s.insertBefore(h.$elm$, c.$elm$), h = e[--l], p = n[++r];
|
2295
2295
|
else {
|
2296
2296
|
for (o = -1, a = i; a <= l; ++a)
|
2297
2297
|
if (e[a] && e[a].$key$ !== null && e[a].$key$ === p.$key$) {
|
2298
2298
|
o = a;
|
2299
2299
|
break;
|
2300
2300
|
}
|
2301
|
-
o >= 0 ? (f = e[o], f.$tag$ !== p.$tag$ ? v =
|
2301
|
+
o >= 0 ? (f = e[o], f.$tag$ !== p.$tag$ ? v = et(e && e[r], t, o, s) : (le(f, p), e[o] = void 0, v = f.$elm$), p = n[++r]) : (v = et(e && e[r], t, r, s), p = n[++r]), v && Ks(c.$elm$).insertBefore(v, sn(c.$elm$));
|
2302
2302
|
}
|
2303
2303
|
i > l ? Ys(s, n[u + 1] == null ? null : n[u + 1].$elm$, t, n, r, u) : r > u && Qs(e, i, l);
|
2304
|
-
},
|
2304
|
+
}, Be = (s, e) => s.$tag$ === e.$tag$ ? s.$tag$ === "slot" ? s.$name$ === e.$name$ : s.$key$ === e.$key$ : !1, sn = (s) => s && s["s-ol"] || s, Ks = (s) => (s["s-ol"] ? s["s-ol"] : s).parentNode, le = (s, e) => {
|
2305
2305
|
const t = e.$elm$ = s.$elm$, n = s.$children$, i = e.$children$, r = e.$tag$, o = e.$text$;
|
2306
2306
|
let a;
|
2307
2307
|
o === null ? (E = r === "svg" ? !0 : r === "foreignObject" ? !1 : E, r === "slot" || Ws(s, e, E), n !== null && i !== null ? mo(t, n, e, i) : i !== null ? (s.$text$ !== null && (t.textContent = ""), Ys(t, null, e, i, 0, i.length - 1)) : n !== null && Qs(n, 0, n.length - 1), E && r === "svg" && (E = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : s.$text$ !== o && (t.data = o);
|
@@ -2328,7 +2328,7 @@ const pt = typeof window < "u" ? window : {}, z = pt.document || { head: {} }, F
|
|
2328
2328
|
for (; a < c; a++) {
|
2329
2329
|
if (e = l[a], e["s-sr"] && (t = e["s-cr"]) && t.parentNode)
|
2330
2330
|
for (n = t.parentNode.childNodes, i = e["s-sn"], o = n.length - 1; o >= 0; o--)
|
2331
|
-
t = n[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (Yn(t, i) ? (r = L.find((h) => h.$nodeToRelocate$ === t),
|
2331
|
+
t = n[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (Yn(t, i) ? (r = L.find((h) => h.$nodeToRelocate$ === t), Je = !0, t["s-sn"] = t["s-sn"] || i, r ? r.$slotRefNode$ = e : L.push({
|
2332
2332
|
$slotRefNode$: e,
|
2333
2333
|
$nodeToRelocate$: t
|
2334
2334
|
}), t["s-sr"] && L.map((h) => {
|
@@ -2341,8 +2341,8 @@ const pt = typeof window < "u" ? window : {}, z = pt.document || { head: {} }, F
|
|
2341
2341
|
}, Yn = (s, e) => s.nodeType === 1 ? s.getAttribute("slot") === null && e === "" || s.getAttribute("slot") === e : s["s-sn"] === e ? !0 : e === "", Js = (s) => {
|
2342
2342
|
s.$attrs$ && s.$attrs$.ref && s.$attrs$.ref(null), s.$children$ && s.$children$.map(Js);
|
2343
2343
|
}, vo = (s, e) => {
|
2344
|
-
const t = s.$hostElement$, n = s.$cmpMeta$, i = s.$vnode$ ||
|
2345
|
-
ut = t.tagName, n.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, n.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, s.$vnode$ = r, r.$elm$ = i.$elm$ = t.shadowRoot || t, ae = t["s-sc"], Bs = t["s-cr"], Ns = (n.$flags$ & 1) !== 0,
|
2344
|
+
const t = s.$hostElement$, n = s.$cmpMeta$, i = s.$vnode$ || Ve(null, null), r = uo(e) ? e : ue(null, null, e);
|
2345
|
+
ut = t.tagName, n.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, n.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, s.$vnode$ = r, r.$elm$ = i.$elm$ = t.shadowRoot || t, ae = t["s-sc"], Bs = t["s-cr"], Ns = (n.$flags$ & 1) !== 0, Je = !1, le(i, r);
|
2346
2346
|
{
|
2347
2347
|
if (_.$flags$ |= 1, en) {
|
2348
2348
|
Xs(r.$elm$);
|
@@ -2360,7 +2360,7 @@ const pt = typeof window < "u" ? window : {}, z = pt.document || { head: {} }, F
|
|
2360
2360
|
} else
|
2361
2361
|
a.nodeType === 1 && (a.hidden = !0);
|
2362
2362
|
}
|
2363
|
-
|
2363
|
+
Je && Gs(r.$elm$), _.$flags$ &= -2, L.length = 0;
|
2364
2364
|
}
|
2365
2365
|
}, bo = (s) => s, $o = (s, e, t) => {
|
2366
2366
|
const n = bo(s);
|
@@ -2389,7 +2389,7 @@ const pt = typeof window < "u" ? window : {}, z = pt.document || { head: {} }, F
|
|
2389
2389
|
try {
|
2390
2390
|
Dn = e, e = e.render && e.render(), s.$flags$ &= -17, s.$flags$ |= 2, (oe.hasRenderFn || oe.reflect) && (oe.vdomRender || oe.reflect) && (oe.hydrateServerSide || vo(s, e));
|
2391
2391
|
} catch (a) {
|
2392
|
-
|
2392
|
+
Me(a, s.$hostElement$);
|
2393
2393
|
}
|
2394
2394
|
return Dn = null, null;
|
2395
2395
|
}, So = (s) => {
|
@@ -2400,7 +2400,7 @@ const pt = typeof window < "u" ? window : {}, z = pt.document || { head: {} }, F
|
|
2400
2400
|
try {
|
2401
2401
|
return s[e](t);
|
2402
2402
|
} catch (n) {
|
2403
|
-
|
2403
|
+
Me(n);
|
2404
2404
|
}
|
2405
2405
|
}, Qn = (s, e) => s && s.then ? s.then(e) : e(), Co = (s, e) => s != null && !tn(s) ? e & 4 ? s === "false" ? !1 : s === "" || !!s : e & 2 ? parseFloat(s) : e & 1 ? String(s) : s : s, Ao = (s, e) => dt(s).$instanceValues$.get(e), Eo = (s, e, t, n) => {
|
2406
2406
|
const i = dt(s), r = s, o = i.$instanceValues$.get(e), a = i.$flags$, l = r;
|
@@ -2415,7 +2415,7 @@ const pt = typeof window < "u" ? window : {}, z = pt.document || { head: {} }, F
|
|
2415
2415
|
try {
|
2416
2416
|
l[p](t, o, e);
|
2417
2417
|
} catch (d) {
|
2418
|
-
|
2418
|
+
Me(d, r);
|
2419
2419
|
}
|
2420
2420
|
});
|
2421
2421
|
}
|
@@ -2468,7 +2468,7 @@ const pt = typeof window < "u" ? window : {}, z = pt.document || { head: {} }, F
|
|
2468
2468
|
let o = i.style;
|
2469
2469
|
typeof o != "string" && (o = o[e.$modeName$ = ao(s)]);
|
2470
2470
|
const a = qs(t, e.$modeName$);
|
2471
|
-
if (!
|
2471
|
+
if (!tt.has(a)) {
|
2472
2472
|
const l = ee("registerStyles", t.$tagName$);
|
2473
2473
|
io(a, o, !!(t.$flags$ & 1)), l();
|
2474
2474
|
}
|
@@ -2525,14 +2525,14 @@ const pt = typeof window < "u" ? window : {}, z = pt.document || { head: {} }, F
|
|
2525
2525
|
$instanceValues$: /* @__PURE__ */ new Map()
|
2526
2526
|
};
|
2527
2527
|
return Zs(s, t, e.$listeners$), ti.set(s, t);
|
2528
|
-
}, Kn = (s, e) => e in s,
|
2528
|
+
}, Kn = (s, e) => e in s, Me = (s, e) => (0, console.error)(s, e), tt = /* @__PURE__ */ new Map(), zo = [], Gn = [], ni = [], Uo = (s, e) => (t) => {
|
2529
2529
|
s.push(t), jt || (jt = !0, e && _.$flags$ & 4 ? jo(Ht) : _.raf(Ht));
|
2530
2530
|
}, Xn = (s) => {
|
2531
2531
|
for (let e = 0; e < s.length; e++)
|
2532
2532
|
try {
|
2533
2533
|
s[e](performance.now());
|
2534
2534
|
} catch (t) {
|
2535
|
-
|
2535
|
+
Me(t);
|
2536
2536
|
}
|
2537
2537
|
s.length = 0;
|
2538
2538
|
}, Ht = () => {
|
@@ -2663,7 +2663,7 @@ const Xo = (s) => (e, t) => {
|
|
2663
2663
|
* Copyright 2017 Google LLC
|
2664
2664
|
* SPDX-License-Identifier: BSD-3-Clause
|
2665
2665
|
*/
|
2666
|
-
const Jo = { attribute: !0, type: String, converter:
|
2666
|
+
const Jo = { attribute: !0, type: String, converter: Ge, reflect: !1, hasChanged: Vt }, Vo = (s = Jo, e, t) => {
|
2667
2667
|
const { kind: n, metadata: i } = t;
|
2668
2668
|
let r = globalThis.litPropertyMetadata.get(i);
|
2669
2669
|
if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), r.set(t.name, s), n === "accessor") {
|
@@ -2739,7 +2739,7 @@ const ye = (s, e) => {
|
|
2739
2739
|
for (const i of t)
|
2740
2740
|
(n = i._$AO) == null || n.call(i, e, !1), ye(i, e);
|
2741
2741
|
return !0;
|
2742
|
-
},
|
2742
|
+
}, nt = (s) => {
|
2743
2743
|
let e, t;
|
2744
2744
|
do {
|
2745
2745
|
if ((e = s._$AM) === void 0)
|
@@ -2757,7 +2757,7 @@ const ye = (s, e) => {
|
|
2757
2757
|
}
|
2758
2758
|
};
|
2759
2759
|
function ta(s) {
|
2760
|
-
this._$AN !== void 0 ? (
|
2760
|
+
this._$AN !== void 0 ? (nt(this), this._$AM = s, ii(this)) : this._$AM = s;
|
2761
2761
|
}
|
2762
2762
|
function na(s, e = !1, t = 0) {
|
2763
2763
|
const n = this._$AH, i = this._$AN;
|
@@ -2765,9 +2765,9 @@ function na(s, e = !1, t = 0) {
|
|
2765
2765
|
if (e)
|
2766
2766
|
if (Array.isArray(n))
|
2767
2767
|
for (let r = t; r < n.length; r++)
|
2768
|
-
ye(n[r], !1),
|
2768
|
+
ye(n[r], !1), nt(n[r]);
|
2769
2769
|
else
|
2770
|
-
n != null && (ye(n, !1),
|
2770
|
+
n != null && (ye(n, !1), nt(n));
|
2771
2771
|
else
|
2772
2772
|
ye(this, s);
|
2773
2773
|
}
|
@@ -2783,7 +2783,7 @@ let ri = class extends rn {
|
|
2783
2783
|
}
|
2784
2784
|
_$AO(e, t = !0) {
|
2785
2785
|
var n, i;
|
2786
|
-
e !== this.isConnected && (this.isConnected = e, e ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), t && (ye(this, e),
|
2786
|
+
e !== this.isConnected && (this.isConnected = e, e ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), t && (ye(this, e), nt(this));
|
2787
2787
|
}
|
2788
2788
|
setValue(e) {
|
2789
2789
|
if (ea(this._$Ct))
|
@@ -2803,10 +2803,10 @@ let ri = class extends rn {
|
|
2803
2803
|
* Copyright 2020 Google LLC
|
2804
2804
|
* SPDX-License-Identifier: BSD-3-Clause
|
2805
2805
|
*/
|
2806
|
-
const
|
2806
|
+
const xe = () => new ia();
|
2807
2807
|
class ia {
|
2808
2808
|
}
|
2809
|
-
const Et = /* @__PURE__ */ new WeakMap(),
|
2809
|
+
const Et = /* @__PURE__ */ new WeakMap(), we = gt(class extends ri {
|
2810
2810
|
render(s) {
|
2811
2811
|
return g;
|
2812
2812
|
}
|
@@ -2839,7 +2839,7 @@ const Et = /* @__PURE__ */ new WeakMap(), nt = gt(class extends ri {
|
|
2839
2839
|
* Copyright 2018 Google LLC
|
2840
2840
|
* SPDX-License-Identifier: BSD-3-Clause
|
2841
2841
|
*/
|
2842
|
-
const
|
2842
|
+
const Te = gt(class extends rn {
|
2843
2843
|
constructor(s) {
|
2844
2844
|
var e;
|
2845
2845
|
if (super(s), s.type !== ft.ATTRIBUTE || s.name !== "class" || ((e = s.strings) == null ? void 0 : e.length) > 2)
|
@@ -3109,19 +3109,19 @@ class da extends ri {
|
|
3109
3109
|
this.shouldLog && !this.isDisabled() && console.log(e, this.options.id, t);
|
3110
3110
|
}
|
3111
3111
|
}
|
3112
|
-
const Bt = gt(da),
|
3112
|
+
const Bt = gt(da), Ne = (s, e, t) => {
|
3113
3113
|
s && t.style.setProperty(e, s);
|
3114
3114
|
}, oi = (s, e) => {
|
3115
3115
|
var t, n, i, r;
|
3116
|
-
|
3116
|
+
Ne((t = s.colors) == null ? void 0 : t.primaryBackground, "--primary-background", e), Ne(
|
3117
3117
|
(n = s.colors) == null ? void 0 : n.textOnPrimaryBackground,
|
3118
3118
|
"--text-on-primary-background",
|
3119
3119
|
e
|
3120
|
-
),
|
3120
|
+
), Ne(
|
3121
3121
|
(i = s.colors) == null ? void 0 : i.secondaryBackground,
|
3122
3122
|
"--secondary-background",
|
3123
3123
|
e
|
3124
|
-
),
|
3124
|
+
), Ne(
|
3125
3125
|
(r = s.colors) == null ? void 0 : r.textOnSecondaryBackground,
|
3126
3126
|
"--text-on-secondary-background",
|
3127
3127
|
e
|
@@ -3134,7 +3134,7 @@ var fa = Object.defineProperty, ga = Object.getOwnPropertyDescriptor, mt = (s, e
|
|
3134
3134
|
};
|
3135
3135
|
class ne extends k {
|
3136
3136
|
constructor() {
|
3137
|
-
super(...arguments), this.active = !1, this.loaded = !1, this.containerRef =
|
3137
|
+
super(...arguments), this.active = !1, this.loaded = !1, this.containerRef = xe();
|
3138
3138
|
}
|
3139
3139
|
async connectedCallback() {
|
3140
3140
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
@@ -3177,7 +3177,7 @@ class ne extends k {
|
|
3177
3177
|
}
|
3178
3178
|
render() {
|
3179
3179
|
var e, t, n, i;
|
3180
|
-
return m`<div class="trigger-container" ${
|
3180
|
+
return m`<div class="trigger-container" ${we(this.containerRef)}>
|
3181
3181
|
${!this.active && ((i = (n = (t = (e = this.application) == null ? void 0 : e.settings) == null ? void 0 : t.branding) == null ? void 0 : n.other) != null && i.showButtonLabel) ? m`
|
3182
3182
|
<button
|
3183
3183
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
@@ -3196,7 +3196,7 @@ class ne extends k {
|
|
3196
3196
|
|
3197
3197
|
<button
|
3198
3198
|
label="Widget trigger"
|
3199
|
-
class=${
|
3199
|
+
class=${Te({
|
3200
3200
|
trigger: !0,
|
3201
3201
|
active: this.active,
|
3202
3202
|
rendered: this.loaded
|
@@ -3573,7 +3573,7 @@ var ka = Object.defineProperty, _a = Object.getOwnPropertyDescriptor, Sa = (s, e
|
|
3573
3573
|
const Ca = "application";
|
3574
3574
|
class ln extends k {
|
3575
3575
|
constructor() {
|
3576
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
3576
|
+
super(...arguments), this.nodes = [], this.wrapperRef = xe();
|
3577
3577
|
}
|
3578
3578
|
addChild(e) {
|
3579
3579
|
e.parent = this, this.nodes.push(e);
|
@@ -3596,7 +3596,7 @@ class ln extends k {
|
|
3596
3596
|
this.applyBranding(), this.applyStyles();
|
3597
3597
|
}
|
3598
3598
|
render() {
|
3599
|
-
return this.application.renderStrategy === an.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")), m`<div class="widget-container" ${
|
3599
|
+
return this.application.renderStrategy === an.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")), m`<div class="widget-container" ${we(this.wrapperRef)}>
|
3600
3600
|
${ba(this.nodes, (e) => e)}
|
3601
3601
|
</div>`;
|
3602
3602
|
}
|
@@ -3715,7 +3715,7 @@ var Aa = Object.defineProperty, Ea = Object.getOwnPropertyDescriptor, cn = (s, e
|
|
3715
3715
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3716
3716
|
return n && i && Aa(e, t, i), i;
|
3717
3717
|
};
|
3718
|
-
class
|
3718
|
+
class ze extends k {
|
3719
3719
|
constructor() {
|
3720
3720
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
3721
3721
|
}
|
@@ -3747,7 +3747,7 @@ class Ie extends k {
|
|
3747
3747
|
return this.widget.render();
|
3748
3748
|
}
|
3749
3749
|
}
|
3750
|
-
|
3750
|
+
ze.styles = [
|
3751
3751
|
A`
|
3752
3752
|
:host {
|
3753
3753
|
display: block;
|
@@ -3756,18 +3756,18 @@ Ie.styles = [
|
|
3756
3756
|
];
|
3757
3757
|
cn([
|
3758
3758
|
w({ attribute: !0 })
|
3759
|
-
],
|
3759
|
+
], ze.prototype, "name", 2);
|
3760
3760
|
cn([
|
3761
3761
|
O()
|
3762
|
-
],
|
3762
|
+
], ze.prototype, "widget", 2);
|
3763
3763
|
cn([
|
3764
3764
|
O()
|
3765
|
-
],
|
3765
|
+
], ze.prototype, "status", 2);
|
3766
3766
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", on);
|
3767
3767
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", ne);
|
3768
3768
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", li);
|
3769
3769
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", ln);
|
3770
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
3770
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", ze);
|
3771
3771
|
class Ta {
|
3772
3772
|
constructor(e) {
|
3773
3773
|
this._message = null, this._host = e, e.addController(this);
|
@@ -3787,7 +3787,7 @@ class Ta {
|
|
3787
3787
|
class os {
|
3788
3788
|
constructor(e, t, n, i, r) {
|
3789
3789
|
this.id = e, this.providerKey = t, this.providerOptions = n, this.component = r, this.provider$ = new D(null), this.entries$ = new D([]), this.removeEntryAction$ = new S(), this.kill$ = new S(), this.isTyping$ = new D(!1), this.data$ = new D({}), this.complete$ = this.provider$.pipe(
|
3790
|
-
he((l) => l ? l.onComplete() :
|
3790
|
+
he((l) => l ? l.onComplete() : Re)
|
3791
3791
|
);
|
3792
3792
|
const o = this._getProviderFactory(t);
|
3793
3793
|
if (!o)
|
@@ -3842,7 +3842,7 @@ class os {
|
|
3842
3842
|
}
|
3843
3843
|
class Oa {
|
3844
3844
|
constructor(e) {
|
3845
|
-
this.component = e, this.currentSession$ = new D(null), this.sessions = [], this.storage = null,
|
3845
|
+
this.component = e, this.currentSession$ = new D(null), this.sessions = [], this.storage = null, Ke(e, "handover").subscribe((t) => {
|
3846
3846
|
const n = this._createNewSession(
|
3847
3847
|
t.detail.providerKey,
|
3848
3848
|
t.detail.providerOptions
|
@@ -3969,11 +3969,11 @@ class La {
|
|
3969
3969
|
this.session$.pipe(
|
3970
3970
|
he((e) => {
|
3971
3971
|
if (!e)
|
3972
|
-
return
|
3972
|
+
return Re;
|
3973
3973
|
const t = e.removeEntryAction$.pipe(Ut(this.entries$)).pipe(
|
3974
|
-
|
3974
|
+
Qe(([i, r]) => r.filter((o) => o.id !== i.id))
|
3975
3975
|
), n = e.entries().pipe(
|
3976
|
-
|
3976
|
+
Qe((i) => {
|
3977
3977
|
const r = this.entries$.value, o = i.filter((a) => r.findIndex((l) => l.id === a.id) === -1);
|
3978
3978
|
return [...r, ...o];
|
3979
3979
|
})
|
@@ -4050,7 +4050,7 @@ class hn extends k {
|
|
4050
4050
|
`;
|
4051
4051
|
case F.Agent:
|
4052
4052
|
return m`<div
|
4053
|
-
class=${
|
4053
|
+
class=${Te({
|
4054
4054
|
"conversation-agent-message": !0,
|
4055
4055
|
"has-avatar": !!((e = this.entry.sender) != null && e.avatar)
|
4056
4056
|
})}
|
@@ -4079,7 +4079,7 @@ class hn extends k {
|
|
4079
4079
|
</div>`;
|
4080
4080
|
case F.User:
|
4081
4081
|
return m`<div
|
4082
|
-
class=${
|
4082
|
+
class=${Te({
|
4083
4083
|
"conversation-user-message": !0,
|
4084
4084
|
"has-error": this.entry.status === "failed"
|
4085
4085
|
})}
|
@@ -4523,7 +4523,7 @@ function ls(s) {
|
|
4523
4523
|
}
|
4524
4524
|
return s;
|
4525
4525
|
}
|
4526
|
-
const
|
4526
|
+
const ke = { exec: () => null };
|
4527
4527
|
function cs(s, e) {
|
4528
4528
|
const t = s.replace(/\|/g, (r, o, a) => {
|
4529
4529
|
let l = !1, c = o;
|
@@ -4542,7 +4542,7 @@ function cs(s, e) {
|
|
4542
4542
|
n[i] = n[i].trim().replace(/\\\|/g, "|");
|
4543
4543
|
return n;
|
4544
4544
|
}
|
4545
|
-
function
|
4545
|
+
function Fe(s, e, t) {
|
4546
4546
|
const n = s.length;
|
4547
4547
|
if (n === 0)
|
4548
4548
|
return "";
|
@@ -4633,7 +4633,7 @@ class st {
|
|
4633
4633
|
type: "code",
|
4634
4634
|
raw: t[0],
|
4635
4635
|
codeBlockStyle: "indented",
|
4636
|
-
text: this.options.pedantic ? n :
|
4636
|
+
text: this.options.pedantic ? n : Fe(n, `
|
4637
4637
|
`)
|
4638
4638
|
};
|
4639
4639
|
}
|
@@ -4655,7 +4655,7 @@ class st {
|
|
4655
4655
|
if (t) {
|
4656
4656
|
let n = t[2].trim();
|
4657
4657
|
if (/#$/.test(n)) {
|
4658
|
-
const i =
|
4658
|
+
const i = Fe(n, "#");
|
4659
4659
|
(this.options.pedantic || !i || / $/.test(i)) && (n = i.trim());
|
4660
4660
|
}
|
4661
4661
|
return {
|
@@ -4680,7 +4680,7 @@ class st {
|
|
4680
4680
|
if (t) {
|
4681
4681
|
let n = t[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g, `
|
4682
4682
|
$1`);
|
4683
|
-
n =
|
4683
|
+
n = Fe(n.replace(/^ *>[ \t]?/gm, ""), `
|
4684
4684
|
`);
|
4685
4685
|
const i = this.lexer.state.top;
|
4686
4686
|
this.lexer.state.top = !0;
|
@@ -4877,7 +4877,7 @@ class st {
|
|
4877
4877
|
if (!this.options.pedantic && /^</.test(n)) {
|
4878
4878
|
if (!/>$/.test(n))
|
4879
4879
|
return;
|
4880
|
-
const o =
|
4880
|
+
const o = Fe(n.slice(0, -1), "\\");
|
4881
4881
|
if ((n.length - o.length) % 2 === 0)
|
4882
4882
|
return;
|
4883
4883
|
} else {
|
@@ -5045,43 +5045,43 @@ class st {
|
|
5045
5045
|
}
|
5046
5046
|
}
|
5047
5047
|
}
|
5048
|
-
const Ja = /^(?: *(?:\n|$))+/, Va = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, el = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,
|
5048
|
+
const Ja = /^(?: *(?:\n|$))+/, Va = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, el = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Ue = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, tl = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, gi = /(?:[*+-]|\d{1,9}[.)])/, mi = $(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, gi).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), fn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, nl = /^[^\n]+/, gn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, sl = $(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", gn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), il = $(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, gi).getRegex(), bt = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", mn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, rl = $("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", mn).replace("tag", bt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), vi = $(fn).replace("hr", Ue).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", bt).getRegex(), ol = $(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", vi).getRegex(), vn = {
|
5049
5049
|
blockquote: ol,
|
5050
5050
|
code: Va,
|
5051
5051
|
def: sl,
|
5052
5052
|
fences: el,
|
5053
5053
|
heading: tl,
|
5054
|
-
hr:
|
5054
|
+
hr: Ue,
|
5055
5055
|
html: rl,
|
5056
5056
|
lheading: mi,
|
5057
5057
|
list: il,
|
5058
5058
|
newline: Ja,
|
5059
5059
|
paragraph: vi,
|
5060
|
-
table:
|
5060
|
+
table: ke,
|
5061
5061
|
text: nl
|
5062
|
-
}, us = $("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",
|
5062
|
+
}, us = $("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Ue).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", bt).getRegex(), al = {
|
5063
5063
|
...vn,
|
5064
5064
|
table: us,
|
5065
|
-
paragraph: $(fn).replace("hr",
|
5065
|
+
paragraph: $(fn).replace("hr", Ue).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", us).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", bt).getRegex()
|
5066
5066
|
}, ll = {
|
5067
5067
|
...vn,
|
5068
5068
|
html: $(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", mn).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
5069
5069
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
5070
5070
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
5071
|
-
fences:
|
5071
|
+
fences: ke,
|
5072
5072
|
// fences not supported
|
5073
5073
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
5074
|
-
paragraph: $(fn).replace("hr",
|
5074
|
+
paragraph: $(fn).replace("hr", Ue).replace("heading", ` *#{1,6} *[^
|
5075
5075
|
]`).replace("lheading", mi).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
5076
|
-
}, bi = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, cl = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, $i = /^( {2,}|\\)\n(?!\s*$)/, hl = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,
|
5077
|
-
_backpedal:
|
5076
|
+
}, bi = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, cl = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, $i = /^( {2,}|\\)\n(?!\s*$)/, hl = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, je = "\\p{P}\\p{S}", ul = $(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, je).getRegex(), pl = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g, dl = $(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, je).getRegex(), fl = $("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, je).getRegex(), gl = $("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, je).getRegex(), ml = $(/\\([punct])/, "gu").replace(/punct/g, je).getRegex(), vl = $(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), bl = $(mn).replace("(?:-->|$)", "-->").getRegex(), $l = $("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", bl).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), it = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, yl = $(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", it).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), yi = $(/^!?\[(label)\]\[(ref)\]/).replace("label", it).replace("ref", gn).getRegex(), xi = $(/^!?\[(ref)\](?:\[\])?/).replace("ref", gn).getRegex(), xl = $("reflink|nolink(?!\\()", "g").replace("reflink", yi).replace("nolink", xi).getRegex(), bn = {
|
5077
|
+
_backpedal: ke,
|
5078
5078
|
// only used for GFM url
|
5079
5079
|
anyPunctuation: ml,
|
5080
5080
|
autolink: vl,
|
5081
5081
|
blockSkip: pl,
|
5082
5082
|
br: $i,
|
5083
5083
|
code: cl,
|
5084
|
-
del:
|
5084
|
+
del: ke,
|
5085
5085
|
emStrongLDelim: dl,
|
5086
5086
|
emStrongRDelimAst: fl,
|
5087
5087
|
emStrongRDelimUnd: gl,
|
@@ -5093,7 +5093,7 @@ const Ja = /^(?: *(?:\n|$))+/, Va = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, el =
|
|
5093
5093
|
reflinkSearch: xl,
|
5094
5094
|
tag: $l,
|
5095
5095
|
text: hl,
|
5096
|
-
url:
|
5096
|
+
url: ke
|
5097
5097
|
}, wl = {
|
5098
5098
|
...bn,
|
5099
5099
|
link: $(/^!?\[(label)\]\((.*?)\)/).replace("label", it).getRegex(),
|
@@ -5109,7 +5109,7 @@ const Ja = /^(?: *(?:\n|$))+/, Va = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, el =
|
|
5109
5109
|
...Ft,
|
5110
5110
|
br: $($i).replace("{2,}", "*").getRegex(),
|
5111
5111
|
text: $(Ft.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
5112
|
-
},
|
5112
|
+
}, Ze = {
|
5113
5113
|
normal: vn,
|
5114
5114
|
gfm: al,
|
5115
5115
|
pedantic: ll
|
@@ -5132,17 +5132,17 @@ class I {
|
|
5132
5132
|
top: !0
|
5133
5133
|
};
|
5134
5134
|
const t = {
|
5135
|
-
block:
|
5135
|
+
block: Ze.normal,
|
5136
5136
|
inline: ve.normal
|
5137
5137
|
};
|
5138
|
-
this.options.pedantic ? (t.block =
|
5138
|
+
this.options.pedantic ? (t.block = Ze.pedantic, t.inline = ve.pedantic) : this.options.gfm && (t.block = Ze.gfm, this.options.breaks ? t.inline = ve.breaks : t.inline = ve.gfm), this.tokenizer.rules = t;
|
5139
5139
|
}
|
5140
5140
|
/**
|
5141
5141
|
* Expose Rules
|
5142
5142
|
*/
|
5143
5143
|
static get rules() {
|
5144
5144
|
return {
|
5145
|
-
block:
|
5145
|
+
block: Ze,
|
5146
5146
|
inline: ve
|
5147
5147
|
};
|
5148
5148
|
}
|
@@ -5667,7 +5667,7 @@ class M {
|
|
5667
5667
|
return n;
|
5668
5668
|
}
|
5669
5669
|
}
|
5670
|
-
class
|
5670
|
+
class _e {
|
5671
5671
|
constructor(e) {
|
5672
5672
|
x(this, "options");
|
5673
5673
|
this.options = e || se;
|
@@ -5691,26 +5691,26 @@ class we {
|
|
5691
5691
|
return e;
|
5692
5692
|
}
|
5693
5693
|
}
|
5694
|
-
x(
|
5694
|
+
x(_e, "passThroughHooks", /* @__PURE__ */ new Set([
|
5695
5695
|
"preprocess",
|
5696
5696
|
"postprocess",
|
5697
5697
|
"processAllTokens"
|
5698
5698
|
]));
|
5699
|
-
var
|
5699
|
+
var Le, Zt, ot, wi;
|
5700
5700
|
class _l {
|
5701
5701
|
constructor(...e) {
|
5702
|
-
xt(this,
|
5702
|
+
xt(this, Le);
|
5703
5703
|
xt(this, ot);
|
5704
5704
|
x(this, "defaults", dn());
|
5705
5705
|
x(this, "options", this.setOptions);
|
5706
|
-
x(this, "parse",
|
5707
|
-
x(this, "parseInline",
|
5706
|
+
x(this, "parse", He(this, Le, Zt).call(this, I.lex, M.parse));
|
5707
|
+
x(this, "parseInline", He(this, Le, Zt).call(this, I.lexInline, M.parseInline));
|
5708
5708
|
x(this, "Parser", M);
|
5709
5709
|
x(this, "Renderer", rt);
|
5710
5710
|
x(this, "TextRenderer", $n);
|
5711
5711
|
x(this, "Lexer", I);
|
5712
5712
|
x(this, "Tokenizer", st);
|
5713
|
-
x(this, "Hooks",
|
5713
|
+
x(this, "Hooks", _e);
|
5714
5714
|
this.use(...e);
|
5715
5715
|
}
|
5716
5716
|
/**
|
@@ -5797,14 +5797,14 @@ class _l {
|
|
5797
5797
|
i.tokenizer = r;
|
5798
5798
|
}
|
5799
5799
|
if (n.hooks) {
|
5800
|
-
const r = this.defaults.hooks || new
|
5800
|
+
const r = this.defaults.hooks || new _e();
|
5801
5801
|
for (const o in n.hooks) {
|
5802
5802
|
if (!(o in r))
|
5803
5803
|
throw new Error(`hook '${o}' does not exist`);
|
5804
5804
|
if (o === "options")
|
5805
5805
|
continue;
|
5806
5806
|
const a = o, l = n.hooks[a], c = r[a];
|
5807
|
-
|
5807
|
+
_e.passThroughHooks.has(o) ? r[a] = (h) => {
|
5808
5808
|
if (this.defaults.async)
|
5809
5809
|
return Promise.resolve(l.call(r, h)).then((p) => c.call(r, p));
|
5810
5810
|
const u = l.call(r, h);
|
@@ -5836,11 +5836,11 @@ class _l {
|
|
5836
5836
|
return M.parse(e, t ?? this.defaults);
|
5837
5837
|
}
|
5838
5838
|
}
|
5839
|
-
|
5839
|
+
Le = new WeakSet(), Zt = function(e, t) {
|
5840
5840
|
return (n, i) => {
|
5841
5841
|
const r = { ...i }, o = { ...this.defaults, ...r };
|
5842
5842
|
this.defaults.async === !0 && r.async === !1 && (o.silent || console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."), o.async = !0);
|
5843
|
-
const a =
|
5843
|
+
const a = He(this, ot, wi).call(this, !!o.silent, !!o.async);
|
5844
5844
|
if (typeof n > "u" || n === null)
|
5845
5845
|
return a(new Error("marked(): input parameter is undefined or null"));
|
5846
5846
|
if (typeof n != "string")
|
@@ -5892,7 +5892,7 @@ b.TextRenderer = $n;
|
|
5892
5892
|
b.Lexer = I;
|
5893
5893
|
b.lexer = I.lex;
|
5894
5894
|
b.Tokenizer = st;
|
5895
|
-
b.Hooks =
|
5895
|
+
b.Hooks = _e;
|
5896
5896
|
b.parse = b;
|
5897
5897
|
b.options;
|
5898
5898
|
b.setOptions;
|
@@ -5965,7 +5965,7 @@ var Al = Object.defineProperty, El = Object.getOwnPropertyDescriptor, _i = (s, e
|
|
5965
5965
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
5966
5966
|
return n && i && Al(e, t, i), i;
|
5967
5967
|
};
|
5968
|
-
let
|
5968
|
+
let Oe = class extends k {
|
5969
5969
|
constructor() {
|
5970
5970
|
super(...arguments), this.escapeListener = (s) => {
|
5971
5971
|
s.key === "Escape" && this.closeLightbox();
|
@@ -6008,7 +6008,7 @@ let Ee = class extends k {
|
|
6008
6008
|
</div> `;
|
6009
6009
|
}
|
6010
6010
|
};
|
6011
|
-
|
6011
|
+
Oe.styles = [
|
6012
6012
|
A`
|
6013
6013
|
.lightbox {
|
6014
6014
|
position: fixed;
|
@@ -6047,10 +6047,10 @@ Ee.styles = [
|
|
6047
6047
|
];
|
6048
6048
|
_i([
|
6049
6049
|
w({ attribute: !0 })
|
6050
|
-
],
|
6051
|
-
|
6050
|
+
], Oe.prototype, "imageUrl", 2);
|
6051
|
+
Oe = _i([
|
6052
6052
|
Xo("ace-lightbox")
|
6053
|
-
],
|
6053
|
+
], Oe);
|
6054
6054
|
var Tl = Object.defineProperty, Ol = Object.getOwnPropertyDescriptor, ie = (s, e, t, n) => {
|
6055
6055
|
for (var i = n > 1 ? void 0 : n ? Ol(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
6056
6056
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
@@ -6065,11 +6065,11 @@ customElements.get("conversation-group") || customElements.define("conversation-
|
|
6065
6065
|
customElements.get("ace-typing-state") || customElements.define("ace-typing-state", hi);
|
6066
6066
|
customElements.get("message-type-html") || customElements.define("message-type-html", pn);
|
6067
6067
|
customElements.get("message-type-markdown") || customElements.define("message-type-markdown", $t);
|
6068
|
-
customElements.get("ace-lightbox") || customElements.define("ace-lightbox",
|
6068
|
+
customElements.get("ace-lightbox") || customElements.define("ace-lightbox", Oe);
|
6069
6069
|
const Si = ai(k);
|
6070
6070
|
class U extends Si {
|
6071
6071
|
constructor() {
|
6072
|
-
super(...arguments), this.message = "", this.disabled = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.conversationContentRef =
|
6072
|
+
super(...arguments), this.message = "", this.disabled = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.conversationContentRef = xe(), this.formRef = xe(), this.inputRef = xe(), this.chatScrollHeight = 0, this.toast = new Ta(this), this.messageMaxLength = 1e3, this.platform = null, this.entries = [], this.typing = !1, this.conversationState$ = new D("waiting"), this.stateMachine = new La(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
6073
6073
|
he((e) => e ? e == null ? void 0 : e.provider$ : Mt(null))
|
6074
6074
|
);
|
6075
6075
|
}
|
@@ -6083,7 +6083,7 @@ class U extends Si {
|
|
6083
6083
|
this.stateMachine.isTyping()
|
6084
6084
|
]).subscribe(([t, n]) => {
|
6085
6085
|
this.entries = t, this.typing = n;
|
6086
|
-
}), this.userSubmitSubscription =
|
6086
|
+
}), this.userSubmitSubscription = Ke(
|
6087
6087
|
this,
|
6088
6088
|
"user-submit"
|
6089
6089
|
).pipe(Ut(this.provider$)).subscribe(([t, n]) => {
|
@@ -6129,7 +6129,9 @@ class U extends Si {
|
|
6129
6129
|
const t = new CustomEvent("user-submit", {
|
6130
6130
|
detail: { text: this.message }
|
6131
6131
|
});
|
6132
|
-
this.dispatchEvent(t), this.message = ""
|
6132
|
+
this.dispatchEvent(t), this.message = "", this.inputRef.value.style.height = this.style.getPropertyValue(
|
6133
|
+
"--textarea-default-height"
|
6134
|
+
);
|
6133
6135
|
}
|
6134
6136
|
_addHeaderOptions() {
|
6135
6137
|
const e = this.application.getComponent("widget-header");
|
@@ -6151,12 +6153,7 @@ class U extends Si {
|
|
6151
6153
|
), e.target.style.height = e.target.scrollHeight + "px", this.textAreaLength = e.target.value.length;
|
6152
6154
|
}
|
6153
6155
|
_keyDownHandler(e) {
|
6154
|
-
|
6155
|
-
const t = e.target;
|
6156
|
-
t.style.height = this.style.getPropertyValue(
|
6157
|
-
"--textarea-default-height"
|
6158
|
-
), this._onSendMessage(e), e.preventDefault();
|
6159
|
-
}
|
6156
|
+
e.key === "Enter" && !e.shiftKey && (this._onSendMessage(e), e.preventDefault());
|
6160
6157
|
}
|
6161
6158
|
handover(e, t) {
|
6162
6159
|
this.enableInput(), this.setToastMessage(null);
|
@@ -6166,14 +6163,14 @@ class U extends Si {
|
|
6166
6163
|
providerOptions: t
|
6167
6164
|
}
|
6168
6165
|
});
|
6169
|
-
return this.dispatchEvent(n), n.detail.complete ||
|
6166
|
+
return this.dispatchEvent(n), n.detail.complete || Re;
|
6170
6167
|
}
|
6171
6168
|
render() {
|
6172
6169
|
var t;
|
6173
6170
|
const e = this.application.texts;
|
6174
6171
|
return this.conversationState$.value === "waiting" && ((t = this.application) != null && t.storage) && this.platform && (this.stateMachine.setStorage(this.application.storage), this.conversationState$.next("init")), m` <div
|
6175
6172
|
@action=${this._actionHandler}
|
6176
|
-
class=${
|
6173
|
+
class=${Te({
|
6177
6174
|
conversation: !0,
|
6178
6175
|
disabled: this.disabled,
|
6179
6176
|
"conversation--has-toast": this.toast.hasMessage(),
|
@@ -6190,13 +6187,13 @@ class U extends Si {
|
|
6190
6187
|
</button>
|
6191
6188
|
</div>` : g}
|
6192
6189
|
<div
|
6193
|
-
class=${
|
6190
|
+
class=${Te({
|
6194
6191
|
"conversation-content": !0,
|
6195
6192
|
"conversation-overlay-mode": this.chatOverlayActive
|
6196
6193
|
})}
|
6197
6194
|
part="scroll-container"
|
6198
6195
|
aria-live="polite"
|
6199
|
-
${
|
6196
|
+
${we(this.conversationContentRef)}
|
6200
6197
|
>
|
6201
6198
|
${this.toast.hasMessage() ? m`<div class="conversation__toast">${this.toast.message}</div>` : g}
|
6202
6199
|
<ace-conversation-feed
|
@@ -6208,7 +6205,7 @@ class U extends Si {
|
|
6208
6205
|
<form
|
6209
6206
|
class="conversation-bottom"
|
6210
6207
|
@submit=${this._onSendMessage}
|
6211
|
-
${
|
6208
|
+
${we(this.formRef)}
|
6212
6209
|
>
|
6213
6210
|
<label for="chat-message-input" class="visually-hidden">
|
6214
6211
|
Chat message
|
@@ -6226,6 +6223,7 @@ class U extends Si {
|
|
6226
6223
|
?disabled=${this.disabled}
|
6227
6224
|
@input=${this._inputHandler}
|
6228
6225
|
@keydown=${this._keyDownHandler}
|
6226
|
+
${we(this.inputRef)}
|
6229
6227
|
></textarea>
|
6230
6228
|
<div class="conversation-actions">
|
6231
6229
|
<button
|