lr-chatbot 0.31.4 → 0.31.5
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 +445 -443
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -12,7 +12,7 @@ function ch(t) {
|
|
|
12
12
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
13
13
|
}
|
|
14
14
|
function uh(t) {
|
|
15
|
-
if (Array.isArray(t)) return
|
|
15
|
+
if (Array.isArray(t)) return Ka(t);
|
|
16
16
|
}
|
|
17
17
|
function dh(t, r) {
|
|
18
18
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
@@ -48,19 +48,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
48
48
|
}
|
|
49
49
|
function Xc(t, r) {
|
|
50
50
|
if (t) {
|
|
51
|
-
if (typeof t == "string") return
|
|
51
|
+
if (typeof t == "string") return Ka(t, r);
|
|
52
52
|
var e = {}.toString.call(t).slice(8, -1);
|
|
53
|
-
return e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set" ? Array.from(t) : e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e) ?
|
|
53
|
+
return e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set" ? Array.from(t) : e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e) ? Ka(t, r) : void 0;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Ka(t, r) {
|
|
57
57
|
(r == null || r > t.length) && (r = t.length);
|
|
58
58
|
for (var e = 0, n = Array(r); e < r; e++) n[e] = t[e];
|
|
59
59
|
return n;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Ja(t) {
|
|
62
62
|
var r = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
63
|
-
return
|
|
63
|
+
return Ja = function(n) {
|
|
64
64
|
if (n === null || !ph(n)) return n;
|
|
65
65
|
if (typeof n != "function") throw new TypeError("Super expression must either be null or a function");
|
|
66
66
|
if (r !== void 0) {
|
|
@@ -71,7 +71,7 @@ function Za(t) {
|
|
|
71
71
|
return hh(n, arguments, ar(this).constructor);
|
|
72
72
|
}
|
|
73
73
|
return i.prototype = Object.create(n.prototype, { constructor: { value: i, enumerable: !1, writable: !0, configurable: !0 } }), sr(i, n);
|
|
74
|
-
},
|
|
74
|
+
}, Ja(t);
|
|
75
75
|
}
|
|
76
76
|
function hh(t, r, e) {
|
|
77
77
|
if (xs()) return Reflect.construct.apply(null, arguments);
|
|
@@ -540,7 +540,7 @@ var gh = /* @__PURE__ */ function() {
|
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
}]);
|
|
543
|
-
}(),
|
|
543
|
+
}(), Za = /* @__PURE__ */ function() {
|
|
544
544
|
function t() {
|
|
545
545
|
_(this, t);
|
|
546
546
|
}
|
|
@@ -559,8 +559,8 @@ var gh = /* @__PURE__ */ function() {
|
|
|
559
559
|
}
|
|
560
560
|
}]);
|
|
561
561
|
}();
|
|
562
|
-
|
|
563
|
-
var eu =
|
|
562
|
+
Za.FONT_URL = "https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap", Za.DEFAULT_FONT_FAMILY = "'Inter', sans-serif, Avenir, Helvetica, Arial";
|
|
563
|
+
var eu = Za, tu = /* @__PURE__ */ function() {
|
|
564
564
|
function t() {
|
|
565
565
|
_(this, t);
|
|
566
566
|
}
|
|
@@ -606,7 +606,7 @@ tu.DEFAULT_COMPONENT_STYLE = {
|
|
|
606
606
|
// this is also causing the chat to squeeze when there is no space
|
|
607
607
|
overflow: "hidden"
|
|
608
608
|
};
|
|
609
|
-
var
|
|
609
|
+
var ua = tu, ke = /* @__PURE__ */ function(t) {
|
|
610
610
|
return t.ESCAPE = "Escape", t.ENTER = "Enter", t.TAB = "Tab", t.ARROW_UP = "ArrowUp", t.ARROW_DOWN = "ArrowDown", t.ARROW_RIGHT = "ArrowRight", t.ARROW_LEFT = "ArrowLeft", t.BACKSPACE = "Backspace", t.DELETE = "Delete", t.META = "Meta", t.CONTROL = "Control", t;
|
|
611
611
|
}(ke || {}), $r, bn = ($r = /* @__PURE__ */ S(function t() {
|
|
612
612
|
_(this, t);
|
|
@@ -660,7 +660,7 @@ var yh = nu, bh = /* @__PURE__ */ function() {
|
|
|
660
660
|
a && ((i = document.execCommand) == null || i.call(document, "insertText", !1, a));
|
|
661
661
|
}
|
|
662
662
|
}]);
|
|
663
|
-
}(),
|
|
663
|
+
}(), Ya = /* @__PURE__ */ function() {
|
|
664
664
|
function t(r, e, n) {
|
|
665
665
|
var i = this;
|
|
666
666
|
_(this, t);
|
|
@@ -757,8 +757,8 @@ var yh = nu, bh = /* @__PURE__ */ function() {
|
|
|
757
757
|
}
|
|
758
758
|
}]);
|
|
759
759
|
}();
|
|
760
|
-
|
|
761
|
-
var or =
|
|
760
|
+
Ya.TEXT_INPUT_ID = "text-input", Ya.PLACEHOLDER_TEXT_CLASS = "text-input-placeholder";
|
|
761
|
+
var or = Ya, ru = /* @__PURE__ */ function() {
|
|
762
762
|
function t() {
|
|
763
763
|
_(this, t);
|
|
764
764
|
}
|
|
@@ -1170,7 +1170,7 @@ var Z = qr, lu = /* @__PURE__ */ function() {
|
|
|
1170
1170
|
e.addEventListener("mouseenter", t.mouseEnter.bind(this, e, n)), e.addEventListener("mouseleave", t.mouseLeave.bind(this, e, n)), e.addEventListener("mousedown", t.mouseDown.bind(this, e, n)), e.addEventListener("mouseup", t.mouseUp.bind(this, e, n));
|
|
1171
1171
|
}
|
|
1172
1172
|
}]);
|
|
1173
|
-
}(), Eh = "deep-chat-temporary-message", Ah = "deep-chat-suggestion-button",
|
|
1173
|
+
}(), Eh = "deep-chat-temporary-message", Ah = "deep-chat-suggestion-button", Xa = {
|
|
1174
1174
|
"deep-chat-button": {
|
|
1175
1175
|
styles: {
|
|
1176
1176
|
default: {
|
|
@@ -1190,7 +1190,7 @@ var Z = qr, lu = /* @__PURE__ */ function() {
|
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
|
-
}, To = Object.keys(
|
|
1193
|
+
}, To = Object.keys(Xa), li = /* @__PURE__ */ function() {
|
|
1194
1194
|
function t() {
|
|
1195
1195
|
_(this, t);
|
|
1196
1196
|
}
|
|
@@ -1222,7 +1222,7 @@ var Z = qr, lu = /* @__PURE__ */ function() {
|
|
|
1222
1222
|
}, {
|
|
1223
1223
|
key: "applyEvents",
|
|
1224
1224
|
value: function(e, n) {
|
|
1225
|
-
var i =
|
|
1225
|
+
var i = Xa[n].events;
|
|
1226
1226
|
Object.keys(i || []).forEach(function(a) {
|
|
1227
1227
|
e.addEventListener(a, i == null ? void 0 : i[a]);
|
|
1228
1228
|
});
|
|
@@ -1233,7 +1233,7 @@ var Z = qr, lu = /* @__PURE__ */ function() {
|
|
|
1233
1233
|
var a = Array.from(n.classList).reduce(function(c, u) {
|
|
1234
1234
|
var d, h = (d = e[u]) == null ? void 0 : d.styles;
|
|
1235
1235
|
return h && e[u].styles && c.push(h), c;
|
|
1236
|
-
}, []), s =
|
|
1236
|
+
}, []), s = Xa[i].styles;
|
|
1237
1237
|
if (s) {
|
|
1238
1238
|
var o = JSON.parse(JSON.stringify(s));
|
|
1239
1239
|
o.default && Se.overwriteDefaultWithAlreadyApplied(o, n), a.unshift(o);
|
|
@@ -1312,7 +1312,7 @@ var Z = qr, lu = /* @__PURE__ */ function() {
|
|
|
1312
1312
|
}), i;
|
|
1313
1313
|
}
|
|
1314
1314
|
}]);
|
|
1315
|
-
}(),
|
|
1315
|
+
}(), Qa = /* @__PURE__ */ function() {
|
|
1316
1316
|
function t() {
|
|
1317
1317
|
_(this, t);
|
|
1318
1318
|
}
|
|
@@ -1373,7 +1373,7 @@ function lr(t) {
|
|
|
1373
1373
|
function du(t) {
|
|
1374
1374
|
return !(t >= 55296 && t <= 57343 || t >= 64976 && t <= 65007 || (t & 65535) === 65535 || (t & 65535) === 65534 || t >= 0 && t <= 8 || t === 11 || t >= 14 && t <= 31 || t >= 127 && t <= 159 || t > 1114111);
|
|
1375
1375
|
}
|
|
1376
|
-
function
|
|
1376
|
+
function es(t) {
|
|
1377
1377
|
if (t > 65535) {
|
|
1378
1378
|
t -= 65536;
|
|
1379
1379
|
var r = 55296 + (t >> 10), e = 56320 + (t & 1023);
|
|
@@ -1384,7 +1384,7 @@ function ts(t) {
|
|
|
1384
1384
|
var Ih = /&([a-z#][a-z0-9]{1,31});/gi, Lh = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;
|
|
1385
1385
|
function Mh(t, r) {
|
|
1386
1386
|
var e = 0, n = cu(r);
|
|
1387
|
-
return r !== n ? n : r.charCodeAt(0) === 35 && Lh.test(r) && (e = r[1].toLowerCase() === "x" ? parseInt(r.slice(2), 16) : parseInt(r.slice(1), 10), du(e)) ?
|
|
1387
|
+
return r !== n ? n : r.charCodeAt(0) === 35 && Lh.test(r) && (e = r[1].toLowerCase() === "x" ? parseInt(r.slice(2), 16) : parseInt(r.slice(1), 10), du(e)) ? es(e) : t;
|
|
1388
1388
|
}
|
|
1389
1389
|
function qt(t) {
|
|
1390
1390
|
return t.indexOf("&") < 0 ? t : t.replace(Ih, Mh);
|
|
@@ -1777,7 +1777,7 @@ function jh(t) {
|
|
|
1777
1777
|
}
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
|
-
function
|
|
1780
|
+
function ts(t) {
|
|
1781
1781
|
var r = qt(t);
|
|
1782
1782
|
try {
|
|
1783
1783
|
r = decodeURI(r);
|
|
@@ -1790,7 +1790,7 @@ function pu(t, r) {
|
|
|
1790
1790
|
if (t.src.charCodeAt(r) === 60) {
|
|
1791
1791
|
for (r++; r < s; ) {
|
|
1792
1792
|
if (e = t.src.charCodeAt(r), e === 10) return !1;
|
|
1793
|
-
if (e === 62) return i =
|
|
1793
|
+
if (e === 62) return i = ts(lr(t.src.slice(a + 1, r))), t.parser.validateLink(i) ? (t.pos = r + 1, t.linkContent = i, !0) : !1;
|
|
1794
1794
|
if (e === 92 && r + 1 < s) {
|
|
1795
1795
|
r += 2;
|
|
1796
1796
|
continue;
|
|
@@ -1895,17 +1895,17 @@ function qh(t) {
|
|
|
1895
1895
|
}
|
|
1896
1896
|
var Ro = `
|
|
1897
1897
|
()[]'".,!?-`;
|
|
1898
|
-
function
|
|
1898
|
+
function da(t) {
|
|
1899
1899
|
return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g, "\\$1");
|
|
1900
1900
|
}
|
|
1901
1901
|
function Vh(t) {
|
|
1902
1902
|
var r, e, n, i, a, s, o, l, c, u, d, h, p = t.tokens;
|
|
1903
1903
|
if (t.env.abbreviations) {
|
|
1904
|
-
for (t.env.abbrRegExp || (h = "(^|[" + Ro.split("").map(
|
|
1904
|
+
for (t.env.abbrRegExp || (h = "(^|[" + Ro.split("").map(da).join("") + "])(" + Object.keys(t.env.abbreviations).map(function(f) {
|
|
1905
1905
|
return f.substr(1);
|
|
1906
1906
|
}).sort(function(f, g) {
|
|
1907
1907
|
return g.length - f.length;
|
|
1908
|
-
}).map(
|
|
1908
|
+
}).map(da).join("|") + ")($|[" + Ro.split("").map(da).join("") + "])", t.env.abbrRegExp = new RegExp(h, "g")), u = t.env.abbrRegExp, e = 0, n = p.length; e < n; e++) if (p[e].type === "inline") {
|
|
1909
1909
|
for (i = p[e].children, r = i.length - 1; r >= 0; r--) if (a = i[r], a.type === "text") {
|
|
1910
1910
|
for (l = 0, s = a.content, u.lastIndex = 0, c = a.level, o = []; d = u.exec(s); ) u.lastIndex > l && o.push({
|
|
1911
1911
|
type: "text",
|
|
@@ -1985,10 +1985,10 @@ function Qh(t) {
|
|
|
1985
1985
|
}
|
|
1986
1986
|
}
|
|
1987
1987
|
}
|
|
1988
|
-
var
|
|
1988
|
+
var ha = [["block", Dh], ["abbr", jh], ["references", Uh], ["inline", zh], ["footnote_tail", qh], ["abbr2", Vh], ["replacements", Zh], ["smartquotes", Qh]];
|
|
1989
1989
|
function gu() {
|
|
1990
1990
|
this.options = {}, this.ruler = new He();
|
|
1991
|
-
for (var t = 0; t <
|
|
1991
|
+
for (var t = 0; t < ha.length; t++) this.ruler.push(ha[t][0], ha[t][1]);
|
|
1992
1992
|
}
|
|
1993
1993
|
gu.prototype.process = function(t) {
|
|
1994
1994
|
var r, e, n;
|
|
@@ -2254,13 +2254,13 @@ function hp(t, r, e, n) {
|
|
|
2254
2254
|
content: t.getLines(r, s, 0, !0)
|
|
2255
2255
|
}), !0;
|
|
2256
2256
|
}
|
|
2257
|
-
function
|
|
2257
|
+
function pa(t, r) {
|
|
2258
2258
|
var e = t.bMarks[r] + t.blkIndent, n = t.eMarks[r];
|
|
2259
2259
|
return t.src.substr(e, n - e);
|
|
2260
2260
|
}
|
|
2261
2261
|
function pp(t, r, e, n) {
|
|
2262
2262
|
var i, a, s, o, l, c, u, d, h, p, f;
|
|
2263
|
-
if (r + 2 > e || (l = r + 1, t.tShift[l] < t.blkIndent) || (s = t.bMarks[l] + t.tShift[l], s >= t.eMarks[l]) || (i = t.src.charCodeAt(s), i !== 124 && i !== 45 && i !== 58) || (a =
|
|
2263
|
+
if (r + 2 > e || (l = r + 1, t.tShift[l] < t.blkIndent) || (s = t.bMarks[l] + t.tShift[l], s >= t.eMarks[l]) || (i = t.src.charCodeAt(s), i !== 124 && i !== 45 && i !== 58) || (a = pa(t, r + 1), !/^[-:| ]+$/.test(a)) || (c = a.split("|"), c <= 2)) return !1;
|
|
2264
2264
|
for (d = [], o = 0; o < c.length; o++) {
|
|
2265
2265
|
if (h = c[o].trim(), !h) {
|
|
2266
2266
|
if (o === 0 || o === c.length - 1) continue;
|
|
@@ -2269,7 +2269,7 @@ function pp(t, r, e, n) {
|
|
|
2269
2269
|
if (!/^:?-+:?$/.test(h)) return !1;
|
|
2270
2270
|
h.charCodeAt(h.length - 1) === 58 ? d.push(h.charCodeAt(0) === 58 ? "center" : "right") : h.charCodeAt(0) === 58 ? d.push("left") : d.push("");
|
|
2271
2271
|
}
|
|
2272
|
-
if (a =
|
|
2272
|
+
if (a = pa(t, r).trim(), a.indexOf("|") === -1 || (c = a.replace(/^\||\|$/g, "").split("|"), d.length !== c.length)) return !1;
|
|
2273
2273
|
if (n) return !0;
|
|
2274
2274
|
for (t.tokens.push({
|
|
2275
2275
|
type: "table_open",
|
|
@@ -2308,7 +2308,7 @@ function pp(t, r, e, n) {
|
|
|
2308
2308
|
type: "tbody_open",
|
|
2309
2309
|
lines: f = [r + 2, 0],
|
|
2310
2310
|
level: t.level++
|
|
2311
|
-
}), l = r + 2; l < e && !(t.tShift[l] < t.blkIndent || (a =
|
|
2311
|
+
}), l = r + 2; l < e && !(t.tShift[l] < t.blkIndent || (a = pa(t, l).trim(), a.indexOf("|") === -1)); l++) {
|
|
2312
2312
|
for (c = a.replace(/^\||\|$/g, "").split("|"), t.tokens.push({
|
|
2313
2313
|
type: "tr_open",
|
|
2314
2314
|
level: t.level++
|
|
@@ -2744,7 +2744,7 @@ function $p(t, r) {
|
|
|
2744
2744
|
var Fp = ["coap", "doi", "javascript", "aaa", "aaas", "about", "acap", "cap", "cid", "crid", "data", "dav", "dict", "dns", "file", "ftp", "geo", "go", "gopher", "h323", "http", "https", "iax", "icap", "im", "imap", "info", "ipp", "iris", "iris.beep", "iris.xpc", "iris.xpcs", "iris.lwz", "ldap", "mailto", "mid", "msrp", "msrps", "mtqp", "mupdate", "news", "nfs", "ni", "nih", "nntp", "opaquelocktoken", "pop", "pres", "rtsp", "service", "session", "shttp", "sieve", "sip", "sips", "sms", "snmp", "soap.beep", "soap.beeps", "tag", "tel", "telnet", "tftp", "thismessage", "tn3270", "tip", "tv", "urn", "vemmi", "ws", "wss", "xcon", "xcon-userid", "xmlrpc.beep", "xmlrpc.beeps", "xmpp", "z39.50r", "z39.50s", "adiumxtra", "afp", "afs", "aim", "apt", "attachment", "aw", "beshare", "bitcoin", "bolo", "callto", "chrome", "chrome-extension", "com-eventbrite-attendee", "content", "cvs", "dlna-playsingle", "dlna-playcontainer", "dtn", "dvb", "ed2k", "facetime", "feed", "finger", "fish", "gg", "git", "gizmoproject", "gtalk", "hcp", "icon", "ipn", "irc", "irc6", "ircs", "itms", "jar", "jms", "keyparc", "lastfm", "ldaps", "magnet", "maps", "market", "message", "mms", "ms-help", "msnim", "mumble", "mvn", "notes", "oid", "palm", "paparazzi", "platform", "proxy", "psyc", "query", "res", "resource", "rmi", "rsync", "rtmp", "secondlife", "sftp", "sgn", "skype", "smb", "soldat", "spotify", "ssh", "steam", "svn", "teamspeak", "things", "udp", "unreal", "ut2004", "ventrilo", "view-source", "webcal", "wtai", "wyciwyg", "xfire", "xri", "ymsgr"], Np = /^<([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])?)*)>/, Dp = /^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;
|
|
2745
2745
|
function Bp(t, r) {
|
|
2746
2746
|
var e, n, i, a, s, o = t.pos;
|
|
2747
|
-
return t.src.charCodeAt(o) !== 60 || (e = t.src.slice(o), e.indexOf(">") < 0) ? !1 : (n = e.match(Dp), n ? Fp.indexOf(n[1].toLowerCase()) < 0 || (a = n[0].slice(1, -1), s =
|
|
2747
|
+
return t.src.charCodeAt(o) !== 60 || (e = t.src.slice(o), e.indexOf(">") < 0) ? !1 : (n = e.match(Dp), n ? Fp.indexOf(n[1].toLowerCase()) < 0 || (a = n[0].slice(1, -1), s = ts(a), !t.parser.validateLink(a)) ? !1 : (r || (t.push({
|
|
2748
2748
|
type: "link_open",
|
|
2749
2749
|
href: s,
|
|
2750
2750
|
level: t.level
|
|
@@ -2755,7 +2755,7 @@ function Bp(t, r) {
|
|
|
2755
2755
|
}), t.push({
|
|
2756
2756
|
type: "link_close",
|
|
2757
2757
|
level: t.level
|
|
2758
|
-
})), t.pos += n[0].length, !0) : (i = e.match(Np), i ? (a = i[0].slice(1, -1), s =
|
|
2758
|
+
})), t.pos += n[0].length, !0) : (i = e.match(Np), i ? (a = i[0].slice(1, -1), s = ts("mailto:" + a), t.parser.validateLink(s) ? (r || (t.push({
|
|
2759
2759
|
type: "link_open",
|
|
2760
2760
|
href: s,
|
|
2761
2761
|
level: t.level
|
|
@@ -2792,7 +2792,7 @@ function rf(t, r) {
|
|
|
2792
2792
|
if (t.src.charCodeAt(a) !== 38) return !1;
|
|
2793
2793
|
if (a + 1 < s) {
|
|
2794
2794
|
if (e = t.src.charCodeAt(a + 1), e === 35) {
|
|
2795
|
-
if (i = t.src.slice(a).match(tf), i) return r || (n = i[1][0].toLowerCase() === "x" ? parseInt(i[1].slice(1), 16) : parseInt(i[1], 10), t.pending += du(n) ?
|
|
2795
|
+
if (i = t.src.slice(a).match(tf), i) return r || (n = i[1][0].toLowerCase() === "x" ? parseInt(i[1].slice(1), 16) : parseInt(i[1], 10), t.pending += du(n) ? es(n) : es(65533)), t.pos += i[0].length, !0;
|
|
2796
2796
|
} else if (i = t.src.slice(a).match(nf), i) {
|
|
2797
2797
|
var o = cu(i[1]);
|
|
2798
2798
|
if (i[1] !== o) return r || (t.pending += o), t.pos += i[0].length, !0;
|
|
@@ -2800,10 +2800,10 @@ function rf(t, r) {
|
|
|
2800
2800
|
}
|
|
2801
2801
|
return r || (t.pending += "&"), t.pos++, !0;
|
|
2802
2802
|
}
|
|
2803
|
-
var
|
|
2803
|
+
var fa = [["text", kp], ["newline", _p], ["escape", Sp], ["backticks", Cp], ["del", xp], ["ins", Ep], ["mark", Ap], ["emphasis", Tp], ["sub", Op], ["sup", Lp], ["links", Mp], ["footnote_inline", Pp], ["footnote_ref", $p], ["autolink", Bp], ["htmltag", ef], ["entity", rf]];
|
|
2804
2804
|
function xi() {
|
|
2805
2805
|
this.ruler = new He();
|
|
2806
|
-
for (var t = 0; t <
|
|
2806
|
+
for (var t = 0; t < fa.length; t++) this.ruler.push(fa[t][0], fa[t][1]);
|
|
2807
2807
|
this.validateLink = af;
|
|
2808
2808
|
}
|
|
2809
2809
|
xi.prototype.skipToken = function(t) {
|
|
@@ -2986,7 +2986,7 @@ mt.prototype.parseInline = function(t, r) {
|
|
|
2986
2986
|
mt.prototype.renderInline = function(t, r) {
|
|
2987
2987
|
return r = r || {}, this.renderer.render(this.parseInline(t, r), this.options, r);
|
|
2988
2988
|
};
|
|
2989
|
-
var
|
|
2989
|
+
var ns = /* @__PURE__ */ function() {
|
|
2990
2990
|
function t() {
|
|
2991
2991
|
_(this, t);
|
|
2992
2992
|
}
|
|
@@ -3214,7 +3214,7 @@ var Pe = bu, ci = /* @__PURE__ */ function() {
|
|
|
3214
3214
|
}(), wu = /* @__PURE__ */ function() {
|
|
3215
3215
|
function t(r) {
|
|
3216
3216
|
var e = this;
|
|
3217
|
-
_(this, t), this.messageElementRefs = [], this.messages = [], this.htmlClassUtilities = {}, this.textElementsToText = [], this.elementRef = t.createContainerElement(), this.messageStyles = r.messageStyles, this._remarkable =
|
|
3217
|
+
_(this, t), this.messageElementRefs = [], this.messages = [], this.htmlClassUtilities = {}, this.textElementsToText = [], this.elementRef = t.createContainerElement(), this.messageStyles = r.messageStyles, this._remarkable = ns.createNew(), this._avatars = r.avatars, this._names = r.names, this._onMessage = ci.onMessage.bind(this, r), r.htmlClassUtilities && (this.htmlClassUtilities = r.htmlClassUtilities), setTimeout(function() {
|
|
3218
3218
|
e.submitUserMessage = r.submitUserMessage;
|
|
3219
3219
|
});
|
|
3220
3220
|
}
|
|
@@ -3323,7 +3323,7 @@ var Pe = bu, ci = /* @__PURE__ */ function() {
|
|
|
3323
3323
|
key: "refreshTextMessages",
|
|
3324
3324
|
value: function() {
|
|
3325
3325
|
var e = this;
|
|
3326
|
-
this._remarkable =
|
|
3326
|
+
this._remarkable = ns.createNew(), this.textElementsToText.forEach(function(n) {
|
|
3327
3327
|
e.renderText(n[0].bubbleElement, n[1]);
|
|
3328
3328
|
});
|
|
3329
3329
|
}
|
|
@@ -3359,7 +3359,7 @@ var Pe = bu, ci = /* @__PURE__ */ function() {
|
|
|
3359
3359
|
return n && (l.text = n), i && (l.files = i), a && (l.html = a), !n && !i && !a && (l.text = ""), s && (l._sessionId = s), l;
|
|
3360
3360
|
}
|
|
3361
3361
|
}]);
|
|
3362
|
-
}(),
|
|
3362
|
+
}(), rs = /* @__PURE__ */ function() {
|
|
3363
3363
|
function t(r) {
|
|
3364
3364
|
_(this, t), this._fileAdded = !1, this._streamedContent = "", this._streamType = "", this._hasStreamEnded = !1, this._messages = r;
|
|
3365
3365
|
}
|
|
@@ -3382,7 +3382,7 @@ var Pe = bu, ci = /* @__PURE__ */ function() {
|
|
|
3382
3382
|
key: "setInitialState",
|
|
3383
3383
|
value: function(e, n, i) {
|
|
3384
3384
|
var a;
|
|
3385
|
-
this._streamType = e, (a = i) !== null && a !== void 0 || (i = Z.AI_ROLE), this._elements = e === "text" ? this._messages.addNewTextMessage(n, i) :
|
|
3385
|
+
this._streamType = e, (a = i) !== null && a !== void 0 || (i = Z.AI_ROLE), this._elements = e === "text" ? this._messages.addNewTextMessage(n, i) : Qa.add(this._messages, n, i, this._messages.messageElementRefs), this._elements.bubbleElement.classList.add(t.MESSAGE_CLASS), this._streamedContent = n, this._activeMessageRole = i, this._message = Es({
|
|
3386
3386
|
role: this._activeMessageRole
|
|
3387
3387
|
}, e, this._streamedContent), this._messages.messages.push(this._message);
|
|
3388
3388
|
}
|
|
@@ -3452,8 +3452,8 @@ var Pe = bu, ci = /* @__PURE__ */ function() {
|
|
|
3452
3452
|
}()
|
|
3453
3453
|
}]);
|
|
3454
3454
|
}();
|
|
3455
|
-
|
|
3456
|
-
var kt =
|
|
3455
|
+
rs.MESSAGE_CLASS = "streamed-message", rs.HTML_CONTENT_PLACEHOLDER = "htmlplaceholder";
|
|
3456
|
+
var kt = rs, ku = /* @__PURE__ */ function() {
|
|
3457
3457
|
function t() {
|
|
3458
3458
|
_(this, t);
|
|
3459
3459
|
}
|
|
@@ -3571,10 +3571,10 @@ var kt = is, ku = /* @__PURE__ */ function() {
|
|
|
3571
3571
|
ku.CONTENT_TYPE = "Content-Type";
|
|
3572
3572
|
var X = ku;
|
|
3573
3573
|
function uf(t, r) {
|
|
3574
|
-
return
|
|
3574
|
+
return is.apply(this, arguments);
|
|
3575
3575
|
}
|
|
3576
|
-
function
|
|
3577
|
-
return
|
|
3576
|
+
function is() {
|
|
3577
|
+
return is = x(/* @__PURE__ */ m().mark(function t(r, e) {
|
|
3578
3578
|
var n, i;
|
|
3579
3579
|
return m().wrap(function(s) {
|
|
3580
3580
|
for (; ; ) switch (s.prev = s.next) {
|
|
@@ -3596,7 +3596,7 @@ function as() {
|
|
|
3596
3596
|
return s.stop();
|
|
3597
3597
|
}
|
|
3598
3598
|
}, t);
|
|
3599
|
-
})),
|
|
3599
|
+
})), is.apply(this, arguments);
|
|
3600
3600
|
}
|
|
3601
3601
|
function df(t) {
|
|
3602
3602
|
var r, e, n, i = !1;
|
|
@@ -3662,12 +3662,12 @@ var ff = function(r, e) {
|
|
|
3662
3662
|
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && e.indexOf(i) < 0 && (n[i] = r[i]);
|
|
3663
3663
|
if (r != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, i = Object.getOwnPropertySymbols(r); a < i.length; a++) e.indexOf(i[a]) < 0 && Object.prototype.propertyIsEnumerable.call(r, i[a]) && (n[i[a]] = r[i[a]]);
|
|
3664
3664
|
return n;
|
|
3665
|
-
},
|
|
3665
|
+
}, as = "text/event-stream", mf = 1e3, Bo = "last-event-id";
|
|
3666
3666
|
function gf(t, r) {
|
|
3667
3667
|
var e = r.signal, n = r.headers, i = r.onopen, a = r.onmessage, s = r.onclose, o = r.onerror, l = r.openWhenHidden, c = r.fetch, u = ff(r, ["signal", "headers", "onopen", "onmessage", "onclose", "onerror", "openWhenHidden", "fetch"]);
|
|
3668
3668
|
return new Promise(function(d, h) {
|
|
3669
3669
|
var p = Object.assign({}, n);
|
|
3670
|
-
p.accept || (p.accept =
|
|
3670
|
+
p.accept || (p.accept = as);
|
|
3671
3671
|
var f;
|
|
3672
3672
|
function g() {
|
|
3673
3673
|
f.abort(), document.hidden || R();
|
|
@@ -3723,7 +3723,7 @@ function gf(t, r) {
|
|
|
3723
3723
|
}
|
|
3724
3724
|
function vf(t) {
|
|
3725
3725
|
var r = t.headers.get("content-type");
|
|
3726
|
-
if (!(r != null && r.startsWith(
|
|
3726
|
+
if (!(r != null && r.startsWith(as))) throw new Error("Expected content-type to be ".concat(as, ", Actual: ").concat(r));
|
|
3727
3727
|
}
|
|
3728
3728
|
var we = /* @__PURE__ */ function() {
|
|
3729
3729
|
function t() {
|
|
@@ -4669,7 +4669,7 @@ var _t = _u, ur = /* @__PURE__ */ function() {
|
|
|
4669
4669
|
key: "set",
|
|
4670
4670
|
value: function(e, n, i) {
|
|
4671
4671
|
t.populateDefaultFileIO(i == null ? void 0 : i.audio, ".4a,.mp3,.webm,.mp4,.mpga,.wav,.mpeg,.m4a"), t.populateDefaultFileIO(i == null ? void 0 : i.images, ".png,.jpg");
|
|
4672
|
-
var a =
|
|
4672
|
+
var a = ns.createNew();
|
|
4673
4673
|
t.processImagesConfig(n, a, e.images, i == null ? void 0 : i.images), t.processCamera(n, a, e.camera, e.images), t.processGifConfig(n, a, e.gifs, i == null ? void 0 : i.gifs), t.processAudioConfig(n, a, e.audio, i == null ? void 0 : i.audio), t.processMicrophone(n, a, e.microphone, e.audio), t.processMixedFiles(n, a, e.mixedFiles);
|
|
4674
4674
|
}
|
|
4675
4675
|
}]);
|
|
@@ -4929,7 +4929,7 @@ var _t = _u, ur = /* @__PURE__ */ function() {
|
|
|
4929
4929
|
e._propUpdated_ = !0, e._waitingToRender_ || (e._waitingToRender_ = !0, t.waitForPropertiesToBeUpdatedBeforeRender(e));
|
|
4930
4930
|
}
|
|
4931
4931
|
}]);
|
|
4932
|
-
}(),
|
|
4932
|
+
}(), ss = /* @__PURE__ */ function(t) {
|
|
4933
4933
|
function r() {
|
|
4934
4934
|
var e;
|
|
4935
4935
|
return _(this, r), e = V(this, r), e._waitingToRender_ = !1, e._propUpdated_ = !1, Object.keys(r._attributeToProperty_).forEach(function(n) {
|
|
@@ -4971,9 +4971,9 @@ var _t = _u, ur = /* @__PURE__ */ function() {
|
|
|
4971
4971
|
return Object.keys(r._attributes_) || [];
|
|
4972
4972
|
}
|
|
4973
4973
|
}]);
|
|
4974
|
-
}(/* @__PURE__ */
|
|
4975
|
-
|
|
4976
|
-
var wf =
|
|
4974
|
+
}(/* @__PURE__ */ Ja(HTMLElement));
|
|
4975
|
+
ss._attributes_ = {}, ss._attributeToProperty_ = {};
|
|
4976
|
+
var wf = ss, kf = `<?xml version="1.0" standalone="no"?>
|
|
4977
4977
|
<svg version="1.1"
|
|
4978
4978
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
4979
4979
|
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="0.9em" height="0.9em"
|
|
@@ -7027,7 +7027,7 @@ var Qt = Cu, Ps = /* @__PURE__ */ function(t) {
|
|
|
7027
7027
|
return e;
|
|
7028
7028
|
}()
|
|
7029
7029
|
}]);
|
|
7030
|
-
}(),
|
|
7030
|
+
}(), os = /* @__PURE__ */ function(t) {
|
|
7031
7031
|
function r(e) {
|
|
7032
7032
|
var n, i, a;
|
|
7033
7033
|
_(this, r);
|
|
@@ -7116,8 +7116,8 @@ var Qt = Cu, Ps = /* @__PURE__ */ function(t) {
|
|
|
7116
7116
|
}()
|
|
7117
7117
|
}]);
|
|
7118
7118
|
}(Ie);
|
|
7119
|
-
|
|
7120
|
-
var jf =
|
|
7119
|
+
os.DEFAULT_MODEL = "tts-1", os.DEFAULT_VOIDE = "alloy";
|
|
7120
|
+
var jf = os, Wr = /* @__PURE__ */ function(t) {
|
|
7121
7121
|
function r(e) {
|
|
7122
7122
|
var n, i;
|
|
7123
7123
|
_(this, r);
|
|
@@ -7470,7 +7470,7 @@ var Hf = Wr, Vt = /* @__PURE__ */ function() {
|
|
|
7470
7470
|
return n;
|
|
7471
7471
|
}()
|
|
7472
7472
|
}]);
|
|
7473
|
-
}(Uf),
|
|
7473
|
+
}(Uf), ma = /* @__PURE__ */ function() {
|
|
7474
7474
|
function t() {
|
|
7475
7475
|
_(this, t);
|
|
7476
7476
|
}
|
|
@@ -7569,7 +7569,7 @@ var Hf = Wr, Vt = /* @__PURE__ */ function() {
|
|
|
7569
7569
|
var n;
|
|
7570
7570
|
_(this, r);
|
|
7571
7571
|
var i, a = (i = e.directConnection) == null ? void 0 : i.assemblyAI;
|
|
7572
|
-
return n = V(this, r, [e,
|
|
7572
|
+
return n = V(this, r, [e, ma.buildKeyVerificationDetails(), ma.buildHeaders, a, {
|
|
7573
7573
|
audio: {}
|
|
7574
7574
|
}]), n.insertKeyPlaceholderText = "AssemblyAI API Key", n.keyHelpUrl = "https://www.assemblyai.com/app/account", n.introPanelMarkUp = `
|
|
7575
7575
|
<div style="width: 100%; text-align: center; margin-left: -10px"><b>AssemblyAI Audio</b></div>
|
|
@@ -7624,7 +7624,7 @@ var Hf = Wr, Vt = /* @__PURE__ */ function() {
|
|
|
7624
7624
|
}
|
|
7625
7625
|
throw a.error;
|
|
7626
7626
|
case 2:
|
|
7627
|
-
return l = (o = (s = this.connectSettings) == null ? void 0 : s.headers) == null ? void 0 : o.Authorization, u.next = 5,
|
|
7627
|
+
return l = (o = (s = this.connectSettings) == null ? void 0 : s.headers) == null ? void 0 : o.Authorization, u.next = 5, ma.poll(l, a.upload_url);
|
|
7628
7628
|
case 5:
|
|
7629
7629
|
return u.t0 = u.sent.text, u.abrupt("return", {
|
|
7630
7630
|
text: u.t0
|
|
@@ -7893,7 +7893,7 @@ var Wf = Au, Gf = /* @__PURE__ */ function(t) {
|
|
|
7893
7893
|
return n;
|
|
7894
7894
|
}()
|
|
7895
7895
|
}]);
|
|
7896
|
-
}(Ie),
|
|
7896
|
+
}(Ie), ls = /* @__PURE__ */ function() {
|
|
7897
7897
|
function t() {
|
|
7898
7898
|
_(this, t);
|
|
7899
7899
|
}
|
|
@@ -8186,8 +8186,8 @@ var Wf = Au, Gf = /* @__PURE__ */ function(t) {
|
|
|
8186
8186
|
}()
|
|
8187
8187
|
}]);
|
|
8188
8188
|
}();
|
|
8189
|
-
|
|
8190
|
-
var Ft =
|
|
8189
|
+
ls.FILES_WITH_TEXT_ERROR = "content with type `text` must have `text` values", ls.FUNCTION_TOOL_RESP_ERROR = "Response must contain an array of strings for each individual function/tool_call, see https://deepchat.dev/docs/directConnection/OpenAI/#assistant-functions.";
|
|
8190
|
+
var Ft = ls, Gr = /* @__PURE__ */ function(t) {
|
|
8191
8191
|
function r(e) {
|
|
8192
8192
|
var n, i, a;
|
|
8193
8193
|
_(this, r);
|
|
@@ -9746,7 +9746,7 @@ var tm = /* @__PURE__ */ function() {
|
|
|
9746
9746
|
var o = this._introMessage;
|
|
9747
9747
|
if (i != null && i.isWebModel() && ((a = o) !== null && a !== void 0 || (o = i.getIntroMessage(o))), o) {
|
|
9748
9748
|
var l;
|
|
9749
|
-
o != null && o.text ? l = this.createAndAppendNewMessageElement(o.text, Z.AI_ROLE) : o != null && o.html && (l =
|
|
9749
|
+
o != null && o.text ? l = this.createAndAppendNewMessageElement(o.text, Z.AI_ROLE) : o != null && o.html && (l = Qa.add(this, o.html, Z.AI_ROLE, this.messageElementRefs)), l && (this.applyCustomStyles(l, Z.AI_ROLE, !1, (s = this.messageStyles) == null ? void 0 : s.intro), l.outerContainer.classList.add("deep-chat-intro"));
|
|
9750
9750
|
}
|
|
9751
9751
|
}
|
|
9752
9752
|
}, {
|
|
@@ -9769,7 +9769,7 @@ var tm = /* @__PURE__ */ function() {
|
|
|
9769
9769
|
status: n.overwrite
|
|
9770
9770
|
};
|
|
9771
9771
|
if (!n.ignoreText && s.text !== void 0 && n.text !== null && (this.addNewTextMessage(s.text, s.role, o, a), !i && this.textToSpeech && s.role !== Z.USER_ROLE && zr.speak(s.text, this.textToSpeech)), s.files && Array.isArray(s.files) && sm.addMessages(this, s.files, s.role, a), s.html !== void 0 && s.html !== null) {
|
|
9772
|
-
var l =
|
|
9772
|
+
var l = Qa.add(this, s.html, s.role, this.messageElementRefs, o, a);
|
|
9773
9773
|
li.isElementTemporary(l) && delete s.html;
|
|
9774
9774
|
}
|
|
9775
9775
|
return this.isValidMessageContent(s) && !a && this.updateStateOnMessage(s, n.overwrite, n.sendUpdate, i), s;
|
|
@@ -11054,7 +11054,7 @@ Object.defineProperty(Sr, "__esModule", {
|
|
|
11054
11054
|
value: !0
|
|
11055
11055
|
});
|
|
11056
11056
|
Sr.Speech = void 0;
|
|
11057
|
-
var Qo = Oi, Mm = Ii, el = Cr, Br = xr,
|
|
11057
|
+
var Qo = Oi, Mm = Ii, el = Cr, Br = xr, ga = Li, nt = tn, va = Mi, tl = Rn, nl = nn, ya = en, Pm = /* @__PURE__ */ function() {
|
|
11058
11058
|
function t() {
|
|
11059
11059
|
_(this, t), this.finalTranscript = "", this.interimSpan = nt.Elements.createInterimSpan(), this.finalSpan = nt.Elements.createGenericSpan(), this.scrollingSpan = nt.Elements.createGenericSpan(), this.isCursorAtEnd = !1, this.spansPopulated = !1, this.startPadding = "", this.endPadding = "", this.numberOfSpacesBeforeNewText = 0, this.numberOfSpacesAfterNewText = 0, this.isHighlighted = !1, this.primitiveTextRecorded = !1, this.recognizing = !1, this._displayInterimResults = !0, this.insertInCursorLocation = !0, this.autoScroll = !0, this.isRestarting = !1, this.isPaused = !1, this.isWaitingForCommand = !1, this.isTargetInShadow = !1, this.cannotBeStopped = !1, this.resetState();
|
|
11060
11060
|
}
|
|
@@ -11074,7 +11074,7 @@ var Qo = Oi, Mm = Ii, el = Cr, Br = xr, va = Li, nt = tn, ya = Mi, tl = Rn, nl =
|
|
|
11074
11074
|
}, {
|
|
11075
11075
|
key: "prepare",
|
|
11076
11076
|
value: function(e) {
|
|
11077
|
-
|
|
11077
|
+
va.Padding.setState(this, e), ga.Highlight.setState(this, e), this.isTargetInShadow = nt.Elements.isInsideShadowDOM(e), nt.Elements.isPrimitiveElement(e) ? (this._primitiveElement = e, this._originalText = this._primitiveElement.value) : (this._genericElement = e, this._originalText = this._genericElement.textContent);
|
|
11078
11078
|
}
|
|
11079
11079
|
// there was an attempt to optimize this by not having to restart the service and just reset state:
|
|
11080
11080
|
// unfortunately it did not work because the service would still continue firing the intermediate and final results
|
|
@@ -11088,7 +11088,7 @@ var Qo = Oi, Mm = Ii, el = Cr, Br = xr, va = Li, nt = tn, ya = Mi, tl = Rn, nl =
|
|
|
11088
11088
|
}, {
|
|
11089
11089
|
key: "updateElements",
|
|
11090
11090
|
value: function(e, n, i) {
|
|
11091
|
-
var a, s =
|
|
11091
|
+
var a, s = ya.Text.capitalize(n);
|
|
11092
11092
|
if (!(this.finalTranscript === s && e === "")) {
|
|
11093
11093
|
Mm.PreResultUtils.process(this, i, e === "", this._onPreResult, this._options) && (e = "", i = "");
|
|
11094
11094
|
var o = this.commands && el.CommandUtils.execCommand(this, i, this._options, this._primitiveElement || this._genericElement, this._originalText);
|
|
@@ -11108,7 +11108,7 @@ var Qo = Oi, Mm = Ii, el = Cr, Br = xr, va = Li, nt = tn, ya = Mi, tl = Rn, nl =
|
|
|
11108
11108
|
}, {
|
|
11109
11109
|
key: "updatePrimitiveElement",
|
|
11110
11110
|
value: function(e, n, i) {
|
|
11111
|
-
this.isHighlighted &&
|
|
11111
|
+
this.isHighlighted && ga.Highlight.removeForPrimitive(this, e), this.primitiveTextRecorded || va.Padding.adjustStateAfterRecodingPrimitiveElement(this, e), i && va.Padding.adjustSateForNoTextPrimitiveElement(this);
|
|
11112
11112
|
var a = this.startPadding + this.finalTranscript + n;
|
|
11113
11113
|
if (e.value = a + this.endPadding, !this.isTargetInShadow) {
|
|
11114
11114
|
var s = a.length + this.numberOfSpacesAfterNewText;
|
|
@@ -11119,12 +11119,12 @@ var Qo = Oi, Mm = Ii, el = Cr, Br = xr, va = Li, nt = tn, ya = Mi, tl = Rn, nl =
|
|
|
11119
11119
|
}, {
|
|
11120
11120
|
key: "updateGenericElement",
|
|
11121
11121
|
value: function(e, n, i) {
|
|
11122
|
-
this.isHighlighted &&
|
|
11123
|
-
var a = (i ? "" : this.startPadding) +
|
|
11122
|
+
this.isHighlighted && ga.Highlight.removeForGeneric(this, e), this.spansPopulated || nt.Elements.appendSpans(this, e);
|
|
11123
|
+
var a = (i ? "" : this.startPadding) + ya.Text.lineBreak(this.finalTranscript);
|
|
11124
11124
|
this.finalSpan.innerHTML = a;
|
|
11125
11125
|
var s = Br.AutoScroll.isRequired(this.autoScroll, e);
|
|
11126
11126
|
Br.AutoScroll.changeStateIfNeeded(this, s);
|
|
11127
|
-
var o =
|
|
11127
|
+
var o = ya.Text.lineBreak(n) + (i ? "" : this.endPadding);
|
|
11128
11128
|
this.interimSpan.innerHTML = o, tl.Browser.IS_SAFARI() && this.insertInCursorLocation && nl.Cursor.setOffsetForSafariGeneric(e, a.length + o.length), s && Br.AutoScroll.scrollGeneric(this, e), i && (this.scrollingSpan.innerHTML = "");
|
|
11129
11129
|
}
|
|
11130
11130
|
}, {
|
|
@@ -11281,14 +11281,14 @@ Object.defineProperty(Ni, "__esModule", {
|
|
|
11281
11281
|
value: !0
|
|
11282
11282
|
});
|
|
11283
11283
|
Ni.AzureSpeechConfig = void 0;
|
|
11284
|
-
var
|
|
11284
|
+
var ba = Di, Dm = /* @__PURE__ */ function() {
|
|
11285
11285
|
function t() {
|
|
11286
11286
|
_(this, t);
|
|
11287
11287
|
}
|
|
11288
11288
|
return S(t, null, [{
|
|
11289
11289
|
key: "validateOptions",
|
|
11290
11290
|
value: function(e, n) {
|
|
11291
|
-
return n ? !n.subscriptionKey && !n.token && !n.retrieveToken ? (e("Please define a 'subscriptionKey', 'token' or 'retrieveToken' property - more info: ".concat(
|
|
11291
|
+
return n ? !n.subscriptionKey && !n.token && !n.retrieveToken ? (e("Please define a 'subscriptionKey', 'token' or 'retrieveToken' property - more info: ".concat(ba.README_URL)), !1) : n.region ? !0 : (e("Please define a 'region' property - more info: ".concat(ba.README_URL)), !1) : (e("Please provide subscription details - more info: ".concat(ba.README_URL)), !1);
|
|
11292
11292
|
}
|
|
11293
11293
|
}, {
|
|
11294
11294
|
key: "getNewSpeechConfig",
|
|
@@ -11404,7 +11404,7 @@ Object.defineProperty($i, "__esModule", {
|
|
|
11404
11404
|
value: !0
|
|
11405
11405
|
});
|
|
11406
11406
|
$i.Azure = void 0;
|
|
11407
|
-
var al = Fi, sl = Ni,
|
|
11407
|
+
var al = Fi, sl = Ni, wa = Bi, ol = ji, Hm = Sr, Um = /* @__PURE__ */ function(t) {
|
|
11408
11408
|
function r() {
|
|
11409
11409
|
var e;
|
|
11410
11410
|
return _(this, r), e = V(this, r, arguments), e._newTextPadding = "", e;
|
|
@@ -11412,7 +11412,7 @@ var al = Fi, sl = Ni, ka = Bi, ol = ji, Hm = Sr, Um = /* @__PURE__ */ function(t
|
|
|
11412
11412
|
return W(r, t), S(r, [{
|
|
11413
11413
|
key: "start",
|
|
11414
11414
|
value: function(n, i) {
|
|
11415
|
-
this._newTextPadding = "", this.stopTimeout === void 0 &&
|
|
11415
|
+
this._newTextPadding = "", this.stopTimeout === void 0 && wa.StopTimeout.reset(this, n == null ? void 0 : n.stopAfterSilenceMs), this.prepareBeforeStart(n), this.startAsync(n), i || al.PreventConnectionStop.applyPrevention(this);
|
|
11416
11416
|
}
|
|
11417
11417
|
}, {
|
|
11418
11418
|
key: "startAsync",
|
|
@@ -11479,7 +11479,7 @@ var al = Fi, sl = Ni, ka = Bi, ol = ji, Hm = Sr, Um = /* @__PURE__ */ function(t
|
|
|
11479
11479
|
value: function(n, i) {
|
|
11480
11480
|
if (!this._stopping) {
|
|
11481
11481
|
var a = ol.AzureTranscript.extract(this._newTextPadding + i.result.text, this.finalTranscript, !1, this._translations), s = a.interimTranscript, o = a.finalTranscript, l = a.newText;
|
|
11482
|
-
|
|
11482
|
+
wa.StopTimeout.reset(this, this.stopTimeoutMS), this.updateElements(s, o, l);
|
|
11483
11483
|
}
|
|
11484
11484
|
}
|
|
11485
11485
|
// WORK - huge opportunity to fix this in the repo!!!!!
|
|
@@ -11498,7 +11498,7 @@ var al = Fi, sl = Ni, ka = Bi, ol = ji, Hm = Sr, Um = /* @__PURE__ */ function(t
|
|
|
11498
11498
|
case window.SpeechSDK.ResultReason.RecognizedSpeech:
|
|
11499
11499
|
if (a.text && !this._stopping) {
|
|
11500
11500
|
var s = ol.AzureTranscript.extract(this._newTextPadding + a.text, this.finalTranscript, !0, this._translations), o = s.interimTranscript, l = s.finalTranscript, c = s.newText;
|
|
11501
|
-
|
|
11501
|
+
wa.StopTimeout.reset(this, this.stopTimeoutMS), this.updateElements(o, l, c), l !== "" && (this._newTextPadding = " ");
|
|
11502
11502
|
}
|
|
11503
11503
|
break;
|
|
11504
11504
|
}
|
|
@@ -11746,7 +11746,7 @@ var Fs = Pu, Ns = /* @__PURE__ */ function() {
|
|
|
11746
11746
|
var s = t.createImageAttachment(n);
|
|
11747
11747
|
this.addFileAttachment(e, "image", s, i);
|
|
11748
11748
|
} else if (a === "audio") {
|
|
11749
|
-
var o =
|
|
11749
|
+
var o = cs.createAudioAttachment(n);
|
|
11750
11750
|
this.addFileAttachment(e, "audio", o, i);
|
|
11751
11751
|
} else {
|
|
11752
11752
|
var l = t.createAnyFileAttachment(e.name);
|
|
@@ -11784,7 +11784,7 @@ var Fs = Pu, Ns = /* @__PURE__ */ function() {
|
|
|
11784
11784
|
var n, i = this._attachments.findIndex(function(s) {
|
|
11785
11785
|
return s === e;
|
|
11786
11786
|
}), a = this._attachments[i].attachmentContainerElement;
|
|
11787
|
-
this._attachments.splice(i, 1),
|
|
11787
|
+
this._attachments.splice(i, 1), cs.stopAttachmentPlayback(a), a.remove(), this._toggleContainerDisplay(!1), (n = this._validationHandler) == null || n.call(this);
|
|
11788
11788
|
}
|
|
11789
11789
|
}, {
|
|
11790
11790
|
key: "getFiles",
|
|
@@ -11961,7 +11961,7 @@ var Fs = Pu, Ns = /* @__PURE__ */ function() {
|
|
|
11961
11961
|
}]);
|
|
11962
11962
|
}(Ns);
|
|
11963
11963
|
$u.TIMER_LIMIT_S = 5999;
|
|
11964
|
-
var
|
|
11964
|
+
var cs = $u, Km = /* @__PURE__ */ function() {
|
|
11965
11965
|
function t() {
|
|
11966
11966
|
_(this, t);
|
|
11967
11967
|
}
|
|
@@ -11970,7 +11970,7 @@ var us = $u, Km = /* @__PURE__ */ function() {
|
|
|
11970
11970
|
value: (
|
|
11971
11971
|
// prettier-ignore
|
|
11972
11972
|
function(e, n, i, a, s) {
|
|
11973
|
-
return s === "audio" ? new
|
|
11973
|
+
return s === "audio" ? new cs(e, n, i, a) : new Ns(e, n, i, a);
|
|
11974
11974
|
}
|
|
11975
11975
|
)
|
|
11976
11976
|
}]);
|
|
@@ -13056,7 +13056,7 @@ var Qm = Zr, e0 = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
13056
13056
|
}, e.setPlaceholderText = function() {
|
|
13057
13057
|
}, e._hasBeenRendered = !1, e._auxiliaryStyleApplied = !1, e._elementRef = document.createElement("div"), e._elementRef.id = "container", e.attachShadow({
|
|
13058
13058
|
mode: "open"
|
|
13059
|
-
}).appendChild(e._elementRef),
|
|
13059
|
+
}).appendChild(e._elementRef), ua.apply(c0, e.shadowRoot), setTimeout(function() {
|
|
13060
13060
|
e._hasBeenRendered || e.onRender();
|
|
13061
13061
|
}, 20), e;
|
|
13062
13062
|
}
|
|
@@ -13070,7 +13070,7 @@ var Qm = Zr, e0 = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
13070
13070
|
key: "onRender",
|
|
13071
13071
|
value: function() {
|
|
13072
13072
|
var n;
|
|
13073
|
-
eu.attemptAppendStyleSheetToHead(this.style), Be.processConnect(this), (!this._activeService || this._activeService.demo) && (this._activeService = Qf.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (
|
|
13073
|
+
eu.attemptAppendStyleSheetToHead(this.style), Be.processConnect(this), (!this._activeService || this._activeService.demo) && (this._activeService = Qf.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (ua.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0), ua.applyDefaultStyleToComponent(this.style, this.chatStyle), Be.checkForContainerStyles(this, this._elementRef), this._activeService.key && this._activeService.validateKeyProperty ? vh.render(this._elementRef, this.changeToChatView.bind(this), this._activeService) : !(this._activeService instanceof Ie) || this._activeService.key ? ((n = this._childElement) !== null && n !== void 0 || (this._childElement = this.children[0]), l0.render(this, this._elementRef, this._activeService, this._childElement)) : this._activeService instanceof Ie && Cf.render(this._elementRef, this.changeToChatView.bind(this), this._activeService), this._hasBeenRendered = !0, ci.onRender(this);
|
|
13074
13074
|
}
|
|
13075
13075
|
}, {
|
|
13076
13076
|
key: "disconnectedCallback",
|
|
@@ -13215,8 +13215,8 @@ function js(t) {
|
|
|
13215
13215
|
var r = On(t);
|
|
13216
13216
|
return r == $0 || r == F0 || r == P0 || r == N0;
|
|
13217
13217
|
}
|
|
13218
|
-
var
|
|
13219
|
-
var t = /[^.]+$/.exec(
|
|
13218
|
+
var ka = Xe["__core-js_shared__"], yl = function() {
|
|
13219
|
+
var t = /[^.]+$/.exec(ka && ka.keys && ka.keys.IE_PROTO || "");
|
|
13220
13220
|
return t ? "Symbol(src)_1." + t : "";
|
|
13221
13221
|
}();
|
|
13222
13222
|
function D0(t) {
|
|
@@ -13600,12 +13600,12 @@ function ev(t, r, e, n) {
|
|
|
13600
13600
|
}
|
|
13601
13601
|
return s;
|
|
13602
13602
|
}
|
|
13603
|
-
var xl = "__lodash_placeholder__",
|
|
13603
|
+
var xl = "__lodash_placeholder__", _a = 1, tv = 2, nv = 4, El = 8, Nn = 128, Al = 256, rv = Math.min;
|
|
13604
13604
|
function iv(t, r) {
|
|
13605
|
-
var e = t[1], n = r[1], i = e | n, a = i < (
|
|
13605
|
+
var e = t[1], n = r[1], i = e | n, a = i < (_a | tv | Nn), s = n == Nn && e == El || n == Nn && e == Al && t[7].length <= r[8] || n == (Nn | Al) && r[7].length <= r[8] && e == El;
|
|
13606
13606
|
if (!(a || s))
|
|
13607
13607
|
return t;
|
|
13608
|
-
n &
|
|
13608
|
+
n & _a && (t[2] = r[2], i |= e & _a ? 0 : nv);
|
|
13609
13609
|
var o = r[3];
|
|
13610
13610
|
if (o) {
|
|
13611
13611
|
var l = t[3];
|
|
@@ -13613,13 +13613,13 @@ function iv(t, r) {
|
|
|
13613
13613
|
}
|
|
13614
13614
|
return o = r[5], o && (l = t[5], t[5] = l ? zu(l, o, r[6]) : o, t[6] = l ? mi(t[5], xl) : r[6]), o = r[7], o && (t[7] = o), n & Nn && (t[8] = t[8] == null ? r[8] : rv(t[8], r[8])), t[9] == null && (t[9] = r[9]), t[0] = r[0], t[1] = i, t;
|
|
13615
13615
|
}
|
|
13616
|
-
var av = "Expected a function", Tl = 1, sv = 2,
|
|
13616
|
+
var av = "Expected a function", Tl = 1, sv = 2, Sa = 8, Ca = 16, xa = 32, Rl = 64, Ol = Math.max;
|
|
13617
13617
|
function ov(t, r, e, n, i, a, s, o) {
|
|
13618
13618
|
var l = r & sv;
|
|
13619
13619
|
if (!l && typeof t != "function")
|
|
13620
13620
|
throw new TypeError(av);
|
|
13621
13621
|
var c = n ? n.length : 0;
|
|
13622
|
-
if (c || (r &= ~(
|
|
13622
|
+
if (c || (r &= ~(xa | Rl), n = i = void 0), s = s === void 0 ? s : Ol(vl(s), 0), o = o === void 0 ? o : vl(o), c -= i ? i.length : 0, r & Rl) {
|
|
13623
13623
|
var u = n, d = i;
|
|
13624
13624
|
n = i = void 0;
|
|
13625
13625
|
}
|
|
@@ -13635,9 +13635,9 @@ function ov(t, r, e, n, i, a, s, o) {
|
|
|
13635
13635
|
s,
|
|
13636
13636
|
o
|
|
13637
13637
|
];
|
|
13638
|
-
if (h && iv(p, h), t = p[0], r = p[1], e = p[2], n = p[3], i = p[4], o = p[9] = p[9] === void 0 ? l ? 0 : t.length : Ol(p[9] - c, 0), !o && r & (
|
|
13638
|
+
if (h && iv(p, h), t = p[0], r = p[1], e = p[2], n = p[3], i = p[4], o = p[9] = p[9] === void 0 ? l ? 0 : t.length : Ol(p[9] - c, 0), !o && r & (Sa | Ca) && (r &= ~(Sa | Ca)), !r || r == Tl)
|
|
13639
13639
|
var f = X0(t, r, e);
|
|
13640
|
-
else r ==
|
|
13640
|
+
else r == Sa || r == Ca ? f = Xg(t, r, o) : (r == xa || r == (Tl | xa)) && !i.length ? f = ev(t, r, e, n) : f = Vs.apply(void 0, p);
|
|
13641
13641
|
var g = h ? Hu : Wu;
|
|
13642
13642
|
return Gu(g(f, p), t, r);
|
|
13643
13643
|
}
|
|
@@ -13736,10 +13736,10 @@ function Kv(t) {
|
|
|
13736
13736
|
return t(r);
|
|
13737
13737
|
};
|
|
13738
13738
|
}
|
|
13739
|
-
var nd = typeof exports == "object" && exports && !exports.nodeType && exports, Qn = nd && typeof module == "object" && module && !module.nodeType && module, Jv = Qn && Qn.exports === nd,
|
|
13739
|
+
var nd = typeof exports == "object" && exports && !exports.nodeType && exports, Qn = nd && typeof module == "object" && module && !module.nodeType && module, Jv = Qn && Qn.exports === nd, Ea = Jv && Du.process, $l = function() {
|
|
13740
13740
|
try {
|
|
13741
13741
|
var t = Qn && Qn.require && Qn.require("util").types;
|
|
13742
|
-
return t ||
|
|
13742
|
+
return t || Ea && Ea.binding && Ea.binding("util");
|
|
13743
13743
|
} catch {
|
|
13744
13744
|
}
|
|
13745
13745
|
}(), Fl = $l && $l.isTypedArray, rd = Fl ? Kv(Fl) : Gv;
|
|
@@ -14068,13 +14068,13 @@ function Ar(t, r, e) {
|
|
|
14068
14068
|
return n.placeholder = Ar.placeholder, n;
|
|
14069
14069
|
}
|
|
14070
14070
|
Ar.placeholder = {};
|
|
14071
|
-
function
|
|
14071
|
+
function us(t, r, e) {
|
|
14072
14072
|
(e !== void 0 && !qi(t[r], e) || e === void 0 && !(r in t)) && Ws(t, r, e);
|
|
14073
14073
|
}
|
|
14074
14074
|
function h2(t) {
|
|
14075
14075
|
return Lt(t) && Ks(t);
|
|
14076
14076
|
}
|
|
14077
|
-
function
|
|
14077
|
+
function ds(t, r) {
|
|
14078
14078
|
if (!(r === "constructor" && typeof t[r] == "function") && r != "__proto__")
|
|
14079
14079
|
return t[r];
|
|
14080
14080
|
}
|
|
@@ -14082,9 +14082,9 @@ function p2(t) {
|
|
|
14082
14082
|
return uv(t, id(t));
|
|
14083
14083
|
}
|
|
14084
14084
|
function f2(t, r, e, n, i, a, s) {
|
|
14085
|
-
var o =
|
|
14085
|
+
var o = ds(t, e), l = ds(r, e), c = s.get(l);
|
|
14086
14086
|
if (c) {
|
|
14087
|
-
|
|
14087
|
+
us(t, e, c);
|
|
14088
14088
|
return;
|
|
14089
14089
|
}
|
|
14090
14090
|
var u = a ? a(o, l, e + "", t, r, s) : void 0, d = u === void 0;
|
|
@@ -14092,15 +14092,15 @@ function f2(t, r, e, n, i, a, s) {
|
|
|
14092
14092
|
var h = lt(l), p = !h && td(l), f = !h && !p && rd(l);
|
|
14093
14093
|
u = l, h || p || f ? lt(o) ? u = o : h2(o) ? u = zs(o) : p ? (d = !1, u = n2(l)) : f ? (d = !1, u = i2(l)) : u = [] : K1(l) || hr(l) ? (u = o, hr(o) ? u = p2(o) : (!Ke(o) || js(o)) && (u = a2(l))) : d = !1;
|
|
14094
14094
|
}
|
|
14095
|
-
d && (s.set(l, u), i(u, l, n, a, s), s.delete(l)),
|
|
14095
|
+
d && (s.set(l, u), i(u, l, n, a, s), s.delete(l)), us(t, e, u);
|
|
14096
14096
|
}
|
|
14097
14097
|
function cd(t, r, e, n, i) {
|
|
14098
14098
|
t !== r && u2(r, function(a, s) {
|
|
14099
14099
|
if (i || (i = new In()), Ke(a))
|
|
14100
14100
|
f2(t, r, s, e, cd, n, i);
|
|
14101
14101
|
else {
|
|
14102
|
-
var o = n ? n(
|
|
14103
|
-
o === void 0 && (o = a),
|
|
14102
|
+
var o = n ? n(ds(t, s), a, s + "", t, r, i) : void 0;
|
|
14103
|
+
o === void 0 && (o = a), us(t, s, o);
|
|
14104
14104
|
}
|
|
14105
14105
|
}, id);
|
|
14106
14106
|
}
|
|
@@ -14177,11 +14177,11 @@ const S2 = (t) => (r, e = "16px") => {
|
|
|
14177
14177
|
throw new at(72, e, t);
|
|
14178
14178
|
return `${n / i}${t}`;
|
|
14179
14179
|
};
|
|
14180
|
-
function
|
|
14180
|
+
function Aa(t) {
|
|
14181
14181
|
return Math.round(t * 255);
|
|
14182
14182
|
}
|
|
14183
14183
|
function C2(t, r, e) {
|
|
14184
|
-
return `${
|
|
14184
|
+
return `${Aa(t)},${Aa(r)},${Aa(e)}`;
|
|
14185
14185
|
}
|
|
14186
14186
|
function zl(t, r, e, n = C2) {
|
|
14187
14187
|
if (r === 0)
|
|
@@ -14385,7 +14385,7 @@ const A2 = Ar(function(t, r, e) {
|
|
|
14385
14385
|
Ar(function(t, r) {
|
|
14386
14386
|
return r === "transparent" ? r : A2(parseFloat(t.toString()), "rgb(0, 0, 0)", r);
|
|
14387
14387
|
});
|
|
14388
|
-
const T2 = /^#[a-fA-F0-9]{6}$/, R2 = /^#[a-fA-F0-9]{8}$/, O2 = /^#[a-fA-F0-9]{3}$/, I2 = /^#[a-fA-F0-9]{4}$/,
|
|
14388
|
+
const T2 = /^#[a-fA-F0-9]{6}$/, R2 = /^#[a-fA-F0-9]{8}$/, O2 = /^#[a-fA-F0-9]{3}$/, I2 = /^#[a-fA-F0-9]{4}$/, Ta = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, L2 = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, M2 = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, P2 = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
|
|
14389
14389
|
function pe(t, r, e, n) {
|
|
14390
14390
|
if (typeof t == "string" && typeof r == "number") {
|
|
14391
14391
|
const i = gi(t);
|
|
@@ -14439,7 +14439,7 @@ function gi(t) {
|
|
|
14439
14439
|
alpha: s
|
|
14440
14440
|
};
|
|
14441
14441
|
}
|
|
14442
|
-
const e =
|
|
14442
|
+
const e = Ta.exec(r);
|
|
14443
14443
|
if (e)
|
|
14444
14444
|
return {
|
|
14445
14445
|
red: parseInt(`${e[1]}`, 10),
|
|
@@ -14456,7 +14456,7 @@ function gi(t) {
|
|
|
14456
14456
|
};
|
|
14457
14457
|
const i = M2.exec(r);
|
|
14458
14458
|
if (i) {
|
|
14459
|
-
const s = parseInt(`${i[1]}`, 10), o = parseInt(`${i[2]}`, 10) / 100, l = parseInt(`${i[3]}`, 10) / 100, c = `rgb(${zl(s, o, l)})`, u =
|
|
14459
|
+
const s = parseInt(`${i[1]}`, 10), o = parseInt(`${i[2]}`, 10) / 100, l = parseInt(`${i[3]}`, 10) / 100, c = `rgb(${zl(s, o, l)})`, u = Ta.exec(c);
|
|
14460
14460
|
if (!u)
|
|
14461
14461
|
throw new at(4, r, c);
|
|
14462
14462
|
return {
|
|
@@ -14467,7 +14467,7 @@ function gi(t) {
|
|
|
14467
14467
|
}
|
|
14468
14468
|
const a = P2.exec(r.substring(0, 50));
|
|
14469
14469
|
if (a) {
|
|
14470
|
-
const s = parseInt(`${a[1]}`, 10), o = parseInt(`${a[2]}`, 10) / 100, l = parseInt(`${a[3]}`, 10) / 100, c = `rgb(${zl(s, o, l)})`, u =
|
|
14470
|
+
const s = parseInt(`${a[1]}`, 10), o = parseInt(`${a[2]}`, 10) / 100, l = parseInt(`${a[3]}`, 10) / 100, c = `rgb(${zl(s, o, l)})`, u = Ta.exec(c);
|
|
14471
14471
|
if (!u)
|
|
14472
14472
|
throw new at(4, r, c);
|
|
14473
14473
|
return {
|
|
@@ -15660,7 +15660,7 @@ const k = (t) => new hd(typeof t == "string" ? t : t + "", void 0, Xs), _e = (t,
|
|
|
15660
15660
|
* Copyright 2017 Google LLC
|
|
15661
15661
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15662
15662
|
*/
|
|
15663
|
-
const { is: W2, defineProperty: G2, getOwnPropertyDescriptor: K2, getOwnPropertyNames: J2, getOwnPropertySymbols: Z2, getPrototypeOf: Y2 } = Object, St = globalThis, Jl = St.trustedTypes, X2 = Jl ? Jl.emptyScript : "",
|
|
15663
|
+
const { is: W2, defineProperty: G2, getOwnPropertyDescriptor: K2, getOwnPropertyNames: J2, getOwnPropertySymbols: Z2, getPrototypeOf: Y2 } = Object, St = globalThis, Jl = St.trustedTypes, X2 = Jl ? Jl.emptyScript : "", Ra = St.reactiveElementPolyfillSupport, er = (t, r) => t, vi = { toAttribute(t, r) {
|
|
15664
15664
|
switch (r) {
|
|
15665
15665
|
case Boolean:
|
|
15666
15666
|
t = t ? X2 : null;
|
|
@@ -15888,14 +15888,14 @@ let gn = class extends HTMLElement {
|
|
|
15888
15888
|
firstUpdated(r) {
|
|
15889
15889
|
}
|
|
15890
15890
|
};
|
|
15891
|
-
gn.elementStyles = [], gn.shadowRootOptions = { mode: "open" }, gn[er("elementProperties")] = /* @__PURE__ */ new Map(), gn[er("finalized")] = /* @__PURE__ */ new Map(),
|
|
15891
|
+
gn.elementStyles = [], gn.shadowRootOptions = { mode: "open" }, gn[er("elementProperties")] = /* @__PURE__ */ new Map(), gn[er("finalized")] = /* @__PURE__ */ new Map(), Ra == null || Ra({ ReactiveElement: gn }), (St.reactiveElementVersions ?? (St.reactiveElementVersions = [])).push("2.0.4");
|
|
15892
15892
|
/**
|
|
15893
15893
|
* @license
|
|
15894
15894
|
* Copyright 2017 Google LLC
|
|
15895
15895
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15896
15896
|
*/
|
|
15897
|
-
const tr = globalThis, yi = tr.trustedTypes, Yl = yi ? yi.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, pd = "$lit$", wt = `lit$${Math.random().toFixed(9).slice(2)}$`, fd = "?" + wt, Q2 = `<${fd}>`, Gt = document, fr = () => Gt.createComment(""), mr = (t) => t === null || typeof t != "object" && typeof t != "function", Qs = Array.isArray, ey = (t) => Qs(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function",
|
|
15898
|
-
\f\r]`, Dn = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Xl = /-->/g, Ql = />/g, Bt = RegExp(`>|${
|
|
15897
|
+
const tr = globalThis, yi = tr.trustedTypes, Yl = yi ? yi.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, pd = "$lit$", wt = `lit$${Math.random().toFixed(9).slice(2)}$`, fd = "?" + wt, Q2 = `<${fd}>`, Gt = document, fr = () => Gt.createComment(""), mr = (t) => t === null || typeof t != "object" && typeof t != "function", Qs = Array.isArray, ey = (t) => Qs(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", Oa = `[
|
|
15898
|
+
\f\r]`, Dn = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Xl = /-->/g, Ql = />/g, Bt = RegExp(`>|${Oa}(?:([^\\s"'>=/]+)(${Oa}*=${Oa}*(?:[^
|
|
15899
15899
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), ec = /'/g, tc = /"/g, md = /^(?:script|style|textarea|title)$/i, gd = (t) => (r, ...e) => ({ _$litType$: t, strings: r, values: e }), fe = gd(1), Qe = gd(2), At = Symbol.for("lit-noChange"), se = Symbol.for("lit-nothing"), nc = /* @__PURE__ */ new WeakMap(), Ht = Gt.createTreeWalker(Gt, 129);
|
|
15900
15900
|
function vd(t, r) {
|
|
15901
15901
|
if (!Qs(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
@@ -15913,7 +15913,7 @@ const ty = (t, r) => {
|
|
|
15913
15913
|
}
|
|
15914
15914
|
return [vd(t, a + (t[e] || "<?>") + (r === 2 ? "</svg>" : r === 3 ? "</math>" : "")), n];
|
|
15915
15915
|
};
|
|
15916
|
-
let
|
|
15916
|
+
let hs = class yd {
|
|
15917
15917
|
constructor({ strings: r, _$litType$: e }, n) {
|
|
15918
15918
|
let i;
|
|
15919
15919
|
this.parts = [];
|
|
@@ -16018,7 +16018,7 @@ class Tr {
|
|
|
16018
16018
|
}
|
|
16019
16019
|
$(r) {
|
|
16020
16020
|
var a;
|
|
16021
|
-
const { values: e, _$litType$: n } = r, i = typeof n == "number" ? this._$AC(r) : (n.el === void 0 && (n.el =
|
|
16021
|
+
const { values: e, _$litType$: n } = r, i = typeof n == "number" ? this._$AC(r) : (n.el === void 0 && (n.el = hs.createElement(vd(n.h, n.h[0]), this.options)), n);
|
|
16022
16022
|
if (((a = this._$AH) == null ? void 0 : a._$AD) === i) this._$AH.p(e);
|
|
16023
16023
|
else {
|
|
16024
16024
|
const s = new ny(i, this), o = s.u(this.options);
|
|
@@ -16027,7 +16027,7 @@ class Tr {
|
|
|
16027
16027
|
}
|
|
16028
16028
|
_$AC(r) {
|
|
16029
16029
|
let e = nc.get(r.strings);
|
|
16030
|
-
return e === void 0 && nc.set(r.strings, e = new
|
|
16030
|
+
return e === void 0 && nc.set(r.strings, e = new hs(r)), e;
|
|
16031
16031
|
}
|
|
16032
16032
|
k(r) {
|
|
16033
16033
|
Qs(this._$AH) || (this._$AH = [], this._$AR());
|
|
@@ -16114,8 +16114,8 @@ class sy {
|
|
|
16114
16114
|
Cn(this, r);
|
|
16115
16115
|
}
|
|
16116
16116
|
}
|
|
16117
|
-
const
|
|
16118
|
-
|
|
16117
|
+
const Ia = tr.litHtmlPolyfillSupport;
|
|
16118
|
+
Ia == null || Ia(hs, Tr), (tr.litHtmlVersions ?? (tr.litHtmlVersions = [])).push("3.2.1");
|
|
16119
16119
|
const oy = (t, r, e) => {
|
|
16120
16120
|
const n = (e == null ? void 0 : e.renderBefore) ?? r;
|
|
16121
16121
|
let i = n._$litPart$;
|
|
@@ -16157,8 +16157,8 @@ let nr = class extends gn {
|
|
|
16157
16157
|
};
|
|
16158
16158
|
var Zc;
|
|
16159
16159
|
nr._$litElement$ = !0, nr.finalized = !0, (Zc = globalThis.litElementHydrateSupport) == null || Zc.call(globalThis, { LitElement: nr });
|
|
16160
|
-
const
|
|
16161
|
-
|
|
16160
|
+
const La = globalThis.litElementPolyfillSupport;
|
|
16161
|
+
La == null || La({ LitElement: nr });
|
|
16162
16162
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
|
16163
16163
|
const ly = _e`
|
|
16164
16164
|
:host {
|
|
@@ -16851,10 +16851,10 @@ function Ct(t) {
|
|
|
16851
16851
|
if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16852
16852
|
return t;
|
|
16853
16853
|
}
|
|
16854
|
-
function
|
|
16855
|
-
return
|
|
16854
|
+
function ps(t, r) {
|
|
16855
|
+
return ps = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, n) {
|
|
16856
16856
|
return e.__proto__ = n, e;
|
|
16857
|
-
},
|
|
16857
|
+
}, ps(t, r);
|
|
16858
16858
|
}
|
|
16859
16859
|
function Qi(t, r) {
|
|
16860
16860
|
if (typeof r != "function" && r !== null) throw new TypeError("Super expression must either be null or a function");
|
|
@@ -16866,7 +16866,7 @@ function Qi(t, r) {
|
|
|
16866
16866
|
}
|
|
16867
16867
|
}), Object.defineProperty(t, "prototype", {
|
|
16868
16868
|
writable: !1
|
|
16869
|
-
}), r &&
|
|
16869
|
+
}), r && ps(t, r);
|
|
16870
16870
|
}
|
|
16871
16871
|
function Rr(t, r) {
|
|
16872
16872
|
if (r && (Ve(r) == "object" || typeof r == "function")) return r;
|
|
@@ -17459,16 +17459,16 @@ var dc = {}, hc = function(t) {
|
|
|
17459
17459
|
}
|
|
17460
17460
|
var Me = [], ze = this.languageUtils.getFallbackCodes(this.options.fallbackLng, a.lng || this.language);
|
|
17461
17461
|
if (this.options.saveMissingTo === "fallback" && ze && ze[0])
|
|
17462
|
-
for (var
|
|
17463
|
-
Me.push(ze[
|
|
17462
|
+
for (var oa = 0; oa < ze.length; oa++)
|
|
17463
|
+
Me.push(ze[oa]);
|
|
17464
17464
|
else this.options.saveMissingTo === "all" ? Me = this.languageUtils.toResolveHierarchy(a.lng || this.language) : Me.push(a.lng || this.language);
|
|
17465
|
-
var yo = function(rn,
|
|
17465
|
+
var yo = function(rn, ca, bo) {
|
|
17466
17466
|
var wo = B && bo !== b ? bo : ue;
|
|
17467
|
-
o.options.missingKeyHandler ? o.options.missingKeyHandler(rn, p,
|
|
17467
|
+
o.options.missingKeyHandler ? o.options.missingKeyHandler(rn, p, ca, wo, ye, a) : o.backendConnector && o.backendConnector.saveMissing && o.backendConnector.saveMissing(rn, p, ca, wo, ye, a), o.emit("missingKey", rn, p, ca, b);
|
|
17468
17468
|
};
|
|
17469
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && P ? Me.forEach(function(
|
|
17470
|
-
o.pluralResolver.getSuffixes(
|
|
17471
|
-
yo([
|
|
17469
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && P ? Me.forEach(function(la) {
|
|
17470
|
+
o.pluralResolver.getSuffixes(la, a).forEach(function(rn) {
|
|
17471
|
+
yo([la], d + rn, a["defaultValue".concat(rn)] || H);
|
|
17472
17472
|
});
|
|
17473
17473
|
}) : yo(Me, d, H));
|
|
17474
17474
|
}
|
|
@@ -17572,7 +17572,7 @@ var dc = {}, hc = function(t) {
|
|
|
17572
17572
|
}
|
|
17573
17573
|
}]), e;
|
|
17574
17574
|
}(Tt);
|
|
17575
|
-
function
|
|
17575
|
+
function Ma(t) {
|
|
17576
17576
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
17577
17577
|
}
|
|
17578
17578
|
var pc = function() {
|
|
@@ -17600,7 +17600,7 @@ var pc = function() {
|
|
|
17600
17600
|
var n = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"], i = e.split("-");
|
|
17601
17601
|
return this.options.lowerCaseLng ? i = i.map(function(a) {
|
|
17602
17602
|
return a.toLowerCase();
|
|
17603
|
-
}) : i.length === 2 ? (i[0] = i[0].toLowerCase(), i[1] = i[1].toUpperCase(), n.indexOf(i[1].toLowerCase()) > -1 && (i[1] =
|
|
17603
|
+
}) : i.length === 2 ? (i[0] = i[0].toLowerCase(), i[1] = i[1].toUpperCase(), n.indexOf(i[1].toLowerCase()) > -1 && (i[1] = Ma(i[1].toLowerCase()))) : i.length === 3 && (i[0] = i[0].toLowerCase(), i[1].length === 2 && (i[1] = i[1].toUpperCase()), i[0] !== "sgn" && i[2].length === 2 && (i[2] = i[2].toUpperCase()), n.indexOf(i[1].toLowerCase()) > -1 && (i[1] = Ma(i[1].toLowerCase())), n.indexOf(i[2].toLowerCase()) > -1 && (i[2] = Ma(i[2].toLowerCase()))), i.join("-");
|
|
17604
17604
|
}
|
|
17605
17605
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
|
17606
17606
|
}
|
|
@@ -18817,7 +18817,7 @@ const Jy = {
|
|
|
18817
18817
|
* Copyright 2017 Google LLC
|
|
18818
18818
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
18819
18819
|
*/
|
|
18820
|
-
const
|
|
18820
|
+
const Pa = { INITIAL: 0, PENDING: 1, COMPLETE: 2, ERROR: 3 }, Zy = Symbol();
|
|
18821
18821
|
let _d = class {
|
|
18822
18822
|
get taskComplete() {
|
|
18823
18823
|
return this.t || (this.i === 1 ? this.t = new Promise((r, e) => {
|
|
@@ -18939,7 +18939,7 @@ class Xy extends _d {
|
|
|
18939
18939
|
});
|
|
18940
18940
|
}
|
|
18941
18941
|
}
|
|
18942
|
-
const Qy = ["fr", "pt", "nl", "be", "lu", "de", "ch", "es", "it", "uk"],
|
|
18942
|
+
const Qy = ["fr", "pt", "nl", "be", "lu", "de", "ch", "es", "it", "uk"], $a = {
|
|
18943
18943
|
fr: "fr-FR",
|
|
18944
18944
|
pt: "pt-PT",
|
|
18945
18945
|
nl: "nl-NL",
|
|
@@ -19112,25 +19112,27 @@ function hb(t) {
|
|
|
19112
19112
|
function pb(t) {
|
|
19113
19113
|
return lb.call(t) === "[object Date]";
|
|
19114
19114
|
}
|
|
19115
|
-
const
|
|
19116
|
-
|
|
19117
|
-
|
|
19118
|
-
|
|
19119
|
-
|
|
19120
|
-
|
|
19121
|
-
|
|
19122
|
-
|
|
19123
|
-
|
|
19124
|
-
|
|
19125
|
-
|
|
19126
|
-
|
|
19127
|
-
|
|
19128
|
-
|
|
19129
|
-
|
|
19130
|
-
|
|
19131
|
-
|
|
19132
|
-
|
|
19133
|
-
}
|
|
19115
|
+
const fs = (t) => Array.isArray($a[t]) ? $a[t] : [$a[t]], fb = (t, r) => fs(t).find((n) => n === r), mb = (t) => {
|
|
19116
|
+
const { country: r, cookies: e, isFromWebview: n, acceptLanguageHeader: i } = t;
|
|
19117
|
+
let a = null;
|
|
19118
|
+
if (n) {
|
|
19119
|
+
const s = i;
|
|
19120
|
+
if (s) {
|
|
19121
|
+
const o = fs(r), l = nb(o, s);
|
|
19122
|
+
l && (a = l);
|
|
19123
|
+
}
|
|
19124
|
+
}
|
|
19125
|
+
if (!a) {
|
|
19126
|
+
const s = rb(e).BaseDirectory;
|
|
19127
|
+
if (s)
|
|
19128
|
+
a = `${s.toLocaleLowerCase()}-${r == null ? void 0 : r.toLocaleUpperCase()}`;
|
|
19129
|
+
else {
|
|
19130
|
+
const o = fs(r);
|
|
19131
|
+
o ? a = o[0] : a = "fr-FR";
|
|
19132
|
+
}
|
|
19133
|
+
}
|
|
19134
|
+
return a;
|
|
19135
|
+
}, gb = function(t) {
|
|
19134
19136
|
const r = (n) => Object.fromEntries(Object.entries(n).filter(([i, a]) => a != null));
|
|
19135
19137
|
let e = {};
|
|
19136
19138
|
return Object.keys(t).forEach((n) => {
|
|
@@ -19152,28 +19154,28 @@ function Cd(t, r) {
|
|
|
19152
19154
|
return t.apply(r, arguments);
|
|
19153
19155
|
};
|
|
19154
19156
|
}
|
|
19155
|
-
const { toString:
|
|
19156
|
-
const e =
|
|
19157
|
+
const { toString: vb } = Object.prototype, { getPrototypeOf: io } = Object, ta = /* @__PURE__ */ ((t) => (r) => {
|
|
19158
|
+
const e = vb.call(r);
|
|
19157
19159
|
return t[e] || (t[e] = e.slice(8, -1).toLowerCase());
|
|
19158
|
-
})(/* @__PURE__ */ Object.create(null)), ht = (t) => (t = t.toLowerCase(), (r) =>
|
|
19159
|
-
function
|
|
19160
|
+
})(/* @__PURE__ */ Object.create(null)), ht = (t) => (t = t.toLowerCase(), (r) => ta(r) === t), na = (t) => (r) => typeof r === t, { isArray: Ln } = Array, gr = na("undefined");
|
|
19161
|
+
function yb(t) {
|
|
19160
19162
|
return t !== null && !gr(t) && t.constructor !== null && !gr(t.constructor) && We(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
19161
19163
|
}
|
|
19162
19164
|
const xd = ht("ArrayBuffer");
|
|
19163
|
-
function
|
|
19165
|
+
function bb(t) {
|
|
19164
19166
|
let r;
|
|
19165
19167
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? r = ArrayBuffer.isView(t) : r = t && t.buffer && xd(t.buffer), r;
|
|
19166
19168
|
}
|
|
19167
|
-
const
|
|
19168
|
-
if (
|
|
19169
|
+
const wb = na("string"), We = na("function"), Ed = na("number"), ra = (t) => t !== null && typeof t == "object", kb = (t) => t === !0 || t === !1, Xr = (t) => {
|
|
19170
|
+
if (ta(t) !== "object")
|
|
19169
19171
|
return !1;
|
|
19170
19172
|
const r = io(t);
|
|
19171
19173
|
return (r === null || r === Object.prototype || Object.getPrototypeOf(r) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
19172
|
-
},
|
|
19174
|
+
}, _b = ht("Date"), Sb = ht("File"), Cb = ht("Blob"), xb = ht("FileList"), Eb = (t) => ra(t) && We(t.pipe), Ab = (t) => {
|
|
19173
19175
|
let r;
|
|
19174
|
-
return t && (typeof FormData == "function" && t instanceof FormData || We(t.append) && ((r =
|
|
19176
|
+
return t && (typeof FormData == "function" && t instanceof FormData || We(t.append) && ((r = ta(t)) === "formdata" || // detect form-data instance
|
|
19175
19177
|
r === "object" && We(t.toString) && t.toString() === "[object FormData]"));
|
|
19176
|
-
},
|
|
19178
|
+
}, Tb = ht("URLSearchParams"), Rb = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
19177
19179
|
function Or(t, r, { allOwnKeys: e = !1 } = {}) {
|
|
19178
19180
|
if (t === null || typeof t > "u")
|
|
19179
19181
|
return;
|
|
@@ -19207,13 +19209,13 @@ function ms() {
|
|
|
19207
19209
|
arguments[n] && Or(arguments[n], e);
|
|
19208
19210
|
return r;
|
|
19209
19211
|
}
|
|
19210
|
-
const
|
|
19212
|
+
const Ob = (t, r, e, { allOwnKeys: n } = {}) => (Or(r, (i, a) => {
|
|
19211
19213
|
e && We(i) ? t[a] = Cd(i, e) : t[a] = i;
|
|
19212
|
-
}, { allOwnKeys: n }), t),
|
|
19214
|
+
}, { allOwnKeys: n }), t), Ib = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Lb = (t, r, e, n) => {
|
|
19213
19215
|
t.prototype = Object.create(r.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
19214
19216
|
value: r.prototype
|
|
19215
19217
|
}), e && Object.assign(t.prototype, e);
|
|
19216
|
-
},
|
|
19218
|
+
}, Mb = (t, r, e, n) => {
|
|
19217
19219
|
let i, a, s;
|
|
19218
19220
|
const o = {};
|
|
19219
19221
|
if (r = r || {}, t == null) return r;
|
|
@@ -19223,11 +19225,11 @@ const Pb = (t, r, e, { allOwnKeys: n } = {}) => (Or(r, (i, a) => {
|
|
|
19223
19225
|
t = e !== !1 && io(t);
|
|
19224
19226
|
} while (t && (!e || e(t, r)) && t !== Object.prototype);
|
|
19225
19227
|
return r;
|
|
19226
|
-
},
|
|
19228
|
+
}, Pb = (t, r, e) => {
|
|
19227
19229
|
t = String(t), (e === void 0 || e > t.length) && (e = t.length), e -= r.length;
|
|
19228
19230
|
const n = t.indexOf(r, e);
|
|
19229
19231
|
return n !== -1 && n === e;
|
|
19230
|
-
},
|
|
19232
|
+
}, $b = (t) => {
|
|
19231
19233
|
if (!t) return null;
|
|
19232
19234
|
if (Ln(t)) return t;
|
|
19233
19235
|
let r = t.length;
|
|
@@ -19236,31 +19238,31 @@ const Pb = (t, r, e, { allOwnKeys: n } = {}) => (Or(r, (i, a) => {
|
|
|
19236
19238
|
for (; r-- > 0; )
|
|
19237
19239
|
e[r] = t[r];
|
|
19238
19240
|
return e;
|
|
19239
|
-
},
|
|
19241
|
+
}, Fb = /* @__PURE__ */ ((t) => (r) => t && r instanceof t)(typeof Uint8Array < "u" && io(Uint8Array)), Nb = (t, r) => {
|
|
19240
19242
|
const n = (t && t[Symbol.iterator]).call(t);
|
|
19241
19243
|
let i;
|
|
19242
19244
|
for (; (i = n.next()) && !i.done; ) {
|
|
19243
19245
|
const a = i.value;
|
|
19244
19246
|
r.call(t, a[0], a[1]);
|
|
19245
19247
|
}
|
|
19246
|
-
},
|
|
19248
|
+
}, Db = (t, r) => {
|
|
19247
19249
|
let e;
|
|
19248
19250
|
const n = [];
|
|
19249
19251
|
for (; (e = t.exec(r)) !== null; )
|
|
19250
19252
|
n.push(e);
|
|
19251
19253
|
return n;
|
|
19252
|
-
},
|
|
19254
|
+
}, Bb = ht("HTMLFormElement"), jb = (t) => t.toLowerCase().replace(
|
|
19253
19255
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
19254
19256
|
function(e, n, i) {
|
|
19255
19257
|
return n.toUpperCase() + i;
|
|
19256
19258
|
}
|
|
19257
|
-
), xc = (({ hasOwnProperty: t }) => (r, e) => t.call(r, e))(Object.prototype),
|
|
19259
|
+
), xc = (({ hasOwnProperty: t }) => (r, e) => t.call(r, e))(Object.prototype), Hb = ht("RegExp"), Od = (t, r) => {
|
|
19258
19260
|
const e = Object.getOwnPropertyDescriptors(t), n = {};
|
|
19259
19261
|
Or(e, (i, a) => {
|
|
19260
19262
|
let s;
|
|
19261
19263
|
(s = r(i, a, t)) !== !1 && (n[a] = s || i);
|
|
19262
19264
|
}), Object.defineProperties(t, n);
|
|
19263
|
-
},
|
|
19265
|
+
}, Ub = (t) => {
|
|
19264
19266
|
Od(t, (r, e) => {
|
|
19265
19267
|
if (We(t) && ["arguments", "caller", "callee"].indexOf(e) !== -1)
|
|
19266
19268
|
return !1;
|
|
@@ -19275,31 +19277,31 @@ const Pb = (t, r, e, { allOwnKeys: n } = {}) => (Or(r, (i, a) => {
|
|
|
19275
19277
|
});
|
|
19276
19278
|
}
|
|
19277
19279
|
});
|
|
19278
|
-
},
|
|
19280
|
+
}, zb = (t, r) => {
|
|
19279
19281
|
const e = {}, n = (i) => {
|
|
19280
19282
|
i.forEach((a) => {
|
|
19281
19283
|
e[a] = !0;
|
|
19282
19284
|
});
|
|
19283
19285
|
};
|
|
19284
19286
|
return Ln(t) ? n(t) : n(String(t).split(r)), e;
|
|
19285
|
-
},
|
|
19286
|
-
},
|
|
19287
|
+
}, qb = () => {
|
|
19288
|
+
}, Vb = (t, r) => (t = +t, Number.isFinite(t) ? t : r), Fa = "abcdefghijklmnopqrstuvwxyz", Ec = "0123456789", Id = {
|
|
19287
19289
|
DIGIT: Ec,
|
|
19288
|
-
ALPHA:
|
|
19289
|
-
ALPHA_DIGIT:
|
|
19290
|
-
},
|
|
19290
|
+
ALPHA: Fa,
|
|
19291
|
+
ALPHA_DIGIT: Fa + Fa.toUpperCase() + Ec
|
|
19292
|
+
}, Wb = (t = 16, r = Id.ALPHA_DIGIT) => {
|
|
19291
19293
|
let e = "";
|
|
19292
19294
|
const { length: n } = r;
|
|
19293
19295
|
for (; t--; )
|
|
19294
19296
|
e += r[Math.random() * n | 0];
|
|
19295
19297
|
return e;
|
|
19296
19298
|
};
|
|
19297
|
-
function
|
|
19299
|
+
function Gb(t) {
|
|
19298
19300
|
return !!(t && We(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
|
|
19299
19301
|
}
|
|
19300
|
-
const
|
|
19302
|
+
const Kb = (t) => {
|
|
19301
19303
|
const r = new Array(10), e = (n, i) => {
|
|
19302
|
-
if (
|
|
19304
|
+
if (ra(n)) {
|
|
19303
19305
|
if (r.indexOf(n) >= 0)
|
|
19304
19306
|
return;
|
|
19305
19307
|
if (!("toJSON" in n)) {
|
|
@@ -19314,59 +19316,59 @@ const Xb = (t) => {
|
|
|
19314
19316
|
return n;
|
|
19315
19317
|
};
|
|
19316
19318
|
return e(t, 0);
|
|
19317
|
-
},
|
|
19319
|
+
}, Jb = ht("AsyncFunction"), Zb = (t) => t && (ra(t) || We(t)) && We(t.then) && We(t.catch), E = {
|
|
19318
19320
|
isArray: Ln,
|
|
19319
19321
|
isArrayBuffer: xd,
|
|
19320
|
-
isBuffer:
|
|
19321
|
-
isFormData:
|
|
19322
|
-
isArrayBufferView:
|
|
19323
|
-
isString:
|
|
19322
|
+
isBuffer: yb,
|
|
19323
|
+
isFormData: Ab,
|
|
19324
|
+
isArrayBufferView: bb,
|
|
19325
|
+
isString: wb,
|
|
19324
19326
|
isNumber: Ed,
|
|
19325
|
-
isBoolean:
|
|
19326
|
-
isObject:
|
|
19327
|
+
isBoolean: kb,
|
|
19328
|
+
isObject: ra,
|
|
19327
19329
|
isPlainObject: Xr,
|
|
19328
19330
|
isUndefined: gr,
|
|
19329
|
-
isDate:
|
|
19330
|
-
isFile:
|
|
19331
|
-
isBlob:
|
|
19332
|
-
isRegExp:
|
|
19331
|
+
isDate: _b,
|
|
19332
|
+
isFile: Sb,
|
|
19333
|
+
isBlob: Cb,
|
|
19334
|
+
isRegExp: Hb,
|
|
19333
19335
|
isFunction: We,
|
|
19334
|
-
isStream:
|
|
19335
|
-
isURLSearchParams:
|
|
19336
|
-
isTypedArray:
|
|
19337
|
-
isFileList:
|
|
19336
|
+
isStream: Eb,
|
|
19337
|
+
isURLSearchParams: Tb,
|
|
19338
|
+
isTypedArray: Fb,
|
|
19339
|
+
isFileList: xb,
|
|
19338
19340
|
forEach: Or,
|
|
19339
19341
|
merge: ms,
|
|
19340
|
-
extend:
|
|
19341
|
-
trim:
|
|
19342
|
-
stripBOM:
|
|
19343
|
-
inherits:
|
|
19344
|
-
toFlatObject:
|
|
19345
|
-
kindOf:
|
|
19342
|
+
extend: Ob,
|
|
19343
|
+
trim: Rb,
|
|
19344
|
+
stripBOM: Ib,
|
|
19345
|
+
inherits: Lb,
|
|
19346
|
+
toFlatObject: Mb,
|
|
19347
|
+
kindOf: ta,
|
|
19346
19348
|
kindOfTest: ht,
|
|
19347
|
-
endsWith:
|
|
19348
|
-
toArray:
|
|
19349
|
-
forEachEntry:
|
|
19350
|
-
matchAll:
|
|
19351
|
-
isHTMLForm:
|
|
19349
|
+
endsWith: Pb,
|
|
19350
|
+
toArray: $b,
|
|
19351
|
+
forEachEntry: Nb,
|
|
19352
|
+
matchAll: Db,
|
|
19353
|
+
isHTMLForm: Bb,
|
|
19352
19354
|
hasOwnProperty: xc,
|
|
19353
19355
|
hasOwnProp: xc,
|
|
19354
19356
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
19355
19357
|
reduceDescriptors: Od,
|
|
19356
|
-
freezeMethods:
|
|
19357
|
-
toObjectSet:
|
|
19358
|
-
toCamelCase:
|
|
19359
|
-
noop:
|
|
19360
|
-
toFiniteNumber:
|
|
19358
|
+
freezeMethods: Ub,
|
|
19359
|
+
toObjectSet: zb,
|
|
19360
|
+
toCamelCase: jb,
|
|
19361
|
+
noop: qb,
|
|
19362
|
+
toFiniteNumber: Vb,
|
|
19361
19363
|
findKey: Ad,
|
|
19362
19364
|
global: Td,
|
|
19363
19365
|
isContextDefined: Rd,
|
|
19364
19366
|
ALPHABET: Id,
|
|
19365
|
-
generateString:
|
|
19366
|
-
isSpecCompliantForm:
|
|
19367
|
-
toJSONObject:
|
|
19368
|
-
isAsyncFn:
|
|
19369
|
-
isThenable:
|
|
19367
|
+
generateString: Wb,
|
|
19368
|
+
isSpecCompliantForm: Gb,
|
|
19369
|
+
toJSONObject: Kb,
|
|
19370
|
+
isAsyncFn: Jb,
|
|
19371
|
+
isThenable: Zb
|
|
19370
19372
|
};
|
|
19371
19373
|
function ae(t, r, e, n, i) {
|
|
19372
19374
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", r && (this.code = r), e && (this.config = e), n && (this.request = n), i && (this.response = i);
|
|
@@ -19418,7 +19420,7 @@ ae.from = (t, r, e, n, i, a) => {
|
|
|
19418
19420
|
return l !== Error.prototype;
|
|
19419
19421
|
}, (o) => o !== "isAxiosError"), ae.call(s, t.message, r, e, n, i), s.cause = t, s.name = t.name, a && Object.assign(s, a), s;
|
|
19420
19422
|
};
|
|
19421
|
-
const
|
|
19423
|
+
const Yb = null;
|
|
19422
19424
|
function gs(t) {
|
|
19423
19425
|
return E.isPlainObject(t) || E.isArray(t);
|
|
19424
19426
|
}
|
|
@@ -19430,13 +19432,13 @@ function Ac(t, r, e) {
|
|
|
19430
19432
|
return i = Pd(i), !e && a ? "[" + i + "]" : i;
|
|
19431
19433
|
}).join(e ? "." : "") : r;
|
|
19432
19434
|
}
|
|
19433
|
-
function
|
|
19435
|
+
function Xb(t) {
|
|
19434
19436
|
return E.isArray(t) && !t.some(gs);
|
|
19435
19437
|
}
|
|
19436
|
-
const
|
|
19438
|
+
const Qb = E.toFlatObject(E, {}, null, function(r) {
|
|
19437
19439
|
return /^is[A-Z]/.test(r);
|
|
19438
19440
|
});
|
|
19439
|
-
function
|
|
19441
|
+
function ia(t, r, e) {
|
|
19440
19442
|
if (!E.isObject(t))
|
|
19441
19443
|
throw new TypeError("target must be an object");
|
|
19442
19444
|
r = r || new FormData(), e = E.toFlatObject(e, {
|
|
@@ -19462,7 +19464,7 @@ function aa(t, r, e) {
|
|
|
19462
19464
|
if (f && !y && typeof f == "object") {
|
|
19463
19465
|
if (E.endsWith(g, "{}"))
|
|
19464
19466
|
g = n ? g : g.slice(0, -2), f = JSON.stringify(f);
|
|
19465
|
-
else if (E.isArray(f) &&
|
|
19467
|
+
else if (E.isArray(f) && Xb(f) || (E.isFileList(f) || E.endsWith(g, "[]")) && (v = E.toArray(f)))
|
|
19466
19468
|
return g = Pd(g), v.forEach(function(C, F) {
|
|
19467
19469
|
!(E.isUndefined(C) || C === null) && r.append(
|
|
19468
19470
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -19473,7 +19475,7 @@ function aa(t, r, e) {
|
|
|
19473
19475
|
}
|
|
19474
19476
|
return gs(f) ? !0 : (r.append(Ac(y, g, a), c(f)), !1);
|
|
19475
19477
|
}
|
|
19476
|
-
const d = [], h = Object.assign(
|
|
19478
|
+
const d = [], h = Object.assign(Qb, {
|
|
19477
19479
|
defaultVisitor: u,
|
|
19478
19480
|
convertValue: c,
|
|
19479
19481
|
isVisitable: gs
|
|
@@ -19512,7 +19514,7 @@ function Tc(t) {
|
|
|
19512
19514
|
});
|
|
19513
19515
|
}
|
|
19514
19516
|
function ao(t, r) {
|
|
19515
|
-
this._pairs = [], t &&
|
|
19517
|
+
this._pairs = [], t && ia(t, this, r);
|
|
19516
19518
|
}
|
|
19517
19519
|
const $d = ao.prototype;
|
|
19518
19520
|
$d.append = function(r, e) {
|
|
@@ -19526,13 +19528,13 @@ $d.toString = function(r) {
|
|
|
19526
19528
|
return e(i[0]) + "=" + e(i[1]);
|
|
19527
19529
|
}, "").join("&");
|
|
19528
19530
|
};
|
|
19529
|
-
function
|
|
19531
|
+
function e3(t) {
|
|
19530
19532
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
19531
19533
|
}
|
|
19532
19534
|
function Fd(t, r, e) {
|
|
19533
19535
|
if (!r)
|
|
19534
19536
|
return t;
|
|
19535
|
-
const n = e && e.encode ||
|
|
19537
|
+
const n = e && e.encode || e3, i = e && e.serialize;
|
|
19536
19538
|
let a;
|
|
19537
19539
|
if (i ? a = i(r, e) : a = E.isURLSearchParams(r) ? r.toString() : new ao(r, e).toString(n), a) {
|
|
19538
19540
|
const s = t.indexOf("#");
|
|
@@ -19598,35 +19600,35 @@ const Nd = {
|
|
|
19598
19600
|
silentJSONParsing: !0,
|
|
19599
19601
|
forcedJSONParsing: !0,
|
|
19600
19602
|
clarifyTimeoutError: !1
|
|
19601
|
-
},
|
|
19603
|
+
}, t3 = typeof URLSearchParams < "u" ? URLSearchParams : ao, n3 = typeof FormData < "u" ? FormData : null, r3 = typeof Blob < "u" ? Blob : null, i3 = {
|
|
19602
19604
|
isBrowser: !0,
|
|
19603
19605
|
classes: {
|
|
19604
|
-
URLSearchParams:
|
|
19605
|
-
FormData:
|
|
19606
|
-
Blob:
|
|
19606
|
+
URLSearchParams: t3,
|
|
19607
|
+
FormData: n3,
|
|
19608
|
+
Blob: r3
|
|
19607
19609
|
},
|
|
19608
19610
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
19609
|
-
}, Dd = typeof window < "u" && typeof document < "u",
|
|
19610
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
19611
|
+
}, Dd = typeof window < "u" && typeof document < "u", a3 = ((t) => Dd && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product), s3 = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
19612
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", o3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19611
19613
|
__proto__: null,
|
|
19612
19614
|
hasBrowserEnv: Dd,
|
|
19613
|
-
hasStandardBrowserEnv:
|
|
19614
|
-
hasStandardBrowserWebWorkerEnv:
|
|
19615
|
+
hasStandardBrowserEnv: a3,
|
|
19616
|
+
hasStandardBrowserWebWorkerEnv: s3
|
|
19615
19617
|
}, Symbol.toStringTag, { value: "Module" })), ot = {
|
|
19616
|
-
...
|
|
19617
|
-
...
|
|
19618
|
+
...o3,
|
|
19619
|
+
...i3
|
|
19618
19620
|
};
|
|
19619
|
-
function
|
|
19620
|
-
return
|
|
19621
|
+
function l3(t, r) {
|
|
19622
|
+
return ia(t, new ot.classes.URLSearchParams(), Object.assign({
|
|
19621
19623
|
visitor: function(e, n, i, a) {
|
|
19622
19624
|
return ot.isNode && E.isBuffer(e) ? (this.append(n, e.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
19623
19625
|
}
|
|
19624
19626
|
}, r));
|
|
19625
19627
|
}
|
|
19626
|
-
function
|
|
19628
|
+
function c3(t) {
|
|
19627
19629
|
return E.matchAll(/\w+|\[(\w*)]/g, t).map((r) => r[0] === "[]" ? "" : r[1] || r[0]);
|
|
19628
19630
|
}
|
|
19629
|
-
function
|
|
19631
|
+
function u3(t) {
|
|
19630
19632
|
const r = {}, e = Object.keys(t);
|
|
19631
19633
|
let n;
|
|
19632
19634
|
const i = e.length;
|
|
@@ -19640,17 +19642,17 @@ function Bd(t) {
|
|
|
19640
19642
|
let s = e[a++];
|
|
19641
19643
|
if (s === "__proto__") return !0;
|
|
19642
19644
|
const o = Number.isFinite(+s), l = a >= e.length;
|
|
19643
|
-
return s = !s && E.isArray(i) ? i.length : s, l ? (E.hasOwnProp(i, s) ? i[s] = [i[s], n] : i[s] = n, !o) : ((!i[s] || !E.isObject(i[s])) && (i[s] = []), r(e, n, i[s], a) && E.isArray(i[s]) && (i[s] =
|
|
19645
|
+
return s = !s && E.isArray(i) ? i.length : s, l ? (E.hasOwnProp(i, s) ? i[s] = [i[s], n] : i[s] = n, !o) : ((!i[s] || !E.isObject(i[s])) && (i[s] = []), r(e, n, i[s], a) && E.isArray(i[s]) && (i[s] = u3(i[s])), !o);
|
|
19644
19646
|
}
|
|
19645
19647
|
if (E.isFormData(t) && E.isFunction(t.entries)) {
|
|
19646
19648
|
const e = {};
|
|
19647
19649
|
return E.forEachEntry(t, (n, i) => {
|
|
19648
|
-
r(
|
|
19650
|
+
r(c3(n), i, e, 0);
|
|
19649
19651
|
}), e;
|
|
19650
19652
|
}
|
|
19651
19653
|
return null;
|
|
19652
19654
|
}
|
|
19653
|
-
function
|
|
19655
|
+
function d3(t, r, e) {
|
|
19654
19656
|
if (E.isString(t))
|
|
19655
19657
|
try {
|
|
19656
19658
|
return (r || JSON.parse)(t), E.trim(t);
|
|
@@ -19676,17 +19678,17 @@ const Ir = {
|
|
|
19676
19678
|
let o;
|
|
19677
19679
|
if (a) {
|
|
19678
19680
|
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
19679
|
-
return
|
|
19681
|
+
return l3(r, this.formSerializer).toString();
|
|
19680
19682
|
if ((o = E.isFileList(r)) || n.indexOf("multipart/form-data") > -1) {
|
|
19681
19683
|
const l = this.env && this.env.FormData;
|
|
19682
|
-
return
|
|
19684
|
+
return ia(
|
|
19683
19685
|
o ? { "files[]": r } : r,
|
|
19684
19686
|
l && new l(),
|
|
19685
19687
|
this.formSerializer
|
|
19686
19688
|
);
|
|
19687
19689
|
}
|
|
19688
19690
|
}
|
|
19689
|
-
return a || i ? (e.setContentType("application/json", !1),
|
|
19691
|
+
return a || i ? (e.setContentType("application/json", !1), d3(r)) : r;
|
|
19690
19692
|
}],
|
|
19691
19693
|
transformResponse: [function(r) {
|
|
19692
19694
|
const e = this.transitional || Ir.transitional, n = e && e.forcedJSONParsing, i = this.responseType === "json";
|
|
@@ -19727,7 +19729,7 @@ const Ir = {
|
|
|
19727
19729
|
E.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
19728
19730
|
Ir.headers[t] = {};
|
|
19729
19731
|
});
|
|
19730
|
-
const
|
|
19732
|
+
const h3 = E.toObjectSet([
|
|
19731
19733
|
"age",
|
|
19732
19734
|
"authorization",
|
|
19733
19735
|
"content-length",
|
|
@@ -19745,12 +19747,12 @@ const g3 = E.toObjectSet([
|
|
|
19745
19747
|
"referer",
|
|
19746
19748
|
"retry-after",
|
|
19747
19749
|
"user-agent"
|
|
19748
|
-
]),
|
|
19750
|
+
]), p3 = (t) => {
|
|
19749
19751
|
const r = {};
|
|
19750
19752
|
let e, n, i;
|
|
19751
19753
|
return t && t.split(`
|
|
19752
19754
|
`).forEach(function(s) {
|
|
19753
|
-
i = s.indexOf(":"), e = s.substring(0, i).trim().toLowerCase(), n = s.substring(i + 1).trim(), !(!e || r[e] &&
|
|
19755
|
+
i = s.indexOf(":"), e = s.substring(0, i).trim().toLowerCase(), n = s.substring(i + 1).trim(), !(!e || r[e] && h3[e]) && (e === "set-cookie" ? r[e] ? r[e].push(n) : r[e] = [n] : r[e] = r[e] ? r[e] + ", " + n : n);
|
|
19754
19756
|
}), r;
|
|
19755
19757
|
}, Oc = Symbol("internals");
|
|
19756
19758
|
function jn(t) {
|
|
@@ -19759,15 +19761,15 @@ function jn(t) {
|
|
|
19759
19761
|
function Qr(t) {
|
|
19760
19762
|
return t === !1 || t == null ? t : E.isArray(t) ? t.map(Qr) : String(t);
|
|
19761
19763
|
}
|
|
19762
|
-
function
|
|
19764
|
+
function f3(t) {
|
|
19763
19765
|
const r = /* @__PURE__ */ Object.create(null), e = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
19764
19766
|
let n;
|
|
19765
19767
|
for (; n = e.exec(t); )
|
|
19766
19768
|
r[n[1]] = n[2];
|
|
19767
19769
|
return r;
|
|
19768
19770
|
}
|
|
19769
|
-
const
|
|
19770
|
-
function
|
|
19771
|
+
const m3 = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
19772
|
+
function Na(t, r, e, n, i) {
|
|
19771
19773
|
if (E.isFunction(n))
|
|
19772
19774
|
return n.call(this, r, e);
|
|
19773
19775
|
if (i && (r = e), !!E.isString(r)) {
|
|
@@ -19777,10 +19779,10 @@ function Da(t, r, e, n, i) {
|
|
|
19777
19779
|
return n.test(r);
|
|
19778
19780
|
}
|
|
19779
19781
|
}
|
|
19780
|
-
function
|
|
19782
|
+
function g3(t) {
|
|
19781
19783
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (r, e, n) => e.toUpperCase() + n);
|
|
19782
19784
|
}
|
|
19783
|
-
function
|
|
19785
|
+
function v3(t, r) {
|
|
19784
19786
|
const e = E.toCamelCase(" " + r);
|
|
19785
19787
|
["get", "set", "has"].forEach((n) => {
|
|
19786
19788
|
Object.defineProperty(t, n + e, {
|
|
@@ -19805,7 +19807,7 @@ class Ge {
|
|
|
19805
19807
|
(!d || i[d] === void 0 || c === !0 || c === void 0 && i[d] !== !1) && (i[d || l] = Qr(o));
|
|
19806
19808
|
}
|
|
19807
19809
|
const s = (o, l) => E.forEach(o, (c, u) => a(c, u, l));
|
|
19808
|
-
return E.isPlainObject(r) || r instanceof this.constructor ? s(r, e) : E.isString(r) && (r = r.trim()) && !
|
|
19810
|
+
return E.isPlainObject(r) || r instanceof this.constructor ? s(r, e) : E.isString(r) && (r = r.trim()) && !m3(r) ? s(p3(r), e) : r != null && a(e, r, n), this;
|
|
19809
19811
|
}
|
|
19810
19812
|
get(r, e) {
|
|
19811
19813
|
if (r = jn(r), r) {
|
|
@@ -19815,7 +19817,7 @@ class Ge {
|
|
|
19815
19817
|
if (!e)
|
|
19816
19818
|
return i;
|
|
19817
19819
|
if (e === !0)
|
|
19818
|
-
return
|
|
19820
|
+
return f3(i);
|
|
19819
19821
|
if (E.isFunction(e))
|
|
19820
19822
|
return e.call(this, i, n);
|
|
19821
19823
|
if (E.isRegExp(e))
|
|
@@ -19827,7 +19829,7 @@ class Ge {
|
|
|
19827
19829
|
has(r, e) {
|
|
19828
19830
|
if (r = jn(r), r) {
|
|
19829
19831
|
const n = E.findKey(this, r);
|
|
19830
|
-
return !!(n && this[n] !== void 0 && (!e ||
|
|
19832
|
+
return !!(n && this[n] !== void 0 && (!e || Na(this, this[n], n, e)));
|
|
19831
19833
|
}
|
|
19832
19834
|
return !1;
|
|
19833
19835
|
}
|
|
@@ -19837,7 +19839,7 @@ class Ge {
|
|
|
19837
19839
|
function a(s) {
|
|
19838
19840
|
if (s = jn(s), s) {
|
|
19839
19841
|
const o = E.findKey(n, s);
|
|
19840
|
-
o && (!e ||
|
|
19842
|
+
o && (!e || Na(n, n[o], o, e)) && (delete n[o], i = !0);
|
|
19841
19843
|
}
|
|
19842
19844
|
}
|
|
19843
19845
|
return E.isArray(r) ? r.forEach(a) : a(r), i;
|
|
@@ -19847,7 +19849,7 @@ class Ge {
|
|
|
19847
19849
|
let n = e.length, i = !1;
|
|
19848
19850
|
for (; n--; ) {
|
|
19849
19851
|
const a = e[n];
|
|
19850
|
-
(!r ||
|
|
19852
|
+
(!r || Na(this, this[a], a, r, !0)) && (delete this[a], i = !0);
|
|
19851
19853
|
}
|
|
19852
19854
|
return i;
|
|
19853
19855
|
}
|
|
@@ -19859,7 +19861,7 @@ class Ge {
|
|
|
19859
19861
|
e[s] = Qr(i), delete e[a];
|
|
19860
19862
|
return;
|
|
19861
19863
|
}
|
|
19862
|
-
const o = r ?
|
|
19864
|
+
const o = r ? g3(a) : String(a).trim();
|
|
19863
19865
|
o !== a && delete e[a], e[o] = Qr(i), n[o] = !0;
|
|
19864
19866
|
}), this;
|
|
19865
19867
|
}
|
|
@@ -19895,7 +19897,7 @@ class Ge {
|
|
|
19895
19897
|
}).accessors, i = this.prototype;
|
|
19896
19898
|
function a(s) {
|
|
19897
19899
|
const o = jn(s);
|
|
19898
|
-
n[o] || (
|
|
19900
|
+
n[o] || (v3(i, s), n[o] = !0);
|
|
19899
19901
|
}
|
|
19900
19902
|
return E.isArray(r) ? r.forEach(a) : a(r), this;
|
|
19901
19903
|
}
|
|
@@ -19911,7 +19913,7 @@ E.reduceDescriptors(Ge.prototype, ({ value: t }, r) => {
|
|
|
19911
19913
|
};
|
|
19912
19914
|
});
|
|
19913
19915
|
E.freezeMethods(Ge);
|
|
19914
|
-
function
|
|
19916
|
+
function Da(t, r) {
|
|
19915
19917
|
const e = this || Ir, n = r || e, i = Ge.from(n.headers);
|
|
19916
19918
|
let a = n.data;
|
|
19917
19919
|
return E.forEach(t, function(o) {
|
|
@@ -19927,7 +19929,7 @@ function Lr(t, r, e) {
|
|
|
19927
19929
|
E.inherits(Lr, ae, {
|
|
19928
19930
|
__CANCEL__: !0
|
|
19929
19931
|
});
|
|
19930
|
-
function
|
|
19932
|
+
function y3(t, r, e) {
|
|
19931
19933
|
const n = e.config.validateStatus;
|
|
19932
19934
|
!e.status || !n || n(e.status) ? t(e) : r(new ae(
|
|
19933
19935
|
"Request failed with status code " + e.status,
|
|
@@ -19937,7 +19939,7 @@ function _3(t, r, e) {
|
|
|
19937
19939
|
e
|
|
19938
19940
|
));
|
|
19939
19941
|
}
|
|
19940
|
-
const
|
|
19942
|
+
const b3 = ot.hasStandardBrowserEnv ? (
|
|
19941
19943
|
// Standard browser envs support document.cookie
|
|
19942
19944
|
{
|
|
19943
19945
|
write(t, r, e, n, i, a) {
|
|
@@ -19964,16 +19966,16 @@ const S3 = ot.hasStandardBrowserEnv ? (
|
|
|
19964
19966
|
}
|
|
19965
19967
|
}
|
|
19966
19968
|
);
|
|
19967
|
-
function
|
|
19969
|
+
function w3(t) {
|
|
19968
19970
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
19969
19971
|
}
|
|
19970
|
-
function
|
|
19972
|
+
function k3(t, r) {
|
|
19971
19973
|
return r ? t.replace(/\/?\/$/, "") + "/" + r.replace(/^\/+/, "") : t;
|
|
19972
19974
|
}
|
|
19973
19975
|
function Hd(t, r) {
|
|
19974
|
-
return t && !
|
|
19976
|
+
return t && !w3(r) ? k3(t, r) : r;
|
|
19975
19977
|
}
|
|
19976
|
-
const
|
|
19978
|
+
const _3 = ot.hasStandardBrowserEnv ? (
|
|
19977
19979
|
// Standard browser envs have full support of the APIs needed to test
|
|
19978
19980
|
// whether the request URL is of the same origin as current location.
|
|
19979
19981
|
function() {
|
|
@@ -20005,11 +20007,11 @@ const E3 = ot.hasStandardBrowserEnv ? (
|
|
|
20005
20007
|
};
|
|
20006
20008
|
}()
|
|
20007
20009
|
);
|
|
20008
|
-
function
|
|
20010
|
+
function S3(t) {
|
|
20009
20011
|
const r = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
20010
20012
|
return r && r[1] || "";
|
|
20011
20013
|
}
|
|
20012
|
-
function
|
|
20014
|
+
function C3(t, r) {
|
|
20013
20015
|
t = t || 10;
|
|
20014
20016
|
const e = new Array(t), n = new Array(t);
|
|
20015
20017
|
let i = 0, a = 0, s;
|
|
@@ -20027,7 +20029,7 @@ function T3(t, r) {
|
|
|
20027
20029
|
}
|
|
20028
20030
|
function Ic(t, r) {
|
|
20029
20031
|
let e = 0;
|
|
20030
|
-
const n =
|
|
20032
|
+
const n = C3(50, 250);
|
|
20031
20033
|
return (i) => {
|
|
20032
20034
|
const a = i.loaded, s = i.lengthComputable ? i.total : void 0, o = a - e, l = n(o), c = a <= s;
|
|
20033
20035
|
e = a;
|
|
@@ -20043,7 +20045,7 @@ function Ic(t, r) {
|
|
|
20043
20045
|
u[r ? "download" : "upload"] = !0, t(u);
|
|
20044
20046
|
};
|
|
20045
20047
|
}
|
|
20046
|
-
const
|
|
20048
|
+
const x3 = typeof XMLHttpRequest < "u", E3 = x3 && function(t) {
|
|
20047
20049
|
return new Promise(function(e, n) {
|
|
20048
20050
|
let i = t.data;
|
|
20049
20051
|
const a = Ge.from(t.headers).normalize();
|
|
@@ -20080,7 +20082,7 @@ const R3 = typeof XMLHttpRequest < "u", O3 = R3 && function(t) {
|
|
|
20080
20082
|
config: t,
|
|
20081
20083
|
request: d
|
|
20082
20084
|
};
|
|
20083
|
-
|
|
20085
|
+
y3(function(C) {
|
|
20084
20086
|
e(C), c();
|
|
20085
20087
|
}, function(C) {
|
|
20086
20088
|
n(C), c();
|
|
@@ -20101,8 +20103,8 @@ const R3 = typeof XMLHttpRequest < "u", O3 = R3 && function(t) {
|
|
|
20101
20103
|
t,
|
|
20102
20104
|
d
|
|
20103
20105
|
)), d = null;
|
|
20104
|
-
}, ot.hasStandardBrowserEnv && (o && E.isFunction(o) && (o = o(t)), o || o !== !1 &&
|
|
20105
|
-
const g = t.xsrfHeaderName && t.xsrfCookieName &&
|
|
20106
|
+
}, ot.hasStandardBrowserEnv && (o && E.isFunction(o) && (o = o(t)), o || o !== !1 && _3(h))) {
|
|
20107
|
+
const g = t.xsrfHeaderName && t.xsrfCookieName && b3.read(t.xsrfCookieName);
|
|
20106
20108
|
g && a.set(t.xsrfHeaderName, g);
|
|
20107
20109
|
}
|
|
20108
20110
|
i === void 0 && a.setContentType(null), "setRequestHeader" in d && E.forEach(a.toJSON(), function(y, v) {
|
|
@@ -20110,7 +20112,7 @@ const R3 = typeof XMLHttpRequest < "u", O3 = R3 && function(t) {
|
|
|
20110
20112
|
}), E.isUndefined(t.withCredentials) || (d.withCredentials = !!t.withCredentials), s && s !== "json" && (d.responseType = t.responseType), typeof t.onDownloadProgress == "function" && d.addEventListener("progress", Ic(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && d.upload && d.upload.addEventListener("progress", Ic(t.onUploadProgress)), (t.cancelToken || t.signal) && (l = (g) => {
|
|
20111
20113
|
d && (n(!g || g.type ? new Lr(null, t, d) : g), d.abort(), d = null);
|
|
20112
20114
|
}, t.cancelToken && t.cancelToken.subscribe(l), t.signal && (t.signal.aborted ? l() : t.signal.addEventListener("abort", l)));
|
|
20113
|
-
const f =
|
|
20115
|
+
const f = S3(h);
|
|
20114
20116
|
if (f && ot.protocols.indexOf(f) === -1) {
|
|
20115
20117
|
n(new ae("Unsupported protocol " + f + ":", ae.ERR_BAD_REQUEST, t));
|
|
20116
20118
|
return;
|
|
@@ -20118,8 +20120,8 @@ const R3 = typeof XMLHttpRequest < "u", O3 = R3 && function(t) {
|
|
|
20118
20120
|
d.send(i || null);
|
|
20119
20121
|
});
|
|
20120
20122
|
}, vs = {
|
|
20121
|
-
http:
|
|
20122
|
-
xhr:
|
|
20123
|
+
http: Yb,
|
|
20124
|
+
xhr: E3
|
|
20123
20125
|
};
|
|
20124
20126
|
E.forEach(vs, (t, r) => {
|
|
20125
20127
|
if (t) {
|
|
@@ -20130,7 +20132,7 @@ E.forEach(vs, (t, r) => {
|
|
|
20130
20132
|
Object.defineProperty(t, "adapterName", { value: r });
|
|
20131
20133
|
}
|
|
20132
20134
|
});
|
|
20133
|
-
const Lc = (t) => `- ${t}`,
|
|
20135
|
+
const Lc = (t) => `- ${t}`, A3 = (t) => E.isFunction(t) || t === null || t === !1, Ud = {
|
|
20134
20136
|
getAdapter: (t) => {
|
|
20135
20137
|
t = E.isArray(t) ? t : [t];
|
|
20136
20138
|
const { length: r } = t;
|
|
@@ -20139,7 +20141,7 @@ const Lc = (t) => `- ${t}`, I3 = (t) => E.isFunction(t) || t === null || t === !
|
|
|
20139
20141
|
for (let a = 0; a < r; a++) {
|
|
20140
20142
|
e = t[a];
|
|
20141
20143
|
let s;
|
|
20142
|
-
if (n = e, !
|
|
20144
|
+
if (n = e, !A3(e) && (n = vs[(s = String(e)).toLowerCase()], n === void 0))
|
|
20143
20145
|
throw new ae(`Unknown adapter '${s}'`);
|
|
20144
20146
|
if (n)
|
|
20145
20147
|
break;
|
|
@@ -20161,22 +20163,22 @@ const Lc = (t) => `- ${t}`, I3 = (t) => E.isFunction(t) || t === null || t === !
|
|
|
20161
20163
|
},
|
|
20162
20164
|
adapters: vs
|
|
20163
20165
|
};
|
|
20164
|
-
function
|
|
20166
|
+
function Ba(t) {
|
|
20165
20167
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
20166
20168
|
throw new Lr(null, t);
|
|
20167
20169
|
}
|
|
20168
20170
|
function Mc(t) {
|
|
20169
|
-
return
|
|
20171
|
+
return Ba(t), t.headers = Ge.from(t.headers), t.data = Da.call(
|
|
20170
20172
|
t,
|
|
20171
20173
|
t.transformRequest
|
|
20172
20174
|
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Ud.getAdapter(t.adapter || Ir.adapter)(t).then(function(n) {
|
|
20173
|
-
return
|
|
20175
|
+
return Ba(t), n.data = Da.call(
|
|
20174
20176
|
t,
|
|
20175
20177
|
t.transformResponse,
|
|
20176
20178
|
n
|
|
20177
20179
|
), n.headers = Ge.from(n.headers), n;
|
|
20178
20180
|
}, function(n) {
|
|
20179
|
-
return jd(n) || (
|
|
20181
|
+
return jd(n) || (Ba(t), n && n.response && (n.response.data = Da.call(
|
|
20180
20182
|
t,
|
|
20181
20183
|
t.transformResponse,
|
|
20182
20184
|
n.response
|
|
@@ -20273,7 +20275,7 @@ so.transitional = function(r, e, n) {
|
|
|
20273
20275
|
)), r ? r(a, s, o) : !0;
|
|
20274
20276
|
};
|
|
20275
20277
|
};
|
|
20276
|
-
function
|
|
20278
|
+
function T3(t, r, e) {
|
|
20277
20279
|
if (typeof t != "object")
|
|
20278
20280
|
throw new ae("options must be an object", ae.ERR_BAD_OPTION_VALUE);
|
|
20279
20281
|
const n = Object.keys(t);
|
|
@@ -20291,7 +20293,7 @@ function L3(t, r, e) {
|
|
|
20291
20293
|
}
|
|
20292
20294
|
}
|
|
20293
20295
|
const ys = {
|
|
20294
|
-
assertOptions:
|
|
20296
|
+
assertOptions: T3,
|
|
20295
20297
|
validators: so
|
|
20296
20298
|
}, bt = ys.validators;
|
|
20297
20299
|
class zt {
|
|
@@ -20479,12 +20481,12 @@ class oo {
|
|
|
20479
20481
|
};
|
|
20480
20482
|
}
|
|
20481
20483
|
}
|
|
20482
|
-
function
|
|
20484
|
+
function R3(t) {
|
|
20483
20485
|
return function(e) {
|
|
20484
20486
|
return t.apply(null, e);
|
|
20485
20487
|
};
|
|
20486
20488
|
}
|
|
20487
|
-
function
|
|
20489
|
+
function O3(t) {
|
|
20488
20490
|
return E.isObject(t) && t.isAxiosError === !0;
|
|
20489
20491
|
}
|
|
20490
20492
|
const bs = {
|
|
@@ -20567,14 +20569,14 @@ j.CanceledError = Lr;
|
|
|
20567
20569
|
j.CancelToken = oo;
|
|
20568
20570
|
j.isCancel = jd;
|
|
20569
20571
|
j.VERSION = zd;
|
|
20570
|
-
j.toFormData =
|
|
20572
|
+
j.toFormData = ia;
|
|
20571
20573
|
j.AxiosError = ae;
|
|
20572
20574
|
j.Cancel = j.CanceledError;
|
|
20573
20575
|
j.all = function(r) {
|
|
20574
20576
|
return Promise.all(r);
|
|
20575
20577
|
};
|
|
20576
|
-
j.spread =
|
|
20577
|
-
j.isAxiosError =
|
|
20578
|
+
j.spread = R3;
|
|
20579
|
+
j.isAxiosError = O3;
|
|
20578
20580
|
j.mergeConfig = xn;
|
|
20579
20581
|
j.AxiosHeaders = Ge;
|
|
20580
20582
|
j.formToJSON = (t) => Bd(E.isHTMLForm(t) ? new FormData(t) : t);
|
|
@@ -20700,7 +20702,7 @@ D(yn, "Endpoints", {
|
|
|
20700
20702
|
}), /** ContentService API static errors typeguards */
|
|
20701
20703
|
D(yn, "Errors", ws);
|
|
20702
20704
|
let ks = yn;
|
|
20703
|
-
class
|
|
20705
|
+
class I3 {
|
|
20704
20706
|
constructor(r) {
|
|
20705
20707
|
this.config = r;
|
|
20706
20708
|
}
|
|
@@ -20741,21 +20743,21 @@ class $3 {
|
|
|
20741
20743
|
}
|
|
20742
20744
|
}
|
|
20743
20745
|
);
|
|
20744
|
-
return
|
|
20746
|
+
return gb(i);
|
|
20745
20747
|
}
|
|
20746
20748
|
}
|
|
20747
|
-
const
|
|
20749
|
+
const L3 = "fr", M3 = (t) => {
|
|
20748
20750
|
var n;
|
|
20749
20751
|
const r = t.split(".");
|
|
20750
|
-
let e =
|
|
20752
|
+
let e = L3;
|
|
20751
20753
|
if (r.length > 1) {
|
|
20752
20754
|
const i = (n = r.pop()) == null ? void 0 : n.toLocaleLowerCase();
|
|
20753
|
-
i &&
|
|
20755
|
+
i && P3(i) && (e = i);
|
|
20754
20756
|
}
|
|
20755
20757
|
return e;
|
|
20756
|
-
},
|
|
20758
|
+
}, P3 = (t) => Qy.includes(t), go = class go extends nr {
|
|
20757
20759
|
constructor(r = {}) {
|
|
20758
|
-
super(), this.translationsConfig = r, this.country = typeof window < "u" ?
|
|
20760
|
+
super(), this.translationsConfig = r, this.country = typeof window < "u" ? M3(window.location.hostname) : "fr", this.language = typeof window < "u" ? mb({ country: this.country, cookies: document.cookie }) : "fr-FR", this.translationsConfig.translationsLoaderGetter && (this.translationsTask = new Xy(
|
|
20759
20761
|
this,
|
|
20760
20762
|
this.translationsConfig.translationsLoaderGetter,
|
|
20761
20763
|
{
|
|
@@ -20779,15 +20781,15 @@ let ge = go;
|
|
|
20779
20781
|
* Copyright 2020 Google LLC
|
|
20780
20782
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
20781
20783
|
*/
|
|
20782
|
-
const Vd = Symbol.for(""),
|
|
20784
|
+
const Vd = Symbol.for(""), $3 = (t) => {
|
|
20783
20785
|
if ((t == null ? void 0 : t.r) === Vd) return t == null ? void 0 : t._$litStatic$;
|
|
20784
|
-
}, _s = (t) => ({ _$litStatic$: t, r: Vd }), Fc = /* @__PURE__ */ new Map(),
|
|
20786
|
+
}, _s = (t) => ({ _$litStatic$: t, r: Vd }), Fc = /* @__PURE__ */ new Map(), F3 = (t) => (r, ...e) => {
|
|
20785
20787
|
const n = e.length;
|
|
20786
20788
|
let i, a;
|
|
20787
20789
|
const s = [], o = [];
|
|
20788
20790
|
let l, c = 0, u = !1;
|
|
20789
20791
|
for (; c < n; ) {
|
|
20790
|
-
for (l = r[c]; c < n && (a = e[c], (i =
|
|
20792
|
+
for (l = r[c]; c < n && (a = e[c], (i = $3(a)) !== void 0); ) l += i + r[++c], u = !0;
|
|
20791
20793
|
c !== n && o.push(a), s.push(l), c++;
|
|
20792
20794
|
}
|
|
20793
20795
|
if (c === n && s.push(r[n]), u) {
|
|
@@ -20795,8 +20797,8 @@ const Vd = Symbol.for(""), B3 = (t) => {
|
|
|
20795
20797
|
(r = Fc.get(d)) === void 0 && (s.raw = s, Fc.set(d, r = s)), e = o;
|
|
20796
20798
|
}
|
|
20797
20799
|
return t(r, ...e);
|
|
20798
|
-
}, jt =
|
|
20799
|
-
function
|
|
20800
|
+
}, jt = F3(fe);
|
|
20801
|
+
function N3(t, r) {
|
|
20800
20802
|
return function(e, n) {
|
|
20801
20803
|
const i = new CustomEvent(r, {
|
|
20802
20804
|
detail: e,
|
|
@@ -20812,14 +20814,14 @@ function co(t) {
|
|
|
20812
20814
|
return (r, e) => {
|
|
20813
20815
|
Object.defineProperty(r, e, {
|
|
20814
20816
|
get() {
|
|
20815
|
-
return
|
|
20817
|
+
return N3(this, t || e);
|
|
20816
20818
|
},
|
|
20817
20819
|
enumerable: !0,
|
|
20818
20820
|
configurable: !0
|
|
20819
20821
|
});
|
|
20820
20822
|
};
|
|
20821
20823
|
}
|
|
20822
|
-
const
|
|
20824
|
+
const D3 = _e`
|
|
20823
20825
|
@keyframes rotate360 {
|
|
20824
20826
|
from {
|
|
20825
20827
|
transform: rotate(0deg);
|
|
@@ -20833,7 +20835,7 @@ const U3 = _e`
|
|
|
20833
20835
|
vertical-align: middle;
|
|
20834
20836
|
animation: rotate360 1s linear infinite;
|
|
20835
20837
|
}
|
|
20836
|
-
`,
|
|
20838
|
+
`, B3 = _e`
|
|
20837
20839
|
:host {
|
|
20838
20840
|
display: inline-block;
|
|
20839
20841
|
transition: fill 0.2s, stroke 0.2s;
|
|
@@ -20861,17 +20863,17 @@ const U3 = _e`
|
|
|
20861
20863
|
height: 100%;
|
|
20862
20864
|
}
|
|
20863
20865
|
`;
|
|
20864
|
-
var
|
|
20866
|
+
var j3 = Object.defineProperty, Wd = (t, r, e, n) => {
|
|
20865
20867
|
for (var i = void 0, a = t.length - 1, s; a >= 0; a--)
|
|
20866
20868
|
(s = t[a]) && (i = s(r, e, i) || i);
|
|
20867
|
-
return i &&
|
|
20869
|
+
return i && j3(r, e, i), i;
|
|
20868
20870
|
};
|
|
20869
20871
|
const vo = class vo extends ge {
|
|
20870
20872
|
constructor() {
|
|
20871
20873
|
super(...arguments), this.size = "medium", this.viewBox = "0 0 32 32";
|
|
20872
20874
|
}
|
|
20873
20875
|
};
|
|
20874
|
-
vo.styles = [ge.styles,
|
|
20876
|
+
vo.styles = [ge.styles, B3];
|
|
20875
20877
|
let vr = vo;
|
|
20876
20878
|
Wd([
|
|
20877
20879
|
z({ type: String, reflect: !0 })
|
|
@@ -20887,10 +20889,10 @@ function et(t, r) {
|
|
|
20887
20889
|
}
|
|
20888
20890
|
customElements.define(t, e);
|
|
20889
20891
|
}
|
|
20890
|
-
var
|
|
20891
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
20892
|
+
var H3 = Object.defineProperty, U3 = Object.getOwnPropertyDescriptor, uo = (t, r, e, n) => {
|
|
20893
|
+
for (var i = n > 1 ? void 0 : n ? U3(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
20892
20894
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
20893
|
-
return n && i &&
|
|
20895
|
+
return n && i && H3(r, e, i), i;
|
|
20894
20896
|
};
|
|
20895
20897
|
et(
|
|
20896
20898
|
"lr-icon-spinner",
|
|
@@ -20916,7 +20918,7 @@ let yr = class extends ge {
|
|
|
20916
20918
|
></lr-icon-spinner> `;
|
|
20917
20919
|
}
|
|
20918
20920
|
};
|
|
20919
|
-
yr.styles = [ge.styles,
|
|
20921
|
+
yr.styles = [ge.styles, D3];
|
|
20920
20922
|
uo([
|
|
20921
20923
|
z({ type: String, reflect: !0 })
|
|
20922
20924
|
], yr.prototype, "size", 2);
|
|
@@ -20926,19 +20928,19 @@ uo([
|
|
|
20926
20928
|
yr = uo([
|
|
20927
20929
|
Fe("lr-spinner")
|
|
20928
20930
|
], yr);
|
|
20929
|
-
const
|
|
20931
|
+
const z3 = globalThis.SubmitEvent = typeof globalThis.SubmitEvent < "u" ? SubmitEvent : Event, Gd = (t) => {
|
|
20930
20932
|
if (!(!t.noValidate && !t.reportValidity())) {
|
|
20931
|
-
const r = new
|
|
20933
|
+
const r = new z3("submit", {
|
|
20932
20934
|
bubbles: !0,
|
|
20933
20935
|
cancelable: !0
|
|
20934
20936
|
});
|
|
20935
20937
|
t.dispatchEvent(r), r.defaultPrevented || t.submit();
|
|
20936
20938
|
}
|
|
20937
20939
|
};
|
|
20938
|
-
var
|
|
20939
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
20940
|
+
var q3 = Object.defineProperty, V3 = Object.getOwnPropertyDescriptor, Oe = (t, r, e, n) => {
|
|
20941
|
+
for (var i = n > 1 ? void 0 : n ? V3(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
20940
20942
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
20941
|
-
return n && i &&
|
|
20943
|
+
return n && i && q3(r, e, i), i;
|
|
20942
20944
|
};
|
|
20943
20945
|
const Si = class Si extends ge {
|
|
20944
20946
|
constructor() {
|
|
@@ -21047,7 +21049,7 @@ Oe([
|
|
|
21047
21049
|
gt = Oe([
|
|
21048
21050
|
Fe("lr-button")
|
|
21049
21051
|
], gt);
|
|
21050
|
-
const
|
|
21052
|
+
const W3 = _e`
|
|
21051
21053
|
:host {
|
|
21052
21054
|
position: absolute;
|
|
21053
21055
|
display: none;
|
|
@@ -21090,10 +21092,10 @@ const Z3 = _e`
|
|
|
21090
21092
|
user-select: text;
|
|
21091
21093
|
}
|
|
21092
21094
|
`;
|
|
21093
|
-
var
|
|
21094
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
21095
|
+
var G3 = Object.defineProperty, K3 = Object.getOwnPropertyDescriptor, ho = (t, r, e, n) => {
|
|
21096
|
+
for (var i = n > 1 ? void 0 : n ? K3(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
21095
21097
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
21096
|
-
return n && i &&
|
|
21098
|
+
return n && i && G3(r, e, i), i;
|
|
21097
21099
|
};
|
|
21098
21100
|
let En = class extends ge {
|
|
21099
21101
|
constructor() {
|
|
@@ -21107,7 +21109,7 @@ let En = class extends ge {
|
|
|
21107
21109
|
`;
|
|
21108
21110
|
}
|
|
21109
21111
|
};
|
|
21110
|
-
En.styles = [ge.styles,
|
|
21112
|
+
En.styles = [ge.styles, W3];
|
|
21111
21113
|
ho([
|
|
21112
21114
|
z({ type: Boolean, reflect: !0 })
|
|
21113
21115
|
], En.prototype, "active", 2);
|
|
@@ -21117,10 +21119,10 @@ ho([
|
|
|
21117
21119
|
En = ho([
|
|
21118
21120
|
Fe("lr-dimmer")
|
|
21119
21121
|
], En);
|
|
21120
|
-
var
|
|
21121
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
21122
|
+
var J3 = Object.defineProperty, Z3 = Object.getOwnPropertyDescriptor, Y3 = (t, r, e, n) => {
|
|
21123
|
+
for (var i = n > 1 ? void 0 : n ? Z3(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
21122
21124
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
21123
|
-
return n && i &&
|
|
21125
|
+
return n && i && J3(r, e, i), i;
|
|
21124
21126
|
};
|
|
21125
21127
|
let Nc = class extends En {
|
|
21126
21128
|
constructor() {
|
|
@@ -21130,7 +21132,7 @@ let Nc = class extends En {
|
|
|
21130
21132
|
return fe`<lr-spinner></lr-spinner> `;
|
|
21131
21133
|
}
|
|
21132
21134
|
};
|
|
21133
|
-
Nc =
|
|
21135
|
+
Nc = Y3([
|
|
21134
21136
|
Fe("lr-loading-overlay")
|
|
21135
21137
|
], Nc);
|
|
21136
21138
|
et(
|
|
@@ -21175,7 +21177,7 @@ et(
|
|
|
21175
21177
|
* Copyright 2020 Google LLC
|
|
21176
21178
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21177
21179
|
*/
|
|
21178
|
-
const
|
|
21180
|
+
const X3 = (t) => t.strings === void 0;
|
|
21179
21181
|
/**
|
|
21180
21182
|
* @license
|
|
21181
21183
|
* Copyright 2017 Google LLC
|
|
@@ -21198,20 +21200,20 @@ const rr = (t, r) => {
|
|
|
21198
21200
|
let e = r._$AN;
|
|
21199
21201
|
if (e === void 0) r._$AN = e = /* @__PURE__ */ new Set();
|
|
21200
21202
|
else if (e.has(t)) break;
|
|
21201
|
-
e.add(t),
|
|
21203
|
+
e.add(t), tw(r);
|
|
21202
21204
|
}
|
|
21203
21205
|
};
|
|
21204
|
-
function
|
|
21206
|
+
function Q3(t) {
|
|
21205
21207
|
this._$AN !== void 0 ? (_i(this), this._$AM = t, Kd(this)) : this._$AM = t;
|
|
21206
21208
|
}
|
|
21207
|
-
function
|
|
21209
|
+
function ew(t, r = !1, e = 0) {
|
|
21208
21210
|
const n = this._$AH, i = this._$AN;
|
|
21209
21211
|
if (i !== void 0 && i.size !== 0) if (r) if (Array.isArray(n)) for (let a = e; a < n.length; a++) rr(n[a], !1), _i(n[a]);
|
|
21210
21212
|
else n != null && (rr(n, !1), _i(n));
|
|
21211
21213
|
else rr(this, t);
|
|
21212
21214
|
}
|
|
21213
|
-
const
|
|
21214
|
-
t.type == Zi.CHILD && (t._$AP ?? (t._$AP =
|
|
21215
|
+
const tw = (t) => {
|
|
21216
|
+
t.type == Zi.CHILD && (t._$AP ?? (t._$AP = ew), t._$AQ ?? (t._$AQ = Q3));
|
|
21215
21217
|
};
|
|
21216
21218
|
let Jd = class extends eo {
|
|
21217
21219
|
constructor() {
|
|
@@ -21225,7 +21227,7 @@ let Jd = class extends eo {
|
|
|
21225
21227
|
r !== this.isConnected && (this.isConnected = r, r ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), e && (rr(this, r), _i(this));
|
|
21226
21228
|
}
|
|
21227
21229
|
setValue(r) {
|
|
21228
|
-
if (
|
|
21230
|
+
if (X3(this._$Ct)) this._$Ct._$AI(r, this);
|
|
21229
21231
|
else {
|
|
21230
21232
|
const e = [...this._$Ct._$AH];
|
|
21231
21233
|
e[this._$Ci] = r, this._$Ct._$AI(e, this, 0);
|
|
@@ -21236,7 +21238,7 @@ let Jd = class extends eo {
|
|
|
21236
21238
|
reconnected() {
|
|
21237
21239
|
}
|
|
21238
21240
|
};
|
|
21239
|
-
const
|
|
21241
|
+
const ja = /* @__PURE__ */ new WeakMap(), nw = Yi(class extends Jd {
|
|
21240
21242
|
render(t) {
|
|
21241
21243
|
return se;
|
|
21242
21244
|
}
|
|
@@ -21248,13 +21250,13 @@ const Ha = /* @__PURE__ */ new WeakMap(), sw = Yi(class extends Jd {
|
|
|
21248
21250
|
rt(t) {
|
|
21249
21251
|
if (this.isConnected || (t = void 0), typeof this.Y == "function") {
|
|
21250
21252
|
const r = this.ht ?? globalThis;
|
|
21251
|
-
let e =
|
|
21252
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
|
21253
|
+
let e = ja.get(r);
|
|
21254
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), ja.set(r, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y, t), t !== void 0 && this.Y.call(this.ht, t);
|
|
21253
21255
|
} else this.Y.value = t;
|
|
21254
21256
|
}
|
|
21255
21257
|
get lt() {
|
|
21256
21258
|
var t, r;
|
|
21257
|
-
return typeof this.Y == "function" ? (t =
|
|
21259
|
+
return typeof this.Y == "function" ? (t = ja.get(this.ht ?? globalThis)) == null ? void 0 : t.get(this.Y) : (r = this.Y) == null ? void 0 : r.value;
|
|
21258
21260
|
}
|
|
21259
21261
|
disconnected() {
|
|
21260
21262
|
this.lt === this.ct && this.rt(void 0);
|
|
@@ -21262,7 +21264,7 @@ const Ha = /* @__PURE__ */ new WeakMap(), sw = Yi(class extends Jd {
|
|
|
21262
21264
|
reconnected() {
|
|
21263
21265
|
this.rt(this.ct);
|
|
21264
21266
|
}
|
|
21265
|
-
}),
|
|
21267
|
+
}), rw = _e`
|
|
21266
21268
|
:host {
|
|
21267
21269
|
--chat-sticky-offset-right: 100px;
|
|
21268
21270
|
--chat-sticky-offset-bottom: 12%;
|
|
@@ -21669,7 +21671,7 @@ const Ha = /* @__PURE__ */ new WeakMap(), sw = Yi(class extends Jd {
|
|
|
21669
21671
|
}
|
|
21670
21672
|
`
|
|
21671
21673
|
};
|
|
21672
|
-
var Gn, Kn, dn, hn, pn, fn,
|
|
21674
|
+
var Gn, Kn, dn, hn, pn, fn, Wa, Ga;
|
|
21673
21675
|
class ft {
|
|
21674
21676
|
}
|
|
21675
21677
|
D(ft, "ChatbotConversationsGet", (Gn = class {
|
|
@@ -21678,9 +21680,9 @@ D(ft, "ChatbotConversationsGet", (Gn = class {
|
|
|
21678
21680
|
}, D(dn, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && oe(r, 400)), D(dn, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && oe(r, 404)), D(dn, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && oe(r, 500)), D(dn, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && oe(r, 503)), dn)), D(ft, "ChatbotConversationsRatePost", (hn = class {
|
|
21679
21681
|
}, D(hn, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && oe(r, 400)), D(hn, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && oe(r, 404)), D(hn, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && oe(r, 500)), D(hn, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && oe(r, 503)), hn)), D(ft, "ChatbotConversationsMessagesRatePost", (pn = class {
|
|
21680
21682
|
}, D(pn, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && oe(r, 400)), D(pn, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && oe(r, 404)), D(pn, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && oe(r, 500)), D(pn, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && oe(r, 503)), pn)), D(ft, "ChatbotConversationsInteractionsSummarizePost", (fn = class {
|
|
21681
|
-
}, D(fn, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && oe(r, 400)), D(fn, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && oe(r, 404)), D(fn, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && oe(r, 500)), D(fn, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && oe(r, 503)), fn)), D(ft, "ChatbotIntegrationsPost", (
|
|
21682
|
-
}, D(
|
|
21683
|
-
}, D(
|
|
21683
|
+
}, D(fn, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && oe(r, 400)), D(fn, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && oe(r, 404)), D(fn, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && oe(r, 500)), D(fn, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && oe(r, 503)), fn)), D(ft, "ChatbotIntegrationsPost", (Wa = class {
|
|
21684
|
+
}, D(Wa, "isUnauthorizedProblemDetails", (r) => j.isAxiosError(r) && oe(r, 401)), Wa)), D(ft, "ChatbotIntegrationsGet", (Ga = class {
|
|
21685
|
+
}, D(Ga, "isUnauthorizedProblemDetails", (r) => j.isAxiosError(r) && oe(r, 401)), Ga));
|
|
21684
21686
|
const qe = class qe extends lo {
|
|
21685
21687
|
constructor() {
|
|
21686
21688
|
super(...arguments);
|
|
@@ -21812,15 +21814,15 @@ D(qe, "Endpoints", {
|
|
|
21812
21814
|
}), /** ChatbotService API static errors typeguards */
|
|
21813
21815
|
D(qe, "Errors", ft);
|
|
21814
21816
|
let Kt = qe;
|
|
21815
|
-
const
|
|
21817
|
+
const iw = /* @__PURE__ */ new WeakMap();
|
|
21816
21818
|
let Dc = 0;
|
|
21817
|
-
const
|
|
21819
|
+
const Ha = /* @__PURE__ */ new Map(), Bc = /* @__PURE__ */ new WeakSet(), jc = () => new Promise((t) => requestAnimationFrame(t)), Hc = [{ transform: "translateY(100%) scale(0)", opacity: 0 }], Uc = [{ opacity: 0 }], zc = [{ opacity: 0 }, { opacity: 1 }], qc = (t, r) => {
|
|
21818
21820
|
const e = t - r;
|
|
21819
21821
|
return e === 0 ? void 0 : e;
|
|
21820
21822
|
}, Vc = (t, r) => {
|
|
21821
21823
|
const e = t / r;
|
|
21822
21824
|
return e === 1 ? void 0 : e;
|
|
21823
|
-
},
|
|
21825
|
+
}, Ua = { left: (t, r) => {
|
|
21824
21826
|
const e = qc(t, r);
|
|
21825
21827
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
|
21826
21828
|
}, top: (t, r) => {
|
|
@@ -21836,8 +21838,8 @@ const Ua = /* @__PURE__ */ new Map(), Bc = /* @__PURE__ */ new WeakSet(), jc = (
|
|
|
21836
21838
|
r === 0 && (r = 1, e = { height: "1px" });
|
|
21837
21839
|
const n = Vc(t, r);
|
|
21838
21840
|
return { value: n, overrideFrom: e, transform: n == null || isNaN(n) ? void 0 : `scaleY(${n})` };
|
|
21839
|
-
} },
|
|
21840
|
-
class
|
|
21841
|
+
} }, aw = { duration: 333, easing: "ease-in-out" }, sw = ["left", "top", "width", "height", "opacity", "color", "background"], Wc = /* @__PURE__ */ new WeakMap();
|
|
21842
|
+
class ow extends Jd {
|
|
21841
21843
|
constructor(r) {
|
|
21842
21844
|
if (super(r), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, r.type === Zi.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
|
21843
21845
|
this.createFinished();
|
|
@@ -21856,7 +21858,7 @@ class dw extends Jd {
|
|
|
21856
21858
|
return se;
|
|
21857
21859
|
}
|
|
21858
21860
|
getController() {
|
|
21859
|
-
return
|
|
21861
|
+
return iw.get(this.u);
|
|
21860
21862
|
}
|
|
21861
21863
|
isDisabled() {
|
|
21862
21864
|
var r;
|
|
@@ -21870,12 +21872,12 @@ class dw extends Jd {
|
|
|
21870
21872
|
p(r) {
|
|
21871
21873
|
r = r ?? {};
|
|
21872
21874
|
const e = this.getController();
|
|
21873
|
-
e !== void 0 && ((r = { ...e.defaultOptions, ...r }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...r.keyframeOptions }), r.properties ?? (r.properties =
|
|
21875
|
+
e !== void 0 && ((r = { ...e.defaultOptions, ...r }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...r.keyframeOptions }), r.properties ?? (r.properties = sw), this.options = r;
|
|
21874
21876
|
}
|
|
21875
21877
|
m() {
|
|
21876
21878
|
const r = {}, e = this.element.getBoundingClientRect(), n = getComputedStyle(this.element);
|
|
21877
21879
|
return this.options.properties.forEach((i) => {
|
|
21878
|
-
const a = e[i] ?? (
|
|
21880
|
+
const a = e[i] ?? (Ua[i] ? void 0 : n[i]), s = Number(a);
|
|
21879
21881
|
r[i] = isNaN(s) ? a + "" : s;
|
|
21880
21882
|
}), r;
|
|
21881
21883
|
}
|
|
@@ -21900,9 +21902,9 @@ class dw extends Jd {
|
|
|
21900
21902
|
const { from: a, to: s } = this.N(this.A, i, e);
|
|
21901
21903
|
this.log("measured", [this.A, i, a, s]), r = this.calculateKeyframes(a, s);
|
|
21902
21904
|
} else {
|
|
21903
|
-
const a =
|
|
21905
|
+
const a = Ha.get(this.options.inId);
|
|
21904
21906
|
if (a) {
|
|
21905
|
-
|
|
21907
|
+
Ha.delete(this.options.inId);
|
|
21906
21908
|
const { from: s, to: o } = this.N(a, i, e);
|
|
21907
21909
|
r = this.calculateKeyframes(s, o), r = this.options.in ? [{ ...this.options.in[0], ...r[0] }, ...this.options.in.slice(1), r[1]] : r, Dc++, r.forEach((l) => l.zIndex = Dc);
|
|
21908
21910
|
} else this.options.in && (r = [...this.options.in, {}]);
|
|
@@ -21920,7 +21922,7 @@ class dw extends Jd {
|
|
|
21920
21922
|
}
|
|
21921
21923
|
async disconnected() {
|
|
21922
21924
|
var e;
|
|
21923
|
-
if (!this.h || (this.options.id !== void 0 &&
|
|
21925
|
+
if (!this.h || (this.options.id !== void 0 && Ha.set(this.options.id, this.A), this.options.out === void 0)) return;
|
|
21924
21926
|
if (this.prepare(), await jc(), (e = this.i) == null ? void 0 : e.isConnected) {
|
|
21925
21927
|
const n = this.o && this.o.parentNode === this.i ? this.o : null;
|
|
21926
21928
|
if (this.i.insertBefore(this.element, n), this.options.stabilizeOut) {
|
|
@@ -21959,7 +21961,7 @@ class dw extends Jd {
|
|
|
21959
21961
|
}), r;
|
|
21960
21962
|
}
|
|
21961
21963
|
j(r, e = this.O()) {
|
|
21962
|
-
const n = { ...
|
|
21964
|
+
const n = { ...aw };
|
|
21963
21965
|
return e.forEach((i) => Object.assign(n, i.options.keyframeOptions)), Object.assign(n, r), n;
|
|
21964
21966
|
}
|
|
21965
21967
|
N(r, e, n) {
|
|
@@ -21976,8 +21978,8 @@ class dw extends Jd {
|
|
|
21976
21978
|
const o = {};
|
|
21977
21979
|
for (const l in e) {
|
|
21978
21980
|
const c = r[l], u = e[l];
|
|
21979
|
-
if (l in
|
|
21980
|
-
const d =
|
|
21981
|
+
if (l in Ua) {
|
|
21982
|
+
const d = Ua[l];
|
|
21981
21983
|
if (c === void 0 || u === void 0) continue;
|
|
21982
21984
|
const h = d(c, u);
|
|
21983
21985
|
h.transform !== void 0 && (o[l] = h.value, s = !0, i.transform = `${i.transform ?? ""} ${h.transform}`, h.overrideFrom !== void 0 && Object.assign(i, h.overrideFrom));
|
|
@@ -22008,8 +22010,8 @@ class dw extends Jd {
|
|
|
22008
22010
|
this.shouldLog && !this.isDisabled() && console.log(r, this.options.id, e);
|
|
22009
22011
|
}
|
|
22010
22012
|
}
|
|
22011
|
-
const Ur = Yi(
|
|
22012
|
-
class
|
|
22013
|
+
const Ur = Yi(ow);
|
|
22014
|
+
class lw extends I3 {
|
|
22013
22015
|
constructor(r, e, n) {
|
|
22014
22016
|
super({
|
|
22015
22017
|
apiConfig: { baseURL: r, headers: { "x-country": e, "x-user-language": n } },
|
|
@@ -22062,33 +22064,33 @@ class hw extends $3 {
|
|
|
22062
22064
|
};
|
|
22063
22065
|
}
|
|
22064
22066
|
}
|
|
22065
|
-
function
|
|
22067
|
+
function cw() {
|
|
22066
22068
|
return `${window.location.pathname}-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
22067
22069
|
}
|
|
22068
22070
|
var Zd = (t) => {
|
|
22069
22071
|
throw TypeError(t);
|
|
22070
|
-
}, Yd = (t, r, e) => r.has(t) || Zd("Cannot " + e),
|
|
22072
|
+
}, Yd = (t, r, e) => r.has(t) || Zd("Cannot " + e), za = (t, r, e) => (Yd(t, r, "read from private field"), e ? e.call(t) : r.get(t)), qa = (t, r, e) => r.has(t) ? Zd("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, e), Va = (t, r, e, n) => (Yd(t, r, "write to private field"), r.set(t, e), e), ei, ti, ni;
|
|
22071
22073
|
class Xd {
|
|
22072
22074
|
constructor(r, e) {
|
|
22073
|
-
|
|
22075
|
+
qa(this, ei, cw()), qa(this, ti, null), qa(this, ni, null), this.enableSending = !0, this.host = r, this.host.addController(this), this.channel = new BroadcastChannel(e), this.registerOnMessageHandler();
|
|
22074
22076
|
}
|
|
22075
22077
|
get sourceId() {
|
|
22076
|
-
return
|
|
22078
|
+
return za(this, ei);
|
|
22077
22079
|
}
|
|
22078
22080
|
set sourceId(r) {
|
|
22079
|
-
|
|
22081
|
+
Va(this, ei, r);
|
|
22080
22082
|
}
|
|
22081
22083
|
get onMessage() {
|
|
22082
|
-
return
|
|
22084
|
+
return za(this, ti);
|
|
22083
22085
|
}
|
|
22084
22086
|
set onMessage(r) {
|
|
22085
|
-
|
|
22087
|
+
Va(this, ti, r);
|
|
22086
22088
|
}
|
|
22087
22089
|
get onError() {
|
|
22088
|
-
return
|
|
22090
|
+
return za(this, ni);
|
|
22089
22091
|
}
|
|
22090
22092
|
set onError(r) {
|
|
22091
|
-
|
|
22093
|
+
Va(this, ni, r);
|
|
22092
22094
|
}
|
|
22093
22095
|
registerOnMessageHandler() {
|
|
22094
22096
|
this.channel && (this.channel.onmessageerror = (r) => {
|
|
@@ -22114,13 +22116,13 @@ ni = /* @__PURE__ */ new WeakMap();
|
|
|
22114
22116
|
function Qd() {
|
|
22115
22117
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
22116
22118
|
}
|
|
22117
|
-
function
|
|
22119
|
+
function uw() {
|
|
22118
22120
|
return /La Redoute/i.test(navigator.userAgent);
|
|
22119
22121
|
}
|
|
22120
22122
|
function po(t) {
|
|
22121
22123
|
return new Promise((r) => setTimeout(r, t));
|
|
22122
22124
|
}
|
|
22123
|
-
const Gc = (t) => Object.entries(t).map(([r, e]) => `${r}:${e}`).join(";"),
|
|
22125
|
+
const Gc = (t) => Object.entries(t).map(([r, e]) => `${r}:${e}`).join(";"), dw = _e`
|
|
22124
22126
|
:host {
|
|
22125
22127
|
position: relative;
|
|
22126
22128
|
.button-container {
|
|
@@ -22197,7 +22199,7 @@ let Kc = class {
|
|
|
22197
22199
|
* Copyright 2021 Google LLC
|
|
22198
22200
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22199
22201
|
*/
|
|
22200
|
-
class
|
|
22202
|
+
class hw {
|
|
22201
22203
|
get value() {
|
|
22202
22204
|
return this.o;
|
|
22203
22205
|
}
|
|
@@ -22230,12 +22232,12 @@ class gw {
|
|
|
22230
22232
|
* Copyright 2021 Google LLC
|
|
22231
22233
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22232
22234
|
*/
|
|
22233
|
-
let
|
|
22235
|
+
let pw = class extends Event {
|
|
22234
22236
|
constructor(r) {
|
|
22235
22237
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = r;
|
|
22236
22238
|
}
|
|
22237
22239
|
};
|
|
22238
|
-
class Jc extends
|
|
22240
|
+
class Jc extends hw {
|
|
22239
22241
|
constructor(r, e, n) {
|
|
22240
22242
|
var i, a;
|
|
22241
22243
|
super(e.context !== void 0 ? e.initialValue : n), this.onContextRequest = (s) => {
|
|
@@ -22253,7 +22255,7 @@ class Jc extends gw {
|
|
|
22253
22255
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
22254
22256
|
}
|
|
22255
22257
|
hostConnected() {
|
|
22256
|
-
this.host.dispatchEvent(new
|
|
22258
|
+
this.host.dispatchEvent(new pw(this.context));
|
|
22257
22259
|
}
|
|
22258
22260
|
}
|
|
22259
22261
|
/**
|
|
@@ -22261,7 +22263,7 @@ class Jc extends gw {
|
|
|
22261
22263
|
* Copyright 2017 Google LLC
|
|
22262
22264
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22263
22265
|
*/
|
|
22264
|
-
function
|
|
22266
|
+
function fw({ context: t }) {
|
|
22265
22267
|
return (r, e) => {
|
|
22266
22268
|
const n = /* @__PURE__ */ new WeakMap();
|
|
22267
22269
|
if (typeof e == "object") return e.addInitializer(function() {
|
|
@@ -22316,7 +22318,7 @@ function fo({ context: t, subscribe: r }) {
|
|
|
22316
22318
|
});
|
|
22317
22319
|
};
|
|
22318
22320
|
}
|
|
22319
|
-
const
|
|
22321
|
+
const mw = _e``, gw = _e`
|
|
22320
22322
|
:host {
|
|
22321
22323
|
--media-size: '${k(w.devices.mobile.max)}px';
|
|
22322
22324
|
--border-color: transparent;
|
|
@@ -22347,28 +22349,28 @@ const bw = _e``, ww = _e`
|
|
|
22347
22349
|
--padding: 8px 12px;
|
|
22348
22350
|
}
|
|
22349
22351
|
`;
|
|
22350
|
-
var
|
|
22351
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22352
|
+
var vw = Object.defineProperty, yw = Object.getOwnPropertyDescriptor, nh = (t, r, e, n) => {
|
|
22353
|
+
for (var i = n > 1 ? void 0 : n ? yw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22352
22354
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22353
|
-
return n && i &&
|
|
22355
|
+
return n && i && vw(r, e, i), i;
|
|
22354
22356
|
};
|
|
22355
22357
|
let An = class extends xe {
|
|
22356
22358
|
constructor() {
|
|
22357
22359
|
super(...arguments), this.variant = "on-light";
|
|
22358
22360
|
}
|
|
22359
22361
|
};
|
|
22360
|
-
An.styles = [xe.styles,
|
|
22362
|
+
An.styles = [xe.styles, gw];
|
|
22361
22363
|
nh([
|
|
22362
22364
|
z({ type: String, reflect: !0 })
|
|
22363
22365
|
], An.prototype, "variant", 2);
|
|
22364
22366
|
An = nh([
|
|
22365
22367
|
Fe("lr-pill")
|
|
22366
22368
|
], An);
|
|
22367
|
-
const
|
|
22368
|
-
var
|
|
22369
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22369
|
+
const aa = Symbol("lr-chatbot-message-context");
|
|
22370
|
+
var bw = Object.defineProperty, ww = Object.getOwnPropertyDescriptor, sa = (t, r, e, n) => {
|
|
22371
|
+
for (var i = n > 1 ? void 0 : n ? ww(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22370
22372
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22371
|
-
return n && i &&
|
|
22373
|
+
return n && i && bw(r, e, i), i;
|
|
22372
22374
|
};
|
|
22373
22375
|
let Tn = class extends An {
|
|
22374
22376
|
constructor() {
|
|
@@ -22416,20 +22418,20 @@ let Tn = class extends An {
|
|
|
22416
22418
|
r && window.open(r, "_blank");
|
|
22417
22419
|
}
|
|
22418
22420
|
};
|
|
22419
|
-
Tn.styles = [An.styles,
|
|
22420
|
-
|
|
22421
|
+
Tn.styles = [An.styles, mw];
|
|
22422
|
+
sa([
|
|
22421
22423
|
z({ type: String })
|
|
22422
22424
|
], Tn.prototype, "channel", 2);
|
|
22423
|
-
|
|
22425
|
+
sa([
|
|
22424
22426
|
z({ type: Boolean })
|
|
22425
22427
|
], Tn.prototype, "shouldGetSummary", 2);
|
|
22426
|
-
|
|
22427
|
-
fo({ context:
|
|
22428
|
+
sa([
|
|
22429
|
+
fo({ context: aa })
|
|
22428
22430
|
], Tn.prototype, "messageContext", 2);
|
|
22429
|
-
Tn =
|
|
22431
|
+
Tn = sa([
|
|
22430
22432
|
Fe("lr-chatbot-escalation-pill")
|
|
22431
22433
|
], Tn);
|
|
22432
|
-
const
|
|
22434
|
+
const kw = _e`
|
|
22433
22435
|
:host {
|
|
22434
22436
|
display: flex;
|
|
22435
22437
|
flex-direction: row;
|
|
@@ -22454,7 +22456,7 @@ et(
|
|
|
22454
22456
|
<path xmlns="http://www.w3.org/2000/svg" fillRule="evenodd" clipRule="evenodd" d="M18.614 7.461C17.6102 10.4284 15.9765 12.0067 14.4345 13.4963C14.2886 13.6372 14.1436 13.7773 14 13.9177V24.4999H24.7192L27.2192 14.5H18.5C18.0955 14.5 17.7309 14.2563 17.5761 13.8827C17.4213 13.509 17.5069 13.0789 17.7929 12.7929C17.944 12.6417 18.8204 11.5802 19.2535 10.3467C19.4663 9.74063 19.5429 9.17414 19.4456 8.69003C19.3629 8.27809 19.1413 7.85319 18.614 7.461ZM12 24.4999V14.5H5V24.4999H12ZM12.5885 12.5C12.7527 12.3387 12.9145 12.1816 13.0737 12.027C14.6038 10.5414 15.893 9.28958 16.732 6.78297C16.9137 6.23995 17.3109 5.79477 17.8159 5.56288C18.3387 5.32285 18.9977 5.30998 19.5733 5.69171C20.6253 6.38928 21.2061 7.2989 21.4064 8.29616C21.5995 9.25741 21.4217 10.2086 21.1405 11.0093C20.9517 11.5472 20.7031 12.0537 20.4453 12.5H27.2192C28.5204 12.5 29.4751 13.7227 29.1595 14.985L26.6595 24.985C26.4369 25.8753 25.637 26.4999 24.7192 26.4999H13H5C3.89543 26.4999 3 25.6045 3 24.4999V14.5C3 13.3954 3.89543 12.5 5 12.5H12.5885Z" fill="currentcolor"/>
|
|
22455
22457
|
`
|
|
22456
22458
|
);
|
|
22457
|
-
const
|
|
22459
|
+
const _w = _e`
|
|
22458
22460
|
:host .button {
|
|
22459
22461
|
padding: 10px;
|
|
22460
22462
|
|
|
@@ -22467,21 +22469,21 @@ const Ew = _e`
|
|
|
22467
22469
|
}
|
|
22468
22470
|
}
|
|
22469
22471
|
`;
|
|
22470
|
-
var
|
|
22471
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22472
|
+
var Sw = Object.defineProperty, Cw = Object.getOwnPropertyDescriptor, xw = (t, r, e, n) => {
|
|
22473
|
+
for (var i = n > 1 ? void 0 : n ? Cw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22472
22474
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22473
|
-
return n && i &&
|
|
22475
|
+
return n && i && Sw(r, e, i), i;
|
|
22474
22476
|
};
|
|
22475
22477
|
let Cs = class extends gt {
|
|
22476
22478
|
};
|
|
22477
|
-
Cs.styles = [gt.styles,
|
|
22478
|
-
Cs =
|
|
22479
|
+
Cs.styles = [gt.styles, _w];
|
|
22480
|
+
Cs = xw([
|
|
22479
22481
|
Fe("lr-icon-button")
|
|
22480
22482
|
], Cs);
|
|
22481
|
-
var
|
|
22482
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22483
|
+
var Ew = Object.defineProperty, Aw = Object.getOwnPropertyDescriptor, Mr = (t, r, e, n) => {
|
|
22484
|
+
for (var i = n > 1 ? void 0 : n ? Aw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22483
22485
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22484
|
-
return n && i &&
|
|
22486
|
+
return n && i && Ew(r, e, i), i;
|
|
22485
22487
|
};
|
|
22486
22488
|
let Jt = class extends ge {
|
|
22487
22489
|
constructor() {
|
|
@@ -22537,9 +22539,9 @@ let Jt = class extends ge {
|
|
|
22537
22539
|
`;
|
|
22538
22540
|
}
|
|
22539
22541
|
};
|
|
22540
|
-
Jt.styles = [ge.styles,
|
|
22542
|
+
Jt.styles = [ge.styles, kw];
|
|
22541
22543
|
Mr([
|
|
22542
|
-
fo({ context:
|
|
22544
|
+
fo({ context: aa })
|
|
22543
22545
|
], Jt.prototype, "messageContext", 2);
|
|
22544
22546
|
Mr([
|
|
22545
22547
|
Pt()
|
|
@@ -22553,7 +22555,7 @@ Mr([
|
|
|
22553
22555
|
Jt = Mr([
|
|
22554
22556
|
Fe("lr-chatbot-message-rating")
|
|
22555
22557
|
], Jt);
|
|
22556
|
-
const
|
|
22558
|
+
const Tw = _e`
|
|
22557
22559
|
:host lr-rating-element {
|
|
22558
22560
|
margin-left: -2px;
|
|
22559
22561
|
}
|
|
@@ -22565,7 +22567,7 @@ et(
|
|
|
22565
22567
|
<path xmlns="http://www.w3.org/2000/svg" d="M9.87758 19L10.8547 19.2127C10.9296 18.8686 10.818 18.5105 10.5609 18.2698L9.87758 19ZM4.00003 13.5L3.88079 12.5071C3.49477 12.5535 3.17061 12.8194 3.04966 13.1889C2.9287 13.5584 3.03288 13.9645 3.31677 14.2302L4.00003 13.5ZM12.3266 12.5L12.4458 13.4929C12.8079 13.4494 13.1176 13.2123 13.254 12.8741L12.3266 12.5ZM15.7551 4L16.6825 3.62592C16.53 3.24768 16.163 3 15.7551 3C15.3473 3 14.9803 3.24768 14.8277 3.62592L15.7551 4ZM19.1837 12.5L18.2563 12.8741C18.3936 13.2145 18.7063 13.4523 19.071 13.4936L19.1837 12.5ZM28 13.5L28.6537 14.2568C28.9543 13.9971 29.0727 13.5842 28.9554 13.2047C28.8382 12.8252 28.5074 12.5511 28.1127 12.5064L28 13.5ZM21.6327 19L20.979 18.2432C20.7017 18.4827 20.5776 18.8547 20.6556 19.2127L21.6327 19ZM23.5919 28L23.0939 28.8672C23.4368 29.0641 23.8635 29.0405 24.1826 28.8069C24.5016 28.5733 24.6531 28.1737 24.569 27.7873L23.5919 28ZM15.7551 23.5L16.2531 22.6328C15.9447 22.4557 15.5655 22.4557 15.2572 22.6328L15.7551 23.5ZM7.9184 28L6.94128 27.7873C6.85718 28.1737 7.00863 28.5733 7.32768 28.8069C7.64674 29.0405 8.07346 29.0641 8.41636 28.8672L7.9184 28ZM10.5609 18.2698L4.6833 12.7698L3.31677 14.2302L9.19432 19.7302L10.5609 18.2698ZM4.11927 14.4929L12.4458 13.4929L12.2073 11.5071L3.88079 12.5071L4.11927 14.4929ZM13.254 12.8741L16.6825 4.37408L14.8277 3.62592L11.3992 12.1259L13.254 12.8741ZM14.8277 4.37408L18.2563 12.8741L20.1111 12.1259L16.6825 3.62592L14.8277 4.37408ZM19.071 13.4936L27.8873 14.4936L28.1127 12.5064L19.2964 11.5064L19.071 13.4936ZM27.3463 12.7432L20.979 18.2432L22.2864 19.7568L28.6537 14.2568L27.3463 12.7432ZM20.6556 19.2127L22.6148 28.2127L24.569 27.7873L22.6098 18.7873L20.6556 19.2127ZM24.0898 27.1328L16.2531 22.6328L15.2572 24.3672L23.0939 28.8672L24.0898 27.1328ZM15.2572 22.6328L7.42044 27.1328L8.41636 28.8672L16.2531 24.3672L15.2572 22.6328ZM8.89552 28.2127L10.8547 19.2127L8.90047 18.7873L6.94128 27.7873L8.89552 28.2127Z" fill="currentcolor"/>
|
|
22566
22568
|
`
|
|
22567
22569
|
);
|
|
22568
|
-
const
|
|
22570
|
+
const Rw = _e`
|
|
22569
22571
|
:host lr-icon-star-filled {
|
|
22570
22572
|
display: inline-block;
|
|
22571
22573
|
cursor: default;
|
|
@@ -22594,10 +22596,10 @@ const Mw = _e`
|
|
|
22594
22596
|
opacity: 1;
|
|
22595
22597
|
}
|
|
22596
22598
|
`;
|
|
22597
|
-
var
|
|
22598
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22599
|
+
var Ow = Object.defineProperty, Iw = Object.getOwnPropertyDescriptor, mo = (t, r, e, n) => {
|
|
22600
|
+
for (var i = n > 1 ? void 0 : n ? Iw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22599
22601
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22600
|
-
return n && i &&
|
|
22602
|
+
return n && i && Ow(r, e, i), i;
|
|
22601
22603
|
};
|
|
22602
22604
|
let br = class extends ge {
|
|
22603
22605
|
constructor() {
|
|
@@ -22607,7 +22609,7 @@ let br = class extends ge {
|
|
|
22607
22609
|
return fe`<lr-icon-star-filled size=${this.size}></lr-icon-star-filled>`;
|
|
22608
22610
|
}
|
|
22609
22611
|
};
|
|
22610
|
-
br.styles = [ge.styles,
|
|
22612
|
+
br.styles = [ge.styles, Rw];
|
|
22611
22613
|
mo([
|
|
22612
22614
|
z({ type: Boolean, reflect: !0 })
|
|
22613
22615
|
], br.prototype, "active", 2);
|
|
@@ -22617,10 +22619,10 @@ mo([
|
|
|
22617
22619
|
br = mo([
|
|
22618
22620
|
Fe("lr-rating-element")
|
|
22619
22621
|
], br);
|
|
22620
|
-
var
|
|
22621
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22622
|
+
var Lw = Object.defineProperty, Mw = Object.getOwnPropertyDescriptor, Pr = (t, r, e, n) => {
|
|
22623
|
+
for (var i = n > 1 ? void 0 : n ? Mw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22622
22624
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22623
|
-
return n && i &&
|
|
22625
|
+
return n && i && Lw(r, e, i), i;
|
|
22624
22626
|
};
|
|
22625
22627
|
let Rt = class extends ge {
|
|
22626
22628
|
constructor() {
|
|
@@ -22664,7 +22666,7 @@ let Rt = class extends ge {
|
|
|
22664
22666
|
}
|
|
22665
22667
|
};
|
|
22666
22668
|
Rt.formAssociated = !0;
|
|
22667
|
-
Rt.styles = [ge.styles,
|
|
22669
|
+
Rt.styles = [ge.styles, Tw];
|
|
22668
22670
|
Pr([
|
|
22669
22671
|
z({ type: String })
|
|
22670
22672
|
], Rt.prototype, "size", 2);
|
|
@@ -22680,7 +22682,7 @@ Pr([
|
|
|
22680
22682
|
Rt = Pr([
|
|
22681
22683
|
Fe("lr-rating")
|
|
22682
22684
|
], Rt);
|
|
22683
|
-
const
|
|
22685
|
+
const Pw = _e`
|
|
22684
22686
|
:host {
|
|
22685
22687
|
--font-family: var(--lr-poppins);
|
|
22686
22688
|
--font-size: var(--lr-text-14);
|
|
@@ -22783,10 +22785,10 @@ const Dw = _e`
|
|
|
22783
22785
|
--font-size: var(--lr-text-14);
|
|
22784
22786
|
}
|
|
22785
22787
|
`;
|
|
22786
|
-
var
|
|
22787
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22788
|
+
var $w = Object.defineProperty, Fw = Object.getOwnPropertyDescriptor, Ne = (t, r, e, n) => {
|
|
22789
|
+
for (var i = n > 1 ? void 0 : n ? Fw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22788
22790
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22789
|
-
return n && i &&
|
|
22791
|
+
return n && i && $w(r, e, i), i;
|
|
22790
22792
|
};
|
|
22791
22793
|
let Ee = class extends ge {
|
|
22792
22794
|
constructor() {
|
|
@@ -22842,7 +22844,7 @@ let Ee = class extends ge {
|
|
|
22842
22844
|
}
|
|
22843
22845
|
};
|
|
22844
22846
|
Ee.formAssociated = !0;
|
|
22845
|
-
Ee.styles = [ge.styles,
|
|
22847
|
+
Ee.styles = [ge.styles, Pw];
|
|
22846
22848
|
Ne([
|
|
22847
22849
|
z({ type: String })
|
|
22848
22850
|
], Ee.prototype, "label", 2);
|
|
@@ -22891,7 +22893,7 @@ et(
|
|
|
22891
22893
|
<path xmlns="http://www.w3.org/2000/svg" d="M6 16.7778L12.1538 23L26 9" stroke="currentcolor" strokeWidth="2" strokeLinecap="square" strokeLinejoin="round"/>
|
|
22892
22894
|
`
|
|
22893
22895
|
);
|
|
22894
|
-
const
|
|
22896
|
+
const Nw = _e`
|
|
22895
22897
|
:host .feedback {
|
|
22896
22898
|
display: none;
|
|
22897
22899
|
margin: 0.625rem 0;
|
|
@@ -22907,10 +22909,10 @@ const Hw = _e`
|
|
|
22907
22909
|
gap: 0.5rem;
|
|
22908
22910
|
}
|
|
22909
22911
|
`;
|
|
22910
|
-
var
|
|
22911
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22912
|
+
var Dw = Object.defineProperty, Bw = Object.getOwnPropertyDescriptor, Mn = (t, r, e, n) => {
|
|
22913
|
+
for (var i = n > 1 ? void 0 : n ? Bw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22912
22914
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22913
|
-
return n && i &&
|
|
22915
|
+
return n && i && Dw(r, e, i), i;
|
|
22914
22916
|
};
|
|
22915
22917
|
let Ot = class extends ge {
|
|
22916
22918
|
constructor() {
|
|
@@ -22989,9 +22991,9 @@ let Ot = class extends ge {
|
|
|
22989
22991
|
`;
|
|
22990
22992
|
}
|
|
22991
22993
|
};
|
|
22992
|
-
Ot.styles = [
|
|
22994
|
+
Ot.styles = [Nw];
|
|
22993
22995
|
Mn([
|
|
22994
|
-
fo({ context:
|
|
22996
|
+
fo({ context: aa })
|
|
22995
22997
|
], Ot.prototype, "messageContext", 2);
|
|
22996
22998
|
Mn([
|
|
22997
22999
|
Pt()
|
|
@@ -23008,14 +23010,14 @@ Mn([
|
|
|
23008
23010
|
Ot = Mn([
|
|
23009
23011
|
Fe("lr-chatbot-conversation-rating")
|
|
23010
23012
|
], Ot);
|
|
23011
|
-
function
|
|
23013
|
+
function jw(t) {
|
|
23012
23014
|
const r = new RegExp("https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)(?<![\\.,;:!?])", "g");
|
|
23013
23015
|
return t.replace(r, (n) => `<a href="${n}" style="color: inherit" target="_blank">${n}</a>`);
|
|
23014
23016
|
}
|
|
23015
|
-
var
|
|
23016
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
23017
|
+
var Hw = Object.defineProperty, Uw = Object.getOwnPropertyDescriptor, yt = (t, r, e, n) => {
|
|
23018
|
+
for (var i = n > 1 ? void 0 : n ? Uw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
23017
23019
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
23018
|
-
return n && i &&
|
|
23020
|
+
return n && i && Hw(r, e, i), i;
|
|
23019
23021
|
};
|
|
23020
23022
|
let Ye = class extends ge {
|
|
23021
23023
|
constructor() {
|
|
@@ -23043,7 +23045,7 @@ let Ye = class extends ge {
|
|
|
23043
23045
|
${this.showConversationRating ? fe`<lr-chatbot-conversation-rating></lr-chatbot-conversation-rating>` : se}`;
|
|
23044
23046
|
}
|
|
23045
23047
|
};
|
|
23046
|
-
Ye.styles = [ge.styles,
|
|
23048
|
+
Ye.styles = [ge.styles, dw];
|
|
23047
23049
|
yt([
|
|
23048
23050
|
z({ type: String })
|
|
23049
23051
|
], Ye.prototype, "apiUrl", 2);
|
|
@@ -23066,13 +23068,13 @@ yt([
|
|
|
23066
23068
|
z({ type: Boolean })
|
|
23067
23069
|
], Ye.prototype, "showConversationRating", 2);
|
|
23068
23070
|
yt([
|
|
23069
|
-
|
|
23071
|
+
fw({ context: aa })
|
|
23070
23072
|
], Ye.prototype, "messageContext", 2);
|
|
23071
23073
|
Ye = yt([
|
|
23072
23074
|
Fe("lr-chatbot-message")
|
|
23073
23075
|
], Ye);
|
|
23074
23076
|
const Hn = (t) => {
|
|
23075
|
-
const r = t.slot.replace(/(?:\r\n|\r|\n)/g, "<br/>"), e =
|
|
23077
|
+
const r = t.slot.replace(/(?:\r\n|\r|\n)/g, "<br/>"), e = jw(r);
|
|
23076
23078
|
return `<lr-chatbot-message
|
|
23077
23079
|
${t.apiUrl ? `apiUrl="${t.apiUrl}"` : ""}
|
|
23078
23080
|
${t.conversationId ? `conversationId="${t.conversationId}"` : ""}
|
|
@@ -23085,18 +23087,18 @@ const Hn = (t) => {
|
|
|
23085
23087
|
${e}
|
|
23086
23088
|
</lr-chatbot-message>`;
|
|
23087
23089
|
};
|
|
23088
|
-
var
|
|
23090
|
+
var zw = Object.defineProperty, qw = Object.getOwnPropertyDescriptor, rh = (t) => {
|
|
23089
23091
|
throw TypeError(t);
|
|
23090
23092
|
}, Pn = (t, r, e, n) => {
|
|
23091
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
23093
|
+
for (var i = n > 1 ? void 0 : n ? qw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
23092
23094
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
23093
|
-
return n && i &&
|
|
23095
|
+
return n && i && zw(r, e, i), i;
|
|
23094
23096
|
}, ih = (t, r, e) => r.has(t) || rh("Cannot " + e), Un = (t, r, e) => (ih(t, r, "read from private field"), e ? e.call(t) : r.get(t)), zn = (t, r, e) => r.has(t) ? rh("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, e), qn = (t, r, e, n) => (ih(t, r, "write to private field"), r.set(t, e), e), ri, ii, ai, si, oi;
|
|
23095
23097
|
const ah = "lr.chatbot.broadcast_channel." + document.location.hostname, vn = "lr.chatbot.conversation_id", Vn = "lr.chatbot.conversation_state";
|
|
23096
23098
|
let It = class extends ge {
|
|
23097
23099
|
constructor() {
|
|
23098
23100
|
super({
|
|
23099
|
-
translationsLoaderGetter: () => new
|
|
23101
|
+
translationsLoaderGetter: () => new lw(this.apiUrl, this.country, this.language),
|
|
23100
23102
|
fetchAsyncServerTranslations: !0
|
|
23101
23103
|
}), zn(this, ri, "/bff"), zn(this, ii, !1), zn(this, ai, !1), zn(this, si, !1), zn(this, oi, !1), this._closeClickCount = 0, this._isConversationDone = !1, this._shouldEndConversation = !1, this._broadcastController = new Xd(
|
|
23102
23104
|
this,
|
|
@@ -23134,7 +23136,7 @@ let It = class extends ge {
|
|
|
23134
23136
|
qn(this, oi, t);
|
|
23135
23137
|
}
|
|
23136
23138
|
getVersion() {
|
|
23137
|
-
return "LR Chatbot - v0.31.
|
|
23139
|
+
return "LR Chatbot - v0.31.5";
|
|
23138
23140
|
}
|
|
23139
23141
|
async connectedCallback() {
|
|
23140
23142
|
super.connectedCallback(), this._conversationHistoryTask.run();
|
|
@@ -23218,7 +23220,7 @@ let It = class extends ge {
|
|
|
23218
23220
|
async setDeepChatHistory() {
|
|
23219
23221
|
if (!this.deepChat)
|
|
23220
23222
|
throw Error("Deep Chat should be initialized at this point");
|
|
23221
|
-
this.disableDeepChatTextInput(), [
|
|
23223
|
+
this.disableDeepChatTextInput(), [Pa.INITIAL, Pa.ERROR].includes(this._conversationHistoryTask.status) && this._conversationHistoryTask.run();
|
|
23222
23224
|
let t = await this._conversationHistoryTask.taskComplete;
|
|
23223
23225
|
this.setInitialMessages(), t != null && t.messages && (this.deepChat.history = [
|
|
23224
23226
|
...this.deepChat.history ?? [],
|
|
@@ -23281,7 +23283,7 @@ let It = class extends ge {
|
|
|
23281
23283
|
language: this.language.split("-")[0].toLocaleUpperCase(),
|
|
23282
23284
|
question: e,
|
|
23283
23285
|
source: {
|
|
23284
|
-
platform: Qd() ?
|
|
23286
|
+
platform: Qd() ? uw() ? "application_webview" : "mobile_website" : "website",
|
|
23285
23287
|
channel: "web"
|
|
23286
23288
|
},
|
|
23287
23289
|
context: []
|
|
@@ -23438,13 +23440,13 @@ let It = class extends ge {
|
|
|
23438
23440
|
</div>
|
|
23439
23441
|
<div id="chat-wrapper-content">
|
|
23440
23442
|
${this.exitOverlay ? this.renderExitOverlay() : se}
|
|
23441
|
-
${this._conversationHistoryTask.status ===
|
|
23443
|
+
${this._conversationHistoryTask.status === Pa.PENDING ? fe`<lr-loading-overlay
|
|
23442
23444
|
${Ur({
|
|
23443
23445
|
in: zc,
|
|
23444
23446
|
out: Uc
|
|
23445
23447
|
})}
|
|
23446
23448
|
></lr-loading-overlay>` : se}
|
|
23447
|
-
<deep-chat id="chat-element" part="chat-element" ${
|
|
23449
|
+
<deep-chat id="chat-element" part="chat-element" ${nw(this.handleDeepChatLoad)}></deep-chat>
|
|
23448
23450
|
</div>
|
|
23449
23451
|
</div>
|
|
23450
23452
|
`;
|
|
@@ -23477,7 +23479,7 @@ ii = /* @__PURE__ */ new WeakMap();
|
|
|
23477
23479
|
ai = /* @__PURE__ */ new WeakMap();
|
|
23478
23480
|
si = /* @__PURE__ */ new WeakMap();
|
|
23479
23481
|
oi = /* @__PURE__ */ new WeakMap();
|
|
23480
|
-
It.styles = [ge.styles,
|
|
23482
|
+
It.styles = [ge.styles, rw];
|
|
23481
23483
|
Pn([
|
|
23482
23484
|
z({ type: String })
|
|
23483
23485
|
], It.prototype, "apiUrl", 1);
|